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/menu/menu.esm.js
CHANGED
|
@@ -1,24 +1,51 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import PrimeReact from 'primereact/api';
|
|
2
|
+
import PrimeReact, { PrimeReactContext } from 'primereact/api';
|
|
3
3
|
import { CSSTransition } from 'primereact/csstransition';
|
|
4
4
|
import { useOverlayListener, useUnmountEffect } from 'primereact/hooks';
|
|
5
5
|
import { OverlayService } from 'primereact/overlayservice';
|
|
6
6
|
import { Portal } from 'primereact/portal';
|
|
7
|
-
import {
|
|
7
|
+
import { ZIndexUtils, classNames, mergeProps, DomHandler, IconUtils, ObjectUtils } from 'primereact/utils';
|
|
8
|
+
import { ComponentBase } from 'primereact/componentbase';
|
|
8
9
|
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
function _typeof(obj) {
|
|
11
|
+
"@babel/helpers - typeof";
|
|
12
|
+
|
|
13
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
14
|
+
return typeof obj;
|
|
15
|
+
} : function (obj) {
|
|
16
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
17
|
+
}, _typeof(obj);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function _toPrimitive(input, hint) {
|
|
21
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
22
|
+
var prim = input[Symbol.toPrimitive];
|
|
23
|
+
if (prim !== undefined) {
|
|
24
|
+
var res = prim.call(input, hint || "default");
|
|
25
|
+
if (_typeof(res) !== "object") return res;
|
|
26
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
27
|
+
}
|
|
28
|
+
return (hint === "string" ? String : Number)(input);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function _toPropertyKey(arg) {
|
|
32
|
+
var key = _toPrimitive(arg, "string");
|
|
33
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function _defineProperty(obj, key, value) {
|
|
37
|
+
key = _toPropertyKey(key);
|
|
38
|
+
if (key in obj) {
|
|
39
|
+
Object.defineProperty(obj, key, {
|
|
40
|
+
value: value,
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true
|
|
44
|
+
});
|
|
45
|
+
} else {
|
|
46
|
+
obj[key] = value;
|
|
47
|
+
}
|
|
48
|
+
return obj;
|
|
22
49
|
}
|
|
23
50
|
|
|
24
51
|
function _arrayWithHoles(arr) {
|
|
@@ -76,12 +103,13 @@ function _slicedToArray(arr, i) {
|
|
|
76
103
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
77
104
|
}
|
|
78
105
|
|
|
79
|
-
var MenuBase = {
|
|
106
|
+
var MenuBase = ComponentBase.extend({
|
|
80
107
|
defaultProps: {
|
|
81
108
|
__TYPE: 'Menu',
|
|
82
109
|
id: null,
|
|
83
110
|
model: null,
|
|
84
111
|
popup: false,
|
|
112
|
+
popupAlignment: 'left',
|
|
85
113
|
style: null,
|
|
86
114
|
className: null,
|
|
87
115
|
autoZIndex: true,
|
|
@@ -91,21 +119,25 @@ var MenuBase = {
|
|
|
91
119
|
onShow: null,
|
|
92
120
|
onHide: null,
|
|
93
121
|
children: undefined
|
|
94
|
-
},
|
|
95
|
-
getProps: function getProps(props) {
|
|
96
|
-
return ObjectUtils.getMergedProps(props, MenuBase.defaultProps);
|
|
97
|
-
},
|
|
98
|
-
getOtherProps: function getOtherProps(props) {
|
|
99
|
-
return ObjectUtils.getDiffProps(props, MenuBase.defaultProps);
|
|
100
122
|
}
|
|
101
|
-
};
|
|
123
|
+
});
|
|
102
124
|
|
|
125
|
+
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; }
|
|
126
|
+
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; }
|
|
103
127
|
var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
104
|
-
var
|
|
128
|
+
var context = React.useContext(PrimeReactContext);
|
|
129
|
+
var props = MenuBase.getProps(inProps, context);
|
|
105
130
|
var _React$useState = React.useState(!props.popup),
|
|
106
131
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
107
132
|
visibleState = _React$useState2[0],
|
|
108
133
|
setVisibleState = _React$useState2[1];
|
|
134
|
+
var _MenuBase$setMetaData = MenuBase.setMetaData({
|
|
135
|
+
props: props,
|
|
136
|
+
state: {
|
|
137
|
+
visible: visibleState
|
|
138
|
+
}
|
|
139
|
+
}),
|
|
140
|
+
ptm = _MenuBase$setMetaData.ptm;
|
|
109
141
|
var menuRef = React.useRef(null);
|
|
110
142
|
var targetRef = React.useRef(null);
|
|
111
143
|
var _useOverlayListener = useOverlayListener({
|
|
@@ -188,8 +220,8 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
188
220
|
props.onHide && props.onHide(event);
|
|
189
221
|
};
|
|
190
222
|
var onEnter = function onEnter() {
|
|
191
|
-
ZIndexUtils.set('menu', menuRef.current, PrimeReact.autoZIndex, props.baseZIndex || PrimeReact.zIndex['menu']);
|
|
192
|
-
DomHandler.absolutePosition(menuRef.current, targetRef.current);
|
|
223
|
+
ZIndexUtils.set('menu', menuRef.current, context && context.autoZIndex || PrimeReact.autoZIndex, props.baseZIndex || context && context.zIndex['menu'] || PrimeReact.zIndex['menu']);
|
|
224
|
+
DomHandler.absolutePosition(menuRef.current, targetRef.current, props.popupAlignment);
|
|
193
225
|
};
|
|
194
226
|
var onEntered = function onEntered() {
|
|
195
227
|
bindOverlayListener();
|
|
@@ -224,21 +256,23 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
224
256
|
'p-disabled': submenu.disabled
|
|
225
257
|
}, submenu.className);
|
|
226
258
|
var items = submenu.items.map(createMenuItem);
|
|
227
|
-
|
|
228
|
-
key: key
|
|
229
|
-
}, /*#__PURE__*/React.createElement("li", {
|
|
259
|
+
var submenuHeaderProps = mergeProps({
|
|
230
260
|
className: className,
|
|
231
261
|
style: submenu.style,
|
|
232
|
-
role:
|
|
233
|
-
},
|
|
262
|
+
role: 'presentation'
|
|
263
|
+
}, ptm('submenuHeader'));
|
|
264
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
265
|
+
key: key
|
|
266
|
+
}, /*#__PURE__*/React.createElement("li", submenuHeaderProps, submenu.label), items);
|
|
234
267
|
};
|
|
235
268
|
var createSeparator = function createSeparator(index) {
|
|
236
269
|
var key = 'separator_' + index;
|
|
237
|
-
|
|
270
|
+
var separatorProps = mergeProps({
|
|
238
271
|
key: key,
|
|
239
|
-
className:
|
|
240
|
-
role:
|
|
241
|
-
});
|
|
272
|
+
className: 'p-menu-separator',
|
|
273
|
+
role: 'separator'
|
|
274
|
+
}, ptm('separator'));
|
|
275
|
+
return /*#__PURE__*/React.createElement("li", separatorProps);
|
|
242
276
|
};
|
|
243
277
|
var createMenuItem = function createMenuItem(item, index) {
|
|
244
278
|
if (item.visible === false) {
|
|
@@ -249,20 +283,22 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
249
283
|
'p-disabled': item.disabled
|
|
250
284
|
});
|
|
251
285
|
var iconClassName = classNames('p-menuitem-icon', item.icon);
|
|
252
|
-
var
|
|
286
|
+
var iconProps = mergeProps({
|
|
253
287
|
className: 'p-menuitem-icon'
|
|
254
|
-
},
|
|
288
|
+
}, ptm('icon'));
|
|
289
|
+
var icon = IconUtils.getJSXIcon(item.icon, _objectSpread({}, iconProps), {
|
|
255
290
|
props: props
|
|
256
291
|
});
|
|
257
|
-
var
|
|
258
|
-
className:
|
|
259
|
-
},
|
|
292
|
+
var labelProps = mergeProps({
|
|
293
|
+
className: 'p-menuitem-text'
|
|
294
|
+
}, ptm('label'));
|
|
295
|
+
var label = item.label && /*#__PURE__*/React.createElement("span", labelProps, item.label);
|
|
260
296
|
var tabIndex = item.disabled ? null : 0;
|
|
261
297
|
var key = item.label + '_' + index;
|
|
262
|
-
var
|
|
298
|
+
var actionProps = mergeProps({
|
|
263
299
|
href: item.url || '#',
|
|
264
300
|
className: linkClassName,
|
|
265
|
-
role:
|
|
301
|
+
role: 'menuitem',
|
|
266
302
|
target: item.target,
|
|
267
303
|
onClick: function onClick(event) {
|
|
268
304
|
return onItemClick(event, item);
|
|
@@ -271,8 +307,9 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
271
307
|
return onItemKeyDown(event);
|
|
272
308
|
},
|
|
273
309
|
tabIndex: tabIndex,
|
|
274
|
-
|
|
275
|
-
},
|
|
310
|
+
'aria-disabled': item.disabled
|
|
311
|
+
}, ptm('action'));
|
|
312
|
+
var content = /*#__PURE__*/React.createElement("a", actionProps, icon, label);
|
|
276
313
|
if (item.template) {
|
|
277
314
|
var defaultContentOptions = {
|
|
278
315
|
onClick: function onClick(event) {
|
|
@@ -290,12 +327,13 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
290
327
|
};
|
|
291
328
|
content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);
|
|
292
329
|
}
|
|
293
|
-
|
|
330
|
+
var menuitemProps = mergeProps({
|
|
294
331
|
key: key,
|
|
295
332
|
className: className,
|
|
296
333
|
style: item.style,
|
|
297
|
-
role:
|
|
298
|
-
},
|
|
334
|
+
role: 'none'
|
|
335
|
+
}, ptm('menuitem'));
|
|
336
|
+
return /*#__PURE__*/React.createElement("li", menuitemProps, content);
|
|
299
337
|
};
|
|
300
338
|
var createItem = function createItem(item, index) {
|
|
301
339
|
return item.separator ? createSeparator(index) : item.items ? createSubmenu(item, index) : createMenuItem(item, index);
|
|
@@ -305,13 +343,25 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
305
343
|
};
|
|
306
344
|
var createElement = function createElement() {
|
|
307
345
|
if (props.model) {
|
|
308
|
-
var otherProps = MenuBase.getOtherProps(props);
|
|
309
346
|
var className = classNames('p-menu p-component', {
|
|
310
347
|
'p-menu-overlay': props.popup,
|
|
311
|
-
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
312
|
-
'p-ripple-disabled': PrimeReact.ripple === false
|
|
348
|
+
'p-input-filled': context && context.inputStyle === 'filled' || PrimeReact.inputStyle === 'filled',
|
|
349
|
+
'p-ripple-disabled': context && context.ripple === false || PrimeReact.ripple === false
|
|
313
350
|
}, props.className);
|
|
314
351
|
var menuitems = createMenu();
|
|
352
|
+
var rootProps = mergeProps({
|
|
353
|
+
ref: menuRef,
|
|
354
|
+
id: props.id,
|
|
355
|
+
className: className,
|
|
356
|
+
style: props.style,
|
|
357
|
+
onClick: function onClick(e) {
|
|
358
|
+
return onPanelClick(e);
|
|
359
|
+
}
|
|
360
|
+
}, MenuBase.getOtherProps(props), ptm('root'));
|
|
361
|
+
var menuProps = mergeProps({
|
|
362
|
+
className: 'p-menu-list p-reset',
|
|
363
|
+
role: 'menu'
|
|
364
|
+
}, ptm('menu'));
|
|
315
365
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
316
366
|
nodeRef: menuRef,
|
|
317
367
|
classNames: "p-connected-overlay",
|
|
@@ -326,17 +376,7 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inPr
|
|
|
326
376
|
onEntered: onEntered,
|
|
327
377
|
onExit: onExit,
|
|
328
378
|
onExited: onExited
|
|
329
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
330
|
-
ref: menuRef,
|
|
331
|
-
id: props.id,
|
|
332
|
-
className: className,
|
|
333
|
-
style: props.style
|
|
334
|
-
}, otherProps, {
|
|
335
|
-
onClick: onPanelClick
|
|
336
|
-
}), /*#__PURE__*/React.createElement("ul", {
|
|
337
|
-
className: "p-menu-list p-reset",
|
|
338
|
-
role: "menu"
|
|
339
|
-
}, menuitems)));
|
|
379
|
+
}, /*#__PURE__*/React.createElement("div", rootProps, /*#__PURE__*/React.createElement("ul", menuProps, menuitems)));
|
|
340
380
|
}
|
|
341
381
|
return null;
|
|
342
382
|
};
|
package/menu/menu.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t from"primereact/api";import{CSSTransition as
|
|
1
|
+
import*as e from"react";import t,{PrimeReactContext as n}from"primereact/api";import{CSSTransition as r}from"primereact/csstransition";import{useOverlayListener as o,useUnmountEffect as l}from"primereact/hooks";import{OverlayService as i}from"primereact/overlayservice";import{Portal as a}from"primereact/portal";import{ZIndexUtils as u,classNames as c,mergeProps as p,DomHandler as s,IconUtils as m,ObjectUtils as f}from"primereact/utils";import{ComponentBase as d}from"primereact/componentbase";function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function y(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function v(e){var t=y(e,"string");return"symbol"===b(t)?t:String(t)}function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){if(Array.isArray(e))return e}function E(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){return h(e)||E(e,t)||S(e,t)||w()}var j=d.extend({defaultProps:{__TYPE:"Menu",id:null,model:null,popup:!1,popupAlignment:"left",style:null,className:null,autoZIndex:!0,baseZIndex:0,appendTo:null,transitionOptions:null,onShow:null,onHide:null,children:void 0}});function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=e.memo(e.forwardRef((function(d,b){var y=e.useContext(n),v=j.getProps(d,y),g=x(e.useState(!v.popup),2),h=g[0],E=g[1],O=j.setMetaData({props:v,state:{visible:h}}).ptm,S=e.useRef(null),w=e.useRef(null),N=x(o({target:w,overlay:S,listener:function(e,t){t.valid&&_(e)},when:h}),2),I=N[0],k=N[1],C=function(e,t){t.disabled?e.preventDefault():(t.url||e.preventDefault(),t.command&&t.command({originalEvent:e,item:t}),v.popup&&_(e))},D=function(e,t){var n=e.currentTarget.parentElement;switch(e.which){case 40:var r=T(n);r&&r.children[0].focus(),e.preventDefault();break;case 38:var o=A(n);o&&o.children[0].focus(),e.preventDefault()}},T=function e(t){var n=t.nextElementSibling;return n?s.hasClass(n,"p-disabled")||!s.hasClass(n,"p-menuitem")?e(n):n:null},A=function e(t){var n=t.previousElementSibling;return n?s.hasClass(n,"p-disabled")||!s.hasClass(n,"p-menuitem")?e(n):n:null},H=function(e){v.popup&&(h?_(e):Z(e))},Z=function(e){w.current=e.currentTarget,E(!0),v.onShow&&v.onShow(e)},_=function(e){w.current=e.currentTarget,E(!1),v.onHide&&v.onHide(e)},M=function(){u.set("menu",S.current,y&&y.autoZIndex||t.autoZIndex,v.baseZIndex||y&&y.zIndex.menu||t.zIndex.menu),s.absolutePosition(S.current,w.current,v.popupAlignment)},R=function(){I()},z=function(){w.current=null,k()},J=function(){u.clear(S.current)};l((function(){u.clear(S.current)})),e.useImperativeHandle(b,(function(){return{props:v,toggle:H,show:Z,hide:_,getElement:function(){return S.current},getTarget:function(){return w.current}}}));var K=function(t,n){var r=t.label+"_"+n,o=c("p-submenu-header",{"p-disabled":t.disabled},t.className),l=t.items.map(F),i=p({className:o,style:t.style,role:"presentation"},O("submenuHeader"));return e.createElement(e.Fragment,{key:r},e.createElement("li",i,t.label),l)},X=function(t){var n=p({key:"separator_"+t,className:"p-menu-separator",role:"separator"},O("separator"));return e.createElement("li",n)},F=function(t,n){if(!1===t.visible)return null;var r=c("p-menuitem",t.className),o=c("p-menuitem-link",{"p-disabled":t.disabled}),l=c("p-menuitem-icon",t.icon),i=p({className:"p-menuitem-icon"},O("icon")),a=m.getJSXIcon(t.icon,P({},i),{props:v}),u=p({className:"p-menuitem-text"},O("label")),s=t.label&&e.createElement("span",u,t.label),d=t.disabled?null:0,b=t.label+"_"+n,y=p({href:t.url||"#",className:o,role:"menuitem",target:t.target,onClick:function(e){return C(e,t)},onKeyDown:function(e){return D(e)},tabIndex:d,"aria-disabled":t.disabled},O("action")),g=e.createElement("a",y,a,s);t.template&&(g=f.getJSXElement(t.template,t,{onClick:function(e){return C(e,t)},onKeyDown:function(e){return D(e)},className:o,tabIndex:d,labelClassName:"p-menuitem-text",iconClassName:l,element:g,props:v}));var h=p({key:b,className:r,style:t.style,role:"none"},O("menuitem"));return e.createElement("li",h,g)},U=function(e,t){return e.separator?X(t):e.items?K(e,t):F(e,t)},Y=function(){if(v.model){var n=c("p-menu p-component",{"p-menu-overlay":v.popup,"p-input-filled":y&&"filled"===y.inputStyle||"filled"===t.inputStyle,"p-ripple-disabled":y&&!1===y.ripple||!1===t.ripple},v.className),o=v.model.map(U),l=p({ref:S,id:v.id,className:n,style:v.style,onClick:function(e){return t=e,void(v.popup&&i.emit("overlay-click",{originalEvent:t,target:w.current}));var t}},j.getOtherProps(v),O("root")),a=p({className:"p-menu-list p-reset",role:"menu"},O("menu"));return e.createElement(r,{nodeRef:S,classNames:"p-connected-overlay",in:h,timeout:{enter:120,exit:100},options:v.transitionOptions,unmountOnExit:!0,onEnter:M,onEntered:R,onExit:z,onExited:J},e.createElement("div",l,e.createElement("ul",a,o)))}return null}();return v.popup?e.createElement(a,{element:Y,appendTo:v.appendTo}):Y})));I.displayName="Menu";export{I as Menu};
|
package/menu/menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hooks, overlayservice, portal, utils) {
|
|
2
|
+
this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hooks, overlayservice, portal, utils, componentbase) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -25,19 +25,45 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
25
25
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
26
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
27
|
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
function _typeof(obj) {
|
|
29
|
+
"@babel/helpers - typeof";
|
|
30
|
+
|
|
31
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
32
|
+
return typeof obj;
|
|
33
|
+
} : function (obj) {
|
|
34
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
35
|
+
}, _typeof(obj);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function _toPrimitive(input, hint) {
|
|
39
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
40
|
+
var prim = input[Symbol.toPrimitive];
|
|
41
|
+
if (prim !== undefined) {
|
|
42
|
+
var res = prim.call(input, hint || "default");
|
|
43
|
+
if (_typeof(res) !== "object") return res;
|
|
44
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45
|
+
}
|
|
46
|
+
return (hint === "string" ? String : Number)(input);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _toPropertyKey(arg) {
|
|
50
|
+
var key = _toPrimitive(arg, "string");
|
|
51
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function _defineProperty(obj, key, value) {
|
|
55
|
+
key = _toPropertyKey(key);
|
|
56
|
+
if (key in obj) {
|
|
57
|
+
Object.defineProperty(obj, key, {
|
|
58
|
+
value: value,
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true
|
|
62
|
+
});
|
|
63
|
+
} else {
|
|
64
|
+
obj[key] = value;
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
41
67
|
}
|
|
42
68
|
|
|
43
69
|
function _arrayWithHoles(arr) {
|
|
@@ -95,12 +121,13 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
95
121
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
96
122
|
}
|
|
97
123
|
|
|
98
|
-
var MenuBase = {
|
|
124
|
+
var MenuBase = componentbase.ComponentBase.extend({
|
|
99
125
|
defaultProps: {
|
|
100
126
|
__TYPE: 'Menu',
|
|
101
127
|
id: null,
|
|
102
128
|
model: null,
|
|
103
129
|
popup: false,
|
|
130
|
+
popupAlignment: 'left',
|
|
104
131
|
style: null,
|
|
105
132
|
className: null,
|
|
106
133
|
autoZIndex: true,
|
|
@@ -110,21 +137,25 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
110
137
|
onShow: null,
|
|
111
138
|
onHide: null,
|
|
112
139
|
children: undefined
|
|
113
|
-
},
|
|
114
|
-
getProps: function getProps(props) {
|
|
115
|
-
return utils.ObjectUtils.getMergedProps(props, MenuBase.defaultProps);
|
|
116
|
-
},
|
|
117
|
-
getOtherProps: function getOtherProps(props) {
|
|
118
|
-
return utils.ObjectUtils.getDiffProps(props, MenuBase.defaultProps);
|
|
119
140
|
}
|
|
120
|
-
};
|
|
141
|
+
});
|
|
121
142
|
|
|
143
|
+
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; }
|
|
144
|
+
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; }
|
|
122
145
|
var Menu = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
123
|
-
var
|
|
146
|
+
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
147
|
+
var props = MenuBase.getProps(inProps, context);
|
|
124
148
|
var _React$useState = React__namespace.useState(!props.popup),
|
|
125
149
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
126
150
|
visibleState = _React$useState2[0],
|
|
127
151
|
setVisibleState = _React$useState2[1];
|
|
152
|
+
var _MenuBase$setMetaData = MenuBase.setMetaData({
|
|
153
|
+
props: props,
|
|
154
|
+
state: {
|
|
155
|
+
visible: visibleState
|
|
156
|
+
}
|
|
157
|
+
}),
|
|
158
|
+
ptm = _MenuBase$setMetaData.ptm;
|
|
128
159
|
var menuRef = React__namespace.useRef(null);
|
|
129
160
|
var targetRef = React__namespace.useRef(null);
|
|
130
161
|
var _useOverlayListener = hooks.useOverlayListener({
|
|
@@ -207,8 +238,8 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
207
238
|
props.onHide && props.onHide(event);
|
|
208
239
|
};
|
|
209
240
|
var onEnter = function onEnter() {
|
|
210
|
-
utils.ZIndexUtils.set('menu', menuRef.current, PrimeReact__default["default"].autoZIndex, props.baseZIndex || PrimeReact__default["default"].zIndex['menu']);
|
|
211
|
-
utils.DomHandler.absolutePosition(menuRef.current, targetRef.current);
|
|
241
|
+
utils.ZIndexUtils.set('menu', menuRef.current, context && context.autoZIndex || PrimeReact__default["default"].autoZIndex, props.baseZIndex || context && context.zIndex['menu'] || PrimeReact__default["default"].zIndex['menu']);
|
|
242
|
+
utils.DomHandler.absolutePosition(menuRef.current, targetRef.current, props.popupAlignment);
|
|
212
243
|
};
|
|
213
244
|
var onEntered = function onEntered() {
|
|
214
245
|
bindOverlayListener();
|
|
@@ -243,21 +274,23 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
243
274
|
'p-disabled': submenu.disabled
|
|
244
275
|
}, submenu.className);
|
|
245
276
|
var items = submenu.items.map(createMenuItem);
|
|
246
|
-
|
|
247
|
-
key: key
|
|
248
|
-
}, /*#__PURE__*/React__namespace.createElement("li", {
|
|
277
|
+
var submenuHeaderProps = utils.mergeProps({
|
|
249
278
|
className: className,
|
|
250
279
|
style: submenu.style,
|
|
251
|
-
role:
|
|
252
|
-
},
|
|
280
|
+
role: 'presentation'
|
|
281
|
+
}, ptm('submenuHeader'));
|
|
282
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, {
|
|
283
|
+
key: key
|
|
284
|
+
}, /*#__PURE__*/React__namespace.createElement("li", submenuHeaderProps, submenu.label), items);
|
|
253
285
|
};
|
|
254
286
|
var createSeparator = function createSeparator(index) {
|
|
255
287
|
var key = 'separator_' + index;
|
|
256
|
-
|
|
288
|
+
var separatorProps = utils.mergeProps({
|
|
257
289
|
key: key,
|
|
258
|
-
className:
|
|
259
|
-
role:
|
|
260
|
-
});
|
|
290
|
+
className: 'p-menu-separator',
|
|
291
|
+
role: 'separator'
|
|
292
|
+
}, ptm('separator'));
|
|
293
|
+
return /*#__PURE__*/React__namespace.createElement("li", separatorProps);
|
|
261
294
|
};
|
|
262
295
|
var createMenuItem = function createMenuItem(item, index) {
|
|
263
296
|
if (item.visible === false) {
|
|
@@ -268,20 +301,22 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
268
301
|
'p-disabled': item.disabled
|
|
269
302
|
});
|
|
270
303
|
var iconClassName = utils.classNames('p-menuitem-icon', item.icon);
|
|
271
|
-
var
|
|
304
|
+
var iconProps = utils.mergeProps({
|
|
272
305
|
className: 'p-menuitem-icon'
|
|
273
|
-
},
|
|
306
|
+
}, ptm('icon'));
|
|
307
|
+
var icon = utils.IconUtils.getJSXIcon(item.icon, _objectSpread({}, iconProps), {
|
|
274
308
|
props: props
|
|
275
309
|
});
|
|
276
|
-
var
|
|
277
|
-
className:
|
|
278
|
-
},
|
|
310
|
+
var labelProps = utils.mergeProps({
|
|
311
|
+
className: 'p-menuitem-text'
|
|
312
|
+
}, ptm('label'));
|
|
313
|
+
var label = item.label && /*#__PURE__*/React__namespace.createElement("span", labelProps, item.label);
|
|
279
314
|
var tabIndex = item.disabled ? null : 0;
|
|
280
315
|
var key = item.label + '_' + index;
|
|
281
|
-
var
|
|
316
|
+
var actionProps = utils.mergeProps({
|
|
282
317
|
href: item.url || '#',
|
|
283
318
|
className: linkClassName,
|
|
284
|
-
role:
|
|
319
|
+
role: 'menuitem',
|
|
285
320
|
target: item.target,
|
|
286
321
|
onClick: function onClick(event) {
|
|
287
322
|
return onItemClick(event, item);
|
|
@@ -290,8 +325,9 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
290
325
|
return onItemKeyDown(event);
|
|
291
326
|
},
|
|
292
327
|
tabIndex: tabIndex,
|
|
293
|
-
|
|
294
|
-
},
|
|
328
|
+
'aria-disabled': item.disabled
|
|
329
|
+
}, ptm('action'));
|
|
330
|
+
var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, icon, label);
|
|
295
331
|
if (item.template) {
|
|
296
332
|
var defaultContentOptions = {
|
|
297
333
|
onClick: function onClick(event) {
|
|
@@ -309,12 +345,13 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
309
345
|
};
|
|
310
346
|
content = utils.ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);
|
|
311
347
|
}
|
|
312
|
-
|
|
348
|
+
var menuitemProps = utils.mergeProps({
|
|
313
349
|
key: key,
|
|
314
350
|
className: className,
|
|
315
351
|
style: item.style,
|
|
316
|
-
role:
|
|
317
|
-
},
|
|
352
|
+
role: 'none'
|
|
353
|
+
}, ptm('menuitem'));
|
|
354
|
+
return /*#__PURE__*/React__namespace.createElement("li", menuitemProps, content);
|
|
318
355
|
};
|
|
319
356
|
var createItem = function createItem(item, index) {
|
|
320
357
|
return item.separator ? createSeparator(index) : item.items ? createSubmenu(item, index) : createMenuItem(item, index);
|
|
@@ -324,13 +361,25 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
324
361
|
};
|
|
325
362
|
var createElement = function createElement() {
|
|
326
363
|
if (props.model) {
|
|
327
|
-
var otherProps = MenuBase.getOtherProps(props);
|
|
328
364
|
var className = utils.classNames('p-menu p-component', {
|
|
329
365
|
'p-menu-overlay': props.popup,
|
|
330
|
-
'p-input-filled': PrimeReact__default["default"].inputStyle === 'filled',
|
|
331
|
-
'p-ripple-disabled': PrimeReact__default["default"].ripple === false
|
|
366
|
+
'p-input-filled': context && context.inputStyle === 'filled' || PrimeReact__default["default"].inputStyle === 'filled',
|
|
367
|
+
'p-ripple-disabled': context && context.ripple === false || PrimeReact__default["default"].ripple === false
|
|
332
368
|
}, props.className);
|
|
333
369
|
var menuitems = createMenu();
|
|
370
|
+
var rootProps = utils.mergeProps({
|
|
371
|
+
ref: menuRef,
|
|
372
|
+
id: props.id,
|
|
373
|
+
className: className,
|
|
374
|
+
style: props.style,
|
|
375
|
+
onClick: function onClick(e) {
|
|
376
|
+
return onPanelClick(e);
|
|
377
|
+
}
|
|
378
|
+
}, MenuBase.getOtherProps(props), ptm('root'));
|
|
379
|
+
var menuProps = utils.mergeProps({
|
|
380
|
+
className: 'p-menu-list p-reset',
|
|
381
|
+
role: 'menu'
|
|
382
|
+
}, ptm('menu'));
|
|
334
383
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
335
384
|
nodeRef: menuRef,
|
|
336
385
|
classNames: "p-connected-overlay",
|
|
@@ -345,17 +394,7 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
345
394
|
onEntered: onEntered,
|
|
346
395
|
onExit: onExit,
|
|
347
396
|
onExited: onExited
|
|
348
|
-
}, /*#__PURE__*/React__namespace.createElement("div",
|
|
349
|
-
ref: menuRef,
|
|
350
|
-
id: props.id,
|
|
351
|
-
className: className,
|
|
352
|
-
style: props.style
|
|
353
|
-
}, otherProps, {
|
|
354
|
-
onClick: onPanelClick
|
|
355
|
-
}), /*#__PURE__*/React__namespace.createElement("ul", {
|
|
356
|
-
className: "p-menu-list p-reset",
|
|
357
|
-
role: "menu"
|
|
358
|
-
}, menuitems)));
|
|
397
|
+
}, /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement("ul", menuProps, menuitems)));
|
|
359
398
|
}
|
|
360
399
|
return null;
|
|
361
400
|
};
|
|
@@ -373,4 +412,4 @@ this.primereact.menu = (function (exports, React, PrimeReact, csstransition, hoo
|
|
|
373
412
|
|
|
374
413
|
return exports;
|
|
375
414
|
|
|
376
|
-
})({}, React, primereact.api, primereact.csstransition, primereact.hooks, primereact.overlayservice, primereact.portal, primereact.utils);
|
|
415
|
+
})({}, React, primereact.api, primereact.csstransition, primereact.hooks, primereact.overlayservice, primereact.portal, primereact.utils, primereact.componentbase);
|
package/menu/menu.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.menu=function(e,t,n,r,a,l,i,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.menu=function(e,t,n,r,o,a,l,i,u){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var p=s(t),m=c(n);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function b(e){var t=d(e,"string");return"symbol"===f(t)?t:String(t)}function y(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){if(Array.isArray(e))return e}function g(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,l,i=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function E(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(e,t){return v(e)||g(e,t)||O(e,t)||E()}var S=u.ComponentBase.extend({defaultProps:{__TYPE:"Menu",id:null,model:null,popup:!1,popupAlignment:"left",style:null,className:null,autoZIndex:!0,baseZIndex:0,appendTo:null,transitionOptions:null,onShow:null,onHide:null,children:void 0}});function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=p.memo(p.forwardRef((function(e,t){var u=p.useContext(n.PrimeReactContext),c=S.getProps(e,u),s=P(p.useState(!c.popup),2),f=s[0],d=s[1],b=S.setMetaData({props:c,state:{visible:f}}).ptm,y=p.useRef(null),v=p.useRef(null),g=P(o.useOverlayListener({target:v,overlay:y,listener:function(e,t){t.valid&&C(e)},when:f}),2),h=g[0],O=g[1],E=function(e,t){t.disabled?e.preventDefault():(t.url||e.preventDefault(),t.command&&t.command({originalEvent:e,item:t}),c.popup&&C(e))},j=function(e,t){var n=e.currentTarget.parentElement;switch(e.which){case 40:var r=x(n);r&&r.children[0].focus(),e.preventDefault();break;case 38:var o=N(n);o&&o.children[0].focus(),e.preventDefault()}},x=function e(t){var n=t.nextElementSibling;return n?i.DomHandler.hasClass(n,"p-disabled")||!i.DomHandler.hasClass(n,"p-menuitem")?e(n):n:null},N=function e(t){var n=t.previousElementSibling;return n?i.DomHandler.hasClass(n,"p-disabled")||!i.DomHandler.hasClass(n,"p-menuitem")?e(n):n:null},I=function(e){c.popup&&(f?C(e):D(e))},D=function(e){v.current=e.currentTarget,d(!0),c.onShow&&c.onShow(e)},C=function(e){v.current=e.currentTarget,d(!1),c.onHide&&c.onHide(e)},k=function(){i.ZIndexUtils.set("menu",y.current,u&&u.autoZIndex||m.default.autoZIndex,c.baseZIndex||u&&u.zIndex.menu||m.default.zIndex.menu),i.DomHandler.absolutePosition(y.current,v.current,c.popupAlignment)},T=function(){h()},H=function(){v.current=null,O()},_=function(){i.ZIndexUtils.clear(y.current)};o.useUnmountEffect((function(){i.ZIndexUtils.clear(y.current)})),p.useImperativeHandle(t,(function(){return{props:c,toggle:I,show:D,hide:C,getElement:function(){return y.current},getTarget:function(){return v.current}}}));var A=function(e,t){var n=e.label+"_"+t,r=i.classNames("p-submenu-header",{"p-disabled":e.disabled},e.className),o=e.items.map(M),a=i.mergeProps({className:r,style:e.style,role:"presentation"},b("submenuHeader"));return p.createElement(p.Fragment,{key:n},p.createElement("li",a,e.label),o)},Z=function(e){var t=i.mergeProps({key:"separator_"+e,className:"p-menu-separator",role:"separator"},b("separator"));return p.createElement("li",t)},M=function(e,t){if(!1===e.visible)return null;var n=i.classNames("p-menuitem",e.className),r=i.classNames("p-menuitem-link",{"p-disabled":e.disabled}),o=i.classNames("p-menuitem-icon",e.icon),a=i.mergeProps({className:"p-menuitem-icon"},b("icon")),l=i.IconUtils.getJSXIcon(e.icon,w({},a),{props:c}),u=i.mergeProps({className:"p-menuitem-text"},b("label")),s=e.label&&p.createElement("span",u,e.label),m=e.disabled?null:0,f=e.label+"_"+t,d=i.mergeProps({href:e.url||"#",className:r,role:"menuitem",target:e.target,onClick:function(t){return E(t,e)},onKeyDown:function(e){return j(e)},tabIndex:m,"aria-disabled":e.disabled},b("action")),y=p.createElement("a",d,l,s);e.template&&(y=i.ObjectUtils.getJSXElement(e.template,e,{onClick:function(t){return E(t,e)},onKeyDown:function(e){return j(e)},className:r,tabIndex:m,labelClassName:"p-menuitem-text",iconClassName:o,element:y,props:c}));var v=i.mergeProps({key:f,className:n,style:e.style,role:"none"},b("menuitem"));return p.createElement("li",v,y)},U=function(e,t){return e.separator?Z(t):e.items?A(e,t):M(e,t)},R=function(){if(c.model){var e=i.classNames("p-menu p-component",{"p-menu-overlay":c.popup,"p-input-filled":u&&"filled"===u.inputStyle||"filled"===m.default.inputStyle,"p-ripple-disabled":u&&!1===u.ripple||!1===m.default.ripple},c.className),t=c.model.map(U),n=i.mergeProps({ref:y,id:c.id,className:e,style:c.style,onClick:function(e){return t=e,void(c.popup&&a.OverlayService.emit("overlay-click",{originalEvent:t,target:v.current}));var t}},S.getOtherProps(c),b("root")),o=i.mergeProps({className:"p-menu-list p-reset",role:"menu"},b("menu"));return p.createElement(r.CSSTransition,{nodeRef:y,classNames:"p-connected-overlay",in:f,timeout:{enter:120,exit:100},options:c.transitionOptions,unmountOnExit:!0,onEnter:k,onEntered:T,onExit:H,onExited:_},p.createElement("div",n,p.createElement("ul",o,t)))}return null}();return c.popup?p.createElement(l.Portal,{element:R,appendTo:c.appendTo}):R})));return x.displayName="Menu",e.Menu=x,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.csstransition,primereact.hooks,primereact.overlayservice,primereact.portal,primereact.utils,primereact.componentbase);
|