primereact 10.8.4 → 10.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +43 -55
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +43 -55
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +43 -55
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +61 -75
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +61 -75
- package/api/api.esm.min.js +1 -1
- package/api/api.js +61 -75
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +72 -71
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +72 -71
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +72 -71
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +37 -49
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +37 -49
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +37 -49
- package/avatar/avatar.min.js +1 -1
- package/badge/badge.cjs.js +17 -23
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +17 -23
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +17 -23
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +37 -49
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +37 -49
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +37 -49
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +37 -49
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +37 -49
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +37 -49
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +23 -34
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +23 -34
- package/button/button.esm.min.js +1 -1
- package/button/button.js +23 -34
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +48 -60
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +48 -60
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +48 -60
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +43 -55
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +43 -55
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +43 -55
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +40 -52
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +40 -52
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +40 -52
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/checkbox.cjs.js +37 -49
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +37 -49
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +37 -49
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +37 -49
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +37 -49
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +37 -49
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +46 -56
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +46 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +46 -56
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +37 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +37 -49
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +37 -49
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +33 -40
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +33 -40
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +33 -40
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +37 -49
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +37 -49
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +37 -49
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +37 -49
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +37 -49
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +37 -49
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +37 -49
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +37 -49
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +37 -49
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1008 -1436
- package/core/core.min.js +67 -67
- package/csstransition/csstransition.cjs.js +17 -23
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +17 -23
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +17 -23
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +26 -32
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +26 -32
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +26 -32
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +94 -113
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +94 -113
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +94 -113
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +46 -58
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +46 -58
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +46 -58
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +14 -15
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +14 -15
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +14 -15
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +44 -56
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +44 -56
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +44 -56
- package/dialog/dialog.min.js +1 -1
- package/dock/dock.cjs.js +43 -55
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +43 -55
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +43 -55
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +46 -58
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +46 -58
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +46 -58
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +37 -49
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +37 -49
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +37 -49
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +20 -26
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +20 -26
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +20 -26
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +48 -60
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +48 -60
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +48 -60
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +17 -23
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +17 -23
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +17 -23
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +43 -55
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +43 -55
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +43 -55
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +37 -44
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +37 -44
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +37 -44
- package/hooks/hooks.min.js +1 -1
- package/iconfield/iconfield.cjs.js +23 -34
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +23 -34
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +23 -34
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +6 -11
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +6 -11
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +6 -11
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +6 -11
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +6 -11
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +6 -11
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +6 -11
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +6 -11
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +6 -11
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +6 -11
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +6 -11
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +6 -11
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +6 -11
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +6 -11
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +6 -11
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +6 -11
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +6 -11
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +6 -11
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +6 -11
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +6 -11
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +6 -11
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +6 -11
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +6 -11
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +6 -11
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +6 -11
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +6 -11
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -11
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +6 -11
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +6 -11
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -11
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +6 -11
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +6 -11
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -11
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +6 -11
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +6 -11
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +6 -11
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +6 -11
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +6 -11
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +6 -11
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +6 -11
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +6 -11
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +6 -11
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +6 -11
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +6 -11
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +6 -11
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +6 -11
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +6 -11
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +6 -11
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +6 -11
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +6 -11
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +6 -11
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +6 -11
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +6 -11
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +6 -11
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +6 -11
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +6 -11
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +6 -11
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +6 -11
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +6 -11
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +6 -11
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +6 -11
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +6 -11
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +6 -11
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +6 -11
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +6 -11
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +6 -11
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +6 -11
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -11
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +6 -11
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +6 -11
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -11
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +6 -11
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +6 -11
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -11
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +6 -11
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +6 -11
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -11
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +6 -11
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +6 -11
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +6 -11
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +6 -11
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +6 -11
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -11
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +6 -11
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +6 -11
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -11
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +6 -11
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +6 -11
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -11
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +6 -11
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +6 -11
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -11
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +6 -11
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +6 -11
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -11
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +6 -11
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +6 -11
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -11
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +6 -11
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -11
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +6 -11
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +6 -11
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +6 -11
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +6 -11
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +6 -11
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +6 -11
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -11
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +6 -11
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +6 -11
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -11
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +6 -11
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +6 -11
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -11
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +6 -11
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +6 -11
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -11
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +6 -11
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +6 -11
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +6 -11
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +6 -11
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +6 -11
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -11
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +6 -11
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +6 -11
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -11
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +6 -11
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +6 -11
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -11
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +6 -11
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +6 -11
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -11
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +6 -11
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +6 -11
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -11
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +6 -11
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +6 -11
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -11
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +37 -49
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +37 -49
- package/image/image.esm.min.js +1 -1
- package/image/image.js +37 -49
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +14 -15
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +14 -15
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +14 -15
- package/inplace/inplace.min.js +1 -1
- package/inputicon/inputicon.cjs.js +23 -34
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +23 -34
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +23 -34
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +8 -12
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +8 -12
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +8 -12
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +46 -55
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +47 -56
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +46 -55
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +43 -55
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +43 -55
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +43 -55
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +23 -34
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +23 -34
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +23 -34
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +30 -34
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +30 -34
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +30 -34
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +25 -35
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +25 -35
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -35
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +16 -17
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +16 -17
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +16 -17
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +14 -15
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +14 -15
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +14 -15
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +46 -58
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +46 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +46 -58
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +39 -51
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +39 -51
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +39 -51
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +46 -56
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +46 -56
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +46 -56
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +43 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +43 -55
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +43 -55
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +37 -49
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +37 -49
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +37 -49
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +23 -34
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +23 -34
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -34
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +44 -57
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +45 -58
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +44 -57
- package/messages/messages.min.js +1 -1
- package/metergroup/metergroup.cjs.js +23 -34
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +23 -34
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +23 -34
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +138 -155
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +138 -155
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +138 -155
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +37 -49
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +37 -49
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +37 -49
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +43 -55
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +43 -55
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +43 -55
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +45 -61
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +45 -61
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +45 -61
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +37 -49
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +37 -49
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +37 -49
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +41 -56
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +41 -56
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +41 -56
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +20 -26
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +20 -26
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +20 -26
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +37 -49
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +37 -49
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +37 -49
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +17 -23
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +17 -23
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +17 -23
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +14 -15
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +14 -15
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +14 -15
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +37 -49
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +37 -49
- package/password/password.esm.min.js +1 -1
- package/password/password.js +37 -49
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +49 -64
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +49 -64
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +49 -64
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +14 -15
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +14 -15
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +14 -15
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +324 -320
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +324 -320
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +324 -320
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +23 -34
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +23 -34
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +23 -34
- package/progressbar/progressbar.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +23 -34
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +23 -34
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +23 -34
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +37 -49
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +37 -49
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +37 -49
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +4 -1
- package/resources/themes/arya-green/theme.css +4 -1
- package/resources/themes/arya-orange/theme.css +4 -1
- package/resources/themes/arya-purple/theme.css +4 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +4 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +4 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +4 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +4 -1
- package/resources/themes/fluent-light/theme.css +4 -1
- package/resources/themes/lara-dark-amber/theme.css +2 -1
- package/resources/themes/lara-dark-blue/theme.css +2 -1
- package/resources/themes/lara-dark-cyan/theme.css +2 -1
- package/resources/themes/lara-dark-green/theme.css +2 -1
- package/resources/themes/lara-dark-indigo/theme.css +2 -1
- package/resources/themes/lara-dark-pink/theme.css +2 -1
- package/resources/themes/lara-dark-purple/theme.css +2 -1
- package/resources/themes/lara-dark-teal/theme.css +2 -1
- package/resources/themes/lara-light-amber/theme.css +2 -1
- package/resources/themes/lara-light-blue/theme.css +2 -1
- package/resources/themes/lara-light-cyan/theme.css +2 -1
- package/resources/themes/lara-light-green/theme.css +2 -1
- package/resources/themes/lara-light-indigo/theme.css +2 -1
- package/resources/themes/lara-light-pink/theme.css +2 -1
- package/resources/themes/lara-light-purple/theme.css +2 -1
- package/resources/themes/lara-light-teal/theme.css +2 -1
- package/resources/themes/luna-amber/theme.css +4 -1
- package/resources/themes/luna-blue/theme.css +4 -1
- package/resources/themes/luna-green/theme.css +4 -1
- package/resources/themes/luna-pink/theme.css +4 -1
- package/resources/themes/md-dark-deeppurple/theme.css +3 -1
- package/resources/themes/md-dark-indigo/theme.css +3 -1
- package/resources/themes/md-light-deeppurple/theme.css +3 -1
- package/resources/themes/md-light-indigo/theme.css +3 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-dark-indigo/theme.css +3 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-light-indigo/theme.css +3 -1
- package/resources/themes/mira/theme.css +2 -1
- package/resources/themes/nano/theme.css +4 -1
- package/resources/themes/nova/theme.css +4 -1
- package/resources/themes/nova-accent/theme.css +4 -1
- package/resources/themes/nova-alt/theme.css +4 -1
- package/resources/themes/rhea/theme.css +4 -1
- package/resources/themes/saga-blue/theme.css +4 -1
- package/resources/themes/saga-green/theme.css +4 -1
- package/resources/themes/saga-orange/theme.css +4 -1
- package/resources/themes/saga-purple/theme.css +4 -1
- package/resources/themes/soho-dark/theme.css +1 -0
- package/resources/themes/soho-light/theme.css +1 -0
- package/resources/themes/tailwind-light/theme.css +2 -1
- package/resources/themes/vela-blue/theme.css +4 -1
- package/resources/themes/vela-green/theme.css +4 -1
- package/resources/themes/vela-orange/theme.css +4 -1
- package/resources/themes/vela-purple/theme.css +4 -1
- package/resources/themes/viva-dark/theme.css +1 -0
- package/resources/themes/viva-light/theme.css +1 -0
- package/ripple/ripple.cjs.js +37 -49
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +37 -49
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +37 -49
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +20 -26
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +20 -26
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +20 -26
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +37 -49
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +37 -49
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +37 -49
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +26 -32
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +26 -32
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +26 -32
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +38 -50
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +38 -50
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +38 -50
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +17 -23
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +17 -23
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +17 -23
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +37 -49
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +37 -49
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +37 -49
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +43 -55
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +43 -55
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +43 -55
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +43 -55
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +43 -55
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -55
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +37 -49
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -2
- package/splitbutton/splitbutton.esm.js +37 -49
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +37 -49
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +43 -55
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +43 -55
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +43 -55
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.js +37 -49
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +37 -49
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +37 -49
- package/stepper/stepper.min.js +1 -1
- package/steps/steps.cjs.js +37 -49
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +37 -49
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +37 -49
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +14 -15
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +14 -15
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +14 -15
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +37 -49
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +37 -49
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +37 -49
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +37 -44
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +37 -44
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +37 -44
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +17 -23
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +17 -23
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +17 -23
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +20 -21
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +20 -21
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +20 -21
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +37 -49
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +37 -49
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +37 -49
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +23 -34
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +23 -34
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +23 -34
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +53 -73
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +53 -73
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +53 -73
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +24 -35
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +24 -35
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +24 -35
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/tooltip.cjs.js +43 -55
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +43 -55
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +43 -55
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +50 -62
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +50 -62
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +50 -62
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +48 -59
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +48 -59
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +48 -59
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +61 -70
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +61 -70
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +61 -70
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +37 -49
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +37 -49
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +37 -49
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +59 -79
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +59 -79
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +59 -79
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +37 -49
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +37 -49
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +37 -49
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +3 -3
package/chip/chip.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.chip=function(e,t,r,n,o,i,l){"use strict";function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=c(t);function u(e){return u="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},u(e)}function s(e,t){if("object"
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.chip=function(e,t,r,n,o,i,l){"use strict";function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=c(t);function u(e){return u="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},u(e)}function s(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function p(e){var t=s(e,"string");return"symbol"==u(t)?t:t+""}function m(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(null,arguments)}function b(e){if(Array.isArray(e))return e}function y(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,l,c=[],a=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;a=!1}else for(;!(a=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{if(!a&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(u)throw o}}return c}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=n.ComponentBase.extend({defaultProps:{__TYPE:"Chip",label:null,icon:null,image:null,removable:!1,removeIcon:null,className:null,style:null,template:null,imageAlt:"chip",onImageError:null,onRemove:null,children:void 0},css:{classes:{root:function(e){return l.classNames("p-chip p-component",{"p-chip-image":null!=e.props.image})},removeIcon:"p-chip-remove-icon",icon:"p-chip-icon",label:"p-chip-text"},styles:"\n@layer primereact {\n .p-chip {\n display: inline-flex;\n align-items: center;\n }\n \n .p-chip-text {\n line-height: 1.5;\n }\n \n .p-chip-icon.pi {\n line-height: 1.5;\n }\n \n .p-chip .p-chip-remove-icon {\n line-height: 1.5;\n cursor: pointer;\n }\n \n .p-chip img {\n border-radius: 50%;\n }\n}\n"}});function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var P=a.memo(a.forwardRef((function(e,t){var c,u,s=o.useMergeProps(),p=a.useContext(r.PrimeReactContext),m=d.getProps(e,p),v=a.useRef(null),O=a.useState(!0),P=(u=2,b(c=O)||y(c,u)||h(c,u)||g()),I=P[0],S=P[1],E=d.setMetaData({props:m}),w=E.ptm,N=E.cx;n.useHandleStyle(d.css.styles,E.isUnstyled,{name:"chip"});var C,x,A=function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code&&"Backspace"!==e.code||k(e)},k=function(e){S(!1),m.onRemove&&m.onRemove({originalEvent:e,value:m.label||m.image||m.icon})},D=function(){var e=[],t=s({role:"button",tabIndex:0,className:N("removeIcon"),onClick:k,onKeyDown:A},w("removeIcon")),r=m.removeIcon||a.createElement(i.TimesCircleIcon,f({},t,{key:l.UniqueComponentId("removeIcon")}));if(m.image){var n=s({src:m.image,onError:m.onImageError},w("image"));e.push(a.createElement("img",f({alt:m.imageAlt},n)))}else if(m.icon){var o=s({className:N("icon")},w("icon"));e.push(l.IconUtils.getJSXIcon(m.icon,j({},o),{props:m}))}if(m.label){var c=s({className:N("label")},w("label"));e.push(a.createElement("span",f({},c,{key:"label"}),m.label))}return m.removable&&e.push(l.IconUtils.getJSXIcon(r,j({},t),{props:m})),e};return a.useImperativeHandle(t,(function(){return{props:m,getElement:function(){return v.current}}})),I&&(C=m.template?l.ObjectUtils.getJSXElement(m.template,m):D(),x=s({ref:v,style:m.style,className:l.classNames(m.className,N("root")),"aria-label":m.label},d.getOtherProps(m),w("root")),a.createElement("div",x,C))})));return P.displayName="Chip",e.Chip=P,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.icons.timescircle,primereact.utils);
|
package/chips/chips.cjs.js
CHANGED
|
@@ -33,18 +33,13 @@ function _interopNamespace(e) {
|
|
|
33
33
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
34
34
|
|
|
35
35
|
function _extends() {
|
|
36
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
37
|
-
for (var
|
|
38
|
-
var
|
|
39
|
-
for (var
|
|
40
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
41
|
-
target[key] = source[key];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
36
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
37
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
38
|
+
var t = arguments[e];
|
|
39
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
44
40
|
}
|
|
45
|
-
return
|
|
46
|
-
};
|
|
47
|
-
return _extends.apply(this, arguments);
|
|
41
|
+
return n;
|
|
42
|
+
}, _extends.apply(null, arguments);
|
|
48
43
|
}
|
|
49
44
|
|
|
50
45
|
function _typeof(o) {
|
|
@@ -57,70 +52,63 @@ function _typeof(o) {
|
|
|
57
52
|
}, _typeof(o);
|
|
58
53
|
}
|
|
59
54
|
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
62
|
-
var
|
|
63
|
-
if (
|
|
64
|
-
var
|
|
65
|
-
if (
|
|
55
|
+
function toPrimitive(t, r) {
|
|
56
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
57
|
+
var e = t[Symbol.toPrimitive];
|
|
58
|
+
if (void 0 !== e) {
|
|
59
|
+
var i = e.call(t, r || "default");
|
|
60
|
+
if ("object" != _typeof(i)) return i;
|
|
66
61
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
67
62
|
}
|
|
68
|
-
return (
|
|
63
|
+
return ("string" === r ? String : Number)(t);
|
|
69
64
|
}
|
|
70
65
|
|
|
71
|
-
function
|
|
72
|
-
var
|
|
73
|
-
return _typeof(
|
|
66
|
+
function toPropertyKey(t) {
|
|
67
|
+
var i = toPrimitive(t, "string");
|
|
68
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
74
69
|
}
|
|
75
70
|
|
|
76
|
-
function _defineProperty(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
writable: true
|
|
84
|
-
});
|
|
85
|
-
} else {
|
|
86
|
-
obj[key] = value;
|
|
87
|
-
}
|
|
88
|
-
return obj;
|
|
71
|
+
function _defineProperty(e, r, t) {
|
|
72
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
73
|
+
value: t,
|
|
74
|
+
enumerable: !0,
|
|
75
|
+
configurable: !0,
|
|
76
|
+
writable: !0
|
|
77
|
+
}) : e[r] = t, e;
|
|
89
78
|
}
|
|
90
79
|
|
|
91
|
-
function _arrayLikeToArray(
|
|
92
|
-
|
|
93
|
-
for (var
|
|
94
|
-
return
|
|
80
|
+
function _arrayLikeToArray(r, a) {
|
|
81
|
+
(null == a || a > r.length) && (a = r.length);
|
|
82
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
83
|
+
return n;
|
|
95
84
|
}
|
|
96
85
|
|
|
97
|
-
function _arrayWithoutHoles(
|
|
98
|
-
if (Array.isArray(
|
|
86
|
+
function _arrayWithoutHoles(r) {
|
|
87
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
99
88
|
}
|
|
100
89
|
|
|
101
|
-
function _iterableToArray(
|
|
102
|
-
if (typeof Symbol
|
|
90
|
+
function _iterableToArray(r) {
|
|
91
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
103
92
|
}
|
|
104
93
|
|
|
105
|
-
function _unsupportedIterableToArray(
|
|
106
|
-
if (
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
94
|
+
function _unsupportedIterableToArray(r, a) {
|
|
95
|
+
if (r) {
|
|
96
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
97
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
98
|
+
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;
|
|
99
|
+
}
|
|
112
100
|
}
|
|
113
101
|
|
|
114
102
|
function _nonIterableSpread() {
|
|
115
103
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
116
104
|
}
|
|
117
105
|
|
|
118
|
-
function _toConsumableArray(
|
|
119
|
-
return _arrayWithoutHoles(
|
|
106
|
+
function _toConsumableArray(r) {
|
|
107
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
120
108
|
}
|
|
121
109
|
|
|
122
|
-
function _arrayWithHoles(
|
|
123
|
-
if (Array.isArray(
|
|
110
|
+
function _arrayWithHoles(r) {
|
|
111
|
+
if (Array.isArray(r)) return r;
|
|
124
112
|
}
|
|
125
113
|
|
|
126
114
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -155,8 +143,8 @@ function _nonIterableRest() {
|
|
|
155
143
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
144
|
}
|
|
157
145
|
|
|
158
|
-
function _slicedToArray(
|
|
159
|
-
return _arrayWithHoles(
|
|
146
|
+
function _slicedToArray(r, e) {
|
|
147
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
160
148
|
}
|
|
161
149
|
|
|
162
150
|
var styles = "\n@layer primereact {\n .p-chips {\n display: inline-flex;\n }\n \n .p-chips-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n \n .p-chips-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n \n .p-chips-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n }\n \n .p-chips-token-icon {\n cursor: pointer;\n }\n \n .p-chips-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n }\n \n .p-fluid .p-chips {\n display: flex;\n }\n \n .p-chips-icon-left,\n .p-chips-icon-right {\n position: relative;\n display: inline-block;\n }\n \n .p-chips-icon-left > i,\n .p-chips-icon-right > i,\n .p-chips-icon-left > svg,\n .p-chips-icon-right > svg,\n .p-chips-icon-left > .p-chips-prefix,\n .p-chips-icon-right > .p-chips-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n \n .p-fluid .p-chips-icon-left,\n .p-fluid .p-chips-icon-right {\n display: block;\n width: 100%;\n }\n}\n";
|
|
@@ -576,7 +564,9 @@ var Chips = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.for
|
|
|
576
564
|
},
|
|
577
565
|
readOnly: props.readOnly
|
|
578
566
|
}, ariaProps), ptm('input'));
|
|
579
|
-
return /*#__PURE__*/React__namespace.createElement("li",
|
|
567
|
+
return /*#__PURE__*/React__namespace.createElement("li", _extends({}, inputTokenProps, {
|
|
568
|
+
key: props.inputId + '_chips_input'
|
|
569
|
+
}), /*#__PURE__*/React__namespace.createElement("input", inputProps));
|
|
580
570
|
};
|
|
581
571
|
var createItems = function createItems() {
|
|
582
572
|
return props.value ? props.value.map(createItem) : null;
|
package/chips/chips.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),n=require("primereact/api"),t=require("primereact/componentbase"),r=require("primereact/hooks"),i=require("primereact/icons/timescircle"),l=require("primereact/keyfilter"),a=require("primereact/tooltip"),o=require("primereact/utils");function u(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var c=u(e);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(this,arguments)}function p(e){return p="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},p(e)}function f(e,n){if("object"!==p(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function d(e){var n=f(e,"string");return"symbol"===p(n)?n:String(n)}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function v(e){if(Array.isArray(e))return m(e)}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,n){if(e){if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,n):void 0}}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e){return v(e)||y(e)||b(e)||h()}function O(e){if(Array.isArray(e))return e}function w(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,l,a,o=[],u=!0,c=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=l.call(t)).done)&&(o.push(r.value),o.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}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 x(e,n){return O(e)||w(e,n)||b(e,n)||k()}var j=t.ComponentBase.extend({defaultProps:{__TYPE:"Chips",addOnBlur:null,allowDuplicate:!0,ariaLabelledBy:null,autoFocus:!1,className:null,disabled:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,itemTemplate:null,keyfilter:null,max:null,name:null,onAdd:null,onBlur:null,onChange:null,onFocus:null,onKeyDown:null,onRemove:null,placeholder:null,readOnly:!1,removable:!0,removeIcon:null,separator:null,style:null,tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:{removeTokenIcon:"p-chips-token-icon",label:"p-chips-token-label",token:function(e){return o.classNames("p-chips-token",{"p-focus":e.focusedIndex===e.index})},inputToken:"p-chips-input-token",container:function(e){var n=e.props,t=e.context;return o.classNames("p-inputtext p-chips-multiple-container",{"p-variant-filled":n.variant?"filled"===n.variant:t&&"filled"===t.inputStyle})},root:function(e){var n=e.focusedState;return o.classNames("p-chips p-component p-inputwrapper",{"p-inputwrapper-filled":e.isFilled,"p-inputwrapper-focus":n,"p-disabled":e.disabled,"p-invalid":e.invalid,"p-focus":n})}},styles:"\n@layer primereact {\n .p-chips {\n display: inline-flex;\n }\n \n .p-chips-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n \n .p-chips-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n \n .p-chips-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n }\n \n .p-chips-token-icon {\n cursor: pointer;\n }\n \n .p-chips-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n }\n \n .p-fluid .p-chips {\n display: flex;\n }\n \n .p-chips-icon-left,\n .p-chips-icon-right {\n position: relative;\n display: inline-block;\n }\n \n .p-chips-icon-left > i,\n .p-chips-icon-right > i,\n .p-chips-icon-left > svg,\n .p-chips-icon-right > svg,\n .p-chips-icon-left > .p-chips-prefix,\n .p-chips-icon-right > .p-chips-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n \n .p-fluid .p-chips-icon-left,\n .p-fluid .p-chips-icon-right {\n display: block;\n width: 100%;\n }\n}\n"}});function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){var r,i,l;r=e,l=t[n],(i=d(i=n))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=c.memo(c.forwardRef((function(e,u){var p=r.useMergeProps(),f=c.useContext(n.PrimeReactContext),d=j.getProps(e,f),m=x(c.useState(!1),2),v=m[0],y=m[1],b=x(c.useState(null),2),h=b[0],O=b[1],w=j.setMetaData({props:d,state:{focused:v}}),k=w.ptm,P=w.cx;t.useHandleStyle(j.css.styles,w.isUnstyled,{name:"chips"});var E=c.useRef(null),S=c.useRef(null),I=c.useRef(d.inputRef),A=function(e,n){if(!d.disabled||!d.readOnly){var t=g(d.value),r=t.splice(n,1)[0];V(r,n)&&(d.onRemove&&d.onRemove({originalEvent:e,value:r}),d.onChange&&d.onChange({originalEvent:e,value:t,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:d.name,id:d.id,value:t}}))}},N=function(e,n,t){if(n&&n.trim().length){var r=d.value?g(d.value):[];if(d.allowDuplicate||-1===r.indexOf(n)){var i=!0;d.onAdd&&(i=d.onAdd({originalEvent:e,value:n})),!1!==i&&r.push(n)}B(e,r,t)}},R=function(e){switch(e.code){case"ArrowLeft":C();break;case"ArrowRight":T();break;case"Backspace":_(e)}},C=function(){var e=h;0===I.current.value.length&&d.value&&d.value.length>0&&(e=null===e?d.value.length-1:e-1)<0&&(e=0),O(e)},T=function(){var e=h;0===I.current.value.length&&d.value&&d.value.length>0&&(e===d.value.length-1?(e=null,I.current.focus()):e++),O(e)},_=function(e){null!==h&&A(e,h)},F=function(e){var n=e.target.value,t=d.value||[];if(d.onKeyDown&&d.onKeyDown(e),!e.defaultPrevented)switch(e.key){case"Backspace":0===n.length&&t.length>0&&A(e,t.length-1);break;case"Enter":n&&n.trim().length&&(!d.max||d.max>t.length)&&N(e,n,!0);break;case"ArrowLeft":0===n.length&&t&&t.length>0&&o.DomHandler.focus(S.current);break;case"ArrowRight":e.stopPropagation();break;default:d.keyfilter&&l.KeyFilter.onKeyPress(e,d.keyfilter),L()&&e.preventDefault()}},B=function(e,n,t){d.onChange&&d.onChange({originalEvent:e,value:n,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:d.name,id:d.id,value:n}}),I.current.value="",t&&e.preventDefault()},K=function(e){var n,t=null===(n=e.target.value)||void 0===n?void 0:n.trim();if(t!==d.separator){if(d.separator&&t.endsWith(d.separator)){var r=t.slice(0,-1);N(e,r)}}else I.current.value=""},U=function(e){if(d.separator){var n=d.separator.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t"),t=(e.clipboardData||window.clipboardData).getData("Text");if(d.keyfilter&&l.KeyFilter.onPaste(e,d.keyfilter),t){var r=d.value||[],i=t.split(n);i=i.filter((function(e){return(d.allowDuplicate||-1===r.indexOf(e))&&e.trim().length})),r=[].concat(g(r),g(i)),B(e,r,!0)}}},q=function(){y(!0)},H=function(){O(-1),y(!1)},M=function(e){if(d.addOnBlur){var n=e.target.value,t=d.value||[];n&&n.trim().length&&(!d.max||d.max>t.length)&&N(e,n,!0)}y(!1),d.onBlur&&d.onBlur(e)},L=function(){return d.max&&d.value&&d.max===d.value.length},z=I.current&&I.current.value,J=c.useMemo((function(){return o.ObjectUtils.isNotEmpty(d.value)||o.ObjectUtils.isNotEmpty(z)}),[d.value,z]),V=function(e,n){return o.ObjectUtils.getPropValue(d.removable,{value:e,index:n,props:d})};c.useImperativeHandle(u,(function(){return{props:d,focus:function(){return o.DomHandler.focus(I.current)},getElement:function(){return E.current},getInput:function(){return I.current}}})),c.useEffect((function(){o.ObjectUtils.combinedRefs(I,d.inputRef)}),[I,d.inputRef]),r.useMountEffect((function(){d.autoFocus&&o.DomHandler.focus(I.current,d.autoFocus)}));var W,X,Y,$,G,Q=function(e,n){if(!d.disabled&&!d.readOnly&&V(e,n)){var t=p({className:P("removeTokenIcon"),onClick:function(e){return A(e,n)},"aria-hidden":"true"},k("removeTokenIcon"));return o.IconUtils.getJSXIcon(d.removeIcon||c.createElement(i.TimesCircleIcon,t),D({},t),{props:d})}return null},Z=function(e,n){var t=d.itemTemplate?d.itemTemplate(e):e,r=p({className:P("label")},k("label")),i=c.createElement("span",r,t),l=Q(e,n),a=p({id:d.inputId+"_chips_item_"+n,role:"option","aria-label":e,className:P("token",{focusedIndex:h,index:n}),"aria-selected":!0,"aria-setsize":d.value.length,"aria-posinset":n+1,"data-p-highlight":!0,"data-p-focused":h===n},k("token"));return c.createElement("li",s({},a,{key:"".concat(n,"_").concat(e)}),i,l)},ee=o.ObjectUtils.isNotEmpty(d.tooltip),ne=j.getOtherProps(d),te=o.ObjectUtils.reduceKeys(ne,o.DomHandler.ARIA_PROPS),re=(Y=d.value?d.value.map(Z):null,W=p({className:P("inputToken")},k("inputToken")),X=p(D({id:d.inputId,ref:I,placeholder:d.placeholder,type:"text",enterKeyHint:"enter",name:d.name,disabled:d.disabled||L(),onKeyDown:function(e){return F(e)},onChange:function(e){return K(e)},onPaste:function(e){return U(e)},onFocus:function(e){return n=e,y(!0),O(null),void(d.onFocus&&d.onFocus(n));var n},onBlur:function(e){return M(e)},readOnly:d.readOnly},te),k("input")),$=c.createElement("li",W,c.createElement("input",X)),G=p({ref:S,className:P("container",{context:f}),onClick:function(e){o.DomHandler.focus(I.current)},onKeyDown:function(e){return R(e)},tabIndex:-1,role:"listbox","aria-orientation":"horizontal","aria-labelledby":d.ariaLabelledby,"aria-label":d.ariaLabel,"aria-activedescendant":v?null!==h?"".concat(d.inputId,"_chips_item_").concat(h):null:void 0,"data-p-disabled":d.disabled,"data-p-focus":v,onFocus:q,onBlur:H},k("container")),c.createElement("ul",G,Y,$)),ie=p({id:d.id,ref:E,className:o.classNames(d.className,P("root",{isFilled:J,focusedState:v,disabled:d.disabled,invalid:d.invalid})),style:d.style},k("root"));return c.createElement(c.Fragment,null,c.createElement("div",ie,re),ee&&c.createElement(a.Tooltip,s({target:I,content:d.tooltip,pt:k("tooltip")},d.tooltipOptions)))})));E.displayName="Chips",exports.Chips=E;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),n=require("primereact/api"),t=require("primereact/componentbase"),r=require("primereact/hooks"),i=require("primereact/icons/timescircle"),l=require("primereact/keyfilter"),a=require("primereact/tooltip"),o=require("primereact/utils");function u(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var c=u(e);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(null,arguments)}function p(e){return p="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},p(e)}function f(e,n){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function d(e){var n=f(e,"string");return"symbol"==p(n)?n:n+""}function m(e,n,t){return(n=d(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function y(e){if(Array.isArray(e))return v(e)}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(e,n){if(e){if("string"==typeof e)return v(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,n):void 0}}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e){return y(e)||b(e)||h(e)||g()}function k(e){if(Array.isArray(e))return e}function w(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,l,a,o=[],u=!0,c=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=l.call(t)).done)&&(o.push(r.value),o.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}function x(){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 j(e,n){return k(e)||w(e,n)||h(e,n)||x()}var P=t.ComponentBase.extend({defaultProps:{__TYPE:"Chips",addOnBlur:null,allowDuplicate:!0,ariaLabelledBy:null,autoFocus:!1,className:null,disabled:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,itemTemplate:null,keyfilter:null,max:null,name:null,onAdd:null,onBlur:null,onChange:null,onFocus:null,onKeyDown:null,onRemove:null,placeholder:null,readOnly:!1,removable:!0,removeIcon:null,separator:null,style:null,tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:{removeTokenIcon:"p-chips-token-icon",label:"p-chips-token-label",token:function(e){return o.classNames("p-chips-token",{"p-focus":e.focusedIndex===e.index})},inputToken:"p-chips-input-token",container:function(e){var n=e.props,t=e.context;return o.classNames("p-inputtext p-chips-multiple-container",{"p-variant-filled":n.variant?"filled"===n.variant:t&&"filled"===t.inputStyle})},root:function(e){var n=e.focusedState;return o.classNames("p-chips p-component p-inputwrapper",{"p-inputwrapper-filled":e.isFilled,"p-inputwrapper-focus":n,"p-disabled":e.disabled,"p-invalid":e.invalid,"p-focus":n})}},styles:"\n@layer primereact {\n .p-chips {\n display: inline-flex;\n }\n \n .p-chips-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n \n .p-chips-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n \n .p-chips-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n }\n \n .p-chips-token-icon {\n cursor: pointer;\n }\n \n .p-chips-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n }\n \n .p-fluid .p-chips {\n display: flex;\n }\n \n .p-chips-icon-left,\n .p-chips-icon-right {\n position: relative;\n display: inline-block;\n }\n \n .p-chips-icon-left > i,\n .p-chips-icon-right > i,\n .p-chips-icon-left > svg,\n .p-chips-icon-right > svg,\n .p-chips-icon-left > .p-chips-prefix,\n .p-chips-icon-right > .p-chips-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n \n .p-fluid .p-chips-icon-left,\n .p-fluid .p-chips-icon-right {\n display: block;\n width: 100%;\n }\n}\n"}});function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){m(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=c.memo(c.forwardRef((function(e,u){var p=r.useMergeProps(),f=c.useContext(n.PrimeReactContext),d=P.getProps(e,f),m=j(c.useState(!1),2),v=m[0],y=m[1],b=j(c.useState(null),2),h=b[0],g=b[1],k=P.setMetaData({props:d,state:{focused:v}}),w=k.ptm,x=k.cx;t.useHandleStyle(P.css.styles,k.isUnstyled,{name:"chips"});var D=c.useRef(null),S=c.useRef(null),I=c.useRef(d.inputRef),A=function(e,n){if(!d.disabled||!d.readOnly){var t=O(d.value),r=t.splice(n,1)[0];V(r,n)&&(d.onRemove&&d.onRemove({originalEvent:e,value:r}),d.onChange&&d.onChange({originalEvent:e,value:t,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:d.name,id:d.id,value:t}}))}},N=function(e,n,t){if(n&&n.trim().length){var r=d.value?O(d.value):[];if(d.allowDuplicate||-1===r.indexOf(n)){var i=!0;d.onAdd&&(i=d.onAdd({originalEvent:e,value:n})),!1!==i&&r.push(n)}B(e,r,t)}},R=function(e){switch(e.code){case"ArrowLeft":C();break;case"ArrowRight":T();break;case"Backspace":_(e)}},C=function(){var e=h;0===I.current.value.length&&d.value&&d.value.length>0&&(e=null===e?d.value.length-1:e-1)<0&&(e=0),g(e)},T=function(){var e=h;0===I.current.value.length&&d.value&&d.value.length>0&&(e===d.value.length-1?(e=null,I.current.focus()):e++),g(e)},_=function(e){null!==h&&A(e,h)},F=function(e){var n=e.target.value,t=d.value||[];if(d.onKeyDown&&d.onKeyDown(e),!e.defaultPrevented)switch(e.key){case"Backspace":0===n.length&&t.length>0&&A(e,t.length-1);break;case"Enter":n&&n.trim().length&&(!d.max||d.max>t.length)&&N(e,n,!0);break;case"ArrowLeft":0===n.length&&t&&t.length>0&&o.DomHandler.focus(S.current);break;case"ArrowRight":e.stopPropagation();break;default:d.keyfilter&&l.KeyFilter.onKeyPress(e,d.keyfilter),L()&&e.preventDefault()}},B=function(e,n,t){d.onChange&&d.onChange({originalEvent:e,value:n,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:d.name,id:d.id,value:n}}),I.current.value="",t&&e.preventDefault()},K=function(e){var n,t=null===(n=e.target.value)||void 0===n?void 0:n.trim();if(t!==d.separator){if(d.separator&&t.endsWith(d.separator)){var r=t.slice(0,-1);N(e,r)}}else I.current.value=""},U=function(e){if(d.separator){var n=d.separator.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t"),t=(e.clipboardData||window.clipboardData).getData("Text");if(d.keyfilter&&l.KeyFilter.onPaste(e,d.keyfilter),t){var r=d.value||[],i=t.split(n);i=i.filter((function(e){return(d.allowDuplicate||-1===r.indexOf(e))&&e.trim().length})),r=[].concat(O(r),O(i)),B(e,r,!0)}}},q=function(){y(!0)},H=function(){g(-1),y(!1)},M=function(e){if(d.addOnBlur){var n=e.target.value,t=d.value||[];n&&n.trim().length&&(!d.max||d.max>t.length)&&N(e,n,!0)}y(!1),d.onBlur&&d.onBlur(e)},L=function(){return d.max&&d.value&&d.max===d.value.length},z=I.current&&I.current.value,J=c.useMemo((function(){return o.ObjectUtils.isNotEmpty(d.value)||o.ObjectUtils.isNotEmpty(z)}),[d.value,z]),V=function(e,n){return o.ObjectUtils.getPropValue(d.removable,{value:e,index:n,props:d})};c.useImperativeHandle(u,(function(){return{props:d,focus:function(){return o.DomHandler.focus(I.current)},getElement:function(){return D.current},getInput:function(){return I.current}}})),c.useEffect((function(){o.ObjectUtils.combinedRefs(I,d.inputRef)}),[I,d.inputRef]),r.useMountEffect((function(){d.autoFocus&&o.DomHandler.focus(I.current,d.autoFocus)}));var W,X,Y,$,G,Q=function(e,n){if(!d.disabled&&!d.readOnly&&V(e,n)){var t=p({className:x("removeTokenIcon"),onClick:function(e){return A(e,n)},"aria-hidden":"true"},w("removeTokenIcon"));return o.IconUtils.getJSXIcon(d.removeIcon||c.createElement(i.TimesCircleIcon,t),E({},t),{props:d})}return null},Z=function(e,n){var t=d.itemTemplate?d.itemTemplate(e):e,r=p({className:x("label")},w("label")),i=c.createElement("span",r,t),l=Q(e,n),a=p({id:d.inputId+"_chips_item_"+n,role:"option","aria-label":e,className:x("token",{focusedIndex:h,index:n}),"aria-selected":!0,"aria-setsize":d.value.length,"aria-posinset":n+1,"data-p-highlight":!0,"data-p-focused":h===n},w("token"));return c.createElement("li",s({},a,{key:"".concat(n,"_").concat(e)}),i,l)},ee=o.ObjectUtils.isNotEmpty(d.tooltip),ne=P.getOtherProps(d),te=o.ObjectUtils.reduceKeys(ne,o.DomHandler.ARIA_PROPS),re=(Y=d.value?d.value.map(Z):null,W=p({className:x("inputToken")},w("inputToken")),X=p(E({id:d.inputId,ref:I,placeholder:d.placeholder,type:"text",enterKeyHint:"enter",name:d.name,disabled:d.disabled||L(),onKeyDown:function(e){return F(e)},onChange:function(e){return K(e)},onPaste:function(e){return U(e)},onFocus:function(e){return n=e,y(!0),g(null),void(d.onFocus&&d.onFocus(n));var n},onBlur:function(e){return M(e)},readOnly:d.readOnly},te),w("input")),$=c.createElement("li",s({},W,{key:d.inputId+"_chips_input"}),c.createElement("input",X)),G=p({ref:S,className:x("container",{context:f}),onClick:function(e){o.DomHandler.focus(I.current)},onKeyDown:function(e){return R(e)},tabIndex:-1,role:"listbox","aria-orientation":"horizontal","aria-labelledby":d.ariaLabelledby,"aria-label":d.ariaLabel,"aria-activedescendant":v?null!==h?"".concat(d.inputId,"_chips_item_").concat(h):null:void 0,"data-p-disabled":d.disabled,"data-p-focus":v,onFocus:q,onBlur:H},w("container")),c.createElement("ul",G,Y,$)),ie=p({id:d.id,ref:D,className:o.classNames(d.className,x("root",{isFilled:J,focusedState:v,disabled:d.disabled,invalid:d.invalid})),style:d.style},w("root"));return c.createElement(c.Fragment,null,c.createElement("div",ie,re),ee&&c.createElement(a.Tooltip,s({target:I,content:d.tooltip,pt:w("tooltip")},d.tooltipOptions)))})));S.displayName="Chips",exports.Chips=S;
|
package/chips/chips.esm.js
CHANGED
|
@@ -9,18 +9,13 @@ import { Tooltip } from 'primereact/tooltip';
|
|
|
9
9
|
import { classNames, ObjectUtils, DomHandler, IconUtils } from 'primereact/utils';
|
|
10
10
|
|
|
11
11
|
function _extends() {
|
|
12
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
13
|
-
for (var
|
|
14
|
-
var
|
|
15
|
-
for (var
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
-
target[key] = source[key];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
12
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
13
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
14
|
+
var t = arguments[e];
|
|
15
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
20
16
|
}
|
|
21
|
-
return
|
|
22
|
-
};
|
|
23
|
-
return _extends.apply(this, arguments);
|
|
17
|
+
return n;
|
|
18
|
+
}, _extends.apply(null, arguments);
|
|
24
19
|
}
|
|
25
20
|
|
|
26
21
|
function _typeof(o) {
|
|
@@ -33,70 +28,63 @@ function _typeof(o) {
|
|
|
33
28
|
}, _typeof(o);
|
|
34
29
|
}
|
|
35
30
|
|
|
36
|
-
function
|
|
37
|
-
if (
|
|
38
|
-
var
|
|
39
|
-
if (
|
|
40
|
-
var
|
|
41
|
-
if (
|
|
31
|
+
function toPrimitive(t, r) {
|
|
32
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
33
|
+
var e = t[Symbol.toPrimitive];
|
|
34
|
+
if (void 0 !== e) {
|
|
35
|
+
var i = e.call(t, r || "default");
|
|
36
|
+
if ("object" != _typeof(i)) return i;
|
|
42
37
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
43
38
|
}
|
|
44
|
-
return (
|
|
39
|
+
return ("string" === r ? String : Number)(t);
|
|
45
40
|
}
|
|
46
41
|
|
|
47
|
-
function
|
|
48
|
-
var
|
|
49
|
-
return _typeof(
|
|
42
|
+
function toPropertyKey(t) {
|
|
43
|
+
var i = toPrimitive(t, "string");
|
|
44
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
50
45
|
}
|
|
51
46
|
|
|
52
|
-
function _defineProperty(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
writable: true
|
|
60
|
-
});
|
|
61
|
-
} else {
|
|
62
|
-
obj[key] = value;
|
|
63
|
-
}
|
|
64
|
-
return obj;
|
|
47
|
+
function _defineProperty(e, r, t) {
|
|
48
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
49
|
+
value: t,
|
|
50
|
+
enumerable: !0,
|
|
51
|
+
configurable: !0,
|
|
52
|
+
writable: !0
|
|
53
|
+
}) : e[r] = t, e;
|
|
65
54
|
}
|
|
66
55
|
|
|
67
|
-
function _arrayLikeToArray(
|
|
68
|
-
|
|
69
|
-
for (var
|
|
70
|
-
return
|
|
56
|
+
function _arrayLikeToArray(r, a) {
|
|
57
|
+
(null == a || a > r.length) && (a = r.length);
|
|
58
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
59
|
+
return n;
|
|
71
60
|
}
|
|
72
61
|
|
|
73
|
-
function _arrayWithoutHoles(
|
|
74
|
-
if (Array.isArray(
|
|
62
|
+
function _arrayWithoutHoles(r) {
|
|
63
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
75
64
|
}
|
|
76
65
|
|
|
77
|
-
function _iterableToArray(
|
|
78
|
-
if (typeof Symbol
|
|
66
|
+
function _iterableToArray(r) {
|
|
67
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
79
68
|
}
|
|
80
69
|
|
|
81
|
-
function _unsupportedIterableToArray(
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
70
|
+
function _unsupportedIterableToArray(r, a) {
|
|
71
|
+
if (r) {
|
|
72
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
73
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
74
|
+
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;
|
|
75
|
+
}
|
|
88
76
|
}
|
|
89
77
|
|
|
90
78
|
function _nonIterableSpread() {
|
|
91
79
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
92
80
|
}
|
|
93
81
|
|
|
94
|
-
function _toConsumableArray(
|
|
95
|
-
return _arrayWithoutHoles(
|
|
82
|
+
function _toConsumableArray(r) {
|
|
83
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
96
84
|
}
|
|
97
85
|
|
|
98
|
-
function _arrayWithHoles(
|
|
99
|
-
if (Array.isArray(
|
|
86
|
+
function _arrayWithHoles(r) {
|
|
87
|
+
if (Array.isArray(r)) return r;
|
|
100
88
|
}
|
|
101
89
|
|
|
102
90
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -131,8 +119,8 @@ function _nonIterableRest() {
|
|
|
131
119
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
132
120
|
}
|
|
133
121
|
|
|
134
|
-
function _slicedToArray(
|
|
135
|
-
return _arrayWithHoles(
|
|
122
|
+
function _slicedToArray(r, e) {
|
|
123
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
136
124
|
}
|
|
137
125
|
|
|
138
126
|
var styles = "\n@layer primereact {\n .p-chips {\n display: inline-flex;\n }\n \n .p-chips-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n \n .p-chips-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n \n .p-chips-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n }\n \n .p-chips-token-icon {\n cursor: pointer;\n }\n \n .p-chips-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n }\n \n .p-fluid .p-chips {\n display: flex;\n }\n \n .p-chips-icon-left,\n .p-chips-icon-right {\n position: relative;\n display: inline-block;\n }\n \n .p-chips-icon-left > i,\n .p-chips-icon-right > i,\n .p-chips-icon-left > svg,\n .p-chips-icon-right > svg,\n .p-chips-icon-left > .p-chips-prefix,\n .p-chips-icon-right > .p-chips-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n \n .p-fluid .p-chips-icon-left,\n .p-fluid .p-chips-icon-right {\n display: block;\n width: 100%;\n }\n}\n";
|
|
@@ -552,7 +540,9 @@ var Chips = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPr
|
|
|
552
540
|
},
|
|
553
541
|
readOnly: props.readOnly
|
|
554
542
|
}, ariaProps), ptm('input'));
|
|
555
|
-
return /*#__PURE__*/React.createElement("li",
|
|
543
|
+
return /*#__PURE__*/React.createElement("li", _extends({}, inputTokenProps, {
|
|
544
|
+
key: props.inputId + '_chips_input'
|
|
545
|
+
}), /*#__PURE__*/React.createElement("input", inputProps));
|
|
556
546
|
};
|
|
557
547
|
var createItems = function createItems() {
|
|
558
548
|
return props.value ? props.value.map(createItem) : null;
|
package/chips/chips.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as n}from"primereact/api";import{ComponentBase as t,useHandleStyle as r}from"primereact/componentbase";import{useMergeProps as o,useMountEffect as i}from"primereact/hooks";import{TimesCircleIcon as l}from"primereact/icons/timescircle";import{KeyFilter as a}from"primereact/keyfilter";import{Tooltip as u}from"primereact/tooltip";import{classNames as c,ObjectUtils as p,DomHandler as s,IconUtils as f}from"primereact/utils";function d(){return d=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},d.apply(this,arguments)}function m(e){return m="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},m(e)}function v(e,n){if("object"!==m(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function y(e){var n=v(e,"string");return"symbol"===m(n)?n:String(n)}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function b(e){if(Array.isArray(e))return h(e)}function g(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function w(e,n){if(e){if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e){return b(e)||g(e)||w(e)||k()}function x(e){if(Array.isArray(e))return e}function P(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,l,a=[],u=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=i.call(t)).done)&&(a.push(r.value),a.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}function E(){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 S(e,n){return x(e)||P(e,n)||w(e,n)||E()}var j=t.extend({defaultProps:{__TYPE:"Chips",addOnBlur:null,allowDuplicate:!0,ariaLabelledBy:null,autoFocus:!1,className:null,disabled:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,itemTemplate:null,keyfilter:null,max:null,name:null,onAdd:null,onBlur:null,onChange:null,onFocus:null,onKeyDown:null,onRemove:null,placeholder:null,readOnly:!1,removable:!0,removeIcon:null,separator:null,style:null,tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:{removeTokenIcon:"p-chips-token-icon",label:"p-chips-token-label",token:function(e){return c("p-chips-token",{"p-focus":e.focusedIndex===e.index})},inputToken:"p-chips-input-token",container:function(e){var n=e.props,t=e.context;return c("p-inputtext p-chips-multiple-container",{"p-variant-filled":n.variant?"filled"===n.variant:t&&"filled"===t.inputStyle})},root:function(e){var n=e.focusedState;return c("p-chips p-component p-inputwrapper",{"p-inputwrapper-filled":e.isFilled,"p-inputwrapper-focus":n,"p-disabled":e.disabled,"p-invalid":e.invalid,"p-focus":n})}},styles:"\n@layer primereact {\n .p-chips {\n display: inline-flex;\n }\n \n .p-chips-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n \n .p-chips-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n \n .p-chips-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n }\n \n .p-chips-token-icon {\n cursor: pointer;\n }\n \n .p-chips-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n }\n \n .p-fluid .p-chips {\n display: flex;\n }\n \n .p-chips-icon-left,\n .p-chips-icon-right {\n position: relative;\n display: inline-block;\n }\n \n .p-chips-icon-left > i,\n .p-chips-icon-right > i,\n .p-chips-icon-left > svg,\n .p-chips-icon-right > svg,\n .p-chips-icon-left > .p-chips-prefix,\n .p-chips-icon-right > .p-chips-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n \n .p-fluid .p-chips-icon-left,\n .p-fluid .p-chips-icon-right {\n display: block;\n width: 100%;\n }\n}\n"}});function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){var r,o,i;r=e,i=t[n],(o=y(o=n))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=e.memo(e.forwardRef((function(t,m){var v=o(),y=e.useContext(n),h=j.getProps(t,y),b=S(e.useState(!1),2),g=b[0],w=b[1],k=S(e.useState(null),2),x=k[0],P=k[1],E=j.setMetaData({props:h,state:{focused:g}}),D=E.ptm,A=E.cx;r(j.css.styles,E.isUnstyled,{name:"chips"});var R=e.useRef(null),T=e.useRef(null),N=e.useRef(h.inputRef),C=function(e,n){if(!h.disabled||!h.readOnly){var t=O(h.value),r=t.splice(n,1)[0];q(r,n)&&(h.onRemove&&h.onRemove({originalEvent:e,value:r}),h.onChange&&h.onChange({originalEvent:e,value:t,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:h.name,id:h.id,value:t}}))}},F=function(e,n,t){if(n&&n.trim().length){var r=h.value?O(h.value):[];if(h.allowDuplicate||-1===r.indexOf(n)){var o=!0;h.onAdd&&(o=h.onAdd({originalEvent:e,value:n})),!1!==o&&r.push(n)}z(e,r,t)}},B=function(e){switch(e.code){case"ArrowLeft":_();break;case"ArrowRight":K();break;case"Backspace":L(e)}},_=function(){var e=x;0===N.current.value.length&&h.value&&h.value.length>0&&(e=null===e?h.value.length-1:e-1)<0&&(e=0),P(e)},K=function(){var e=x;0===N.current.value.length&&h.value&&h.value.length>0&&(e===h.value.length-1?(e=null,N.current.focus()):e++),P(e)},L=function(e){null!==x&&C(e,x)},M=function(e){var n=e.target.value,t=h.value||[];if(h.onKeyDown&&h.onKeyDown(e),!e.defaultPrevented)switch(e.key){case"Backspace":0===n.length&&t.length>0&&C(e,t.length-1);break;case"Enter":n&&n.trim().length&&(!h.max||h.max>t.length)&&F(e,n,!0);break;case"ArrowLeft":0===n.length&&t&&t.length>0&&s.focus(T.current);break;case"ArrowRight":e.stopPropagation();break;default:h.keyfilter&&a.onKeyPress(e,h.keyfilter),X()&&e.preventDefault()}},z=function(e,n,t){h.onChange&&h.onChange({originalEvent:e,value:n,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:h.name,id:h.id,value:n}}),N.current.value="",t&&e.preventDefault()},H=function(e){var n,t=null===(n=e.target.value)||void 0===n?void 0:n.trim();if(t!==h.separator){if(h.separator&&t.endsWith(h.separator)){var r=t.slice(0,-1);F(e,r)}}else N.current.value=""},U=function(e){if(h.separator){var n=h.separator.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t"),t=(e.clipboardData||window.clipboardData).getData("Text");if(h.keyfilter&&a.onPaste(e,h.keyfilter),t){var r=h.value||[],o=t.split(n);o=o.filter((function(e){return(h.allowDuplicate||-1===r.indexOf(e))&&e.trim().length})),r=[].concat(O(r),O(o)),z(e,r,!0)}}},J=function(){w(!0)},V=function(){P(-1),w(!1)},W=function(e){if(h.addOnBlur){var n=e.target.value,t=h.value||[];n&&n.trim().length&&(!h.max||h.max>t.length)&&F(e,n,!0)}w(!1),h.onBlur&&h.onBlur(e)},X=function(){return h.max&&h.value&&h.max===h.value.length},Y=N.current&&N.current.value,$=e.useMemo((function(){return p.isNotEmpty(h.value)||p.isNotEmpty(Y)}),[h.value,Y]),q=function(e,n){return p.getPropValue(h.removable,{value:e,index:n,props:h})};e.useImperativeHandle(m,(function(){return{props:h,focus:function(){return s.focus(N.current)},getElement:function(){return R.current},getInput:function(){return N.current}}})),e.useEffect((function(){p.combinedRefs(N,h.inputRef)}),[N,h.inputRef]),i((function(){h.autoFocus&&s.focus(N.current,h.autoFocus)}));var G,Q,Z,ee,ne,te=function(n,t){if(!h.disabled&&!h.readOnly&&q(n,t)){var r=v({className:A("removeTokenIcon"),onClick:function(e){return C(e,t)},"aria-hidden":"true"},D("removeTokenIcon"));return f.getJSXIcon(h.removeIcon||e.createElement(l,r),I({},r),{props:h})}return null},re=function(n,t){var r=h.itemTemplate?h.itemTemplate(n):n,o=v({className:A("label")},D("label")),i=e.createElement("span",o,r),l=te(n,t),a=v({id:h.inputId+"_chips_item_"+t,role:"option","aria-label":n,className:A("token",{focusedIndex:x,index:t}),"aria-selected":!0,"aria-setsize":h.value.length,"aria-posinset":t+1,"data-p-highlight":!0,"data-p-focused":x===t},D("token"));return e.createElement("li",d({},a,{key:"".concat(t,"_").concat(n)}),i,l)},oe=p.isNotEmpty(h.tooltip),ie=j.getOtherProps(h),le=p.reduceKeys(ie,s.ARIA_PROPS),ae=(Z=h.value?h.value.map(re):null,G=v({className:A("inputToken")},D("inputToken")),Q=v(I({id:h.inputId,ref:N,placeholder:h.placeholder,type:"text",enterKeyHint:"enter",name:h.name,disabled:h.disabled||X(),onKeyDown:function(e){return M(e)},onChange:function(e){return H(e)},onPaste:function(e){return U(e)},onFocus:function(e){return n=e,w(!0),P(null),void(h.onFocus&&h.onFocus(n));var n},onBlur:function(e){return W(e)},readOnly:h.readOnly},le),D("input")),ee=e.createElement("li",G,e.createElement("input",Q)),ne=v({ref:T,className:A("container",{context:y}),onClick:function(e){s.focus(N.current)},onKeyDown:function(e){return B(e)},tabIndex:-1,role:"listbox","aria-orientation":"horizontal","aria-labelledby":h.ariaLabelledby,"aria-label":h.ariaLabel,"aria-activedescendant":g?null!==x?"".concat(h.inputId,"_chips_item_").concat(x):null:void 0,"data-p-disabled":h.disabled,"data-p-focus":g,onFocus:J,onBlur:V},D("container")),e.createElement("ul",ne,Z,ee)),ue=v({id:h.id,ref:R,className:c(h.className,A("root",{isFilled:$,focusedState:g,disabled:h.disabled,invalid:h.invalid})),style:h.style},D("root"));return e.createElement(e.Fragment,null,e.createElement("div",ue,ae),oe&&e.createElement(u,d({target:N,content:h.tooltip,pt:D("tooltip")},h.tooltipOptions)))})));A.displayName="Chips";export{A as Chips};
|
|
1
|
+
import*as e from"react";import{PrimeReactContext as n}from"primereact/api";import{ComponentBase as t,useHandleStyle as r}from"primereact/componentbase";import{useMergeProps as i,useMountEffect as o}from"primereact/hooks";import{TimesCircleIcon as l}from"primereact/icons/timescircle";import{KeyFilter as a}from"primereact/keyfilter";import{Tooltip as u}from"primereact/tooltip";import{classNames as c,ObjectUtils as p,DomHandler as s,IconUtils as f}from"primereact/utils";function d(){return d=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},d.apply(null,arguments)}function m(e){return m="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},m(e)}function v(e,n){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function y(e){var n=v(e,"string");return"symbol"==m(n)?n:n+""}function h(e,n,t){return(n=y(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function g(e){if(Array.isArray(e))return b(e)}function k(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function w(e,n){if(e){if("string"==typeof e)return b(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,n):void 0}}function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e){return g(e)||k(e)||w(e)||x()}function P(e){if(Array.isArray(e))return e}function E(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o,l,a=[],u=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=o.call(t)).done)&&(a.push(r.value),a.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw i}}return a}}function S(){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 D(e,n){return P(e)||E(e,n)||w(e,n)||S()}var I=t.extend({defaultProps:{__TYPE:"Chips",addOnBlur:null,allowDuplicate:!0,ariaLabelledBy:null,autoFocus:!1,className:null,disabled:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,itemTemplate:null,keyfilter:null,max:null,name:null,onAdd:null,onBlur:null,onChange:null,onFocus:null,onKeyDown:null,onRemove:null,placeholder:null,readOnly:!1,removable:!0,removeIcon:null,separator:null,style:null,tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:{removeTokenIcon:"p-chips-token-icon",label:"p-chips-token-label",token:function(e){return c("p-chips-token",{"p-focus":e.focusedIndex===e.index})},inputToken:"p-chips-input-token",container:function(e){var n=e.props,t=e.context;return c("p-inputtext p-chips-multiple-container",{"p-variant-filled":n.variant?"filled"===n.variant:t&&"filled"===t.inputStyle})},root:function(e){var n=e.focusedState;return c("p-chips p-component p-inputwrapper",{"p-inputwrapper-filled":e.isFilled,"p-inputwrapper-focus":n,"p-disabled":e.disabled,"p-invalid":e.invalid,"p-focus":n})}},styles:"\n@layer primereact {\n .p-chips {\n display: inline-flex;\n }\n \n .p-chips-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n }\n \n .p-chips-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n \n .p-chips-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n }\n \n .p-chips-token-icon {\n cursor: pointer;\n }\n \n .p-chips-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n }\n \n .p-fluid .p-chips {\n display: flex;\n }\n \n .p-chips-icon-left,\n .p-chips-icon-right {\n position: relative;\n display: inline-block;\n }\n \n .p-chips-icon-left > i,\n .p-chips-icon-right > i,\n .p-chips-icon-left > svg,\n .p-chips-icon-right > svg,\n .p-chips-icon-left > .p-chips-prefix,\n .p-chips-icon-right > .p-chips-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n }\n \n .p-fluid .p-chips-icon-left,\n .p-fluid .p-chips-icon-right {\n display: block;\n width: 100%;\n }\n}\n"}});function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){h(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var R=e.memo(e.forwardRef((function(t,m){var v=i(),y=e.useContext(n),h=I.getProps(t,y),b=D(e.useState(!1),2),g=b[0],k=b[1],w=D(e.useState(null),2),x=w[0],P=w[1],E=I.setMetaData({props:h,state:{focused:g}}),S=E.ptm,j=E.cx;r(I.css.styles,E.isUnstyled,{name:"chips"});var R=e.useRef(null),T=e.useRef(null),N=e.useRef(h.inputRef),C=function(e,n){if(!h.disabled||!h.readOnly){var t=O(h.value),r=t.splice(n,1)[0];q(r,n)&&(h.onRemove&&h.onRemove({originalEvent:e,value:r}),h.onChange&&h.onChange({originalEvent:e,value:t,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:h.name,id:h.id,value:t}}))}},_=function(e,n,t){if(n&&n.trim().length){var r=h.value?O(h.value):[];if(h.allowDuplicate||-1===r.indexOf(n)){var i=!0;h.onAdd&&(i=h.onAdd({originalEvent:e,value:n})),!1!==i&&r.push(n)}z(e,r,t)}},F=function(e){switch(e.code){case"ArrowLeft":B();break;case"ArrowRight":K();break;case"Backspace":L(e)}},B=function(){var e=x;0===N.current.value.length&&h.value&&h.value.length>0&&(e=null===e?h.value.length-1:e-1)<0&&(e=0),P(e)},K=function(){var e=x;0===N.current.value.length&&h.value&&h.value.length>0&&(e===h.value.length-1?(e=null,N.current.focus()):e++),P(e)},L=function(e){null!==x&&C(e,x)},M=function(e){var n=e.target.value,t=h.value||[];if(h.onKeyDown&&h.onKeyDown(e),!e.defaultPrevented)switch(e.key){case"Backspace":0===n.length&&t.length>0&&C(e,t.length-1);break;case"Enter":n&&n.trim().length&&(!h.max||h.max>t.length)&&_(e,n,!0);break;case"ArrowLeft":0===n.length&&t&&t.length>0&&s.focus(T.current);break;case"ArrowRight":e.stopPropagation();break;default:h.keyfilter&&a.onKeyPress(e,h.keyfilter),X()&&e.preventDefault()}},z=function(e,n,t){h.onChange&&h.onChange({originalEvent:e,value:n,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:h.name,id:h.id,value:n}}),N.current.value="",t&&e.preventDefault()},H=function(e){var n,t=null===(n=e.target.value)||void 0===n?void 0:n.trim();if(t!==h.separator){if(h.separator&&t.endsWith(h.separator)){var r=t.slice(0,-1);_(e,r)}}else N.current.value=""},U=function(e){if(h.separator){var n=h.separator.replace("\\n","\n").replace("\\r","\r").replace("\\t","\t"),t=(e.clipboardData||window.clipboardData).getData("Text");if(h.keyfilter&&a.onPaste(e,h.keyfilter),t){var r=h.value||[],i=t.split(n);i=i.filter((function(e){return(h.allowDuplicate||-1===r.indexOf(e))&&e.trim().length})),r=[].concat(O(r),O(i)),z(e,r,!0)}}},J=function(){k(!0)},V=function(){P(-1),k(!1)},W=function(e){if(h.addOnBlur){var n=e.target.value,t=h.value||[];n&&n.trim().length&&(!h.max||h.max>t.length)&&_(e,n,!0)}k(!1),h.onBlur&&h.onBlur(e)},X=function(){return h.max&&h.value&&h.max===h.value.length},Y=N.current&&N.current.value,$=e.useMemo((function(){return p.isNotEmpty(h.value)||p.isNotEmpty(Y)}),[h.value,Y]),q=function(e,n){return p.getPropValue(h.removable,{value:e,index:n,props:h})};e.useImperativeHandle(m,(function(){return{props:h,focus:function(){return s.focus(N.current)},getElement:function(){return R.current},getInput:function(){return N.current}}})),e.useEffect((function(){p.combinedRefs(N,h.inputRef)}),[N,h.inputRef]),o((function(){h.autoFocus&&s.focus(N.current,h.autoFocus)}));var G,Q,Z,ee,ne,te=function(n,t){if(!h.disabled&&!h.readOnly&&q(n,t)){var r=v({className:j("removeTokenIcon"),onClick:function(e){return C(e,t)},"aria-hidden":"true"},S("removeTokenIcon"));return f.getJSXIcon(h.removeIcon||e.createElement(l,r),A({},r),{props:h})}return null},re=function(n,t){var r=h.itemTemplate?h.itemTemplate(n):n,i=v({className:j("label")},S("label")),o=e.createElement("span",i,r),l=te(n,t),a=v({id:h.inputId+"_chips_item_"+t,role:"option","aria-label":n,className:j("token",{focusedIndex:x,index:t}),"aria-selected":!0,"aria-setsize":h.value.length,"aria-posinset":t+1,"data-p-highlight":!0,"data-p-focused":x===t},S("token"));return e.createElement("li",d({},a,{key:"".concat(t,"_").concat(n)}),o,l)},ie=p.isNotEmpty(h.tooltip),oe=I.getOtherProps(h),le=p.reduceKeys(oe,s.ARIA_PROPS),ae=(Z=h.value?h.value.map(re):null,G=v({className:j("inputToken")},S("inputToken")),Q=v(A({id:h.inputId,ref:N,placeholder:h.placeholder,type:"text",enterKeyHint:"enter",name:h.name,disabled:h.disabled||X(),onKeyDown:function(e){return M(e)},onChange:function(e){return H(e)},onPaste:function(e){return U(e)},onFocus:function(e){return n=e,k(!0),P(null),void(h.onFocus&&h.onFocus(n));var n},onBlur:function(e){return W(e)},readOnly:h.readOnly},le),S("input")),ee=e.createElement("li",d({},G,{key:h.inputId+"_chips_input"}),e.createElement("input",Q)),ne=v({ref:T,className:j("container",{context:y}),onClick:function(e){s.focus(N.current)},onKeyDown:function(e){return F(e)},tabIndex:-1,role:"listbox","aria-orientation":"horizontal","aria-labelledby":h.ariaLabelledby,"aria-label":h.ariaLabel,"aria-activedescendant":g?null!==x?"".concat(h.inputId,"_chips_item_").concat(x):null:void 0,"data-p-disabled":h.disabled,"data-p-focus":g,onFocus:J,onBlur:V},S("container")),e.createElement("ul",ne,Z,ee)),ue=v({id:h.id,ref:R,className:c(h.className,j("root",{isFilled:$,focusedState:g,disabled:h.disabled,invalid:h.invalid})),style:h.style},S("root"));return e.createElement(e.Fragment,null,e.createElement("div",ue,ae),ie&&e.createElement(u,d({target:N,content:h.tooltip,pt:S("tooltip")},h.tooltipOptions)))})));R.displayName="Chips";export{R as Chips};
|