primereact 10.8.3 → 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 +51 -63
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +51 -63
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +51 -63
- 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 +81 -80
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +81 -80
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +81 -80
- 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 +18 -24
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +18 -24
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +18 -24
- 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 +38 -50
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +38 -50
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +38 -50
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +25 -36
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +25 -36
- package/button/button.esm.min.js +1 -1
- package/button/button.js +25 -36
- package/button/button.min.js +1 -1
- package/buttongroup/buttongroup.cjs.js +1 -1
- package/buttongroup/buttongroup.esm.js +1 -1
- package/buttongroup/buttongroup.js +1 -1
- package/calendar/calendar.cjs.js +58 -68
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +59 -69
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +58 -68
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +44 -56
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +44 -56
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +44 -56
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +50 -62
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +50 -62
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +50 -62
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +1 -1
- package/chart/chart.esm.js +1 -1
- package/chart/chart.js +1 -1
- package/checkbox/checkbox.cjs.js +38 -50
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +38 -50
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +38 -50
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +40 -52
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +40 -52
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +40 -52
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +47 -57
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +47 -57
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +47 -57
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +38 -50
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +38 -50
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +38 -50
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +47 -54
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +47 -54
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +47 -54
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +38 -50
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +38 -50
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +38 -50
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +41 -54
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +41 -54
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +41 -54
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +42 -51
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +42 -51
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +42 -51
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1147 -1571
- package/core/core.min.js +67 -67
- package/csstransition/csstransition.cjs.js +18 -23
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +18 -23
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +18 -23
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +27 -33
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +27 -33
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +27 -33
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +135 -151
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +135 -151
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +135 -151
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +47 -59
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +47 -59
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +47 -59
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +14 -15
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.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 +47 -59
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +48 -60
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +47 -59
- package/dialog/dialog.min.js +1 -1
- package/dock/dock.cjs.js +44 -56
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +44 -56
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +44 -56
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +54 -68
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +54 -68
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +54 -68
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +38 -50
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +38 -50
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +38 -50
- 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 +50 -62
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +50 -62
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +50 -62
- package/fileupload/fileupload.min.js +1 -1
- package/floatlabel/floatlabel.cjs.js +1 -1
- package/floatlabel/floatlabel.esm.js +1 -1
- package/floatlabel/floatlabel.js +1 -1
- package/focustrap/focustrap.cjs.js +18 -24
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +18 -24
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +18 -24
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +46 -58
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +46 -58
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +46 -58
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +37 -47
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +37 -47
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +37 -47
- package/hooks/hooks.min.js +1 -1
- package/iconfield/iconfield.cjs.js +24 -35
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +24 -35
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +24 -35
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +7 -12
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +7 -12
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +7 -12
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +7 -12
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +7 -12
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +7 -12
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +7 -12
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +7 -12
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +7 -12
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +7 -12
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +7 -12
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +7 -12
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +7 -12
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +7 -12
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +7 -12
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +7 -12
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +7 -12
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +7 -12
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +7 -12
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +7 -12
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +7 -12
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +7 -12
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +7 -12
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +7 -12
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +7 -12
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +7 -12
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +7 -12
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +7 -12
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +7 -12
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +7 -12
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +7 -12
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +7 -12
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +7 -12
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +7 -12
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +7 -12
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +7 -12
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +7 -12
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +7 -12
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +7 -12
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +7 -12
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +7 -12
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +7 -12
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +7 -12
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +7 -12
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +7 -12
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +7 -12
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +7 -12
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +7 -12
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +7 -12
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +7 -12
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +7 -12
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +7 -12
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +7 -12
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +7 -12
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +7 -12
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +7 -12
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +7 -12
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +7 -12
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +7 -12
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +7 -12
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +7 -12
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +7 -12
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +7 -12
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +7 -12
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +7 -12
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +7 -12
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +7 -12
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +7 -12
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +7 -12
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +7 -12
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +7 -12
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +7 -12
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +7 -12
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +7 -12
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +7 -12
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +7 -12
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +7 -12
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +7 -12
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +7 -12
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +7 -12
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +7 -12
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +7 -12
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +7 -12
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +7 -12
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +7 -12
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +7 -12
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +7 -12
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +7 -12
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +7 -12
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +7 -12
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +7 -12
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +7 -12
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +7 -12
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +7 -12
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +7 -12
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +7 -12
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +7 -12
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +7 -12
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +7 -12
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +7 -12
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +7 -12
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +7 -12
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +7 -12
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +7 -12
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +7 -12
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +7 -12
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +7 -12
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +7 -12
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +7 -12
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +7 -12
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +7 -12
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +7 -12
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +7 -12
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +7 -12
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +7 -12
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +7 -12
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +7 -12
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +7 -12
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +7 -12
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +7 -12
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +7 -12
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +7 -12
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +7 -12
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +7 -12
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +7 -12
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +7 -12
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +7 -12
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +7 -12
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +7 -12
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +7 -12
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +7 -12
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +7 -12
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +7 -12
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +7 -12
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +7 -12
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +7 -12
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +7 -12
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +7 -12
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +7 -12
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +7 -12
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +7 -12
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +39 -51
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +39 -51
- package/image/image.esm.min.js +1 -1
- package/image/image.js +39 -51
- 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 +24 -35
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +24 -35
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +24 -35
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +10 -13
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +10 -13
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +10 -13
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +59 -66
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +60 -67
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +59 -66
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +53 -65
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +53 -65
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +53 -65
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +24 -35
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +24 -35
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +24 -35
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +31 -35
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -0
- package/inputtext/inputtext.esm.js +31 -35
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +31 -35
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +26 -36
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +26 -36
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +26 -36
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +16 -17
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +16 -17
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +16 -17
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +15 -16
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +15 -16
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +15 -16
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +48 -60
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +48 -60
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +48 -60
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +44 -56
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +44 -56
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +44 -56
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +48 -58
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +8 -0
- package/mention/mention.esm.js +48 -58
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +48 -58
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +47 -59
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +14 -0
- package/menu/menu.esm.js +47 -59
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +47 -59
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +45 -54
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +45 -54
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +45 -54
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +24 -35
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +24 -35
- package/message/message.esm.min.js +1 -1
- package/message/message.js +24 -35
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +46 -59
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +47 -60
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +46 -59
- 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 +149 -163
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +149 -163
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +149 -163
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +39 -51
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +39 -51
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +39 -51
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +46 -58
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +46 -58
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +46 -58
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +46 -62
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +46 -62
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +46 -62
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +38 -50
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +38 -50
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +38 -50
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +42 -57
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +42 -57
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +42 -57
- 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 +59 -68
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +59 -68
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +59 -68
- 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 +360 -334
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +360 -334
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +360 -334
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +47 -53
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +47 -53
- package/password/password.esm.min.js +1 -1
- package/password/password.js +47 -53
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +51 -66
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +51 -66
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +51 -66
- 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 +917 -858
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +917 -858
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +917 -858
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +24 -35
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +24 -35
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +24 -35
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +1 -1
- package/progressspinner/progressspinner.esm.js +1 -1
- package/progressspinner/progressspinner.js +1 -1
- package/radiobutton/radiobutton.cjs.js +24 -35
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +24 -35
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +24 -35
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +38 -50
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +38 -50
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +38 -50
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +15 -25
- package/resources/themes/arya-green/theme.css +15 -25
- package/resources/themes/arya-orange/theme.css +15 -25
- package/resources/themes/arya-purple/theme.css +15 -25
- package/resources/themes/bootstrap4-dark-blue/theme.css +15 -25
- package/resources/themes/bootstrap4-dark-purple/theme.css +15 -25
- package/resources/themes/bootstrap4-light-blue/theme.css +15 -25
- package/resources/themes/bootstrap4-light-purple/theme.css +15 -25
- package/resources/themes/fluent-light/theme.css +15 -25
- package/resources/themes/lara-dark-amber/theme.css +15 -25
- package/resources/themes/lara-dark-blue/theme.css +15 -25
- package/resources/themes/lara-dark-cyan/theme.css +15 -25
- package/resources/themes/lara-dark-green/theme.css +15 -25
- package/resources/themes/lara-dark-indigo/theme.css +15 -25
- package/resources/themes/lara-dark-pink/theme.css +15 -25
- package/resources/themes/lara-dark-purple/theme.css +15 -25
- package/resources/themes/lara-dark-teal/theme.css +15 -25
- package/resources/themes/lara-light-amber/theme.css +15 -25
- package/resources/themes/lara-light-blue/theme.css +15 -25
- package/resources/themes/lara-light-cyan/theme.css +15 -25
- package/resources/themes/lara-light-green/theme.css +15 -25
- package/resources/themes/lara-light-indigo/theme.css +15 -25
- package/resources/themes/lara-light-pink/theme.css +15 -25
- package/resources/themes/lara-light-purple/theme.css +15 -25
- package/resources/themes/lara-light-teal/theme.css +15 -25
- package/resources/themes/luna-amber/theme.css +15 -25
- package/resources/themes/luna-blue/theme.css +15 -25
- package/resources/themes/luna-green/theme.css +15 -25
- package/resources/themes/luna-pink/theme.css +15 -25
- package/resources/themes/md-dark-deeppurple/theme.css +15 -25
- package/resources/themes/md-dark-indigo/theme.css +15 -25
- package/resources/themes/md-light-deeppurple/theme.css +15 -25
- package/resources/themes/md-light-indigo/theme.css +300 -310
- package/resources/themes/mdc-dark-deeppurple/theme.css +15 -25
- package/resources/themes/mdc-dark-indigo/theme.css +15 -25
- package/resources/themes/mdc-light-deeppurple/theme.css +15 -25
- package/resources/themes/mdc-light-indigo/theme.css +300 -310
- package/resources/themes/mira/theme.css +15 -25
- package/resources/themes/nano/theme.css +15 -25
- package/resources/themes/nova/theme.css +15 -25
- package/resources/themes/nova-accent/theme.css +15 -25
- package/resources/themes/nova-alt/theme.css +15 -25
- package/resources/themes/rhea/theme.css +15 -25
- package/resources/themes/saga-blue/theme.css +15 -25
- package/resources/themes/saga-green/theme.css +15 -25
- package/resources/themes/saga-orange/theme.css +15 -25
- package/resources/themes/saga-purple/theme.css +15 -25
- package/resources/themes/soho-dark/theme.css +15 -25
- package/resources/themes/soho-light/theme.css +15 -25
- package/resources/themes/tailwind-light/theme.css +15 -25
- package/resources/themes/vela-blue/theme.css +15 -25
- package/resources/themes/vela-green/theme.css +15 -25
- package/resources/themes/vela-orange/theme.css +15 -25
- package/resources/themes/vela-purple/theme.css +15 -25
- package/resources/themes/viva-dark/theme.css +15 -25
- package/resources/themes/viva-light/theme.css +15 -25
- package/ripple/ripple.cjs.js +38 -50
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +38 -50
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +38 -50
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +34 -32
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +34 -32
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +34 -32
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +38 -50
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +38 -50
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +38 -50
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +27 -33
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +27 -33
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +27 -33
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +38 -50
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +2 -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 +18 -24
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +18 -24
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +18 -24
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +41 -50
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +41 -50
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +41 -50
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +44 -56
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +44 -56
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +44 -56
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +44 -56
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +44 -56
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +44 -56
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +60 -63
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -2
- package/splitbutton/splitbutton.esm.js +60 -63
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +60 -63
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +48 -60
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +48 -60
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +48 -60
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.js +41 -53
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +41 -53
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +41 -53
- package/stepper/stepper.min.js +1 -1
- package/stepperpanel/stepperpanel.cjs.js +1 -1
- package/stepperpanel/stepperpanel.esm.js +1 -1
- package/stepperpanel/stepperpanel.js +1 -1
- package/steps/steps.cjs.js +42 -59
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +42 -59
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +42 -59
- 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 +44 -56
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +44 -56
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +44 -56
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +45 -52
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +45 -52
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +45 -52
- 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 +21 -22
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +21 -22
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +21 -22
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +53 -59
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +53 -59
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +53 -59
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +24 -35
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +24 -35
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +24 -35
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +55 -75
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +55 -75
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +55 -75
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +25 -36
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +25 -36
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +25 -36
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +1 -1
- package/toolbar/toolbar.esm.js +1 -1
- package/toolbar/toolbar.js +1 -1
- package/tooltip/tooltip.cjs.js +51 -57
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +51 -57
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +51 -57
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +76 -88
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +76 -88
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +76 -88
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +57 -68
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +57 -68
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +57 -68
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +98 -105
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +1 -1
- package/treetable/treetable.esm.js +98 -105
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +98 -105
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +100 -46
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +101 -46
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +100 -46
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +70 -90
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +70 -90
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +70 -90
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +38 -50
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +38 -50
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +38 -50
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +3 -3
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";
|
|
@@ -211,7 +199,7 @@ var ChipsBase = ComponentBase.extend({
|
|
|
211
199
|
|
|
212
200
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
213
201
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
214
|
-
var Chips = /*#__PURE__*/React.memo(
|
|
202
|
+
var Chips = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
215
203
|
var mergeProps = useMergeProps();
|
|
216
204
|
var context = React.useContext(PrimeReactContext);
|
|
217
205
|
var props = ChipsBase.getProps(inProps, context);
|
|
@@ -552,7 +540,9 @@ var Chips = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inP
|
|
|
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};
|
package/chips/chips.js
CHANGED
|
@@ -23,18 +23,13 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
23
23
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
24
|
|
|
25
25
|
function _extends() {
|
|
26
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
27
|
-
for (var
|
|
28
|
-
var
|
|
29
|
-
for (var
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
-
target[key] = source[key];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
26
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
27
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
28
|
+
var t = arguments[e];
|
|
29
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
34
30
|
}
|
|
35
|
-
return
|
|
36
|
-
};
|
|
37
|
-
return _extends.apply(this, arguments);
|
|
31
|
+
return n;
|
|
32
|
+
}, _extends.apply(null, arguments);
|
|
38
33
|
}
|
|
39
34
|
|
|
40
35
|
function _typeof(o) {
|
|
@@ -47,70 +42,63 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
47
42
|
}, _typeof(o);
|
|
48
43
|
}
|
|
49
44
|
|
|
50
|
-
function
|
|
51
|
-
if (
|
|
52
|
-
var
|
|
53
|
-
if (
|
|
54
|
-
var
|
|
55
|
-
if (
|
|
45
|
+
function toPrimitive(t, r) {
|
|
46
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
47
|
+
var e = t[Symbol.toPrimitive];
|
|
48
|
+
if (void 0 !== e) {
|
|
49
|
+
var i = e.call(t, r || "default");
|
|
50
|
+
if ("object" != _typeof(i)) return i;
|
|
56
51
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
57
52
|
}
|
|
58
|
-
return (
|
|
53
|
+
return ("string" === r ? String : Number)(t);
|
|
59
54
|
}
|
|
60
55
|
|
|
61
|
-
function
|
|
62
|
-
var
|
|
63
|
-
return _typeof(
|
|
56
|
+
function toPropertyKey(t) {
|
|
57
|
+
var i = toPrimitive(t, "string");
|
|
58
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
64
59
|
}
|
|
65
60
|
|
|
66
|
-
function _defineProperty(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
writable: true
|
|
74
|
-
});
|
|
75
|
-
} else {
|
|
76
|
-
obj[key] = value;
|
|
77
|
-
}
|
|
78
|
-
return obj;
|
|
61
|
+
function _defineProperty(e, r, t) {
|
|
62
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
63
|
+
value: t,
|
|
64
|
+
enumerable: !0,
|
|
65
|
+
configurable: !0,
|
|
66
|
+
writable: !0
|
|
67
|
+
}) : e[r] = t, e;
|
|
79
68
|
}
|
|
80
69
|
|
|
81
|
-
function _arrayLikeToArray(
|
|
82
|
-
|
|
83
|
-
for (var
|
|
84
|
-
return
|
|
70
|
+
function _arrayLikeToArray(r, a) {
|
|
71
|
+
(null == a || a > r.length) && (a = r.length);
|
|
72
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
73
|
+
return n;
|
|
85
74
|
}
|
|
86
75
|
|
|
87
|
-
function _arrayWithoutHoles(
|
|
88
|
-
if (Array.isArray(
|
|
76
|
+
function _arrayWithoutHoles(r) {
|
|
77
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
89
78
|
}
|
|
90
79
|
|
|
91
|
-
function _iterableToArray(
|
|
92
|
-
if (typeof Symbol
|
|
80
|
+
function _iterableToArray(r) {
|
|
81
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
93
82
|
}
|
|
94
83
|
|
|
95
|
-
function _unsupportedIterableToArray(
|
|
96
|
-
if (
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
84
|
+
function _unsupportedIterableToArray(r, a) {
|
|
85
|
+
if (r) {
|
|
86
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
87
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
88
|
+
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;
|
|
89
|
+
}
|
|
102
90
|
}
|
|
103
91
|
|
|
104
92
|
function _nonIterableSpread() {
|
|
105
93
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
106
94
|
}
|
|
107
95
|
|
|
108
|
-
function _toConsumableArray(
|
|
109
|
-
return _arrayWithoutHoles(
|
|
96
|
+
function _toConsumableArray(r) {
|
|
97
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
110
98
|
}
|
|
111
99
|
|
|
112
|
-
function _arrayWithHoles(
|
|
113
|
-
if (Array.isArray(
|
|
100
|
+
function _arrayWithHoles(r) {
|
|
101
|
+
if (Array.isArray(r)) return r;
|
|
114
102
|
}
|
|
115
103
|
|
|
116
104
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -145,8 +133,8 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
145
133
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
146
134
|
}
|
|
147
135
|
|
|
148
|
-
function _slicedToArray(
|
|
149
|
-
return _arrayWithHoles(
|
|
136
|
+
function _slicedToArray(r, e) {
|
|
137
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
150
138
|
}
|
|
151
139
|
|
|
152
140
|
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";
|
|
@@ -225,7 +213,7 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
225
213
|
|
|
226
214
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
227
215
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
228
|
-
var Chips = /*#__PURE__*/React__namespace.memo(
|
|
216
|
+
var Chips = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
229
217
|
var mergeProps = hooks.useMergeProps();
|
|
230
218
|
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
231
219
|
var props = ChipsBase.getProps(inProps, context);
|
|
@@ -566,7 +554,9 @@ this.primereact.chips = (function (exports, React, api, componentbase, hooks, ti
|
|
|
566
554
|
},
|
|
567
555
|
readOnly: props.readOnly
|
|
568
556
|
}, ariaProps), ptm('input'));
|
|
569
|
-
return /*#__PURE__*/React__namespace.createElement("li",
|
|
557
|
+
return /*#__PURE__*/React__namespace.createElement("li", _extends({}, inputTokenProps, {
|
|
558
|
+
key: props.inputId + '_chips_input'
|
|
559
|
+
}), /*#__PURE__*/React__namespace.createElement("input", inputProps));
|
|
570
560
|
};
|
|
571
561
|
var createItems = function createItems() {
|
|
572
562
|
return props.value ? props.value.map(createItem) : null;
|
package/chips/chips.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.chips=function(e,n,t,r,i,l,a,o,u){"use strict";function c(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 s=c(n);function p(){return p=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},p.apply(this,arguments)}function f(e){return f="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},f(e)}function d(e,n){if("object"!==f(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function m(e){var n=d(e,"string");return"symbol"===f(n)?n:String(n)}function v(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 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=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)?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 w(e){if(Array.isArray(e))return e}function k(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 w(e)||k(e,n)||h(e,n)||x()}var P=r.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 u.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 u.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 u.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){var r,i,l;r=e,l=t[n],(i=m(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)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=s.memo(s.forwardRef((function(e,n){var c=i.useMergeProps(),f=s.useContext(t.PrimeReactContext),d=P.getProps(e,f),m=j(s.useState(!1),2),v=m[0],y=m[1],b=j(s.useState(null),2),h=b[0],g=b[1],w=P.setMetaData({props:d,state:{focused:v}}),k=w.ptm,x=w.cx;r.useHandleStyle(P.css.styles,w.isUnstyled,{name:"chips"});var D=s.useRef(null),S=s.useRef(null),I=s.useRef(d.inputRef),A=function(e,n){if(!d.disabled||!d.readOnly){var t=O(d.value),r=t.splice(n,1)[0];W(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}}))}},R=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)}},N=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)&&R(e,n,!0);break;case"ArrowLeft":0===n.length&&t&&t.length>0&&u.DomHandler.focus(S.current);break;case"ArrowRight":e.stopPropagation();break;default:d.keyfilter&&a.KeyFilter.onKeyPress(e,d.keyfilter),z()&&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);R(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&&a.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)}}},H=function(){y(!0)},M=function(){g(-1),y(!1)},L=function(e){if(d.addOnBlur){var n=e.target.value,t=d.value||[];n&&n.trim().length&&(!d.max||d.max>t.length)&&R(e,n,!0)}y(!1),d.onBlur&&d.onBlur(e)},z=function(){return d.max&&d.value&&d.max===d.value.length},J=I.current&&I.current.value,V=s.useMemo((function(){return u.ObjectUtils.isNotEmpty(d.value)||u.ObjectUtils.isNotEmpty(J)}),[d.value,J]),W=function(e,n){return u.ObjectUtils.getPropValue(d.removable,{value:e,index:n,props:d})};s.useImperativeHandle(n,(function(){return{props:d,focus:function(){return u.DomHandler.focus(I.current)},getElement:function(){return D.current},getInput:function(){return I.current}}})),s.useEffect((function(){u.ObjectUtils.combinedRefs(I,d.inputRef)}),[I,d.inputRef]),i.useMountEffect((function(){d.autoFocus&&u.DomHandler.focus(I.current,d.autoFocus)}));var X,Y,$,q,G,Q=function(e,n){if(!d.disabled&&!d.readOnly&&W(e,n)){var t=c({className:x("removeTokenIcon"),onClick:function(e){return A(e,n)},"aria-hidden":"true"},k("removeTokenIcon"));return u.IconUtils.getJSXIcon(d.removeIcon||s.createElement(l.TimesCircleIcon,t),E({},t),{props:d})}return null},Z=function(e,n){var t=d.itemTemplate?d.itemTemplate(e):e,r=c({className:x("label")},k("label")),i=s.createElement("span",r,t),l=Q(e,n),a=c({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},k("token"));return s.createElement("li",p({},a,{key:"".concat(n,"_").concat(e)}),i,l)},ee=u.ObjectUtils.isNotEmpty(d.tooltip),ne=P.getOtherProps(d),te=u.ObjectUtils.reduceKeys(ne,u.DomHandler.ARIA_PROPS),re=($=d.value?d.value.map(Z):null,X=c({className:x("inputToken")},k("inputToken")),Y=c(E({id:d.inputId,ref:I,placeholder:d.placeholder,type:"text",enterKeyHint:"enter",name:d.name,disabled:d.disabled||z(),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 L(e)},readOnly:d.readOnly},te),k("input")),q=s.createElement("li",X,s.createElement("input",Y)),G=c({ref:S,className:x("container",{context:f}),onClick:function(e){u.DomHandler.focus(I.current)},onKeyDown:function(e){return N(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:H,onBlur:M},k("container")),s.createElement("ul",G,$,q)),ie=c({id:d.id,ref:D,className:u.classNames(d.className,x("root",{isFilled:V,focusedState:v,disabled:d.disabled,invalid:d.invalid})),style:d.style},k("root"));return s.createElement(s.Fragment,null,s.createElement("div",ie,re),ee&&s.createElement(o.Tooltip,p({target:I,content:d.tooltip,pt:k("tooltip")},d.tooltipOptions)))})));return S.displayName="Chips",e.Chips=S,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.icons.timescircle,primereact.keyfilter,primereact.tooltip,primereact.utils);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.chips=function(e,n,t,r,i,l,a,o,u){"use strict";function c(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 s=c(n);function p(){return p=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},p.apply(null,arguments)}function f(e){return f="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},f(e)}function d(e,n){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function m(e){var n=d(e,"string");return"symbol"==f(n)?n:n+""}function v(e,n,t){return(n=m(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function y(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 b(e){if(Array.isArray(e))return y(e)}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function g(e,n){if(e){if("string"==typeof e)return y(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)?y(e,n):void 0}}function O(){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 k(e){return b(e)||h(e)||g(e)||O()}function w(e){if(Array.isArray(e))return e}function x(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 j(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(e,n){return w(e)||x(e,n)||g(e,n)||j()}var D=r.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 u.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 u.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 u.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 E(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 S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){v(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var I=s.memo(s.forwardRef((function(e,n){var c=i.useMergeProps(),f=s.useContext(t.PrimeReactContext),d=D.getProps(e,f),m=P(s.useState(!1),2),v=m[0],y=m[1],b=P(s.useState(null),2),h=b[0],g=b[1],O=D.setMetaData({props:d,state:{focused:v}}),w=O.ptm,x=O.cx;r.useHandleStyle(D.css.styles,O.isUnstyled,{name:"chips"});var j=s.useRef(null),E=s.useRef(null),I=s.useRef(d.inputRef),A=function(e,n){if(!d.disabled||!d.readOnly){var t=k(d.value),r=t.splice(n,1)[0];W(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}}))}},R=function(e,n,t){if(n&&n.trim().length){var r=d.value?k(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)}},N=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)&&R(e,n,!0);break;case"ArrowLeft":0===n.length&&t&&t.length>0&&u.DomHandler.focus(E.current);break;case"ArrowRight":e.stopPropagation();break;default:d.keyfilter&&a.KeyFilter.onKeyPress(e,d.keyfilter),z()&&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);R(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&&a.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(k(r),k(i)),B(e,r,!0)}}},H=function(){y(!0)},M=function(){g(-1),y(!1)},L=function(e){if(d.addOnBlur){var n=e.target.value,t=d.value||[];n&&n.trim().length&&(!d.max||d.max>t.length)&&R(e,n,!0)}y(!1),d.onBlur&&d.onBlur(e)},z=function(){return d.max&&d.value&&d.max===d.value.length},J=I.current&&I.current.value,V=s.useMemo((function(){return u.ObjectUtils.isNotEmpty(d.value)||u.ObjectUtils.isNotEmpty(J)}),[d.value,J]),W=function(e,n){return u.ObjectUtils.getPropValue(d.removable,{value:e,index:n,props:d})};s.useImperativeHandle(n,(function(){return{props:d,focus:function(){return u.DomHandler.focus(I.current)},getElement:function(){return j.current},getInput:function(){return I.current}}})),s.useEffect((function(){u.ObjectUtils.combinedRefs(I,d.inputRef)}),[I,d.inputRef]),i.useMountEffect((function(){d.autoFocus&&u.DomHandler.focus(I.current,d.autoFocus)}));var X,Y,$,q,G,Q=function(e,n){if(!d.disabled&&!d.readOnly&&W(e,n)){var t=c({className:x("removeTokenIcon"),onClick:function(e){return A(e,n)},"aria-hidden":"true"},w("removeTokenIcon"));return u.IconUtils.getJSXIcon(d.removeIcon||s.createElement(l.TimesCircleIcon,t),S({},t),{props:d})}return null},Z=function(e,n){var t=d.itemTemplate?d.itemTemplate(e):e,r=c({className:x("label")},w("label")),i=s.createElement("span",r,t),l=Q(e,n),a=c({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 s.createElement("li",p({},a,{key:"".concat(n,"_").concat(e)}),i,l)},ee=u.ObjectUtils.isNotEmpty(d.tooltip),ne=D.getOtherProps(d),te=u.ObjectUtils.reduceKeys(ne,u.DomHandler.ARIA_PROPS),re=($=d.value?d.value.map(Z):null,X=c({className:x("inputToken")},w("inputToken")),Y=c(S({id:d.inputId,ref:I,placeholder:d.placeholder,type:"text",enterKeyHint:"enter",name:d.name,disabled:d.disabled||z(),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 L(e)},readOnly:d.readOnly},te),w("input")),q=s.createElement("li",p({},X,{key:d.inputId+"_chips_input"}),s.createElement("input",Y)),G=c({ref:E,className:x("container",{context:f}),onClick:function(e){u.DomHandler.focus(I.current)},onKeyDown:function(e){return N(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:H,onBlur:M},w("container")),s.createElement("ul",G,$,q)),ie=c({id:d.id,ref:j,className:u.classNames(d.className,x("root",{isFilled:V,focusedState:v,disabled:d.disabled,invalid:d.invalid})),style:d.style},w("root"));return s.createElement(s.Fragment,null,s.createElement("div",ie,re),ee&&s.createElement(o.Tooltip,p({target:I,content:d.tooltip,pt:w("tooltip")},d.tooltipOptions)))})));return I.displayName="Chips",e.Chips=I,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.icons.timescircle,primereact.keyfilter,primereact.tooltip,primereact.utils);
|
|
@@ -46,54 +46,43 @@ function _typeof(o) {
|
|
|
46
46
|
}, _typeof(o);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
function
|
|
50
|
-
if (
|
|
51
|
-
var
|
|
52
|
-
if (
|
|
53
|
-
var
|
|
54
|
-
if (
|
|
49
|
+
function toPrimitive(t, r) {
|
|
50
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
51
|
+
var e = t[Symbol.toPrimitive];
|
|
52
|
+
if (void 0 !== e) {
|
|
53
|
+
var i = e.call(t, r || "default");
|
|
54
|
+
if ("object" != _typeof(i)) return i;
|
|
55
55
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
56
56
|
}
|
|
57
|
-
return (
|
|
57
|
+
return ("string" === r ? String : Number)(t);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
function
|
|
61
|
-
var
|
|
62
|
-
return _typeof(
|
|
60
|
+
function toPropertyKey(t) {
|
|
61
|
+
var i = toPrimitive(t, "string");
|
|
62
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
function _defineProperty(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
writable: true
|
|
73
|
-
});
|
|
74
|
-
} else {
|
|
75
|
-
obj[key] = value;
|
|
76
|
-
}
|
|
77
|
-
return obj;
|
|
65
|
+
function _defineProperty(e, r, t) {
|
|
66
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
67
|
+
value: t,
|
|
68
|
+
enumerable: !0,
|
|
69
|
+
configurable: !0,
|
|
70
|
+
writable: !0
|
|
71
|
+
}) : e[r] = t, e;
|
|
78
72
|
}
|
|
79
73
|
|
|
80
74
|
function _extends() {
|
|
81
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
82
|
-
for (var
|
|
83
|
-
var
|
|
84
|
-
for (var
|
|
85
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
86
|
-
target[key] = source[key];
|
|
87
|
-
}
|
|
88
|
-
}
|
|
75
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
76
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
77
|
+
var t = arguments[e];
|
|
78
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
89
79
|
}
|
|
90
|
-
return
|
|
91
|
-
};
|
|
92
|
-
return _extends.apply(this, arguments);
|
|
80
|
+
return n;
|
|
81
|
+
}, _extends.apply(null, arguments);
|
|
93
82
|
}
|
|
94
83
|
|
|
95
|
-
function _arrayWithHoles(
|
|
96
|
-
if (Array.isArray(
|
|
84
|
+
function _arrayWithHoles(r) {
|
|
85
|
+
if (Array.isArray(r)) return r;
|
|
97
86
|
}
|
|
98
87
|
|
|
99
88
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -124,27 +113,26 @@ function _iterableToArrayLimit(r, l) {
|
|
|
124
113
|
}
|
|
125
114
|
}
|
|
126
115
|
|
|
127
|
-
function _arrayLikeToArray(
|
|
128
|
-
|
|
129
|
-
for (var
|
|
130
|
-
return
|
|
116
|
+
function _arrayLikeToArray(r, a) {
|
|
117
|
+
(null == a || a > r.length) && (a = r.length);
|
|
118
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
119
|
+
return n;
|
|
131
120
|
}
|
|
132
121
|
|
|
133
|
-
function _unsupportedIterableToArray(
|
|
134
|
-
if (
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
122
|
+
function _unsupportedIterableToArray(r, a) {
|
|
123
|
+
if (r) {
|
|
124
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
125
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
126
|
+
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;
|
|
127
|
+
}
|
|
140
128
|
}
|
|
141
129
|
|
|
142
130
|
function _nonIterableRest() {
|
|
143
131
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
144
132
|
}
|
|
145
133
|
|
|
146
|
-
function _slicedToArray(
|
|
147
|
-
return _arrayWithHoles(
|
|
134
|
+
function _slicedToArray(r, e) {
|
|
135
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
148
136
|
}
|
|
149
137
|
|
|
150
138
|
var classes = {
|
|
@@ -261,7 +249,7 @@ ColorPickerPanel.displayName = 'ColorPickerPanel';
|
|
|
261
249
|
|
|
262
250
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
263
251
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
264
|
-
var ColorPicker = /*#__PURE__*/React__namespace.memo(
|
|
252
|
+
var ColorPicker = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
265
253
|
var mergeProps = hooks.useMergeProps();
|
|
266
254
|
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
267
255
|
var props = ColorPickerBase.getProps(inProps, context);
|