primereact 9.4.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 +215 -3
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +882 -8
- package/api/api.esm.js +210 -4
- package/api/api.esm.min.js +1 -1
- package/api/api.js +216 -5
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +148 -89
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +138 -2
- package/autocomplete/autocomplete.esm.js +150 -91
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +149 -91
- package/autocomplete/autocomplete.min.css +1 -1
- 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 +97 -52
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +53 -1
- package/breadcrumb/breadcrumb.esm.js +97 -52
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +96 -53
- package/breadcrumb/breadcrumb.min.css +1 -1
- 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 +322 -223
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +272 -3
- package/calendar/calendar.esm.js +324 -225
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +323 -225
- 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 +154 -92
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +121 -1
- package/carousel/carousel.esm.js +156 -94
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +155 -94
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +181 -108
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +100 -1
- package/cascadeselect/cascadeselect.esm.js +183 -110
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +180 -108
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +31 -44
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +30 -0
- package/chart/chart.esm.js +18 -31
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +141 -156
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +113 -48
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +65 -1
- package/checkbox/checkbox.esm.js +115 -50
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +113 -50
- 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 +84 -55
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +78 -6
- package/chips/chips.esm.js +85 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +83 -57
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +123 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +81 -0
- package/colorpicker/colorpicker.esm.js +125 -51
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +124 -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 +4 -3
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +5 -4
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +4 -3
- 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 +121 -69
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +92 -1
- package/contextmenu/contextmenu.esm.js +123 -71
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +122 -71
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +14005 -2381
- 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 +1089 -649
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +191 -3
- package/datatable/datatable.esm.js +1091 -651
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +1090 -651
- 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 +85 -46
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +66 -0
- package/dock/dock.esm.js +86 -47
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +85 -48
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +170 -120
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +154 -2
- package/dropdown/dropdown.esm.js +172 -122
- 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 +234 -191
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +160 -1
- package/fileupload/fileupload.esm.js +235 -192
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +231 -188
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +139 -124
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +156 -2
- package/galleria/galleria.esm.js +141 -126
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +138 -124
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +10 -3
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +7 -3
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +11 -5
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +415 -2
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +415 -2
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +415 -2
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +415 -2
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +415 -2
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +415 -2
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +415 -2
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +415 -2
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +415 -2
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +415 -2
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +415 -2
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +415 -2
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +415 -2
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +415 -2
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +415 -2
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +415 -2
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +415 -2
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +415 -2
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +415 -2
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +415 -2
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +415 -2
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +415 -2
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +415 -2
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +415 -2
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +415 -2
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +415 -2
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +415 -2
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +415 -2
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +415 -2
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +415 -2
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +415 -2
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +415 -2
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +415 -2
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +415 -2
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +415 -2
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +415 -2
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +415 -2
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +415 -2
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +415 -2
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +415 -2
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +415 -2
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +415 -2
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +415 -2
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +415 -2
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +415 -2
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +415 -2
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +415 -2
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +415 -2
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +415 -2
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +415 -2
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +415 -2
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +415 -2
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +415 -2
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +415 -2
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +415 -2
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +415 -2
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +415 -2
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +415 -2
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +415 -2
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +415 -2
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +415 -2
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +415 -2
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +415 -2
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +415 -2
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +415 -2
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +415 -2
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +415 -2
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +415 -2
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +415 -2
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +415 -2
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +415 -2
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +415 -2
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +415 -2
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +415 -2
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +415 -2
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +415 -2
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +415 -2
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +415 -2
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +415 -2
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +415 -2
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +415 -2
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +415 -2
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +415 -2
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +415 -2
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +480 -80
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +130 -3
- package/image/image.esm.js +483 -83
- package/image/image.esm.min.js +1 -1
- package/image/image.js +481 -82
- 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 +26 -26
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +7 -2
- package/inputmask/inputmask.esm.js +27 -27
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +26 -28
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +68 -48
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +62 -1
- package/inputnumber/inputnumber.esm.js +66 -49
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +68 -50
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +84 -25
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +61 -0
- package/inputswitch/inputswitch.esm.js +85 -26
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +83 -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 +151 -99
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +142 -2
- package/megamenu/megamenu.esm.js +152 -100
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +149 -98
- 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 +99 -59
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +71 -0
- package/menu/menu.esm.js +101 -61
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +100 -61
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +122 -114
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +94 -1
- package/menubar/menubar.esm.js +124 -116
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +122 -115
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +69 -47
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +35 -2
- package/message/message.esm.js +70 -48
- package/message/message.esm.min.js +1 -1
- package/message/message.js +69 -49
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +65 -63
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +51 -2
- package/messages/messages.esm.js +66 -64
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +65 -64
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +249 -193
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +185 -3
- package/multiselect/multiselect.esm.js +252 -196
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +249 -194
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +47 -33
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +61 -2
- package/multistatecheckbox/multistatecheckbox.esm.js +49 -35
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +48 -35
- 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 +111 -5
- 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 +148 -84
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +124 -2
- package/panelmenu/panelmenu.esm.js +148 -84
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +146 -84
- 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 +6656 -4389
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +6655 -4390
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +6656 -4389
- 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 +90 -30
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +66 -1
- package/radiobutton/radiobutton.esm.js +91 -31
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +89 -32
- 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 +475 -465
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +33 -8
- package/resources/themes/arya-green/theme.css +33 -8
- package/resources/themes/arya-orange/theme.css +33 -8
- package/resources/themes/arya-purple/theme.css +33 -8
- package/resources/themes/bootstrap4-dark-blue/theme.css +33 -8
- package/resources/themes/bootstrap4-dark-purple/theme.css +33 -8
- package/resources/themes/bootstrap4-light-blue/theme.css +33 -8
- package/resources/themes/bootstrap4-light-purple/theme.css +33 -8
- package/resources/themes/fluent-light/theme.css +33 -8
- package/resources/themes/lara-dark-blue/theme.css +33 -8
- package/resources/themes/lara-dark-indigo/theme.css +33 -8
- package/resources/themes/lara-dark-purple/theme.css +33 -8
- package/resources/themes/lara-dark-teal/theme.css +33 -8
- package/resources/themes/lara-light-blue/theme.css +33 -8
- package/resources/themes/lara-light-indigo/theme.css +33 -8
- package/resources/themes/lara-light-purple/theme.css +33 -8
- package/resources/themes/lara-light-teal/theme.css +33 -8
- package/resources/themes/luna-amber/theme.css +33 -8
- package/resources/themes/luna-blue/theme.css +33 -8
- package/resources/themes/luna-green/theme.css +33 -8
- package/resources/themes/luna-pink/theme.css +33 -8
- package/resources/themes/md-dark-deeppurple/theme.css +33 -8
- package/resources/themes/md-dark-indigo/theme.css +33 -8
- package/resources/themes/md-light-deeppurple/theme.css +33 -8
- package/resources/themes/md-light-indigo/theme.css +33 -8
- package/resources/themes/mdc-dark-deeppurple/theme.css +33 -8
- package/resources/themes/mdc-dark-indigo/theme.css +33 -8
- package/resources/themes/mdc-light-deeppurple/theme.css +33 -8
- package/resources/themes/mdc-light-indigo/theme.css +33 -8
- package/resources/themes/mira/theme.css +33 -8
- package/resources/themes/nano/theme.css +33 -8
- package/resources/themes/nova/theme.css +33 -8
- package/resources/themes/nova-accent/theme.css +33 -8
- package/resources/themes/nova-alt/theme.css +33 -8
- package/resources/themes/rhea/theme.css +33 -8
- package/resources/themes/saga-blue/theme.css +33 -8
- package/resources/themes/saga-green/theme.css +33 -8
- package/resources/themes/saga-orange/theme.css +33 -8
- package/resources/themes/saga-purple/theme.css +33 -8
- package/resources/themes/soho-dark/theme.css +33 -8
- package/resources/themes/soho-light/theme.css +33 -8
- package/resources/themes/tailwind-light/theme.css +45 -20
- package/resources/themes/vela-blue/theme.css +33 -8
- package/resources/themes/vela-green/theme.css +33 -8
- package/resources/themes/vela-orange/theme.css +33 -8
- package/resources/themes/vela-purple/theme.css +33 -8
- package/resources/themes/viva-dark/theme.css +33 -8
- package/resources/themes/viva-light/theme.css +33 -8
- 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 +125 -114
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +103 -1
- package/slidemenu/slidemenu.esm.js +127 -116
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +125 -115
- 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 +81 -46
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +50 -0
- package/steps/steps.esm.js +82 -47
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +81 -48
- 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 +86 -48
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +62 -0
- package/tabmenu/tabmenu.esm.js +87 -49
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +86 -50
- 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 +110 -64
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +83 -2
- package/tieredmenu/tieredmenu.esm.js +112 -66
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +111 -66
- 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 +118 -75
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +122 -4
- package/toast/toast.esm.js +120 -77
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +116 -74
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +74 -21
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +40 -2
- package/togglebutton/togglebutton.esm.js +75 -22
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +73 -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 +135 -102
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +143 -2
- package/treeselect/treeselect.esm.js +137 -104
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +136 -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 +97 -40
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +64 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +99 -42
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +97 -42
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +31 -5
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +28 -5
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +32 -7
- 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,12 +152,13 @@ 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,
|
|
159
159
|
ariaLabelledBy: null,
|
|
160
160
|
autoZIndex: true,
|
|
161
|
+
autoFocus: false,
|
|
161
162
|
baseZIndex: 0,
|
|
162
163
|
className: null,
|
|
163
164
|
clearButtonClassName: 'p-button-secondary',
|
|
@@ -245,17 +246,18 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
245
246
|
yearNavigatorTemplate: null,
|
|
246
247
|
yearRange: null,
|
|
247
248
|
children: undefined
|
|
248
|
-
},
|
|
249
|
-
getProps: function getProps(props) {
|
|
250
|
-
return utils.ObjectUtils.getMergedProps(props, CalendarBase.defaultProps);
|
|
251
|
-
},
|
|
252
|
-
getOtherProps: function getOtherProps(props) {
|
|
253
|
-
return utils.ObjectUtils.getDiffProps(props, CalendarBase.defaultProps);
|
|
254
249
|
}
|
|
255
|
-
};
|
|
250
|
+
});
|
|
256
251
|
|
|
257
252
|
var CalendarPanel = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
258
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'));
|
|
259
261
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
260
262
|
nodeRef: ref,
|
|
261
263
|
classNames: "p-connected-overlay",
|
|
@@ -270,13 +272,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
270
272
|
onEntered: props.onEntered,
|
|
271
273
|
onExit: props.onExit,
|
|
272
274
|
onExited: props.onExited
|
|
273
|
-
}, /*#__PURE__*/React__namespace.createElement("div",
|
|
274
|
-
ref: ref,
|
|
275
|
-
className: props.className,
|
|
276
|
-
style: props.style,
|
|
277
|
-
onClick: props.onClick,
|
|
278
|
-
onMouseUp: props.onMouseUp
|
|
279
|
-
}, props.children));
|
|
275
|
+
}, /*#__PURE__*/React__namespace.createElement("div", panelProps, props.children));
|
|
280
276
|
};
|
|
281
277
|
var element = createElement();
|
|
282
278
|
return props.inline ? element : /*#__PURE__*/React__namespace.createElement(portal.Portal, {
|
|
@@ -286,12 +282,15 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
286
282
|
});
|
|
287
283
|
CalendarPanel.displayName = 'CalendarPanel';
|
|
288
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; }
|
|
289
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; } } }; }
|
|
290
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); }
|
|
291
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; }
|
|
292
290
|
var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
293
291
|
var _classNames;
|
|
294
|
-
var
|
|
292
|
+
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
293
|
+
var props = CalendarBase.getProps(inProps, context);
|
|
295
294
|
var _React$useState = React__namespace.useState(false),
|
|
296
295
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
297
296
|
focusedState = _React$useState2[0],
|
|
@@ -304,6 +303,15 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
304
303
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
305
304
|
viewDateState = _React$useState6[0],
|
|
306
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;
|
|
307
315
|
var elementRef = React__namespace.useRef(null);
|
|
308
316
|
var overlayRef = React__namespace.useRef(null);
|
|
309
317
|
var inputRef = React__namespace.useRef(props.inputRef);
|
|
@@ -1079,7 +1087,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1079
1087
|
setCurrentYear(value.getFullYear());
|
|
1080
1088
|
};
|
|
1081
1089
|
var setNavigationState = function setNavigationState(newViewDate) {
|
|
1082
|
-
if (!props.showMinMaxRange || props.view !== 'date' || !overlayRef.current) {
|
|
1090
|
+
if (!newViewDate || !props.showMinMaxRange || props.view !== 'date' || !overlayRef.current) {
|
|
1083
1091
|
return;
|
|
1084
1092
|
}
|
|
1085
1093
|
var navPrev = utils.DomHandler.findSingle(overlayRef.current, '.p-datepicker-prev');
|
|
@@ -1097,7 +1105,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1097
1105
|
firstDayOfMonth.setMonth(11, 1);
|
|
1098
1106
|
firstDayOfMonth.setFullYear(firstDayOfMonth.getFullYear() - 1);
|
|
1099
1107
|
} else {
|
|
1100
|
-
firstDayOfMonth.setMonth(firstDayOfMonth.getMonth()
|
|
1108
|
+
firstDayOfMonth.setMonth(firstDayOfMonth.getMonth(), 1);
|
|
1101
1109
|
}
|
|
1102
1110
|
firstDayOfMonth.setHours(0);
|
|
1103
1111
|
firstDayOfMonth.setMinutes(0);
|
|
@@ -1498,7 +1506,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1498
1506
|
var onOverlayEnter = function onOverlayEnter() {
|
|
1499
1507
|
if (props.autoZIndex) {
|
|
1500
1508
|
var key = props.touchUI ? 'modal' : 'overlay';
|
|
1501
|
-
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]);
|
|
1502
1510
|
}
|
|
1503
1511
|
alignOverlay();
|
|
1504
1512
|
};
|
|
@@ -1520,7 +1528,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1520
1528
|
if (props.touchUI) {
|
|
1521
1529
|
enableModality();
|
|
1522
1530
|
} else if (overlayRef && overlayRef.current && inputRef && inputRef.current) {
|
|
1523
|
-
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);
|
|
1524
1532
|
if (appendDisabled()) {
|
|
1525
1533
|
utils.DomHandler.relativePosition(overlayRef.current, inputRef.current);
|
|
1526
1534
|
} else {
|
|
@@ -1748,9 +1756,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1748
1756
|
if (props.minDate.getFullYear() > year) {
|
|
1749
1757
|
validMin = false;
|
|
1750
1758
|
} else if (props.minDate.getFullYear() === year) {
|
|
1751
|
-
if (props.minDate.getMonth() > month) {
|
|
1759
|
+
if (month > -1 && props.minDate.getMonth() > month) {
|
|
1752
1760
|
validMin = false;
|
|
1753
|
-
} else if (props.minDate.getMonth() === month) {
|
|
1761
|
+
} else if (month > -1 && props.minDate.getMonth() === month) {
|
|
1754
1762
|
if (day > 0 && props.minDate.getDate() > day) {
|
|
1755
1763
|
validMin = false;
|
|
1756
1764
|
}
|
|
@@ -1761,9 +1769,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1761
1769
|
if (props.maxDate.getFullYear() < year) {
|
|
1762
1770
|
validMax = false;
|
|
1763
1771
|
} else if (props.maxDate.getFullYear() === year) {
|
|
1764
|
-
if (props.maxDate.getMonth() < month) {
|
|
1772
|
+
if (month > -1 && props.maxDate.getMonth() < month) {
|
|
1765
1773
|
validMax = false;
|
|
1766
|
-
} else if (props.maxDate.getMonth() === month) {
|
|
1774
|
+
} else if (month > -1 && props.maxDate.getMonth() === month) {
|
|
1767
1775
|
if (day > 0 && props.maxDate.getDate() < day) {
|
|
1768
1776
|
validMax = false;
|
|
1769
1777
|
}
|
|
@@ -1773,7 +1781,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
1773
1781
|
if (props.disabledDates) {
|
|
1774
1782
|
validDate = !isDateDisabled(day, month, year);
|
|
1775
1783
|
}
|
|
1776
|
-
if (props.disabledDays) {
|
|
1784
|
+
if (props.disabledDays && currentView !== 'month') {
|
|
1777
1785
|
validDay = !isDayDisabled(day, month, year);
|
|
1778
1786
|
}
|
|
1779
1787
|
if (props.selectOtherMonths === false && otherMonth) {
|
|
@@ -2325,7 +2333,6 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2325
2333
|
utils.ObjectUtils.combinedRefs(inputRef, props.inputRef);
|
|
2326
2334
|
}, [inputRef, props.inputRef]);
|
|
2327
2335
|
hooks.useMountEffect(function () {
|
|
2328
|
-
var unbindMaskEvents = null;
|
|
2329
2336
|
var viewDate = getViewDate(props.viewDate);
|
|
2330
2337
|
validateDate(viewDate);
|
|
2331
2338
|
setViewDateState(viewDate);
|
|
@@ -2340,7 +2347,21 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2340
2347
|
overlayRef.current.style.width = utils.DomHandler.getOuterWidth(overlayRef.current) + 'px';
|
|
2341
2348
|
}
|
|
2342
2349
|
}
|
|
2343
|
-
}
|
|
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) {
|
|
2344
2365
|
unbindMaskEvents = utils.mask(inputRef.current, {
|
|
2345
2366
|
mask: props.mask,
|
|
2346
2367
|
readOnly: props.readOnlyInput || props.disabled,
|
|
@@ -2353,14 +2374,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2353
2374
|
}
|
|
2354
2375
|
}).unbindEvents;
|
|
2355
2376
|
}
|
|
2356
|
-
if (props.value) {
|
|
2357
|
-
updateInputfield(props.value);
|
|
2358
|
-
setValue(props.value);
|
|
2359
|
-
}
|
|
2360
2377
|
return function () {
|
|
2361
2378
|
props.mask && unbindMaskEvents && unbindMaskEvents();
|
|
2362
2379
|
};
|
|
2363
|
-
});
|
|
2380
|
+
}, [props.mask]);
|
|
2364
2381
|
hooks.useUpdateEffect(function () {
|
|
2365
2382
|
setCurrentView(props.view);
|
|
2366
2383
|
}, [props.view]);
|
|
@@ -2462,18 +2479,18 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2462
2479
|
}
|
|
2463
2480
|
};
|
|
2464
2481
|
var iconClassName = 'p-datepicker-prev-icon';
|
|
2465
|
-
var
|
|
2482
|
+
var previousIconProps = utils.mergeProps({
|
|
2466
2483
|
className: iconClassName
|
|
2467
|
-
});
|
|
2468
|
-
var
|
|
2469
|
-
|
|
2470
|
-
}, {
|
|
2484
|
+
}, ptm('previousIcon'));
|
|
2485
|
+
var icon = props.prevIcon || /*#__PURE__*/React__namespace.createElement(chevronleft.ChevronLeftIcon, previousIconProps);
|
|
2486
|
+
var backwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, previousIconProps), {
|
|
2471
2487
|
props: props
|
|
2472
2488
|
});
|
|
2473
|
-
|
|
2474
|
-
type:
|
|
2475
|
-
className:
|
|
2476
|
-
}, 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));
|
|
2477
2494
|
};
|
|
2478
2495
|
var createForwardNavigator = function createForwardNavigator(isVisible) {
|
|
2479
2496
|
var navigatorProps = isVisible ? {
|
|
@@ -2487,18 +2504,18 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2487
2504
|
}
|
|
2488
2505
|
};
|
|
2489
2506
|
var iconClassName = 'p-datepicker-next-icon';
|
|
2490
|
-
var
|
|
2491
|
-
className: iconClassName
|
|
2492
|
-
});
|
|
2493
|
-
var forwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, {
|
|
2507
|
+
var nextIconProps = utils.mergeProps({
|
|
2494
2508
|
className: iconClassName
|
|
2495
|
-
},
|
|
2509
|
+
}, ptm('nextIcon'));
|
|
2510
|
+
var icon = props.nextIcon || /*#__PURE__*/React__namespace.createElement(chevronright.ChevronRightIcon, nextIconProps);
|
|
2511
|
+
var forwardNavigatorIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, nextIconProps), {
|
|
2496
2512
|
props: props
|
|
2497
2513
|
});
|
|
2498
|
-
|
|
2499
|
-
type:
|
|
2500
|
-
className:
|
|
2501
|
-
}, 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));
|
|
2502
2519
|
};
|
|
2503
2520
|
var createTitleMonthElement = function createTitleMonthElement(month) {
|
|
2504
2521
|
var monthNames = PrimeReact.localeOption('monthNames', props.locale);
|
|
@@ -2517,17 +2534,20 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2517
2534
|
var displayedMonthNames = displayedMonthOptions.map(function (option) {
|
|
2518
2535
|
return option.label;
|
|
2519
2536
|
});
|
|
2520
|
-
var
|
|
2521
|
-
className:
|
|
2537
|
+
var selectProps = utils.mergeProps({
|
|
2538
|
+
className: 'p-datepicker-month',
|
|
2522
2539
|
onChange: function onChange(e) {
|
|
2523
2540
|
return onMonthDropdownChange(e, e.target.value);
|
|
2524
2541
|
},
|
|
2525
2542
|
value: viewMonth
|
|
2526
|
-
},
|
|
2527
|
-
|
|
2528
|
-
|
|
2543
|
+
}, ptm('select'));
|
|
2544
|
+
var _content = /*#__PURE__*/React__namespace.createElement("select", selectProps, displayedMonthOptions.map(function (option) {
|
|
2545
|
+
var optionProps = utils.mergeProps({
|
|
2529
2546
|
value: option.value
|
|
2530
|
-
}, option
|
|
2547
|
+
}, ptm('option'));
|
|
2548
|
+
return /*#__PURE__*/React__namespace.createElement("option", _extends({}, optionProps, {
|
|
2549
|
+
key: option.label
|
|
2550
|
+
}), option.label);
|
|
2531
2551
|
}));
|
|
2532
2552
|
if (props.monthNavigatorTemplate) {
|
|
2533
2553
|
var defaultContentOptions = {
|
|
@@ -2543,11 +2563,12 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2543
2563
|
}
|
|
2544
2564
|
return _content;
|
|
2545
2565
|
}
|
|
2546
|
-
|
|
2547
|
-
className:
|
|
2566
|
+
var monthTitleProps = utils.mergeProps({
|
|
2567
|
+
className: 'p-datepicker-month p-link',
|
|
2548
2568
|
onClick: switchToMonthView,
|
|
2549
2569
|
disabled: switchViewButtonDisabled()
|
|
2550
|
-
},
|
|
2570
|
+
}, ptm('monthTitle'));
|
|
2571
|
+
return currentView === 'date' && /*#__PURE__*/React__namespace.createElement("button", monthTitleProps, monthNames[month]);
|
|
2551
2572
|
};
|
|
2552
2573
|
var createTitleYearElement = function createTitleYearElement(metaYear) {
|
|
2553
2574
|
if (props.yearNavigator) {
|
|
@@ -2563,17 +2584,20 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2563
2584
|
var displayedYearNames = _yearOptions2.filter(function (year) {
|
|
2564
2585
|
return !(props.minDate && props.minDate.getFullYear() > year) && !(props.maxDate && props.maxDate.getFullYear() < year);
|
|
2565
2586
|
});
|
|
2566
|
-
var
|
|
2567
|
-
className:
|
|
2587
|
+
var selectProps = utils.mergeProps({
|
|
2588
|
+
className: 'p-datepicker-year',
|
|
2568
2589
|
onChange: function onChange(e) {
|
|
2569
2590
|
return onYearDropdownChange(e, e.target.value);
|
|
2570
2591
|
},
|
|
2571
2592
|
value: viewYear
|
|
2572
|
-
},
|
|
2573
|
-
|
|
2574
|
-
|
|
2593
|
+
}, ptm('select'));
|
|
2594
|
+
var _content2 = /*#__PURE__*/React__namespace.createElement("select", selectProps, displayedYearNames.map(function (year) {
|
|
2595
|
+
var optionProps = utils.mergeProps({
|
|
2575
2596
|
value: year
|
|
2576
|
-
},
|
|
2597
|
+
}, ptm('option'));
|
|
2598
|
+
return /*#__PURE__*/React__namespace.createElement("option", _extends({}, optionProps, {
|
|
2599
|
+
key: year
|
|
2600
|
+
}), year);
|
|
2577
2601
|
}));
|
|
2578
2602
|
if (props.yearNavigatorTemplate) {
|
|
2579
2603
|
var options = displayedYearNames.map(function (name, i) {
|
|
@@ -2597,18 +2621,23 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2597
2621
|
return _content2;
|
|
2598
2622
|
}
|
|
2599
2623
|
var displayYear = props.numberOfMonths > 1 ? metaYear : currentYear;
|
|
2600
|
-
|
|
2601
|
-
className:
|
|
2602
|
-
onClick:
|
|
2624
|
+
var yearTitleProps = utils.mergeProps({
|
|
2625
|
+
className: 'p-datepicker-year p-link',
|
|
2626
|
+
onClick: function onClick(e) {
|
|
2627
|
+
return switchToYearView(e);
|
|
2628
|
+
},
|
|
2603
2629
|
disabled: switchViewButtonDisabled()
|
|
2604
|
-
},
|
|
2630
|
+
}, ptm('yearTitle'));
|
|
2631
|
+
return currentView !== 'year' && /*#__PURE__*/React__namespace.createElement("button", yearTitleProps, displayYear);
|
|
2605
2632
|
};
|
|
2606
2633
|
var createTitleDecadeElement = function createTitleDecadeElement() {
|
|
2607
2634
|
var years = yearPickerValues();
|
|
2635
|
+
var decadeTitleProps = utils.mergeProps({
|
|
2636
|
+
className: 'p-datepicker-decade'
|
|
2637
|
+
}, ptm('decadeTitle'));
|
|
2608
2638
|
if (currentView === 'year') {
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
}, 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])));
|
|
2612
2641
|
}
|
|
2613
2642
|
return null;
|
|
2614
2643
|
};
|
|
@@ -2616,23 +2645,30 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2616
2645
|
var month = createTitleMonthElement(monthMetaData.month);
|
|
2617
2646
|
var year = createTitleYearElement(monthMetaData.year);
|
|
2618
2647
|
var decade = createTitleDecadeElement();
|
|
2619
|
-
|
|
2620
|
-
className:
|
|
2621
|
-
},
|
|
2648
|
+
var titleProps = utils.mergeProps({
|
|
2649
|
+
className: 'p-datepicker-title'
|
|
2650
|
+
}, ptm('title'));
|
|
2651
|
+
return /*#__PURE__*/React__namespace.createElement("div", titleProps, month, year, decade);
|
|
2622
2652
|
};
|
|
2623
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')));
|
|
2624
2658
|
var dayNames = weekDays.map(function (weekDay, index) {
|
|
2625
|
-
return /*#__PURE__*/React__namespace.createElement("th", {
|
|
2626
|
-
key: "".concat(weekDay, "-").concat(index)
|
|
2627
|
-
|
|
2628
|
-
}, /*#__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));
|
|
2629
2662
|
});
|
|
2630
2663
|
if (props.showWeek) {
|
|
2631
|
-
var
|
|
2632
|
-
scope:
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
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)));
|
|
2636
2672
|
return [weekHeader].concat(_toConsumableArray(dayNames));
|
|
2637
2673
|
}
|
|
2638
2674
|
return dayNames;
|
|
@@ -2661,37 +2697,49 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2661
2697
|
'p-disabled': !date.selectable
|
|
2662
2698
|
});
|
|
2663
2699
|
var content = date.otherMonth && !props.showOtherMonths ? null : createDateCellContent(date, dateClassName, groupIndex);
|
|
2664
|
-
|
|
2665
|
-
key: date.day,
|
|
2700
|
+
var dayProps = utils.mergeProps({
|
|
2666
2701
|
className: cellClassName
|
|
2667
|
-
},
|
|
2702
|
+
}, ptm('day'));
|
|
2703
|
+
return /*#__PURE__*/React__namespace.createElement("td", _extends({}, dayProps, {
|
|
2704
|
+
key: date.day
|
|
2705
|
+
}), content);
|
|
2668
2706
|
});
|
|
2669
2707
|
if (props.showWeek) {
|
|
2670
|
-
var
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
className:
|
|
2675
|
-
},
|
|
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));
|
|
2676
2717
|
return [weekNumberCell].concat(_toConsumableArray(week));
|
|
2677
2718
|
}
|
|
2678
2719
|
return week;
|
|
2679
2720
|
};
|
|
2680
2721
|
var createDates = function createDates(monthMetaData, groupIndex) {
|
|
2722
|
+
var tableBodyRowProps = utils.mergeProps(ptm('tableBodyRowProps'));
|
|
2681
2723
|
return monthMetaData.dates.map(function (weekDates, index) {
|
|
2682
|
-
return /*#__PURE__*/React__namespace.createElement("tr", {
|
|
2724
|
+
return /*#__PURE__*/React__namespace.createElement("tr", _extends({}, tableBodyRowProps, {
|
|
2683
2725
|
key: index
|
|
2684
|
-
}, createWeek(weekDates, monthMetaData.weekNumbers[index], groupIndex));
|
|
2726
|
+
}), createWeek(weekDates, monthMetaData.weekNumbers[index], groupIndex));
|
|
2685
2727
|
});
|
|
2686
2728
|
};
|
|
2687
2729
|
var createDateViewGrid = function createDateViewGrid(monthMetaData, weekDays, groupIndex) {
|
|
2688
2730
|
var dayNames = createDayNames(weekDays);
|
|
2689
2731
|
var dates = createDates(monthMetaData, groupIndex);
|
|
2690
|
-
|
|
2691
|
-
className:
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
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)));
|
|
2695
2743
|
};
|
|
2696
2744
|
var createMonth = function createMonth(monthMetaData, index) {
|
|
2697
2745
|
var weekDays = createWeekDaysMeta();
|
|
@@ -2701,12 +2749,16 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2701
2749
|
var dateViewGrid = createDateViewGrid(monthMetaData, weekDays, index);
|
|
2702
2750
|
var header = props.headerTemplate ? props.headerTemplate() : null;
|
|
2703
2751
|
var monthKey = monthMetaData.month + '-' + monthMetaData.year;
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
className:
|
|
2709
|
-
|
|
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);
|
|
2710
2762
|
};
|
|
2711
2763
|
var createMonths = function createMonths(monthsMetaData) {
|
|
2712
2764
|
var groups = monthsMetaData.map(createMonth);
|
|
@@ -2741,15 +2793,19 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2741
2793
|
var forwardNavigator = createForwardNavigator(true);
|
|
2742
2794
|
var yearElement = createTitleYearElement(getViewDate().getFullYear());
|
|
2743
2795
|
var decade = createTitleDecadeElement();
|
|
2744
|
-
|
|
2745
|
-
className:
|
|
2746
|
-
},
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
className:
|
|
2752
|
-
},
|
|
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))));
|
|
2753
2809
|
};
|
|
2754
2810
|
var createDatePicker = function createDatePicker() {
|
|
2755
2811
|
if (!props.timeOnly) {
|
|
@@ -2761,10 +2817,12 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2761
2817
|
}
|
|
2762
2818
|
return null;
|
|
2763
2819
|
};
|
|
2764
|
-
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), {
|
|
2765
2823
|
props: props
|
|
2766
2824
|
});
|
|
2767
|
-
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), {
|
|
2768
2826
|
props: props
|
|
2769
2827
|
});
|
|
2770
2828
|
var createHourPicker = function createHourPicker() {
|
|
@@ -2777,12 +2835,14 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2777
2835
|
if (props.hourFormat === '12') {
|
|
2778
2836
|
if (hour === 0) hour = 12;else if (hour > 11 && hour !== 12) hour = hour - 12;
|
|
2779
2837
|
}
|
|
2838
|
+
var hourProps = utils.mergeProps(ptm('hour'));
|
|
2780
2839
|
var hourDisplay = hour < 10 ? '0' + hour : hour;
|
|
2781
|
-
|
|
2782
|
-
className:
|
|
2783
|
-
},
|
|
2784
|
-
|
|
2785
|
-
|
|
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',
|
|
2786
2846
|
onMouseDown: function onMouseDown(e) {
|
|
2787
2847
|
return onTimePickerElementMouseDown(e, 0, 1);
|
|
2788
2848
|
},
|
|
@@ -2791,9 +2851,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2791
2851
|
onKeyDown: function onKeyDown(e) {
|
|
2792
2852
|
return onContainerButtonKeydown(e);
|
|
2793
2853
|
}
|
|
2794
|
-
},
|
|
2795
|
-
|
|
2796
|
-
|
|
2854
|
+
}, ptm('incrementButton'));
|
|
2855
|
+
var decrementButtonProps = utils.mergeProps({
|
|
2856
|
+
type: 'button',
|
|
2857
|
+
className: 'p-link',
|
|
2797
2858
|
onMouseDown: function onMouseDown(e) {
|
|
2798
2859
|
return onTimePickerElementMouseDown(e, 0, -1);
|
|
2799
2860
|
},
|
|
@@ -2802,18 +2863,21 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2802
2863
|
onKeyDown: function onKeyDown(e) {
|
|
2803
2864
|
return onContainerButtonKeydown(e);
|
|
2804
2865
|
}
|
|
2805
|
-
},
|
|
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)));
|
|
2806
2868
|
};
|
|
2807
2869
|
var createMinutePicker = function createMinutePicker() {
|
|
2808
2870
|
var currentTime = getCurrentDateTime();
|
|
2809
2871
|
var minute = doStepMinute(currentTime.getMinutes());
|
|
2810
2872
|
minute = minute > 59 ? minute - 60 : minute;
|
|
2873
|
+
var minuteProps = utils.mergeProps(ptm('minute'));
|
|
2811
2874
|
var minuteDisplay = minute < 10 ? '0' + minute : minute;
|
|
2812
|
-
|
|
2813
|
-
className:
|
|
2814
|
-
},
|
|
2815
|
-
|
|
2816
|
-
|
|
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',
|
|
2817
2881
|
onMouseDown: function onMouseDown(e) {
|
|
2818
2882
|
return onTimePickerElementMouseDown(e, 1, 1);
|
|
2819
2883
|
},
|
|
@@ -2822,9 +2886,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2822
2886
|
onKeyDown: function onKeyDown(e) {
|
|
2823
2887
|
return onContainerButtonKeydown(e);
|
|
2824
2888
|
}
|
|
2825
|
-
},
|
|
2826
|
-
|
|
2827
|
-
|
|
2889
|
+
}, ptm('incrementButton'));
|
|
2890
|
+
var decrementButtonProps = utils.mergeProps({
|
|
2891
|
+
type: 'button',
|
|
2892
|
+
className: 'p-link',
|
|
2828
2893
|
onMouseDown: function onMouseDown(e) {
|
|
2829
2894
|
return onTimePickerElementMouseDown(e, 1, -1);
|
|
2830
2895
|
},
|
|
@@ -2833,18 +2898,21 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2833
2898
|
onKeyDown: function onKeyDown(e) {
|
|
2834
2899
|
return onContainerButtonKeydown(e);
|
|
2835
2900
|
}
|
|
2836
|
-
},
|
|
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)));
|
|
2837
2903
|
};
|
|
2838
2904
|
var createSecondPicker = function createSecondPicker() {
|
|
2839
2905
|
if (props.showSeconds) {
|
|
2840
2906
|
var currentTime = getCurrentDateTime();
|
|
2907
|
+
var secondProps = utils.mergeProps(ptm('second'));
|
|
2841
2908
|
var second = currentTime.getSeconds();
|
|
2842
2909
|
var secondDisplay = second < 10 ? '0' + second : second;
|
|
2843
|
-
|
|
2844
|
-
className:
|
|
2845
|
-
},
|
|
2846
|
-
|
|
2847
|
-
|
|
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',
|
|
2848
2916
|
onMouseDown: function onMouseDown(e) {
|
|
2849
2917
|
return onTimePickerElementMouseDown(e, 2, 1);
|
|
2850
2918
|
},
|
|
@@ -2853,9 +2921,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2853
2921
|
onKeyDown: function onKeyDown(e) {
|
|
2854
2922
|
return onContainerButtonKeydown(e);
|
|
2855
2923
|
}
|
|
2856
|
-
},
|
|
2857
|
-
|
|
2858
|
-
|
|
2924
|
+
}, ptm('incrementButton'));
|
|
2925
|
+
var decrementButtonProps = utils.mergeProps({
|
|
2926
|
+
type: 'button',
|
|
2927
|
+
className: 'p-link',
|
|
2859
2928
|
onMouseDown: function onMouseDown(e) {
|
|
2860
2929
|
return onTimePickerElementMouseDown(e, 2, -1);
|
|
2861
2930
|
},
|
|
@@ -2864,20 +2933,23 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2864
2933
|
onKeyDown: function onKeyDown(e) {
|
|
2865
2934
|
return onContainerButtonKeydown(e);
|
|
2866
2935
|
}
|
|
2867
|
-
},
|
|
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)));
|
|
2868
2938
|
}
|
|
2869
2939
|
return null;
|
|
2870
2940
|
};
|
|
2871
2941
|
var createMiliSecondPicker = function createMiliSecondPicker() {
|
|
2872
2942
|
if (props.showMillisec) {
|
|
2873
2943
|
var currentTime = getCurrentDateTime();
|
|
2944
|
+
var millisecondProps = utils.mergeProps(ptm('millisecond'));
|
|
2874
2945
|
var millisecond = currentTime.getMilliseconds();
|
|
2875
2946
|
var millisecondDisplay = millisecond < 100 ? (millisecond < 10 ? '00' : '0') + millisecond : millisecond;
|
|
2876
|
-
|
|
2877
|
-
className:
|
|
2878
|
-
},
|
|
2879
|
-
|
|
2880
|
-
|
|
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',
|
|
2881
2953
|
onMouseDown: function onMouseDown(e) {
|
|
2882
2954
|
return onTimePickerElementMouseDown(e, 3, 1);
|
|
2883
2955
|
},
|
|
@@ -2886,9 +2958,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2886
2958
|
onKeyDown: function onKeyDown(e) {
|
|
2887
2959
|
return onContainerButtonKeydown(e);
|
|
2888
2960
|
}
|
|
2889
|
-
},
|
|
2890
|
-
|
|
2891
|
-
|
|
2961
|
+
}, ptm('incrementButton'));
|
|
2962
|
+
var decrementButtonProps = utils.mergeProps({
|
|
2963
|
+
type: 'button',
|
|
2964
|
+
className: 'p-link',
|
|
2892
2965
|
onMouseDown: function onMouseDown(e) {
|
|
2893
2966
|
return onTimePickerElementMouseDown(e, 3, -1);
|
|
2894
2967
|
},
|
|
@@ -2897,7 +2970,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2897
2970
|
onKeyDown: function onKeyDown(e) {
|
|
2898
2971
|
return onContainerButtonKeydown(e);
|
|
2899
2972
|
}
|
|
2900
|
-
},
|
|
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)));
|
|
2901
2975
|
}
|
|
2902
2976
|
return null;
|
|
2903
2977
|
};
|
|
@@ -2906,30 +2980,41 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2906
2980
|
var currentTime = getCurrentDateTime();
|
|
2907
2981
|
var hour = currentTime.getHours();
|
|
2908
2982
|
var display = hour > 11 ? 'PM' : 'AM';
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
},
|
|
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)));
|
|
2920
3002
|
}
|
|
2921
3003
|
return null;
|
|
2922
3004
|
};
|
|
2923
3005
|
var createSeparator = function createSeparator(separator) {
|
|
2924
|
-
|
|
2925
|
-
className:
|
|
2926
|
-
},
|
|
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));
|
|
2927
3011
|
};
|
|
2928
3012
|
var createTimePicker = function createTimePicker() {
|
|
2929
3013
|
if ((props.showTime || props.timeOnly) && currentView === 'date') {
|
|
2930
|
-
|
|
2931
|
-
className:
|
|
2932
|
-
},
|
|
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());
|
|
2933
3018
|
}
|
|
2934
3019
|
return null;
|
|
2935
3020
|
};
|
|
@@ -2955,7 +3040,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2955
3040
|
"aria-labelledby": props.ariaLabelledBy,
|
|
2956
3041
|
inputMode: props.inputMode,
|
|
2957
3042
|
tooltip: props.tooltip,
|
|
2958
|
-
tooltipOptions: props.tooltipOptions
|
|
3043
|
+
tooltipOptions: props.tooltipOptions,
|
|
3044
|
+
pt: ptm('input')
|
|
2959
3045
|
});
|
|
2960
3046
|
}
|
|
2961
3047
|
return null;
|
|
@@ -2968,7 +3054,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2968
3054
|
onClick: onButtonClick,
|
|
2969
3055
|
tabIndex: "-1",
|
|
2970
3056
|
disabled: props.disabled,
|
|
2971
|
-
className: "p-datepicker-trigger"
|
|
3057
|
+
className: "p-datepicker-trigger",
|
|
3058
|
+
pt: ptm('dropdownButton')
|
|
2972
3059
|
});
|
|
2973
3060
|
}
|
|
2974
3061
|
return null;
|
|
@@ -2988,16 +3075,18 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
2988
3075
|
var _localeOptions4 = PrimeReact.localeOptions(props.locale),
|
|
2989
3076
|
today = _localeOptions4.today,
|
|
2990
3077
|
clear = _localeOptions4.clear;
|
|
2991
|
-
|
|
2992
|
-
className:
|
|
2993
|
-
},
|
|
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, {
|
|
2994
3082
|
type: "button",
|
|
2995
3083
|
label: today,
|
|
2996
3084
|
onClick: onTodayButtonClick,
|
|
2997
3085
|
onKeyDown: function onKeyDown(e) {
|
|
2998
3086
|
return onContainerButtonKeydown(e);
|
|
2999
3087
|
},
|
|
3000
|
-
className: todayClassName
|
|
3088
|
+
className: todayClassName,
|
|
3089
|
+
pt: ptm('todayButton')
|
|
3001
3090
|
}), /*#__PURE__*/React__namespace.createElement(button.Button, {
|
|
3002
3091
|
type: "button",
|
|
3003
3092
|
label: clear,
|
|
@@ -3005,7 +3094,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3005
3094
|
onKeyDown: function onKeyDown(e) {
|
|
3006
3095
|
return onContainerButtonKeydown(e);
|
|
3007
3096
|
},
|
|
3008
|
-
className: clearClassName
|
|
3097
|
+
className: clearClassName,
|
|
3098
|
+
pt: ptm('clearButton')
|
|
3009
3099
|
}));
|
|
3010
3100
|
}
|
|
3011
3101
|
return null;
|
|
@@ -3013,51 +3103,57 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3013
3103
|
var createFooter = function createFooter() {
|
|
3014
3104
|
if (props.footerTemplate) {
|
|
3015
3105
|
var _content3 = props.footerTemplate();
|
|
3016
|
-
|
|
3017
|
-
className:
|
|
3018
|
-
},
|
|
3106
|
+
var footerProps = utils.mergeProps({
|
|
3107
|
+
className: 'p-datepicker-footer'
|
|
3108
|
+
}, ptm('footer'));
|
|
3109
|
+
return /*#__PURE__*/React__namespace.createElement("div", footerProps, _content3);
|
|
3019
3110
|
}
|
|
3020
3111
|
return null;
|
|
3021
3112
|
};
|
|
3022
3113
|
var createMonthPicker = function createMonthPicker() {
|
|
3023
3114
|
if (currentView === 'month') {
|
|
3024
|
-
|
|
3025
|
-
className:
|
|
3026
|
-
},
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
return onMonthSelect(event, i);
|
|
3030
|
-
},
|
|
3031
|
-
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({
|
|
3032
3120
|
className: utils.classNames('p-monthpicker-month', {
|
|
3033
3121
|
'p-highlight': isMonthSelected(i),
|
|
3034
|
-
'p-disabled': !isSelectable(
|
|
3035
|
-
})
|
|
3036
|
-
|
|
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);
|
|
3037
3131
|
}));
|
|
3038
3132
|
}
|
|
3039
3133
|
return null;
|
|
3040
3134
|
};
|
|
3041
3135
|
var createYearPicker = function createYearPicker() {
|
|
3042
3136
|
if (currentView === 'year') {
|
|
3043
|
-
|
|
3044
|
-
className:
|
|
3045
|
-
},
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
return onYearSelect(event, y);
|
|
3049
|
-
},
|
|
3050
|
-
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({
|
|
3051
3142
|
className: utils.classNames('p-yearpicker-year', {
|
|
3052
3143
|
'p-highlight': isYearSelected(y),
|
|
3053
|
-
'p-disabled': !
|
|
3054
|
-
})
|
|
3055
|
-
|
|
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);
|
|
3056
3153
|
}));
|
|
3057
3154
|
}
|
|
3058
3155
|
return null;
|
|
3059
3156
|
};
|
|
3060
|
-
var otherProps = CalendarBase.getOtherProps(props);
|
|
3061
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));
|
|
3062
3158
|
var panelClassName = utils.classNames('p-datepicker p-component', props.panelClassName, {
|
|
3063
3159
|
'p-datepicker-inline': props.inline,
|
|
@@ -3066,8 +3162,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3066
3162
|
'p-datepicker-multiple-month': props.numberOfMonths > 1,
|
|
3067
3163
|
'p-datepicker-monthpicker': currentView === 'month',
|
|
3068
3164
|
'p-datepicker-touch-ui': props.touchUI,
|
|
3069
|
-
'p-input-filled': PrimeReact__default["default"].inputStyle === 'filled',
|
|
3070
|
-
'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
|
|
3071
3167
|
});
|
|
3072
3168
|
var content = createContent();
|
|
3073
3169
|
var datePicker = createDatePicker();
|
|
@@ -3076,12 +3172,13 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3076
3172
|
var footer = createFooter();
|
|
3077
3173
|
var monthPicker = createMonthPicker();
|
|
3078
3174
|
var yearPicker = createYearPicker();
|
|
3079
|
-
|
|
3175
|
+
var rootProps = utils.mergeProps({
|
|
3080
3176
|
ref: elementRef,
|
|
3081
3177
|
id: props.id,
|
|
3082
3178
|
className: className,
|
|
3083
3179
|
style: props.style
|
|
3084
|
-
},
|
|
3180
|
+
}, CalendarBase.getOtherProps(props), ptm('root'));
|
|
3181
|
+
return /*#__PURE__*/React__namespace.createElement("span", rootProps, content, /*#__PURE__*/React__namespace.createElement(CalendarPanel, {
|
|
3085
3182
|
ref: overlayRef,
|
|
3086
3183
|
className: panelClassName,
|
|
3087
3184
|
style: props.panelStyle,
|
|
@@ -3094,7 +3191,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3094
3191
|
onEntered: onOverlayEntered,
|
|
3095
3192
|
onExit: onOverlayExit,
|
|
3096
3193
|
onExited: onOverlayExited,
|
|
3097
|
-
transitionOptions: props.transitionOptions
|
|
3194
|
+
transitionOptions: props.transitionOptions,
|
|
3195
|
+
ptm: ptm
|
|
3098
3196
|
}, datePicker, timePicker, monthPicker, yearPicker, buttonBar, footer));
|
|
3099
3197
|
}));
|
|
3100
3198
|
Calendar.displayName = 'Calendar';
|
|
@@ -3105,4 +3203,4 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, hooks,
|
|
|
3105
3203
|
|
|
3106
3204
|
return exports;
|
|
3107
3205
|
|
|
3108
|
-
})({}, 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);
|