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,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransition, hooks, portal, utils, ripple, angleright) {
|
|
2
|
+
this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransition, hooks, portal, utils, componentbase, ripple, angleright) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -25,21 +25,6 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
25
25
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
26
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
27
|
|
|
28
|
-
function _extends() {
|
|
29
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
31
|
-
var source = arguments[i];
|
|
32
|
-
for (var key in source) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
-
target[key] = source[key];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return target;
|
|
39
|
-
};
|
|
40
|
-
return _extends.apply(this, arguments);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
28
|
function _arrayWithHoles(arr) {
|
|
44
29
|
if (Array.isArray(arr)) return arr;
|
|
45
30
|
}
|
|
@@ -95,7 +80,7 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
95
80
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
96
81
|
}
|
|
97
82
|
|
|
98
|
-
var ContextMenuBase = {
|
|
83
|
+
var ContextMenuBase = componentbase.ComponentBase.extend({
|
|
99
84
|
defaultProps: {
|
|
100
85
|
__TYPE: 'ContextMenu',
|
|
101
86
|
id: null,
|
|
@@ -113,15 +98,52 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
113
98
|
onHide: null,
|
|
114
99
|
submenuIcon: null,
|
|
115
100
|
children: undefined
|
|
116
|
-
},
|
|
117
|
-
getProps: function getProps(props) {
|
|
118
|
-
return utils.ObjectUtils.getMergedProps(props, ContextMenuBase.defaultProps);
|
|
119
|
-
},
|
|
120
|
-
getOtherProps: function getOtherProps(props) {
|
|
121
|
-
return utils.ObjectUtils.getDiffProps(props, ContextMenuBase.defaultProps);
|
|
122
101
|
}
|
|
123
|
-
};
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
function _typeof(obj) {
|
|
105
|
+
"@babel/helpers - typeof";
|
|
106
|
+
|
|
107
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
108
|
+
return typeof obj;
|
|
109
|
+
} : function (obj) {
|
|
110
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
111
|
+
}, _typeof(obj);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function _toPrimitive(input, hint) {
|
|
115
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
116
|
+
var prim = input[Symbol.toPrimitive];
|
|
117
|
+
if (prim !== undefined) {
|
|
118
|
+
var res = prim.call(input, hint || "default");
|
|
119
|
+
if (_typeof(res) !== "object") return res;
|
|
120
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
121
|
+
}
|
|
122
|
+
return (hint === "string" ? String : Number)(input);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function _toPropertyKey(arg) {
|
|
126
|
+
var key = _toPrimitive(arg, "string");
|
|
127
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
128
|
+
}
|
|
124
129
|
|
|
130
|
+
function _defineProperty(obj, key, value) {
|
|
131
|
+
key = _toPropertyKey(key);
|
|
132
|
+
if (key in obj) {
|
|
133
|
+
Object.defineProperty(obj, key, {
|
|
134
|
+
value: value,
|
|
135
|
+
enumerable: true,
|
|
136
|
+
configurable: true,
|
|
137
|
+
writable: true
|
|
138
|
+
});
|
|
139
|
+
} else {
|
|
140
|
+
obj[key] = value;
|
|
141
|
+
}
|
|
142
|
+
return obj;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
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; }
|
|
146
|
+
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; }
|
|
125
147
|
var ContextMenuSub = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
126
148
|
var _React$useState = React__namespace.useState(null),
|
|
127
149
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -129,6 +151,13 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
129
151
|
setActiveItemState = _React$useState2[1];
|
|
130
152
|
var submenuRef = React__namespace.useRef(null);
|
|
131
153
|
var active = props.root || !props.resetMenu;
|
|
154
|
+
var getPTOptions = function getPTOptions(item, key) {
|
|
155
|
+
return props.ptm(key, {
|
|
156
|
+
context: {
|
|
157
|
+
active: activeItemState === item
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
};
|
|
132
161
|
if (props.resetMenu === true && activeItemState !== null) {
|
|
133
162
|
setActiveItemState(null);
|
|
134
163
|
}
|
|
@@ -187,11 +216,12 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
187
216
|
active && position();
|
|
188
217
|
});
|
|
189
218
|
var createSeparator = function createSeparator(index) {
|
|
190
|
-
|
|
219
|
+
var separatorProps = utils.mergeProps({
|
|
220
|
+
role: 'separator',
|
|
191
221
|
key: 'separator_' + index,
|
|
192
|
-
className:
|
|
193
|
-
|
|
194
|
-
|
|
222
|
+
className: 'p-menu-separator'
|
|
223
|
+
}, props.ptm('separator'));
|
|
224
|
+
return /*#__PURE__*/React__namespace.createElement("li", separatorProps);
|
|
195
225
|
};
|
|
196
226
|
var createSubmenu = function createSubmenu(item) {
|
|
197
227
|
if (item.items) {
|
|
@@ -201,7 +231,8 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
201
231
|
resetMenu: item !== activeItemState,
|
|
202
232
|
onLeafClick: props.onLeafClick,
|
|
203
233
|
isMobileMode: props.isMobileMode,
|
|
204
|
-
submenuIcon: props.submenuIcon
|
|
234
|
+
submenuIcon: props.submenuIcon,
|
|
235
|
+
ptm: props.ptm
|
|
205
236
|
});
|
|
206
237
|
}
|
|
207
238
|
return null;
|
|
@@ -219,44 +250,47 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
219
250
|
'p-disabled': item.disabled
|
|
220
251
|
});
|
|
221
252
|
var iconClassName = 'p-menuitem-icon';
|
|
222
|
-
var
|
|
253
|
+
var iconProps = utils.mergeProps({
|
|
223
254
|
className: iconClassName
|
|
224
|
-
},
|
|
255
|
+
}, getPTOptions(item, 'icon'));
|
|
256
|
+
var icon = utils.IconUtils.getJSXIcon(item.icon, _objectSpread({}, iconProps), {
|
|
225
257
|
props: props.menuProps
|
|
226
258
|
});
|
|
227
259
|
var submenuIconClassName = 'p-submenu-icon';
|
|
228
|
-
var
|
|
229
|
-
className: submenuIconClassName
|
|
230
|
-
}), {
|
|
260
|
+
var submenuIconProps = utils.mergeProps({
|
|
231
261
|
className: submenuIconClassName
|
|
232
|
-
},
|
|
262
|
+
}, getPTOptions(item, 'submenuIcon'));
|
|
263
|
+
var labelProps = utils.mergeProps({
|
|
264
|
+
className: 'p-menuitem-text'
|
|
265
|
+
}, getPTOptions(item, 'label'));
|
|
266
|
+
var submenuIcon = item.items && utils.IconUtils.getJSXIcon(props.submenuIcon || /*#__PURE__*/React__namespace.createElement(angleright.AngleRightIcon, submenuIconProps), _objectSpread({}, submenuIconProps), {
|
|
233
267
|
props: props.menuProps
|
|
234
268
|
});
|
|
235
|
-
var label = item.label && /*#__PURE__*/React__namespace.createElement("span",
|
|
236
|
-
className: "p-menuitem-text"
|
|
237
|
-
}, item.label);
|
|
269
|
+
var label = item.label && /*#__PURE__*/React__namespace.createElement("span", labelProps, item.label);
|
|
238
270
|
var submenu = createSubmenu(item);
|
|
239
|
-
var
|
|
271
|
+
var actionProps = utils.mergeProps({
|
|
240
272
|
href: item.url || '#',
|
|
241
273
|
className: linkClassName,
|
|
242
274
|
target: item.target,
|
|
243
275
|
onClick: function onClick(event) {
|
|
244
276
|
return onItemClick(event, item);
|
|
245
277
|
},
|
|
246
|
-
role:
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
},
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
role: "none",
|
|
278
|
+
role: 'menuitem',
|
|
279
|
+
'aria-haspopup': item.items != null,
|
|
280
|
+
'aria-disabled': item.disabled
|
|
281
|
+
}, getPTOptions(item, 'action'));
|
|
282
|
+
var content = /*#__PURE__*/React__namespace.createElement("a", actionProps, icon, label, submenuIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
283
|
+
var menuitemProps = utils.mergeProps({
|
|
253
284
|
id: item.id,
|
|
285
|
+
role: 'none',
|
|
254
286
|
className: className,
|
|
255
287
|
style: item.style,
|
|
288
|
+
key: key,
|
|
256
289
|
onMouseEnter: function onMouseEnter(event) {
|
|
257
290
|
return onItemMouseEnter(event, item);
|
|
258
291
|
}
|
|
259
|
-
},
|
|
292
|
+
}, getPTOptions(item, 'menuitem'));
|
|
293
|
+
return /*#__PURE__*/React__namespace.createElement("li", menuitemProps, content, submenu);
|
|
260
294
|
};
|
|
261
295
|
var createItem = function createItem(item, index) {
|
|
262
296
|
return item.separator ? createSeparator(index) : createMenuItem(item, index);
|
|
@@ -268,6 +302,10 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
268
302
|
'p-submenu-list': !props.root
|
|
269
303
|
});
|
|
270
304
|
var submenu = createMenu();
|
|
305
|
+
var menuProps = utils.mergeProps({
|
|
306
|
+
ref: submenuRef,
|
|
307
|
+
className: className
|
|
308
|
+
}, props.ptm('menu'));
|
|
271
309
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
272
310
|
nodeRef: submenuRef,
|
|
273
311
|
classNames: "p-contextmenusub",
|
|
@@ -278,15 +316,13 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
278
316
|
},
|
|
279
317
|
unmountOnExit: true,
|
|
280
318
|
onEnter: onEnter
|
|
281
|
-
}, /*#__PURE__*/React__namespace.createElement("ul",
|
|
282
|
-
ref: submenuRef,
|
|
283
|
-
className: className
|
|
284
|
-
}, submenu));
|
|
319
|
+
}, /*#__PURE__*/React__namespace.createElement("ul", menuProps, submenu));
|
|
285
320
|
});
|
|
286
321
|
ContextMenuSub.displayName = 'ContextMenuSub';
|
|
287
322
|
|
|
288
323
|
var ContextMenu = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
289
|
-
var
|
|
324
|
+
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
325
|
+
var props = ContextMenuBase.getProps(inProps, context);
|
|
290
326
|
var _React$useState = React__namespace.useState(false),
|
|
291
327
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
292
328
|
visibleState = _React$useState2[0],
|
|
@@ -303,6 +339,16 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
303
339
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
304
340
|
attributeSelectorState = _React$useState8[0],
|
|
305
341
|
setAttributeSelectorState = _React$useState8[1];
|
|
342
|
+
var _ContextMenuBase$setM = ContextMenuBase.setMetaData({
|
|
343
|
+
props: props,
|
|
344
|
+
state: {
|
|
345
|
+
visible: visibleState,
|
|
346
|
+
reshow: reshowState,
|
|
347
|
+
resetMenu: resetMenuState,
|
|
348
|
+
attributeSelector: attributeSelectorState
|
|
349
|
+
}
|
|
350
|
+
}),
|
|
351
|
+
ptm = _ContextMenuBase$setM.ptm;
|
|
306
352
|
var menuRef = React__namespace.useRef(null);
|
|
307
353
|
var currentEvent = React__namespace.useRef(null);
|
|
308
354
|
var styleElementRef = React__namespace.useRef(null);
|
|
@@ -321,6 +367,7 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
321
367
|
unbindDocumentClickListener = _useEventListener2[1];
|
|
322
368
|
var _useEventListener3 = hooks.useEventListener({
|
|
323
369
|
type: 'contextmenu',
|
|
370
|
+
when: props.global,
|
|
324
371
|
listener: function listener(event) {
|
|
325
372
|
show(event);
|
|
326
373
|
}
|
|
@@ -339,7 +386,7 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
339
386
|
unbindDocumentResizeListener = _useResizeListener2[1];
|
|
340
387
|
var createStyle = function createStyle() {
|
|
341
388
|
if (!styleElementRef.current) {
|
|
342
|
-
styleElementRef.current = utils.DomHandler.createInlineStyle(PrimeReact__default["default"].nonce);
|
|
389
|
+
styleElementRef.current = utils.DomHandler.createInlineStyle(context && context.nonce || PrimeReact__default["default"].nonce);
|
|
343
390
|
var selector = "".concat(attributeSelectorState);
|
|
344
391
|
var innerHTML = "\n@media screen and (max-width: ".concat(props.breakpoint, ") {\n .p-contextmenu[").concat(selector, "] > ul {\n max-height: ").concat(props.scrollHeight, ";\n overflow: ").concat(props.scrollHeight ? 'auto' : '', ";\n }\n\n .p-contextmenu[").concat(selector, "] .p-submenu-list {\n position: relative;\n }\n\n .p-contextmenu[").concat(selector, "] .p-menuitem-active > .p-submenu-list {\n left: 0 !important;\n box-shadow: none;\n border-radius: 0;\n padding: 0 0 0 calc(var(--inline-spacing) * 2); /* @todo */\n }\n\n .p-contextmenu[").concat(selector, "] .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-180deg);\n }\n\n .p-contextmenu[").concat(selector, "] .p-submenu-icon:before {\n content: \"\\e930\";\n }\n}\n");
|
|
345
392
|
styleElementRef.current.innerHTML = innerHTML;
|
|
@@ -373,7 +420,7 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
373
420
|
};
|
|
374
421
|
var onEnter = function onEnter() {
|
|
375
422
|
if (props.autoZIndex) {
|
|
376
|
-
utils.ZIndexUtils.set('menu', menuRef.current, PrimeReact__default["default"].autoZIndex, props.baseZIndex || PrimeReact__default["default"].zIndex['menu']);
|
|
423
|
+
utils.ZIndexUtils.set('menu', menuRef.current, context && context.autoZIndex || PrimeReact__default["default"].autoZIndex, props.baseZIndex || context && context.zIndex['menu'] || PrimeReact__default["default"].zIndex['menu']);
|
|
377
424
|
}
|
|
378
425
|
position(currentEvent.current);
|
|
379
426
|
if (attributeSelectorState && props.breakpoint) {
|
|
@@ -440,13 +487,13 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
440
487
|
unbindDocumentClickListener();
|
|
441
488
|
};
|
|
442
489
|
hooks.useMountEffect(function () {
|
|
443
|
-
if (props.global) {
|
|
444
|
-
bindDocumentContextMenuListener();
|
|
445
|
-
}
|
|
446
490
|
if (props.breakpoint) {
|
|
447
491
|
!attributeSelectorState && setAttributeSelectorState(utils.UniqueComponentId());
|
|
448
492
|
}
|
|
449
493
|
});
|
|
494
|
+
hooks.useUpdateEffect(function () {
|
|
495
|
+
props.global && bindDocumentContextMenuListener();
|
|
496
|
+
}, [props.global]);
|
|
450
497
|
hooks.useUpdateEffect(function () {
|
|
451
498
|
if (attributeSelectorState && menuRef.current) {
|
|
452
499
|
menuRef.current.setAttribute(attributeSelectorState, '');
|
|
@@ -479,11 +526,22 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
479
526
|
};
|
|
480
527
|
});
|
|
481
528
|
var createContextMenu = function createContextMenu() {
|
|
482
|
-
var otherProps = ContextMenuBase.getOtherProps(props);
|
|
483
529
|
var className = utils.classNames('p-contextmenu p-component', props.className, {
|
|
484
|
-
'p-input-filled': PrimeReact__default["default"].inputStyle === 'filled',
|
|
485
|
-
'p-ripple-disabled': PrimeReact__default["default"].ripple === false
|
|
530
|
+
'p-input-filled': context && context.inputStyle === 'filled' || PrimeReact__default["default"].inputStyle === 'filled',
|
|
531
|
+
'p-ripple-disabled': context && context.ripple === false || PrimeReact__default["default"].ripple === false
|
|
486
532
|
});
|
|
533
|
+
var rootProps = utils.mergeProps({
|
|
534
|
+
id: props.id,
|
|
535
|
+
ref: menuRef,
|
|
536
|
+
className: className,
|
|
537
|
+
style: props.style,
|
|
538
|
+
onClick: function onClick(e) {
|
|
539
|
+
return onMenuClick();
|
|
540
|
+
},
|
|
541
|
+
onMouseEnter: function onMouseEnter(e) {
|
|
542
|
+
return onMenuMouseEnter();
|
|
543
|
+
}
|
|
544
|
+
}, ContextMenuBase.getOtherProps(props), ptm('root'));
|
|
487
545
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
488
546
|
nodeRef: menuRef,
|
|
489
547
|
classNames: "p-contextmenu",
|
|
@@ -498,22 +556,15 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
498
556
|
onEntered: onEntered,
|
|
499
557
|
onExit: onExit,
|
|
500
558
|
onExited: onExited
|
|
501
|
-
}, /*#__PURE__*/React__namespace.createElement("div",
|
|
502
|
-
ref: menuRef,
|
|
503
|
-
id: props.id,
|
|
504
|
-
className: className,
|
|
505
|
-
style: props.style
|
|
506
|
-
}, otherProps, {
|
|
507
|
-
onClick: onMenuClick,
|
|
508
|
-
onMouseEnter: onMenuMouseEnter
|
|
509
|
-
}), /*#__PURE__*/React__namespace.createElement(ContextMenuSub, {
|
|
559
|
+
}, /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement(ContextMenuSub, {
|
|
510
560
|
menuProps: props,
|
|
511
561
|
model: props.model,
|
|
512
562
|
root: true,
|
|
513
563
|
resetMenu: resetMenuState,
|
|
514
564
|
onLeafClick: onLeafClick,
|
|
515
565
|
isMobileMode: isMobileMode,
|
|
516
|
-
submenuIcon: props.submenuIcon
|
|
566
|
+
submenuIcon: props.submenuIcon,
|
|
567
|
+
ptm: ptm
|
|
517
568
|
})));
|
|
518
569
|
};
|
|
519
570
|
var element = createContextMenu();
|
|
@@ -530,4 +581,4 @@ this.primereact.contextmenu = (function (exports, React, PrimeReact, csstransiti
|
|
|
530
581
|
|
|
531
582
|
return exports;
|
|
532
583
|
|
|
533
|
-
})({}, React, primereact.api, primereact.csstransition, primereact.hooks, primereact.portal, primereact.utils, primereact.ripple, primereact.icons.angleright);
|
|
584
|
+
})({}, React, primereact.api, primereact.csstransition, primereact.hooks, primereact.portal, primereact.utils, primereact.componentbase, primereact.ripple, primereact.icons.angleright);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.contextmenu=function(e,t,n,r,o,u,i,l,a){"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 m=s(t),p=c(n);function f(){return f=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},f.apply(this,arguments)}function d(e){if(Array.isArray(e))return e}function b(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,u,i,l=[],a=!0,c=!1;try{if(u=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=u.call(n)).done)&&(l.push(r.value),l.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{if(!a&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}function g(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 h(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}function y(){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 v(e,t){return d(e)||b(e,t)||h(e,t)||y()}var x={defaultProps:{__TYPE:"ContextMenu",id:null,model:null,style:null,className:null,global:!1,autoZIndex:!0,baseZIndex:0,breakpoint:void 0,scrollHeight:"400px",appendTo:null,transitionOptions:null,onShow:null,onHide:null,submenuIcon:null,children:void 0},getProps:function(e){return i.ObjectUtils.getMergedProps(e,x.defaultProps)},getOtherProps:function(e){return i.ObjectUtils.getDiffProps(e,x.defaultProps)}},E=m.memo((function(e){var t=v(m.useState(null),2),n=t[0],u=t[1],c=m.useRef(null),s=e.root||!e.resetMenu;!0===e.resetMenu&&null!==n&&u(null);var p=function(t,n){n.disabled||e.isMobileMode?t.preventDefault():u(n)},f=function(t,r){r.disabled?t.preventDefault():(r.url||t.preventDefault(),r.command&&r.command({originalEvent:t,item:r}),e.isMobileMode&&r.items&&u(n&&r===n?null:r),r.items||e.onLeafClick(t))},d=function(){if(!e.isMobileMode){var t=c.current.parentElement,n=i.DomHandler.getOffset(t),r=i.DomHandler.getViewport(),o=c.current.offsetParent?c.current.offsetWidth:i.DomHandler.getHiddenElementOuterWidth(c.current),u=i.DomHandler.getOuterWidth(t.children[0]),l=parseInt(n.top,10)+c.current.offsetHeight-i.DomHandler.getWindowScrollTop();c.current.style.top=l>r.height?r.height-l+"px":"0px",c.current.style.left=parseInt(n.left,10)+u+o>r.width-i.DomHandler.calculateScrollbarWidth()?-1*o+"px":u+"px"}};o.useUpdateEffect((function(){s&&d()}));var b=function(e){return m.createElement("li",{key:"separator_"+e,className:"p-menu-separator",role:"separator"})},g=function(t){return t.items?m.createElement(E,{menuProps:e.menuProps,model:t.items,resetMenu:t!==n,onLeafClick:e.onLeafClick,isMobileMode:e.isMobileMode,submenuIcon:e.submenuIcon}):null},h=function(t,r){if(!1===t.visible)return null;var o=t.label+"_"+r,u=i.classNames("p-menuitem",{"p-menuitem-active":n===t},t.className),c=i.classNames("p-menuitem-link",{"p-disabled":t.disabled}),s=i.IconUtils.getJSXIcon(t.icon,{className:"p-menuitem-icon"},{props:e.menuProps}),d="p-submenu-icon",b=t.items&&i.IconUtils.getJSXIcon(e.submenuIcon||m.createElement(a.AngleRightIcon,{className:d}),{className:d},{props:e.menuProps}),h=t.label&&m.createElement("span",{className:"p-menuitem-text"},t.label),y=g(t);return m.createElement("li",{key:o,role:"none",id:t.id,className:u,style:t.style,onMouseEnter:function(e){return p(e,t)}},m.createElement("a",{href:t.url||"#",className:c,target:t.target,onClick:function(e){return f(e,t)},role:"menuitem","aria-haspopup":null!=t.items,"aria-disabled":t.disabled},s,h,b,m.createElement(l.Ripple,null)),y)},y=function(e,t){return e.separator?b(t):h(e,t)},x=i.classNames({"p-submenu-list":!e.root}),I=e.model?e.model.map(y):null;return m.createElement(r.CSSTransition,{nodeRef:c,classNames:"p-contextmenusub",in:s,timeout:{enter:0,exit:0},unmountOnExit:!0,onEnter:function(){d()}},m.createElement("ul",{ref:c,className:x},I))}));E.displayName="ContextMenuSub";var I=m.memo(m.forwardRef((function(e,t){var n=x.getProps(e),l=v(m.useState(!1),2),a=l[0],c=l[1],s=v(m.useState(!1),2),d=s[0],b=s[1],g=v(m.useState(!1),2),h=g[0],y=g[1],I=v(m.useState(null),2),M=I[0],O=I[1],H=m.useRef(null),S=m.useRef(null),P=m.useRef(null),N=o.useMatchMedia("screen and (max-width: ".concat(n.breakpoint,")"),!!n.breakpoint),k=v(o.useEventListener({type:"click",listener:function(e){$(e)&&2!==e.button&&(W(e),y(!0))}}),2),w=k[0],D=k[1],j=v(o.useEventListener({type:"contextmenu",listener:function(e){_(e)}}),1)[0],C=v(o.useResizeListener({listener:function(e){a&&!i.DomHandler.isTouchDevice()&&W(e)}}),2),U=C[0],T=C[1],L=function(){if(!P.current){P.current=i.DomHandler.createInlineStyle(p.default.nonce);var e="".concat(M),t="\n@media screen and (max-width: ".concat(n.breakpoint,") {\n .p-contextmenu[").concat(e,"] > ul {\n max-height: ").concat(n.scrollHeight,";\n overflow: ").concat(n.scrollHeight?"auto":"",";\n }\n\n .p-contextmenu[").concat(e,"] .p-submenu-list {\n position: relative;\n }\n\n .p-contextmenu[").concat(e,"] .p-menuitem-active > .p-submenu-list {\n left: 0 !important;\n box-shadow: none;\n border-radius: 0;\n padding: 0 0 0 calc(var(--inline-spacing) * 2); /* @todo */\n }\n\n .p-contextmenu[").concat(e,"] .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-180deg);\n }\n\n .p-contextmenu[").concat(e,'] .p-submenu-icon:before {\n content: "\\e930";\n }\n}\n');P.current.innerHTML=t}},R=function(){P.current=i.DomHandler.removeInlineStyle(P.current)},A=function(){y(!1)},Z=function(){y(!1)},_=function(e){e.stopPropagation(),e.preventDefault(),S.current=e,a?b(!0):(c(!0),n.onShow&&n.onShow(S.current))},W=function(e){S.current=e,c(!1),b(!1),n.onHide&&n.onHide(S.current)},z=function(){n.autoZIndex&&i.ZIndexUtils.set("menu",H.current,p.default.autoZIndex,n.baseZIndex||p.default.zIndex.menu),Y(S.current),M&&n.breakpoint&&(H.current.setAttribute(M,""),L())},X=function(){B()},J=function(){F(),i.ZIndexUtils.clear(H.current)},V=function(){i.ZIndexUtils.clear(H.current),R()},Y=function(e){if(e){var t=e.pageX+1,n=e.pageY+1,r=H.current.offsetParent?H.current.offsetWidth:i.DomHandler.getHiddenElementOuterWidth(H.current),o=H.current.offsetParent?H.current.offsetHeight:i.DomHandler.getHiddenElementOuterHeight(H.current),u=i.DomHandler.getViewport();t+r-document.body.scrollLeft>u.width&&(t-=r),n+o-document.body.scrollTop>u.height&&(n-=o),t<document.body.scrollLeft&&(t=document.body.scrollLeft),n<document.body.scrollTop&&(n=document.body.scrollTop),H.current.style.left=t+"px",H.current.style.top=n+"px"}},q=function(e){y(!0),W(e),e.stopPropagation()},$=function(e){return H&&H.current&&!(H.current.isSameNode(e.target)||H.current.contains(e.target))},B=function(){U(),w()},F=function(){T(),D()};o.useMountEffect((function(){n.global&&j(),n.breakpoint&&!M&&O(i.UniqueComponentId())})),o.useUpdateEffect((function(){return M&&H.current&&(H.current.setAttribute(M,""),L()),function(){R()}}),[M,n.breakpoint]),o.useUpdateEffect((function(){a?(c(!1),b(!1),y(!0)):d||a||!h||_(S.current)}),[d]),o.useUnmountEffect((function(){i.ZIndexUtils.clear(H.current)})),m.useImperativeHandle(t,(function(){return{props:n,show:_,hide:W,getElement:function(){return H.current}}}));var G,K,Q=(G=x.getOtherProps(n),K=i.classNames("p-contextmenu p-component",n.className,{"p-input-filled":"filled"===p.default.inputStyle,"p-ripple-disabled":!1===p.default.ripple}),m.createElement(r.CSSTransition,{nodeRef:H,classNames:"p-contextmenu",in:a,timeout:{enter:250,exit:0},options:n.transitionOptions,unmountOnExit:!0,onEnter:z,onEntered:X,onExit:J,onExited:V},m.createElement("div",f({ref:H,id:n.id,className:K,style:n.style},G,{onClick:A,onMouseEnter:Z}),m.createElement(E,{menuProps:n,model:n.model,root:!0,resetMenu:h,onLeafClick:q,isMobileMode:N,submenuIcon:n.submenuIcon}))));return m.createElement(u.Portal,{element:Q,appendTo:n.appendTo})})));return I.displayName="ContextMenu",e.ContextMenu=I,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.csstransition,primereact.hooks,primereact.portal,primereact.utils,primereact.ripple,primereact.icons.angleright);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.contextmenu=function(e,t,n,r,o,u,i,l,c,a){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(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=m(t),f=s(n);function d(e){if(Array.isArray(e))return e}function b(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,u,i,l=[],c=!0,a=!1;try{if(u=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=u.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){a=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(a)throw o}}return l}}function y(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 g(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}function h(){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 v(e,t){return d(e)||b(e,t)||g(e,t)||h()}var x=l.ComponentBase.extend({defaultProps:{__TYPE:"ContextMenu",id:null,model:null,style:null,className:null,global:!1,autoZIndex:!0,baseZIndex:0,breakpoint:void 0,scrollHeight:"400px",appendTo:null,transitionOptions:null,onShow:null,onHide:null,submenuIcon:null,children:void 0}});function E(e){return E="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},E(e)}function O(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function P(e){var t=O(e,"string");return"symbol"===E(t)?t:String(t)}function S(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(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 M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=p.memo((function(e){var t=v(p.useState(null),2),n=t[0],u=t[1],l=p.useRef(null),s=e.root||!e.resetMenu,m=function(t,r){return e.ptm(r,{context:{active:n===t}})};!0===e.resetMenu&&null!==n&&u(null);var f=function(t,n){n.disabled||e.isMobileMode?t.preventDefault():u(n)},d=function(t,r){r.disabled?t.preventDefault():(r.url||t.preventDefault(),r.command&&r.command({originalEvent:t,item:r}),e.isMobileMode&&r.items&&u(n&&r===n?null:r),r.items||e.onLeafClick(t))},b=function(){if(!e.isMobileMode){var t=l.current.parentElement,n=i.DomHandler.getOffset(t),r=i.DomHandler.getViewport(),o=l.current.offsetParent?l.current.offsetWidth:i.DomHandler.getHiddenElementOuterWidth(l.current),u=i.DomHandler.getOuterWidth(t.children[0]),c=parseInt(n.top,10)+l.current.offsetHeight-i.DomHandler.getWindowScrollTop();l.current.style.top=c>r.height?r.height-c+"px":"0px",l.current.style.left=parseInt(n.left,10)+u+o>r.width-i.DomHandler.calculateScrollbarWidth()?-1*o+"px":u+"px"}};o.useUpdateEffect((function(){s&&b()}));var y=function(t){var n=i.mergeProps({role:"separator",key:"separator_"+t,className:"p-menu-separator"},e.ptm("separator"));return p.createElement("li",n)},g=function(t){return t.items?p.createElement(w,{menuProps:e.menuProps,model:t.items,resetMenu:t!==n,onLeafClick:e.onLeafClick,isMobileMode:e.isMobileMode,submenuIcon:e.submenuIcon,ptm:e.ptm}):null},h=function(t,r){if(!1===t.visible)return null;var o=t.label+"_"+r,u=i.classNames("p-menuitem",{"p-menuitem-active":n===t},t.className),l=i.classNames("p-menuitem-link",{"p-disabled":t.disabled}),s=i.mergeProps({className:"p-menuitem-icon"},m(t,"icon")),b=i.IconUtils.getJSXIcon(t.icon,M({},s),{props:e.menuProps}),y=i.mergeProps({className:"p-submenu-icon"},m(t,"submenuIcon")),h=i.mergeProps({className:"p-menuitem-text"},m(t,"label")),v=t.items&&i.IconUtils.getJSXIcon(e.submenuIcon||p.createElement(a.AngleRightIcon,y),M({},y),{props:e.menuProps}),x=t.label&&p.createElement("span",h,t.label),E=g(t),O=i.mergeProps({href:t.url||"#",className:l,target:t.target,onClick:function(e){return d(e,t)},role:"menuitem","aria-haspopup":null!=t.items,"aria-disabled":t.disabled},m(t,"action")),P=p.createElement("a",O,b,x,v,p.createElement(c.Ripple,null)),S=i.mergeProps({id:t.id,role:"none",className:u,style:t.style,key:o,onMouseEnter:function(e){return f(e,t)}},m(t,"menuitem"));return p.createElement("li",S,P,E)},x=function(e,t){return e.separator?y(t):h(e,t)},E=i.classNames({"p-submenu-list":!e.root}),O=e.model?e.model.map(x):null,P=i.mergeProps({ref:l,className:E},e.ptm("menu"));return p.createElement(r.CSSTransition,{nodeRef:l,classNames:"p-contextmenusub",in:s,timeout:{enter:0,exit:0},unmountOnExit:!0,onEnter:function(){b()}},p.createElement("ul",P,O))}));w.displayName="ContextMenuSub";var j=p.memo(p.forwardRef((function(e,t){var l=p.useContext(n.PrimeReactContext),c=x.getProps(e,l),a=v(p.useState(!1),2),s=a[0],m=a[1],d=v(p.useState(!1),2),b=d[0],y=d[1],g=v(p.useState(!1),2),h=g[0],E=g[1],O=v(p.useState(null),2),P=O[0],S=O[1],I=x.setMetaData({props:c,state:{visible:s,reshow:b,resetMenu:h,attributeSelector:P}}).ptm,M=p.useRef(null),j=p.useRef(null),H=p.useRef(null),D=o.useMatchMedia("screen and (max-width: ".concat(c.breakpoint,")"),!!c.breakpoint),k=v(o.useEventListener({type:"click",listener:function(e){B(e)&&2!==e.button&&(W(e),E(!0))}}),2),N=k[0],C=k[1],T=v(o.useEventListener({type:"contextmenu",when:c.global,listener:function(e){_(e)}}),1)[0],U=v(o.useResizeListener({listener:function(e){s&&!i.DomHandler.isTouchDevice()&&W(e)}}),2),R=U[0],L=U[1],Z=function(){if(!H.current){H.current=i.DomHandler.createInlineStyle(l&&l.nonce||f.default.nonce);var e="".concat(P),t="\n@media screen and (max-width: ".concat(c.breakpoint,") {\n .p-contextmenu[").concat(e,"] > ul {\n max-height: ").concat(c.scrollHeight,";\n overflow: ").concat(c.scrollHeight?"auto":"",";\n }\n\n .p-contextmenu[").concat(e,"] .p-submenu-list {\n position: relative;\n }\n\n .p-contextmenu[").concat(e,"] .p-menuitem-active > .p-submenu-list {\n left: 0 !important;\n box-shadow: none;\n border-radius: 0;\n padding: 0 0 0 calc(var(--inline-spacing) * 2); /* @todo */\n }\n\n .p-contextmenu[").concat(e,"] .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-180deg);\n }\n\n .p-contextmenu[").concat(e,'] .p-submenu-icon:before {\n content: "\\e930";\n }\n}\n');H.current.innerHTML=t}},A=function(){H.current=i.DomHandler.removeInlineStyle(H.current)},_=function(e){e.stopPropagation(),e.preventDefault(),j.current=e,s?y(!0):(m(!0),c.onShow&&c.onShow(j.current))},W=function(e){j.current=e,m(!1),y(!1),c.onHide&&c.onHide(j.current)},z=function(){c.autoZIndex&&i.ZIndexUtils.set("menu",M.current,l&&l.autoZIndex||f.default.autoZIndex,c.baseZIndex||l&&l.zIndex.menu||f.default.zIndex.menu),Y(j.current),P&&c.breakpoint&&(M.current.setAttribute(P,""),Z())},X=function(){$()},J=function(){F(),i.ZIndexUtils.clear(M.current)},V=function(){i.ZIndexUtils.clear(M.current),A()},Y=function(e){if(e){var t=e.pageX+1,n=e.pageY+1,r=M.current.offsetParent?M.current.offsetWidth:i.DomHandler.getHiddenElementOuterWidth(M.current),o=M.current.offsetParent?M.current.offsetHeight:i.DomHandler.getHiddenElementOuterHeight(M.current),u=i.DomHandler.getViewport();t+r-document.body.scrollLeft>u.width&&(t-=r),n+o-document.body.scrollTop>u.height&&(n-=o),t<document.body.scrollLeft&&(t=document.body.scrollLeft),n<document.body.scrollTop&&(n=document.body.scrollTop),M.current.style.left=t+"px",M.current.style.top=n+"px"}},q=function(e){E(!0),W(e),e.stopPropagation()},B=function(e){return M&&M.current&&!(M.current.isSameNode(e.target)||M.current.contains(e.target))},$=function(){R(),N()},F=function(){L(),C()};o.useMountEffect((function(){c.breakpoint&&!P&&S(i.UniqueComponentId())})),o.useUpdateEffect((function(){c.global&&T()}),[c.global]),o.useUpdateEffect((function(){return P&&M.current&&(M.current.setAttribute(P,""),Z()),function(){A()}}),[P,c.breakpoint]),o.useUpdateEffect((function(){s?(m(!1),y(!1),E(!0)):b||s||!h||_(j.current)}),[b]),o.useUnmountEffect((function(){i.ZIndexUtils.clear(M.current)})),p.useImperativeHandle(t,(function(){return{props:c,show:_,hide:W,getElement:function(){return M.current}}}));var G,K,Q=(G=i.classNames("p-contextmenu p-component",c.className,{"p-input-filled":l&&"filled"===l.inputStyle||"filled"===f.default.inputStyle,"p-ripple-disabled":l&&!1===l.ripple||!1===f.default.ripple}),K=i.mergeProps({id:c.id,ref:M,className:G,style:c.style,onClick:function(e){E(!1)},onMouseEnter:function(e){E(!1)}},x.getOtherProps(c),I("root")),p.createElement(r.CSSTransition,{nodeRef:M,classNames:"p-contextmenu",in:s,timeout:{enter:250,exit:0},options:c.transitionOptions,unmountOnExit:!0,onEnter:z,onEntered:X,onExit:J,onExited:V},p.createElement("div",K,p.createElement(w,{menuProps:c,model:c.model,root:!0,resetMenu:h,onLeafClick:q,isMobileMode:D,submenuIcon:c.submenuIcon,ptm:I}))));return p.createElement(u.Portal,{element:Q,appendTo:c.appendTo})})));return j.displayName="ContextMenu",e.ContextMenu=j,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.csstransition,primereact.hooks,primereact.portal,primereact.utils,primereact.componentbase,primereact.ripple,primereact.icons.angleright);
|