primereact 10.9.2 → 10.9.4
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.d.ts +2 -2
- 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 +46 -60
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +5 -1
- package/api/api.esm.js +46 -60
- package/api/api.esm.min.js +1 -1
- package/api/api.js +46 -60
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +64 -55
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +27 -25
- package/autocomplete/autocomplete.esm.js +64 -55
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +64 -55
- 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.d.ts +2 -2
- 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/avatargroup/avatargroup.d.ts +2 -2
- package/badge/badge.cjs.js +17 -23
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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/buttongroup/buttongroup.cjs.js +4 -1
- package/buttongroup/buttongroup.cjs.min.js +1 -1
- package/buttongroup/buttongroup.esm.js +4 -1
- package/buttongroup/buttongroup.esm.min.js +1 -1
- package/buttongroup/buttongroup.js +4 -1
- package/buttongroup/buttongroup.min.js +1 -1
- package/calendar/calendar.cjs.js +52 -59
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +7 -7
- package/calendar/calendar.esm.js +52 -59
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +52 -59
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +44 -56
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +2 -2
- package/carousel/carousel.esm.js +44 -56
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +44 -56
- 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.d.ts +8 -8
- 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/chart/chart.d.ts +2 -2
- package/checkbox/checkbox.cjs.js +37 -49
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +4 -4
- 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 +48 -51
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +15 -4
- package/chip/chip.esm.js +48 -51
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +48 -51
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +43 -55
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +2 -2
- package/chips/chips.esm.js +43 -55
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +43 -55
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +38 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +6 -6
- package/colorpicker/colorpicker.esm.js +38 -49
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +38 -49
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +47 -45
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +47 -45
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +47 -45
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +41 -52
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +41 -52
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +41 -52
- 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.d.ts +2 -2
- 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 +1050 -1445
- package/core/core.min.js +65 -65
- 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 +28 -32
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +2 -2
- package/datascroller/datascroller.esm.js +28 -32
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +28 -32
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +203 -171
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +6 -5
- package/datatable/datatable.esm.js +203 -171
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +203 -171
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +47 -59
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +2 -2
- package/dataview/dataview.esm.js +47 -59
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +47 -59
- 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.d.ts +2 -2
- 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 +43 -56
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +12 -12
- package/dialog/dialog.esm.js +43 -56
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +43 -56
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +2 -2
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.d.ts +2 -2
- package/divider/divider.esm.js +2 -2
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +2 -2
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +43 -55
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +2 -2
- 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 +52 -63
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +10 -10
- package/dropdown/dropdown.esm.js +53 -64
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +52 -63
- 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.d.ts +6 -6
- 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.d.ts +4 -4
- 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 +50 -61
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +8 -4
- package/fileupload/fileupload.esm.js +50 -61
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +50 -61
- 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 +44 -56
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +2 -2
- package/galleria/galleria.esm.js +44 -56
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +44 -56
- 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.d.ts +3 -2
- 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.d.ts +4 -4
- 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.d.ts +2 -2
- 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 +10 -13
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +2 -2
- package/inputmask/inputmask.esm.js +10 -13
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +10 -13
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +50 -56
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +50 -56
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +50 -56
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +64 -56
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +64 -56
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +64 -56
- 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.d.ts +4 -4
- 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 +25 -35
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +25 -35
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +25 -35
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +23 -34
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +23 -34
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +23 -34
- 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 +15 -16
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +2 -2
- package/knob/knob.esm.js +15 -16
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +15 -16
- 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.d.ts +4 -4
- 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 +41 -57
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +2 -2
- package/megamenu/megamenu.esm.js +41 -57
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +41 -57
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +43 -55
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +6 -6
- package/mention/mention.esm.js +43 -55
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +43 -55
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +52 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -2
- package/menu/menu.esm.js +52 -55
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +52 -55
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +39 -51
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +8 -8
- package/menubar/menubar.esm.js +39 -51
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +39 -51
- 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.d.ts +2 -2
- 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 +43 -55
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +2 -2
- package/messages/messages.esm.js +43 -55
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +43 -55
- 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 +67 -85
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +6 -6
- package/multiselect/multiselect.esm.js +67 -85
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +67 -85
- 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.d.ts +2 -2
- 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 +67 -78
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +2 -2
- package/orderlist/orderlist.esm.js +67 -78
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +67 -78
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +43 -55
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +2 -2
- package/organizationchart/organizationchart.esm.js +43 -55
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +43 -55
- 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.d.ts +2 -2
- 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/package.json +1 -1
- package/paginator/paginator.cjs.js +44 -58
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +2 -2
- package/paginator/paginator.esm.js +44 -58
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +44 -58
- 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.d.ts +4 -4
- 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.d.ts +2 -2
- 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.d.ts +6 -6
- 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 +53 -67
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +2 -2
- package/picklist/picklist.esm.js +53 -67
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +53 -67
- 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 +690 -565
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +690 -565
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +690 -565
- 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.d.ts +2 -2
- 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/progressspinner/progressspinner.d.ts +2 -2
- package/radiobutton/radiobutton.cjs.js +23 -34
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +4 -4
- 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.d.ts +2 -2
- 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/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.d.ts +8 -8
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +6 -6
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +3 -2
- 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 +44 -56
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +2 -2
- package/speeddial/speeddial.esm.js +44 -56
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +44 -56
- 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.d.ts +2 -2
- 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 +39 -50
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.d.ts +33 -14
- package/stepper/stepper.esm.js +39 -50
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +39 -50
- 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.d.ts +2 -2
- 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.d.ts +4 -4
- 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.d.ts +2 -2
- 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 +38 -45
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +2 -2
- package/tabview/tabview.esm.js +38 -45
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +38 -45
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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/tieredmenu/tieredmenu.cjs.js +37 -49
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +2 -2
- 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.d.ts +4 -4
- 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 +43 -55
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +2 -2
- package/toast/toast.esm.js +43 -55
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +43 -55
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +25 -36
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +2 -2
- package/togglebutton/togglebutton.esm.js +25 -36
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +25 -36
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.d.ts +2 -2
- package/tooltip/tooltip.cjs.js +51 -62
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +3 -3
- package/tooltip/tooltip.esm.js +51 -62
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +51 -62
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +55 -64
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +2 -2
- package/tree/tree.esm.js +55 -64
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +55 -64
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +48 -65
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +2 -2
- package/treeselect/treeselect.esm.js +48 -65
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +48 -65
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +97 -99
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +2 -2
- package/treetable/treetable.esm.js +97 -99
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +97 -99
- 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.d.ts +2 -2
- 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 +81 -80
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +81 -80
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +81 -80
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +39 -51
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +39 -51
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +39 -51
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +29 -11
|
@@ -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 C(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 k(){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 L(e,t){return j(e)||F(e,t)||C(e,t)||k()}function P(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?P(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(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,autoOptionFocus:!1,checkmark:!1,children:void 0,className:null,clearIcon:null,collapseIcon:null,dataKey:null,disabled:!1,dropdownIcon:null,editable:!1,emptyFilterMessage:null,emptyMessage:null,filter:!1,filterBy:null,filterClearIcon:null,filterDelay:300,filterIcon:null,filterInputAutoFocus:!1,filterLocale:void 0,filterMatchMode:"contains",filterPlaceholder:null,filterTemplate:null,focusInputRef:null,focusOnHover:!0,highlightOnSelect:!0,id:null,inputId:null,inputRef:null,invalid:!1,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",optionGroupLabel:null,optionGroupTemplate:null,optionLabel:null,options:null,optionValue:null,panelClassName:null,panelFooterTemplate:null,panelStyle:null,placeholder:null,required:!1,resetFilterOnHide:!1,scrollHeight:"200px",selectOnFocus:!1,showClear:!1,showFilterClear:!1,showOnFocus:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,useOptionAsValue:!1,value:null,valueTemplate:null,variant:null,virtualScrollerOptions:null},css:{classes:{root:function(e){var t=e.props,n=e.focusedState,r=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:r&&"filled"===r.inputStyle,"p-dropdown-clearable":t.showClear&&!t.disabled,"p-inputwrapper-filled":void 0!==t.value,"p-inputwrapper-focus":n||e.overlayVisibleState})},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 A(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 G=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,A({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)},C=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},k=function(t,n){var r;e.focusOnHover&&(null==e||null===(r=e.changeFocusedOptionIndex)||void 0===r||r.call(e,t,n))},L=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)},P=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=A(A({},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:k,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),A({},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),A({},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=A(A({},e.virtualScrollerOptions),{style:A(A({},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(A(A({},t),{filter:e.filterValue}))},itemTemplate:function(e,t){return e&&P(e,t.index,t)},contentTemplate:function(t){var n=E?L(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(P):e.hasFilter?L(e.emptyFilterMessage,!0):L(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=C(),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 K(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=q(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 q(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}G.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=L(r.useDebounce("",m.filterDelay||0),3),b=v[0],g=v[1],h=v[2],y=L(w.useState(!1),2),x=y[0],S=y[1],j=L(w.useState(-1),2),F=j[0],N=j[1],C=L(w.useState(!1),2),k=C[0],P=C[1],U=w.useRef(!1),R=w.useRef(null),M=w.useRef(null),H=w.useRef(null),A=w.useRef(null),q=w.useRef(m.inputRef),V=w.useRef(m.focusInputRef),_=w.useRef(null),z=w.useRef(null),J=w.useRef(null),X=m.virtualScrollerOptions&&m.virtualScrollerOptions.lazy,Z=s.ObjectUtils.isNotEmpty(g),W=m.appendTo||f&&f.appendTo||O.default.appendTo,$=T.setMetaData(B(B({props:m},m.__parentMetadata),{},{state:{filter:g,focused:x,overlayVisible:k}})),Y=$.ptm,Q=$.cx,ee=$.sx;n.useHandleStyle(T.css.styles,$.isUnstyled,{name:"dropdown"});var te=L(r.useOverlayListener({target:R,overlay:M,listener:function(e,t){t.valid&&("outside"===t.type?!le(e)&&_e():_e())},when:k}),2),ne=te[0],re=te[1],oe=function(e){return(e||[]).reduce((function(e,t,n){e.push(B(B({},t),{},{group:!0,index:n}));var r=Ye(t);return r&&r.forEach((function(t){return e.push(t)})),e}),[])},le=function(e){return s.DomHandler.isAttributeEquals(e.target,"data-pc-section","clearicon")||s.DomHandler.isAttributeEquals(e.target.parentElement||e.target,"data-pc-section","filterclearicon")},ie=function(e){m.showOnFocus&&!k&&Ve(),S(!0),m.onFocus&&m.onFocus(e)},ae=function(e){S(!1),m.onBlur&&setTimeout((function(){var t=q.current?q.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)},ce=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];He({originalEvent:e,option:t}),n&&_e()},ue=function(e){if(m.disabled)e.preventDefault();else{switch(s.DomHandler.isAndroid()?e.key:e.code){case"ArrowDown":Oe(e);break;case"ArrowUp":Ie(e);break;case"ArrowLeft":case"ArrowRight":Ee(e,m.editable);break;case"Home":xe(e);break;case"End":Se(e);break;case"PageDown":je(e);break;case"PageUp":De(e);break;case"Space":Fe(e,m.editable);break;case"NumpadEnter":case"Enter":Ne(e);break;case"Escape":Ce(e);break;case"Tab":ke(e);break;case"Backspace":Le(e,m.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!(e.metaKey||e.ctrlKey||e.altKey)&&s.ObjectUtils.isPrintableCharacter(e.key)&&(!k&&!m.editable&&Ve(),!m.editable&&be(e,e.key))}U.current=!1}},se=function(e){var t;return pe(e)&&(null===(t=Xe(e))||void 0===t?void 0:t.toLocaleLowerCase(m.filterLocale).startsWith(J.current.toLocaleLowerCase(m.filterLocale)))},pe=function(e){return s.ObjectUtils.isNotEmpty(e)&&!($e(e)||We(e))},de=function(){return s.ObjectUtils.isNotEmpty(m.value)},fe=function(e){return pe(e)&&qe(e)},me=function(){return de?it.findIndex((function(e){return fe(e)})):-1},ve=function(){var e=me();return e<0?ge():e},be=function(e,t){J.current=(J.current||"")+t;var n=-1,r=!1;return s.ObjectUtils.isNotEmpty(J.current)&&(-1!==(n=-1!==F?-1===(n=it.slice(F).findIndex((function(e){return se(e)})))?it.slice(0,F).findIndex((function(e){return se(e)})):n+F:it.findIndex((function(e){return se(e)})))&&(r=!0),-1===n&&-1===F&&(n=ve()),-1!==n&&ye(e,n)),z.current&&clearTimeout(z.current),z.current=setTimeout((function(){J.current="",z.current=null}),500),r},ge=function(){return it.findIndex((function(e){return pe(e)}))},he=function(){return s.ObjectUtils.findLastIndex(it,(function(e){return pe(e)}))},ye=function(e,t){F!==t&&(N(t),we(t),m.selectOnFocus&&ce(e,it[t],!1))},we=function(e){var t=s.DomHandler.findSingle(M.current,'li[id="dropdownItem_'.concat(e,'"]'));t&&t.focus()},Oe=function(e){if(k){var t=-1!==F?(r=(n=F)<it.length-1?it.slice(n+1).findIndex((function(e){return pe(e)})):-1)>-1?r+n+1:n:U.current?ge():ve();ye(e,t)}else Ve(),m.editable&&ye(e,me());var n,r;e.preventDefault()},Ie=function(e){var t,n,r;if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==F&&ce(e,it[F]),state.overlayVisible&&_e(),e.preventDefault();else{var o=-1!==F?(r=(n=F)>0?s.ObjectUtils.findLastIndex(it.slice(0,n),(function(e){return pe(e)})):-1)>-1?r:n:U.current?he():(t=me())<0?he():t;ye(e,o),!k&&Ve(),e.preventDefault()}},Ee=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&N(-1)},xe=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(e.currentTarget.setSelectionRange(0,0),N(-1)):(ye(e,ge()),!k&&Ve()),e.preventDefault()},Se=function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget,n=t.value.length;t.setSelectionRange(n,n),N(-1)}else ye(e,he()),!k&&Ve();e.preventDefault()},De=function(e){e.preventDefault()},je=function(e){e.preventDefault()},Fe=function(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&Ne(e)},Ne=function(e){k?(-1!==F&&ce(e,it[F]),_e()):(N(-1),Oe(e)),e.preventDefault()},Ce=function(e){k&&_e(),e.preventDefault()},ke=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(!k||s.DomHandler.getFocusableElements(M.current,':not([data-p-hidden-focusable="true"])').length>0?(-1!==F&&ce(e,it[F]),k&&_e()):(s.DomHandler.focus(H.current),e.preventDefault()))},Le=function(e){e&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&!k&&Ve()},Pe=function(e,t){if(!t||null==e||!e.length)return-1;var n=t.toLocaleLowerCase(),r=e.findIndex((function(e){return Xe(e).toLocaleLowerCase()===n}));return-1!==r?r:e.findIndex((function(e){return Xe(e).toLocaleLowerCase().startsWith(n)}))},Ue=function(e){!k&&Ve();var t=null;e.target.value&&it&&(t=Pe(it,e.target.value)),N(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}})},Te=function(e){S(!0),_e(),m.onFocus&&m.onFocus(e)},Re=function(e){h(""),m.onFilter&&m.onFilter({filter:""}),e&&e()},Me=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&&Re(),Je(),N(-1)},He=function(e){if(at!==e.option){Je(e.option),N(-1);var t=Ze(e.option),n=Ke(e.option,it);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}}),ye(e.originalEvent,n)}},Ae=function(e){if(e=e||it){if(!m.optionGroupLabel)return Ke(m.value,e);for(var t=0;t<e.length;t++){var n=Ke(m.value,Ye(e[t]));if(-1!==n)return{group:t,option:n}}}return-1},Ge=function(){return m.optionValue?null:m.dataKey},Ke=function(e,t){var n=Ge();return t.findIndex((function(t){return s.ObjectUtils.equals(e,Ze(t),n)}))},qe=function(e){return s.ObjectUtils.equals(m.value,Ze(e),Ge())},Ve=function(){N(-1!==F?F:m.autoOptionFocus?ve():m.editable?-1:me()),P(!0)},_e=function(){P(!1),U.current=!1},Be=function(){s.DomHandler.alignOverlay(M.current,q.current.parentElement,m.appendTo||f&&f.appendTo||O.default.appendTo)},ze=function(){var e=s.DomHandler.findSingle(M.current,'li[data-p-focused="true"]');if(e&&e.scrollIntoView)e.scrollIntoView({block:"nearest",inline:"nearest"});else{var t=s.DomHandler.findSingle(M.current,'li[data-p-highlight="true"]');t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest",inline:"nearest"})}},Je=function(e){q.current&&(q.current.value=e?Xe(e):m.value||"",V.current&&(V.current.value=q.current.value))},Xe=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)},Ze=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},We=function(e){return m.optionGroupLabel&&e.group},$e=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},Ye=function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupChildren)},Qe=function(){if(m.editable&&q.current){var e=(at?Xe(at):null)||m.value||"";q.current.value=e,V.current&&(V.current.value=e)}};w.useImperativeHandle(p,(function(){return{props:m,show:Ve,hide:_e,clear:Me,focus:function(){return s.DomHandler.focus(V.current)},getElement:function(){return R.current},getOverlay:function(){return M.current},getInput:function(){return q.current},getFocusInput:function(){return V.current},getVirtualScroller:function(){return _.current}}})),w.useEffect((function(){s.ObjectUtils.combinedRefs(q,m.inputRef),s.ObjectUtils.combinedRefs(V,m.focusInputRef)}),[q,m.inputRef,V,m.focusInputRef]),r.useMountEffect((function(){m.autoFocus&&s.DomHandler.focus(V.current,m.autoFocus),Be()})),r.useUpdateEffect((function(){k&&(m.value||F>=0)&&ze()}),[k,m.value,F]),r.useUpdateEffect((function(){k&&g&&m.filter&&Be()}),[k,g,m.filter]),r.useUpdateEffect((function(){_.current&&_.current.scrollInView(0)}),[g]),r.useUpdateEffect((function(){!g||m.options&&0!==m.options.length||h(""),Qe(),q.current&&(q.current.selectedIndex=1)})),r.useUnmountEffect((function(){s.ZIndexUtils.clear(M.current)}));var et,tt,nt,rt,ot,lt=function(e){"Enter"!==e.key&&"Space"!==e.code||(Me(e),e.preventDefault())},it=function(){var e=m.optionGroupLabel?oe(m.options):m.options;if(Z&&!X){var n=g.trim().toLocaleLowerCase(m.filterLocale),r=m.filterBy?m.filterBy.split(","):[m.optionLabel||"label"];if(m.optionGroupLabel){var o,l=[],i=K(m.options);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=t.FilterService.filter(Ye(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 oe(l)}return t.FilterService.filter(e,r,n,m.filterMatchMode,m.filterLocale)}return e}(),at=-1!==(et=Ae(m.options))?m.optionGroupLabel?Ye(m.options[et.group])[et.option]:m.options[et]:null,ct=s.ObjectUtils.isNotEmpty(m.tooltip),ut=T.getOtherProps(m),st=s.ObjectUtils.reduceKeys(ut,s.DomHandler.ARIA_PROPS),pt=function(){var e={value:"",label:m.placeholder};if(at){var t=Ze(at);e={value:"object"===E(t)?m.options.findIndex((function(e){return e===t})):t,label:Xe(at)}}var n=d({className:"p-hidden-accessible p-dropdown-hidden-select"},Y("hiddenSelectedMessage")),r=d({ref:q,required:m.required,defaultValue:e.value,name:m.name,tabIndex:-1},Y("select")),o=d({value:e.value},Y("option"));return w.createElement("div",n,w.createElement("select",r,w.createElement("option",o,e.label)))}(),dt=function(){var e=s.ObjectUtils.isNotEmpty(at)?Xe(at):null;m.editable&&(e=e||m.value||"");var t=d({className:"p-hidden-accessible"},Y("hiddenSelectedMessage")),n=d(B({ref:V,id:m.inputId,defaultValue:e,type:"text",readOnly:!0,"aria-haspopup":"listbox",onFocus:ie,onBlur:ae,onKeyDown:ue,disabled:m.disabled,tabIndex:m.disabled?-1:m.tabIndex||0},st),Y("input"));return w.createElement("div",t,w.createElement("input",n))}(),ft=function(){var e=s.ObjectUtils.isNotEmpty(at)?Xe(at):null;if(m.editable){var t=d(B({ref:q,type:"text",defaultValue:e||m.value||"",className:Q("input",{label:e}),disabled:m.disabled,placeholder:m.placeholder,maxLength:m.maxLength,onInput:Ue,onFocus:Te,onKeyDown:ue,onBlur:ae,tabIndex:m.disabled?-1:m.tabIndex||0,"aria-haspopup":"listbox"},st),Y("input"));return w.createElement("input",t)}var n=m.valueTemplate?s.ObjectUtils.getJSXElement(m.valueTemplate,at,m):e||m.placeholder||m.emptyMessage||w.createElement(w.Fragment,null," "),r=d({ref:q,className:Q("input",{label:e}),tabIndex:"-1"},Y("input"));return w.createElement("span",r,n)}(),mt=m.loading?(tt=d({className:Q("loadingIcon"),"data-pr-overlay-visible":k},Y("loadingIcon")),nt=s.IconUtils.getJSXIcon(m.loadingIcon||w.createElement(i.SpinnerIcon,{spin:!0}),B({},tt),{props:m}),rt=m.placeholder||m.ariaLabel,ot=d({className:Q("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":rt},Y("trigger")),w.createElement("div",ot,nt)):function(){var e=d({className:Q("dropdownIcon"),"data-pr-overlay-visible":k},Y("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:Q("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":n},Y("trigger"));return w.createElement("div",r,t)}(),vt=function(){if(null!=m.value&&m.showClear&&!m.disabled&&!s.ObjectUtils.isEmpty(m.options)){var e=d({className:Q("clearIcon"),onPointerUp:Me,tabIndex:m.tabIndex||"0",onKeyDown:lt,"aria-label":t.localeOption("clear")},Y("clearIcon"));return s.IconUtils.getJSXIcon(m.clearIcon||w.createElement(a.TimesIcon,e),B({},e),{props:m})}return null}(),bt=d({id:m.id,ref:R,className:s.classNames(m.className,Q("root",{context:f,focusedState:x,overlayVisibleState:k})),style:m.style,onClick:function(e){return t=e,void(m.disabled||m.loading||(m.onClick&&m.onClick(t),t.defaultPrevented||le(t)||"INPUT"===t.target.tagName||(M.current&&M.current&&M.current.contains(t.target)||(s.DomHandler.focus(V.current),k?_e():Ve()),t.preventDefault(),U.current=!0)));var t},onMouseDown:m.onMouseDown,onContextMenu:m.onContextMenu,onFocus:function(){m.editable&&!k&&!1===U.current&&s.DomHandler.focus(q.current)},"data-p-disabled":m.disabled,"data-p-focus":x,"aria-activedescendant":x?"dropdownItem_".concat(F):void 0},ut,Y("root")),gt=d({ref:H,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:function(e){var t=e.relatedTarget===V.current?s.DomHandler.getFirstFocusableElement(M.current,':not([data-p-hidden-focusable="true"])'):V.current;s.DomHandler.focus(t)},"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},Y("hiddenFirstFocusableEl")),ht=d({ref:A,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:function(e){var t=e.relatedTarget===V.current?s.DomHandler.getLastFocusableElement(M.current,':not([data-p-hidden-focusable="true"])'):V.current;s.DomHandler.focus(t)},"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},Y("hiddenLastFocusableEl"));return w.createElement(w.Fragment,null,w.createElement("div",bt,dt,pt,ft,vt,mt,w.createElement(G,I({hostName:"Dropdown",ref:M,visibleOptions:it,virtualScrollerRef:_},m,{appendTo:W,cx:Q,filterValue:b,focusedOptionIndex:F,getOptionGroupChildren:Ye,getOptionGroupLabel:function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupLabel)},getOptionGroupRenderKey:function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupLabel)},getOptionLabel:Xe,getOptionRenderKey:function(e){return m.dataKey?s.ObjectUtils.resolveFieldData(e,m.dataKey):Xe(e)},getSelectedOptionIndex:Ae,hasFilter:Z,in:k,isOptionDisabled:$e,isSelected:qe,onClick:function(e){c.OverlayService.emit("overlay-click",{originalEvent:e,target:R.current})},onEnter:function(e){s.ZIndexUtils.set("overlay",M.current,f&&f.autoZIndex||O.default.autoZIndex,f&&f.zIndex.overlay||O.default.zIndex.overlay),s.DomHandler.addStyles(M.current,{position:"absolute",top:"0",left:"0"}),Be(),e&&e()},onEntered:function(e){e&&e(),ne(),m.onShow&&m.onShow()},onExit:function(){re()},onExited:function(){m.filter&&m.resetFilterOnHide&&Re(),s.ZIndexUtils.clear(M.current),m.onHide&&m.onHide()},onFilterClearIconClick:function(e){Re(e)},onFilterInputChange:function(e){var t=e.target.value;h(t),m.onFilter&&m.onFilter({originalEvent:e,filter:t})},onFilterInputKeyDown:function(e){switch(e.code){case"ArrowDown":Oe(e);break;case"ArrowUp":Ie(e);break;case"ArrowLeft":case"ArrowRight":Ee(e,!0);break;case"Escape":case"Enter":case"NumpadEnter":Ne(e),e.preventDefault()}},onOptionClick:function(e){e.option.disabled||(He(e),s.DomHandler.focus(V.current)),_e()},onInputKeyDown:ue,ptm:Y,resetFilter:Re,changeFocusedOptionIndex:ye,firstFocusableElement:w.createElement("span",gt),lastFocusableElement:w.createElement("span",ht),sx:ee}))),ct&&w.createElement(u.Tooltip,I({target:R,content:m.tooltip,pt:Y("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"),b=require("primereact/ripple"),v=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 C(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 k(){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 L(e,t){return j(e)||F(e,t)||C(e,t)||k()}function P(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?P(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(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,autoOptionFocus:!1,checkmark:!1,children:void 0,className:null,clearIcon:null,collapseIcon:null,dataKey:null,disabled:!1,dropdownIcon:null,editable:!1,emptyFilterMessage:null,emptyMessage:null,filter:!1,filterBy:null,filterClearIcon:null,filterDelay:300,filterIcon:null,filterInputAutoFocus:!1,filterLocale:void 0,filterMatchMode:"contains",filterPlaceholder:null,filterTemplate:null,focusInputRef:null,focusOnHover:!0,highlightOnSelect:!0,id:null,inputId:null,inputRef:null,invalid:!1,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",optionGroupLabel:null,optionGroupTemplate:null,optionLabel:null,options:null,optionValue:null,panelClassName:null,panelFooterTemplate:null,panelStyle:null,placeholder:null,required:!1,resetFilterOnHide:!1,scrollHeight:"200px",selectOnFocus:!1,showClear:!1,showFilterClear:!1,showOnFocus:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,useOptionAsValue:!1,value:null,valueTemplate:null,variant: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(v.CheckIcon,e)}var n=t({className:o("blankIcon")},h("blankIcon"));return w.createElement(R,n)}(),w.createElement("span",E,y),w.createElement(b.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 A(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 G=w.memo(w.forwardRef((function(e,n){var o,l,i,c,u,b=r.useMergeProps(),v=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 v(t,A({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)},C=function(){if(e.panelFooterTemplate){var t=s.ObjectUtils.getJSXElement(e.panelFooterTemplate,e,e.onOverlayHide),n=b({className:g("footer")},D("footer"));return w.createElement("div",n,t)}return null},k=function(t,n){var r;e.focusOnHover&&(null==e||null===(r=e.changeFocusedOptionIndex)||void 0===r||r.call(e,t,n))},L=function(n,r){var o=s.ObjectUtils.getJSXElement(n,e)||t.localeOption(r?"emptyFilterMessage":"emptyMessage"),l=b({className:g("emptyMessage")},D("emptyMessage"));return w.createElement("li",l,o)},P=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=A(A({},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=b({className:g("itemGroup",{optionGroupLabel:l}),style:o,"data-p-highlight":e.selected},D("itemGroup")),u=b({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:k,ptm:v,cx:g,checkmark:e.checkmark})},U=function(){if(e.showFilterClear&&e.filterValue){var n=t.localeOption("clear"),r=b({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),A({},r),{props:e})}return null},T=function(){if(e.filter){var t=U(),n=b({className:g("filterIcon")},D("filterIcon")),r=s.IconUtils.getJSXIcon(e.filterIcon||w.createElement(d.SearchIcon,n),A({},n),{props:e}),o=b({className:g("filterContainer",{clearIcon:t})},D("filterContainer")),l=b({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=b({className:g("header")},D("header"));return w.createElement("div",c,i)}return null},R=function(){if(e.virtualScrollerOptions){var n=A(A({},e.virtualScrollerOptions),{style:A(A({},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(A(A({},t),{filter:e.filterValue}))},itemTemplate:function(e,t){return e&&P(e,t.index,t)},contentTemplate:function(n){var r=E?L(e.hasFilter?e.emptyFilterMessage:e.emptyMessage):n.children,o=b({ref:n.contentRef,style:n.style,className:s.classNames(n.className,g("list",{virtualScrollerProps:e.virtualScrollerOptions})),role:"listbox","aria-label":t.ariaLabel("listLabel")},D("list"));return w.createElement("ul",o,r)}});return w.createElement(m.VirtualScroller,I({ref:e.virtualScrollerRef},n,{pt:v("virtualScroller")}))}var r=s.ObjectUtils.isNotEmpty(e.visibleOptions)?e.visibleOptions.map(P):e.hasFilter?L(e.emptyFilterMessage,!0):L(e.emptyMessage),o=b({className:g("wrapper"),style:h("wrapper")},D("wrapper")),l=b({className:g("list"),role:"listbox","aria-label":t.ariaLabel("listLabel")},D("list"));return w.createElement("div",o,w.createElement("ul",l,r))},H=(o=T(),l=R(),i=C(),c=b({className:s.classNames(e.panelClassName,g("panel",{context:y})),style:h("panel"),onClick:e.onClick},D("panel")),u=b({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 K(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=q(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 q(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}G.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),b=L(r.useDebounce("",m.filterDelay||0),3),v=b[0],g=b[1],h=b[2],y=L(w.useState(!1),2),x=y[0],S=y[1],j=L(w.useState(-1),2),F=j[0],N=j[1],C=L(w.useState(!1),2),k=C[0],P=C[1],U=w.useRef(!1),R=w.useRef(null),M=w.useRef(null),H=w.useRef(null),A=w.useRef(null),q=w.useRef(m.inputRef),V=w.useRef(m.focusInputRef),_=w.useRef(null),z=w.useRef(null),J=w.useRef(null),X=m.virtualScrollerOptions&&m.virtualScrollerOptions.lazy,Z=s.ObjectUtils.isNotEmpty(g),W=m.appendTo||f&&f.appendTo||O.default.appendTo,$=T.setMetaData(B(B({props:m},m.__parentMetadata),{},{state:{filter:g,focused:x,overlayVisible:k}})),Y=$.ptm,Q=$.cx,ee=$.sx;n.useHandleStyle(T.css.styles,$.isUnstyled,{name:"dropdown"});var te=L(r.useOverlayListener({target:R,overlay:M,listener:function(e,t){t.valid&&("outside"===t.type?!le(e)&&_e():_e())},when:k}),2),ne=te[0],re=te[1],oe=function(e){return(e||[]).reduce((function(e,t,n){e.push(B(B({},t),{},{group:!0,index:n}));var r=Ye(t);return r&&r.forEach((function(t){return e.push(t)})),e}),[])},le=function(e){return s.DomHandler.isAttributeEquals(e.target,"data-pc-section","clearicon")||s.DomHandler.isAttributeEquals(e.target.parentElement||e.target,"data-pc-section","filterclearicon")},ie=function(e){m.showOnFocus&&!k&&Ve(),S(!0),m.onFocus&&m.onFocus(e)},ae=function(e){S(!1),m.onBlur&&setTimeout((function(){var t=q.current?q.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)},ce=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];He({originalEvent:e,option:t}),n&&(_e(),s.DomHandler.focus(V.current))},ue=function(e){if(m.disabled)e.preventDefault();else{switch(s.DomHandler.isAndroid()?e.key:e.code){case"ArrowDown":Oe(e);break;case"ArrowUp":Ie(e);break;case"ArrowLeft":case"ArrowRight":Ee(e,m.editable);break;case"Home":xe(e);break;case"End":Se(e);break;case"PageDown":je(e);break;case"PageUp":De(e);break;case"Space":Fe(e,m.editable);break;case"NumpadEnter":case"Enter":Ne(e);break;case"Escape":Ce(e);break;case"Tab":ke(e);break;case"Backspace":Le(e,m.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!(e.metaKey||e.ctrlKey||e.altKey)&&s.ObjectUtils.isPrintableCharacter(e.key)&&(!k&&!m.editable&&Ve(),!m.editable&&ve(e,e.key))}U.current=!1}},se=function(e){var t;return pe(e)&&(null===(t=Xe(e))||void 0===t?void 0:t.toLocaleLowerCase(m.filterLocale).startsWith(J.current.toLocaleLowerCase(m.filterLocale)))},pe=function(e){return s.ObjectUtils.isNotEmpty(e)&&!($e(e)||We(e))},de=function(){return s.ObjectUtils.isNotEmpty(m.value)},fe=function(e){return pe(e)&&qe(e)},me=function(){return de?it.findIndex((function(e){return fe(e)})):-1},be=function(){var e=me();return e<0?ge():e},ve=function(e,t){J.current=(J.current||"")+t;var n=-1,r=!1;return s.ObjectUtils.isNotEmpty(J.current)&&(-1!==(n=-1!==F?-1===(n=it.slice(F).findIndex((function(e){return se(e)})))?it.slice(0,F).findIndex((function(e){return se(e)})):n+F:it.findIndex((function(e){return se(e)})))&&(r=!0),-1===n&&-1===F&&(n=be()),-1!==n&&ye(e,n)),z.current&&clearTimeout(z.current),z.current=setTimeout((function(){J.current="",z.current=null}),500),r},ge=function(){return it.findIndex((function(e){return pe(e)}))},he=function(){return s.ObjectUtils.findLastIndex(it,(function(e){return pe(e)}))},ye=function(e,t){F!==t&&(N(t),we(t),m.selectOnFocus&&ce(e,it[t],!1))},we=function(e){var t=s.DomHandler.findSingle(M.current,'li[id="dropdownItem_'.concat(e,'"]'));t&&t.focus()},Oe=function(e){if(k){var t=-1!==F?(r=(n=F)<it.length-1?it.slice(n+1).findIndex((function(e){return pe(e)})):-1)>-1?r+n+1:n:U.current?ge():be();ye(e,t)}else Ve(),m.editable&&ye(e,me());var n,r;e.preventDefault()},Ie=function(e){var t,n,r;if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==F&&ce(e,it[F]),state.overlayVisible&&_e(),e.preventDefault();else{var o=-1!==F?(r=(n=F)>0?s.ObjectUtils.findLastIndex(it.slice(0,n),(function(e){return pe(e)})):-1)>-1?r:n:U.current?he():(t=me())<0?he():t;ye(e,o),!k&&Ve(),e.preventDefault()}},Ee=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&N(-1)},xe=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(e.currentTarget.setSelectionRange(0,0),N(-1)):(ye(e,ge()),!k&&Ve()),e.preventDefault()},Se=function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var t=e.currentTarget,n=t.value.length;t.setSelectionRange(n,n),N(-1)}else ye(e,he()),!k&&Ve();e.preventDefault()},De=function(e){e.preventDefault()},je=function(e){e.preventDefault()},Fe=function(e){!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&Ne(e)},Ne=function(e){k?-1!==F&&ce(e,it[F]):(N(-1),Oe(e)),e.preventDefault()},Ce=function(e){k&&_e(),e.preventDefault()},ke=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(!k||s.DomHandler.getFocusableElements(M.current,':not([data-p-hidden-focusable="true"])').length>0?(-1!==F&&ce(e,it[F]),k&&_e()):(s.DomHandler.focus(H.current),e.preventDefault()))},Le=function(e){e&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&!k&&Ve()},Pe=function(e,t){if(!t||null==e||!e.length)return-1;var n=t.toLocaleLowerCase(),r=e.findIndex((function(e){return Xe(e).toLocaleLowerCase()===n}));return-1!==r?r:e.findIndex((function(e){return Xe(e).toLocaleLowerCase().startsWith(n)}))},Ue=function(e){!k&&Ve();var t=null;e.target.value&&it&&(t=Pe(it,e.target.value)),N(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}})},Te=function(e){S(!0),_e(),m.onFocus&&m.onFocus(e)},Re=function(e){h(""),m.onFilter&&m.onFilter({filter:""}),e&&e()},Me=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&&Re(),Je(),N(-1)},He=function(e){if(at!==e.option){Je(e.option),N(-1);var t=Ze(e.option),n=Ke(e.option,it);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}}),ye(e.originalEvent,n)}},Ae=function(e){if(e=e||it){if(!m.optionGroupLabel)return Ke(m.value,e);for(var t=0;t<e.length;t++){var n=Ke(m.value,Ye(e[t]));if(-1!==n)return{group:t,option:n}}}return-1},Ge=function(){return m.optionValue?null:m.dataKey},Ke=function(e,t){var n=Ge();return t.findIndex((function(t){return s.ObjectUtils.equals(e,Ze(t),n)}))},qe=function(e){return s.ObjectUtils.equals(m.value,Ze(e),Ge())},Ve=function(){N(-1!==F?F:m.autoOptionFocus?be():m.editable?-1:me()),P(!0)},_e=function(){P(!1),U.current=!1},Be=function(){s.DomHandler.alignOverlay(M.current,q.current.parentElement,m.appendTo||f&&f.appendTo||O.default.appendTo)},ze=function(){var e=s.DomHandler.findSingle(M.current,'li[data-p-focused="true"]');if(e&&e.scrollIntoView)e.scrollIntoView({block:"nearest",inline:"nearest"});else{var t=s.DomHandler.findSingle(M.current,'li[data-p-highlight="true"]');t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest",inline:"nearest"})}},Je=function(e){q.current&&(q.current.value=e?Xe(e):m.value||"",V.current&&(V.current.value=q.current.value))},Xe=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)},Ze=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},We=function(e){return m.optionGroupLabel&&e.group},$e=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},Ye=function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupChildren)},Qe=function(){if(m.editable&&q.current){var e=(at?Xe(at):null)||m.value||"";q.current.value=e,V.current&&(V.current.value=e)}};w.useImperativeHandle(p,(function(){return{props:m,show:Ve,hide:_e,clear:Me,focus:function(){return s.DomHandler.focus(V.current)},getElement:function(){return R.current},getOverlay:function(){return M.current},getInput:function(){return q.current},getFocusInput:function(){return V.current},getVirtualScroller:function(){return _.current}}})),w.useEffect((function(){s.ObjectUtils.combinedRefs(q,m.inputRef),s.ObjectUtils.combinedRefs(V,m.focusInputRef)}),[q,m.inputRef,V,m.focusInputRef]),r.useMountEffect((function(){m.autoFocus&&s.DomHandler.focus(V.current,m.autoFocus),Be()})),r.useUpdateEffect((function(){k&&(m.value||F>=0)&&ze()}),[k,m.value,F]),r.useUpdateEffect((function(){k&&g&&m.filter&&Be()}),[k,g,m.filter]),r.useUpdateEffect((function(){_.current&&_.current.scrollInView(0)}),[g]),r.useUpdateEffect((function(){Qe(),q.current&&(q.current.selectedIndex=1)})),r.useUnmountEffect((function(){s.ZIndexUtils.clear(M.current)}));var et,tt,nt,rt,ot,lt=function(e){"Enter"!==e.key&&"Space"!==e.code||(Me(e),e.preventDefault())},it=function(){var e=m.optionGroupLabel?oe(m.options):m.options;if(Z&&!X){var n=g.trim().toLocaleLowerCase(m.filterLocale),r=m.filterBy?m.filterBy.split(","):[m.optionLabel||"label"];if(m.optionGroupLabel){var o,l=[],i=K(m.options);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=t.FilterService.filter(Ye(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 oe(l)}return t.FilterService.filter(e,r,n,m.filterMatchMode,m.filterLocale)}return e}(),at=-1!==(et=Ae(m.options))?m.optionGroupLabel?Ye(m.options[et.group])[et.option]:m.options[et]:null,ct=s.ObjectUtils.isNotEmpty(m.tooltip),ut=T.getOtherProps(m),st=s.ObjectUtils.reduceKeys(ut,s.DomHandler.ARIA_PROPS),pt=function(){var e={value:"",label:m.placeholder};if(at){var t=Ze(at);e={value:"object"===E(t)?m.options.findIndex((function(e){return e===t})):t,label:Xe(at)}}var n=d({className:"p-hidden-accessible p-dropdown-hidden-select"},Y("hiddenSelectedMessage")),r=d({ref:q,required:m.required,defaultValue:e.value,name:m.name,tabIndex:-1},Y("select")),o=d({value:e.value},Y("option"));return w.createElement("div",n,w.createElement("select",r,w.createElement("option",o,e.label)))}(),dt=function(){var e=s.ObjectUtils.isNotEmpty(at)?Xe(at):null;m.editable&&(e=e||m.value||"");var t=d({className:"p-hidden-accessible"},Y("hiddenSelectedMessage")),n=d(B({ref:V,id:m.inputId,defaultValue:e,type:"text",readOnly:!0,"aria-haspopup":"listbox",onFocus:ie,onBlur:ae,onKeyDown:ue,disabled:m.disabled,tabIndex:m.disabled?-1:m.tabIndex||0},st),Y("input"));return w.createElement("div",t,w.createElement("input",n))}(),ft=function(){var e=s.ObjectUtils.isNotEmpty(at)?Xe(at):null;if(m.editable){var t=d(B({ref:q,type:"text",defaultValue:e||m.value||"",className:Q("input",{label:e}),disabled:m.disabled,placeholder:m.placeholder,maxLength:m.maxLength,onInput:Ue,onFocus:Te,onKeyDown:ue,onBlur:ae,tabIndex:m.disabled?-1:m.tabIndex||0,"aria-haspopup":"listbox"},st),Y("input"));return w.createElement("input",t)}var n=m.valueTemplate?s.ObjectUtils.getJSXElement(m.valueTemplate,at,m):e||m.placeholder||m.emptyMessage||w.createElement(w.Fragment,null," "),r=d({ref:q,className:Q("input",{label:e}),tabIndex:"-1"},Y("input"));return w.createElement("span",r,n)}(),mt=m.loading?(tt=d({className:Q("loadingIcon"),"data-pr-overlay-visible":k},Y("loadingIcon")),nt=s.IconUtils.getJSXIcon(m.loadingIcon||w.createElement(i.SpinnerIcon,{spin:!0}),B({},tt),{props:m}),rt=m.placeholder||m.ariaLabel,ot=d({className:Q("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":rt},Y("trigger")),w.createElement("div",ot,nt)):function(){var e=d({className:Q("dropdownIcon"),"data-pr-overlay-visible":k},Y("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:Q("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":n},Y("trigger"));return w.createElement("div",r,t)}(),bt=function(){if(null!=m.value&&m.showClear&&!m.disabled&&!s.ObjectUtils.isEmpty(m.options)){var e=d({className:Q("clearIcon"),onPointerUp:Me,tabIndex:m.editable?-1:m.tabIndex||"0",onKeyDown:lt,"aria-label":t.localeOption("clear")},Y("clearIcon"));return s.IconUtils.getJSXIcon(m.clearIcon||w.createElement(a.TimesIcon,e),B({},e),{props:m})}return null}(),vt=d({id:m.id,ref:R,className:s.classNames(m.className,Q("root",{context:f,focusedState:x,overlayVisibleState:k})),style:m.style,onClick:function(e){return t=e,void(m.disabled||m.loading||(m.onClick&&m.onClick(t),t.defaultPrevented||le(t)||"INPUT"===t.target.tagName||(M.current&&M.current&&M.current.contains(t.target)||(s.DomHandler.focus(V.current),k?_e():Ve()),t.preventDefault(),U.current=!0)));var t},onMouseDown:m.onMouseDown,onContextMenu:m.onContextMenu,onFocus:function(){m.editable&&!k&&!1===U.current&&s.DomHandler.focus(q.current)},"data-p-disabled":m.disabled,"data-p-focus":x,"aria-activedescendant":x?"dropdownItem_".concat(F):void 0},ut,Y("root")),gt=d({ref:H,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:function(e){var t=e.relatedTarget===V.current?s.DomHandler.getFirstFocusableElement(M.current,':not([data-p-hidden-focusable="true"])'):V.current;s.DomHandler.focus(t)},"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},Y("hiddenFirstFocusableEl")),ht=d({ref:A,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:function(e){var t=e.relatedTarget===V.current?s.DomHandler.getLastFocusableElement(M.current,':not([data-p-hidden-focusable="true"])'):V.current;s.DomHandler.focus(t)},"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},Y("hiddenLastFocusableEl"));return w.createElement(w.Fragment,null,w.createElement("div",vt,dt,pt,ft,bt,mt,w.createElement(G,I({hostName:"Dropdown",ref:M,visibleOptions:it,virtualScrollerRef:_},m,{appendTo:W,cx:Q,filterValue:v,focusedOptionIndex:F,getOptionGroupChildren:Ye,getOptionGroupLabel:function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupLabel)},getOptionGroupRenderKey:function(e){return s.ObjectUtils.resolveFieldData(e,m.optionGroupLabel)},getOptionLabel:Xe,getOptionRenderKey:function(e){return m.dataKey?s.ObjectUtils.resolveFieldData(e,m.dataKey):Xe(e)},getSelectedOptionIndex:Ae,hasFilter:Z,in:k,isOptionDisabled:$e,isSelected:qe,onClick:function(e){c.OverlayService.emit("overlay-click",{originalEvent:e,target:R.current})},onEnter:function(e){s.ZIndexUtils.set("overlay",M.current,f&&f.autoZIndex||O.default.autoZIndex,f&&f.zIndex.overlay||O.default.zIndex.overlay),s.DomHandler.addStyles(M.current,{position:"absolute",top:"0",left:"0"}),Be(),e&&e()},onEntered:function(e){e&&e(),ne(),m.onShow&&m.onShow()},onExit:function(){re()},onExited:function(){m.filter&&m.resetFilterOnHide&&Re(),s.ZIndexUtils.clear(M.current),m.onHide&&m.onHide()},onFilterClearIconClick:function(e){Re(e)},onFilterInputChange:function(e){var t=e.target.value;h(t),m.onFilter&&m.onFilter({originalEvent:e,filter:t})},onFilterInputKeyDown:function(e){switch(e.code){case"ArrowDown":Oe(e);break;case"ArrowUp":Ie(e);break;case"ArrowLeft":case"ArrowRight":Ee(e,!0);break;case"Escape":case"Enter":case"NumpadEnter":Ne(e),e.preventDefault()}},onOptionClick:function(e){e.option.disabled||(He(e),s.DomHandler.focus(V.current)),_e()},onInputKeyDown:ue,ptm:Y,resetFilter:Re,changeFocusedOptionIndex:ye,firstFocusableElement:w.createElement("span",gt),lastFocusableElement:w.createElement("span",ht),sx:ee}))),ct&&w.createElement(u.Tooltip,I({target:R,content:m.tooltip,pt:Y("tooltip")},m.tooltipOptions)))})));z.displayName="Dropdown",exports.Dropdown=z;
|
package/dropdown/dropdown.d.ts
CHANGED
|
@@ -613,27 +613,27 @@ export declare class Dropdown extends React.Component<DropdownProps, any> {
|
|
|
613
613
|
public hide(): void;
|
|
614
614
|
/**
|
|
615
615
|
* Used to get container element.
|
|
616
|
-
* @return {HTMLDivElement} Container element
|
|
616
|
+
* @return {HTMLDivElement | null} Container element
|
|
617
617
|
*/
|
|
618
|
-
public getElement(): HTMLDivElement;
|
|
618
|
+
public getElement(): HTMLDivElement | null;
|
|
619
619
|
/**
|
|
620
620
|
* Used to get input element.
|
|
621
|
-
* @return {HTMLInputElement} Input element
|
|
621
|
+
* @return {HTMLInputElement | null} Input element
|
|
622
622
|
*/
|
|
623
|
-
public getInput(): HTMLInputElement;
|
|
623
|
+
public getInput(): HTMLInputElement | null;
|
|
624
624
|
/**
|
|
625
625
|
* Used to get focusable input element.
|
|
626
|
-
* @return {HTMLInputElement} Input element
|
|
626
|
+
* @return {HTMLInputElement | null} Input element
|
|
627
627
|
*/
|
|
628
|
-
public getFocusInput(): HTMLInputElement;
|
|
628
|
+
public getFocusInput(): HTMLInputElement | null;
|
|
629
629
|
/**
|
|
630
630
|
* Used to get overlay element.
|
|
631
|
-
* @return {HTMLElement} Overlay element
|
|
631
|
+
* @return {HTMLElement | null} Overlay element
|
|
632
632
|
*/
|
|
633
|
-
public getOverlay(): HTMLElement;
|
|
633
|
+
public getOverlay(): HTMLElement | null;
|
|
634
634
|
/**
|
|
635
635
|
* Used to get the options of inline virtualScroller component.
|
|
636
|
-
* @return {VirtualScroller} VirtualScroller component
|
|
636
|
+
* @return {VirtualScroller | null} VirtualScroller component
|
|
637
637
|
*/
|
|
638
|
-
public getVirtualScroller(): VirtualScroller;
|
|
638
|
+
public getVirtualScroller(): VirtualScroller | null;
|
|
639
639
|
}
|
package/dropdown/dropdown.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import PrimeReact, { PrimeReactContext, localeOption, FilterService } from 'primereact/api';
|
|
3
|
+
import PrimeReact, { PrimeReactContext, ariaLabel, localeOption, FilterService } from 'primereact/api';
|
|
4
4
|
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
5
5
|
import { useMergeProps, useDebounce, useOverlayListener, useMountEffect, useUpdateEffect, useUnmountEffect } from 'primereact/hooks';
|
|
6
6
|
import { ChevronDownIcon } from 'primereact/icons/chevrondown';
|
|
@@ -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; }
|
|
@@ -143,7 +131,7 @@ var classes = {
|
|
|
143
131
|
'p-focus': focusedState,
|
|
144
132
|
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled',
|
|
145
133
|
'p-dropdown-clearable': props.showClear && !props.disabled,
|
|
146
|
-
'p-inputwrapper-filled': props.value
|
|
134
|
+
'p-inputwrapper-filled': ObjectUtils.isNotEmpty(props.value),
|
|
147
135
|
'p-inputwrapper-focus': focusedState || overlayVisibleState
|
|
148
136
|
});
|
|
149
137
|
},
|
|
@@ -541,10 +529,10 @@ var DropdownPanel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
541
529
|
};
|
|
542
530
|
var createFilterClearIcon = function createFilterClearIcon() {
|
|
543
531
|
if (props.showFilterClear && props.filterValue) {
|
|
544
|
-
var
|
|
532
|
+
var ariaLabelFilterClear = localeOption('clear');
|
|
545
533
|
var clearIconProps = mergeProps({
|
|
546
534
|
className: cx('filterClearIcon'),
|
|
547
|
-
'aria-label':
|
|
535
|
+
'aria-label': ariaLabelFilterClear,
|
|
548
536
|
onClick: function onClick() {
|
|
549
537
|
return props.onFilterClearIconClick(function () {
|
|
550
538
|
return DomHandler.focus(filterInputRef.current);
|
|
@@ -637,7 +625,8 @@ var DropdownPanel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
637
625
|
className: classNames(options.className, cx('list', {
|
|
638
626
|
virtualScrollerProps: props.virtualScrollerOptions
|
|
639
627
|
})),
|
|
640
|
-
role: 'listbox'
|
|
628
|
+
role: 'listbox',
|
|
629
|
+
'aria-label': ariaLabel('listLabel')
|
|
641
630
|
}, getPTOptions('list'));
|
|
642
631
|
return /*#__PURE__*/React.createElement("ul", listProps, content);
|
|
643
632
|
}
|
|
@@ -655,7 +644,8 @@ var DropdownPanel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
655
644
|
}, getPTOptions('wrapper'));
|
|
656
645
|
var listProps = mergeProps({
|
|
657
646
|
className: cx('list'),
|
|
658
|
-
role: 'listbox'
|
|
647
|
+
role: 'listbox',
|
|
648
|
+
'aria-label': ariaLabel('listLabel')
|
|
659
649
|
}, getPTOptions('list'));
|
|
660
650
|
return /*#__PURE__*/React.createElement("div", wrapperProps, /*#__PURE__*/React.createElement("ul", listProps, items));
|
|
661
651
|
};
|
|
@@ -698,9 +688,9 @@ var DropdownPanel = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
698
688
|
}));
|
|
699
689
|
DropdownPanel.displayName = 'DropdownPanel';
|
|
700
690
|
|
|
701
|
-
function _createForOfIteratorHelper(
|
|
702
|
-
function _unsupportedIterableToArray(
|
|
703
|
-
function _arrayLikeToArray(
|
|
691
|
+
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; } } }; }
|
|
692
|
+
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; } }
|
|
693
|
+
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; }
|
|
704
694
|
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; }
|
|
705
695
|
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; }
|
|
706
696
|
var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
@@ -875,7 +865,10 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
875
865
|
originalEvent: event,
|
|
876
866
|
option: option
|
|
877
867
|
});
|
|
878
|
-
|
|
868
|
+
if (isHide) {
|
|
869
|
+
hide();
|
|
870
|
+
DomHandler.focus(focusInputRef.current);
|
|
871
|
+
}
|
|
879
872
|
};
|
|
880
873
|
var onPanelClick = function onPanelClick(event) {
|
|
881
874
|
OverlayService.emit('overlay-click', {
|
|
@@ -1135,7 +1128,6 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
1135
1128
|
if (focusedOptionIndex !== -1) {
|
|
1136
1129
|
onOptionSelect(event, visibleOptions[focusedOptionIndex]);
|
|
1137
1130
|
}
|
|
1138
|
-
hide();
|
|
1139
1131
|
}
|
|
1140
1132
|
event.preventDefault();
|
|
1141
1133
|
};
|
|
@@ -1482,9 +1474,6 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
1482
1474
|
virtualScrollerRef.current && virtualScrollerRef.current.scrollInView(0);
|
|
1483
1475
|
}, [filterState]);
|
|
1484
1476
|
useUpdateEffect(function () {
|
|
1485
|
-
if (filterState && (!props.options || props.options.length === 0)) {
|
|
1486
|
-
setFilterState('');
|
|
1487
|
-
}
|
|
1488
1477
|
updateInputField();
|
|
1489
1478
|
if (inputRef.current) {
|
|
1490
1479
|
inputRef.current.selectedIndex = 1;
|
|
@@ -1589,7 +1578,7 @@ var Dropdown = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
1589
1578
|
var clearIconProps = mergeProps({
|
|
1590
1579
|
className: cx('clearIcon'),
|
|
1591
1580
|
onPointerUp: clear,
|
|
1592
|
-
tabIndex: props.tabIndex || '0',
|
|
1581
|
+
tabIndex: props.editable ? -1 : props.tabIndex || '0',
|
|
1593
1582
|
onKeyDown: onClearIconKeyDown,
|
|
1594
1583
|
'aria-label': localeOption('clear')
|
|
1595
1584
|
}, ptm('clearIcon'));
|