primereact 10.8.4 → 10.8.5
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 +43 -55
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +43 -55
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +43 -55
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +61 -75
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +61 -75
- package/api/api.esm.min.js +1 -1
- package/api/api.js +61 -75
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +72 -71
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +72 -71
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +72 -71
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +37 -49
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +37 -49
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +37 -49
- package/avatar/avatar.min.js +1 -1
- package/badge/badge.cjs.js +17 -23
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +17 -23
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +17 -23
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +37 -49
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +37 -49
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +37 -49
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +37 -49
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +37 -49
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +37 -49
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +23 -34
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +23 -34
- package/button/button.esm.min.js +1 -1
- package/button/button.js +23 -34
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +48 -60
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +48 -60
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +48 -60
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +43 -55
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +43 -55
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +43 -55
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +40 -52
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +40 -52
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +40 -52
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/checkbox.cjs.js +37 -49
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +37 -49
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +37 -49
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +37 -49
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +37 -49
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +37 -49
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +46 -56
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +46 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +46 -56
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +37 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +37 -49
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +37 -49
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +33 -40
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +33 -40
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +33 -40
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +37 -49
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +37 -49
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +37 -49
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +37 -49
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +37 -49
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +37 -49
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +37 -49
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +37 -49
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +37 -49
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1008 -1436
- package/core/core.min.js +67 -67
- package/csstransition/csstransition.cjs.js +17 -23
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +17 -23
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +17 -23
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +26 -32
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +26 -32
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +26 -32
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +94 -113
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +94 -113
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +94 -113
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +46 -58
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +46 -58
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +46 -58
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +14 -15
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +14 -15
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +14 -15
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +44 -56
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +44 -56
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +44 -56
- package/dialog/dialog.min.js +1 -1
- package/dock/dock.cjs.js +43 -55
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +43 -55
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +43 -55
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +46 -58
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +46 -58
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +46 -58
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +37 -49
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +37 -49
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +37 -49
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +20 -26
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +20 -26
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +20 -26
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +48 -60
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +48 -60
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +48 -60
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +17 -23
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +17 -23
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +17 -23
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +43 -55
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +43 -55
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +43 -55
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +37 -44
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +37 -44
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +37 -44
- package/hooks/hooks.min.js +1 -1
- package/iconfield/iconfield.cjs.js +23 -34
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +23 -34
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +23 -34
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +6 -11
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +6 -11
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +6 -11
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +6 -11
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +6 -11
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +6 -11
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +6 -11
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +6 -11
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +6 -11
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +6 -11
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +6 -11
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +6 -11
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +6 -11
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +6 -11
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +6 -11
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +6 -11
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +6 -11
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +6 -11
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +6 -11
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +6 -11
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +6 -11
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +6 -11
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +6 -11
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +6 -11
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +6 -11
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +6 -11
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -11
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +6 -11
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +6 -11
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -11
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +6 -11
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +6 -11
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -11
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +6 -11
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +6 -11
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +6 -11
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +6 -11
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +6 -11
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +6 -11
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +6 -11
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +6 -11
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +6 -11
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +6 -11
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +6 -11
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +6 -11
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +6 -11
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +6 -11
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +6 -11
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +6 -11
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +6 -11
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +6 -11
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +6 -11
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +6 -11
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +6 -11
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +6 -11
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +6 -11
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +6 -11
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +6 -11
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +6 -11
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +6 -11
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +6 -11
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +6 -11
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +6 -11
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +6 -11
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +6 -11
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +6 -11
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +6 -11
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -11
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +6 -11
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +6 -11
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -11
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +6 -11
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +6 -11
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -11
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +6 -11
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +6 -11
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -11
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +6 -11
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +6 -11
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +6 -11
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +6 -11
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +6 -11
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -11
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +6 -11
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +6 -11
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -11
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +6 -11
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +6 -11
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -11
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +6 -11
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +6 -11
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -11
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +6 -11
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +6 -11
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -11
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +6 -11
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +6 -11
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -11
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +6 -11
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -11
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +6 -11
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +6 -11
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +6 -11
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +6 -11
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +6 -11
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +6 -11
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -11
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +6 -11
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +6 -11
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -11
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +6 -11
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +6 -11
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -11
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +6 -11
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +6 -11
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -11
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +6 -11
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +6 -11
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +6 -11
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +6 -11
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +6 -11
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -11
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +6 -11
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +6 -11
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -11
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +6 -11
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +6 -11
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -11
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +6 -11
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +6 -11
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -11
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +6 -11
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +6 -11
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -11
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +6 -11
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +6 -11
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -11
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +37 -49
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +37 -49
- package/image/image.esm.min.js +1 -1
- package/image/image.js +37 -49
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +14 -15
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +14 -15
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +14 -15
- package/inplace/inplace.min.js +1 -1
- package/inputicon/inputicon.cjs.js +23 -34
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +23 -34
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +23 -34
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +8 -12
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +8 -12
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +8 -12
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +46 -55
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +47 -56
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +46 -55
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +43 -55
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +43 -55
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +43 -55
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +23 -34
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +23 -34
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +23 -34
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +30 -34
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +30 -34
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +30 -34
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +25 -35
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +25 -35
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -35
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +16 -17
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +16 -17
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +16 -17
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +14 -15
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +14 -15
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +14 -15
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +46 -58
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +46 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +46 -58
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +39 -51
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +39 -51
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +39 -51
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +46 -56
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +46 -56
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +46 -56
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +43 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +43 -55
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +43 -55
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +37 -49
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +37 -49
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +37 -49
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +23 -34
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +23 -34
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -34
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +44 -57
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +45 -58
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +44 -57
- package/messages/messages.min.js +1 -1
- package/metergroup/metergroup.cjs.js +23 -34
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +23 -34
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +23 -34
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +138 -155
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +138 -155
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +138 -155
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +37 -49
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +37 -49
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +37 -49
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +43 -55
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +43 -55
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +43 -55
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +45 -61
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +45 -61
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +45 -61
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +37 -49
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +37 -49
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +37 -49
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +41 -56
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +41 -56
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +41 -56
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +20 -26
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +20 -26
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +20 -26
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +37 -49
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +37 -49
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +37 -49
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +17 -23
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +17 -23
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +17 -23
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +14 -15
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +14 -15
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +14 -15
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +37 -49
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +37 -49
- package/password/password.esm.min.js +1 -1
- package/password/password.js +37 -49
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +49 -64
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +49 -64
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +49 -64
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +14 -15
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +14 -15
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +14 -15
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +324 -320
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +324 -320
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +324 -320
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +23 -34
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +23 -34
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +23 -34
- package/progressbar/progressbar.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +23 -34
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +23 -34
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +23 -34
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +37 -49
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +37 -49
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +37 -49
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +4 -1
- package/resources/themes/arya-green/theme.css +4 -1
- package/resources/themes/arya-orange/theme.css +4 -1
- package/resources/themes/arya-purple/theme.css +4 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +4 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +4 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +4 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +4 -1
- package/resources/themes/fluent-light/theme.css +4 -1
- package/resources/themes/lara-dark-amber/theme.css +2 -1
- package/resources/themes/lara-dark-blue/theme.css +2 -1
- package/resources/themes/lara-dark-cyan/theme.css +2 -1
- package/resources/themes/lara-dark-green/theme.css +2 -1
- package/resources/themes/lara-dark-indigo/theme.css +2 -1
- package/resources/themes/lara-dark-pink/theme.css +2 -1
- package/resources/themes/lara-dark-purple/theme.css +2 -1
- package/resources/themes/lara-dark-teal/theme.css +2 -1
- package/resources/themes/lara-light-amber/theme.css +2 -1
- package/resources/themes/lara-light-blue/theme.css +2 -1
- package/resources/themes/lara-light-cyan/theme.css +2 -1
- package/resources/themes/lara-light-green/theme.css +2 -1
- package/resources/themes/lara-light-indigo/theme.css +2 -1
- package/resources/themes/lara-light-pink/theme.css +2 -1
- package/resources/themes/lara-light-purple/theme.css +2 -1
- package/resources/themes/lara-light-teal/theme.css +2 -1
- package/resources/themes/luna-amber/theme.css +4 -1
- package/resources/themes/luna-blue/theme.css +4 -1
- package/resources/themes/luna-green/theme.css +4 -1
- package/resources/themes/luna-pink/theme.css +4 -1
- package/resources/themes/md-dark-deeppurple/theme.css +3 -1
- package/resources/themes/md-dark-indigo/theme.css +3 -1
- package/resources/themes/md-light-deeppurple/theme.css +3 -1
- package/resources/themes/md-light-indigo/theme.css +3 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-dark-indigo/theme.css +3 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-light-indigo/theme.css +3 -1
- package/resources/themes/mira/theme.css +2 -1
- package/resources/themes/nano/theme.css +4 -1
- package/resources/themes/nova/theme.css +4 -1
- package/resources/themes/nova-accent/theme.css +4 -1
- package/resources/themes/nova-alt/theme.css +4 -1
- package/resources/themes/rhea/theme.css +4 -1
- package/resources/themes/saga-blue/theme.css +4 -1
- package/resources/themes/saga-green/theme.css +4 -1
- package/resources/themes/saga-orange/theme.css +4 -1
- package/resources/themes/saga-purple/theme.css +4 -1
- package/resources/themes/soho-dark/theme.css +1 -0
- package/resources/themes/soho-light/theme.css +1 -0
- package/resources/themes/tailwind-light/theme.css +2 -1
- package/resources/themes/vela-blue/theme.css +4 -1
- package/resources/themes/vela-green/theme.css +4 -1
- package/resources/themes/vela-orange/theme.css +4 -1
- package/resources/themes/vela-purple/theme.css +4 -1
- package/resources/themes/viva-dark/theme.css +1 -0
- package/resources/themes/viva-light/theme.css +1 -0
- package/ripple/ripple.cjs.js +37 -49
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +37 -49
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +37 -49
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +20 -26
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +20 -26
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +20 -26
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +37 -49
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +37 -49
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +37 -49
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +26 -32
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +26 -32
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +26 -32
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +38 -50
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +38 -50
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +38 -50
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +17 -23
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +17 -23
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +17 -23
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +37 -49
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +37 -49
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +37 -49
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +43 -55
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +43 -55
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +43 -55
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +43 -55
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +43 -55
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -55
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +37 -49
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -2
- package/splitbutton/splitbutton.esm.js +37 -49
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +37 -49
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +43 -55
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +43 -55
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +43 -55
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.js +37 -49
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +37 -49
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +37 -49
- package/stepper/stepper.min.js +1 -1
- package/steps/steps.cjs.js +37 -49
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +37 -49
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +37 -49
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +14 -15
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +14 -15
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +14 -15
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +37 -49
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +37 -49
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +37 -49
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +37 -44
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +37 -44
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +37 -44
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +17 -23
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +17 -23
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +17 -23
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +20 -21
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +20 -21
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +20 -21
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +37 -49
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +37 -49
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +37 -49
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +23 -34
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +23 -34
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +23 -34
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +53 -73
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +53 -73
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +53 -73
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +24 -35
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +24 -35
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +24 -35
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/tooltip.cjs.js +43 -55
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +43 -55
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +43 -55
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +50 -62
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +50 -62
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +50 -62
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +48 -59
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +48 -59
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +48 -59
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +61 -70
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +61 -70
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +61 -70
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +37 -49
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +37 -49
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +37 -49
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +59 -79
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +59 -79
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +59 -79
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +37 -49
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +37 -49
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +37 -49
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +3 -3
package/dropdown/dropdown.cjs.js
CHANGED
|
@@ -46,18 +46,13 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
46
46
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
47
47
|
|
|
48
48
|
function _extends() {
|
|
49
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
50
|
-
for (var
|
|
51
|
-
var
|
|
52
|
-
for (var
|
|
53
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
54
|
-
target[key] = source[key];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
49
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
50
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
51
|
+
var t = arguments[e];
|
|
52
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
57
53
|
}
|
|
58
|
-
return
|
|
59
|
-
};
|
|
60
|
-
return _extends.apply(this, arguments);
|
|
54
|
+
return n;
|
|
55
|
+
}, _extends.apply(null, arguments);
|
|
61
56
|
}
|
|
62
57
|
|
|
63
58
|
function _typeof(o) {
|
|
@@ -70,39 +65,33 @@ function _typeof(o) {
|
|
|
70
65
|
}, _typeof(o);
|
|
71
66
|
}
|
|
72
67
|
|
|
73
|
-
function
|
|
74
|
-
if (
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
77
|
-
var
|
|
78
|
-
if (
|
|
68
|
+
function toPrimitive(t, r) {
|
|
69
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
70
|
+
var e = t[Symbol.toPrimitive];
|
|
71
|
+
if (void 0 !== e) {
|
|
72
|
+
var i = e.call(t, r || "default");
|
|
73
|
+
if ("object" != _typeof(i)) return i;
|
|
79
74
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
80
75
|
}
|
|
81
|
-
return (
|
|
76
|
+
return ("string" === r ? String : Number)(t);
|
|
82
77
|
}
|
|
83
78
|
|
|
84
|
-
function
|
|
85
|
-
var
|
|
86
|
-
return _typeof(
|
|
79
|
+
function toPropertyKey(t) {
|
|
80
|
+
var i = toPrimitive(t, "string");
|
|
81
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
87
82
|
}
|
|
88
83
|
|
|
89
|
-
function _defineProperty(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
writable: true
|
|
97
|
-
});
|
|
98
|
-
} else {
|
|
99
|
-
obj[key] = value;
|
|
100
|
-
}
|
|
101
|
-
return obj;
|
|
84
|
+
function _defineProperty(e, r, t) {
|
|
85
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
86
|
+
value: t,
|
|
87
|
+
enumerable: !0,
|
|
88
|
+
configurable: !0,
|
|
89
|
+
writable: !0
|
|
90
|
+
}) : e[r] = t, e;
|
|
102
91
|
}
|
|
103
92
|
|
|
104
|
-
function _arrayWithHoles(
|
|
105
|
-
if (Array.isArray(
|
|
93
|
+
function _arrayWithHoles(r) {
|
|
94
|
+
if (Array.isArray(r)) return r;
|
|
106
95
|
}
|
|
107
96
|
|
|
108
97
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -133,27 +122,26 @@ function _iterableToArrayLimit(r, l) {
|
|
|
133
122
|
}
|
|
134
123
|
}
|
|
135
124
|
|
|
136
|
-
function _arrayLikeToArray$1(
|
|
137
|
-
|
|
138
|
-
for (var
|
|
139
|
-
return
|
|
125
|
+
function _arrayLikeToArray$1(r, a) {
|
|
126
|
+
(null == a || a > r.length) && (a = r.length);
|
|
127
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
128
|
+
return n;
|
|
140
129
|
}
|
|
141
130
|
|
|
142
|
-
function _unsupportedIterableToArray$1(
|
|
143
|
-
if (
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
131
|
+
function _unsupportedIterableToArray$1(r, a) {
|
|
132
|
+
if (r) {
|
|
133
|
+
if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
|
|
134
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
135
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
|
|
136
|
+
}
|
|
149
137
|
}
|
|
150
138
|
|
|
151
139
|
function _nonIterableRest() {
|
|
152
140
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
153
141
|
}
|
|
154
142
|
|
|
155
|
-
function _slicedToArray(
|
|
156
|
-
return _arrayWithHoles(
|
|
143
|
+
function _slicedToArray(r, e) {
|
|
144
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
157
145
|
}
|
|
158
146
|
|
|
159
147
|
function ownKeys$2(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; }
|
|
@@ -392,7 +380,6 @@ var DropdownItem = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
392
380
|
var itemProps = mergeProps({
|
|
393
381
|
id: "dropdownItem_".concat(index),
|
|
394
382
|
role: 'option',
|
|
395
|
-
key: props.label,
|
|
396
383
|
className: utils.classNames(option.className, cx('item', {
|
|
397
384
|
selected: selected,
|
|
398
385
|
disabled: disabled,
|
|
@@ -435,7 +422,9 @@ var DropdownItem = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
435
422
|
}, getPTOptions('blankIcon'));
|
|
436
423
|
return /*#__PURE__*/React__namespace.createElement(BlankIcon, blankIconProps);
|
|
437
424
|
};
|
|
438
|
-
return /*#__PURE__*/React__namespace.createElement("li",
|
|
425
|
+
return /*#__PURE__*/React__namespace.createElement("li", _extends({
|
|
426
|
+
key: props.label
|
|
427
|
+
}, itemProps), checkmark && iconRenderer(), /*#__PURE__*/React__namespace.createElement("span", itemGroupLabelProps, content), /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
439
428
|
});
|
|
440
429
|
DropdownItem.displayName = 'DropdownItem';
|
|
441
430
|
|
|
@@ -722,9 +711,9 @@ var DropdownPanel = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__names
|
|
|
722
711
|
}));
|
|
723
712
|
DropdownPanel.displayName = 'DropdownPanel';
|
|
724
713
|
|
|
725
|
-
function _createForOfIteratorHelper(
|
|
726
|
-
function _unsupportedIterableToArray(
|
|
727
|
-
function _arrayLikeToArray(
|
|
714
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
715
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
716
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
728
717
|
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; }
|
|
729
718
|
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; }
|
|
730
719
|
var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
@@ -847,7 +836,6 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
847
836
|
if (props.disabled || props.loading) {
|
|
848
837
|
return;
|
|
849
838
|
}
|
|
850
|
-
event.stopPropagation();
|
|
851
839
|
props.onClick && props.onClick(event);
|
|
852
840
|
|
|
853
841
|
// do not continue if the user defined click wants to prevent it
|
|
@@ -860,6 +848,7 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
860
848
|
utils.DomHandler.focus(focusInputRef.current);
|
|
861
849
|
overlayVisibleState ? hide() : show();
|
|
862
850
|
}
|
|
851
|
+
event.preventDefault();
|
|
863
852
|
clickedRef.current = true;
|
|
864
853
|
};
|
|
865
854
|
var onInputFocus = function onInputFocus(event) {
|
|
@@ -894,10 +883,9 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
894
883
|
};
|
|
895
884
|
var onOptionSelect = function onOptionSelect(event, option) {
|
|
896
885
|
var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
897
|
-
var value = getOptionValue(option);
|
|
898
886
|
selectItem({
|
|
899
887
|
originalEvent: event,
|
|
900
|
-
option:
|
|
888
|
+
option: option
|
|
901
889
|
});
|
|
902
890
|
isHide && hide();
|
|
903
891
|
};
|
|
@@ -1296,7 +1284,7 @@ var Dropdown = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
1296
1284
|
};
|
|
1297
1285
|
var getSelectedOptionIndex = function getSelectedOptionIndex(options) {
|
|
1298
1286
|
options = options || visibleOptions;
|
|
1299
|
-
if (
|
|
1287
|
+
if (options) {
|
|
1300
1288
|
if (props.optionGroupLabel) {
|
|
1301
1289
|
for (var i = 0; i < options.length; i++) {
|
|
1302
1290
|
var selectedOptionIndex = findOptionIndexInList(props.value, getOptionGroupChildren(options[i]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/componentbase"),r=require("primereact/hooks"),o=require("primereact/icons/chevrondown"),l=require("primereact/icons/chevronup"),i=require("primereact/icons/spinner"),a=require("primereact/icons/times"),c=require("primereact/overlayservice"),u=require("primereact/tooltip"),s=require("primereact/utils"),p=require("primereact/csstransition"),d=require("primereact/icons/search"),f=require("primereact/portal"),m=require("primereact/virtualscroller"),v=require("primereact/ripple"),b=require("primereact/icons/check"),g=require("primereact/iconbase");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function y(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var w=y(e),O=h(t);function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function x(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function S(e){var t=x(e,"string");return"symbol"===E(t)?t:String(t)}function D(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){if(Array.isArray(e))return e}function F(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],c=!0,u=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function C(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(e,t){return j(e)||F(e,t)||k(e,t)||C()}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=n.ComponentBase.extend({defaultProps:{__TYPE:"Dropdown",__parentMetadata:null,appendTo:null,ariaLabel:null,ariaLabelledBy:null,autoFocus:!1,children:void 0,className:null,clearIcon:null,dataKey:null,disabled:!1,dropdownIcon:null,collapseIcon:null,editable:!1,emptyFilterMessage:null,highlightOnSelect:!0,checkmark:!1,emptyMessage:null,filter:!1,filterBy:null,filterClearIcon:null,filterIcon:null,filterInputAutoFocus:!1,filterLocale:void 0,filterMatchMode:"contains",filterPlaceholder:null,filterTemplate:null,focusInputRef:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,itemTemplate:null,loading:!1,loadingIcon:null,maxLength:null,name:null,onBlur:null,onChange:null,onContextMenu:null,onFilter:null,onFocus:null,onHide:null,onMouseDown:null,onShow:null,optionDisabled:null,optionGroupChildren:"items",selectOnFocus:!1,focusOnHover:!0,autoOptionFocus:!1,optionGroupLabel:null,optionGroupTemplate:null,optionLabel:null,optionValue:null,options:null,panelClassName:null,panelFooterTemplate:null,panelStyle:null,placeholder:null,required:!1,resetFilterOnHide:!1,scrollHeight:"200px",showClear:!1,showFilterClear:!1,showOnFocus:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,value:null,valueTemplate:null,virtualScrollerOptions:null},css:{classes:{root:function(e){var t=e.props,n=e.focusedState,r=e.overlayVisibleState,o=e.context;return s.classNames("p-dropdown p-component p-inputwrapper",{"p-disabled":t.disabled,"p-invalid":t.invalid,"p-focus":n,"p-variant-filled":t.variant?"filled"===t.variant:o&&"filled"===o.inputStyle,"p-dropdown-clearable":t.showClear&&!t.disabled,"p-inputwrapper-filled":s.ObjectUtils.isNotEmpty(t.value),"p-inputwrapper-focus":n||r})},input:function(e){var t=e.props,n=e.label;return t.editable?"p-dropdown-label p-inputtext":s.classNames("p-dropdown-label p-inputtext",{"p-placeholder":null===n&&t.placeholder,"p-dropdown-label-empty":null===n&&!t.placeholder})},trigger:"p-dropdown-trigger",emptyMessage:"p-dropdown-empty-message",itemGroup:function(e){var t=e.optionGroupLabel;return s.classNames("p-dropdown-item-group",{"p-dropdown-item-empty":!t||0===t.length})},itemGroupLabel:"p-dropdown-item-group-label",dropdownIcon:"p-dropdown-trigger-icon p-clickable",loadingIcon:"p-dropdown-trigger-icon p-clickable",clearIcon:"p-dropdown-clear-icon p-clickable",filterIcon:"p-dropdown-filter-icon",filterClearIcon:"p-dropdown-filter-clear-icon",filterContainer:function(e){return s.classNames("p-dropdown-filter-container",{"p-dropdown-clearable-filter":!!e.clearIcon})},filterInput:function(e){var t=e.props,n=e.context;return s.classNames("p-dropdown-filter p-inputtext p-component",{"p-variant-filled":t.variant?"filled"===t.variant:n&&"filled"===n.inputStyle})},list:function(e){return"p-dropdown-items"},panel:function(e){var t=e.context;return s.classNames("p-dropdown-panel p-component",{"p-input-filled":t&&"filled"===t.inputStyle||"filled"===O.default.inputStyle,"p-ripple-disabled":t&&!1===t.ripple||!1===O.default.ripple})},item:function(e){var t=e.label;return s.classNames("p-dropdown-item",{"p-highlight":e.selected&&e.highlightOnSelect,"p-disabled":e.disabled,"p-focus":e.index===e.focusedOptionIndex,"p-dropdown-item-empty":!t||0===t.length})},itemLabel:"p-dropdown-item-label",checkIcon:"p-dropdown-check-icon",blankIcon:"p-dropdown-blank-icon",wrapper:"p-dropdown-items-wrapper",header:"p-dropdown-header",footer:"p-dropdown-footer",transition:"p-connected-overlay"},styles:"\n@layer primereact {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n \n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n \n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n \n .p-dropdown-label-empty {\n overflow: hidden;\n visibility: hidden;\n }\n \n input.p-dropdown-label {\n cursor: default;\n }\n \n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n \n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n \n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n \n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n \n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n \n .p-dropdown-filter {\n width: 100%;\n }\n \n .p-dropdown-filter-container {\n position: relative;\n }\n \n .p-dropdown-clear-icon,\n .p-dropdown-filter-icon,\n .p-dropdown-filter-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n right: 2rem;\n }\n \n .p-fluid .p-dropdown {\n display: flex;\n }\n \n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n",inlineStyles:{wrapper:function(e){return{maxHeight:e.props.scrollHeight||"auto"}},panel:function(e){return U({},e.props.panelStyle)}}}}),R=w.memo(w.forwardRef((function(e,t){var n=g.IconBase.getPTI(e);return w.createElement("svg",I({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),w.createElement("rect",{width:"1",height:"1",fill:"currentColor",fillOpacity:"0"}))})));R.displayName="BlankIcon";var M=w.memo((function(e){var t=r.useMergeProps(),n=e.ptm,o=e.cx,l=e.selected,i=e.disabled,a=e.option,c=e.label,u=e.index,p=e.focusedOptionIndex,d=e.ariaSetSize,f=e.checkmark,m=e.highlightOnSelect,g=e.onInputKeyDown,h=function(e){return n(e,{context:{selected:l,disabled:i,focused:u===p}})},y=e.template?s.ObjectUtils.getJSXElement(e.template,e.option):e.label,O=t({id:"dropdownItem_".concat(u),role:"option",key:e.label,className:s.classNames(a.className,o("item",{selected:l,disabled:i,label:c,index:u,focusedOptionIndex:p,highlightOnSelect:m})),style:e.style,tabIndex:0,onClick:function(t){return n=t,void(e.onClick&&e.onClick({originalEvent:n,option:a}));var n},onKeyDown:function(e){return g(e)},onMouseMove:function(t){return null==e?void 0:e.onMouseMove(t,u)},"aria-setsize":d,"aria-posinset":u+1,"aria-label":c,"aria-selected":l,"data-p-highlight":l,"data-p-focused":p===u,"data-p-disabled":i},h("item")),I=t({className:o("itemLabel")},h("itemLabel"));return w.createElement("li",O,f&&function(){if(l){var e=t({className:o("checkIcon")},h("checkIcon"));return w.createElement(b.CheckIcon,e)}var n=t({className:o("blankIcon")},h("blankIcon"));return w.createElement(R,n)}(),w.createElement("span",I,y),w.createElement(v.Ripple,null))}));function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}M.displayName="DropdownItem";var A=w.memo(w.forwardRef((function(e,n){var o,l,i,c,u,v=r.useMergeProps(),b=e.ptm,g=e.cx,h=e.sx,y=w.useContext(t.PrimeReactContext),O=w.useRef(null),E=!(e.visibleOptions&&e.visibleOptions.length)&&e.hasFilter,x=e.visibleOptions?e.visibleOptions.length:0,S={filter:function(e){return N(e)},reset:function(){return e.resetFilter()}},D=function(t,n){return b(t,G({hostName:e.hostName},n))},j=function(){e.onEnter((function(){if(e.virtualScrollerRef.current){var t=e.getSelectedOptionIndex();-1!==t&&setTimeout((function(){return e.virtualScrollerRef.current.scrollToIndex(t)}),0)}}))},F=function(){e.onEntered((function(){e.filter&&e.filterInputAutoFocus&&s.DomHandler.focus(O.current,!1)}))},N=function(t){e.onFilterInputChange&&e.onFilterInputChange(t)},k=function(){if(e.panelFooterTemplate){var t=s.ObjectUtils.getJSXElement(e.panelFooterTemplate,e,e.onOverlayHide),n=v({className:g("footer")},D("footer"));return w.createElement("div",n,t)}return null},C=function(t,n){var r;e.focusOnHover&&(null==e||null===(r=e.changeFocusedOptionIndex)||void 0===r||r.call(e,t,n))},P=function(n,r){var o=s.ObjectUtils.getJSXElement(n,e)||t.localeOption(r?"emptyFilterMessage":"emptyMessage"),l=v({className:g("emptyMessage")},D("emptyMessage"));return w.createElement("li",l,o)},L=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={height:r.props?r.props.itemSize:void 0};if(o=G(G({},o),t.style),t.group&&e.optionGroupLabel){var l=e.optionGroupLabel,i=e.optionGroupTemplate?s.ObjectUtils.getJSXElement(e.optionGroupTemplate,t,n):e.getOptionGroupLabel(t),a=n+"_"+e.getOptionGroupRenderKey(t),c=v({className:g("itemGroup",{optionGroupLabel:l}),style:o,"data-p-highlight":e.selected},D("itemGroup")),u=v({className:g("itemGroupLabel")},D("itemGroupLabel"));return w.createElement("li",I({key:a},c),w.createElement("span",u,i))}var p=e.getOptionRenderKey(t)+"_"+n,d=e.getOptionLabel(t),f=e.isOptionDisabled(t);return w.createElement(M,{key:p,label:d,index:n,focusedOptionIndex:e.focusedOptionIndex,option:t,ariaSetSize:x,onInputKeyDown:e.onInputKeyDown,style:o,template:e.itemTemplate,selected:e.isSelected(t),highlightOnSelect:e.highlightOnSelect,disabled:f,onClick:e.onOptionClick,onMouseMove:C,ptm:b,cx:g,checkmark:e.checkmark})},U=function(){if(e.showFilterClear&&e.filterValue){var n=t.localeOption("clear"),r=v({className:g("filterClearIcon"),"aria-label":n,onClick:function(){return e.onFilterClearIconClick((function(){return s.DomHandler.focus(O.current)}))}},D("filterClearIcon"));return s.IconUtils.getJSXIcon(e.filterClearIcon||w.createElement(a.TimesIcon,r),G({},r),{props:e})}return null},T=function(){if(e.filter){var t=U(),n=v({className:g("filterIcon")},D("filterIcon")),r=s.IconUtils.getJSXIcon(e.filterIcon||w.createElement(d.SearchIcon,n),G({},n),{props:e}),o=v({className:g("filterContainer",{clearIcon:t})},D("filterContainer")),l=v({ref:O,type:"text",autoComplete:"off",className:g("filterInput",{context:y}),placeholder:e.filterPlaceholder,onKeyDown:e.onFilterInputKeyDown,onChange:function(e){return N(e)},value:e.filterValue},D("filterInput")),i=w.createElement("div",o,w.createElement("input",l),t,r);if(e.filterTemplate){var a={className:s.classNames("p-dropdown-filter-container",{"p-dropdown-clearable-filter":!!t}),element:i,filterOptions:S,filterInputKeyDown:e.onFilterInputKeyDown,filterInputChange:N,filterIconClassName:"p-dropdown-filter-icon",clearIcon:t,props:e};i=s.ObjectUtils.getJSXElement(e.filterTemplate,a)}var c=v({className:g("header")},D("header"));return w.createElement("div",c,i)}return null},R=function(){if(e.virtualScrollerOptions){var t=G(G({},e.virtualScrollerOptions),{style:G(G({},e.virtualScrollerOptions.style),{height:e.scrollHeight}),className:s.classNames("p-dropdown-items-wrapper",e.virtualScrollerOptions.className),items:e.visibleOptions,autoSize:!0,onLazyLoad:function(t){return e.virtualScrollerOptions.onLazyLoad(G(G({},t),{filter:e.filterValue}))},itemTemplate:function(e,t){return e&&L(e,t.index,t)},contentTemplate:function(t){var n=E?P(e.hasFilter?e.emptyFilterMessage:e.emptyMessage):t.children,r=v({ref:t.contentRef,style:t.style,className:s.classNames(t.className,g("list",{virtualScrollerProps:e.virtualScrollerOptions})),role:"listbox"},D("list"));return w.createElement("ul",r,n)}});return w.createElement(m.VirtualScroller,I({ref:e.virtualScrollerRef},t,{pt:b("virtualScroller")}))}var n=s.ObjectUtils.isNotEmpty(e.visibleOptions)?e.visibleOptions.map(L):e.hasFilter?P(e.emptyFilterMessage,!0):P(e.emptyMessage),r=v({className:g("wrapper"),style:h("wrapper")},D("wrapper")),o=v({className:g("list"),role:"listbox"},D("list"));return w.createElement("div",r,w.createElement("ul",o,n))},H=(o=T(),l=R(),i=k(),c=v({className:s.classNames(e.panelClassName,g("panel",{context:y})),style:h("panel"),onClick:e.onClick},D("panel")),u=v({classNames:g("transition"),in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:j,onEntered:F,onExit:e.onExit,onExited:e.onExited},D("transition")),w.createElement(p.CSSTransition,I({nodeRef:n},u),w.createElement("div",I({ref:n},c),e.firstFocusableElement,o,l,i,e.lastFocusableElement)));return w.createElement(f.Portal,{element:H,appendTo:e.appendTo})})));function q(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=K(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,l=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw l}}}}function K(e,t){if(e){if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}A.displayName="DropdownPanel";var z=w.memo(w.forwardRef((function(e,p){var d=r.useMergeProps(),f=w.useContext(t.PrimeReactContext),m=T.getProps(e,f),v=P(w.useState(""),2),b=v[0],g=v[1],h=P(w.useState(!1),2),y=h[0],x=h[1],S=P(w.useState(-1),2),j=S[0],F=S[1],N=P(w.useState(!1),2),k=N[0],C=N[1],L=w.useRef(!1),U=w.useRef(null),R=w.useRef(null),M=w.useRef(null),H=w.useRef(null),G=w.useRef(m.inputRef),K=w.useRef(m.focusInputRef),V=w.useRef(null),_=w.useRef(null),z=w.useRef(null),J=m.virtualScrollerOptions&&m.virtualScrollerOptions.lazy,X=s.ObjectUtils.isNotEmpty(b),Z=m.appendTo||f&&f.appendTo||O.default.appendTo,W=T.setMetaData(B(B({props:m},m.__parentMetadata),{},{state:{filter:b,focused:y,overlayVisible:k}})),$=W.ptm,Y=W.cx,Q=W.sx;n.useHandleStyle(T.css.styles,W.isUnstyled,{name:"dropdown"});var ee=P(r.useOverlayListener({target:U,overlay:R,listener:function(e,t){t.valid&&("outside"===t.type?!oe(e)&&Ke():Ke())},when:k}),2),te=ee[0],ne=ee[1],re=function(e){return(e||[]).reduce((function(e,t,n){e.push(B(B({},t),{},{group:!0,index:n}));var r=We(t);return r&&r.forEach((function(t){return e.push(t)})),e}),[])},oe=function(e){return s.DomHandler.isAttributeEquals(e.target,"data-pc-section","clearicon")||s.DomHandler.isAttributeEquals(e.target.parentElement||e.target,"data-pc-section","filterclearicon")},le=function(e){m.showOnFocus&&!k&&qe(),x(!0),m.onFocus&&m.onFocus(e)},ie=function(e){x(!1),m.onBlur&&setTimeout((function(){var t=G.current?G.current.value:void 0;m.onBlur({originalEvent:e.originalEvent,value:t,stopPropagation:function(){e.originalEvent.stopPropagation()},preventDefault:function(){e.originalEvent.preventDefault()},target:{name:m.name,id:m.id,value:t}})}),200)},ae=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Je(t);Re({originalEvent:e,option:r}),n&&Ke()},ce=function(e){if(m.disabled)e.preventDefault();else{var t=e.metaKey||e.ctrlKey;switch(s.DomHandler.isAndroid()?e.key:e.code){case"ArrowDown":we(e);break;case"ArrowUp":Oe(e);break;case"ArrowLeft":case"ArrowRight":Ie(e,m.editable);break;case"Home":Ee(e);break;case"End":xe(e);break;case"PageDown":De(e);break;case"PageUp":Se(e);break;case"Space":je(e,m.editable);break;case"NumpadEnter":case"Enter":Fe(e);break;case"Escape":Ne(e);break;case"Tab":ke(e);break;case"Backspace":Ce(e,m.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t&&s.ObjectUtils.isPrintableCharacter(e.key)&&(!k&&!m.editable&&qe(),!m.editable&&ve(e,e.key))}L.current=!1}},ue=function(e){var t;return se(e)&&(null===(t=ze(e))||void 0===t?void 0:t.toLocaleLowerCase(m.filterLocale).startsWith(z.current.toLocaleLowerCase(m.filterLocale)))},se=function(e){return s.ObjectUtils.isNotEmpty(e)&&!(Ze(e)||Xe(e))},pe=function(){return s.ObjectUtils.isNotEmpty(m.value)},de=function(e){return se(e)&&Ae(e)},fe=function(){return pe?ot.findIndex((function(e){return de(e)})):-1},me=function(){var e=fe();return e<0?be():e},ve=function(e,t){z.current=(z.current||"")+t;var n=-1,r=!1;return s.ObjectUtils.isNotEmpty(z.current)&&(-1!==(n=-1!==j?-1===(n=ot.slice(j).findIndex((function(e){return ue(e)})))?ot.slice(0,j).findIndex((function(e){return ue(e)})):n+j:ot.findIndex((function(e){return ue(e)})))&&(r=!0),-1===n&&-1===j&&(n=me()),-1!==n&&he(e,n)),_.current&&clearTimeout(_.current),_.current=setTimeout((function(){z.current="",_.current=null}),500),r},be=function(){return ot.findIndex((function(e){return se(e)}))},ge=function(){return s.ObjectUtils.findLastIndex(ot,(function(e){return se(e)}))},he=function(e,t){j!==t&&(F(t),ye(t),m.selectOnFocus&&ae(e,ot[t],!1))},ye=function(e){var t=s.DomHandler.findSingle(R.current,'li[id="dropdownItem_'.concat(e,'"]'));t&&t.focus()},we=function(e){if(k){var t=-1!==j?(r=(n=j)<ot.length-1?ot.slice(n+1).findIndex((function(e){return se(e)})):-1)>-1?r+n+1:n:L.current?be():me();he(e,t)}else qe(),m.editable&&he(e,fe());var n,r;e.preventDefault()},Oe=function(e){var t,n,r;if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==j&&ae(e,ot[j]),state.overlayVisible&&Ke(),e.preventDefault();else{var o=-1!==j?(r=(n=j)>0?s.ObjectUtils.findLastIndex(ot.slice(0,n),(function(e){return se(e)})):-1)>-1?r:n:L.current?ge():(t=fe())<0?ge():t;he(e,o),!k&&qe(),e.preventDefault()}},Ie=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&F(-1)},Ee=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(e.currentTarget.setSelectionRange(0,0),F(-1)):(he(e,be()),!k&&qe()),e.preventDefault()},xe=function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget,n=t.value.length;t.setSelectionRange(n,n),F(-1)}else he(e,ge()),!k&&qe();e.preventDefault()},Se=function(e){e.preventDefault()},De=function(e){e.preventDefault()},je=function(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&Fe(e)},Fe=function(e){k?(-1!==j&&ae(e,ot[j]),Ke()):(F(-1),we(e)),e.preventDefault()},Ne=function(e){k&&Ke(),e.preventDefault()},ke=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(!k||s.DomHandler.getFocusableElements(R.current,':not([data-p-hidden-focusable="true"])').length>0?(-1!==j&&ae(e,ot[j]),k&&Ke()):(s.DomHandler.focus(M.current),e.preventDefault()))},Ce=function(e){e&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&!k&&qe()},Pe=function(e){!k&&qe();var t=null;e.target.value&&ot&&(t=ot.findIndex((function(t){return ze(t).toLocaleLowerCase().startsWith(e.target.value.toLocaleLowerCase())}))),F(t),m.onChange&&m.onChange({originalEvent:e.originalEvent,value:e.target.value,stopPropagation:function(){e.originalEvent.stopPropagation()},preventDefault:function(){e.originalEvent.preventDefault()},target:{name:m.name,id:m.id,value:e.target.value}})},Le=function(e){x(!0),Ke(),m.onFocus&&m.onFocus(e)},Ue=function(e){g(""),m.onFilter&&m.onFilter({filter:""}),e&&e()},Te=function(e){m.onChange&&m.onChange({originalEvent:e,value:void 0,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:m.name,id:m.id,value:void 0}}),m.filter&&Ue(),Be()},Re=function(e){if(lt!==e.option){Be(e.option),F(-1);var t=Je(e.option),n=Ge(e.option,ot);m.onChange&&m.onChange({originalEvent:e.originalEvent,value:t,stopPropagation:function(){e.originalEvent.stopPropagation()},preventDefault:function(){e.originalEvent.preventDefault()},target:{name:m.name,id:m.id,value:t}}),he(e.originalEvent,n)}},Me=function(e){if(e=e||ot,null!=m.value&&e){if(!m.optionGroupLabel)return Ge(m.value,e);for(var t=0;t<e.length;t++){var n=Ge(m.value,We(e[t]));if(-1!==n)return{group:t,option:n}}}return-1},He=function(){return m.optionValue?null:m.dataKey},Ge=function(e,t){var n=He();return t.findIndex((function(t){return s.ObjectUtils.equals(e,Je(t),n)}))},Ae=function(e){return s.ObjectUtils.equals(m.value,Je(e),He())},qe=function(){F(-1!==j?j:m.autoOptionFocus?me():m.editable?-1:fe()),C(!0)},Ke=function(){C(!1),L.current=!1},Ve=function(){s.DomHandler.alignOverlay(R.current,G.current.parentElement,m.appendTo||f&&f.appendTo||O.default.appendTo)},_e=function(){var e=s.DomHandler.findSingle(R.current,'li[data-p-focused="true"]');if(e&&e.scrollIntoView)e.scrollIntoView({block:"nearest",inline:"nearest"});else{var t=s.DomHandler.findSingle(R.current,'li[data-p-highlight="true"]');t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest",inline:"nearest"})}},Be=function(e){G.current&&(G.current.value=e?ze(e):m.value||"",K.current&&(K.current.value=G.current.value))},ze=function(e){if(s.ObjectUtils.isScalar(e))return"".concat(e);var t=m.optionLabel?s.ObjectUtils.resolveFieldData(e,m.optionLabel):e.label;return"".concat(t)},Je=function(e){if(m.useOptionAsValue)return e;var t=m.optionValue?s.ObjectUtils.resolveFieldData(e,m.optionValue):e?e.value:s.ObjectUtils.resolveFieldData(e,"value");return m.optionValue||s.ObjectUtils.isNotEmpty(t)?t:e},Xe=function(e){return m.optionGroupLabel&&e.group},Ze=function(e){return m.optionDisabled?s.ObjectUtils.isFunction(m.optionDisabled)?m.optionDisabled(e):s.ObjectUtils.resolveFieldData(e,m.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled},We=function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupChildren)},$e=function(){if(m.editable&&G.current){var e=(lt?ze(lt):null)||m.value||"";G.current.value=e,K.current&&(K.current.value=e)}};w.useImperativeHandle(p,(function(){return{props:m,show:qe,hide:Ke,clear:Te,focus:function(){return s.DomHandler.focus(K.current)},getElement:function(){return U.current},getOverlay:function(){return R.current},getInput:function(){return G.current},getFocusInput:function(){return K.current},getVirtualScroller:function(){return V.current}}})),w.useEffect((function(){s.ObjectUtils.combinedRefs(G,m.inputRef),s.ObjectUtils.combinedRefs(K,m.focusInputRef)}),[G,m.inputRef,K,m.focusInputRef]),r.useMountEffect((function(){m.autoFocus&&s.DomHandler.focus(K.current,m.autoFocus),Ve()})),r.useUpdateEffect((function(){k&&(m.value||j>=0)&&_e()}),[k,m.value,j]),r.useUpdateEffect((function(){k&&b&&m.filter&&Ve()}),[k,b,m.filter]),r.useUpdateEffect((function(){V.current&&V.current.scrollInView(0)}),[b]),r.useUpdateEffect((function(){!b||m.options&&0!==m.options.length||g(""),$e(),G.current&&(G.current.selectedIndex=1)})),r.useUnmountEffect((function(){s.ZIndexUtils.clear(R.current)}));var Ye,Qe,et,tt,nt,rt=function(e){"Enter"!==e.key&&"Space"!==e.code||(Te(e),e.preventDefault())},ot=function(){var e=m.optionGroupLabel?re(m.options):m.options;if(X&&!J){var n=b.trim().toLocaleLowerCase(m.filterLocale),r=m.filterBy?m.filterBy.split(","):[m.optionLabel||"label"];if(m.optionGroupLabel){var o,l=[],i=q(m.options);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=t.FilterService.filter(We(a),r,n,m.filterMatchMode,m.filterLocale);c&&c.length&&l.push(B(B({},a),D({},"".concat(m.optionGroupChildren),c)))}}catch(e){i.e(e)}finally{i.f()}return re(l)}return t.FilterService.filter(e,r,n,m.filterMatchMode,m.filterLocale)}return e}(),lt=-1!==(Ye=Me(m.options))?m.optionGroupLabel?We(m.options[Ye.group])[Ye.option]:m.options[Ye]:null,it=s.ObjectUtils.isNotEmpty(m.tooltip),at=T.getOtherProps(m),ct=s.ObjectUtils.reduceKeys(at,s.DomHandler.ARIA_PROPS),ut=function(){var e={value:"",label:m.placeholder};if(lt){var t=Je(lt);e={value:"object"===E(t)?m.options.findIndex((function(e){return e===t})):t,label:ze(lt)}}var n=d({className:"p-hidden-accessible p-dropdown-hidden-select"},$("hiddenSelectedMessage")),r=d({ref:G,required:m.required,defaultValue:e.value,name:m.name,tabIndex:-1,"aria-hidden":"true"},$("select")),o=d({value:e.value},$("option"));return w.createElement("div",n,w.createElement("select",r,w.createElement("option",o,e.label)))}(),st=function(){var e=s.ObjectUtils.isNotEmpty(lt)?ze(lt):null;m.editable&&(e=e||m.value||"");var t=d({className:"p-hidden-accessible"},$("hiddenSelectedMessage")),n=d(B({ref:K,id:m.inputId,defaultValue:e,type:"text",readOnly:!0,"aria-haspopup":"listbox",onFocus:le,onBlur:ie,onKeyDown:ce,disabled:m.disabled,tabIndex:m.disabled?-1:m.tabIndex||0},ct),$("input"));return w.createElement("div",t,w.createElement("input",n))}(),pt=function(){var e=s.ObjectUtils.isNotEmpty(lt)?ze(lt):null;if(m.editable){var t=d(B({ref:G,type:"text",defaultValue:e||m.value||"",className:Y("input",{label:e}),disabled:m.disabled,placeholder:m.placeholder,maxLength:m.maxLength,onInput:Pe,onFocus:Le,onKeyDown:ce,onBlur:ie,tabIndex:m.disabled?-1:m.tabIndex||0,"aria-haspopup":"listbox"},ct),$("input"));return w.createElement("input",t)}var n=m.valueTemplate?s.ObjectUtils.getJSXElement(m.valueTemplate,lt,m):e||m.placeholder||m.emptyMessage||w.createElement(w.Fragment,null," "),r=d({ref:G,className:Y("input",{label:e}),tabIndex:"-1"},$("input"));return w.createElement("span",r,n)}(),dt=m.loading?(Qe=d({className:Y("loadingIcon"),"data-pr-overlay-visible":k},$("loadingIcon")),et=s.IconUtils.getJSXIcon(m.loadingIcon||w.createElement(i.SpinnerIcon,{spin:!0}),B({},Qe),{props:m}),tt=m.placeholder||m.ariaLabel,nt=d({className:Y("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":tt},$("trigger")),w.createElement("div",nt,et)):function(){var e=d({className:Y("dropdownIcon"),"data-pr-overlay-visible":k},$("dropdownIcon")),t=s.IconUtils.getJSXIcon(k?m.collapseIcon||w.createElement(l.ChevronUpIcon,e):m.dropdownIcon||w.createElement(o.ChevronDownIcon,e),B({},e),{props:m}),n=m.placeholder||m.ariaLabel,r=d({className:Y("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":n},$("trigger"));return w.createElement("div",r,t)}(),ft=function(){if(null!=m.value&&m.showClear&&!m.disabled&&!s.ObjectUtils.isEmpty(m.options)){var e=d({className:Y("clearIcon"),onPointerUp:Te,tabIndex:m.tabIndex||"0",onKeyDown:rt,"aria-label":t.localeOption("clear")},$("clearIcon"));return s.IconUtils.getJSXIcon(m.clearIcon||w.createElement(a.TimesIcon,e),B({},e),{props:m})}return null}(),mt=d({id:m.id,ref:U,className:s.classNames(m.className,Y("root",{context:f,focusedState:y,overlayVisibleState:k})),style:m.style,onClick:function(e){return t=e,void(m.disabled||m.loading||(t.stopPropagation(),m.onClick&&m.onClick(t),t.defaultPrevented||oe(t)||"INPUT"===t.target.tagName||(R.current&&R.current&&R.current.contains(t.target)||(s.DomHandler.focus(K.current),k?Ke():qe()),L.current=!0)));var t},onMouseDown:m.onMouseDown,onContextMenu:m.onContextMenu,onFocus:function(){m.editable&&!k&&!1===L.current&&s.DomHandler.focus(G.current)},"data-p-disabled":m.disabled,"data-p-focus":y,"aria-activedescendant":y?"dropdownItem_".concat(j):void 0},at,$("root")),vt=d({ref:M,role:"presentation","aria-hidden":"true",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:function(e){var t=e.relatedTarget===K.current?s.DomHandler.getFirstFocusableElement(R.current,':not([data-p-hidden-focusable="true"])'):K.current;s.DomHandler.focus(t)},"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},$("hiddenFirstFocusableEl")),bt=d({ref:H,role:"presentation","aria-hidden":"true",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:function(e){var t=e.relatedTarget===K.current?s.DomHandler.getLastFocusableElement(R.current,':not([data-p-hidden-focusable="true"])'):K.current;s.DomHandler.focus(t)},"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},$("hiddenLastFocusableEl"));return w.createElement(w.Fragment,null,w.createElement("div",mt,st,ut,pt,ft,dt,w.createElement(A,I({hostName:"Dropdown",ref:R,visibleOptions:ot,virtualScrollerRef:V},m,{appendTo:Z,cx:Y,filterValue:b,focusedOptionIndex:j,getOptionGroupChildren:We,getOptionGroupLabel:function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupLabel)},getOptionGroupRenderKey:function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupLabel)},getOptionLabel:ze,getOptionRenderKey:function(e){return m.dataKey?s.ObjectUtils.resolveFieldData(e,m.dataKey):ze(e)},getSelectedOptionIndex:Me,hasFilter:X,in:k,isOptionDisabled:Ze,isSelected:Ae,onClick:function(e){c.OverlayService.emit("overlay-click",{originalEvent:e,target:U.current})},onEnter:function(e){s.ZIndexUtils.set("overlay",R.current,f&&f.autoZIndex||O.default.autoZIndex,f&&f.zIndex.overlay||O.default.zIndex.overlay),s.DomHandler.addStyles(R.current,{position:"absolute",top:"0",left:"0"}),Ve(),e&&e()},onEntered:function(e){e&&e(),te(),m.onShow&&m.onShow()},onExit:function(){ne()},onExited:function(){m.filter&&m.resetFilterOnHide&&Ue(),s.ZIndexUtils.clear(R.current),m.onHide&&m.onHide()},onFilterClearIconClick:function(e){Ue(e)},onFilterInputChange:function(e){var t=e.target.value;g(t),m.onFilter&&m.onFilter({originalEvent:e,filter:t})},onFilterInputKeyDown:function(e){switch(e.code){case"ArrowDown":we(e);break;case"ArrowUp":Oe(e);break;case"ArrowLeft":case"ArrowRight":Ie(e,!0);break;case"Escape":case"Enter":case"NumpadEnter":Fe(e),e.preventDefault()}},onOptionClick:function(e){e.option.disabled||(Re(e),s.DomHandler.focus(K.current)),Ke()},onInputKeyDown:ce,ptm:$,resetFilter:Ue,changeFocusedOptionIndex:he,firstFocusableElement:w.createElement("span",vt),lastFocusableElement:w.createElement("span",bt),sx:Q}))),it&&w.createElement(u.Tooltip,I({target:U,content:m.tooltip,pt:$("tooltip")},m.tooltipOptions)))})));z.displayName="Dropdown",exports.Dropdown=z;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/componentbase"),r=require("primereact/hooks"),o=require("primereact/icons/chevrondown"),l=require("primereact/icons/chevronup"),i=require("primereact/icons/spinner"),a=require("primereact/icons/times"),c=require("primereact/overlayservice"),u=require("primereact/tooltip"),s=require("primereact/utils"),p=require("primereact/csstransition"),d=require("primereact/icons/search"),f=require("primereact/portal"),m=require("primereact/virtualscroller"),v=require("primereact/ripple"),b=require("primereact/icons/check"),g=require("primereact/iconbase");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function y(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var w=y(e),O=h(t);function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(null,arguments)}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function x(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function S(e){var t=x(e,"string");return"symbol"==E(t)?t:t+""}function D(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){if(Array.isArray(e))return e}function F(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],c=!0,u=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function C(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(e,t){return j(e)||F(e,t)||k(e,t)||C()}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=n.ComponentBase.extend({defaultProps:{__TYPE:"Dropdown",__parentMetadata:null,appendTo:null,ariaLabel:null,ariaLabelledBy:null,autoFocus:!1,children:void 0,className:null,clearIcon:null,dataKey:null,disabled:!1,dropdownIcon:null,collapseIcon:null,editable:!1,emptyFilterMessage:null,highlightOnSelect:!0,checkmark:!1,emptyMessage:null,filter:!1,filterBy:null,filterClearIcon:null,filterIcon:null,filterInputAutoFocus:!1,filterLocale:void 0,filterMatchMode:"contains",filterPlaceholder:null,filterTemplate:null,focusInputRef:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,itemTemplate:null,loading:!1,loadingIcon:null,maxLength:null,name:null,onBlur:null,onChange:null,onContextMenu:null,onFilter:null,onFocus:null,onHide:null,onMouseDown:null,onShow:null,optionDisabled:null,optionGroupChildren:"items",selectOnFocus:!1,focusOnHover:!0,autoOptionFocus:!1,optionGroupLabel:null,optionGroupTemplate:null,optionLabel:null,optionValue:null,options:null,panelClassName:null,panelFooterTemplate:null,panelStyle:null,placeholder:null,required:!1,resetFilterOnHide:!1,scrollHeight:"200px",showClear:!1,showFilterClear:!1,showOnFocus:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,value:null,valueTemplate:null,virtualScrollerOptions:null},css:{classes:{root:function(e){var t=e.props,n=e.focusedState,r=e.overlayVisibleState,o=e.context;return s.classNames("p-dropdown p-component p-inputwrapper",{"p-disabled":t.disabled,"p-invalid":t.invalid,"p-focus":n,"p-variant-filled":t.variant?"filled"===t.variant:o&&"filled"===o.inputStyle,"p-dropdown-clearable":t.showClear&&!t.disabled,"p-inputwrapper-filled":s.ObjectUtils.isNotEmpty(t.value),"p-inputwrapper-focus":n||r})},input:function(e){var t=e.props,n=e.label;return t.editable?"p-dropdown-label p-inputtext":s.classNames("p-dropdown-label p-inputtext",{"p-placeholder":null===n&&t.placeholder,"p-dropdown-label-empty":null===n&&!t.placeholder})},trigger:"p-dropdown-trigger",emptyMessage:"p-dropdown-empty-message",itemGroup:function(e){var t=e.optionGroupLabel;return s.classNames("p-dropdown-item-group",{"p-dropdown-item-empty":!t||0===t.length})},itemGroupLabel:"p-dropdown-item-group-label",dropdownIcon:"p-dropdown-trigger-icon p-clickable",loadingIcon:"p-dropdown-trigger-icon p-clickable",clearIcon:"p-dropdown-clear-icon p-clickable",filterIcon:"p-dropdown-filter-icon",filterClearIcon:"p-dropdown-filter-clear-icon",filterContainer:function(e){return s.classNames("p-dropdown-filter-container",{"p-dropdown-clearable-filter":!!e.clearIcon})},filterInput:function(e){var t=e.props,n=e.context;return s.classNames("p-dropdown-filter p-inputtext p-component",{"p-variant-filled":t.variant?"filled"===t.variant:n&&"filled"===n.inputStyle})},list:function(e){return"p-dropdown-items"},panel:function(e){var t=e.context;return s.classNames("p-dropdown-panel p-component",{"p-input-filled":t&&"filled"===t.inputStyle||"filled"===O.default.inputStyle,"p-ripple-disabled":t&&!1===t.ripple||!1===O.default.ripple})},item:function(e){var t=e.label;return s.classNames("p-dropdown-item",{"p-highlight":e.selected&&e.highlightOnSelect,"p-disabled":e.disabled,"p-focus":e.index===e.focusedOptionIndex,"p-dropdown-item-empty":!t||0===t.length})},itemLabel:"p-dropdown-item-label",checkIcon:"p-dropdown-check-icon",blankIcon:"p-dropdown-blank-icon",wrapper:"p-dropdown-items-wrapper",header:"p-dropdown-header",footer:"p-dropdown-footer",transition:"p-connected-overlay"},styles:"\n@layer primereact {\n .p-dropdown {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n \n .p-dropdown-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n \n .p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n }\n \n .p-dropdown-label-empty {\n overflow: hidden;\n visibility: hidden;\n }\n \n input.p-dropdown-label {\n cursor: default;\n }\n \n .p-dropdown .p-dropdown-panel {\n min-width: 100%;\n }\n \n .p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n }\n \n .p-dropdown-items-wrapper {\n overflow: auto;\n }\n \n .p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n }\n \n .p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n \n .p-dropdown-filter {\n width: 100%;\n }\n \n .p-dropdown-filter-container {\n position: relative;\n }\n \n .p-dropdown-clear-icon,\n .p-dropdown-filter-icon,\n .p-dropdown-filter-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n right: 2rem;\n }\n \n .p-fluid .p-dropdown {\n display: flex;\n }\n \n .p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n }\n}\n",inlineStyles:{wrapper:function(e){return{maxHeight:e.props.scrollHeight||"auto"}},panel:function(e){return U({},e.props.panelStyle)}}}}),R=w.memo(w.forwardRef((function(e,t){var n=g.IconBase.getPTI(e);return w.createElement("svg",I({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),w.createElement("rect",{width:"1",height:"1",fill:"currentColor",fillOpacity:"0"}))})));R.displayName="BlankIcon";var M=w.memo((function(e){var t=r.useMergeProps(),n=e.ptm,o=e.cx,l=e.selected,i=e.disabled,a=e.option,c=e.label,u=e.index,p=e.focusedOptionIndex,d=e.ariaSetSize,f=e.checkmark,m=e.highlightOnSelect,g=e.onInputKeyDown,h=function(e){return n(e,{context:{selected:l,disabled:i,focused:u===p}})},y=e.template?s.ObjectUtils.getJSXElement(e.template,e.option):e.label,O=t({id:"dropdownItem_".concat(u),role:"option",className:s.classNames(a.className,o("item",{selected:l,disabled:i,label:c,index:u,focusedOptionIndex:p,highlightOnSelect:m})),style:e.style,tabIndex:0,onClick:function(t){return n=t,void(e.onClick&&e.onClick({originalEvent:n,option:a}));var n},onKeyDown:function(e){return g(e)},onMouseMove:function(t){return null==e?void 0:e.onMouseMove(t,u)},"aria-setsize":d,"aria-posinset":u+1,"aria-label":c,"aria-selected":l,"data-p-highlight":l,"data-p-focused":p===u,"data-p-disabled":i},h("item")),E=t({className:o("itemLabel")},h("itemLabel"));return w.createElement("li",I({key:e.label},O),f&&function(){if(l){var e=t({className:o("checkIcon")},h("checkIcon"));return w.createElement(b.CheckIcon,e)}var n=t({className:o("blankIcon")},h("blankIcon"));return w.createElement(R,n)}(),w.createElement("span",E,y),w.createElement(v.Ripple,null))}));function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}M.displayName="DropdownItem";var A=w.memo(w.forwardRef((function(e,n){var o,l,i,c,u,v=r.useMergeProps(),b=e.ptm,g=e.cx,h=e.sx,y=w.useContext(t.PrimeReactContext),O=w.useRef(null),E=!(e.visibleOptions&&e.visibleOptions.length)&&e.hasFilter,x=e.visibleOptions?e.visibleOptions.length:0,S={filter:function(e){return N(e)},reset:function(){return e.resetFilter()}},D=function(t,n){return b(t,G({hostName:e.hostName},n))},j=function(){e.onEnter((function(){if(e.virtualScrollerRef.current){var t=e.getSelectedOptionIndex();-1!==t&&setTimeout((function(){return e.virtualScrollerRef.current.scrollToIndex(t)}),0)}}))},F=function(){e.onEntered((function(){e.filter&&e.filterInputAutoFocus&&s.DomHandler.focus(O.current,!1)}))},N=function(t){e.onFilterInputChange&&e.onFilterInputChange(t)},k=function(){if(e.panelFooterTemplate){var t=s.ObjectUtils.getJSXElement(e.panelFooterTemplate,e,e.onOverlayHide),n=v({className:g("footer")},D("footer"));return w.createElement("div",n,t)}return null},C=function(t,n){var r;e.focusOnHover&&(null==e||null===(r=e.changeFocusedOptionIndex)||void 0===r||r.call(e,t,n))},P=function(n,r){var o=s.ObjectUtils.getJSXElement(n,e)||t.localeOption(r?"emptyFilterMessage":"emptyMessage"),l=v({className:g("emptyMessage")},D("emptyMessage"));return w.createElement("li",l,o)},L=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={height:r.props?r.props.itemSize:void 0};if(o=G(G({},o),t.style),t.group&&e.optionGroupLabel){var l=e.optionGroupLabel,i=e.optionGroupTemplate?s.ObjectUtils.getJSXElement(e.optionGroupTemplate,t,n):e.getOptionGroupLabel(t),a=n+"_"+e.getOptionGroupRenderKey(t),c=v({className:g("itemGroup",{optionGroupLabel:l}),style:o,"data-p-highlight":e.selected},D("itemGroup")),u=v({className:g("itemGroupLabel")},D("itemGroupLabel"));return w.createElement("li",I({key:a},c),w.createElement("span",u,i))}var p=e.getOptionRenderKey(t)+"_"+n,d=e.getOptionLabel(t),f=e.isOptionDisabled(t);return w.createElement(M,{key:p,label:d,index:n,focusedOptionIndex:e.focusedOptionIndex,option:t,ariaSetSize:x,onInputKeyDown:e.onInputKeyDown,style:o,template:e.itemTemplate,selected:e.isSelected(t),highlightOnSelect:e.highlightOnSelect,disabled:f,onClick:e.onOptionClick,onMouseMove:C,ptm:b,cx:g,checkmark:e.checkmark})},U=function(){if(e.showFilterClear&&e.filterValue){var n=t.localeOption("clear"),r=v({className:g("filterClearIcon"),"aria-label":n,onClick:function(){return e.onFilterClearIconClick((function(){return s.DomHandler.focus(O.current)}))}},D("filterClearIcon"));return s.IconUtils.getJSXIcon(e.filterClearIcon||w.createElement(a.TimesIcon,r),G({},r),{props:e})}return null},T=function(){if(e.filter){var t=U(),n=v({className:g("filterIcon")},D("filterIcon")),r=s.IconUtils.getJSXIcon(e.filterIcon||w.createElement(d.SearchIcon,n),G({},n),{props:e}),o=v({className:g("filterContainer",{clearIcon:t})},D("filterContainer")),l=v({ref:O,type:"text",autoComplete:"off",className:g("filterInput",{context:y}),placeholder:e.filterPlaceholder,onKeyDown:e.onFilterInputKeyDown,onChange:function(e){return N(e)},value:e.filterValue},D("filterInput")),i=w.createElement("div",o,w.createElement("input",l),t,r);if(e.filterTemplate){var a={className:s.classNames("p-dropdown-filter-container",{"p-dropdown-clearable-filter":!!t}),element:i,filterOptions:S,filterInputKeyDown:e.onFilterInputKeyDown,filterInputChange:N,filterIconClassName:"p-dropdown-filter-icon",clearIcon:t,props:e};i=s.ObjectUtils.getJSXElement(e.filterTemplate,a)}var c=v({className:g("header")},D("header"));return w.createElement("div",c,i)}return null},R=function(){if(e.virtualScrollerOptions){var t=G(G({},e.virtualScrollerOptions),{style:G(G({},e.virtualScrollerOptions.style),{height:e.scrollHeight}),className:s.classNames("p-dropdown-items-wrapper",e.virtualScrollerOptions.className),items:e.visibleOptions,autoSize:!0,onLazyLoad:function(t){return e.virtualScrollerOptions.onLazyLoad(G(G({},t),{filter:e.filterValue}))},itemTemplate:function(e,t){return e&&L(e,t.index,t)},contentTemplate:function(t){var n=E?P(e.hasFilter?e.emptyFilterMessage:e.emptyMessage):t.children,r=v({ref:t.contentRef,style:t.style,className:s.classNames(t.className,g("list",{virtualScrollerProps:e.virtualScrollerOptions})),role:"listbox"},D("list"));return w.createElement("ul",r,n)}});return w.createElement(m.VirtualScroller,I({ref:e.virtualScrollerRef},t,{pt:b("virtualScroller")}))}var n=s.ObjectUtils.isNotEmpty(e.visibleOptions)?e.visibleOptions.map(L):e.hasFilter?P(e.emptyFilterMessage,!0):P(e.emptyMessage),r=v({className:g("wrapper"),style:h("wrapper")},D("wrapper")),o=v({className:g("list"),role:"listbox"},D("list"));return w.createElement("div",r,w.createElement("ul",o,n))},H=(o=T(),l=R(),i=k(),c=v({className:s.classNames(e.panelClassName,g("panel",{context:y})),style:h("panel"),onClick:e.onClick},D("panel")),u=v({classNames:g("transition"),in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:j,onEntered:F,onExit:e.onExit,onExited:e.onExited},D("transition")),w.createElement(p.CSSTransition,I({nodeRef:n},u),w.createElement("div",I({ref:n},c),e.firstFocusableElement,o,l,i,e.lastFocusableElement)));return w.createElement(f.Portal,{element:H,appendTo:e.appendTo})})));function q(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=K(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,l=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw l}}}}function K(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}A.displayName="DropdownPanel";var z=w.memo(w.forwardRef((function(e,p){var d=r.useMergeProps(),f=w.useContext(t.PrimeReactContext),m=T.getProps(e,f),v=P(w.useState(""),2),b=v[0],g=v[1],h=P(w.useState(!1),2),y=h[0],x=h[1],S=P(w.useState(-1),2),j=S[0],F=S[1],N=P(w.useState(!1),2),k=N[0],C=N[1],L=w.useRef(!1),U=w.useRef(null),R=w.useRef(null),M=w.useRef(null),H=w.useRef(null),G=w.useRef(m.inputRef),K=w.useRef(m.focusInputRef),V=w.useRef(null),_=w.useRef(null),z=w.useRef(null),J=m.virtualScrollerOptions&&m.virtualScrollerOptions.lazy,X=s.ObjectUtils.isNotEmpty(b),Z=m.appendTo||f&&f.appendTo||O.default.appendTo,W=T.setMetaData(B(B({props:m},m.__parentMetadata),{},{state:{filter:b,focused:y,overlayVisible:k}})),$=W.ptm,Y=W.cx,Q=W.sx;n.useHandleStyle(T.css.styles,W.isUnstyled,{name:"dropdown"});var ee=P(r.useOverlayListener({target:U,overlay:R,listener:function(e,t){t.valid&&("outside"===t.type?!oe(e)&&Ke():Ke())},when:k}),2),te=ee[0],ne=ee[1],re=function(e){return(e||[]).reduce((function(e,t,n){e.push(B(B({},t),{},{group:!0,index:n}));var r=We(t);return r&&r.forEach((function(t){return e.push(t)})),e}),[])},oe=function(e){return s.DomHandler.isAttributeEquals(e.target,"data-pc-section","clearicon")||s.DomHandler.isAttributeEquals(e.target.parentElement||e.target,"data-pc-section","filterclearicon")},le=function(e){m.showOnFocus&&!k&&qe(),x(!0),m.onFocus&&m.onFocus(e)},ie=function(e){x(!1),m.onBlur&&setTimeout((function(){var t=G.current?G.current.value:void 0;m.onBlur({originalEvent:e.originalEvent,value:t,stopPropagation:function(){e.originalEvent.stopPropagation()},preventDefault:function(){e.originalEvent.preventDefault()},target:{name:m.name,id:m.id,value:t}})}),200)},ae=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Re({originalEvent:e,option:t}),n&&Ke()},ce=function(e){if(m.disabled)e.preventDefault();else{var t=e.metaKey||e.ctrlKey;switch(s.DomHandler.isAndroid()?e.key:e.code){case"ArrowDown":we(e);break;case"ArrowUp":Oe(e);break;case"ArrowLeft":case"ArrowRight":Ie(e,m.editable);break;case"Home":Ee(e);break;case"End":xe(e);break;case"PageDown":De(e);break;case"PageUp":Se(e);break;case"Space":je(e,m.editable);break;case"NumpadEnter":case"Enter":Fe(e);break;case"Escape":Ne(e);break;case"Tab":ke(e);break;case"Backspace":Ce(e,m.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t&&s.ObjectUtils.isPrintableCharacter(e.key)&&(!k&&!m.editable&&qe(),!m.editable&&ve(e,e.key))}L.current=!1}},ue=function(e){var t;return se(e)&&(null===(t=ze(e))||void 0===t?void 0:t.toLocaleLowerCase(m.filterLocale).startsWith(z.current.toLocaleLowerCase(m.filterLocale)))},se=function(e){return s.ObjectUtils.isNotEmpty(e)&&!(Ze(e)||Xe(e))},pe=function(){return s.ObjectUtils.isNotEmpty(m.value)},de=function(e){return se(e)&&Ae(e)},fe=function(){return pe?ot.findIndex((function(e){return de(e)})):-1},me=function(){var e=fe();return e<0?be():e},ve=function(e,t){z.current=(z.current||"")+t;var n=-1,r=!1;return s.ObjectUtils.isNotEmpty(z.current)&&(-1!==(n=-1!==j?-1===(n=ot.slice(j).findIndex((function(e){return ue(e)})))?ot.slice(0,j).findIndex((function(e){return ue(e)})):n+j:ot.findIndex((function(e){return ue(e)})))&&(r=!0),-1===n&&-1===j&&(n=me()),-1!==n&&he(e,n)),_.current&&clearTimeout(_.current),_.current=setTimeout((function(){z.current="",_.current=null}),500),r},be=function(){return ot.findIndex((function(e){return se(e)}))},ge=function(){return s.ObjectUtils.findLastIndex(ot,(function(e){return se(e)}))},he=function(e,t){j!==t&&(F(t),ye(t),m.selectOnFocus&&ae(e,ot[t],!1))},ye=function(e){var t=s.DomHandler.findSingle(R.current,'li[id="dropdownItem_'.concat(e,'"]'));t&&t.focus()},we=function(e){if(k){var t=-1!==j?(r=(n=j)<ot.length-1?ot.slice(n+1).findIndex((function(e){return se(e)})):-1)>-1?r+n+1:n:L.current?be():me();he(e,t)}else qe(),m.editable&&he(e,fe());var n,r;e.preventDefault()},Oe=function(e){var t,n,r;if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==j&&ae(e,ot[j]),state.overlayVisible&&Ke(),e.preventDefault();else{var o=-1!==j?(r=(n=j)>0?s.ObjectUtils.findLastIndex(ot.slice(0,n),(function(e){return se(e)})):-1)>-1?r:n:L.current?ge():(t=fe())<0?ge():t;he(e,o),!k&&qe(),e.preventDefault()}},Ie=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&F(-1)},Ee=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(e.currentTarget.setSelectionRange(0,0),F(-1)):(he(e,be()),!k&&qe()),e.preventDefault()},xe=function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget,n=t.value.length;t.setSelectionRange(n,n),F(-1)}else he(e,ge()),!k&&qe();e.preventDefault()},Se=function(e){e.preventDefault()},De=function(e){e.preventDefault()},je=function(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&Fe(e)},Fe=function(e){k?(-1!==j&&ae(e,ot[j]),Ke()):(F(-1),we(e)),e.preventDefault()},Ne=function(e){k&&Ke(),e.preventDefault()},ke=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(!k||s.DomHandler.getFocusableElements(R.current,':not([data-p-hidden-focusable="true"])').length>0?(-1!==j&&ae(e,ot[j]),k&&Ke()):(s.DomHandler.focus(M.current),e.preventDefault()))},Ce=function(e){e&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&!k&&qe()},Pe=function(e){!k&&qe();var t=null;e.target.value&&ot&&(t=ot.findIndex((function(t){return ze(t).toLocaleLowerCase().startsWith(e.target.value.toLocaleLowerCase())}))),F(t),m.onChange&&m.onChange({originalEvent:e.originalEvent,value:e.target.value,stopPropagation:function(){e.originalEvent.stopPropagation()},preventDefault:function(){e.originalEvent.preventDefault()},target:{name:m.name,id:m.id,value:e.target.value}})},Le=function(e){x(!0),Ke(),m.onFocus&&m.onFocus(e)},Ue=function(e){g(""),m.onFilter&&m.onFilter({filter:""}),e&&e()},Te=function(e){m.onChange&&m.onChange({originalEvent:e,value:void 0,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:m.name,id:m.id,value:void 0}}),m.filter&&Ue(),Be()},Re=function(e){if(lt!==e.option){Be(e.option),F(-1);var t=Je(e.option),n=Ge(e.option,ot);m.onChange&&m.onChange({originalEvent:e.originalEvent,value:t,stopPropagation:function(){e.originalEvent.stopPropagation()},preventDefault:function(){e.originalEvent.preventDefault()},target:{name:m.name,id:m.id,value:t}}),he(e.originalEvent,n)}},Me=function(e){if(e=e||ot){if(!m.optionGroupLabel)return Ge(m.value,e);for(var t=0;t<e.length;t++){var n=Ge(m.value,We(e[t]));if(-1!==n)return{group:t,option:n}}}return-1},He=function(){return m.optionValue?null:m.dataKey},Ge=function(e,t){var n=He();return t.findIndex((function(t){return s.ObjectUtils.equals(e,Je(t),n)}))},Ae=function(e){return s.ObjectUtils.equals(m.value,Je(e),He())},qe=function(){F(-1!==j?j:m.autoOptionFocus?me():m.editable?-1:fe()),C(!0)},Ke=function(){C(!1),L.current=!1},Ve=function(){s.DomHandler.alignOverlay(R.current,G.current.parentElement,m.appendTo||f&&f.appendTo||O.default.appendTo)},_e=function(){var e=s.DomHandler.findSingle(R.current,'li[data-p-focused="true"]');if(e&&e.scrollIntoView)e.scrollIntoView({block:"nearest",inline:"nearest"});else{var t=s.DomHandler.findSingle(R.current,'li[data-p-highlight="true"]');t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest",inline:"nearest"})}},Be=function(e){G.current&&(G.current.value=e?ze(e):m.value||"",K.current&&(K.current.value=G.current.value))},ze=function(e){if(s.ObjectUtils.isScalar(e))return"".concat(e);var t=m.optionLabel?s.ObjectUtils.resolveFieldData(e,m.optionLabel):e.label;return"".concat(t)},Je=function(e){if(m.useOptionAsValue)return e;var t=m.optionValue?s.ObjectUtils.resolveFieldData(e,m.optionValue):e?e.value:s.ObjectUtils.resolveFieldData(e,"value");return m.optionValue||s.ObjectUtils.isNotEmpty(t)?t:e},Xe=function(e){return m.optionGroupLabel&&e.group},Ze=function(e){return m.optionDisabled?s.ObjectUtils.isFunction(m.optionDisabled)?m.optionDisabled(e):s.ObjectUtils.resolveFieldData(e,m.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled},We=function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupChildren)},$e=function(){if(m.editable&&G.current){var e=(lt?ze(lt):null)||m.value||"";G.current.value=e,K.current&&(K.current.value=e)}};w.useImperativeHandle(p,(function(){return{props:m,show:qe,hide:Ke,clear:Te,focus:function(){return s.DomHandler.focus(K.current)},getElement:function(){return U.current},getOverlay:function(){return R.current},getInput:function(){return G.current},getFocusInput:function(){return K.current},getVirtualScroller:function(){return V.current}}})),w.useEffect((function(){s.ObjectUtils.combinedRefs(G,m.inputRef),s.ObjectUtils.combinedRefs(K,m.focusInputRef)}),[G,m.inputRef,K,m.focusInputRef]),r.useMountEffect((function(){m.autoFocus&&s.DomHandler.focus(K.current,m.autoFocus),Ve()})),r.useUpdateEffect((function(){k&&(m.value||j>=0)&&_e()}),[k,m.value,j]),r.useUpdateEffect((function(){k&&b&&m.filter&&Ve()}),[k,b,m.filter]),r.useUpdateEffect((function(){V.current&&V.current.scrollInView(0)}),[b]),r.useUpdateEffect((function(){!b||m.options&&0!==m.options.length||g(""),$e(),G.current&&(G.current.selectedIndex=1)})),r.useUnmountEffect((function(){s.ZIndexUtils.clear(R.current)}));var Ye,Qe,et,tt,nt,rt=function(e){"Enter"!==e.key&&"Space"!==e.code||(Te(e),e.preventDefault())},ot=function(){var e=m.optionGroupLabel?re(m.options):m.options;if(X&&!J){var n=b.trim().toLocaleLowerCase(m.filterLocale),r=m.filterBy?m.filterBy.split(","):[m.optionLabel||"label"];if(m.optionGroupLabel){var o,l=[],i=q(m.options);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=t.FilterService.filter(We(a),r,n,m.filterMatchMode,m.filterLocale);c&&c.length&&l.push(B(B({},a),D({},"".concat(m.optionGroupChildren),c)))}}catch(e){i.e(e)}finally{i.f()}return re(l)}return t.FilterService.filter(e,r,n,m.filterMatchMode,m.filterLocale)}return e}(),lt=-1!==(Ye=Me(m.options))?m.optionGroupLabel?We(m.options[Ye.group])[Ye.option]:m.options[Ye]:null,it=s.ObjectUtils.isNotEmpty(m.tooltip),at=T.getOtherProps(m),ct=s.ObjectUtils.reduceKeys(at,s.DomHandler.ARIA_PROPS),ut=function(){var e={value:"",label:m.placeholder};if(lt){var t=Je(lt);e={value:"object"===E(t)?m.options.findIndex((function(e){return e===t})):t,label:ze(lt)}}var n=d({className:"p-hidden-accessible p-dropdown-hidden-select"},$("hiddenSelectedMessage")),r=d({ref:G,required:m.required,defaultValue:e.value,name:m.name,tabIndex:-1,"aria-hidden":"true"},$("select")),o=d({value:e.value},$("option"));return w.createElement("div",n,w.createElement("select",r,w.createElement("option",o,e.label)))}(),st=function(){var e=s.ObjectUtils.isNotEmpty(lt)?ze(lt):null;m.editable&&(e=e||m.value||"");var t=d({className:"p-hidden-accessible"},$("hiddenSelectedMessage")),n=d(B({ref:K,id:m.inputId,defaultValue:e,type:"text",readOnly:!0,"aria-haspopup":"listbox",onFocus:le,onBlur:ie,onKeyDown:ce,disabled:m.disabled,tabIndex:m.disabled?-1:m.tabIndex||0},ct),$("input"));return w.createElement("div",t,w.createElement("input",n))}(),pt=function(){var e=s.ObjectUtils.isNotEmpty(lt)?ze(lt):null;if(m.editable){var t=d(B({ref:G,type:"text",defaultValue:e||m.value||"",className:Y("input",{label:e}),disabled:m.disabled,placeholder:m.placeholder,maxLength:m.maxLength,onInput:Pe,onFocus:Le,onKeyDown:ce,onBlur:ie,tabIndex:m.disabled?-1:m.tabIndex||0,"aria-haspopup":"listbox"},ct),$("input"));return w.createElement("input",t)}var n=m.valueTemplate?s.ObjectUtils.getJSXElement(m.valueTemplate,lt,m):e||m.placeholder||m.emptyMessage||w.createElement(w.Fragment,null," "),r=d({ref:G,className:Y("input",{label:e}),tabIndex:"-1"},$("input"));return w.createElement("span",r,n)}(),dt=m.loading?(Qe=d({className:Y("loadingIcon"),"data-pr-overlay-visible":k},$("loadingIcon")),et=s.IconUtils.getJSXIcon(m.loadingIcon||w.createElement(i.SpinnerIcon,{spin:!0}),B({},Qe),{props:m}),tt=m.placeholder||m.ariaLabel,nt=d({className:Y("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":tt},$("trigger")),w.createElement("div",nt,et)):function(){var e=d({className:Y("dropdownIcon"),"data-pr-overlay-visible":k},$("dropdownIcon")),t=s.IconUtils.getJSXIcon(k?m.collapseIcon||w.createElement(l.ChevronUpIcon,e):m.dropdownIcon||w.createElement(o.ChevronDownIcon,e),B({},e),{props:m}),n=m.placeholder||m.ariaLabel,r=d({className:Y("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":n},$("trigger"));return w.createElement("div",r,t)}(),ft=function(){if(null!=m.value&&m.showClear&&!m.disabled&&!s.ObjectUtils.isEmpty(m.options)){var e=d({className:Y("clearIcon"),onPointerUp:Te,tabIndex:m.tabIndex||"0",onKeyDown:rt,"aria-label":t.localeOption("clear")},$("clearIcon"));return s.IconUtils.getJSXIcon(m.clearIcon||w.createElement(a.TimesIcon,e),B({},e),{props:m})}return null}(),mt=d({id:m.id,ref:U,className:s.classNames(m.className,Y("root",{context:f,focusedState:y,overlayVisibleState:k})),style:m.style,onClick:function(e){return t=e,void(m.disabled||m.loading||(m.onClick&&m.onClick(t),t.defaultPrevented||oe(t)||"INPUT"===t.target.tagName||(R.current&&R.current&&R.current.contains(t.target)||(s.DomHandler.focus(K.current),k?Ke():qe()),t.preventDefault(),L.current=!0)));var t},onMouseDown:m.onMouseDown,onContextMenu:m.onContextMenu,onFocus:function(){m.editable&&!k&&!1===L.current&&s.DomHandler.focus(G.current)},"data-p-disabled":m.disabled,"data-p-focus":y,"aria-activedescendant":y?"dropdownItem_".concat(j):void 0},at,$("root")),vt=d({ref:M,role:"presentation","aria-hidden":"true",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:function(e){var t=e.relatedTarget===K.current?s.DomHandler.getFirstFocusableElement(R.current,':not([data-p-hidden-focusable="true"])'):K.current;s.DomHandler.focus(t)},"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},$("hiddenFirstFocusableEl")),bt=d({ref:H,role:"presentation","aria-hidden":"true",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:function(e){var t=e.relatedTarget===K.current?s.DomHandler.getLastFocusableElement(R.current,':not([data-p-hidden-focusable="true"])'):K.current;s.DomHandler.focus(t)},"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},$("hiddenLastFocusableEl"));return w.createElement(w.Fragment,null,w.createElement("div",mt,st,ut,pt,ft,dt,w.createElement(A,I({hostName:"Dropdown",ref:R,visibleOptions:ot,virtualScrollerRef:V},m,{appendTo:Z,cx:Y,filterValue:b,focusedOptionIndex:j,getOptionGroupChildren:We,getOptionGroupLabel:function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupLabel)},getOptionGroupRenderKey:function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupLabel)},getOptionLabel:ze,getOptionRenderKey:function(e){return m.dataKey?s.ObjectUtils.resolveFieldData(e,m.dataKey):ze(e)},getSelectedOptionIndex:Me,hasFilter:X,in:k,isOptionDisabled:Ze,isSelected:Ae,onClick:function(e){c.OverlayService.emit("overlay-click",{originalEvent:e,target:U.current})},onEnter:function(e){s.ZIndexUtils.set("overlay",R.current,f&&f.autoZIndex||O.default.autoZIndex,f&&f.zIndex.overlay||O.default.zIndex.overlay),s.DomHandler.addStyles(R.current,{position:"absolute",top:"0",left:"0"}),Ve(),e&&e()},onEntered:function(e){e&&e(),te(),m.onShow&&m.onShow()},onExit:function(){ne()},onExited:function(){m.filter&&m.resetFilterOnHide&&Ue(),s.ZIndexUtils.clear(R.current),m.onHide&&m.onHide()},onFilterClearIconClick:function(e){Ue(e)},onFilterInputChange:function(e){var t=e.target.value;g(t),m.onFilter&&m.onFilter({originalEvent:e,filter:t})},onFilterInputKeyDown:function(e){switch(e.code){case"ArrowDown":we(e);break;case"ArrowUp":Oe(e);break;case"ArrowLeft":case"ArrowRight":Ie(e,!0);break;case"Escape":case"Enter":case"NumpadEnter":Fe(e),e.preventDefault()}},onOptionClick:function(e){e.option.disabled||(Re(e),s.DomHandler.focus(K.current)),Ke()},onInputKeyDown:ce,ptm:$,resetFilter:Ue,changeFocusedOptionIndex:he,firstFocusableElement:w.createElement("span",vt),lastFocusableElement:w.createElement("span",bt),sx:Q}))),it&&w.createElement(u.Tooltip,I({target:U,content:m.tooltip,pt:$("tooltip")},m.tooltipOptions)))})));z.displayName="Dropdown",exports.Dropdown=z;
|
package/dropdown/dropdown.esm.js
CHANGED
|
@@ -19,18 +19,13 @@ import { CheckIcon } from 'primereact/icons/check';
|
|
|
19
19
|
import { IconBase } from 'primereact/iconbase';
|
|
20
20
|
|
|
21
21
|
function _extends() {
|
|
22
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
23
|
-
for (var
|
|
24
|
-
var
|
|
25
|
-
for (var
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
27
|
-
target[key] = source[key];
|
|
28
|
-
}
|
|
29
|
-
}
|
|
22
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
23
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
24
|
+
var t = arguments[e];
|
|
25
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
30
26
|
}
|
|
31
|
-
return
|
|
32
|
-
};
|
|
33
|
-
return _extends.apply(this, arguments);
|
|
27
|
+
return n;
|
|
28
|
+
}, _extends.apply(null, arguments);
|
|
34
29
|
}
|
|
35
30
|
|
|
36
31
|
function _typeof(o) {
|
|
@@ -43,39 +38,33 @@ function _typeof(o) {
|
|
|
43
38
|
}, _typeof(o);
|
|
44
39
|
}
|
|
45
40
|
|
|
46
|
-
function
|
|
47
|
-
if (
|
|
48
|
-
var
|
|
49
|
-
if (
|
|
50
|
-
var
|
|
51
|
-
if (
|
|
41
|
+
function toPrimitive(t, r) {
|
|
42
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
43
|
+
var e = t[Symbol.toPrimitive];
|
|
44
|
+
if (void 0 !== e) {
|
|
45
|
+
var i = e.call(t, r || "default");
|
|
46
|
+
if ("object" != _typeof(i)) return i;
|
|
52
47
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
53
48
|
}
|
|
54
|
-
return (
|
|
49
|
+
return ("string" === r ? String : Number)(t);
|
|
55
50
|
}
|
|
56
51
|
|
|
57
|
-
function
|
|
58
|
-
var
|
|
59
|
-
return _typeof(
|
|
52
|
+
function toPropertyKey(t) {
|
|
53
|
+
var i = toPrimitive(t, "string");
|
|
54
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
60
55
|
}
|
|
61
56
|
|
|
62
|
-
function _defineProperty(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
writable: true
|
|
70
|
-
});
|
|
71
|
-
} else {
|
|
72
|
-
obj[key] = value;
|
|
73
|
-
}
|
|
74
|
-
return obj;
|
|
57
|
+
function _defineProperty(e, r, t) {
|
|
58
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
59
|
+
value: t,
|
|
60
|
+
enumerable: !0,
|
|
61
|
+
configurable: !0,
|
|
62
|
+
writable: !0
|
|
63
|
+
}) : e[r] = t, e;
|
|
75
64
|
}
|
|
76
65
|
|
|
77
|
-
function _arrayWithHoles(
|
|
78
|
-
if (Array.isArray(
|
|
66
|
+
function _arrayWithHoles(r) {
|
|
67
|
+
if (Array.isArray(r)) return r;
|
|
79
68
|
}
|
|
80
69
|
|
|
81
70
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -106,27 +95,26 @@ function _iterableToArrayLimit(r, l) {
|
|
|
106
95
|
}
|
|
107
96
|
}
|
|
108
97
|
|
|
109
|
-
function _arrayLikeToArray$1(
|
|
110
|
-
|
|
111
|
-
for (var
|
|
112
|
-
return
|
|
98
|
+
function _arrayLikeToArray$1(r, a) {
|
|
99
|
+
(null == a || a > r.length) && (a = r.length);
|
|
100
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
101
|
+
return n;
|
|
113
102
|
}
|
|
114
103
|
|
|
115
|
-
function _unsupportedIterableToArray$1(
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
104
|
+
function _unsupportedIterableToArray$1(r, a) {
|
|
105
|
+
if (r) {
|
|
106
|
+
if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
|
|
107
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
108
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
|
|
109
|
+
}
|
|
122
110
|
}
|
|
123
111
|
|
|
124
112
|
function _nonIterableRest() {
|
|
125
113
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
126
114
|
}
|
|
127
115
|
|
|
128
|
-
function _slicedToArray(
|
|
129
|
-
return _arrayWithHoles(
|
|
116
|
+
function _slicedToArray(r, e) {
|
|
117
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
130
118
|
}
|
|
131
119
|
|
|
132
120
|
function ownKeys$2(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; }
|
|
@@ -365,7 +353,6 @@ var DropdownItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
365
353
|
var itemProps = mergeProps({
|
|
366
354
|
id: "dropdownItem_".concat(index),
|
|
367
355
|
role: 'option',
|
|
368
|
-
key: props.label,
|
|
369
356
|
className: classNames(option.className, cx('item', {
|
|
370
357
|
selected: selected,
|
|
371
358
|
disabled: disabled,
|
|
@@ -408,7 +395,9 @@ var DropdownItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
408
395
|
}, getPTOptions('blankIcon'));
|
|
409
396
|
return /*#__PURE__*/React.createElement(BlankIcon, blankIconProps);
|
|
410
397
|
};
|
|
411
|
-
return /*#__PURE__*/React.createElement("li",
|
|
398
|
+
return /*#__PURE__*/React.createElement("li", _extends({
|
|
399
|
+
key: props.label
|
|
400
|
+
}, itemProps), checkmark && iconRenderer(), /*#__PURE__*/React.createElement("span", itemGroupLabelProps, content), /*#__PURE__*/React.createElement(Ripple, null));
|
|
412
401
|
});
|
|
413
402
|
DropdownItem.displayName = 'DropdownItem';
|
|
414
403
|
|
|
@@ -695,9 +684,9 @@ var DropdownPanel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
695
684
|
}));
|
|
696
685
|
DropdownPanel.displayName = 'DropdownPanel';
|
|
697
686
|
|
|
698
|
-
function _createForOfIteratorHelper(
|
|
699
|
-
function _unsupportedIterableToArray(
|
|
700
|
-
function _arrayLikeToArray(
|
|
687
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
688
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
689
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
701
690
|
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; }
|
|
702
691
|
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; }
|
|
703
692
|
var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
@@ -820,7 +809,6 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
820
809
|
if (props.disabled || props.loading) {
|
|
821
810
|
return;
|
|
822
811
|
}
|
|
823
|
-
event.stopPropagation();
|
|
824
812
|
props.onClick && props.onClick(event);
|
|
825
813
|
|
|
826
814
|
// do not continue if the user defined click wants to prevent it
|
|
@@ -833,6 +821,7 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
833
821
|
DomHandler.focus(focusInputRef.current);
|
|
834
822
|
overlayVisibleState ? hide() : show();
|
|
835
823
|
}
|
|
824
|
+
event.preventDefault();
|
|
836
825
|
clickedRef.current = true;
|
|
837
826
|
};
|
|
838
827
|
var onInputFocus = function onInputFocus(event) {
|
|
@@ -867,10 +856,9 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
867
856
|
};
|
|
868
857
|
var onOptionSelect = function onOptionSelect(event, option) {
|
|
869
858
|
var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
870
|
-
var value = getOptionValue(option);
|
|
871
859
|
selectItem({
|
|
872
860
|
originalEvent: event,
|
|
873
|
-
option:
|
|
861
|
+
option: option
|
|
874
862
|
});
|
|
875
863
|
isHide && hide();
|
|
876
864
|
};
|
|
@@ -1269,7 +1257,7 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
1269
1257
|
};
|
|
1270
1258
|
var getSelectedOptionIndex = function getSelectedOptionIndex(options) {
|
|
1271
1259
|
options = options || visibleOptions;
|
|
1272
|
-
if (
|
|
1260
|
+
if (options) {
|
|
1273
1261
|
if (props.optionGroupLabel) {
|
|
1274
1262
|
for (var i = 0; i < options.length; i++) {
|
|
1275
1263
|
var selectedOptionIndex = findOptionIndexInList(props.value, getOptionGroupChildren(options[i]));
|