primereact 9.5.0 → 9.6.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/accordion/accordion.cjs.js +2 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +2 -1
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +214 -3
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +876 -3
- package/api/api.esm.js +209 -4
- package/api/api.esm.min.js +1 -1
- package/api/api.js +215 -5
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +132 -91
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +134 -2
- package/autocomplete/autocomplete.esm.js +134 -93
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +133 -93
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +3 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.esm.js +3 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +4 -3
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +3 -1
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +3 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +4 -3
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +3 -1
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +3 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +4 -3
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +4 -3
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +4 -3
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +5 -4
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +11 -4
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +11 -4
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +11 -5
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +6 -2
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +6 -0
- package/button/button.esm.js +6 -2
- package/button/button.esm.min.js +1 -1
- package/button/button.js +7 -4
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +320 -228
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +267 -1
- package/calendar/calendar.esm.js +322 -230
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +321 -230
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +3 -1
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +5 -11
- package/card/card.esm.js +3 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +4 -3
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +19 -10
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +8 -0
- package/carousel/carousel.esm.js +20 -11
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +19 -10
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +154 -85
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +95 -1
- package/cascadeselect/cascadeselect.esm.js +156 -87
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +154 -86
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +3 -1
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +3 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +4 -3
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +93 -34
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +60 -1
- package/checkbox/checkbox.esm.js +94 -35
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +93 -36
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +3 -1
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +1 -1
- package/chip/chip.esm.js +3 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +4 -3
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +60 -38
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +73 -6
- package/chips/chips.esm.js +61 -39
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +60 -40
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +119 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +76 -0
- package/colorpicker/colorpicker.esm.js +121 -51
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +120 -51
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.js +2 -0
- package/column/column.d.ts +298 -1
- package/column/column.esm.js +2 -0
- package/column/column.js +2 -0
- package/columngroup/columngroup.d.ts +28 -0
- package/componentbase/componentbase.cjs.js +29 -5
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +25 -5
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +30 -7
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +2 -1
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +3 -2
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +2 -1
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +5 -4
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +6 -5
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +5 -4
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +10 -8
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +11 -9
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +10 -8
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1165 -585
- package/core/core.min.js +47 -47
- package/csstransition/csstransition.cjs.js +3 -2
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +3 -2
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +4 -3
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +34 -43
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +51 -1
- package/datascroller/datascroller.esm.js +36 -45
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +35 -45
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +911 -477
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +191 -3
- package/datatable/datatable.esm.js +913 -479
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +912 -479
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +125 -109
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +105 -2
- package/dataview/dataview.esm.js +127 -111
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +123 -108
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +3 -1
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +3 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +4 -3
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +6 -5
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +7 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +6 -5
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +3 -1
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +3 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +4 -3
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +3 -1
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +3 -1
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +4 -3
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +169 -119
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +154 -2
- package/dropdown/dropdown.esm.js +171 -121
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +170 -121
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +95 -116
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +50 -0
- package/editor/editor.esm.js +96 -117
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +95 -118
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +3 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +4 -3
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +67 -55
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +13 -3
- package/fileupload/fileupload.esm.js +68 -56
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +64 -52
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +8 -6
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +9 -7
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +8 -6
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +6 -3
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +7 -4
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +6 -3
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +6 -1
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +6 -1
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -1
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +6 -1
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +6 -1
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -1
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +6 -1
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +6 -1
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -1
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +6 -1
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +6 -1
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +6 -1
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +6 -1
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +6 -1
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -1
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +6 -1
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +6 -1
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -1
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +6 -1
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +6 -1
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -1
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +6 -1
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +6 -1
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -1
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +6 -1
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +6 -1
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -1
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +6 -1
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +6 -1
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -1
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +6 -1
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +6 -1
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -1
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +6 -1
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +6 -1
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -1
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +6 -1
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +6 -1
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -1
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +6 -1
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +6 -1
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -1
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +6 -1
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +6 -1
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -1
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +6 -1
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -1
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -1
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +6 -1
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +6 -1
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -1
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +6 -1
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +6 -1
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -1
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +6 -1
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +6 -1
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -1
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +6 -1
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +6 -1
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -1
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +6 -1
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +6 -1
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -1
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +6 -1
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +6 -1
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -1
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +6 -1
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +6 -1
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -1
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +6 -1
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +6 -1
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -1
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +6 -1
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +6 -1
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -1
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +6 -1
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +6 -1
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -1
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +6 -1
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +6 -1
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -1
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +6 -1
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +6 -1
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -1
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +9 -3
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +2 -2
- package/image/image.esm.js +10 -4
- package/image/image.esm.min.js +1 -1
- package/image/image.js +9 -3
- package/image/image.min.css +1 -1
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +2 -1
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +3 -2
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -1
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +8 -10
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +7 -2
- package/inputmask/inputmask.esm.js +9 -11
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +8 -12
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +68 -46
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +62 -1
- package/inputnumber/inputnumber.esm.js +66 -47
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +68 -48
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +77 -25
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +56 -0
- package/inputswitch/inputswitch.esm.js +78 -26
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +77 -27
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +25 -15
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +32 -0
- package/inputtext/inputtext.esm.js +26 -16
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +25 -17
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +25 -15
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +33 -1
- package/inputtextarea/inputtextarea.esm.js +26 -16
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -17
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +25 -9
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +25 -9
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +25 -11
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +44 -43
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +42 -0
- package/knob/knob.esm.js +45 -44
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +44 -45
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +86 -56
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +103 -3
- package/listbox/listbox.esm.js +88 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +86 -57
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +4 -3
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +5 -4
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +4 -3
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +87 -61
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +80 -1
- package/mention/mention.esm.js +89 -63
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +88 -63
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +5 -4
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +6 -5
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +5 -4
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +4 -4
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +5 -5
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +5 -5
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +3 -1
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +3 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +4 -3
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +2 -1
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +3 -2
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +2 -1
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +220 -167
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +180 -3
- package/multiselect/multiselect.esm.js +222 -169
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +220 -168
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +32 -22
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +56 -2
- package/multistatecheckbox/multistatecheckbox.esm.js +34 -24
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +33 -24
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +188 -110
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +118 -2
- package/orderlist/orderlist.esm.js +190 -112
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +186 -109
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +139 -73
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +89 -2
- package/organizationchart/organizationchart.esm.js +140 -74
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +139 -75
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +7 -6
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +5 -0
- package/overlaypanel/overlaypanel.esm.js +8 -7
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +8 -7
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +172 -166
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +108 -2
- package/paginator/paginator.esm.js +174 -168
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +172 -167
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +3 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +4 -3
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +3 -1
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +3 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +4 -3
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +89 -46
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +98 -2
- package/password/password.esm.js +91 -48
- package/password/password.esm.min.js +1 -1
- package/password/password.js +88 -46
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +146 -82
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +133 -1
- package/picklist/picklist.esm.js +148 -84
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +143 -80
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +3 -2
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +3 -2
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +4 -3
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +4725 -3130
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4724 -3131
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4725 -3130
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +3 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +3 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +4 -3
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +3 -1
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +3 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +4 -3
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +74 -21
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +61 -1
- package/radiobutton/radiobutton.esm.js +75 -22
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +74 -23
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +47 -36
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +64 -1
- package/rating/rating.esm.js +48 -37
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +47 -38
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +568 -566
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +20 -1
- package/resources/themes/arya-green/theme.css +20 -1
- package/resources/themes/arya-orange/theme.css +20 -1
- package/resources/themes/arya-purple/theme.css +20 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +20 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +20 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +20 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +20 -1
- package/resources/themes/fluent-light/theme.css +20 -1
- package/resources/themes/lara-dark-blue/theme.css +20 -1
- package/resources/themes/lara-dark-indigo/theme.css +20 -1
- package/resources/themes/lara-dark-purple/theme.css +20 -1
- package/resources/themes/lara-dark-teal/theme.css +20 -1
- package/resources/themes/lara-light-blue/theme.css +20 -1
- package/resources/themes/lara-light-indigo/theme.css +20 -1
- package/resources/themes/lara-light-purple/theme.css +20 -1
- package/resources/themes/lara-light-teal/theme.css +20 -1
- package/resources/themes/luna-amber/theme.css +20 -1
- package/resources/themes/luna-blue/theme.css +20 -1
- package/resources/themes/luna-green/theme.css +20 -1
- package/resources/themes/luna-pink/theme.css +20 -1
- package/resources/themes/md-dark-deeppurple/theme.css +20 -1
- package/resources/themes/md-dark-indigo/theme.css +20 -1
- package/resources/themes/md-light-deeppurple/theme.css +20 -1
- package/resources/themes/md-light-indigo/theme.css +20 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +20 -1
- package/resources/themes/mdc-dark-indigo/theme.css +20 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +20 -1
- package/resources/themes/mdc-light-indigo/theme.css +20 -1
- package/resources/themes/mira/theme.css +20 -1
- package/resources/themes/nano/theme.css +20 -1
- package/resources/themes/nova/theme.css +20 -1
- package/resources/themes/nova-accent/theme.css +20 -1
- package/resources/themes/nova-alt/theme.css +20 -1
- package/resources/themes/rhea/theme.css +20 -1
- package/resources/themes/saga-blue/theme.css +20 -1
- package/resources/themes/saga-green/theme.css +20 -1
- package/resources/themes/saga-orange/theme.css +20 -1
- package/resources/themes/saga-purple/theme.css +20 -1
- package/resources/themes/soho-dark/theme.css +20 -1
- package/resources/themes/soho-light/theme.css +20 -1
- package/resources/themes/tailwind-light/theme.css +32 -13
- package/resources/themes/vela-blue/theme.css +20 -1
- package/resources/themes/vela-green/theme.css +20 -1
- package/resources/themes/vela-orange/theme.css +20 -1
- package/resources/themes/vela-purple/theme.css +20 -1
- package/resources/themes/viva-dark/theme.css +20 -1
- package/resources/themes/viva-light/theme.css +20 -1
- package/ripple/ripple.cjs.js +3 -2
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +3 -2
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +4 -3
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +28 -41
- package/row/row.cjs.min.js +1 -1
- package/row/row.d.ts +28 -0
- package/row/row.esm.js +15 -28
- package/row/row.esm.min.js +1 -1
- package/row/row.js +49 -64
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +3 -1
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +3 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +4 -3
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +9 -7
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +11 -9
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +10 -8
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +37 -25
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +52 -1
- package/selectbutton/selectbutton.esm.js +38 -26
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +37 -27
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +7 -6
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +8 -7
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +8 -7
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +4 -3
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +4 -3
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +5 -5
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +5 -4
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +5 -0
- package/slidemenu/slidemenu.esm.js +6 -5
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +6 -5
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +71 -39
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +34 -1
- package/slider/slider.esm.js +72 -40
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +71 -41
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +3 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +3 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +4 -3
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +74 -63
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +39 -11
- package/splitbutton/splitbutton.esm.js +76 -65
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +74 -63
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +3 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +10 -0
- package/splitter/splitter.esm.js +3 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +4 -3
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +3 -1
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +3 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +4 -3
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +3 -1
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +3 -1
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +4 -3
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +3 -1
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +3 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +4 -3
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +8 -5
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +9 -6
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +7 -4
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +3 -1
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +3 -1
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +4 -3
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +3 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +3 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +4 -3
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +6 -5
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +7 -6
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +6 -5
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +51 -43
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +51 -1
- package/timeline/timeline.esm.js +52 -44
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +51 -45
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +46 -4
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +2 -2
- package/toast/toast.esm.js +47 -5
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +46 -4
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +68 -21
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +40 -2
- package/togglebutton/togglebutton.esm.js +69 -22
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +68 -23
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +3 -1
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +5 -11
- package/toolbar/toolbar.esm.js +3 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +4 -3
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +3 -2
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +7 -7
- package/tooltip/tooltip.esm.js +4 -3
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +3 -2
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +118 -88
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +139 -1
- package/tree/tree.esm.js +120 -90
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +116 -87
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +132 -102
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +138 -2
- package/treeselect/treeselect.esm.js +134 -104
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +133 -104
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +385 -198
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +305 -2
- package/treetable/treetable.esm.js +387 -200
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +383 -197
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +83 -33
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +59 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +85 -35
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +84 -35
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +6 -1
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +6 -1
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +6 -1
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +43 -29
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +78 -1
- package/virtualscroller/virtualscroller.esm.js +44 -30
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +43 -31
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1 -1
package/calendar/calendar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks, calendar, chevrondown, chevronleft, chevronright, chevronup, inputtext, overlayservice, ripple, utils, csstransition, portal) {
|
|
2
|
+
this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks, calendar, chevrondown, chevronleft, chevronright, chevronup, inputtext, overlayservice, ripple, utils, componentbase, csstransition, portal) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -25,6 +25,21 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
25
25
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
26
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
27
|
|
|
28
|
+
function _extends() {
|
|
29
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
31
|
+
var source = arguments[i];
|
|
32
|
+
for (var key in source) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
+
target[key] = source[key];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
40
|
+
return _extends.apply(this, arguments);
|
|
41
|
+
}
|
|
42
|
+
|
|
28
43
|
function _typeof(obj) {
|
|
29
44
|
"@babel/helpers - typeof";
|
|
30
45
|
|
|
@@ -66,21 +81,6 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
66
81
|
return obj;
|
|
67
82
|
}
|
|
68
83
|
|
|
69
|
-
function _extends() {
|
|
70
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
71
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
72
|
-
var source = arguments[i];
|
|
73
|
-
for (var key in source) {
|
|
74
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
75
|
-
target[key] = source[key];
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return target;
|
|
80
|
-
};
|
|
81
|
-
return _extends.apply(this, arguments);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
84
|
function _arrayLikeToArray$1(arr, len) {
|
|
85
85
|
if (len == null || len > arr.length) len = arr.length;
|
|
86
86
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -152,7 +152,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
152
152
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
var CalendarBase = {
|
|
155
|
+
var CalendarBase = componentbase.ComponentBase.extend({
|
|
156
156
|
defaultProps: {
|
|
157
157
|
__TYPE: 'Calendar',
|
|
158
158
|
appendTo: null,
|
|
@@ -246,17 +246,18 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
246
246
|
yearNavigatorTemplate: null,
|
|
247
247
|
yearRange: null,
|
|
248
248
|
children: undefined
|
|
249
|
-
},
|
|
250
|
-
getProps: function getProps(props) {
|
|
251
|
-
return utils.ObjectUtils.getMergedProps(props, CalendarBase.defaultProps);
|
|
252
|
-
},
|
|
253
|
-
getOtherProps: function getOtherProps(props) {
|
|
254
|
-
return utils.ObjectUtils.getDiffProps(props, CalendarBase.defaultProps);
|
|
255
249
|
}
|
|
256
|
-
};
|
|
250
|
+
});
|
|
257
251
|
|
|
258
252
|
var CalendarPanel = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
259
253
|
var createElement = function createElement() {
|
|
254
|
+
var panelProps = utils.mergeProps({
|
|
255
|
+
ref: ref,
|
|
256
|
+
className: props.className,
|
|
257
|
+
style: props.style,
|
|
258
|
+
onClick: props.onClick,
|
|
259
|
+
onMouseUp: props.onMouseUp
|
|
260
|
+
}, props.ptm('panel'));
|
|
260
261
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
261
262
|
nodeRef: ref,
|
|
262
263
|
classNames: "p-connected-overlay",
|
|
@@ -271,13 +272,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
271
272
|
onEntered: props.onEntered,
|
|
272
273
|
onExit: props.onExit,
|
|
273
274
|
onExited: props.onExited
|
|
274
|
-
}, /*#__PURE__*/React__namespace.createElement("div",
|
|
275
|
-
ref: ref,
|
|
276
|
-
className: props.className,
|
|
277
|
-
style: props.style,
|
|
278
|
-
onClick: props.onClick,
|
|
279
|
-
onMouseUp: props.onMouseUp
|
|
280
|
-
}, props.children));
|
|
275
|
+
}, /*#__PURE__*/React__namespace.createElement("div", panelProps, props.children));
|
|
281
276
|
};
|
|
282
277
|
var element = createElement();
|
|
283
278
|
return props.inline ? element : /*#__PURE__*/React__namespace.createElement(portal.Portal, {
|
|
@@ -287,12 +282,15 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
287
282
|
});
|
|
288
283
|
CalendarPanel.displayName = 'CalendarPanel';
|
|
289
284
|
|
|
285
|
+
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; }
|
|
286
|
+
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; }
|
|
290
287
|
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; } } }; }
|
|
291
288
|
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); }
|
|
292
289
|
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; }
|
|
293
290
|
var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
294
291
|
var _classNames;
|
|
295
|
-
var
|
|
292
|
+
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
293
|
+
var props = CalendarBase.getProps(inProps, context);
|
|
296
294
|
var _React$useState = React__namespace.useState(false),
|
|
297
295
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
298
296
|
focusedState = _React$useState2[0],
|
|
@@ -305,6 +303,15 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
305
303
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
306
304
|
viewDateState = _React$useState6[0],
|
|
307
305
|
setViewDateState = _React$useState6[1];
|
|
306
|
+
var _CalendarBase$setMeta = CalendarBase.setMetaData({
|
|
307
|
+
props: props,
|
|
308
|
+
state: {
|
|
309
|
+
focused: focusedState,
|
|
310
|
+
overlayVisible: overlayVisibleState,
|
|
311
|
+
viewDate: viewDateState
|
|
312
|
+
}
|
|
313
|
+
}),
|
|
314
|
+
ptm = _CalendarBase$setMeta.ptm;
|
|
308
315
|
var elementRef = React__namespace.useRef(null);
|
|
309
316
|
var overlayRef = React__namespace.useRef(null);
|
|
310
317
|
var inputRef = React__namespace.useRef(props.inputRef);
|
|
@@ -1080,7 +1087,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1080
1087
|
setCurrentYear(value.getFullYear());
|
|
1081
1088
|
};
|
|
1082
1089
|
var setNavigationState = function setNavigationState(newViewDate) {
|
|
1083
|
-
if (!props.showMinMaxRange || props.view !== 'date' || !overlayRef.current) {
|
|
1090
|
+
if (!newViewDate || !props.showMinMaxRange || props.view !== 'date' || !overlayRef.current) {
|
|
1084
1091
|
return;
|
|
1085
1092
|
}
|
|
1086
1093
|
var navPrev = utils.DomHandler.findSingle(overlayRef.current, '.p-datepicker-prev');
|
|
@@ -1098,7 +1105,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1098
1105
|
firstDayOfMonth.setMonth(11, 1);
|
|
1099
1106
|
firstDayOfMonth.setFullYear(firstDayOfMonth.getFullYear() - 1);
|
|
1100
1107
|
} else {
|
|
1101
|
-
firstDayOfMonth.setMonth(firstDayOfMonth.getMonth()
|
|
1108
|
+
firstDayOfMonth.setMonth(firstDayOfMonth.getMonth(), 1);
|
|
1102
1109
|
}
|
|
1103
1110
|
firstDayOfMonth.setHours(0);
|
|
1104
1111
|
firstDayOfMonth.setMinutes(0);
|
|
@@ -1499,7 +1506,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1499
1506
|
var onOverlayEnter = function onOverlayEnter() {
|
|
1500
1507
|
if (props.autoZIndex) {
|
|
1501
1508
|
var key = props.touchUI ? 'modal' : 'overlay';
|
|
1502
|
-
utils.ZIndexUtils.set(key, overlayRef.current, PrimeReact__default["default"].autoZIndex, props.baseZIndex || PrimeReact__default["default"].zIndex[key]);
|
|
1509
|
+
utils.ZIndexUtils.set(key, overlayRef.current, context && context.autoZIndex || PrimeReact__default["default"].autoZIndex, props.baseZIndex || context && context.zIndex[key] || PrimeReact__default["default"].zIndex[key]);
|
|
1503
1510
|
}
|
|
1504
1511
|
alignOverlay();
|
|
1505
1512
|
};
|
|
@@ -1521,7 +1528,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1521
1528
|
if (props.touchUI) {
|
|
1522
1529
|
enableModality();
|
|
1523
1530
|
} else if (overlayRef && overlayRef.current && inputRef && inputRef.current) {
|
|
1524
|
-
utils.DomHandler.alignOverlay(overlayRef.current, inputRef.current, props.appendTo || PrimeReact__default["default"].appendTo);
|
|
1531
|
+
utils.DomHandler.alignOverlay(overlayRef.current, inputRef.current, props.appendTo || context && context.appendTo || PrimeReact__default["default"].appendTo);
|
|
1525
1532
|
if (appendDisabled()) {
|
|
1526
1533
|
utils.DomHandler.relativePosition(overlayRef.current, inputRef.current);
|
|
1527
1534
|
} else {
|
|
@@ -1749,9 +1756,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1749
1756
|
if (props.minDate.getFullYear() > year) {
|
|
1750
1757
|
validMin = false;
|
|
1751
1758
|
} else if (props.minDate.getFullYear() === year) {
|
|
1752
|
-
if (props.minDate.getMonth() > month) {
|
|
1759
|
+
if (month > -1 && props.minDate.getMonth() > month) {
|
|
1753
1760
|
validMin = false;
|
|
1754
|
-
} else if (props.minDate.getMonth() === month) {
|
|
1761
|
+
} else if (month > -1 && props.minDate.getMonth() === month) {
|
|
1755
1762
|
if (day > 0 && props.minDate.getDate() > day) {
|
|
1756
1763
|
validMin = false;
|
|
1757
1764
|
}
|
|
@@ -1762,9 +1769,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1762
1769
|
if (props.maxDate.getFullYear() < year) {
|
|
1763
1770
|
validMax = false;
|
|
1764
1771
|
} else if (props.maxDate.getFullYear() === year) {
|
|
1765
|
-
if (props.maxDate.getMonth() < month) {
|
|
1772
|
+
if (month > -1 && props.maxDate.getMonth() < month) {
|
|
1766
1773
|
validMax = false;
|
|
1767
|
-
} else if (props.maxDate.getMonth() === month) {
|
|
1774
|
+
} else if (month > -1 && props.maxDate.getMonth() === month) {
|
|
1768
1775
|
if (day > 0 && props.maxDate.getDate() < day) {
|
|
1769
1776
|
validMax = false;
|
|
1770
1777
|
}
|
|
@@ -2326,7 +2333,6 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2326
2333
|
utils.ObjectUtils.combinedRefs(inputRef, props.inputRef);
|
|
2327
2334
|
}, [inputRef, props.inputRef]);
|
|
2328
2335
|
hooks.useMountEffect(function () {
|
|
2329
|
-
var unbindMaskEvents = null;
|
|
2330
2336
|
var viewDate = getViewDate(props.viewDate);
|
|
2331
2337
|
validateDate(viewDate);
|
|
2332
2338
|
setViewDateState(viewDate);
|
|
@@ -2341,7 +2347,21 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2341
2347
|
overlayRef.current.style.width = utils.DomHandler.getOuterWidth(overlayRef.current) + 'px';
|
|
2342
2348
|
}
|
|
2343
2349
|
}
|
|
2344
|
-
}
|
|
2350
|
+
}
|
|
2351
|
+
if (props.value) {
|
|
2352
|
+
updateInputfield(props.value);
|
|
2353
|
+
setValue(props.value);
|
|
2354
|
+
}
|
|
2355
|
+
if (props.autoFocus) {
|
|
2356
|
+
// delay showing until rendered so `alignPanel()` method aligns the popup in the right location
|
|
2357
|
+
setTimeout(function () {
|
|
2358
|
+
return utils.DomHandler.focus(inputRef.current, props.autoFocus);
|
|
2359
|
+
}, 200);
|
|
2360
|
+
}
|
|
2361
|
+
});
|
|
2362
|
+
hooks.useUpdateEffect(function () {
|
|
2363
|
+
var unbindMaskEvents = null;
|
|
2364
|
+
if (props.mask) {
|
|
2345
2365
|
unbindMaskEvents = utils.mask(inputRef.current, {
|
|
2346
2366
|
mask: props.mask,
|
|
2347
2367
|
readOnly: props.readOnlyInput || props.disabled,
|
|
@@ -2354,20 +2374,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2354
2374
|
}
|
|
2355
2375
|
}).unbindEvents;
|
|
2356
2376
|
}
|
|
2357
|
-
if (props.value) {
|
|
2358
|
-
updateInputfield(props.value);
|
|
2359
|
-
setValue(props.value);
|
|
2360
|
-
}
|
|
2361
|
-
if (props.autoFocus) {
|
|
2362
|
-
// delay showing until rendered so `alignPanel()` method aligns the popup in the right location
|
|
2363
|
-
setTimeout(function () {
|
|
2364
|
-
return utils.DomHandler.focus(inputRef.current, props.autoFocus);
|
|
2365
|
-
}, 200);
|
|
2366
|
-
}
|
|
2367
2377
|
return function () {
|
|
2368
2378
|
props.mask && unbindMaskEvents && unbindMaskEvents();
|
|
2369
2379
|
};
|
|
2370
|
-
});
|
|
2380
|
+
}, [props.mask]);
|
|
2371
2381
|
hooks.useUpdateEffect(function () {
|
|
2372
2382
|
setCurrentView(props.view);
|
|
2373
2383
|
}, [props.view]);
|
|
@@ -2469,18 +2479,18 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2469
2479
|
}
|
|
2470
2480
|
};
|
|
2471
2481
|
var iconClassName = 'p-datepicker-prev-icon';
|
|
2472
|
-
var
|
|
2473
|
-
className: iconClassName
|
|
2474
|
-
});
|
|
2475
|
-
var backwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
2482
|
+
var previousIconProps = utils.mergeProps({
|
|
2476
2483
|
className: iconClassName
|
|
2477
|
-
},
|
|
2484
|
+
}, ptm('previousIcon'));
|
|
2485
|
+
var icon = props.prevIcon || /*#__PURE__*/React__namespace.createElement(chevronleft.ChevronLeftIcon, previousIconProps);
|
|
2486
|
+
var backwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, previousIconProps), {
|
|
2478
2487
|
props: props
|
|
2479
2488
|
});
|
|
2480
|
-
|
|
2481
|
-
type:
|
|
2482
|
-
className:
|
|
2483
|
-
}, navigatorProps),
|
|
2489
|
+
var previousButtonProps = utils.mergeProps(_objectSpread({
|
|
2490
|
+
type: 'button',
|
|
2491
|
+
className: 'p-datepicker-prev'
|
|
2492
|
+
}, navigatorProps), ptm('previousButton'));
|
|
2493
|
+
return /*#__PURE__*/React__namespace.createElement("button", previousButtonProps, backwardNavigatorIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
2484
2494
|
};
|
|
2485
2495
|
var createForwardNavigator = function createForwardNavigator(isVisible) {
|
|
2486
2496
|
var navigatorProps = isVisible ? {
|
|
@@ -2494,18 +2504,18 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2494
2504
|
}
|
|
2495
2505
|
};
|
|
2496
2506
|
var iconClassName = 'p-datepicker-next-icon';
|
|
2497
|
-
var
|
|
2498
|
-
className: iconClassName
|
|
2499
|
-
});
|
|
2500
|
-
var forwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
2507
|
+
var nextIconProps = utils.mergeProps({
|
|
2501
2508
|
className: iconClassName
|
|
2502
|
-
},
|
|
2509
|
+
}, ptm('nextIcon'));
|
|
2510
|
+
var icon = props.nextIcon || /*#__PURE__*/React__namespace.createElement(chevronright.ChevronRightIcon, nextIconProps);
|
|
2511
|
+
var forwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, nextIconProps), {
|
|
2503
2512
|
props: props
|
|
2504
2513
|
});
|
|
2505
|
-
|
|
2506
|
-
type:
|
|
2507
|
-
className:
|
|
2508
|
-
}, navigatorProps),
|
|
2514
|
+
var nextButtonProps = utils.mergeProps(_objectSpread({
|
|
2515
|
+
type: 'button',
|
|
2516
|
+
className: 'p-datepicker-next'
|
|
2517
|
+
}, navigatorProps), ptm('nextButton'));
|
|
2518
|
+
return /*#__PURE__*/React__namespace.createElement("button", nextButtonProps, forwardNavigatorIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
2509
2519
|
};
|
|
2510
2520
|
var createTitleMonthElement = function createTitleMonthElement(month) {
|
|
2511
2521
|
var monthNames = PrimeReact.localeOption('monthNames', props.locale);
|
|
@@ -2524,17 +2534,20 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2524
2534
|
var displayedMonthNames = displayedMonthOptions.map(function (option) {
|
|
2525
2535
|
return option.label;
|
|
2526
2536
|
});
|
|
2527
|
-
var
|
|
2528
|
-
className:
|
|
2537
|
+
var selectProps = utils.mergeProps({
|
|
2538
|
+
className: 'p-datepicker-month',
|
|
2529
2539
|
onChange: function onChange(e) {
|
|
2530
2540
|
return onMonthDropdownChange(e, e.target.value);
|
|
2531
2541
|
},
|
|
2532
2542
|
value: viewMonth
|
|
2533
|
-
},
|
|
2534
|
-
|
|
2535
|
-
|
|
2543
|
+
}, ptm('select'));
|
|
2544
|
+
var _content = /*#__PURE__*/React__namespace.createElement("select", selectProps, displayedMonthOptions.map(function (option) {
|
|
2545
|
+
var optionProps = utils.mergeProps({
|
|
2536
2546
|
value: option.value
|
|
2537
|
-
}, option
|
|
2547
|
+
}, ptm('option'));
|
|
2548
|
+
return /*#__PURE__*/React__namespace.createElement("option", _extends({}, optionProps, {
|
|
2549
|
+
key: option.label
|
|
2550
|
+
}), option.label);
|
|
2538
2551
|
}));
|
|
2539
2552
|
if (props.monthNavigatorTemplate) {
|
|
2540
2553
|
var defaultContentOptions = {
|
|
@@ -2550,11 +2563,12 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2550
2563
|
}
|
|
2551
2564
|
return _content;
|
|
2552
2565
|
}
|
|
2553
|
-
|
|
2554
|
-
className:
|
|
2566
|
+
var monthTitleProps = utils.mergeProps({
|
|
2567
|
+
className: 'p-datepicker-month p-link',
|
|
2555
2568
|
onClick: switchToMonthView,
|
|
2556
2569
|
disabled: switchViewButtonDisabled()
|
|
2557
|
-
},
|
|
2570
|
+
}, ptm('monthTitle'));
|
|
2571
|
+
return currentView === 'date' && /*#__PURE__*/React__namespace.createElement("button", monthTitleProps, monthNames[month]);
|
|
2558
2572
|
};
|
|
2559
2573
|
var createTitleYearElement = function createTitleYearElement(metaYear) {
|
|
2560
2574
|
if (props.yearNavigator) {
|
|
@@ -2570,17 +2584,20 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2570
2584
|
var displayedYearNames = _yearOptions2.filter(function (year) {
|
|
2571
2585
|
return !(props.minDate && props.minDate.getFullYear() > year) && !(props.maxDate && props.maxDate.getFullYear() < year);
|
|
2572
2586
|
});
|
|
2573
|
-
var
|
|
2574
|
-
className:
|
|
2587
|
+
var selectProps = utils.mergeProps({
|
|
2588
|
+
className: 'p-datepicker-year',
|
|
2575
2589
|
onChange: function onChange(e) {
|
|
2576
2590
|
return onYearDropdownChange(e, e.target.value);
|
|
2577
2591
|
},
|
|
2578
2592
|
value: viewYear
|
|
2579
|
-
},
|
|
2580
|
-
|
|
2581
|
-
|
|
2593
|
+
}, ptm('select'));
|
|
2594
|
+
var _content2 = /*#__PURE__*/React__namespace.createElement("select", selectProps, displayedYearNames.map(function (year) {
|
|
2595
|
+
var optionProps = utils.mergeProps({
|
|
2582
2596
|
value: year
|
|
2583
|
-
},
|
|
2597
|
+
}, ptm('option'));
|
|
2598
|
+
return /*#__PURE__*/React__namespace.createElement("option", _extends({}, optionProps, {
|
|
2599
|
+
key: year
|
|
2600
|
+
}), year);
|
|
2584
2601
|
}));
|
|
2585
2602
|
if (props.yearNavigatorTemplate) {
|
|
2586
2603
|
var options = displayedYearNames.map(function (name, i) {
|
|
@@ -2604,18 +2621,23 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2604
2621
|
return _content2;
|
|
2605
2622
|
}
|
|
2606
2623
|
var displayYear = props.numberOfMonths > 1 ? metaYear : currentYear;
|
|
2607
|
-
|
|
2608
|
-
className:
|
|
2609
|
-
onClick:
|
|
2624
|
+
var yearTitleProps = utils.mergeProps({
|
|
2625
|
+
className: 'p-datepicker-year p-link',
|
|
2626
|
+
onClick: function onClick(e) {
|
|
2627
|
+
return switchToYearView(e);
|
|
2628
|
+
},
|
|
2610
2629
|
disabled: switchViewButtonDisabled()
|
|
2611
|
-
},
|
|
2630
|
+
}, ptm('yearTitle'));
|
|
2631
|
+
return currentView !== 'year' && /*#__PURE__*/React__namespace.createElement("button", yearTitleProps, displayYear);
|
|
2612
2632
|
};
|
|
2613
2633
|
var createTitleDecadeElement = function createTitleDecadeElement() {
|
|
2614
2634
|
var years = yearPickerValues();
|
|
2635
|
+
var decadeTitleProps = utils.mergeProps({
|
|
2636
|
+
className: 'p-datepicker-decade'
|
|
2637
|
+
}, ptm('decadeTitle'));
|
|
2615
2638
|
if (currentView === 'year') {
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
}, props.decadeTemplate ? props.decadeTemplate(years) : /*#__PURE__*/React__namespace.createElement("span", null, "".concat(yearPickerValues()[0], " - ").concat(yearPickerValues()[yearPickerValues().length - 1])));
|
|
2639
|
+
var decadeTitleTextProps = utils.mergeProps(ptm('decadeTitleText'));
|
|
2640
|
+
return /*#__PURE__*/React__namespace.createElement("span", decadeTitleProps, props.decadeTemplate ? props.decadeTemplate(years) : /*#__PURE__*/React__namespace.createElement("span", decadeTitleTextProps, "".concat(yearPickerValues()[0], " - ").concat(yearPickerValues()[yearPickerValues().length - 1])));
|
|
2619
2641
|
}
|
|
2620
2642
|
return null;
|
|
2621
2643
|
};
|
|
@@ -2623,23 +2645,30 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2623
2645
|
var month = createTitleMonthElement(monthMetaData.month);
|
|
2624
2646
|
var year = createTitleYearElement(monthMetaData.year);
|
|
2625
2647
|
var decade = createTitleDecadeElement();
|
|
2626
|
-
|
|
2627
|
-
className:
|
|
2628
|
-
},
|
|
2648
|
+
var titleProps = utils.mergeProps({
|
|
2649
|
+
className: 'p-datepicker-title'
|
|
2650
|
+
}, ptm('title'));
|
|
2651
|
+
return /*#__PURE__*/React__namespace.createElement("div", titleProps, month, year, decade);
|
|
2629
2652
|
};
|
|
2630
2653
|
var createDayNames = function createDayNames(weekDays) {
|
|
2654
|
+
var weekDayProps = utils.mergeProps(ptm('weekDay'));
|
|
2655
|
+
var tableHeaderCellProps = utils.mergeProps({
|
|
2656
|
+
scope: 'col'
|
|
2657
|
+
}, ptm(ptm('tableHeaderCell')));
|
|
2631
2658
|
var dayNames = weekDays.map(function (weekDay, index) {
|
|
2632
|
-
return /*#__PURE__*/React__namespace.createElement("th", {
|
|
2633
|
-
key: "".concat(weekDay, "-").concat(index)
|
|
2634
|
-
|
|
2635
|
-
}, /*#__PURE__*/React__namespace.createElement("span", null, weekDay));
|
|
2659
|
+
return /*#__PURE__*/React__namespace.createElement("th", _extends({}, tableHeaderCellProps, {
|
|
2660
|
+
key: "".concat(weekDay, "-").concat(index)
|
|
2661
|
+
}), /*#__PURE__*/React__namespace.createElement("span", weekDayProps, weekDay));
|
|
2636
2662
|
});
|
|
2637
2663
|
if (props.showWeek) {
|
|
2638
|
-
var
|
|
2639
|
-
scope:
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2664
|
+
var weekHeaderProps = utils.mergeProps({
|
|
2665
|
+
scope: 'col',
|
|
2666
|
+
className: 'p-datepicker-weekheader p-disabled'
|
|
2667
|
+
}, ptm('weekHeader'));
|
|
2668
|
+
var weekLabel = utils.mergeProps(ptm('weekLabel'));
|
|
2669
|
+
var weekHeader = /*#__PURE__*/React__namespace.createElement("th", _extends({}, weekHeaderProps, {
|
|
2670
|
+
key: "wn"
|
|
2671
|
+
}), /*#__PURE__*/React__namespace.createElement("span", weekLabel, PrimeReact.localeOption('weekHeader', props.locale)));
|
|
2643
2672
|
return [weekHeader].concat(_toConsumableArray(dayNames));
|
|
2644
2673
|
}
|
|
2645
2674
|
return dayNames;
|
|
@@ -2668,37 +2697,49 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2668
2697
|
'p-disabled': !date.selectable
|
|
2669
2698
|
});
|
|
2670
2699
|
var content = date.otherMonth && !props.showOtherMonths ? null : createDateCellContent(date, dateClassName, groupIndex);
|
|
2671
|
-
|
|
2672
|
-
key: date.day,
|
|
2700
|
+
var dayProps = utils.mergeProps({
|
|
2673
2701
|
className: cellClassName
|
|
2674
|
-
},
|
|
2702
|
+
}, ptm('day'));
|
|
2703
|
+
return /*#__PURE__*/React__namespace.createElement("td", _extends({}, dayProps, {
|
|
2704
|
+
key: date.day
|
|
2705
|
+
}), content);
|
|
2675
2706
|
});
|
|
2676
2707
|
if (props.showWeek) {
|
|
2677
|
-
var
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
className:
|
|
2682
|
-
},
|
|
2708
|
+
var weekNumberProps = utils.mergeProps({
|
|
2709
|
+
className: 'p-datepicker-weeknumber'
|
|
2710
|
+
}, ptm('weekNumber'));
|
|
2711
|
+
var weekLabelContainerProps = utils.mergeProps({
|
|
2712
|
+
className: 'p-disabled'
|
|
2713
|
+
}, ptm('weekLabelContainer'));
|
|
2714
|
+
var weekNumberCell = /*#__PURE__*/React__namespace.createElement("td", _extends({}, weekNumberProps, {
|
|
2715
|
+
key: 'wn' + weekNumber
|
|
2716
|
+
}), /*#__PURE__*/React__namespace.createElement("span", weekLabelContainerProps, weekNumber));
|
|
2683
2717
|
return [weekNumberCell].concat(_toConsumableArray(week));
|
|
2684
2718
|
}
|
|
2685
2719
|
return week;
|
|
2686
2720
|
};
|
|
2687
2721
|
var createDates = function createDates(monthMetaData, groupIndex) {
|
|
2722
|
+
var tableBodyRowProps = utils.mergeProps(ptm('tableBodyRowProps'));
|
|
2688
2723
|
return monthMetaData.dates.map(function (weekDates, index) {
|
|
2689
|
-
return /*#__PURE__*/React__namespace.createElement("tr", {
|
|
2724
|
+
return /*#__PURE__*/React__namespace.createElement("tr", _extends({}, tableBodyRowProps, {
|
|
2690
2725
|
key: index
|
|
2691
|
-
}, createWeek(weekDates, monthMetaData.weekNumbers[index], groupIndex));
|
|
2726
|
+
}), createWeek(weekDates, monthMetaData.weekNumbers[index], groupIndex));
|
|
2692
2727
|
});
|
|
2693
2728
|
};
|
|
2694
2729
|
var createDateViewGrid = function createDateViewGrid(monthMetaData, weekDays, groupIndex) {
|
|
2695
2730
|
var dayNames = createDayNames(weekDays);
|
|
2696
2731
|
var dates = createDates(monthMetaData, groupIndex);
|
|
2697
|
-
|
|
2698
|
-
className:
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2732
|
+
var containerProps = utils.mergeProps({
|
|
2733
|
+
className: 'p-datepicker-calendar-container',
|
|
2734
|
+
key: utils.UniqueComponentId('calendar_container_')
|
|
2735
|
+
}, ptm('container'));
|
|
2736
|
+
var tableProps = utils.mergeProps({
|
|
2737
|
+
className: 'p-datepicker-calendar'
|
|
2738
|
+
}, ptm('table'));
|
|
2739
|
+
var tableHeaderProps = utils.mergeProps(ptm('tableHeader'));
|
|
2740
|
+
var tableHeaderRowProps = utils.mergeProps(ptm('tableHeaderRow'));
|
|
2741
|
+
var tableBodyProps = utils.mergeProps(ptm('tableBody'));
|
|
2742
|
+
return currentView === 'date' && /*#__PURE__*/React__namespace.createElement("div", containerProps, /*#__PURE__*/React__namespace.createElement("table", tableProps, /*#__PURE__*/React__namespace.createElement("thead", tableHeaderProps, /*#__PURE__*/React__namespace.createElement("tr", tableHeaderRowProps, dayNames)), /*#__PURE__*/React__namespace.createElement("tbody", tableBodyProps, dates)));
|
|
2702
2743
|
};
|
|
2703
2744
|
var createMonth = function createMonth(monthMetaData, index) {
|
|
2704
2745
|
var weekDays = createWeekDaysMeta();
|
|
@@ -2708,12 +2749,16 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2708
2749
|
var dateViewGrid = createDateViewGrid(monthMetaData, weekDays, index);
|
|
2709
2750
|
var header = props.headerTemplate ? props.headerTemplate() : null;
|
|
2710
2751
|
var monthKey = monthMetaData.month + '-' + monthMetaData.year;
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
className:
|
|
2716
|
-
|
|
2752
|
+
var groupProps = utils.mergeProps({
|
|
2753
|
+
className: 'p-datepicker-group'
|
|
2754
|
+
}, ptm('group'));
|
|
2755
|
+
var headerProps = utils.mergeProps({
|
|
2756
|
+
className: 'p-datepicker-header',
|
|
2757
|
+
key: index
|
|
2758
|
+
}, ptm('header'));
|
|
2759
|
+
return /*#__PURE__*/React__namespace.createElement("div", _extends({}, groupProps, {
|
|
2760
|
+
key: monthKey
|
|
2761
|
+
}), /*#__PURE__*/React__namespace.createElement("div", headerProps, header, backwardNavigator, title, forwardNavigator), dateViewGrid);
|
|
2717
2762
|
};
|
|
2718
2763
|
var createMonths = function createMonths(monthsMetaData) {
|
|
2719
2764
|
var groups = monthsMetaData.map(createMonth);
|
|
@@ -2748,15 +2793,19 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2748
2793
|
var forwardNavigator = createForwardNavigator(true);
|
|
2749
2794
|
var yearElement = createTitleYearElement(getViewDate().getFullYear());
|
|
2750
2795
|
var decade = createTitleDecadeElement();
|
|
2751
|
-
|
|
2752
|
-
className:
|
|
2753
|
-
},
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
className:
|
|
2759
|
-
},
|
|
2796
|
+
var groupContainerProps = utils.mergeProps({
|
|
2797
|
+
className: 'p-datepicker-group-container'
|
|
2798
|
+
}, ptm('groupContainer'));
|
|
2799
|
+
var groupProps = utils.mergeProps({
|
|
2800
|
+
className: 'p-datepicker-group'
|
|
2801
|
+
}, ptm('group'));
|
|
2802
|
+
var headerProps = utils.mergeProps({
|
|
2803
|
+
className: 'p-datepicker-header'
|
|
2804
|
+
}, ptm('header'));
|
|
2805
|
+
var titleProps = utils.mergeProps({
|
|
2806
|
+
className: 'p-datepicker-title'
|
|
2807
|
+
}, ptm('title'));
|
|
2808
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", groupContainerProps, /*#__PURE__*/React__namespace.createElement("div", groupProps, /*#__PURE__*/React__namespace.createElement("div", headerProps, backwardNavigator, /*#__PURE__*/React__namespace.createElement("div", titleProps, yearElement, decade), forwardNavigator))));
|
|
2760
2809
|
};
|
|
2761
2810
|
var createDatePicker = function createDatePicker() {
|
|
2762
2811
|
if (!props.timeOnly) {
|
|
@@ -2768,10 +2817,12 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2768
2817
|
}
|
|
2769
2818
|
return null;
|
|
2770
2819
|
};
|
|
2771
|
-
var
|
|
2820
|
+
var incrementIconProps = utils.mergeProps(ptm('incrementIcon'));
|
|
2821
|
+
var decrementIconProps = utils.mergeProps(ptm('decrementIcon'));
|
|
2822
|
+
var incrementIcon = utils.IconUtils.getJSXIcon(props.incrementIcon || /*#__PURE__*/React__namespace.createElement(chevronup.ChevronUpIcon, incrementIconProps), _objectSpread({}, incrementIconProps), {
|
|
2772
2823
|
props: props
|
|
2773
2824
|
});
|
|
2774
|
-
var decrementIcon = utils.IconUtils.getJSXIcon(props.decrementIcon || /*#__PURE__*/React__namespace.createElement(chevrondown.ChevronDownIcon,
|
|
2825
|
+
var decrementIcon = utils.IconUtils.getJSXIcon(props.decrementIcon || /*#__PURE__*/React__namespace.createElement(chevrondown.ChevronDownIcon, decrementIconProps), _objectSpread({}, decrementIconProps), {
|
|
2775
2826
|
props: props
|
|
2776
2827
|
});
|
|
2777
2828
|
var createHourPicker = function createHourPicker() {
|
|
@@ -2784,12 +2835,14 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2784
2835
|
if (props.hourFormat === '12') {
|
|
2785
2836
|
if (hour === 0) hour = 12;else if (hour > 11 && hour !== 12) hour = hour - 12;
|
|
2786
2837
|
}
|
|
2838
|
+
var hourProps = utils.mergeProps(ptm('hour'));
|
|
2787
2839
|
var hourDisplay = hour < 10 ? '0' + hour : hour;
|
|
2788
|
-
|
|
2789
|
-
className:
|
|
2790
|
-
},
|
|
2791
|
-
|
|
2792
|
-
|
|
2840
|
+
var hourPickerProps = utils.mergeProps({
|
|
2841
|
+
className: 'p-hour-picker'
|
|
2842
|
+
}, ptm('hourPicker'));
|
|
2843
|
+
var incrementButtonProps = utils.mergeProps({
|
|
2844
|
+
type: 'button',
|
|
2845
|
+
className: 'p-link',
|
|
2793
2846
|
onMouseDown: function onMouseDown(e) {
|
|
2794
2847
|
return onTimePickerElementMouseDown(e, 0, 1);
|
|
2795
2848
|
},
|
|
@@ -2798,9 +2851,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2798
2851
|
onKeyDown: function onKeyDown(e) {
|
|
2799
2852
|
return onContainerButtonKeydown(e);
|
|
2800
2853
|
}
|
|
2801
|
-
},
|
|
2802
|
-
|
|
2803
|
-
|
|
2854
|
+
}, ptm('incrementButton'));
|
|
2855
|
+
var decrementButtonProps = utils.mergeProps({
|
|
2856
|
+
type: 'button',
|
|
2857
|
+
className: 'p-link',
|
|
2804
2858
|
onMouseDown: function onMouseDown(e) {
|
|
2805
2859
|
return onTimePickerElementMouseDown(e, 0, -1);
|
|
2806
2860
|
},
|
|
@@ -2809,18 +2863,21 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2809
2863
|
onKeyDown: function onKeyDown(e) {
|
|
2810
2864
|
return onContainerButtonKeydown(e);
|
|
2811
2865
|
}
|
|
2812
|
-
},
|
|
2866
|
+
}, ptm('decrementButton'));
|
|
2867
|
+
return /*#__PURE__*/React__namespace.createElement("div", hourPickerProps, /*#__PURE__*/React__namespace.createElement("button", incrementButtonProps, incrementIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)), /*#__PURE__*/React__namespace.createElement("span", hourProps, hourDisplay), /*#__PURE__*/React__namespace.createElement("button", decrementButtonProps, decrementIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)));
|
|
2813
2868
|
};
|
|
2814
2869
|
var createMinutePicker = function createMinutePicker() {
|
|
2815
2870
|
var currentTime = getCurrentDateTime();
|
|
2816
2871
|
var minute = doStepMinute(currentTime.getMinutes());
|
|
2817
2872
|
minute = minute > 59 ? minute - 60 : minute;
|
|
2873
|
+
var minuteProps = utils.mergeProps(ptm('minute'));
|
|
2818
2874
|
var minuteDisplay = minute < 10 ? '0' + minute : minute;
|
|
2819
|
-
|
|
2820
|
-
className:
|
|
2821
|
-
},
|
|
2822
|
-
|
|
2823
|
-
|
|
2875
|
+
var minutePickerProps = utils.mergeProps({
|
|
2876
|
+
className: 'p-minute-picker'
|
|
2877
|
+
}, ptm('minutePicker'));
|
|
2878
|
+
var incrementButtonProps = utils.mergeProps({
|
|
2879
|
+
type: 'button',
|
|
2880
|
+
className: 'p-link',
|
|
2824
2881
|
onMouseDown: function onMouseDown(e) {
|
|
2825
2882
|
return onTimePickerElementMouseDown(e, 1, 1);
|
|
2826
2883
|
},
|
|
@@ -2829,9 +2886,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2829
2886
|
onKeyDown: function onKeyDown(e) {
|
|
2830
2887
|
return onContainerButtonKeydown(e);
|
|
2831
2888
|
}
|
|
2832
|
-
},
|
|
2833
|
-
|
|
2834
|
-
|
|
2889
|
+
}, ptm('incrementButton'));
|
|
2890
|
+
var decrementButtonProps = utils.mergeProps({
|
|
2891
|
+
type: 'button',
|
|
2892
|
+
className: 'p-link',
|
|
2835
2893
|
onMouseDown: function onMouseDown(e) {
|
|
2836
2894
|
return onTimePickerElementMouseDown(e, 1, -1);
|
|
2837
2895
|
},
|
|
@@ -2840,18 +2898,21 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2840
2898
|
onKeyDown: function onKeyDown(e) {
|
|
2841
2899
|
return onContainerButtonKeydown(e);
|
|
2842
2900
|
}
|
|
2843
|
-
},
|
|
2901
|
+
}, ptm('decrementButton'));
|
|
2902
|
+
return /*#__PURE__*/React__namespace.createElement("div", minutePickerProps, /*#__PURE__*/React__namespace.createElement("button", incrementButtonProps, incrementIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)), /*#__PURE__*/React__namespace.createElement("span", minuteProps, minuteDisplay), /*#__PURE__*/React__namespace.createElement("button", decrementButtonProps, decrementIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)));
|
|
2844
2903
|
};
|
|
2845
2904
|
var createSecondPicker = function createSecondPicker() {
|
|
2846
2905
|
if (props.showSeconds) {
|
|
2847
2906
|
var currentTime = getCurrentDateTime();
|
|
2907
|
+
var secondProps = utils.mergeProps(ptm('second'));
|
|
2848
2908
|
var second = currentTime.getSeconds();
|
|
2849
2909
|
var secondDisplay = second < 10 ? '0' + second : second;
|
|
2850
|
-
|
|
2851
|
-
className:
|
|
2852
|
-
},
|
|
2853
|
-
|
|
2854
|
-
|
|
2910
|
+
var secondPickerProps = utils.mergeProps({
|
|
2911
|
+
className: 'p-second-picker'
|
|
2912
|
+
}, ptm('secondPicker'));
|
|
2913
|
+
var incrementButtonProps = utils.mergeProps({
|
|
2914
|
+
type: 'button',
|
|
2915
|
+
className: 'p-link',
|
|
2855
2916
|
onMouseDown: function onMouseDown(e) {
|
|
2856
2917
|
return onTimePickerElementMouseDown(e, 2, 1);
|
|
2857
2918
|
},
|
|
@@ -2860,9 +2921,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2860
2921
|
onKeyDown: function onKeyDown(e) {
|
|
2861
2922
|
return onContainerButtonKeydown(e);
|
|
2862
2923
|
}
|
|
2863
|
-
},
|
|
2864
|
-
|
|
2865
|
-
|
|
2924
|
+
}, ptm('incrementButton'));
|
|
2925
|
+
var decrementButtonProps = utils.mergeProps({
|
|
2926
|
+
type: 'button',
|
|
2927
|
+
className: 'p-link',
|
|
2866
2928
|
onMouseDown: function onMouseDown(e) {
|
|
2867
2929
|
return onTimePickerElementMouseDown(e, 2, -1);
|
|
2868
2930
|
},
|
|
@@ -2871,20 +2933,23 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2871
2933
|
onKeyDown: function onKeyDown(e) {
|
|
2872
2934
|
return onContainerButtonKeydown(e);
|
|
2873
2935
|
}
|
|
2874
|
-
},
|
|
2936
|
+
}, ptm('decrementButton'));
|
|
2937
|
+
return /*#__PURE__*/React__namespace.createElement("div", secondPickerProps, /*#__PURE__*/React__namespace.createElement("button", incrementButtonProps, incrementIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)), /*#__PURE__*/React__namespace.createElement("span", secondProps, secondDisplay), /*#__PURE__*/React__namespace.createElement("button", decrementButtonProps, decrementIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)));
|
|
2875
2938
|
}
|
|
2876
2939
|
return null;
|
|
2877
2940
|
};
|
|
2878
2941
|
var createMiliSecondPicker = function createMiliSecondPicker() {
|
|
2879
2942
|
if (props.showMillisec) {
|
|
2880
2943
|
var currentTime = getCurrentDateTime();
|
|
2944
|
+
var millisecondProps = utils.mergeProps(ptm('millisecond'));
|
|
2881
2945
|
var millisecond = currentTime.getMilliseconds();
|
|
2882
2946
|
var millisecondDisplay = millisecond < 100 ? (millisecond < 10 ? '00' : '0') + millisecond : millisecond;
|
|
2883
|
-
|
|
2884
|
-
className:
|
|
2885
|
-
},
|
|
2886
|
-
|
|
2887
|
-
|
|
2947
|
+
var millisecondPickerProps = utils.mergeProps({
|
|
2948
|
+
className: 'p-millisecond-picker'
|
|
2949
|
+
}, ptm('millisecond'));
|
|
2950
|
+
var incrementButtonProps = utils.mergeProps({
|
|
2951
|
+
type: 'button',
|
|
2952
|
+
className: 'p-link',
|
|
2888
2953
|
onMouseDown: function onMouseDown(e) {
|
|
2889
2954
|
return onTimePickerElementMouseDown(e, 3, 1);
|
|
2890
2955
|
},
|
|
@@ -2893,9 +2958,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2893
2958
|
onKeyDown: function onKeyDown(e) {
|
|
2894
2959
|
return onContainerButtonKeydown(e);
|
|
2895
2960
|
}
|
|
2896
|
-
},
|
|
2897
|
-
|
|
2898
|
-
|
|
2961
|
+
}, ptm('incrementButton'));
|
|
2962
|
+
var decrementButtonProps = utils.mergeProps({
|
|
2963
|
+
type: 'button',
|
|
2964
|
+
className: 'p-link',
|
|
2899
2965
|
onMouseDown: function onMouseDown(e) {
|
|
2900
2966
|
return onTimePickerElementMouseDown(e, 3, -1);
|
|
2901
2967
|
},
|
|
@@ -2904,7 +2970,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2904
2970
|
onKeyDown: function onKeyDown(e) {
|
|
2905
2971
|
return onContainerButtonKeydown(e);
|
|
2906
2972
|
}
|
|
2907
|
-
},
|
|
2973
|
+
}, ptm('decrementButton'));
|
|
2974
|
+
return /*#__PURE__*/React__namespace.createElement("div", millisecondPickerProps, /*#__PURE__*/React__namespace.createElement("button", incrementButtonProps, incrementIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)), /*#__PURE__*/React__namespace.createElement("span", millisecondProps, millisecondDisplay), /*#__PURE__*/React__namespace.createElement("button", decrementButtonProps, decrementIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)));
|
|
2908
2975
|
}
|
|
2909
2976
|
return null;
|
|
2910
2977
|
};
|
|
@@ -2913,30 +2980,41 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2913
2980
|
var currentTime = getCurrentDateTime();
|
|
2914
2981
|
var hour = currentTime.getHours();
|
|
2915
2982
|
var display = hour > 11 ? 'PM' : 'AM';
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
},
|
|
2983
|
+
var ampmProps = utils.mergeProps(ptm('ampm'));
|
|
2984
|
+
var ampmPickerProps = utils.mergeProps({
|
|
2985
|
+
className: 'p-ampm-picker'
|
|
2986
|
+
}, ptm('ampmPicker'));
|
|
2987
|
+
var incrementButtonProps = utils.mergeProps({
|
|
2988
|
+
type: 'button',
|
|
2989
|
+
className: 'p-link',
|
|
2990
|
+
onClick: function onClick(e) {
|
|
2991
|
+
return toggleAmPm(e);
|
|
2992
|
+
}
|
|
2993
|
+
}, ptm('incrementButton'));
|
|
2994
|
+
var decrementButtonProps = utils.mergeProps({
|
|
2995
|
+
type: 'button',
|
|
2996
|
+
className: 'p-link',
|
|
2997
|
+
onClick: function onClick(e) {
|
|
2998
|
+
return toggleAmPm(e);
|
|
2999
|
+
}
|
|
3000
|
+
}, ptm('decrementButton'));
|
|
3001
|
+
return /*#__PURE__*/React__namespace.createElement("div", ampmPickerProps, /*#__PURE__*/React__namespace.createElement("button", incrementButtonProps, incrementIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)), /*#__PURE__*/React__namespace.createElement("span", ampmProps, display), /*#__PURE__*/React__namespace.createElement("button", decrementButtonProps, decrementIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)));
|
|
2927
3002
|
}
|
|
2928
3003
|
return null;
|
|
2929
3004
|
};
|
|
2930
3005
|
var createSeparator = function createSeparator(separator) {
|
|
2931
|
-
|
|
2932
|
-
className:
|
|
2933
|
-
},
|
|
3006
|
+
var separatorContainerProps = utils.mergeProps({
|
|
3007
|
+
className: 'p-separator'
|
|
3008
|
+
}, ptm('separatorContainer'));
|
|
3009
|
+
var separatorProps = utils.mergeProps(ptm('separator'));
|
|
3010
|
+
return /*#__PURE__*/React__namespace.createElement("div", separatorContainerProps, /*#__PURE__*/React__namespace.createElement("span", separatorProps, separator));
|
|
2934
3011
|
};
|
|
2935
3012
|
var createTimePicker = function createTimePicker() {
|
|
2936
3013
|
if ((props.showTime || props.timeOnly) && currentView === 'date') {
|
|
2937
|
-
|
|
2938
|
-
className:
|
|
2939
|
-
},
|
|
3014
|
+
var timePickerProps = utils.mergeProps({
|
|
3015
|
+
className: 'p-timepicker'
|
|
3016
|
+
}, ptm('timePicker'));
|
|
3017
|
+
return /*#__PURE__*/React__namespace.createElement("div", timePickerProps, createHourPicker(), createSeparator(':'), createMinutePicker(), props.showSeconds && createSeparator(':'), createSecondPicker(), props.showMillisec && createSeparator('.'), createMiliSecondPicker(), props.hourFormat === '12' && createSeparator(':'), createAmPmPicker());
|
|
2940
3018
|
}
|
|
2941
3019
|
return null;
|
|
2942
3020
|
};
|
|
@@ -2962,7 +3040,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2962
3040
|
"aria-labelledby": props.ariaLabelledBy,
|
|
2963
3041
|
inputMode: props.inputMode,
|
|
2964
3042
|
tooltip: props.tooltip,
|
|
2965
|
-
tooltipOptions: props.tooltipOptions
|
|
3043
|
+
tooltipOptions: props.tooltipOptions,
|
|
3044
|
+
pt: ptm('input')
|
|
2966
3045
|
});
|
|
2967
3046
|
}
|
|
2968
3047
|
return null;
|
|
@@ -2975,7 +3054,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2975
3054
|
onClick: onButtonClick,
|
|
2976
3055
|
tabIndex: "-1",
|
|
2977
3056
|
disabled: props.disabled,
|
|
2978
|
-
className: "p-datepicker-trigger"
|
|
3057
|
+
className: "p-datepicker-trigger",
|
|
3058
|
+
pt: ptm('dropdownButton')
|
|
2979
3059
|
});
|
|
2980
3060
|
}
|
|
2981
3061
|
return null;
|
|
@@ -2995,16 +3075,18 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2995
3075
|
var _localeOptions4 = PrimeReact.localeOptions(props.locale),
|
|
2996
3076
|
today = _localeOptions4.today,
|
|
2997
3077
|
clear = _localeOptions4.clear;
|
|
2998
|
-
|
|
2999
|
-
className:
|
|
3000
|
-
},
|
|
3078
|
+
var buttonbarProps = utils.mergeProps({
|
|
3079
|
+
className: 'p-datepicker-buttonbar'
|
|
3080
|
+
}, ptm('buttonbar'));
|
|
3081
|
+
return /*#__PURE__*/React__namespace.createElement("div", buttonbarProps, /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
3001
3082
|
type: "button",
|
|
3002
3083
|
label: today,
|
|
3003
3084
|
onClick: onTodayButtonClick,
|
|
3004
3085
|
onKeyDown: function onKeyDown(e) {
|
|
3005
3086
|
return onContainerButtonKeydown(e);
|
|
3006
3087
|
},
|
|
3007
|
-
className: todayClassName
|
|
3088
|
+
className: todayClassName,
|
|
3089
|
+
pt: ptm('todayButton')
|
|
3008
3090
|
}), /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
3009
3091
|
type: "button",
|
|
3010
3092
|
label: clear,
|
|
@@ -3012,7 +3094,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3012
3094
|
onKeyDown: function onKeyDown(e) {
|
|
3013
3095
|
return onContainerButtonKeydown(e);
|
|
3014
3096
|
},
|
|
3015
|
-
className: clearClassName
|
|
3097
|
+
className: clearClassName,
|
|
3098
|
+
pt: ptm('clearButton')
|
|
3016
3099
|
}));
|
|
3017
3100
|
}
|
|
3018
3101
|
return null;
|
|
@@ -3020,51 +3103,57 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3020
3103
|
var createFooter = function createFooter() {
|
|
3021
3104
|
if (props.footerTemplate) {
|
|
3022
3105
|
var _content3 = props.footerTemplate();
|
|
3023
|
-
|
|
3024
|
-
className:
|
|
3025
|
-
},
|
|
3106
|
+
var footerProps = utils.mergeProps({
|
|
3107
|
+
className: 'p-datepicker-footer'
|
|
3108
|
+
}, ptm('footer'));
|
|
3109
|
+
return /*#__PURE__*/React__namespace.createElement("div", footerProps, _content3);
|
|
3026
3110
|
}
|
|
3027
3111
|
return null;
|
|
3028
3112
|
};
|
|
3029
3113
|
var createMonthPicker = function createMonthPicker() {
|
|
3030
3114
|
if (currentView === 'month') {
|
|
3031
|
-
|
|
3032
|
-
className:
|
|
3033
|
-
},
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
return onMonthSelect(event, i);
|
|
3037
|
-
},
|
|
3038
|
-
key: "month".concat(i + 1),
|
|
3115
|
+
var monthPickerProps = utils.mergeProps({
|
|
3116
|
+
className: 'p-monthpicker'
|
|
3117
|
+
}, ptm('monthPicker'));
|
|
3118
|
+
return /*#__PURE__*/React__namespace.createElement("div", monthPickerProps, monthPickerValues().map(function (m, i) {
|
|
3119
|
+
var monthProps = utils.mergeProps({
|
|
3039
3120
|
className: utils.classNames('p-monthpicker-month', {
|
|
3040
3121
|
'p-highlight': isMonthSelected(i),
|
|
3041
|
-
'p-disabled': !isSelectable(
|
|
3042
|
-
})
|
|
3043
|
-
|
|
3122
|
+
'p-disabled': !isSelectable(0, i, currentYear)
|
|
3123
|
+
}),
|
|
3124
|
+
onClick: function onClick(event) {
|
|
3125
|
+
return onMonthSelect(event, i);
|
|
3126
|
+
}
|
|
3127
|
+
}, ptm('month'));
|
|
3128
|
+
return /*#__PURE__*/React__namespace.createElement("span", _extends({}, monthProps, {
|
|
3129
|
+
key: "month".concat(i + 1)
|
|
3130
|
+
}), m);
|
|
3044
3131
|
}));
|
|
3045
3132
|
}
|
|
3046
3133
|
return null;
|
|
3047
3134
|
};
|
|
3048
3135
|
var createYearPicker = function createYearPicker() {
|
|
3049
3136
|
if (currentView === 'year') {
|
|
3050
|
-
|
|
3051
|
-
className:
|
|
3052
|
-
},
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
return onYearSelect(event, y);
|
|
3056
|
-
},
|
|
3057
|
-
key: "year".concat(i + 1),
|
|
3137
|
+
var yearPickerProps = utils.mergeProps({
|
|
3138
|
+
className: 'p-yearpicker'
|
|
3139
|
+
}, ptm('yearPicker'));
|
|
3140
|
+
return /*#__PURE__*/React__namespace.createElement("div", yearPickerProps, yearPickerValues().map(function (y, i) {
|
|
3141
|
+
var yearProps = utils.mergeProps({
|
|
3058
3142
|
className: utils.classNames('p-yearpicker-year', {
|
|
3059
3143
|
'p-highlight': isYearSelected(y),
|
|
3060
|
-
'p-disabled': !
|
|
3061
|
-
})
|
|
3062
|
-
|
|
3144
|
+
'p-disabled': !isSelectable(0, -1, y)
|
|
3145
|
+
}),
|
|
3146
|
+
onClick: function onClick(event) {
|
|
3147
|
+
return onYearSelect(event, y);
|
|
3148
|
+
}
|
|
3149
|
+
}, ptm('year'));
|
|
3150
|
+
return /*#__PURE__*/React__namespace.createElement("span", _extends({}, yearProps, {
|
|
3151
|
+
key: "year".concat(i + 1)
|
|
3152
|
+
}), y);
|
|
3063
3153
|
}));
|
|
3064
3154
|
}
|
|
3065
3155
|
return null;
|
|
3066
3156
|
};
|
|
3067
|
-
var otherProps = CalendarBase.getOtherProps(props);
|
|
3068
3157
|
var className = utils.classNames('p-calendar p-component p-inputwrapper', props.className, (_classNames = {}, _defineProperty(_classNames, "p-calendar-w-btn p-calendar-w-btn-".concat(props.iconPos), props.showIcon), _defineProperty(_classNames, 'p-calendar-disabled', props.disabled), _defineProperty(_classNames, 'p-calendar-timeonly', props.timeOnly), _defineProperty(_classNames, 'p-inputwrapper-filled', props.value || utils.DomHandler.hasClass(inputRef.current, 'p-filled') && inputRef.current.value !== ''), _defineProperty(_classNames, 'p-inputwrapper-focus', focusedState), _classNames));
|
|
3069
3158
|
var panelClassName = utils.classNames('p-datepicker p-component', props.panelClassName, {
|
|
3070
3159
|
'p-datepicker-inline': props.inline,
|
|
@@ -3073,8 +3162,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3073
3162
|
'p-datepicker-multiple-month': props.numberOfMonths > 1,
|
|
3074
3163
|
'p-datepicker-monthpicker': currentView === 'month',
|
|
3075
3164
|
'p-datepicker-touch-ui': props.touchUI,
|
|
3076
|
-
'p-input-filled': PrimeReact__default["default"].inputStyle === 'filled',
|
|
3077
|
-
'p-ripple-disabled': PrimeReact__default["default"].ripple === false
|
|
3165
|
+
'p-input-filled': context && context.inputStyle === 'filled' || PrimeReact__default["default"].inputStyle === 'filled',
|
|
3166
|
+
'p-ripple-disabled': context && context.ripple === false || PrimeReact__default["default"].ripple === false
|
|
3078
3167
|
});
|
|
3079
3168
|
var content = createContent();
|
|
3080
3169
|
var datePicker = createDatePicker();
|
|
@@ -3083,12 +3172,13 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3083
3172
|
var footer = createFooter();
|
|
3084
3173
|
var monthPicker = createMonthPicker();
|
|
3085
3174
|
var yearPicker = createYearPicker();
|
|
3086
|
-
|
|
3175
|
+
var rootProps = utils.mergeProps({
|
|
3087
3176
|
ref: elementRef,
|
|
3088
3177
|
id: props.id,
|
|
3089
3178
|
className: className,
|
|
3090
3179
|
style: props.style
|
|
3091
|
-
},
|
|
3180
|
+
}, CalendarBase.getOtherProps(props), ptm('root'));
|
|
3181
|
+
return /*#__PURE__*/React__namespace.createElement("span", rootProps, content, /*#__PURE__*/React__namespace.createElement(CalendarPanel, {
|
|
3092
3182
|
ref: overlayRef,
|
|
3093
3183
|
className: panelClassName,
|
|
3094
3184
|
style: props.panelStyle,
|
|
@@ -3101,7 +3191,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3101
3191
|
onEntered: onOverlayEntered,
|
|
3102
3192
|
onExit: onOverlayExit,
|
|
3103
3193
|
onExited: onOverlayExited,
|
|
3104
|
-
transitionOptions: props.transitionOptions
|
|
3194
|
+
transitionOptions: props.transitionOptions,
|
|
3195
|
+
ptm: ptm
|
|
3105
3196
|
}, datePicker, timePicker, monthPicker, yearPicker, buttonBar, footer));
|
|
3106
3197
|
}));
|
|
3107
3198
|
Calendar.displayName = 'Calendar';
|
|
@@ -3112,4 +3203,4 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3112
3203
|
|
|
3113
3204
|
return exports;
|
|
3114
3205
|
|
|
3115
|
-
})({}, React, primereact.api, primereact.button, primereact.hooks, primereact.icons.calendar, primereact.icons.chevrondown, primereact.icons.chevronleft, primereact.icons.chevronright, primereact.icons.chevronup, primereact.inputtext, primereact.overlayservice, primereact.ripple, primereact.utils, primereact.csstransition, primereact.portal);
|
|
3206
|
+
})({}, React, primereact.api, primereact.button, primereact.hooks, primereact.icons.calendar, primereact.icons.chevrondown, primereact.icons.chevronleft, primereact.icons.chevronright, primereact.icons.chevronup, primereact.inputtext, primereact.overlayservice, primereact.ripple, primereact.utils, primereact.componentbase, primereact.csstransition, primereact.portal);
|