primereact 9.4.0 → 9.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +2 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +2 -1
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +215 -3
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +882 -8
- package/api/api.esm.js +210 -4
- package/api/api.esm.min.js +1 -1
- package/api/api.js +216 -5
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +148 -89
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +138 -2
- package/autocomplete/autocomplete.esm.js +150 -91
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +149 -91
- package/autocomplete/autocomplete.min.css +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +3 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.esm.js +3 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +4 -3
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +3 -1
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +3 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +4 -3
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +3 -1
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +3 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +4 -3
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +4 -3
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +4 -3
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +5 -4
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +97 -52
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +53 -1
- package/breadcrumb/breadcrumb.esm.js +97 -52
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +96 -53
- package/breadcrumb/breadcrumb.min.css +1 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +6 -2
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +6 -0
- package/button/button.esm.js +6 -2
- package/button/button.esm.min.js +1 -1
- package/button/button.js +7 -4
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +322 -223
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +272 -3
- package/calendar/calendar.esm.js +324 -225
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +323 -225
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +3 -1
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +5 -11
- package/card/card.esm.js +3 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +4 -3
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +154 -92
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +121 -1
- package/carousel/carousel.esm.js +156 -94
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +155 -94
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +181 -108
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +100 -1
- package/cascadeselect/cascadeselect.esm.js +183 -110
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +180 -108
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +31 -44
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +30 -0
- package/chart/chart.esm.js +18 -31
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +141 -156
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +113 -48
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +65 -1
- package/checkbox/checkbox.esm.js +115 -50
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +113 -50
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +3 -1
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +1 -1
- package/chip/chip.esm.js +3 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +4 -3
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +84 -55
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +78 -6
- package/chips/chips.esm.js +85 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +83 -57
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +123 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +81 -0
- package/colorpicker/colorpicker.esm.js +125 -51
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +124 -51
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.js +2 -0
- package/column/column.d.ts +298 -1
- package/column/column.esm.js +2 -0
- package/column/column.js +2 -0
- package/columngroup/columngroup.d.ts +28 -0
- package/componentbase/componentbase.cjs.js +29 -5
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +25 -5
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +30 -7
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +4 -3
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +5 -4
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +4 -3
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +5 -4
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +6 -5
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +5 -4
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +121 -69
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +92 -1
- package/contextmenu/contextmenu.esm.js +123 -71
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +122 -71
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +14005 -2381
- package/core/core.min.js +47 -47
- package/csstransition/csstransition.cjs.js +3 -2
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +3 -2
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +4 -3
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +34 -43
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +51 -1
- package/datascroller/datascroller.esm.js +36 -45
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +35 -45
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +1089 -649
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +191 -3
- package/datatable/datatable.esm.js +1091 -651
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +1090 -651
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +125 -109
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +105 -2
- package/dataview/dataview.esm.js +127 -111
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +123 -108
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +3 -1
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +3 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +4 -3
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +6 -5
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +7 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +6 -5
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +3 -1
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +3 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +4 -3
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +85 -46
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +66 -0
- package/dock/dock.esm.js +86 -47
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +85 -48
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +170 -120
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +154 -2
- package/dropdown/dropdown.esm.js +172 -122
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +170 -121
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +95 -116
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +50 -0
- package/editor/editor.esm.js +96 -117
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +95 -118
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +3 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +4 -3
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +234 -191
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +160 -1
- package/fileupload/fileupload.esm.js +235 -192
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +231 -188
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +139 -124
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +156 -2
- package/galleria/galleria.esm.js +141 -126
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +138 -124
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +10 -3
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +7 -3
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +11 -5
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +415 -2
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +415 -2
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +415 -2
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +415 -2
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +415 -2
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +415 -2
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +415 -2
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +415 -2
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +415 -2
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +415 -2
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +415 -2
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +415 -2
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +415 -2
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +415 -2
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +415 -2
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +415 -2
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +415 -2
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +415 -2
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +415 -2
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +415 -2
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +415 -2
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +415 -2
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +415 -2
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +415 -2
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +415 -2
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +415 -2
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +415 -2
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +415 -2
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +415 -2
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +415 -2
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +415 -2
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +415 -2
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +415 -2
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +415 -2
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +415 -2
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +415 -2
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +415 -2
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +415 -2
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +415 -2
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +415 -2
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +415 -2
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +415 -2
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +415 -2
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +415 -2
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +415 -2
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +415 -2
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +415 -2
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +415 -2
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +415 -2
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +415 -2
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +415 -2
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +415 -2
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +415 -2
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +415 -2
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +415 -2
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +415 -2
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +415 -2
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +415 -2
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +415 -2
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +415 -2
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +415 -2
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +415 -2
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +415 -2
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +415 -2
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +415 -2
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +415 -2
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +415 -2
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +415 -2
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +415 -2
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +415 -2
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +415 -2
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +415 -2
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +415 -2
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +415 -2
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +415 -2
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +415 -2
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +415 -2
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +415 -2
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +415 -2
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +415 -2
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +415 -2
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +415 -2
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +415 -2
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +415 -2
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +480 -80
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +130 -3
- package/image/image.esm.js +483 -83
- package/image/image.esm.min.js +1 -1
- package/image/image.js +481 -82
- package/image/image.min.css +1 -1
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +2 -1
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +3 -2
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -1
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +26 -26
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +7 -2
- package/inputmask/inputmask.esm.js +27 -27
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +26 -28
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +68 -48
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +62 -1
- package/inputnumber/inputnumber.esm.js +66 -49
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +68 -50
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +84 -25
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +61 -0
- package/inputswitch/inputswitch.esm.js +85 -26
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +83 -27
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +25 -15
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +32 -0
- package/inputtext/inputtext.esm.js +26 -16
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +25 -17
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +25 -15
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +33 -1
- package/inputtextarea/inputtextarea.esm.js +26 -16
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -17
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +25 -9
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +25 -9
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +25 -11
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +44 -43
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +42 -0
- package/knob/knob.esm.js +45 -44
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +44 -45
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +86 -56
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +103 -3
- package/listbox/listbox.esm.js +88 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +86 -57
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +151 -99
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +142 -2
- package/megamenu/megamenu.esm.js +152 -100
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +149 -98
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +87 -61
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +80 -1
- package/mention/mention.esm.js +89 -63
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +88 -63
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +99 -59
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +71 -0
- package/menu/menu.esm.js +101 -61
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +100 -61
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +122 -114
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +94 -1
- package/menubar/menubar.esm.js +124 -116
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +122 -115
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +69 -47
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +35 -2
- package/message/message.esm.js +70 -48
- package/message/message.esm.min.js +1 -1
- package/message/message.js +69 -49
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +65 -63
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +51 -2
- package/messages/messages.esm.js +66 -64
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +65 -64
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +249 -193
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +185 -3
- package/multiselect/multiselect.esm.js +252 -196
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +249 -194
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +47 -33
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +61 -2
- package/multistatecheckbox/multistatecheckbox.esm.js +49 -35
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +48 -35
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +188 -110
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +118 -2
- package/orderlist/orderlist.esm.js +190 -112
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +186 -109
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +139 -73
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +89 -2
- package/organizationchart/organizationchart.esm.js +140 -74
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +139 -75
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +7 -6
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +5 -0
- package/overlaypanel/overlaypanel.esm.js +8 -7
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +8 -7
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +172 -166
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +111 -5
- package/paginator/paginator.esm.js +174 -168
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +172 -167
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +3 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +4 -3
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +148 -84
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +124 -2
- package/panelmenu/panelmenu.esm.js +148 -84
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +146 -84
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +89 -46
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +98 -2
- package/password/password.esm.js +91 -48
- package/password/password.esm.min.js +1 -1
- package/password/password.js +88 -46
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +146 -82
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +133 -1
- package/picklist/picklist.esm.js +148 -84
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +143 -80
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +3 -2
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +3 -2
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +4 -3
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +6656 -4389
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +6655 -4390
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +6656 -4389
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +3 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +3 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +4 -3
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +3 -1
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +3 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +4 -3
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +90 -30
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +66 -1
- package/radiobutton/radiobutton.esm.js +91 -31
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +89 -32
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +47 -36
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +64 -1
- package/rating/rating.esm.js +48 -37
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +47 -38
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +475 -465
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +33 -8
- package/resources/themes/arya-green/theme.css +33 -8
- package/resources/themes/arya-orange/theme.css +33 -8
- package/resources/themes/arya-purple/theme.css +33 -8
- package/resources/themes/bootstrap4-dark-blue/theme.css +33 -8
- package/resources/themes/bootstrap4-dark-purple/theme.css +33 -8
- package/resources/themes/bootstrap4-light-blue/theme.css +33 -8
- package/resources/themes/bootstrap4-light-purple/theme.css +33 -8
- package/resources/themes/fluent-light/theme.css +33 -8
- package/resources/themes/lara-dark-blue/theme.css +33 -8
- package/resources/themes/lara-dark-indigo/theme.css +33 -8
- package/resources/themes/lara-dark-purple/theme.css +33 -8
- package/resources/themes/lara-dark-teal/theme.css +33 -8
- package/resources/themes/lara-light-blue/theme.css +33 -8
- package/resources/themes/lara-light-indigo/theme.css +33 -8
- package/resources/themes/lara-light-purple/theme.css +33 -8
- package/resources/themes/lara-light-teal/theme.css +33 -8
- package/resources/themes/luna-amber/theme.css +33 -8
- package/resources/themes/luna-blue/theme.css +33 -8
- package/resources/themes/luna-green/theme.css +33 -8
- package/resources/themes/luna-pink/theme.css +33 -8
- package/resources/themes/md-dark-deeppurple/theme.css +33 -8
- package/resources/themes/md-dark-indigo/theme.css +33 -8
- package/resources/themes/md-light-deeppurple/theme.css +33 -8
- package/resources/themes/md-light-indigo/theme.css +33 -8
- package/resources/themes/mdc-dark-deeppurple/theme.css +33 -8
- package/resources/themes/mdc-dark-indigo/theme.css +33 -8
- package/resources/themes/mdc-light-deeppurple/theme.css +33 -8
- package/resources/themes/mdc-light-indigo/theme.css +33 -8
- package/resources/themes/mira/theme.css +33 -8
- package/resources/themes/nano/theme.css +33 -8
- package/resources/themes/nova/theme.css +33 -8
- package/resources/themes/nova-accent/theme.css +33 -8
- package/resources/themes/nova-alt/theme.css +33 -8
- package/resources/themes/rhea/theme.css +33 -8
- package/resources/themes/saga-blue/theme.css +33 -8
- package/resources/themes/saga-green/theme.css +33 -8
- package/resources/themes/saga-orange/theme.css +33 -8
- package/resources/themes/saga-purple/theme.css +33 -8
- package/resources/themes/soho-dark/theme.css +33 -8
- package/resources/themes/soho-light/theme.css +33 -8
- package/resources/themes/tailwind-light/theme.css +45 -20
- package/resources/themes/vela-blue/theme.css +33 -8
- package/resources/themes/vela-green/theme.css +33 -8
- package/resources/themes/vela-orange/theme.css +33 -8
- package/resources/themes/vela-purple/theme.css +33 -8
- package/resources/themes/viva-dark/theme.css +33 -8
- package/resources/themes/viva-light/theme.css +33 -8
- package/ripple/ripple.cjs.js +3 -2
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +3 -2
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +4 -3
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +28 -41
- package/row/row.cjs.min.js +1 -1
- package/row/row.d.ts +28 -0
- package/row/row.esm.js +15 -28
- package/row/row.esm.min.js +1 -1
- package/row/row.js +49 -64
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +3 -1
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +3 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +4 -3
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +9 -7
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +11 -9
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +10 -8
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +37 -25
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +52 -1
- package/selectbutton/selectbutton.esm.js +38 -26
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +37 -27
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +7 -6
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +8 -7
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +8 -7
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +4 -3
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +4 -3
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +5 -5
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +125 -114
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +103 -1
- package/slidemenu/slidemenu.esm.js +127 -116
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +125 -115
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +71 -39
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +34 -1
- package/slider/slider.esm.js +72 -40
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +71 -41
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +3 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +3 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +4 -3
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +74 -63
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +39 -11
- package/splitbutton/splitbutton.esm.js +76 -65
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +74 -63
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +3 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +10 -0
- package/splitter/splitter.esm.js +3 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +4 -3
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +81 -46
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +50 -0
- package/steps/steps.esm.js +82 -47
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +81 -48
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +3 -1
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +3 -1
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +4 -3
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +86 -48
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +62 -0
- package/tabmenu/tabmenu.esm.js +87 -49
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +86 -50
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +8 -5
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +9 -6
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +7 -4
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +3 -1
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +3 -1
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +4 -3
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +3 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +3 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +4 -3
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +110 -64
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +83 -2
- package/tieredmenu/tieredmenu.esm.js +112 -66
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +111 -66
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +51 -43
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +51 -1
- package/timeline/timeline.esm.js +52 -44
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +51 -45
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +118 -75
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +122 -4
- package/toast/toast.esm.js +120 -77
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +116 -74
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +74 -21
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +40 -2
- package/togglebutton/togglebutton.esm.js +75 -22
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +73 -23
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +3 -1
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +5 -11
- package/toolbar/toolbar.esm.js +3 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +4 -3
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +3 -2
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +7 -7
- package/tooltip/tooltip.esm.js +4 -3
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +3 -2
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +118 -88
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +139 -1
- package/tree/tree.esm.js +120 -90
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +116 -87
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +135 -102
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +143 -2
- package/treeselect/treeselect.esm.js +137 -104
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +136 -104
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +385 -198
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +305 -2
- package/treetable/treetable.esm.js +387 -200
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +383 -197
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +97 -40
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +64 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +99 -42
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +97 -42
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +31 -5
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +28 -5
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +32 -7
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +43 -29
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +78 -1
- package/virtualscroller/virtualscroller.esm.js +44 -30
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +43 -31
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1 -1
package/picklist/picklist.d.ts
CHANGED
|
@@ -8,7 +8,134 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import * as React from 'react';
|
|
11
|
-
import {
|
|
11
|
+
import { ButtonPassThroughOptions } from '../button/button';
|
|
12
|
+
import { IconType, PassThroughType } from '../utils/utils';
|
|
13
|
+
|
|
14
|
+
export declare type PickListPassThroughType<T> = PassThroughType<T, PickListPassThroughMethodOptions>;
|
|
15
|
+
/**
|
|
16
|
+
* Custom passthrough(pt) option method.
|
|
17
|
+
*/
|
|
18
|
+
export interface PickListPassThroughMethodOptions {
|
|
19
|
+
props: PickListProps;
|
|
20
|
+
state: PickListState;
|
|
21
|
+
context: PickListContext;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Custom passthrough(pt) options.
|
|
26
|
+
* @see {@link PickListProps.pt}
|
|
27
|
+
*/
|
|
28
|
+
export interface PickListPassThroughOptions {
|
|
29
|
+
/**
|
|
30
|
+
* Uses to pass attributes to the root's DOM element.
|
|
31
|
+
*/
|
|
32
|
+
root?: PickListPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* Uses to pass attributes to the source controls' DOM element.
|
|
35
|
+
*/
|
|
36
|
+
controls?: PickListPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
37
|
+
/**
|
|
38
|
+
* Uses to pass attributes to the Button component.
|
|
39
|
+
*/
|
|
40
|
+
moveUpButton?: ButtonPassThroughOptions;
|
|
41
|
+
/**
|
|
42
|
+
* Uses to pass attributes to the Button component.
|
|
43
|
+
*/
|
|
44
|
+
moveTopButton?: ButtonPassThroughOptions;
|
|
45
|
+
/**
|
|
46
|
+
* Uses to pass attributes to the Button component.
|
|
47
|
+
*/
|
|
48
|
+
moveDownButton?: ButtonPassThroughOptions;
|
|
49
|
+
/**
|
|
50
|
+
* Uses to pass attributes to the Button component.
|
|
51
|
+
*/
|
|
52
|
+
moveBottomButton?: ButtonPassThroughOptions;
|
|
53
|
+
/**
|
|
54
|
+
* Uses to pass attributes to the source wrapper's DOM element.
|
|
55
|
+
*/
|
|
56
|
+
listWrapper?: PickListPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
57
|
+
/**
|
|
58
|
+
* Uses to pass attributes to the source header's DOM element.
|
|
59
|
+
*/
|
|
60
|
+
header?: PickListPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
61
|
+
/**
|
|
62
|
+
* Uses to pass attributes to the buttons' DOM element.
|
|
63
|
+
*/
|
|
64
|
+
buttons?: PickListPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
65
|
+
/**
|
|
66
|
+
* Uses to pass attributes to the Button component.
|
|
67
|
+
*/
|
|
68
|
+
moveToTargetButton?: ButtonPassThroughOptions;
|
|
69
|
+
/**
|
|
70
|
+
* Uses to pass attributes to the Button component.
|
|
71
|
+
*/
|
|
72
|
+
moveAllToTargetButton?: ButtonPassThroughOptions;
|
|
73
|
+
/**
|
|
74
|
+
* Uses to pass attributes to the Button component.
|
|
75
|
+
*/
|
|
76
|
+
moveToSourceButton?: ButtonPassThroughOptions;
|
|
77
|
+
/**
|
|
78
|
+
* Uses to pass attributes to the Button component.
|
|
79
|
+
*/
|
|
80
|
+
moveAllToSourceButton?: ButtonPassThroughOptions;
|
|
81
|
+
/**
|
|
82
|
+
* Uses to pass attributes to the buttons' DOM element.
|
|
83
|
+
*/
|
|
84
|
+
filterIcon?: PickListPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
|
|
85
|
+
/**
|
|
86
|
+
* Uses to pass attributes to the buttons' DOM element.
|
|
87
|
+
*/
|
|
88
|
+
filter?: PickListPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
89
|
+
/**
|
|
90
|
+
* Uses to pass attributes to the buttons' DOM element.
|
|
91
|
+
*/
|
|
92
|
+
filterInput?: PickListPassThroughType<React.HTMLAttributes<HTMLInputElement>>;
|
|
93
|
+
/**
|
|
94
|
+
* Uses to pass attributes to the buttons' DOM element.
|
|
95
|
+
*/
|
|
96
|
+
filterContainer?: PickListPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
97
|
+
/**
|
|
98
|
+
* Uses to pass attributes to the buttons' DOM element.
|
|
99
|
+
*/
|
|
100
|
+
item?: PickListPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
|
|
101
|
+
/**
|
|
102
|
+
* Uses to pass attributes to the buttons' DOM element.
|
|
103
|
+
*/
|
|
104
|
+
list?: PickListPassThroughType<React.HTMLAttributes<HTMLUListElement>>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface PickListState {
|
|
108
|
+
/**
|
|
109
|
+
* Current source selection state as a [].
|
|
110
|
+
*/
|
|
111
|
+
sourceSelection: [];
|
|
112
|
+
/**
|
|
113
|
+
* Current target selection state as a [].
|
|
114
|
+
*/
|
|
115
|
+
targetSelection: [];
|
|
116
|
+
/**
|
|
117
|
+
* Current source filter state as a string.
|
|
118
|
+
*/
|
|
119
|
+
sourceFilterValue: string;
|
|
120
|
+
/**
|
|
121
|
+
* Current source target filter state as a string.
|
|
122
|
+
*/
|
|
123
|
+
targetFilterValue: string;
|
|
124
|
+
/**
|
|
125
|
+
* Current attribute selector state as a any.
|
|
126
|
+
*/
|
|
127
|
+
attributeSelector: any;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Defines current options in PickList component.
|
|
132
|
+
*/
|
|
133
|
+
export interface PickListContext {
|
|
134
|
+
/**
|
|
135
|
+
* Current selection state of the item as a boolean.
|
|
136
|
+
*/
|
|
137
|
+
selected: boolean;
|
|
138
|
+
}
|
|
12
139
|
|
|
13
140
|
/**
|
|
14
141
|
* Custom picklist event.
|
|
@@ -331,6 +458,11 @@ export interface PickListProps {
|
|
|
331
458
|
* @readonly
|
|
332
459
|
*/
|
|
333
460
|
children?: React.ReactNode | undefined;
|
|
461
|
+
/**
|
|
462
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
463
|
+
* @type {PickListPassThroughOptions}
|
|
464
|
+
*/
|
|
465
|
+
pt?: PickListPassThroughOptions;
|
|
334
466
|
}
|
|
335
467
|
|
|
336
468
|
/**
|
package/picklist/picklist.esm.js
CHANGED
|
@@ -1,34 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import PrimeReact, { FilterService } from 'primereact/api';
|
|
2
|
+
import PrimeReact, { PrimeReactContext, FilterService } from 'primereact/api';
|
|
3
3
|
import { useMatchMedia, useMountEffect, useUpdateEffect } from 'primereact/hooks';
|
|
4
|
-
import {
|
|
4
|
+
import { classNames, mergeProps, ObjectUtils, IconUtils, DomHandler, UniqueComponentId } from 'primereact/utils';
|
|
5
|
+
import { ComponentBase } from 'primereact/componentbase';
|
|
5
6
|
import { Button } from 'primereact/button';
|
|
6
|
-
import {
|
|
7
|
+
import { AngleDoubleDownIcon } from 'primereact/icons/angledoubledown';
|
|
7
8
|
import { AngleDoubleUpIcon } from 'primereact/icons/angledoubleup';
|
|
9
|
+
import { AngleDownIcon } from 'primereact/icons/angledown';
|
|
8
10
|
import { AngleUpIcon } from 'primereact/icons/angleup';
|
|
9
|
-
import { AngleDoubleDownIcon } from 'primereact/icons/angledoubledown';
|
|
10
|
-
import { Ripple } from 'primereact/ripple';
|
|
11
11
|
import { SearchIcon } from 'primereact/icons/search';
|
|
12
|
-
import {
|
|
12
|
+
import { Ripple } from 'primereact/ripple';
|
|
13
13
|
import { AngleDoubleLeftIcon } from 'primereact/icons/angledoubleleft';
|
|
14
14
|
import { AngleDoubleRightIcon } from 'primereact/icons/angledoubleright';
|
|
15
|
+
import { AngleLeftIcon } from 'primereact/icons/angleleft';
|
|
15
16
|
import { AngleRightIcon } from 'primereact/icons/angleright';
|
|
16
17
|
|
|
17
|
-
function _extends() {
|
|
18
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
19
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
20
|
-
var source = arguments[i];
|
|
21
|
-
for (var key in source) {
|
|
22
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23
|
-
target[key] = source[key];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
29
|
-
return _extends.apply(this, arguments);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
18
|
function _arrayWithHoles(arr) {
|
|
33
19
|
if (Array.isArray(arr)) return arr;
|
|
34
20
|
}
|
|
@@ -84,7 +70,7 @@ function _slicedToArray(arr, i) {
|
|
|
84
70
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
85
71
|
}
|
|
86
72
|
|
|
87
|
-
var PickListBase = {
|
|
73
|
+
var PickListBase = ComponentBase.extend({
|
|
88
74
|
defaultProps: {
|
|
89
75
|
__TYPE: 'PickList',
|
|
90
76
|
id: null,
|
|
@@ -139,14 +125,8 @@ var PickListBase = {
|
|
|
139
125
|
onSourceFilterChange: null,
|
|
140
126
|
onTargetFilterChange: null,
|
|
141
127
|
children: undefined
|
|
142
|
-
},
|
|
143
|
-
getProps: function getProps(props) {
|
|
144
|
-
return ObjectUtils.getMergedProps(props, PickListBase.defaultProps);
|
|
145
|
-
},
|
|
146
|
-
getOtherProps: function getOtherProps(props) {
|
|
147
|
-
return ObjectUtils.getDiffProps(props, PickListBase.defaultProps);
|
|
148
128
|
}
|
|
149
|
-
};
|
|
129
|
+
});
|
|
150
130
|
|
|
151
131
|
function _arrayWithoutHoles(arr) {
|
|
152
132
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
@@ -267,33 +247,86 @@ var PickListControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
267
247
|
}
|
|
268
248
|
};
|
|
269
249
|
var className = classNames('p-picklist-buttons', props.className);
|
|
270
|
-
|
|
250
|
+
var controlsProps = mergeProps({
|
|
271
251
|
className: className
|
|
272
|
-
},
|
|
252
|
+
}, props.ptm('controls'));
|
|
253
|
+
return /*#__PURE__*/React.createElement("div", controlsProps, /*#__PURE__*/React.createElement(Button, {
|
|
273
254
|
disabled: moveDisabled,
|
|
274
255
|
type: "button",
|
|
275
256
|
icon: moveUpIcon,
|
|
276
|
-
onClick: moveUp
|
|
257
|
+
onClick: moveUp,
|
|
258
|
+
pt: props.ptm('moveUpButton')
|
|
277
259
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
278
260
|
disabled: moveDisabled,
|
|
279
261
|
type: "button",
|
|
280
262
|
icon: moveTopIcon,
|
|
281
|
-
onClick: moveTop
|
|
263
|
+
onClick: moveTop,
|
|
264
|
+
pt: props.ptm('moveTopButton')
|
|
282
265
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
283
266
|
disabled: moveDisabled,
|
|
284
267
|
type: "button",
|
|
285
268
|
icon: moveDownIcon,
|
|
286
|
-
onClick: moveDown
|
|
269
|
+
onClick: moveDown,
|
|
270
|
+
pt: props.ptm('moveDownButton')
|
|
287
271
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
288
272
|
disabled: moveDisabled,
|
|
289
273
|
type: "button",
|
|
290
274
|
icon: moveBottomIcon,
|
|
291
|
-
onClick: moveBottom
|
|
275
|
+
onClick: moveBottom,
|
|
276
|
+
pt: props.ptm('moveBottomButton')
|
|
292
277
|
}));
|
|
293
278
|
});
|
|
294
279
|
PickListControls.displayName = 'PickListControls';
|
|
295
280
|
|
|
281
|
+
function _typeof(obj) {
|
|
282
|
+
"@babel/helpers - typeof";
|
|
283
|
+
|
|
284
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
285
|
+
return typeof obj;
|
|
286
|
+
} : function (obj) {
|
|
287
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
288
|
+
}, _typeof(obj);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function _toPrimitive(input, hint) {
|
|
292
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
293
|
+
var prim = input[Symbol.toPrimitive];
|
|
294
|
+
if (prim !== undefined) {
|
|
295
|
+
var res = prim.call(input, hint || "default");
|
|
296
|
+
if (_typeof(res) !== "object") return res;
|
|
297
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
298
|
+
}
|
|
299
|
+
return (hint === "string" ? String : Number)(input);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function _toPropertyKey(arg) {
|
|
303
|
+
var key = _toPrimitive(arg, "string");
|
|
304
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
function _defineProperty(obj, key, value) {
|
|
308
|
+
key = _toPropertyKey(key);
|
|
309
|
+
if (key in obj) {
|
|
310
|
+
Object.defineProperty(obj, key, {
|
|
311
|
+
value: value,
|
|
312
|
+
enumerable: true,
|
|
313
|
+
configurable: true,
|
|
314
|
+
writable: true
|
|
315
|
+
});
|
|
316
|
+
} else {
|
|
317
|
+
obj[key] = value;
|
|
318
|
+
}
|
|
319
|
+
return obj;
|
|
320
|
+
}
|
|
321
|
+
|
|
296
322
|
var PickListItem = /*#__PURE__*/React.memo(function (props) {
|
|
323
|
+
var getPTOptions = function getPTOptions(key) {
|
|
324
|
+
return props.ptm(key, {
|
|
325
|
+
context: {
|
|
326
|
+
selected: props.selected
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
};
|
|
297
330
|
var onClick = function onClick(event) {
|
|
298
331
|
if (props.onClick) {
|
|
299
332
|
props.onClick({
|
|
@@ -314,17 +347,20 @@ var PickListItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
314
347
|
var className = classNames('p-picklist-item', {
|
|
315
348
|
'p-highlight': props.selected
|
|
316
349
|
}, props.className);
|
|
317
|
-
|
|
350
|
+
var itemProps = mergeProps({
|
|
318
351
|
className: className,
|
|
319
352
|
onClick: onClick,
|
|
320
353
|
onKeyDown: onKeyDown,
|
|
321
354
|
tabIndex: props.tabIndex,
|
|
322
|
-
role:
|
|
323
|
-
|
|
324
|
-
},
|
|
355
|
+
role: 'option',
|
|
356
|
+
'aria-selected': props.selected
|
|
357
|
+
}, getPTOptions('item'));
|
|
358
|
+
return /*#__PURE__*/React.createElement("li", itemProps, content, /*#__PURE__*/React.createElement(Ripple, null));
|
|
325
359
|
});
|
|
326
360
|
PickListItem.displayName = 'PickListItem';
|
|
327
361
|
|
|
362
|
+
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; }
|
|
363
|
+
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; }
|
|
328
364
|
var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
329
365
|
var listElementRef = React.useRef(null);
|
|
330
366
|
var onItemClick = function onItemClick(event) {
|
|
@@ -411,10 +447,11 @@ var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
411
447
|
};
|
|
412
448
|
});
|
|
413
449
|
var createHeader = function createHeader() {
|
|
450
|
+
var headerProps = mergeProps({
|
|
451
|
+
className: 'p-picklist-header'
|
|
452
|
+
}, props.ptm('header'));
|
|
414
453
|
if (props.header) {
|
|
415
|
-
return /*#__PURE__*/React.createElement("div",
|
|
416
|
-
className: "p-picklist-header"
|
|
417
|
-
}, ObjectUtils.getJSXElement(props.header, props));
|
|
454
|
+
return /*#__PURE__*/React.createElement("div", headerProps, ObjectUtils.getJSXElement(props.header, props));
|
|
418
455
|
}
|
|
419
456
|
return null;
|
|
420
457
|
};
|
|
@@ -430,7 +467,8 @@ var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
430
467
|
selected: selected,
|
|
431
468
|
onClick: onItemClick,
|
|
432
469
|
onKeyDown: onItemKeyDown,
|
|
433
|
-
tabIndex: props.tabIndex
|
|
470
|
+
tabIndex: props.tabIndex,
|
|
471
|
+
ptm: props.ptm
|
|
434
472
|
});
|
|
435
473
|
});
|
|
436
474
|
}
|
|
@@ -438,27 +476,26 @@ var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
438
476
|
};
|
|
439
477
|
var createFilter = function createFilter() {
|
|
440
478
|
var iconClassName = 'p-picklist-filter-icon';
|
|
441
|
-
var
|
|
442
|
-
className: iconClassName
|
|
443
|
-
}) : props.targetFilterIcon || /*#__PURE__*/React.createElement(SearchIcon, {
|
|
444
|
-
className: iconClassName
|
|
445
|
-
});
|
|
446
|
-
var filterIcon = IconUtils.getJSXIcon(icon, {
|
|
479
|
+
var filterIconProps = mergeProps({
|
|
447
480
|
className: iconClassName
|
|
448
|
-
},
|
|
481
|
+
}, props.ptm('filterIcon'));
|
|
482
|
+
var icon = props.type === 'source' ? props.sourceFilterIcon || /*#__PURE__*/React.createElement(SearchIcon, filterIconProps) : props.targetFilterIcon || /*#__PURE__*/React.createElement(SearchIcon, filterIconProps);
|
|
483
|
+
var filterIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, filterIconProps), {
|
|
449
484
|
props: props
|
|
450
485
|
});
|
|
451
486
|
if (props.showFilter) {
|
|
452
|
-
var
|
|
453
|
-
className:
|
|
454
|
-
},
|
|
455
|
-
|
|
487
|
+
var filterProps = mergeProps({
|
|
488
|
+
className: 'p-picklist-filter'
|
|
489
|
+
}, props.ptm('filter'));
|
|
490
|
+
var filterInputProps = mergeProps({
|
|
491
|
+
type: 'text',
|
|
456
492
|
value: props.filterValue,
|
|
457
493
|
onChange: onFilter,
|
|
458
494
|
onKeyDown: onFilterInputKeyDown,
|
|
459
495
|
placeholder: props.placeholder,
|
|
460
|
-
className:
|
|
461
|
-
}
|
|
496
|
+
className: 'p-picklist-filter-input p-inputtext p-component'
|
|
497
|
+
}, props.ptm('filterInput'));
|
|
498
|
+
var content = /*#__PURE__*/React.createElement("div", filterProps, /*#__PURE__*/React.createElement("input", filterInputProps), /*#__PURE__*/React.createElement("span", null, " ", filterIcon, " "));
|
|
462
499
|
if (props.filterTemplate) {
|
|
463
500
|
var defaultContentOptions = {
|
|
464
501
|
className: 'p-picklist-filter',
|
|
@@ -473,30 +510,33 @@ var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
473
510
|
};
|
|
474
511
|
content = ObjectUtils.getJSXElement(props.filterTemplate, defaultContentOptions);
|
|
475
512
|
}
|
|
476
|
-
|
|
477
|
-
className:
|
|
478
|
-
},
|
|
513
|
+
var filterContainerProps = mergeProps({
|
|
514
|
+
className: 'p-picklist-filter-container'
|
|
515
|
+
}, props.ptm('filterContainer'));
|
|
516
|
+
return /*#__PURE__*/React.createElement("div", filterContainerProps, content);
|
|
479
517
|
}
|
|
480
518
|
return null;
|
|
481
519
|
};
|
|
482
520
|
var createList = function createList() {
|
|
483
521
|
var items = createItems();
|
|
484
522
|
var className = classNames('p-picklist-list', props.listClassName);
|
|
485
|
-
|
|
523
|
+
var listProps = mergeProps({
|
|
486
524
|
className: className,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
},
|
|
525
|
+
role: 'listbox',
|
|
526
|
+
'aria-multiselectable': true,
|
|
527
|
+
style: props.style
|
|
528
|
+
}, props.ptm('list'));
|
|
529
|
+
return /*#__PURE__*/React.createElement("ul", listProps, items);
|
|
491
530
|
};
|
|
492
531
|
var className = classNames('p-picklist-list-wrapper', props.className);
|
|
493
532
|
var header = createHeader();
|
|
494
533
|
var filter = createFilter();
|
|
495
534
|
var list = createList();
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
},
|
|
535
|
+
var listWrapperProps = mergeProps({
|
|
536
|
+
className: className,
|
|
537
|
+
ref: listElementRef
|
|
538
|
+
}, props.ptm('listWrapper'));
|
|
539
|
+
return /*#__PURE__*/React.createElement("div", listWrapperProps, header, filter, list);
|
|
500
540
|
}));
|
|
501
541
|
PickListSubList.displayName = 'PickListSubList';
|
|
502
542
|
|
|
@@ -615,34 +655,40 @@ var PickListTransferControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
615
655
|
}
|
|
616
656
|
};
|
|
617
657
|
var className = classNames('p-picklist-buttons p-picklist-transfer-buttons', props.className);
|
|
618
|
-
|
|
658
|
+
var buttonsProps = mergeProps({
|
|
619
659
|
className: className
|
|
620
|
-
},
|
|
660
|
+
}, props.ptm('buttons'));
|
|
661
|
+
return /*#__PURE__*/React.createElement("div", buttonsProps, /*#__PURE__*/React.createElement(Button, {
|
|
621
662
|
disabled: moveRightDisabled,
|
|
622
663
|
type: "button",
|
|
623
664
|
icon: moveToTargetIcon,
|
|
624
|
-
onClick: moveRight
|
|
665
|
+
onClick: moveRight,
|
|
666
|
+
pt: props.ptm('moveToTargetButton')
|
|
625
667
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
626
668
|
disabled: moveAllRightDisabled,
|
|
627
669
|
type: "button",
|
|
628
670
|
icon: moveAllToTargetIcon,
|
|
629
|
-
onClick: moveAllRight
|
|
671
|
+
onClick: moveAllRight,
|
|
672
|
+
pt: props.ptm('moveAllToTargetButton')
|
|
630
673
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
631
674
|
disabled: moveLeftDisabled,
|
|
632
675
|
type: "button",
|
|
633
676
|
icon: moveToSourceIcon,
|
|
634
|
-
onClick: moveLeft
|
|
677
|
+
onClick: moveLeft,
|
|
678
|
+
pt: props.ptm('moveToSourceButton')
|
|
635
679
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
636
680
|
disabled: moveAllLeftDisabled,
|
|
637
681
|
type: "button",
|
|
638
682
|
icon: moveAllToSourceIcon,
|
|
639
|
-
onClick: moveAllLeft
|
|
683
|
+
onClick: moveAllLeft,
|
|
684
|
+
pt: props.ptm('moveAllToSourceButton')
|
|
640
685
|
}));
|
|
641
686
|
});
|
|
642
687
|
PickListTransferControls.displayName = 'PickListTransferControls';
|
|
643
688
|
|
|
644
689
|
var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
645
|
-
var
|
|
690
|
+
var context = React.useContext(PrimeReactContext);
|
|
691
|
+
var props = PickListBase.getProps(inProps, context);
|
|
646
692
|
var _React$useState = React.useState([]),
|
|
647
693
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
648
694
|
sourceSelectionState = _React$useState2[0],
|
|
@@ -663,6 +709,17 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
663
709
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
664
710
|
attributeSelectorState = _React$useState10[0],
|
|
665
711
|
setAttributeSelectorState = _React$useState10[1];
|
|
712
|
+
var _PickListBase$setMeta = PickListBase.setMetaData({
|
|
713
|
+
props: props,
|
|
714
|
+
state: {
|
|
715
|
+
sourceSelection: sourceSelectionState,
|
|
716
|
+
targetSelection: targetSelectionState,
|
|
717
|
+
sourceFilterValue: sourceFilterValueState,
|
|
718
|
+
targetFilterValue: targetFilterValueState,
|
|
719
|
+
attributeSelector: attributeSelectorState
|
|
720
|
+
}
|
|
721
|
+
}),
|
|
722
|
+
ptm = _PickListBase$setMeta.ptm;
|
|
666
723
|
var elementRef = React.useRef(null);
|
|
667
724
|
var sourceListElementRef = React.useRef(null);
|
|
668
725
|
var targetListElementRef = React.useRef(null);
|
|
@@ -741,6 +798,7 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
741
798
|
value: selectedValue
|
|
742
799
|
});
|
|
743
800
|
}
|
|
801
|
+
selectedValue = [];
|
|
744
802
|
break;
|
|
745
803
|
case 'toSource':
|
|
746
804
|
selectedValue = targetSelection;
|
|
@@ -759,6 +817,7 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
759
817
|
value: selectedValue
|
|
760
818
|
});
|
|
761
819
|
}
|
|
820
|
+
selectedValue = [];
|
|
762
821
|
break;
|
|
763
822
|
}
|
|
764
823
|
_onSelectionChange({
|
|
@@ -829,7 +888,7 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
829
888
|
};
|
|
830
889
|
var createStyle = function createStyle() {
|
|
831
890
|
if (!styleElementRef.current) {
|
|
832
|
-
styleElementRef.current = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
891
|
+
styleElementRef.current = DomHandler.createInlineStyle(context && context.nonce || PrimeReact.nonce);
|
|
833
892
|
var innerHTML = "\n@media screen and (max-width: ".concat(props.breakpoint, ") {\n .p-picklist[").concat(attributeSelectorState, "] {\n flex-direction: column;\n }\n\n .p-picklist[").concat(attributeSelectorState, "] .p-picklist-buttons {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-picklist[").concat(attributeSelectorState, "] .p-picklist-buttons .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-picklist[").concat(attributeSelectorState, "] .p-picklist-buttons .p-button:last-child {\n margin-right: 0;\n }\n}\n");
|
|
834
893
|
styleElementRef.current.innerHTML = innerHTML;
|
|
835
894
|
}
|
|
@@ -864,18 +923,18 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
864
923
|
reorderDirection.current = null;
|
|
865
924
|
}
|
|
866
925
|
});
|
|
867
|
-
var otherProps = PickListBase.getOtherProps(props);
|
|
868
926
|
var className = classNames('p-picklist p-component', props.className);
|
|
869
927
|
var sourceItemTemplate = props.sourceItemTemplate ? props.sourceItemTemplate : props.itemTemplate;
|
|
870
928
|
var targetItemTemplate = props.targetItemTemplate ? props.targetItemTemplate : props.itemTemplate;
|
|
871
929
|
var sourceList = getVisibleList(props.source, 'source');
|
|
872
930
|
var targetList = getVisibleList(props.target, 'target');
|
|
873
|
-
|
|
931
|
+
var rootProps = mergeProps({
|
|
874
932
|
id: props.id,
|
|
875
933
|
ref: elementRef,
|
|
876
934
|
className: className,
|
|
877
935
|
style: props.style
|
|
878
|
-
},
|
|
936
|
+
}, PickListBase.getOtherProps(props), ptm('root'));
|
|
937
|
+
return /*#__PURE__*/React.createElement("div", rootProps, props.showSourceControls && /*#__PURE__*/React.createElement(PickListControls, {
|
|
879
938
|
list: props.source,
|
|
880
939
|
selection: sourceSelection,
|
|
881
940
|
onReorder: onSourceReorder,
|
|
@@ -884,7 +943,8 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
884
943
|
moveUpIcon: props.moveUpIcon,
|
|
885
944
|
moveTopIcon: props.moveTopIcon,
|
|
886
945
|
moveDownIcon: props.moveDownIcon,
|
|
887
|
-
moveBottomIcon: props.moveBottomIcon
|
|
946
|
+
moveBottomIcon: props.moveBottomIcon,
|
|
947
|
+
ptm: ptm
|
|
888
948
|
}), /*#__PURE__*/React.createElement(PickListSubList, {
|
|
889
949
|
ref: sourceListElementRef,
|
|
890
950
|
type: "source",
|
|
@@ -906,7 +966,8 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
906
966
|
showFilter: showSourceFilter,
|
|
907
967
|
placeholder: props.sourceFilterPlaceholder,
|
|
908
968
|
filterTemplate: props.sourceFilterTemplate,
|
|
909
|
-
sourceFilterIcon: props.sourceFilterIcon
|
|
969
|
+
sourceFilterIcon: props.sourceFilterIcon,
|
|
970
|
+
ptm: ptm
|
|
910
971
|
}), /*#__PURE__*/React.createElement(PickListTransferControls, {
|
|
911
972
|
onTransfer: onTransfer,
|
|
912
973
|
source: props.source,
|
|
@@ -920,7 +981,8 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
920
981
|
moveToTargetIcon: props.moveToTargetIcon,
|
|
921
982
|
moveAllToTargetIcon: props.moveAllToTargetIcon,
|
|
922
983
|
moveToSourceIcon: props.moveToSourceIcon,
|
|
923
|
-
moveAllToSourceIcon: props.moveAllToSourceIcon
|
|
984
|
+
moveAllToSourceIcon: props.moveAllToSourceIcon,
|
|
985
|
+
ptm: ptm
|
|
924
986
|
}), /*#__PURE__*/React.createElement(PickListSubList, {
|
|
925
987
|
ref: targetListElementRef,
|
|
926
988
|
type: "target",
|
|
@@ -942,7 +1004,8 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
942
1004
|
showFilter: showTargetFilter,
|
|
943
1005
|
placeholder: props.targetFilterPlaceholder,
|
|
944
1006
|
filterTemplate: props.targetFilterTemplate,
|
|
945
|
-
targetFilterIcon: props.targetFilterIcon
|
|
1007
|
+
targetFilterIcon: props.targetFilterIcon,
|
|
1008
|
+
ptm: ptm
|
|
946
1009
|
}), props.showTargetControls && /*#__PURE__*/React.createElement(PickListControls, {
|
|
947
1010
|
list: props.target,
|
|
948
1011
|
selection: targetSelection,
|
|
@@ -952,7 +1015,8 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
952
1015
|
moveUpIcon: props.moveUpIcon,
|
|
953
1016
|
moveTopIcon: props.moveTopIcon,
|
|
954
1017
|
moveDownIcon: props.moveDownIcon,
|
|
955
|
-
moveBottomIcon: props.moveBottomIcon
|
|
1018
|
+
moveBottomIcon: props.moveBottomIcon,
|
|
1019
|
+
ptm: ptm
|
|
956
1020
|
}));
|
|
957
1021
|
}));
|
|
958
1022
|
PickList.displayName = 'PickList';
|