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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import PrimeReact from 'primereact/api';
|
|
2
|
+
import PrimeReact, { PrimeReactContext } from 'primereact/api';
|
|
3
3
|
import { Button } from 'primereact/button';
|
|
4
4
|
import { useOverlayListener, useMountEffect, useUnmountEffect } from 'primereact/hooks';
|
|
5
5
|
import { ChevronDownIcon } from 'primereact/icons/chevrondown';
|
|
6
6
|
import { OverlayService } from 'primereact/overlayservice';
|
|
7
7
|
import { Tooltip } from 'primereact/tooltip';
|
|
8
|
-
import { classNames, IconUtils, ObjectUtils, UniqueComponentId, ZIndexUtils,
|
|
8
|
+
import { mergeProps, classNames, IconUtils, ObjectUtils, UniqueComponentId, ZIndexUtils, DomHandler } from 'primereact/utils';
|
|
9
9
|
import { ComponentBase } from 'primereact/componentbase';
|
|
10
10
|
import { CSSTransition } from 'primereact/csstransition';
|
|
11
11
|
import { Portal } from 'primereact/portal';
|
|
@@ -159,6 +159,8 @@ var SplitButtonBase = ComponentBase.extend({
|
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
|
|
162
|
+
function ownKeys$1(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; }
|
|
163
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
162
164
|
var SplitButtonItem = /*#__PURE__*/React.memo(function (props) {
|
|
163
165
|
var onClick = function onClick(e) {
|
|
164
166
|
if (props.menuitem.command) {
|
|
@@ -173,10 +175,11 @@ var SplitButtonItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
173
175
|
e.preventDefault();
|
|
174
176
|
};
|
|
175
177
|
var createSeparator = function createSeparator() {
|
|
176
|
-
|
|
177
|
-
className:
|
|
178
|
-
role:
|
|
179
|
-
});
|
|
178
|
+
var separatorProps = mergeProps({
|
|
179
|
+
className: 'p-menu-separator',
|
|
180
|
+
role: 'separator'
|
|
181
|
+
}, props.ptm('separator'));
|
|
182
|
+
return /*#__PURE__*/React.createElement("li", separatorProps);
|
|
180
183
|
};
|
|
181
184
|
var createMenuitem = function createMenuitem() {
|
|
182
185
|
if (props.menuitem.visible === false) {
|
|
@@ -194,22 +197,25 @@ var SplitButtonItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
194
197
|
'p-disabled': disabled
|
|
195
198
|
});
|
|
196
199
|
var iconClassName = classNames('p-menuitem-icon', _icon);
|
|
197
|
-
var
|
|
200
|
+
var menuIconProps = mergeProps({
|
|
198
201
|
className: 'p-menuitem-icon'
|
|
199
|
-
},
|
|
202
|
+
}, props.ptm('menuIcon'));
|
|
203
|
+
var icon = IconUtils.getJSXIcon(_icon, _objectSpread$1({}, menuIconProps), {
|
|
200
204
|
props: props.splitButtonProps
|
|
201
205
|
});
|
|
202
|
-
var
|
|
203
|
-
className:
|
|
204
|
-
},
|
|
205
|
-
var
|
|
206
|
+
var menuLabelProps = mergeProps({
|
|
207
|
+
className: 'p-menuitem-text'
|
|
208
|
+
}, props.ptm('menuLabel'));
|
|
209
|
+
var label = _label && /*#__PURE__*/React.createElement("span", menuLabelProps, _label);
|
|
210
|
+
var anchorProps = mergeProps({
|
|
206
211
|
href: url || '#',
|
|
207
|
-
role:
|
|
212
|
+
role: 'menuitem',
|
|
208
213
|
className: className,
|
|
209
214
|
target: target,
|
|
210
215
|
onClick: onClick,
|
|
211
|
-
|
|
212
|
-
},
|
|
216
|
+
'aria-label': _label
|
|
217
|
+
}, props.ptm('anchor'));
|
|
218
|
+
var content = /*#__PURE__*/React.createElement("a", anchorProps, icon, label);
|
|
213
219
|
if (template) {
|
|
214
220
|
var defaultContentOptions = {
|
|
215
221
|
onClick: onClick,
|
|
@@ -221,10 +227,11 @@ var SplitButtonItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
221
227
|
};
|
|
222
228
|
content = ObjectUtils.getJSXElement(template, props.menuitem, defaultContentOptions);
|
|
223
229
|
}
|
|
224
|
-
|
|
225
|
-
className:
|
|
226
|
-
role:
|
|
227
|
-
},
|
|
230
|
+
var menuItemProps = mergeProps({
|
|
231
|
+
className: 'p-menuitem',
|
|
232
|
+
role: 'none'
|
|
233
|
+
}, props.ptm('menuItem'));
|
|
234
|
+
return /*#__PURE__*/React.createElement("li", menuItemProps, content);
|
|
228
235
|
};
|
|
229
236
|
var createItem = function createItem() {
|
|
230
237
|
return props.menuitem.separator ? createSeparator() : createMenuitem();
|
|
@@ -237,6 +244,17 @@ SplitButtonItem.displayName = 'SplitButtonItem';
|
|
|
237
244
|
var SplitButtonPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
238
245
|
var createElement = function createElement() {
|
|
239
246
|
var className = classNames('p-menu p-menu-overlay p-component', props.menuClassName);
|
|
247
|
+
var menuProps = mergeProps({
|
|
248
|
+
ref: ref,
|
|
249
|
+
className: className,
|
|
250
|
+
style: props.menuStyle,
|
|
251
|
+
onClick: props.onClick
|
|
252
|
+
}, props.ptm('menu'));
|
|
253
|
+
var menuListProps = mergeProps({
|
|
254
|
+
id: props.menuId,
|
|
255
|
+
className: 'p-menu-list p-reset',
|
|
256
|
+
role: 'menu'
|
|
257
|
+
}, props.ptm('menuList'));
|
|
240
258
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
241
259
|
nodeRef: ref,
|
|
242
260
|
classNames: "p-connected-overlay",
|
|
@@ -251,16 +269,7 @@ var SplitButtonPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
251
269
|
onEntered: props.onEntered,
|
|
252
270
|
onExit: props.onExit,
|
|
253
271
|
onExited: props.onExited
|
|
254
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
255
|
-
ref: ref,
|
|
256
|
-
className: className,
|
|
257
|
-
style: props.menuStyle,
|
|
258
|
-
onClick: props.onClick
|
|
259
|
-
}, /*#__PURE__*/React.createElement("ul", {
|
|
260
|
-
id: props.menuId,
|
|
261
|
-
className: "p-menu-list p-reset",
|
|
262
|
-
role: "menu"
|
|
263
|
-
}, props.children)));
|
|
272
|
+
}, /*#__PURE__*/React.createElement("div", menuProps, /*#__PURE__*/React.createElement("ul", menuListProps, props.children)));
|
|
264
273
|
};
|
|
265
274
|
var element = createElement();
|
|
266
275
|
return /*#__PURE__*/React.createElement(Portal, {
|
|
@@ -274,7 +283,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
274
283
|
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; }
|
|
275
284
|
var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
276
285
|
var _classNames;
|
|
277
|
-
var
|
|
286
|
+
var context = React.useContext(PrimeReactContext);
|
|
287
|
+
var props = SplitButtonBase.getProps(inProps, context);
|
|
278
288
|
var _React$useState = React.useState(props.id),
|
|
279
289
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
280
290
|
idState = _React$useState2[0],
|
|
@@ -325,7 +335,7 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
325
335
|
setOverlayVisibleState(false);
|
|
326
336
|
};
|
|
327
337
|
var onOverlayEnter = function onOverlayEnter() {
|
|
328
|
-
ZIndexUtils.set('overlay', overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);
|
|
338
|
+
ZIndexUtils.set('overlay', overlayRef.current, context && context.autoZIndex || PrimeReact.autoZIndex, context && context.zIndex['overlay'] || PrimeReact.zIndex['overlay']);
|
|
329
339
|
alignOverlay();
|
|
330
340
|
};
|
|
331
341
|
var onOverlayEntered = function onOverlayEntered() {
|
|
@@ -340,7 +350,7 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
340
350
|
props.onHide && props.onHide();
|
|
341
351
|
};
|
|
342
352
|
var alignOverlay = function alignOverlay() {
|
|
343
|
-
DomHandler.alignOverlay(overlayRef.current, defaultButtonRef.current.parentElement, props.appendTo || PrimeReact.appendTo);
|
|
353
|
+
DomHandler.alignOverlay(overlayRef.current, defaultButtonRef.current.parentElement, props.appendTo || context && context.appendTo || PrimeReact.appendTo);
|
|
344
354
|
};
|
|
345
355
|
useMountEffect(function () {
|
|
346
356
|
if (!idState) {
|
|
@@ -367,7 +377,8 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
367
377
|
splitButtonProps: props,
|
|
368
378
|
menuitem: menuitem,
|
|
369
379
|
key: index,
|
|
370
|
-
onItemClick: onItemClick
|
|
380
|
+
onItemClick: onItemClick,
|
|
381
|
+
ptm: ptm
|
|
371
382
|
});
|
|
372
383
|
});
|
|
373
384
|
}
|
|
@@ -401,19 +412,37 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
401
412
|
});
|
|
402
413
|
return dropdownIcon;
|
|
403
414
|
};
|
|
404
|
-
var
|
|
405
|
-
|
|
415
|
+
var rootProps = mergeProps({
|
|
416
|
+
ref: elementRef,
|
|
417
|
+
id: idState,
|
|
418
|
+
className: className,
|
|
419
|
+
style: props.style
|
|
420
|
+
}, SplitButtonBase.getOtherProps(props), ptm('root'));
|
|
421
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", rootProps, /*#__PURE__*/React.createElement(Button, _extends({
|
|
422
|
+
ref: defaultButtonRef,
|
|
423
|
+
type: "button",
|
|
424
|
+
className: buttonClassName,
|
|
425
|
+
icon: props.icon,
|
|
426
|
+
loading: props.loading,
|
|
427
|
+
loadingIcon: props.loadingIcon,
|
|
428
|
+
label: props.label,
|
|
429
|
+
onClick: props.onClick,
|
|
430
|
+
disabled: props.disabled,
|
|
431
|
+
tabIndex: props.tabIndex
|
|
432
|
+
}, props.buttonProps, {
|
|
433
|
+
pt: ptm('button')
|
|
434
|
+
}), buttonContent), /*#__PURE__*/React.createElement(Button, _extends({
|
|
435
|
+
type: "button",
|
|
406
436
|
className: menuButtonClassName,
|
|
407
437
|
icon: dropdownIcon,
|
|
408
438
|
onClick: onDropdownButtonClick,
|
|
409
439
|
disabled: props.disabled,
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
}, props.menuButtonProps
|
|
440
|
+
"aria-expanded": overlayVisibleState,
|
|
441
|
+
"aria-haspopup": "true",
|
|
442
|
+
"aria-controls": overlayVisibleState ? menuId : null
|
|
443
|
+
}, props.menuButtonProps, {
|
|
414
444
|
pt: ptm('menuButton')
|
|
415
|
-
}))
|
|
416
|
-
var menuProps = mergeProps({
|
|
445
|
+
})), /*#__PURE__*/React.createElement(SplitButtonPanel, {
|
|
417
446
|
ref: overlayRef,
|
|
418
447
|
appendTo: props.appendTo,
|
|
419
448
|
menuId: menuId,
|
|
@@ -425,32 +454,14 @@ var SplitButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
425
454
|
onEntered: onOverlayEntered,
|
|
426
455
|
onExit: onOverlayExit,
|
|
427
456
|
onExited: onOverlayExited,
|
|
428
|
-
transitionOptions: props.transitionOptions
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
ref: defaultButtonRef,
|
|
432
|
-
type: 'button',
|
|
433
|
-
className: buttonClassName,
|
|
434
|
-
icon: props.icon,
|
|
435
|
-
loading: props.loading,
|
|
436
|
-
loadingIcon: props.loadingIcon,
|
|
437
|
-
label: props.label,
|
|
438
|
-
onClick: props.onClick,
|
|
439
|
-
disabled: props.disabled,
|
|
440
|
-
tabIndex: props.tabIndex
|
|
441
|
-
}, props.buttonProps), {}, {
|
|
442
|
-
pt: ptm('button')
|
|
443
|
-
}));
|
|
444
|
-
var rootProps = mergeProps({
|
|
445
|
-
ref: elementRef,
|
|
446
|
-
id: idState,
|
|
447
|
-
className: className,
|
|
448
|
-
style: props.style
|
|
449
|
-
}, SplitButtonBase.getOtherProps(props), ptm('root'));
|
|
450
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", rootProps, /*#__PURE__*/React.createElement(Button, splitButtonProps, buttonContent), /*#__PURE__*/React.createElement(Button, menuButtonProps), /*#__PURE__*/React.createElement(SplitButtonPanel, menuProps, items)), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
457
|
+
transitionOptions: props.transitionOptions,
|
|
458
|
+
ptm: ptm
|
|
459
|
+
}, items)), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
451
460
|
target: elementRef,
|
|
452
461
|
content: props.tooltip
|
|
453
|
-
}, props.tooltipOptions
|
|
462
|
+
}, props.tooltipOptions, {
|
|
463
|
+
pt: ptm('tooltip')
|
|
464
|
+
})));
|
|
454
465
|
}));
|
|
455
466
|
SplitButton.displayName = 'SplitButton';
|
|
456
467
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t from"primereact/api";import{Button as
|
|
1
|
+
import*as e from"react";import t,{PrimeReactContext as n}from"primereact/api";import{Button as r}from"primereact/button";import{useOverlayListener as o,useMountEffect as l,useUnmountEffect as i}from"primereact/hooks";import{ChevronDownIcon as a}from"primereact/icons/chevrondown";import{OverlayService as u}from"primereact/overlayservice";import{Tooltip as c}from"primereact/tooltip";import{mergeProps as m,classNames as p,IconUtils as s,ObjectUtils as f,UniqueComponentId as d,ZIndexUtils as b,DomHandler as y}from"primereact/utils";import{ComponentBase as v}from"primereact/componentbase";import{CSSTransition as g}from"primereact/csstransition";import{Portal as O}from"primereact/portal";function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function h(e){return h="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},h(e)}function S(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function j(e){var t=S(e,"string");return"symbol"===h(t)?t:String(t)}function N(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e){if(Array.isArray(e))return e}function w(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 I(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 x(e,t){if(e){if("string"==typeof e)return I(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)?I(e,t):void 0}}function C(){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 k(e,t){return P(e)||w(e,t)||x(e,t)||C()}var T=v.extend({defaultProps:{__TYPE:"SplitButton",id:null,label:null,icon:null,loading:!1,loadingIcon:null,model:null,disabled:null,style:null,className:null,buttonClassName:null,menuStyle:null,menuClassName:null,menuButtonClassName:null,buttonProps:null,menuButtonProps:null,tabIndex:null,severity:null,rounded:!1,raised:!1,outlined:!1,text:!1,size:null,appendTo:null,tooltip:null,tooltipOptions:null,buttonTemplate:null,transitionOptions:null,dropdownIcon:null,onClick:null,onShow:null,onHide:null,children:void 0}});function B(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=e.memo((function(t){var n,r=function(e){t.menuitem.command&&t.menuitem.command({originalEvent:e,item:t.menuitem}),t.onItemClick&&t.onItemClick(e),e.preventDefault()},o=function(){if(!1===t.menuitem.visible)return null;var n=t.menuitem,o=n.icon,l=n.label,i=n.template,a=n.url,u=n.target,c=p("p-menuitem-link",n.className,{"p-disabled":n.disabled}),d=p("p-menuitem-icon",o),b=m({className:"p-menuitem-icon"},t.ptm("menuIcon")),y=s.getJSXIcon(o,D({},b),{props:t.splitButtonProps}),v=m({className:"p-menuitem-text"},t.ptm("menuLabel")),g=l&&e.createElement("span",v,l),O=m({href:a||"#",role:"menuitem",className:c,target:u,onClick:r,"aria-label":l},t.ptm("anchor")),E=e.createElement("a",O,y,g);i&&(E=f.getJSXElement(i,t.menuitem,{onClick:r,className:c,labelClassName:"p-menuitem-text",iconClassName:d,element:E,props:t}));var h=m({className:"p-menuitem",role:"none"},t.ptm("menuItem"));return e.createElement("li",h,E)};return t.menuitem.separator?(n=m({className:"p-menu-separator",role:"separator"},t.ptm("separator")),e.createElement("li",n)):o()}));A.displayName="SplitButtonItem";var R=e.forwardRef((function(t,n){var r,o,l,i=(r=p("p-menu p-menu-overlay p-component",t.menuClassName),o=m({ref:n,className:r,style:t.menuStyle,onClick:t.onClick},t.ptm("menu")),l=m({id:t.menuId,className:"p-menu-list p-reset",role:"menu"},t.ptm("menuList")),e.createElement(g,{nodeRef:n,classNames:"p-connected-overlay",in:t.in,timeout:{enter:120,exit:100},options:t.transitionOptions,unmountOnExit:!0,onEnter:t.onEnter,onEntered:t.onEntered,onExit:t.onExit,onExited:t.onExited},e.createElement("div",o,e.createElement("ul",l,t.children))));return e.createElement(O,{element:i,appendTo:t.appendTo})}));function z(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 H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}R.displayName="SplitButtonPanel";var J=e.memo(e.forwardRef((function(v,g){var O,h=e.useContext(n),S=T.getProps(v,h),j=k(e.useState(S.id),2),P=j[0],w=j[1],I=k(e.useState(!1),2),x=I[0],C=I[1],B=e.useRef(null),D=e.useRef(null),z=e.useRef(null),J=T.setMetaData({props:S,state:{id:P,overlayVisible:x}}).ptm,X=k(o({target:B,overlay:z,listener:function(e,t){t.valid&&F()},when:x}),2),_=X[0],L=X[1],M=function(){F()},Z=function(){C(!0)},F=function(){C(!1)},U=function(){y.alignOverlay(z.current,D.current.parentElement,S.appendTo||h&&h.appendTo||t.appendTo)};l((function(){P||w(d())})),i((function(){b.clear(z.current)})),e.useImperativeHandle(g,(function(){return{props:S,show:Z,hide:F,getElement:function(){return B.current}}}));if(!1===S.visible)return null;var V=f.isNotEmpty(S.tooltip),Y={large:"lg",small:"sm"}[S.size],$=p("p-splitbutton p-component",S.className,(N(O={"p-disabled":S.disabled,"p-button-loading-label-only":S.loading&&!S.icon&&S.label},"p-button-".concat(S.severity),S.severity),N(O,"p-button-raised",S.raised),N(O,"p-button-rounded",S.rounded),N(O,"p-button-text",S.text),N(O,"p-button-outlined",S.outlined),N(O,"p-button-".concat(Y),Y),O)),q=p("p-splitbutton-defaultbutton",S.buttonClassName),G=p("p-splitbutton-menubutton",S.menuButtonClassName),K=S.buttonTemplate?f.getJSXElement(S.buttonTemplate,S):null,Q=S.model?S.model.map((function(t,n){return e.createElement(A,{splitButtonProps:S,menuitem:t,key:n,onItemClick:M,ptm:J})})):null,W=P+"_menu",ee=m({ref:B,id:P,className:$,style:S.style},T.getOtherProps(S),J("root"));return e.createElement(e.Fragment,null,e.createElement("div",ee,e.createElement(r,E({ref:D,type:"button",className:q,icon:S.icon,loading:S.loading,loadingIcon:S.loadingIcon,label:S.label,onClick:S.onClick,disabled:S.disabled,tabIndex:S.tabIndex},S.buttonProps,{pt:J("button")}),K),e.createElement(r,E({type:"button",className:G,icon:function(){var t=m({className:"p-button-icon p-c"},J("icon")),n=s.getJSXIcon(S.dropdownIcon||e.createElement(a,t),H({},t),{props:S});return n},onClick:function(){x?F():Z()},disabled:S.disabled,"aria-expanded":x,"aria-haspopup":"true","aria-controls":x?W:null},S.menuButtonProps,{pt:J("menuButton")})),e.createElement(R,{ref:z,appendTo:S.appendTo,menuId:W,menuStyle:S.menuStyle,menuClassName:S.menuClassName,onClick:function(e){u.emit("overlay-click",{originalEvent:e,target:B.current})},in:x,onEnter:function(){b.set("overlay",z.current,h&&h.autoZIndex||t.autoZIndex,h&&h.zIndex.overlay||t.zIndex.overlay),U()},onEntered:function(){_(),S.onShow&&S.onShow()},onExit:function(){L()},onExited:function(){b.clear(z.current),S.onHide&&S.onHide()},transitionOptions:S.transitionOptions,ptm:J},Q)),V&&e.createElement(c,E({target:B,content:S.tooltip},S.tooltipOptions,{pt:J("tooltip")})))})));J.displayName="SplitButton";export{J as SplitButton};
|
|
@@ -174,6 +174,8 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
176
|
|
|
177
|
+
function ownKeys$1(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; }
|
|
178
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
177
179
|
var SplitButtonItem = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
178
180
|
var onClick = function onClick(e) {
|
|
179
181
|
if (props.menuitem.command) {
|
|
@@ -188,10 +190,11 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
188
190
|
e.preventDefault();
|
|
189
191
|
};
|
|
190
192
|
var createSeparator = function createSeparator() {
|
|
191
|
-
|
|
192
|
-
className:
|
|
193
|
-
role:
|
|
194
|
-
});
|
|
193
|
+
var separatorProps = utils.mergeProps({
|
|
194
|
+
className: 'p-menu-separator',
|
|
195
|
+
role: 'separator'
|
|
196
|
+
}, props.ptm('separator'));
|
|
197
|
+
return /*#__PURE__*/React__namespace.createElement("li", separatorProps);
|
|
195
198
|
};
|
|
196
199
|
var createMenuitem = function createMenuitem() {
|
|
197
200
|
if (props.menuitem.visible === false) {
|
|
@@ -209,22 +212,25 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
209
212
|
'p-disabled': disabled
|
|
210
213
|
});
|
|
211
214
|
var iconClassName = utils.classNames('p-menuitem-icon', _icon);
|
|
212
|
-
var
|
|
215
|
+
var menuIconProps = utils.mergeProps({
|
|
213
216
|
className: 'p-menuitem-icon'
|
|
214
|
-
},
|
|
217
|
+
}, props.ptm('menuIcon'));
|
|
218
|
+
var icon = utils.IconUtils.getJSXIcon(_icon, _objectSpread$1({}, menuIconProps), {
|
|
215
219
|
props: props.splitButtonProps
|
|
216
220
|
});
|
|
217
|
-
var
|
|
218
|
-
className:
|
|
219
|
-
},
|
|
220
|
-
var
|
|
221
|
+
var menuLabelProps = utils.mergeProps({
|
|
222
|
+
className: 'p-menuitem-text'
|
|
223
|
+
}, props.ptm('menuLabel'));
|
|
224
|
+
var label = _label && /*#__PURE__*/React__namespace.createElement("span", menuLabelProps, _label);
|
|
225
|
+
var anchorProps = utils.mergeProps({
|
|
221
226
|
href: url || '#',
|
|
222
|
-
role:
|
|
227
|
+
role: 'menuitem',
|
|
223
228
|
className: className,
|
|
224
229
|
target: target,
|
|
225
230
|
onClick: onClick,
|
|
226
|
-
|
|
227
|
-
},
|
|
231
|
+
'aria-label': _label
|
|
232
|
+
}, props.ptm('anchor'));
|
|
233
|
+
var content = /*#__PURE__*/React__namespace.createElement("a", anchorProps, icon, label);
|
|
228
234
|
if (template) {
|
|
229
235
|
var defaultContentOptions = {
|
|
230
236
|
onClick: onClick,
|
|
@@ -236,10 +242,11 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
236
242
|
};
|
|
237
243
|
content = utils.ObjectUtils.getJSXElement(template, props.menuitem, defaultContentOptions);
|
|
238
244
|
}
|
|
239
|
-
|
|
240
|
-
className:
|
|
241
|
-
role:
|
|
242
|
-
},
|
|
245
|
+
var menuItemProps = utils.mergeProps({
|
|
246
|
+
className: 'p-menuitem',
|
|
247
|
+
role: 'none'
|
|
248
|
+
}, props.ptm('menuItem'));
|
|
249
|
+
return /*#__PURE__*/React__namespace.createElement("li", menuItemProps, content);
|
|
243
250
|
};
|
|
244
251
|
var createItem = function createItem() {
|
|
245
252
|
return props.menuitem.separator ? createSeparator() : createMenuitem();
|
|
@@ -252,6 +259,17 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
252
259
|
var SplitButtonPanel = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
253
260
|
var createElement = function createElement() {
|
|
254
261
|
var className = utils.classNames('p-menu p-menu-overlay p-component', props.menuClassName);
|
|
262
|
+
var menuProps = utils.mergeProps({
|
|
263
|
+
ref: ref,
|
|
264
|
+
className: className,
|
|
265
|
+
style: props.menuStyle,
|
|
266
|
+
onClick: props.onClick
|
|
267
|
+
}, props.ptm('menu'));
|
|
268
|
+
var menuListProps = utils.mergeProps({
|
|
269
|
+
id: props.menuId,
|
|
270
|
+
className: 'p-menu-list p-reset',
|
|
271
|
+
role: 'menu'
|
|
272
|
+
}, props.ptm('menuList'));
|
|
255
273
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
256
274
|
nodeRef: ref,
|
|
257
275
|
classNames: "p-connected-overlay",
|
|
@@ -266,16 +284,7 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
266
284
|
onEntered: props.onEntered,
|
|
267
285
|
onExit: props.onExit,
|
|
268
286
|
onExited: props.onExited
|
|
269
|
-
}, /*#__PURE__*/React__namespace.createElement("div",
|
|
270
|
-
ref: ref,
|
|
271
|
-
className: className,
|
|
272
|
-
style: props.menuStyle,
|
|
273
|
-
onClick: props.onClick
|
|
274
|
-
}, /*#__PURE__*/React__namespace.createElement("ul", {
|
|
275
|
-
id: props.menuId,
|
|
276
|
-
className: "p-menu-list p-reset",
|
|
277
|
-
role: "menu"
|
|
278
|
-
}, props.children)));
|
|
287
|
+
}, /*#__PURE__*/React__namespace.createElement("div", menuProps, /*#__PURE__*/React__namespace.createElement("ul", menuListProps, props.children)));
|
|
279
288
|
};
|
|
280
289
|
var element = createElement();
|
|
281
290
|
return /*#__PURE__*/React__namespace.createElement(portal.Portal, {
|
|
@@ -289,7 +298,8 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
289
298
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
290
299
|
var SplitButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
291
300
|
var _classNames;
|
|
292
|
-
var
|
|
301
|
+
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
302
|
+
var props = SplitButtonBase.getProps(inProps, context);
|
|
293
303
|
var _React$useState = React__namespace.useState(props.id),
|
|
294
304
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
295
305
|
idState = _React$useState2[0],
|
|
@@ -340,7 +350,7 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
340
350
|
setOverlayVisibleState(false);
|
|
341
351
|
};
|
|
342
352
|
var onOverlayEnter = function onOverlayEnter() {
|
|
343
|
-
utils.ZIndexUtils.set('overlay', overlayRef.current, PrimeReact__default["default"].autoZIndex, PrimeReact__default["default"].zIndex['overlay']);
|
|
353
|
+
utils.ZIndexUtils.set('overlay', overlayRef.current, context && context.autoZIndex || PrimeReact__default["default"].autoZIndex, context && context.zIndex['overlay'] || PrimeReact__default["default"].zIndex['overlay']);
|
|
344
354
|
alignOverlay();
|
|
345
355
|
};
|
|
346
356
|
var onOverlayEntered = function onOverlayEntered() {
|
|
@@ -355,7 +365,7 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
355
365
|
props.onHide && props.onHide();
|
|
356
366
|
};
|
|
357
367
|
var alignOverlay = function alignOverlay() {
|
|
358
|
-
utils.DomHandler.alignOverlay(overlayRef.current, defaultButtonRef.current.parentElement, props.appendTo || PrimeReact__default["default"].appendTo);
|
|
368
|
+
utils.DomHandler.alignOverlay(overlayRef.current, defaultButtonRef.current.parentElement, props.appendTo || context && context.appendTo || PrimeReact__default["default"].appendTo);
|
|
359
369
|
};
|
|
360
370
|
hooks.useMountEffect(function () {
|
|
361
371
|
if (!idState) {
|
|
@@ -382,7 +392,8 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
382
392
|
splitButtonProps: props,
|
|
383
393
|
menuitem: menuitem,
|
|
384
394
|
key: index,
|
|
385
|
-
onItemClick: onItemClick
|
|
395
|
+
onItemClick: onItemClick,
|
|
396
|
+
ptm: ptm
|
|
386
397
|
});
|
|
387
398
|
});
|
|
388
399
|
}
|
|
@@ -416,19 +427,37 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
416
427
|
});
|
|
417
428
|
return dropdownIcon;
|
|
418
429
|
};
|
|
419
|
-
var
|
|
420
|
-
|
|
430
|
+
var rootProps = utils.mergeProps({
|
|
431
|
+
ref: elementRef,
|
|
432
|
+
id: idState,
|
|
433
|
+
className: className,
|
|
434
|
+
style: props.style
|
|
435
|
+
}, SplitButtonBase.getOtherProps(props), ptm('root'));
|
|
436
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement(button.Button, _extends({
|
|
437
|
+
ref: defaultButtonRef,
|
|
438
|
+
type: "button",
|
|
439
|
+
className: buttonClassName,
|
|
440
|
+
icon: props.icon,
|
|
441
|
+
loading: props.loading,
|
|
442
|
+
loadingIcon: props.loadingIcon,
|
|
443
|
+
label: props.label,
|
|
444
|
+
onClick: props.onClick,
|
|
445
|
+
disabled: props.disabled,
|
|
446
|
+
tabIndex: props.tabIndex
|
|
447
|
+
}, props.buttonProps, {
|
|
448
|
+
pt: ptm('button')
|
|
449
|
+
}), buttonContent), /*#__PURE__*/React__namespace.createElement(button.Button, _extends({
|
|
450
|
+
type: "button",
|
|
421
451
|
className: menuButtonClassName,
|
|
422
452
|
icon: dropdownIcon,
|
|
423
453
|
onClick: onDropdownButtonClick,
|
|
424
454
|
disabled: props.disabled,
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
}, props.menuButtonProps
|
|
455
|
+
"aria-expanded": overlayVisibleState,
|
|
456
|
+
"aria-haspopup": "true",
|
|
457
|
+
"aria-controls": overlayVisibleState ? menuId : null
|
|
458
|
+
}, props.menuButtonProps, {
|
|
429
459
|
pt: ptm('menuButton')
|
|
430
|
-
}))
|
|
431
|
-
var menuProps = utils.mergeProps({
|
|
460
|
+
})), /*#__PURE__*/React__namespace.createElement(SplitButtonPanel, {
|
|
432
461
|
ref: overlayRef,
|
|
433
462
|
appendTo: props.appendTo,
|
|
434
463
|
menuId: menuId,
|
|
@@ -440,32 +469,14 @@ this.primereact.splitbutton = (function (exports, React, PrimeReact, button, hoo
|
|
|
440
469
|
onEntered: onOverlayEntered,
|
|
441
470
|
onExit: onOverlayExit,
|
|
442
471
|
onExited: onOverlayExited,
|
|
443
|
-
transitionOptions: props.transitionOptions
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
ref: defaultButtonRef,
|
|
447
|
-
type: 'button',
|
|
448
|
-
className: buttonClassName,
|
|
449
|
-
icon: props.icon,
|
|
450
|
-
loading: props.loading,
|
|
451
|
-
loadingIcon: props.loadingIcon,
|
|
452
|
-
label: props.label,
|
|
453
|
-
onClick: props.onClick,
|
|
454
|
-
disabled: props.disabled,
|
|
455
|
-
tabIndex: props.tabIndex
|
|
456
|
-
}, props.buttonProps), {}, {
|
|
457
|
-
pt: ptm('button')
|
|
458
|
-
}));
|
|
459
|
-
var rootProps = utils.mergeProps({
|
|
460
|
-
ref: elementRef,
|
|
461
|
-
id: idState,
|
|
462
|
-
className: className,
|
|
463
|
-
style: props.style
|
|
464
|
-
}, SplitButtonBase.getOtherProps(props), ptm('root'));
|
|
465
|
-
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement(button.Button, splitButtonProps, buttonContent), /*#__PURE__*/React__namespace.createElement(button.Button, menuButtonProps), /*#__PURE__*/React__namespace.createElement(SplitButtonPanel, menuProps, items)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
472
|
+
transitionOptions: props.transitionOptions,
|
|
473
|
+
ptm: ptm
|
|
474
|
+
}, items)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
466
475
|
target: elementRef,
|
|
467
476
|
content: props.tooltip
|
|
468
|
-
}, props.tooltipOptions
|
|
477
|
+
}, props.tooltipOptions, {
|
|
478
|
+
pt: ptm('tooltip')
|
|
479
|
+
})));
|
|
469
480
|
}));
|
|
470
481
|
SplitButton.displayName = 'SplitButton';
|
|
471
482
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.splitbutton=function(e,t,n,r,o,l,i,a,u,c,s,m){"use strict";function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function d(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 f=d(t),b=p(n);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e){return v="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},v(e)}function g(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function O(e){var t=g(e,"string");return"symbol"===v(t)?t:String(t)}function E(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.splitbutton=function(e,t,n,r,o,l,i,a,u,c,s,m){"use strict";function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function d(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 f=d(t),b=p(n);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e){return v="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},v(e)}function g(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function O(e){var t=g(e,"string");return"symbol"===v(t)?t:String(t)}function E(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e){if(Array.isArray(e))return e}function j(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 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 S(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 N(){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 I(e,t){return P(e)||j(e,t)||S(e,t)||N()}var w=c.ComponentBase.extend({defaultProps:{__TYPE:"SplitButton",id:null,label:null,icon:null,loading:!1,loadingIcon:null,model:null,disabled:null,style:null,className:null,buttonClassName:null,menuStyle:null,menuClassName:null,menuButtonClassName:null,buttonProps:null,menuButtonProps:null,tabIndex:null,severity:null,rounded:!1,raised:!1,outlined:!1,text:!1,size:null,appendTo:null,tooltip:null,tooltipOptions:null,buttonTemplate:null,transitionOptions:null,dropdownIcon:null,onClick:null,onShow:null,onHide:null,children:void 0}});function C(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=f.memo((function(e){var t,n=function(t){e.menuitem.command&&e.menuitem.command({originalEvent:t,item:e.menuitem}),e.onItemClick&&e.onItemClick(t),t.preventDefault()},r=function(){if(!1===e.menuitem.visible)return null;var t=e.menuitem,r=t.icon,o=t.label,l=t.template,i=t.url,a=t.target,c=u.classNames("p-menuitem-link",t.className,{"p-disabled":t.disabled}),s=u.classNames("p-menuitem-icon",r),m=u.mergeProps({className:"p-menuitem-icon"},e.ptm("menuIcon")),p=u.IconUtils.getJSXIcon(r,x({},m),{props:e.splitButtonProps}),d=u.mergeProps({className:"p-menuitem-text"},e.ptm("menuLabel")),b=o&&f.createElement("span",d,o),y=u.mergeProps({href:i||"#",role:"menuitem",className:c,target:a,onClick:n,"aria-label":o},e.ptm("anchor")),v=f.createElement("a",y,p,b);l&&(v=u.ObjectUtils.getJSXElement(l,e.menuitem,{onClick:n,className:c,labelClassName:"p-menuitem-text",iconClassName:s,element:v,props:e}));var g=u.mergeProps({className:"p-menuitem",role:"none"},e.ptm("menuItem"));return f.createElement("li",g,v)};return e.menuitem.separator?(t=u.mergeProps({className:"p-menu-separator",role:"separator"},e.ptm("separator")),f.createElement("li",t)):r()}));k.displayName="SplitButtonItem";var T=f.forwardRef((function(e,t){var n,r,o,l=(n=u.classNames("p-menu p-menu-overlay p-component",e.menuClassName),r=u.mergeProps({ref:t,className:n,style:e.menuStyle,onClick:e.onClick},e.ptm("menu")),o=u.mergeProps({id:e.menuId,className:"p-menu-list p-reset",role:"menu"},e.ptm("menuList")),f.createElement(s.CSSTransition,{nodeRef:t,classNames:"p-connected-overlay",in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:e.onEnter,onEntered:e.onEntered,onExit:e.onExit,onExited:e.onExited},f.createElement("div",r,f.createElement("ul",o,e.children))));return f.createElement(m.Portal,{element:l,appendTo:e.appendTo})}));function B(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}T.displayName="SplitButtonPanel";var U=f.memo(f.forwardRef((function(e,t){var c,s=f.useContext(n.PrimeReactContext),m=w.getProps(e,s),p=I(f.useState(m.id),2),d=p[0],v=p[1],g=I(f.useState(!1),2),O=g[0],P=g[1],j=f.useRef(null),h=f.useRef(null),S=f.useRef(null),N=w.setMetaData({props:m,state:{id:d,overlayVisible:O}}).ptm,C=I(o.useOverlayListener({target:j,overlay:S,listener:function(e,t){t.valid&&_()},when:O}),2),x=C[0],B=C[1],U=function(){_()},R=function(){P(!0)},_=function(){P(!1)},A=function(){u.DomHandler.alignOverlay(S.current,h.current.parentElement,m.appendTo||s&&s.appendTo||b.default.appendTo)};o.useMountEffect((function(){d||v(u.UniqueComponentId())})),o.useUnmountEffect((function(){u.ZIndexUtils.clear(S.current)})),f.useImperativeHandle(t,(function(){return{props:m,show:R,hide:_,getElement:function(){return j.current}}}));if(!1===m.visible)return null;var z=u.ObjectUtils.isNotEmpty(m.tooltip),H={large:"lg",small:"sm"}[m.size],M=u.classNames("p-splitbutton p-component",m.className,(E(c={"p-disabled":m.disabled,"p-button-loading-label-only":m.loading&&!m.icon&&m.label},"p-button-".concat(m.severity),m.severity),E(c,"p-button-raised",m.raised),E(c,"p-button-rounded",m.rounded),E(c,"p-button-text",m.text),E(c,"p-button-outlined",m.outlined),E(c,"p-button-".concat(H),H),c)),Z=u.classNames("p-splitbutton-defaultbutton",m.buttonClassName),J=u.classNames("p-splitbutton-menubutton",m.menuButtonClassName),X=m.buttonTemplate?u.ObjectUtils.getJSXElement(m.buttonTemplate,m):null,L=m.model?m.model.map((function(e,t){return f.createElement(k,{splitButtonProps:m,menuitem:e,key:t,onItemClick:U,ptm:N})})):null,q=d+"_menu",F=u.mergeProps({ref:j,id:d,className:M,style:m.style},w.getOtherProps(m),N("root"));return f.createElement(f.Fragment,null,f.createElement("div",F,f.createElement(r.Button,y({ref:h,type:"button",className:Z,icon:m.icon,loading:m.loading,loadingIcon:m.loadingIcon,label:m.label,onClick:m.onClick,disabled:m.disabled,tabIndex:m.tabIndex},m.buttonProps,{pt:N("button")}),X),f.createElement(r.Button,y({type:"button",className:J,icon:function(){var e=u.mergeProps({className:"p-button-icon p-c"},N("icon")),t=u.IconUtils.getJSXIcon(m.dropdownIcon||f.createElement(l.ChevronDownIcon,e),D({},e),{props:m});return t},onClick:function(){O?_():R()},disabled:m.disabled,"aria-expanded":O,"aria-haspopup":"true","aria-controls":O?q:null},m.menuButtonProps,{pt:N("menuButton")})),f.createElement(T,{ref:S,appendTo:m.appendTo,menuId:q,menuStyle:m.menuStyle,menuClassName:m.menuClassName,onClick:function(e){i.OverlayService.emit("overlay-click",{originalEvent:e,target:j.current})},in:O,onEnter:function(){u.ZIndexUtils.set("overlay",S.current,s&&s.autoZIndex||b.default.autoZIndex,s&&s.zIndex.overlay||b.default.zIndex.overlay),A()},onEntered:function(){x(),m.onShow&&m.onShow()},onExit:function(){B()},onExited:function(){u.ZIndexUtils.clear(S.current),m.onHide&&m.onHide()},transitionOptions:m.transitionOptions,ptm:N},L)),z&&f.createElement(a.Tooltip,y({target:j,content:m.tooltip},m.tooltipOptions,{pt:N("tooltip")})))})));return U.displayName="SplitButton",e.SplitButton=U,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.button,primereact.hooks,primereact.icons.chevrondown,primereact.overlayservice,primereact.tooltip,primereact.utils,primereact.componentbase,primereact.csstransition,primereact.portal);
|
package/splitter/splitter.cjs.js
CHANGED
|
@@ -6,6 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var hooks = require('primereact/hooks');
|
|
7
7
|
var utils = require('primereact/utils');
|
|
8
8
|
var componentbase = require('primereact/componentbase');
|
|
9
|
+
var api = require('primereact/api');
|
|
9
10
|
|
|
10
11
|
function _interopNamespace(e) {
|
|
11
12
|
if (e && e.__esModule) return e;
|
|
@@ -177,7 +178,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
177
178
|
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; }
|
|
178
179
|
var SplitterPanel = function SplitterPanel() {};
|
|
179
180
|
var Splitter = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
180
|
-
var
|
|
181
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
182
|
+
var props = SplitterBase.getProps(inProps, context);
|
|
181
183
|
var elementRef = React__namespace.useRef(null);
|
|
182
184
|
var gutterRef = React__namespace.useRef();
|
|
183
185
|
var gutterRefs = React__namespace.useRef({});
|