primereact 10.3.0 → 10.3.2
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 +24 -20
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +36 -1
- package/accordion/accordion.esm.js +16 -12
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +22 -18
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +39 -33
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +14 -3
- package/api/api.esm.js +39 -33
- package/api/api.esm.min.js +1 -1
- package/api/api.js +39 -33
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +24 -21
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +6 -1
- package/autocomplete/autocomplete.esm.js +7 -4
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +24 -21
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +6 -4
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +3 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +7 -6
- 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 +11 -7
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +11 -7
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +11 -7
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +12 -11
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +3 -2
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +12 -11
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +9 -6
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +4 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +10 -8
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +158 -113
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +3 -5
- package/calendar/calendar.esm.js +92 -47
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +158 -113
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +11 -9
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +4 -2
- package/card/card.esm.min.js +1 -1
- package/card/card.js +10 -9
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +1 -1
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +1 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +1 -1
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +60 -36
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +27 -4
- package/cascadeselect/cascadeselect.esm.js +46 -22
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +61 -37
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +4 -3
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +3 -2
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +5 -4
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +31 -30
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +28 -27
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +32 -31
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +13 -7
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +17 -2
- package/chip/chip.esm.js +9 -3
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +14 -9
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +10 -8
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +5 -3
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +10 -8
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +9 -8
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +1 -1
- package/colorpicker/colorpicker.esm.js +2 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +9 -8
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +1 -1
- package/componentbase/componentbase.cjs.js +62 -50
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +63 -51
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +62 -50
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +32 -22
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +19 -3
- package/confirmdialog/confirmdialog.esm.js +30 -20
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +32 -22
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +41 -128
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +12 -2
- package/confirmpopup/confirmpopup.esm.js +36 -123
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +41 -128
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +14 -12
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +1 -1
- package/contextmenu/contextmenu.esm.js +5 -3
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +14 -12
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1232 -649
- package/core/core.min.js +44 -44
- package/datascroller/datascroller.cjs.js +8 -7
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +3 -2
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +8 -7
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +166 -146
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +4 -3
- package/datatable/datatable.esm.js +72 -52
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +166 -146
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.d.ts +1 -1
- package/deferredcontent/deferredcontent.cjs.js +3 -3
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +3 -3
- 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 +40 -130
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +2 -2
- package/dialog/dialog.esm.js +35 -125
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +41 -131
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +6 -4
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +4 -2
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +5 -4
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +10 -9
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +3 -2
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +10 -9
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +46 -36
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +1 -1
- package/dropdown/dropdown.esm.js +21 -11
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +47 -37
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +8 -7
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +4 -3
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +8 -7
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +9 -8
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -2
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +9 -8
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +25 -24
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +5 -4
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +26 -26
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +13 -12
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +4 -3
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +14 -13
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +254 -94
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +12 -4
- package/hooks/hooks.esm.js +253 -96
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +254 -94
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +1 -1
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +1 -1
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +1 -1
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +1 -1
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +1 -1
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +1 -1
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +1 -1
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +1 -1
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +1 -1
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +1 -1
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +1 -1
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +1 -1
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +1 -1
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +1 -1
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +1 -1
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +1 -1
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +1 -1
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +1 -1
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +1 -1
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +1 -1
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +1 -1
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +1 -1
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +1 -1
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +1 -1
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +1 -1
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +1 -1
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +1 -1
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +1 -1
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +1 -1
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +1 -1
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +1 -1
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +1 -1
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +1 -1
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +1 -1
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +1 -1
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +1 -1
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +1 -1
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +1 -1
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +1 -1
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +1 -1
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +1 -1
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +1 -1
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +1 -1
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +1 -1
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +1 -1
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +1 -1
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +1 -1
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +1 -1
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +1 -1
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +1 -1
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +1 -1
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +1 -1
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +1 -1
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +1 -1
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +1 -1
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +1 -1
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +1 -1
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +1 -1
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +1 -1
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +1 -1
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +1 -1
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +1 -1
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +1 -1
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +1 -1
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +1 -1
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +1 -1
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +1 -1
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +1 -1
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +1 -1
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +1 -1
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +1 -1
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +1 -1
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +1 -1
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +1 -1
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +1 -1
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +1 -1
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +1 -1
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +1 -1
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +1 -1
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +1 -1
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +1 -1
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +1 -1
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +1 -1
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +1 -1
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +45 -151
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +26 -132
- package/image/image.esm.min.js +1 -1
- package/image/image.js +46 -152
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +12 -4
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +9 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +13 -6
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +15 -6
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +15 -6
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +15 -6
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +84 -26
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +7 -0
- package/inputnumber/inputnumber.esm.js +80 -22
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +84 -26
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +8 -7
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +6 -5
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +8 -7
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +10 -7
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +10 -7
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +11 -9
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +3 -1
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +3 -1
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +4 -3
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/knob/knob.cjs.js +7 -6
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +3 -2
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +8 -7
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +31 -14
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +8 -3
- package/listbox/listbox.esm.js +23 -6
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +31 -14
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +94 -92
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +73 -71
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +94 -92
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +133 -57
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +4 -0
- package/mention/mention.esm.js +128 -52
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +133 -57
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +22 -117
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +1 -1
- package/menu/menu.esm.js +15 -110
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +22 -117
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +15 -13
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +4 -2
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +15 -13
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +5 -3
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +3 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +6 -5
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +5 -4
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +3 -2
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +6 -5
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +89 -67
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +5 -1
- package/multiselect/multiselect.esm.js +56 -34
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +90 -68
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +5 -4
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +3 -2
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +5 -4
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +21 -18
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +11 -1
- package/orderlist/orderlist.esm.js +6 -3
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +21 -18
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +32 -19
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +15 -2
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +31 -19
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +15 -109
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +1 -1
- package/overlaypanel/overlaypanel.esm.js +12 -106
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +16 -110
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +271 -21
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +2 -2
- package/paginator/paginator.esm.js +265 -15
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +271 -21
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +11 -10
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -2
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +11 -10
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +39 -34
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +20 -15
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +39 -34
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +5 -3
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.d.ts +1 -0
- package/passthrough/index.esm.js +5 -3
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +5 -3
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +401 -391
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +401 -391
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +401 -391
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +18 -12
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +11 -5
- package/password/password.esm.min.js +1 -1
- package/password/password.js +18 -12
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +725 -192
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +11 -1
- package/picklist/picklist.esm.js +713 -180
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +725 -192
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +7 -1
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +7 -1
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +7 -1
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +3715 -2447
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +3711 -2447
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +3715 -2447
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +8 -6
- 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 +9 -8
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +5 -3
- 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 +6 -5
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +32 -31
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +29 -28
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +33 -32
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +9 -7
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +4 -2
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +9 -8
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +18 -9
- package/resources/themes/arya-green/theme.css +18 -9
- package/resources/themes/arya-orange/theme.css +18 -9
- package/resources/themes/arya-purple/theme.css +18 -9
- package/resources/themes/bootstrap4-dark-blue/theme.css +18 -9
- package/resources/themes/bootstrap4-dark-purple/theme.css +18 -9
- package/resources/themes/bootstrap4-light-blue/theme.css +18 -9
- package/resources/themes/bootstrap4-light-purple/theme.css +18 -9
- package/resources/themes/fluent-light/theme.css +18 -9
- package/resources/themes/lara-dark-amber/theme.css +18 -9
- package/resources/themes/lara-dark-blue/theme.css +18 -9
- package/resources/themes/lara-dark-cyan/theme.css +18 -9
- package/resources/themes/lara-dark-green/theme.css +18 -9
- package/resources/themes/lara-dark-indigo/theme.css +18 -9
- package/resources/themes/lara-dark-pink/theme.css +18 -9
- package/resources/themes/lara-dark-purple/theme.css +18 -9
- package/resources/themes/lara-dark-teal/theme.css +18 -9
- package/resources/themes/lara-light-amber/theme.css +18 -9
- package/resources/themes/lara-light-blue/theme.css +18 -9
- package/resources/themes/lara-light-cyan/theme.css +18 -9
- package/resources/themes/lara-light-green/theme.css +18 -9
- package/resources/themes/lara-light-indigo/theme.css +18 -9
- package/resources/themes/lara-light-pink/theme.css +18 -9
- package/resources/themes/lara-light-purple/theme.css +18 -9
- package/resources/themes/lara-light-teal/theme.css +18 -9
- package/resources/themes/luna-amber/theme.css +18 -9
- package/resources/themes/luna-blue/theme.css +18 -9
- package/resources/themes/luna-green/theme.css +18 -9
- package/resources/themes/luna-pink/theme.css +18 -9
- package/resources/themes/md-dark-deeppurple/theme.css +18 -9
- package/resources/themes/md-dark-indigo/theme.css +18 -9
- package/resources/themes/md-light-deeppurple/theme.css +18 -9
- package/resources/themes/md-light-indigo/theme.css +18 -9
- package/resources/themes/mdc-dark-deeppurple/theme.css +18 -9
- package/resources/themes/mdc-dark-indigo/theme.css +18 -9
- package/resources/themes/mdc-light-deeppurple/theme.css +18 -9
- package/resources/themes/mdc-light-indigo/theme.css +18 -9
- package/resources/themes/mira/theme.css +18 -9
- package/resources/themes/nano/theme.css +18 -9
- package/resources/themes/nova/theme.css +18 -9
- package/resources/themes/nova-accent/theme.css +18 -9
- package/resources/themes/nova-alt/theme.css +18 -9
- package/resources/themes/rhea/theme.css +18 -9
- package/resources/themes/saga-blue/theme.css +18 -9
- package/resources/themes/saga-green/theme.css +18 -9
- package/resources/themes/saga-orange/theme.css +18 -9
- package/resources/themes/saga-purple/theme.css +18 -9
- package/resources/themes/soho-dark/theme.css +18 -9
- package/resources/themes/soho-light/theme.css +18 -9
- package/resources/themes/tailwind-light/theme.css +18 -9
- package/resources/themes/vela-blue/theme.css +18 -9
- package/resources/themes/vela-green/theme.css +18 -9
- package/resources/themes/vela-orange/theme.css +18 -9
- package/resources/themes/vela-purple/theme.css +18 -9
- package/resources/themes/viva-dark/theme.css +18 -9
- package/resources/themes/viva-light/theme.css +18 -9
- package/ripple/ripple.cjs.js +8 -4
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +9 -5
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +8 -4
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +4 -2
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +4 -2
- package/row/row.esm.min.js +1 -1
- package/row/row.js +4 -3
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +7 -6
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +3 -2
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +8 -7
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +4 -3
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +3 -2
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +4 -3
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +6 -3
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +4 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +7 -5
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +17 -113
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +3 -3
- package/sidebar/sidebar.esm.js +12 -108
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +18 -114
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +3 -1
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +3 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +4 -3
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +23 -116
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +1 -1
- package/slidemenu/slidemenu.esm.js +12 -105
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +23 -116
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +6 -5
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +4 -3
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +6 -5
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +19 -10
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +14 -5
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +19 -10
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +105 -94
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +1 -1
- package/splitbutton/splitbutton.esm.js +94 -83
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +105 -94
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +5 -4
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +3 -2
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +5 -4
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +8 -7
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +3 -2
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +8 -7
- package/steps/steps.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +17 -14
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +12 -9
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +17 -14
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +38 -22
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +35 -0
- package/tabview/tabview.esm.js +26 -10
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +38 -22
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +5 -3
- 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 +6 -5
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +11 -9
- 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 +12 -11
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +14 -12
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +1 -1
- package/tieredmenu/tieredmenu.esm.js +6 -4
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +14 -12
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +10 -8
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +3 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +10 -9
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +12 -10
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +2 -2
- package/toast/toast.esm.js +4 -2
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +12 -10
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +78 -7
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +77 -6
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +79 -8
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +7 -5
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +3 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +7 -6
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +4 -3
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +27 -0
- package/tooltip/tooltip.esm.js +3 -2
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +4 -3
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +1 -1
- package/tree/tree.cjs.js +267 -150
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +8 -0
- package/tree/tree.esm.js +250 -133
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +268 -152
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +209 -71
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +26 -1
- package/treeselect/treeselect.esm.js +191 -53
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +210 -73
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +139 -107
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +3 -3
- package/treetable/treetable.esm.js +86 -54
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +139 -107
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +6 -5
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +3 -2
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +6 -5
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +52 -9
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +3 -2
- package/utils/utils.esm.js +52 -10
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +52 -9
- package/utils/utils.min.js +1 -1
- package/web-types.json +137 -30
package/picklist/picklist.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import PrimeReact, { PrimeReactContext, FilterService } from 'primereact/api';
|
|
3
|
+
import PrimeReact$1, { ariaLabel as ariaLabel$1, PrimeReactContext, FilterService } from 'primereact/api';
|
|
4
4
|
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
5
|
-
import {
|
|
6
|
-
import { classNames,
|
|
5
|
+
import { useMergeProps, useMatchMedia, useUpdateEffect } from 'primereact/hooks';
|
|
6
|
+
import { classNames, ObjectUtils, IconUtils, UniqueComponentId, DomHandler } from 'primereact/utils';
|
|
7
7
|
import { Button } from 'primereact/button';
|
|
8
8
|
import { AngleDoubleDownIcon } from 'primereact/icons/angledoubledown';
|
|
9
9
|
import { AngleDoubleUpIcon } from 'primereact/icons/angledoubleup';
|
|
@@ -16,6 +16,82 @@ import { AngleDoubleRightIcon } from 'primereact/icons/angledoubleright';
|
|
|
16
16
|
import { AngleLeftIcon } from 'primereact/icons/angleleft';
|
|
17
17
|
import { AngleRightIcon } from 'primereact/icons/angleright';
|
|
18
18
|
|
|
19
|
+
function _readOnlyError(name) {
|
|
20
|
+
throw new TypeError("\"" + name + "\" is read-only");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function _typeof(o) {
|
|
24
|
+
"@babel/helpers - typeof";
|
|
25
|
+
|
|
26
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
27
|
+
return typeof o;
|
|
28
|
+
} : function (o) {
|
|
29
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
30
|
+
}, _typeof(o);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _toPrimitive(input, hint) {
|
|
34
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
35
|
+
var prim = input[Symbol.toPrimitive];
|
|
36
|
+
if (prim !== undefined) {
|
|
37
|
+
var res = prim.call(input, hint || "default");
|
|
38
|
+
if (_typeof(res) !== "object") return res;
|
|
39
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
40
|
+
}
|
|
41
|
+
return (hint === "string" ? String : Number)(input);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function _toPropertyKey(arg) {
|
|
45
|
+
var key = _toPrimitive(arg, "string");
|
|
46
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _defineProperty(obj, key, value) {
|
|
50
|
+
key = _toPropertyKey(key);
|
|
51
|
+
if (key in obj) {
|
|
52
|
+
Object.defineProperty(obj, key, {
|
|
53
|
+
value: value,
|
|
54
|
+
enumerable: true,
|
|
55
|
+
configurable: true,
|
|
56
|
+
writable: true
|
|
57
|
+
});
|
|
58
|
+
} else {
|
|
59
|
+
obj[key] = value;
|
|
60
|
+
}
|
|
61
|
+
return obj;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function _arrayLikeToArray(arr, len) {
|
|
65
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
66
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
67
|
+
return arr2;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function _arrayWithoutHoles(arr) {
|
|
71
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function _iterableToArray(iter) {
|
|
75
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
79
|
+
if (!o) return;
|
|
80
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
81
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
82
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
83
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
84
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function _nonIterableSpread() {
|
|
88
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function _toConsumableArray(arr) {
|
|
92
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
93
|
+
}
|
|
94
|
+
|
|
19
95
|
function _arrayWithHoles(arr) {
|
|
20
96
|
if (Array.isArray(arr)) return arr;
|
|
21
97
|
}
|
|
@@ -48,21 +124,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
48
124
|
}
|
|
49
125
|
}
|
|
50
126
|
|
|
51
|
-
function _arrayLikeToArray(arr, len) {
|
|
52
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
53
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
54
|
-
return arr2;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
58
|
-
if (!o) return;
|
|
59
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
60
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
61
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
62
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
63
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
127
|
function _nonIterableRest() {
|
|
67
128
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
68
129
|
}
|
|
@@ -81,20 +142,22 @@ var classes = {
|
|
|
81
142
|
filterContainer: 'p-picklist-filter-container',
|
|
82
143
|
list: 'p-picklist-list',
|
|
83
144
|
listWrapper: 'p-picklist-list-wrapper',
|
|
84
|
-
listSourceWrapper: 'p-picklist-source-wrapper',
|
|
85
|
-
listTargetWrapper: 'p-picklist-target-wrapper',
|
|
86
|
-
listSource: 'p-picklist-source',
|
|
87
|
-
listTarget: 'p-picklist-target',
|
|
145
|
+
listSourceWrapper: 'p-picklist-list-wrapper p-picklist-source-wrapper',
|
|
146
|
+
listTargetWrapper: 'p-picklist-list-wrapper p-picklist-target-wrapper',
|
|
147
|
+
listSource: 'p-picklist-list p-picklist-source',
|
|
148
|
+
listTarget: 'p-picklist-list p-picklist-target',
|
|
88
149
|
item: function item(_ref) {
|
|
89
|
-
var
|
|
150
|
+
var selected = _ref.selected,
|
|
151
|
+
focused = _ref.focused;
|
|
90
152
|
return classNames('p-picklist-item', {
|
|
91
|
-
'p-highlight':
|
|
153
|
+
'p-highlight': selected,
|
|
154
|
+
'p-focus': focused
|
|
92
155
|
});
|
|
93
156
|
},
|
|
94
157
|
sourceControls: 'p-picklist-source-controls p-picklist-buttons',
|
|
95
158
|
targetControls: 'p-picklist-target-controls p-picklist-buttons'
|
|
96
159
|
};
|
|
97
|
-
var styles = "\n@layer primereact {\n .p-picklist {\n display: flex;\n }\n
|
|
160
|
+
var styles = "\n@layer primereact {\n .p-picklist {\n display: flex;\n }\n\n .p-picklist-buttons {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n\n .p-picklist-list-wrapper {\n flex: 1 1 50%;\n }\n\n .p-picklist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n }\n\n .p-picklist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n }\n\n .p-picklist-filter {\n position: relative;\n }\n\n .p-picklist-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n }\n\n .p-picklist-filter-input {\n width: 100%;\n }\n}\n";
|
|
98
161
|
var PickListBase = ComponentBase.extend({
|
|
99
162
|
defaultProps: {
|
|
100
163
|
__TYPE: 'PickList',
|
|
@@ -112,6 +175,8 @@ var PickListBase = ComponentBase.extend({
|
|
|
112
175
|
showSourceControls: true,
|
|
113
176
|
showTargetControls: true,
|
|
114
177
|
metaKeySelection: true,
|
|
178
|
+
onFocus: null,
|
|
179
|
+
onBlur: null,
|
|
115
180
|
filter: false,
|
|
116
181
|
filterBy: null,
|
|
117
182
|
filterMatchMode: 'contains',
|
|
@@ -157,23 +222,8 @@ var PickListBase = ComponentBase.extend({
|
|
|
157
222
|
}
|
|
158
223
|
});
|
|
159
224
|
|
|
160
|
-
function _arrayWithoutHoles(arr) {
|
|
161
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function _iterableToArray(iter) {
|
|
165
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function _nonIterableSpread() {
|
|
169
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function _toConsumableArray(arr) {
|
|
173
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
174
|
-
}
|
|
175
|
-
|
|
176
225
|
var PickListControls = /*#__PURE__*/React.memo(function (props) {
|
|
226
|
+
var mergeProps = useMergeProps();
|
|
177
227
|
var ptm = props.ptm,
|
|
178
228
|
cx = props.cx,
|
|
179
229
|
unstyled = props.unstyled;
|
|
@@ -290,6 +340,7 @@ var PickListControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
290
340
|
onClick: moveUp,
|
|
291
341
|
pt: ptm('moveUpButton'),
|
|
292
342
|
unstyled: unstyled,
|
|
343
|
+
"aria-label": ariaLabel$1('moveUp'),
|
|
293
344
|
__parentMetadata: {
|
|
294
345
|
parent: props.metaData
|
|
295
346
|
}
|
|
@@ -300,6 +351,7 @@ var PickListControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
300
351
|
onClick: moveTop,
|
|
301
352
|
pt: ptm('moveTopButton'),
|
|
302
353
|
unstyled: unstyled,
|
|
354
|
+
"aria-label": ariaLabel$1('moveTop'),
|
|
303
355
|
__parentMetadata: {
|
|
304
356
|
parent: props.metaData
|
|
305
357
|
}
|
|
@@ -310,6 +362,7 @@ var PickListControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
310
362
|
onClick: moveDown,
|
|
311
363
|
pt: ptm('moveDownButton'),
|
|
312
364
|
unstyled: unstyled,
|
|
365
|
+
"aria-label": ariaLabel$1('moveDown'),
|
|
313
366
|
__parentMetadata: {
|
|
314
367
|
parent: props.metaData
|
|
315
368
|
}
|
|
@@ -320,6 +373,7 @@ var PickListControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
320
373
|
onClick: moveBottom,
|
|
321
374
|
pt: ptm('moveBottomButton'),
|
|
322
375
|
unstyled: unstyled,
|
|
376
|
+
"aria-label": ariaLabel$1('moveBottom'),
|
|
323
377
|
__parentMetadata: {
|
|
324
378
|
parent: props.metaData
|
|
325
379
|
}
|
|
@@ -327,48 +381,8 @@ var PickListControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
327
381
|
});
|
|
328
382
|
PickListControls.displayName = 'PickListControls';
|
|
329
383
|
|
|
330
|
-
function _typeof(o) {
|
|
331
|
-
"@babel/helpers - typeof";
|
|
332
|
-
|
|
333
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
334
|
-
return typeof o;
|
|
335
|
-
} : function (o) {
|
|
336
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
337
|
-
}, _typeof(o);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
function _toPrimitive(input, hint) {
|
|
341
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
342
|
-
var prim = input[Symbol.toPrimitive];
|
|
343
|
-
if (prim !== undefined) {
|
|
344
|
-
var res = prim.call(input, hint || "default");
|
|
345
|
-
if (_typeof(res) !== "object") return res;
|
|
346
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
347
|
-
}
|
|
348
|
-
return (hint === "string" ? String : Number)(input);
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
function _toPropertyKey(arg) {
|
|
352
|
-
var key = _toPrimitive(arg, "string");
|
|
353
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
function _defineProperty(obj, key, value) {
|
|
357
|
-
key = _toPropertyKey(key);
|
|
358
|
-
if (key in obj) {
|
|
359
|
-
Object.defineProperty(obj, key, {
|
|
360
|
-
value: value,
|
|
361
|
-
enumerable: true,
|
|
362
|
-
configurable: true,
|
|
363
|
-
writable: true
|
|
364
|
-
});
|
|
365
|
-
} else {
|
|
366
|
-
obj[key] = value;
|
|
367
|
-
}
|
|
368
|
-
return obj;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
384
|
var PickListItem = /*#__PURE__*/React.memo(function (props) {
|
|
385
|
+
var mergeProps = useMergeProps();
|
|
372
386
|
var ptm = props.ptm,
|
|
373
387
|
cx = props.cx;
|
|
374
388
|
var getPTOptions = function getPTOptions(key) {
|
|
@@ -383,7 +397,8 @@ var PickListItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
383
397
|
if (props.onClick) {
|
|
384
398
|
props.onClick({
|
|
385
399
|
originalEvent: event,
|
|
386
|
-
value: props.value
|
|
400
|
+
value: props.value,
|
|
401
|
+
id: props.id
|
|
387
402
|
});
|
|
388
403
|
}
|
|
389
404
|
};
|
|
@@ -395,92 +410,48 @@ var PickListItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
395
410
|
});
|
|
396
411
|
}
|
|
397
412
|
};
|
|
413
|
+
var onMouseDown = function onMouseDown(event) {
|
|
414
|
+
if (props.onMouseDown) {
|
|
415
|
+
props.onMouseDown(event);
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
var onFocus = function onFocus(event) {
|
|
419
|
+
if (props.onFocus) {
|
|
420
|
+
props.onFocus(event);
|
|
421
|
+
}
|
|
422
|
+
};
|
|
398
423
|
var content = props.template ? props.template(props.value) : props.value;
|
|
399
424
|
var itemProps = mergeProps({
|
|
400
425
|
className: classNames(props.className, cx('item', {
|
|
401
|
-
|
|
426
|
+
selected: props.selected,
|
|
427
|
+
focused: props.focused
|
|
402
428
|
})),
|
|
429
|
+
id: props.id,
|
|
403
430
|
onClick: onClick,
|
|
404
431
|
onKeyDown: onKeyDown,
|
|
405
|
-
|
|
432
|
+
onFocus: onFocus,
|
|
433
|
+
onMouseDown: onMouseDown,
|
|
406
434
|
role: 'option',
|
|
407
|
-
'aria-selected': props.selected
|
|
435
|
+
'aria-selected': props.selected,
|
|
436
|
+
'data-p-highlight': props.selected,
|
|
437
|
+
'data-p-focused': props.focused
|
|
408
438
|
}, getPTOptions('item'));
|
|
409
439
|
return /*#__PURE__*/React.createElement("li", itemProps, content, /*#__PURE__*/React.createElement(Ripple, null));
|
|
410
440
|
});
|
|
411
441
|
PickListItem.displayName = 'PickListItem';
|
|
412
442
|
|
|
413
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
414
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
443
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
444
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
415
445
|
var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
446
|
+
var mergeProps = useMergeProps();
|
|
416
447
|
var listElementRef = React.useRef(null);
|
|
417
448
|
var ptm = props.ptm,
|
|
418
449
|
cx = props.cx;
|
|
419
450
|
var getPTOptions = function getPTOptions(key, options) {
|
|
420
|
-
return ptm(key, _objectSpread({
|
|
451
|
+
return ptm(key, _objectSpread$1({
|
|
421
452
|
hostName: props.hostName
|
|
422
453
|
}, options));
|
|
423
454
|
};
|
|
424
|
-
var onItemClick = function onItemClick(event) {
|
|
425
|
-
var originalEvent = event.originalEvent;
|
|
426
|
-
var item = event.value;
|
|
427
|
-
var selection = _toConsumableArray(props.selection);
|
|
428
|
-
var index = ObjectUtils.findIndexInList(item, selection, props.dataKey);
|
|
429
|
-
var selected = index !== -1;
|
|
430
|
-
var metaSelection = props.metaKeySelection;
|
|
431
|
-
if (metaSelection) {
|
|
432
|
-
var metaKey = originalEvent.metaKey || originalEvent.ctrlKey;
|
|
433
|
-
if (selected && metaKey) {
|
|
434
|
-
selection.splice(index, 1);
|
|
435
|
-
} else {
|
|
436
|
-
if (!metaKey) {
|
|
437
|
-
selection.length = 0;
|
|
438
|
-
}
|
|
439
|
-
selection.push(item);
|
|
440
|
-
}
|
|
441
|
-
} else {
|
|
442
|
-
if (selected) selection.splice(index, 1);else selection.push(item);
|
|
443
|
-
}
|
|
444
|
-
if (props.onSelectionChange) {
|
|
445
|
-
props.onSelectionChange({
|
|
446
|
-
event: originalEvent,
|
|
447
|
-
value: selection
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
var onItemKeyDown = function onItemKeyDown(event) {
|
|
452
|
-
var originalEvent = event.originalEvent;
|
|
453
|
-
var listItem = originalEvent.currentTarget;
|
|
454
|
-
switch (originalEvent.which) {
|
|
455
|
-
//down
|
|
456
|
-
case 40:
|
|
457
|
-
var nextItem = findNextItem(listItem);
|
|
458
|
-
nextItem && nextItem.focus();
|
|
459
|
-
originalEvent.preventDefault();
|
|
460
|
-
break;
|
|
461
|
-
|
|
462
|
-
//up
|
|
463
|
-
case 38:
|
|
464
|
-
var prevItem = findPrevItem(listItem);
|
|
465
|
-
prevItem && prevItem.focus();
|
|
466
|
-
originalEvent.preventDefault();
|
|
467
|
-
break;
|
|
468
|
-
|
|
469
|
-
//enter
|
|
470
|
-
case 13:
|
|
471
|
-
onItemClick(event);
|
|
472
|
-
originalEvent.preventDefault();
|
|
473
|
-
break;
|
|
474
|
-
}
|
|
475
|
-
};
|
|
476
|
-
var findNextItem = function findNextItem(item) {
|
|
477
|
-
var nextItem = item.nextElementSibling;
|
|
478
|
-
return nextItem ? !DomHandler.hasClass(nextItem, 'p-picklist-item') ? findNextItem(nextItem) : nextItem : null;
|
|
479
|
-
};
|
|
480
|
-
var findPrevItem = function findPrevItem(item) {
|
|
481
|
-
var prevItem = item.previousElementSibling;
|
|
482
|
-
return prevItem ? !DomHandler.hasClass(prevItem, 'p-picklist-item') ? findPrevItem(prevItem) : prevItem : null;
|
|
483
|
-
};
|
|
484
455
|
var isSelected = function isSelected(item) {
|
|
485
456
|
return ObjectUtils.findIndexInList(item, props.selection, props.dataKey) !== -1;
|
|
486
457
|
};
|
|
@@ -501,7 +472,9 @@ var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
501
472
|
};
|
|
502
473
|
React.useImperativeHandle(ref, function () {
|
|
503
474
|
return {
|
|
504
|
-
|
|
475
|
+
getElement: function getElement() {
|
|
476
|
+
return listElementRef.current;
|
|
477
|
+
}
|
|
505
478
|
};
|
|
506
479
|
});
|
|
507
480
|
var createHeader = function createHeader() {
|
|
@@ -515,18 +488,26 @@ var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
515
488
|
};
|
|
516
489
|
var createItems = function createItems() {
|
|
517
490
|
if (props.list) {
|
|
518
|
-
return props.list.map(function (item) {
|
|
519
|
-
var key =
|
|
491
|
+
return props.list.map(function (item, index) {
|
|
492
|
+
var key = props.parentId + '_' + index;
|
|
520
493
|
var selected = isSelected(item);
|
|
521
494
|
return /*#__PURE__*/React.createElement(PickListItem, {
|
|
522
495
|
hostName: props.hostName,
|
|
523
496
|
key: key,
|
|
497
|
+
id: key,
|
|
498
|
+
index: index,
|
|
499
|
+
focused: key === props.focusedOptionId,
|
|
524
500
|
value: item,
|
|
525
501
|
template: props.itemTemplate,
|
|
526
502
|
selected: selected,
|
|
527
|
-
onClick: onItemClick,
|
|
528
|
-
onKeyDown: onItemKeyDown,
|
|
529
|
-
|
|
503
|
+
onClick: props.onItemClick,
|
|
504
|
+
onKeyDown: props.onItemKeyDown,
|
|
505
|
+
onMouseDown: function onMouseDown(event) {
|
|
506
|
+
return props.onOptionMouseDown(_objectSpread$1(_objectSpread$1({}, event), {}, {
|
|
507
|
+
index: index,
|
|
508
|
+
type: props.type
|
|
509
|
+
}));
|
|
510
|
+
},
|
|
530
511
|
ptm: ptm,
|
|
531
512
|
cx: cx
|
|
532
513
|
});
|
|
@@ -540,7 +521,7 @@ var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
540
521
|
className: cx('filterIcon')
|
|
541
522
|
}, getPTOptions('filterIcon'));
|
|
542
523
|
var icon = props.type === 'source' ? props.sourceFilterIcon || /*#__PURE__*/React.createElement(SearchIcon, filterIconProps) : props.targetFilterIcon || /*#__PURE__*/React.createElement(SearchIcon, filterIconProps);
|
|
543
|
-
var filterIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, filterIconProps), {
|
|
524
|
+
var filterIcon = IconUtils.getJSXIcon(icon, _objectSpread$1({}, filterIconProps), {
|
|
544
525
|
props: props
|
|
545
526
|
});
|
|
546
527
|
if (props.showFilter) {
|
|
@@ -580,9 +561,18 @@ var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
580
561
|
var createList = function createList() {
|
|
581
562
|
var items = createItems();
|
|
582
563
|
var listProps = mergeProps({
|
|
564
|
+
ref: listElementRef,
|
|
583
565
|
className: classNames(props.listClassName, cx('list')),
|
|
584
566
|
role: 'listbox',
|
|
567
|
+
id: props.parentId + '_' + props.type + '_list',
|
|
585
568
|
'aria-multiselectable': true,
|
|
569
|
+
'aria-activedescendant': props.ariaActivedescendant,
|
|
570
|
+
tabIndex: props.list && props.list.length > 0 ? props.tabIndex : -1,
|
|
571
|
+
onKeyDown: props.onListKeyDown,
|
|
572
|
+
onFocus: function onFocus(event) {
|
|
573
|
+
props.onListFocus(event, props.type);
|
|
574
|
+
},
|
|
575
|
+
onBlur: props.onListBlur,
|
|
586
576
|
style: props.style
|
|
587
577
|
}, getPTOptions('list'));
|
|
588
578
|
return /*#__PURE__*/React.createElement("ul", listProps, items);
|
|
@@ -591,14 +581,243 @@ var PickListSubList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fun
|
|
|
591
581
|
var filter = createFilter();
|
|
592
582
|
var list = createList();
|
|
593
583
|
var listWrapperProps = mergeProps({
|
|
594
|
-
className: classNames(props.className, cx('listWrapper'))
|
|
595
|
-
ref: listElementRef
|
|
584
|
+
className: classNames(props.className, cx('listWrapper'))
|
|
596
585
|
}, getPTOptions('listWrapper'));
|
|
597
586
|
return /*#__PURE__*/React.createElement("div", listWrapperProps, header, filter, list);
|
|
598
587
|
}));
|
|
599
588
|
PickListSubList.displayName = 'PickListSubList';
|
|
600
589
|
|
|
590
|
+
function _defineProperties(target, props) {
|
|
591
|
+
for (var i = 0; i < props.length; i++) {
|
|
592
|
+
var descriptor = props[i];
|
|
593
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
594
|
+
descriptor.configurable = true;
|
|
595
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
596
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
600
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
601
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
602
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
603
|
+
writable: false
|
|
604
|
+
});
|
|
605
|
+
return Constructor;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
function _classCallCheck(instance, Constructor) {
|
|
609
|
+
if (!(instance instanceof Constructor)) {
|
|
610
|
+
throw new TypeError("Cannot call a class as a function");
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
var FilterMatchMode = Object.freeze({
|
|
615
|
+
STARTS_WITH: 'startsWith',
|
|
616
|
+
CONTAINS: 'contains',
|
|
617
|
+
NOT_CONTAINS: 'notContains',
|
|
618
|
+
ENDS_WITH: 'endsWith',
|
|
619
|
+
EQUALS: 'equals',
|
|
620
|
+
NOT_EQUALS: 'notEquals',
|
|
621
|
+
IN: 'in',
|
|
622
|
+
LESS_THAN: 'lt',
|
|
623
|
+
LESS_THAN_OR_EQUAL_TO: 'lte',
|
|
624
|
+
GREATER_THAN: 'gt',
|
|
625
|
+
GREATER_THAN_OR_EQUAL_TO: 'gte',
|
|
626
|
+
BETWEEN: 'between',
|
|
627
|
+
DATE_IS: 'dateIs',
|
|
628
|
+
DATE_IS_NOT: 'dateIsNot',
|
|
629
|
+
DATE_BEFORE: 'dateBefore',
|
|
630
|
+
DATE_AFTER: 'dateAfter',
|
|
631
|
+
CUSTOM: 'custom'
|
|
632
|
+
});
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* @deprecated please use PrimeReactContext
|
|
636
|
+
*/
|
|
637
|
+
var PrimeReact = /*#__PURE__*/_createClass(function PrimeReact() {
|
|
638
|
+
_classCallCheck(this, PrimeReact);
|
|
639
|
+
});
|
|
640
|
+
_defineProperty(PrimeReact, "ripple", false);
|
|
641
|
+
_defineProperty(PrimeReact, "inputStyle", 'outlined');
|
|
642
|
+
_defineProperty(PrimeReact, "locale", 'en');
|
|
643
|
+
_defineProperty(PrimeReact, "appendTo", null);
|
|
644
|
+
_defineProperty(PrimeReact, "cssTransition", true);
|
|
645
|
+
_defineProperty(PrimeReact, "autoZIndex", true);
|
|
646
|
+
_defineProperty(PrimeReact, "hideOverlaysOnDocumentScrolling", false);
|
|
647
|
+
_defineProperty(PrimeReact, "nonce", null);
|
|
648
|
+
_defineProperty(PrimeReact, "nullSortOrder", 1);
|
|
649
|
+
_defineProperty(PrimeReact, "zIndex", {
|
|
650
|
+
modal: 1100,
|
|
651
|
+
overlay: 1000,
|
|
652
|
+
menu: 1000,
|
|
653
|
+
tooltip: 1100,
|
|
654
|
+
toast: 1200
|
|
655
|
+
});
|
|
656
|
+
_defineProperty(PrimeReact, "pt", undefined);
|
|
657
|
+
_defineProperty(PrimeReact, "filterMatchModeOptions", {
|
|
658
|
+
text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],
|
|
659
|
+
numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
|
|
660
|
+
date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]
|
|
661
|
+
});
|
|
662
|
+
_defineProperty(PrimeReact, "changeTheme", function (currentTheme, newTheme, linkElementId, callback) {
|
|
663
|
+
var _linkElement$parentNo;
|
|
664
|
+
var linkElement = document.getElementById(linkElementId);
|
|
665
|
+
var cloneLinkElement = linkElement.cloneNode(true);
|
|
666
|
+
var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
|
|
667
|
+
cloneLinkElement.setAttribute('id', linkElementId + '-clone');
|
|
668
|
+
cloneLinkElement.setAttribute('href', newThemeUrl);
|
|
669
|
+
cloneLinkElement.addEventListener('load', function () {
|
|
670
|
+
linkElement.remove();
|
|
671
|
+
cloneLinkElement.setAttribute('id', linkElementId);
|
|
672
|
+
if (callback) {
|
|
673
|
+
callback();
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
(_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.insertBefore(cloneLinkElement, linkElement.nextSibling);
|
|
677
|
+
});
|
|
678
|
+
|
|
679
|
+
var locales = {
|
|
680
|
+
en: {
|
|
681
|
+
startsWith: 'Starts with',
|
|
682
|
+
contains: 'Contains',
|
|
683
|
+
notContains: 'Not contains',
|
|
684
|
+
endsWith: 'Ends with',
|
|
685
|
+
equals: 'Equals',
|
|
686
|
+
notEquals: 'Not equals',
|
|
687
|
+
noFilter: 'No Filter',
|
|
688
|
+
filter: 'Filter',
|
|
689
|
+
lt: 'Less than',
|
|
690
|
+
lte: 'Less than or equal to',
|
|
691
|
+
gt: 'Greater than',
|
|
692
|
+
gte: 'Greater than or equal to',
|
|
693
|
+
dateIs: 'Date is',
|
|
694
|
+
dateIsNot: 'Date is not',
|
|
695
|
+
dateBefore: 'Date is before',
|
|
696
|
+
dateAfter: 'Date is after',
|
|
697
|
+
custom: 'Custom',
|
|
698
|
+
clear: 'Clear',
|
|
699
|
+
close: 'Close',
|
|
700
|
+
apply: 'Apply',
|
|
701
|
+
matchAll: 'Match All',
|
|
702
|
+
matchAny: 'Match Any',
|
|
703
|
+
addRule: 'Add Rule',
|
|
704
|
+
removeRule: 'Remove Rule',
|
|
705
|
+
accept: 'Yes',
|
|
706
|
+
reject: 'No',
|
|
707
|
+
choose: 'Choose',
|
|
708
|
+
upload: 'Upload',
|
|
709
|
+
cancel: 'Cancel',
|
|
710
|
+
completed: 'Completed',
|
|
711
|
+
pending: 'Pending',
|
|
712
|
+
fileSizeTypes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
|
|
713
|
+
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
714
|
+
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
715
|
+
dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
716
|
+
monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
|
|
717
|
+
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
718
|
+
today: 'Today',
|
|
719
|
+
weekHeader: 'Wk',
|
|
720
|
+
firstDayOfWeek: 0,
|
|
721
|
+
showMonthAfterYear: false,
|
|
722
|
+
dateFormat: 'mm/dd/yy',
|
|
723
|
+
weak: 'Weak',
|
|
724
|
+
medium: 'Medium',
|
|
725
|
+
strong: 'Strong',
|
|
726
|
+
passwordPrompt: 'Enter a password',
|
|
727
|
+
emptyFilterMessage: 'No available options',
|
|
728
|
+
emptyMessage: 'No results found',
|
|
729
|
+
aria: {
|
|
730
|
+
trueLabel: 'True',
|
|
731
|
+
falseLabel: 'False',
|
|
732
|
+
nullLabel: 'Not Selected',
|
|
733
|
+
star: '1 star',
|
|
734
|
+
stars: '{star} stars',
|
|
735
|
+
selectAll: 'All items selected',
|
|
736
|
+
unselectAll: 'All items unselected',
|
|
737
|
+
close: 'Close',
|
|
738
|
+
previous: 'Previous',
|
|
739
|
+
next: 'Next',
|
|
740
|
+
navigation: 'Navigation',
|
|
741
|
+
scrollTop: 'Scroll Top',
|
|
742
|
+
moveTop: 'Move Top',
|
|
743
|
+
moveUp: 'Move Up',
|
|
744
|
+
moveDown: 'Move Down',
|
|
745
|
+
moveBottom: 'Move Bottom',
|
|
746
|
+
moveToTarget: 'Move to Target',
|
|
747
|
+
moveToSource: 'Move to Source',
|
|
748
|
+
moveAllToTarget: 'Move All to Target',
|
|
749
|
+
moveAllToSource: 'Move All to Source',
|
|
750
|
+
pageLabel: 'Page {page}',
|
|
751
|
+
firstPageLabel: 'First Page',
|
|
752
|
+
lastPageLabel: 'Last Page',
|
|
753
|
+
nextPageLabel: 'Next Page',
|
|
754
|
+
previousPageLabel: 'Previous Page',
|
|
755
|
+
rowsPerPageLabel: 'Rows per page',
|
|
756
|
+
jumpToPageDropdownLabel: 'Jump to Page Dropdown',
|
|
757
|
+
jumpToPageInputLabel: 'Jump to Page Input',
|
|
758
|
+
selectRow: 'Row Selected',
|
|
759
|
+
unselectRow: 'Row Unselected',
|
|
760
|
+
expandRow: 'Row Expanded',
|
|
761
|
+
collapseRow: 'Row Collapsed',
|
|
762
|
+
showFilterMenu: 'Show Filter Menu',
|
|
763
|
+
hideFilterMenu: 'Hide Filter Menu',
|
|
764
|
+
filterOperator: 'Filter Operator',
|
|
765
|
+
filterConstraint: 'Filter Constraint',
|
|
766
|
+
editRow: 'Row Edit',
|
|
767
|
+
saveEdit: 'Save Edit',
|
|
768
|
+
cancelEdit: 'Cancel Edit',
|
|
769
|
+
listView: 'List View',
|
|
770
|
+
gridView: 'Grid View',
|
|
771
|
+
slide: 'Slide',
|
|
772
|
+
slideNumber: '{slideNumber}',
|
|
773
|
+
zoomImage: 'Zoom Image',
|
|
774
|
+
zoomIn: 'Zoom In',
|
|
775
|
+
zoomOut: 'Zoom Out',
|
|
776
|
+
rotateRight: 'Rotate Right',
|
|
777
|
+
rotateLeft: 'Rotate Left',
|
|
778
|
+
selectLabel: 'Select',
|
|
779
|
+
unselectLabel: 'Unselect',
|
|
780
|
+
expandLabel: 'Expand',
|
|
781
|
+
collapseLabel: 'Collapse'
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Find an ARIA label in the locale by key. If options are passed it will replace all options:
|
|
788
|
+
* ```ts
|
|
789
|
+
* const ariaValue = "Page {page}, User {user}, Role {role}";
|
|
790
|
+
* const options = { page: 2, user: "John", role: "Admin" };
|
|
791
|
+
* const result = ariaLabel('yourLabel', { page: 2, user: "John", role: "Admin" })
|
|
792
|
+
* console.log(result); // Output: Page 2, User John, Role Admin
|
|
793
|
+
* ```
|
|
794
|
+
* @param {string} ariaKey key of the ARIA label to look up in locale.
|
|
795
|
+
* @param {any} options JSON options like { page: 2, user: "John", role: "Admin" }
|
|
796
|
+
* @returns the ARIA label with replaced values
|
|
797
|
+
*/
|
|
798
|
+
function ariaLabel(ariaKey, options) {
|
|
799
|
+
var _locale = PrimeReact.locale;
|
|
800
|
+
try {
|
|
801
|
+
var _ariaLabel = localeOptions(_locale)['aria'][ariaKey];
|
|
802
|
+
if (_ariaLabel) {
|
|
803
|
+
for (var key in options) {
|
|
804
|
+
if (options.hasOwnProperty(key)) {
|
|
805
|
+
_ariaLabel = _ariaLabel.replace("{".concat(key, "}"), options[key]);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
return _ariaLabel;
|
|
810
|
+
} catch (error) {
|
|
811
|
+
throw new Error("The ".concat(ariaKey, " option is not found in the current locale('").concat(_locale, "')."));
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
function localeOptions(locale) {
|
|
815
|
+
var _locale = locale || PrimeReact.locale;
|
|
816
|
+
return locales[_locale];
|
|
817
|
+
}
|
|
818
|
+
|
|
601
819
|
var PickListTransferControls = /*#__PURE__*/React.memo(function (props) {
|
|
820
|
+
var mergeProps = useMergeProps();
|
|
602
821
|
var viewChanged = useMatchMedia("(max-width: ".concat(props.breakpoint, ")"), props.breakpoint);
|
|
603
822
|
var ptm = props.ptm,
|
|
604
823
|
cx = props.cx,
|
|
@@ -727,6 +946,7 @@ var PickListTransferControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
727
946
|
onClick: moveRight,
|
|
728
947
|
pt: ptm('moveToTargetButton'),
|
|
729
948
|
unstyled: unstyled,
|
|
949
|
+
"aria-label": ariaLabel('moveToTarget'),
|
|
730
950
|
__parentMetadata: {
|
|
731
951
|
parent: props.metaData
|
|
732
952
|
}
|
|
@@ -737,6 +957,7 @@ var PickListTransferControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
737
957
|
onClick: moveAllRight,
|
|
738
958
|
pt: ptm('moveAllToTargetButton'),
|
|
739
959
|
unstyled: unstyled,
|
|
960
|
+
"aria-label": ariaLabel('moveAllToTarget'),
|
|
740
961
|
__parentMetadata: {
|
|
741
962
|
parent: props.metaData
|
|
742
963
|
}
|
|
@@ -747,6 +968,7 @@ var PickListTransferControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
747
968
|
onClick: moveLeft,
|
|
748
969
|
pt: ptm('moveToSourceButton'),
|
|
749
970
|
unstyled: unstyled,
|
|
971
|
+
"aria-label": ariaLabel('moveToSource'),
|
|
750
972
|
__parentMetadata: {
|
|
751
973
|
parent: props.metaData
|
|
752
974
|
}
|
|
@@ -757,6 +979,7 @@ var PickListTransferControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
757
979
|
onClick: moveAllLeft,
|
|
758
980
|
pt: ptm('moveAllToSourceButton'),
|
|
759
981
|
unstyled: unstyled,
|
|
982
|
+
"aria-label": ariaLabel('moveAllToSource'),
|
|
760
983
|
__parentMetadata: {
|
|
761
984
|
parent: props.metaData
|
|
762
985
|
}
|
|
@@ -764,7 +987,10 @@ var PickListTransferControls = /*#__PURE__*/React.memo(function (props) {
|
|
|
764
987
|
});
|
|
765
988
|
PickListTransferControls.displayName = 'PickListTransferControls';
|
|
766
989
|
|
|
990
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
991
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
767
992
|
var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
993
|
+
var mergeProps = useMergeProps();
|
|
768
994
|
var context = React.useContext(PrimeReactContext);
|
|
769
995
|
var props = PickListBase.getProps(inProps, context);
|
|
770
996
|
var _React$useState = React.useState([]),
|
|
@@ -783,10 +1009,25 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
783
1009
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
784
1010
|
targetFilterValueState = _React$useState8[0],
|
|
785
1011
|
setTargetFilterValueState = _React$useState8[1];
|
|
786
|
-
var _React$useState9 = React.useState(
|
|
1012
|
+
var _React$useState9 = React.useState(props.id),
|
|
787
1013
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
788
1014
|
attributeSelectorState = _React$useState10[0],
|
|
789
1015
|
setAttributeSelectorState = _React$useState10[1];
|
|
1016
|
+
var _React$useState11 = React.useState(-1),
|
|
1017
|
+
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
1018
|
+
focusedOptionIndex = _React$useState12[0],
|
|
1019
|
+
setFocusedOptionIndex = _React$useState12[1];
|
|
1020
|
+
var _React$useState13 = React.useState(null),
|
|
1021
|
+
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
1022
|
+
focusedOptionId = _React$useState14[0],
|
|
1023
|
+
setFocusedOptionId = _React$useState14[1];
|
|
1024
|
+
var _React$useState15 = React.useState({
|
|
1025
|
+
source: false,
|
|
1026
|
+
target: false
|
|
1027
|
+
}),
|
|
1028
|
+
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
1029
|
+
focused = _React$useState16[0],
|
|
1030
|
+
setFocused = _React$useState16[1];
|
|
790
1031
|
var metaData = {
|
|
791
1032
|
props: props,
|
|
792
1033
|
state: {
|
|
@@ -819,31 +1060,30 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
819
1060
|
var showTargetFilter = hasFilterBy && props.showTargetFilter;
|
|
820
1061
|
var onSourceReorder = function onSourceReorder(event) {
|
|
821
1062
|
handleChange(event, event.value, props.target);
|
|
822
|
-
reorderedListElementRef.current =
|
|
1063
|
+
reorderedListElementRef.current = getListElement('source');
|
|
823
1064
|
reorderDirection.current = event.direction;
|
|
824
1065
|
};
|
|
825
1066
|
var onTargetReorder = function onTargetReorder(event) {
|
|
826
1067
|
handleChange(event, props.source, event.value);
|
|
827
|
-
reorderedListElementRef.current =
|
|
1068
|
+
reorderedListElementRef.current = getListElement('target');
|
|
828
1069
|
reorderDirection.current = event.direction;
|
|
829
1070
|
};
|
|
830
1071
|
var handleScrollPosition = function handleScrollPosition(listElement, direction) {
|
|
831
1072
|
if (listElement) {
|
|
832
|
-
var list = DomHandler.findSingle(listElement, '[data-pc-section="list"]');
|
|
833
1073
|
switch (direction) {
|
|
834
1074
|
case 'up':
|
|
835
|
-
scrollInView(
|
|
1075
|
+
scrollInView(listElement, -1);
|
|
836
1076
|
break;
|
|
837
1077
|
case 'top':
|
|
838
|
-
|
|
1078
|
+
listElement.scrollTop = 0;
|
|
839
1079
|
break;
|
|
840
1080
|
case 'down':
|
|
841
|
-
scrollInView(
|
|
1081
|
+
scrollInView(listElement, 1);
|
|
842
1082
|
break;
|
|
843
1083
|
case 'bottom':
|
|
844
1084
|
/* TODO: improve this code block */
|
|
845
1085
|
setTimeout(function () {
|
|
846
|
-
return
|
|
1086
|
+
return listElement.scrollTop = listElement.scrollHeight;
|
|
847
1087
|
}, 100);
|
|
848
1088
|
break;
|
|
849
1089
|
}
|
|
@@ -949,13 +1189,6 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
949
1189
|
setFilterState(value);
|
|
950
1190
|
}
|
|
951
1191
|
};
|
|
952
|
-
var getVisibleList = function getVisibleList(list, type) {
|
|
953
|
-
var _ref3 = type === 'source' ? [sourceFilteredValue, filterSource] : [targetFilteredValue, filterTarget],
|
|
954
|
-
_ref4 = _slicedToArray(_ref3, 2),
|
|
955
|
-
filteredValue = _ref4[0],
|
|
956
|
-
filterCallback = _ref4[1];
|
|
957
|
-
return hasFilterBy && ObjectUtils.isNotEmpty(filteredValue) ? filterCallback(filteredValue) : list;
|
|
958
|
-
};
|
|
959
1192
|
var filterSource = function filterSource() {
|
|
960
1193
|
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
961
1194
|
var filteredValue = value.trim().toLocaleLowerCase(props.filterLocale);
|
|
@@ -970,9 +1203,271 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
970
1203
|
var searchFields = hasFilterBy ? props.filterBy.split(',') : [];
|
|
971
1204
|
return FilterService.filter(list, searchFields, filterValue, props.filterMatchMode, props.filterLocale);
|
|
972
1205
|
};
|
|
1206
|
+
var getVisibleList = function getVisibleList(list, type) {
|
|
1207
|
+
var _ref3 = type === 'source' ? [sourceFilteredValue, filterSource] : [targetFilteredValue, filterTarget],
|
|
1208
|
+
_ref4 = _slicedToArray(_ref3, 2),
|
|
1209
|
+
filteredValue = _ref4[0],
|
|
1210
|
+
filterCallback = _ref4[1];
|
|
1211
|
+
return hasFilterBy && ObjectUtils.isNotEmpty(filteredValue) ? filterCallback(filteredValue) : list;
|
|
1212
|
+
};
|
|
1213
|
+
var sourceList = getVisibleList(props.source, 'source');
|
|
1214
|
+
var targetList = getVisibleList(props.target, 'target');
|
|
1215
|
+
var _onListFocus = function onListFocus(event, type) {
|
|
1216
|
+
var listElement = getListElement(type);
|
|
1217
|
+
var selectedFirstItem = DomHandler.findSingle(listElement, '[data-p-highlight="true"]') || DomHandler.findSingle(listElement, '[data-pc-section="item"]');
|
|
1218
|
+
var itemList = listElement && listElement.children ? _toConsumableArray(listElement.children) : [];
|
|
1219
|
+
if (selectedFirstItem) {
|
|
1220
|
+
var findIndex = ObjectUtils.findIndexInList(selectedFirstItem, itemList);
|
|
1221
|
+
setFocused(_objectSpread(_objectSpread({}, focused), {}, _defineProperty({}, type, true)));
|
|
1222
|
+
var index = focusedOptionIndex !== -1 ? focusedOptionIndex : selectedFirstItem ? findIndex : -1;
|
|
1223
|
+
changeFocusedOptionIndex(index, type);
|
|
1224
|
+
props.onFocus && props.onFocus(event);
|
|
1225
|
+
}
|
|
1226
|
+
};
|
|
1227
|
+
var _onListBlur = function onListBlur(event, type) {
|
|
1228
|
+
setFocused(_objectSpread(_objectSpread({}, focused), {}, _defineProperty({}, type, false)));
|
|
1229
|
+
setFocusedOptionIndex(-1);
|
|
1230
|
+
props.onBlur && props.onBlur(event);
|
|
1231
|
+
};
|
|
1232
|
+
var _onItemClick = function onItemClick(event, type) {
|
|
1233
|
+
var arrowKeyClick = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
1234
|
+
var originalEvent = event.originalEvent;
|
|
1235
|
+
var item = event.value;
|
|
1236
|
+
var selectedId = event.id;
|
|
1237
|
+
var isSource = type === 'source';
|
|
1238
|
+
var selection = _toConsumableArray(isSource ? sourceSelection : targetSelection);
|
|
1239
|
+
var index = ObjectUtils.findIndexInList(item, selection, props.dataKey);
|
|
1240
|
+
var selected = index !== -1;
|
|
1241
|
+
var metaSelection = props.metaKeySelection;
|
|
1242
|
+
if (!arrowKeyClick) setFocusedOptionIndex(selectedId);
|
|
1243
|
+
if (metaSelection) {
|
|
1244
|
+
var metaKey = originalEvent.metaKey || originalEvent.ctrlKey || originalEvent.shiftKey;
|
|
1245
|
+
if (selected && metaKey) {
|
|
1246
|
+
selection.splice(index, 1);
|
|
1247
|
+
} else {
|
|
1248
|
+
if (!metaKey) {
|
|
1249
|
+
selection.length = 0;
|
|
1250
|
+
}
|
|
1251
|
+
selection.push(item);
|
|
1252
|
+
}
|
|
1253
|
+
} else {
|
|
1254
|
+
if (selected) selection.splice(index, 1);else selection.push(item);
|
|
1255
|
+
}
|
|
1256
|
+
if (isSource) {
|
|
1257
|
+
_onSelectionChange({
|
|
1258
|
+
originalEvent: originalEvent,
|
|
1259
|
+
value: selection
|
|
1260
|
+
}, 'sourceSelection', props.onSourceSelectionChange);
|
|
1261
|
+
} else {
|
|
1262
|
+
_onSelectionChange({
|
|
1263
|
+
originalEvent: originalEvent,
|
|
1264
|
+
value: selection
|
|
1265
|
+
}, 'targetSelection', props.onTargetSelectionChange);
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
1268
|
+
var _onOptionMouseDown = function onOptionMouseDown(_ref5) {
|
|
1269
|
+
var index = _ref5.index,
|
|
1270
|
+
type = _ref5.type;
|
|
1271
|
+
setFocused(_objectSpread(_objectSpread({}, focused), {}, _defineProperty({}, type, true)));
|
|
1272
|
+
setFocusedOptionIndex(index);
|
|
1273
|
+
};
|
|
1274
|
+
var _onListKeyDown = function onListKeyDown(event, type) {
|
|
1275
|
+
switch (event.code) {
|
|
1276
|
+
case 'ArrowDown':
|
|
1277
|
+
onArrowDownKey(event, type);
|
|
1278
|
+
break;
|
|
1279
|
+
case 'ArrowUp':
|
|
1280
|
+
onArrowUpKey(event, type);
|
|
1281
|
+
break;
|
|
1282
|
+
case 'Home':
|
|
1283
|
+
onHomeKey(event, type);
|
|
1284
|
+
break;
|
|
1285
|
+
case 'End':
|
|
1286
|
+
onEndKey(event, type);
|
|
1287
|
+
break;
|
|
1288
|
+
case 'Enter':
|
|
1289
|
+
case 'NumpadEnter':
|
|
1290
|
+
onEnterKey(event, type);
|
|
1291
|
+
break;
|
|
1292
|
+
case 'Space':
|
|
1293
|
+
onSpaceKey(event, type);
|
|
1294
|
+
break;
|
|
1295
|
+
case 'KeyA':
|
|
1296
|
+
if (event.ctrlKey) {
|
|
1297
|
+
var isSource = type === 'source';
|
|
1298
|
+
if (isSource) setSourceSelectionState(_toConsumableArray(sourceList));else setTargetSelectionState(_toConsumableArray(targetList));
|
|
1299
|
+
_onSelectionChange({
|
|
1300
|
+
originalEvent: event,
|
|
1301
|
+
value: _toConsumableArray(sourceList)
|
|
1302
|
+
}, isSource ? 'sourceSelection' : 'targetSelection', isSource ? props.onSourceSelectionChange : props.onTargetSelectionChange);
|
|
1303
|
+
event.preventDefault();
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
};
|
|
1307
|
+
var onArrowDownKey = function onArrowDownKey(event, type) {
|
|
1308
|
+
var optionIndex = findNextOptionIndex(focusedOptionIndex, type);
|
|
1309
|
+
var visibleList = getVisibleList(type === 'source' ? props.source : props.target, type);
|
|
1310
|
+
changeFocusedOptionIndex(optionIndex, type);
|
|
1311
|
+
if (visibleList && visibleList.length > 0 && event.shiftKey) {
|
|
1312
|
+
_onItemClick({
|
|
1313
|
+
originalEvent: event,
|
|
1314
|
+
value: visibleList[optionIndex]
|
|
1315
|
+
}, type, true);
|
|
1316
|
+
}
|
|
1317
|
+
event.preventDefault();
|
|
1318
|
+
};
|
|
1319
|
+
var onArrowUpKey = function onArrowUpKey(event, type) {
|
|
1320
|
+
var optionIndex = findPrevOptionIndex(focusedOptionIndex, type);
|
|
1321
|
+
var visibleList = getVisibleList(type === 'source' ? props.source : props.target, type);
|
|
1322
|
+
changeFocusedOptionIndex(optionIndex, type);
|
|
1323
|
+
if (visibleList && visibleList.length > 0 && event.shiftKey) {
|
|
1324
|
+
_onItemClick({
|
|
1325
|
+
originalEvent: event,
|
|
1326
|
+
value: visibleList[optionIndex]
|
|
1327
|
+
}, type, true);
|
|
1328
|
+
}
|
|
1329
|
+
event.preventDefault();
|
|
1330
|
+
};
|
|
1331
|
+
var onEnterKey = function onEnterKey(event, type) {
|
|
1332
|
+
var listElement = getListElement(type);
|
|
1333
|
+
var visibleList = getVisibleList(type === 'source' ? props.source : props.target, type);
|
|
1334
|
+
var items = DomHandler.find(listElement, '[data-pc-section="item"]');
|
|
1335
|
+
var focusedItem = DomHandler.findSingle(listElement, "[data-pc-section=\"item\"][id=".concat(focusedOptionIndex, "]"));
|
|
1336
|
+
var id = focusedItem && focusedItem.getAttribute('id');
|
|
1337
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
1338
|
+
return item === focusedItem;
|
|
1339
|
+
});
|
|
1340
|
+
if (visibleList && visibleList.length > 0) {
|
|
1341
|
+
_onItemClick({
|
|
1342
|
+
originalEvent: event,
|
|
1343
|
+
value: visibleList[matchedOptionIndex],
|
|
1344
|
+
id: id
|
|
1345
|
+
}, type);
|
|
1346
|
+
}
|
|
1347
|
+
event.preventDefault();
|
|
1348
|
+
};
|
|
1349
|
+
var onSpaceKey = function onSpaceKey(event, type) {
|
|
1350
|
+
event.preventDefault();
|
|
1351
|
+
var isSource = type === 'source';
|
|
1352
|
+
var selection = isSource ? sourceSelectionState : targetSelectionState;
|
|
1353
|
+
if (event.shiftKey && selection && selection.length > 0) {
|
|
1354
|
+
var listItems = isSource ? sourceList : targetList;
|
|
1355
|
+
var listElement = getListElement(type);
|
|
1356
|
+
var items = DomHandler.find(listElement, '[data-pc-section="item"]');
|
|
1357
|
+
var selectedItemIndex = ObjectUtils.findIndexInList(selection[0], _toConsumableArray(listItems));
|
|
1358
|
+
var focusedItem = DomHandler.findSingle(listElement, "[data-pc-section=\"item\"][id=".concat(focusedOptionIndex, "]"));
|
|
1359
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
1360
|
+
return item === focusedItem;
|
|
1361
|
+
});
|
|
1362
|
+
_toConsumableArray(listItems).slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1), _readOnlyError("selection");
|
|
1363
|
+
if (isSource) {
|
|
1364
|
+
_onSelectionChange({
|
|
1365
|
+
originalEvent: event,
|
|
1366
|
+
value: selection
|
|
1367
|
+
}, 'sourceSelection', props.onSourceSelectionChange);
|
|
1368
|
+
} else {
|
|
1369
|
+
_onSelectionChange({
|
|
1370
|
+
originalEvent: event,
|
|
1371
|
+
value: selection
|
|
1372
|
+
}, 'targetSelection', props.onTargetSelectionChange);
|
|
1373
|
+
}
|
|
1374
|
+
} else {
|
|
1375
|
+
onEnterKey(event, type);
|
|
1376
|
+
}
|
|
1377
|
+
};
|
|
1378
|
+
var onHomeKey = function onHomeKey(event, type) {
|
|
1379
|
+
if (event.ctrlKey && event.shiftKey) {
|
|
1380
|
+
var isSource = type === 'source';
|
|
1381
|
+
var listItems = isSource ? sourceList : targetList;
|
|
1382
|
+
var listElement = getListElement(type);
|
|
1383
|
+
var items = DomHandler.find(listElement, '[data-pc-section="item"]');
|
|
1384
|
+
var focusedItem = DomHandler.findSingle(listElement, "[data-pc-section=\"item\"][id=".concat(focusedOptionIndex, "]"));
|
|
1385
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
1386
|
+
return item === focusedItem;
|
|
1387
|
+
});
|
|
1388
|
+
var selection = _toConsumableArray(listItems).slice(0, matchedOptionIndex + 1);
|
|
1389
|
+
if (isSource) {
|
|
1390
|
+
_onSelectionChange({
|
|
1391
|
+
originalEvent: event,
|
|
1392
|
+
value: selection
|
|
1393
|
+
}, 'sourceSelection', props.onSourceSelectionChange);
|
|
1394
|
+
} else {
|
|
1395
|
+
_onSelectionChange({
|
|
1396
|
+
originalEvent: event,
|
|
1397
|
+
value: selection
|
|
1398
|
+
}, 'targetSelection', props.onTargetSelectionChange);
|
|
1399
|
+
}
|
|
1400
|
+
} else {
|
|
1401
|
+
changeFocusedOptionIndex(0, type);
|
|
1402
|
+
}
|
|
1403
|
+
event.preventDefault();
|
|
1404
|
+
};
|
|
1405
|
+
var onEndKey = function onEndKey(event, type) {
|
|
1406
|
+
var listElement = getListElement(type);
|
|
1407
|
+
var items = DomHandler.find(listElement, '[data-pc-section="item"]');
|
|
1408
|
+
if (event.ctrlKey && event.shiftKey) {
|
|
1409
|
+
var isSource = type === 'source';
|
|
1410
|
+
var listItems = isSource ? sourceList : targetList;
|
|
1411
|
+
var focusedItem = DomHandler.findSingle(listElement, "[data-pc-section=\"item\"][id=".concat(focusedOptionIndex, "]"));
|
|
1412
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
1413
|
+
return item === focusedItem;
|
|
1414
|
+
});
|
|
1415
|
+
var selection = _toConsumableArray(listItems).slice(matchedOptionIndex, items.length);
|
|
1416
|
+
if (isSource) {
|
|
1417
|
+
_onSelectionChange({
|
|
1418
|
+
originalEvent: event,
|
|
1419
|
+
value: selection
|
|
1420
|
+
}, 'sourceSelection', props.onSourceSelectionChange);
|
|
1421
|
+
} else {
|
|
1422
|
+
_onSelectionChange({
|
|
1423
|
+
originalEvent: event,
|
|
1424
|
+
value: selection
|
|
1425
|
+
}, 'targetSelection', props.onTargetSelectionChange);
|
|
1426
|
+
}
|
|
1427
|
+
} else {
|
|
1428
|
+
changeFocusedOptionIndex(items.length - 1, type);
|
|
1429
|
+
}
|
|
1430
|
+
event.preventDefault();
|
|
1431
|
+
};
|
|
1432
|
+
var findNextOptionIndex = function findNextOptionIndex(index, type) {
|
|
1433
|
+
var listElement = getListElement(type);
|
|
1434
|
+
var items = DomHandler.find(listElement, '[data-pc-section="item"]');
|
|
1435
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
|
|
1436
|
+
return link.id === index;
|
|
1437
|
+
});
|
|
1438
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
|
|
1439
|
+
};
|
|
1440
|
+
var findPrevOptionIndex = function findPrevOptionIndex(index, type) {
|
|
1441
|
+
var listElement = getListElement(type);
|
|
1442
|
+
var items = DomHandler.find(listElement, '[data-pc-section="item"]');
|
|
1443
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
|
|
1444
|
+
return link.id === index;
|
|
1445
|
+
});
|
|
1446
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
|
|
1447
|
+
};
|
|
1448
|
+
var changeFocusedOptionIndex = function changeFocusedOptionIndex(index, type) {
|
|
1449
|
+
var listElement = getListElement(type);
|
|
1450
|
+
var items = DomHandler.find(listElement, '[data-pc-section="item"]');
|
|
1451
|
+
var order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
|
|
1452
|
+
setFocusedOptionIndex(items[order].getAttribute('id'));
|
|
1453
|
+
scrollInViewWithFocus(items[order].getAttribute('id'), type);
|
|
1454
|
+
};
|
|
1455
|
+
var scrollInViewWithFocus = function scrollInViewWithFocus(id, type) {
|
|
1456
|
+
var listElement = getListElement(type);
|
|
1457
|
+
var element = DomHandler.findSingle(listElement, "[data-pc-section=\"item\"][id=\"".concat(id, "\"]"));
|
|
1458
|
+
if (element) {
|
|
1459
|
+
element.scrollIntoView && element.scrollIntoView({
|
|
1460
|
+
block: 'nearest',
|
|
1461
|
+
inline: 'start'
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
};
|
|
1465
|
+
var getListElement = function getListElement(type) {
|
|
1466
|
+
return type === 'source' ? sourceListElementRef.current.getElement() : targetListElementRef.current.getElement();
|
|
1467
|
+
};
|
|
973
1468
|
var createStyle = function createStyle() {
|
|
974
1469
|
if (!styleElementRef.current) {
|
|
975
|
-
styleElementRef.current = DomHandler.createInlineStyle(context && context.nonce || PrimeReact.nonce);
|
|
1470
|
+
styleElementRef.current = DomHandler.createInlineStyle(context && context.nonce || PrimeReact$1.nonce, context && context.styleContainer);
|
|
976
1471
|
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");
|
|
977
1472
|
styleElementRef.current.innerHTML = innerHTML;
|
|
978
1473
|
}
|
|
@@ -988,9 +1483,6 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
988
1483
|
}
|
|
989
1484
|
};
|
|
990
1485
|
});
|
|
991
|
-
useMountEffect(function () {
|
|
992
|
-
!attributeSelectorState && setAttributeSelectorState(UniqueComponentId());
|
|
993
|
-
});
|
|
994
1486
|
useUpdateEffect(function () {
|
|
995
1487
|
if (attributeSelectorState) {
|
|
996
1488
|
elementRef.current.setAttribute(attributeSelectorState, '');
|
|
@@ -1001,18 +1493,23 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
1001
1493
|
};
|
|
1002
1494
|
}, [attributeSelectorState, props.breakpoint]);
|
|
1003
1495
|
useUpdateEffect(function () {
|
|
1496
|
+
if (!props.id && !attributeSelectorState) {
|
|
1497
|
+
setAttributeSelectorState(UniqueComponentId());
|
|
1498
|
+
}
|
|
1004
1499
|
if (reorderedListElementRef.current) {
|
|
1005
1500
|
handleScrollPosition(reorderedListElementRef.current, reorderDirection.current);
|
|
1006
1501
|
reorderedListElementRef.current = null;
|
|
1007
1502
|
reorderDirection.current = null;
|
|
1008
1503
|
}
|
|
1009
1504
|
});
|
|
1505
|
+
useUpdateEffect(function () {
|
|
1506
|
+
var _focusedOptionId = focusedOptionIndex !== -1 ? focusedOptionIndex : null;
|
|
1507
|
+
setFocusedOptionId(_focusedOptionId);
|
|
1508
|
+
}, [focusedOptionIndex]);
|
|
1010
1509
|
var sourceItemTemplate = props.sourceItemTemplate ? props.sourceItemTemplate : props.itemTemplate;
|
|
1011
1510
|
var targetItemTemplate = props.targetItemTemplate ? props.targetItemTemplate : props.itemTemplate;
|
|
1012
|
-
var sourceList = getVisibleList(props.source, 'source');
|
|
1013
|
-
var targetList = getVisibleList(props.target, 'target');
|
|
1014
1511
|
var rootProps = mergeProps({
|
|
1015
|
-
id:
|
|
1512
|
+
id: attributeSelectorState,
|
|
1016
1513
|
ref: elementRef,
|
|
1017
1514
|
className: classNames(props.className, cx('root')),
|
|
1018
1515
|
style: props.style
|
|
@@ -1037,10 +1534,28 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
1037
1534
|
ref: sourceListElementRef,
|
|
1038
1535
|
type: "source",
|
|
1039
1536
|
list: sourceList,
|
|
1537
|
+
parentId: attributeSelectorState,
|
|
1040
1538
|
selection: sourceSelection,
|
|
1041
1539
|
onSelectionChange: function onSelectionChange(e) {
|
|
1042
1540
|
return _onSelectionChange(e, 'sourceSelection', props.onSourceSelectionChange);
|
|
1043
1541
|
},
|
|
1542
|
+
onListKeyDown: function onListKeyDown(e) {
|
|
1543
|
+
return _onListKeyDown(e, 'source');
|
|
1544
|
+
},
|
|
1545
|
+
onListFocus: function onListFocus(e) {
|
|
1546
|
+
return _onListFocus(e, 'source');
|
|
1547
|
+
},
|
|
1548
|
+
onListBlur: function onListBlur(e) {
|
|
1549
|
+
return _onListBlur(e, 'source');
|
|
1550
|
+
},
|
|
1551
|
+
onOptionMouseDown: function onOptionMouseDown(index) {
|
|
1552
|
+
return _onOptionMouseDown(index);
|
|
1553
|
+
},
|
|
1554
|
+
onItemClick: function onItemClick(e) {
|
|
1555
|
+
return _onItemClick(e, 'source');
|
|
1556
|
+
},
|
|
1557
|
+
focusedOptionId: focused['source'] ? focusedOptionId : null,
|
|
1558
|
+
ariaActivedescendant: focused['source'] ? focusedOptionId : null,
|
|
1044
1559
|
itemTemplate: sourceItemTemplate,
|
|
1045
1560
|
header: props.sourceHeader,
|
|
1046
1561
|
style: props.sourceStyle,
|
|
@@ -1082,9 +1597,27 @@ var PickList = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
1082
1597
|
type: "target",
|
|
1083
1598
|
list: targetList,
|
|
1084
1599
|
selection: targetSelection,
|
|
1600
|
+
parentId: attributeSelectorState,
|
|
1085
1601
|
onSelectionChange: function onSelectionChange(e) {
|
|
1086
1602
|
return _onSelectionChange(e, 'targetSelection', props.onTargetSelectionChange);
|
|
1087
1603
|
},
|
|
1604
|
+
onListKeyDown: function onListKeyDown(e) {
|
|
1605
|
+
return _onListKeyDown(e, 'target');
|
|
1606
|
+
},
|
|
1607
|
+
onListFocus: function onListFocus(e) {
|
|
1608
|
+
return _onListFocus(e, 'target');
|
|
1609
|
+
},
|
|
1610
|
+
onListBlur: function onListBlur(e) {
|
|
1611
|
+
return _onListBlur(e, 'target');
|
|
1612
|
+
},
|
|
1613
|
+
onOptionMouseDown: function onOptionMouseDown(index) {
|
|
1614
|
+
return _onOptionMouseDown(index);
|
|
1615
|
+
},
|
|
1616
|
+
onItemClick: function onItemClick(e) {
|
|
1617
|
+
return _onItemClick(e, 'target');
|
|
1618
|
+
},
|
|
1619
|
+
focusedOptionId: focused['target'] ? focusedOptionId : null,
|
|
1620
|
+
ariaActivedescendant: focused['target'] ? focusedOptionId : null,
|
|
1088
1621
|
itemTemplate: targetItemTemplate,
|
|
1089
1622
|
header: props.targetHeader,
|
|
1090
1623
|
style: props.targetStyle,
|