primereact 10.9.3 → 10.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +43 -55
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +2 -2
- package/accordion/accordion.esm.js +43 -55
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +43 -55
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +44 -59
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +44 -59
- package/api/api.esm.min.js +1 -1
- package/api/api.js +44 -59
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +56 -56
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +27 -25
- package/autocomplete/autocomplete.esm.js +57 -57
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +56 -56
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +37 -49
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +2 -2
- package/avatar/avatar.esm.js +37 -49
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +37 -49
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.d.ts +2 -2
- package/badge/badge.cjs.js +17 -23
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +2 -2
- package/badge/badge.esm.js +17 -23
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +17 -23
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +37 -49
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +2 -2
- package/blockui/blockui.esm.js +37 -49
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +37 -49
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +39 -50
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +2 -2
- package/breadcrumb/breadcrumb.esm.js +39 -50
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +39 -50
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +23 -34
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +23 -34
- package/button/button.esm.min.js +1 -1
- package/button/button.js +23 -34
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +56 -60
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +6 -6
- package/calendar/calendar.esm.js +57 -61
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +56 -60
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +43 -55
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +2 -2
- package/carousel/carousel.esm.js +43 -55
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +43 -55
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +49 -54
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +17 -8
- package/cascadeselect/cascadeselect.esm.js +49 -54
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +49 -54
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.d.ts +2 -2
- package/checkbox/checkbox.cjs.js +38 -50
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +4 -4
- 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 +52 -51
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +2 -2
- package/chip/chip.esm.js +54 -53
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +52 -51
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +44 -56
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +2 -2
- package/chips/chips.esm.js +44 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +44 -56
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +47 -51
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +6 -6
- package/colorpicker/colorpicker.esm.js +47 -51
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +47 -51
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +33 -40
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +33 -40
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +33 -40
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +37 -49
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +37 -49
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +37 -49
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +47 -51
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +47 -51
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +47 -51
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +37 -49
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +2 -2
- package/contextmenu/contextmenu.esm.js +37 -49
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +37 -49
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1151 -1449
- package/core/core.min.js +65 -65
- package/csstransition/csstransition.cjs.js +17 -23
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +17 -23
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +17 -23
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +26 -32
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +2 -2
- package/datascroller/datascroller.esm.js +26 -32
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +26 -32
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +411 -358
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +6 -5
- package/datatable/datatable.esm.js +412 -359
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +411 -358
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +46 -58
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +2 -2
- package/dataview/dataview.esm.js +46 -58
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +46 -58
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +14 -15
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.d.ts +2 -2
- package/deferredcontent/deferredcontent.esm.js +14 -15
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +14 -15
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +43 -55
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +12 -12
- package/dialog/dialog.esm.js +43 -55
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +43 -55
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.d.ts +2 -2
- package/dock/dock.cjs.js +43 -55
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +2 -2
- package/dock/dock.esm.js +43 -55
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +43 -55
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +53 -57
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +14 -10
- package/dropdown/dropdown.esm.js +53 -57
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +53 -57
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +37 -49
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +6 -6
- package/editor/editor.esm.js +37 -49
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +37 -49
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +20 -26
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +4 -4
- package/fieldset/fieldset.esm.js +20 -26
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +20 -26
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +48 -60
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +4 -4
- package/fileupload/fileupload.esm.js +48 -60
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +48 -60
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +17 -23
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +17 -23
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +17 -23
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +43 -55
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +2 -2
- package/galleria/galleria.esm.js +43 -55
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +43 -55
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +53 -50
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +53 -50
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +53 -50
- package/hooks/hooks.min.js +1 -1
- package/iconfield/iconfield.cjs.js +23 -34
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +23 -34
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +23 -34
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +6 -11
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +6 -11
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +6 -11
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +6 -11
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +6 -11
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +6 -11
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +6 -11
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +6 -11
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +6 -11
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +6 -11
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +6 -11
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +6 -11
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +6 -11
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +6 -11
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +6 -11
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +6 -11
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +6 -11
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +6 -11
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +6 -11
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +6 -11
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +6 -11
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +6 -11
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +6 -11
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +6 -11
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +6 -11
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +6 -11
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -11
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +6 -11
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +6 -11
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -11
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +6 -11
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +6 -11
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -11
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +6 -11
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +6 -11
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +6 -11
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +6 -11
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +6 -11
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +6 -11
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +6 -11
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +6 -11
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +6 -11
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +6 -11
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +6 -11
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +6 -11
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +6 -11
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +6 -11
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +6 -11
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +6 -11
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +6 -11
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +6 -11
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +6 -11
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +6 -11
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +6 -11
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +6 -11
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +6 -11
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +6 -11
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +6 -11
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +6 -11
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +6 -11
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +6 -11
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +6 -11
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +6 -11
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +6 -11
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +6 -11
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +6 -11
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +6 -11
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -11
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +6 -11
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +6 -11
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -11
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +6 -11
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +6 -11
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -11
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +6 -11
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +6 -11
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -11
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +6 -11
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +6 -11
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +6 -11
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +6 -11
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +6 -11
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -11
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +6 -11
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +6 -11
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -11
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +6 -11
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +6 -11
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -11
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +6 -11
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +6 -11
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -11
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +6 -11
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +6 -11
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -11
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +6 -11
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +6 -11
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -11
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +6 -11
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -11
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +6 -11
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +6 -11
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +6 -11
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +6 -11
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +6 -11
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +6 -11
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -11
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +6 -11
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +6 -11
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -11
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +6 -11
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +6 -11
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -11
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +6 -11
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +6 -11
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -11
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +6 -11
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +6 -11
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +6 -11
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +6 -11
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +6 -11
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -11
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +6 -11
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +6 -11
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -11
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +6 -11
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +6 -11
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -11
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +6 -11
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +6 -11
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -11
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +6 -11
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +6 -11
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -11
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +6 -11
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +6 -11
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -11
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +37 -49
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +4 -4
- package/image/image.esm.js +37 -49
- package/image/image.esm.min.js +1 -1
- package/image/image.js +37 -49
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +14 -15
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.d.ts +2 -2
- package/inplace/inplace.esm.js +14 -15
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +14 -15
- package/inplace/inplace.min.js +1 -1
- package/inputicon/inputicon.cjs.js +23 -34
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +23 -34
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +23 -34
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +7 -12
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +2 -2
- package/inputmask/inputmask.esm.js +7 -12
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +7 -12
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +49 -58
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +49 -58
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +49 -58
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +65 -56
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +65 -56
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +65 -56
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +23 -34
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +4 -4
- package/inputswitch/inputswitch.esm.js +23 -34
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +23 -34
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +25 -35
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/inputtext/inputtext.esm.js +25 -35
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +25 -35
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +23 -34
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +23 -34
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +23 -34
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +16 -17
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +16 -17
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +16 -17
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +15 -16
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +2 -2
- package/knob/knob.esm.js +15 -16
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +15 -16
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +46 -58
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +4 -4
- package/listbox/listbox.esm.js +46 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +46 -58
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +37 -49
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +2 -2
- package/megamenu/megamenu.esm.js +37 -49
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +37 -49
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +61 -64
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +11 -6
- package/mention/mention.esm.js +61 -64
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +61 -64
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +57 -58
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -2
- package/menu/menu.esm.js +58 -59
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +57 -58
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +43 -58
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +8 -8
- package/menubar/menubar.esm.js +43 -58
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +43 -58
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +23 -34
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +2 -2
- package/message/message.esm.js +23 -34
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -34
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +43 -55
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +2 -2
- package/messages/messages.esm.js +43 -55
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +43 -55
- package/messages/messages.min.js +1 -1
- package/metergroup/metergroup.cjs.js +23 -34
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +23 -34
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +23 -34
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +70 -82
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +6 -6
- package/multiselect/multiselect.esm.js +70 -82
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +70 -82
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +38 -50
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +2 -2
- package/multistatecheckbox/multistatecheckbox.esm.js +38 -50
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +38 -50
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +77 -58
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +2 -2
- package/orderlist/orderlist.esm.js +77 -58
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +77 -58
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +43 -55
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +2 -2
- package/organizationchart/organizationchart.esm.js +43 -55
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +43 -55
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +46 -59
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +2 -2
- package/overlaypanel/overlaypanel.esm.js +46 -59
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +46 -59
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +41 -56
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +2 -2
- package/paginator/paginator.esm.js +41 -56
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +41 -56
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +20 -26
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +4 -4
- package/panel/panel.esm.js +20 -26
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +20 -26
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +37 -49
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +2 -2
- package/panelmenu/panelmenu.esm.js +37 -49
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +37 -49
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +17 -23
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +17 -23
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +17 -23
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +14 -15
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +14 -15
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +14 -15
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +46 -51
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +6 -6
- package/password/password.esm.js +47 -52
- package/password/password.esm.min.js +1 -1
- package/password/password.js +46 -51
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +50 -65
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +2 -2
- package/picklist/picklist.esm.js +50 -65
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +50 -65
- 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 +858 -539
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +859 -540
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +858 -539
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +23 -34
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.d.ts +2 -2
- package/progressbar/progressbar.esm.js +23 -34
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +23 -34
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.d.ts +2 -2
- package/radiobutton/radiobutton.cjs.js +25 -36
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +5 -5
- package/radiobutton/radiobutton.esm.js +25 -36
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +25 -36
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +37 -49
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +2 -2
- package/rating/rating.esm.js +37 -49
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +37 -49
- package/rating/rating.min.js +1 -1
- package/ripple/ripple.cjs.js +37 -49
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +37 -49
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +37 -49
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +20 -26
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.d.ts +8 -8
- package/scrollpanel/scrollpanel.esm.js +20 -26
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +20 -26
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +37 -49
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +2 -2
- package/scrolltop/scrolltop.esm.js +37 -49
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +37 -49
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +26 -32
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +2 -2
- package/selectbutton/selectbutton.esm.js +26 -32
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +26 -32
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +37 -49
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +6 -6
- package/sidebar/sidebar.esm.js +37 -49
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +37 -49
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +17 -23
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.d.ts +2 -2
- package/skeleton/skeleton.esm.js +17 -23
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +17 -23
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +46 -51
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +2 -2
- package/slidemenu/slidemenu.esm.js +47 -52
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +46 -51
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +43 -55
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +3 -2
- package/slider/slider.esm.js +43 -55
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +43 -55
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +43 -55
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +2 -2
- package/speeddial/speeddial.esm.js +43 -55
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -55
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +37 -49
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -2
- package/splitbutton/splitbutton.esm.js +37 -49
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +37 -49
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +43 -55
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +2 -2
- package/splitter/splitter.esm.js +43 -55
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +43 -55
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.js +39 -50
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.d.ts +8 -3
- package/stepper/stepper.esm.js +39 -50
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +39 -50
- package/stepper/stepper.min.js +1 -1
- package/steps/steps.cjs.js +37 -49
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +2 -2
- package/steps/steps.esm.js +37 -49
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +37 -49
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +14 -15
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.d.ts +4 -4
- package/styleclass/styleclass.esm.js +14 -15
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +14 -15
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +37 -49
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +2 -2
- package/tabmenu/tabmenu.esm.js +37 -49
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +37 -49
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +37 -44
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +2 -2
- package/tabview/tabview.esm.js +37 -44
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +37 -44
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +17 -23
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +2 -2
- package/tag/tag.esm.js +17 -23
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +17 -23
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +20 -21
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +2 -2
- package/terminal/terminal.esm.js +20 -21
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +20 -21
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +37 -49
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +2 -2
- package/tieredmenu/tieredmenu.esm.js +37 -49
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +37 -49
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +23 -34
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +4 -4
- package/timeline/timeline.esm.js +23 -34
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +23 -34
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +43 -55
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +2 -2
- package/toast/toast.esm.js +43 -55
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +43 -55
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +23 -34
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +2 -2
- package/togglebutton/togglebutton.esm.js +23 -34
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +23 -34
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.d.ts +2 -2
- package/tooltip/tooltip.cjs.js +43 -55
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +3 -3
- package/tooltip/tooltip.esm.js +43 -55
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +43 -55
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +52 -64
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +2 -2
- package/tree/tree.esm.js +52 -64
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +52 -64
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +61 -66
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +2 -2
- package/treeselect/treeselect.esm.js +61 -66
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +61 -66
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +57 -69
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +2 -2
- package/treetable/treetable.esm.js +57 -69
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +57 -69
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +43 -55
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +2 -2
- package/tristatecheckbox/tristatecheckbox.esm.js +43 -55
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +43 -55
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +197 -99
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +5 -1
- package/utils/utils.esm.js +197 -99
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +197 -99
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +37 -49
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +37 -49
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +37 -49
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +46 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as t}from"primereact/api";import{ComponentBase as n,useHandleStyle as r}from"primereact/componentbase";import{useMergeProps as o,useUpdateEffect as l,useMountEffect as i}from"primereact/hooks";import{CheckIcon as
|
|
1
|
+
import*as e from"react";import{PrimeReactContext as t}from"primereact/api";import{ComponentBase as n,useHandleStyle as r}from"primereact/componentbase";import{useMergeProps as o,useUpdateEffect as l,useMountEffect as i}from"primereact/hooks";import{CheckIcon as u}from"primereact/icons/check";import{Tooltip as a}from"primereact/tooltip";import{classNames as c,DomHandler as s,ObjectUtils as p,IconUtils as f}from"primereact/utils";function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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 b(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function y(e){var t=b(e,"string");return"symbol"==m(t)?t:t+""}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){if(Array.isArray(e))return e}function g(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,u=[],a=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{if(!a&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function k(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var P=n.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:{box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(e){var t=e.props,n=e.context;return c("p-checkbox p-component",{"p-highlight":e.checked,"p-disabled":t.disabled,"p-invalid":t.invalid,"p-variant-filled":t.variant?"filled"===t.variant:n&&"filled"===n.inputStyle})}}}});function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=e.memo(e.forwardRef((function(n,m){var b,y,v=o(),O=e.useContext(t),j=P.getProps(n,O),w=e.useState(!1),E=(y=2,h(b=w)||g(b,y)||x(b,y)||k()),I=E[1],C=P.setMetaData({props:j,state:{focused:E[0]},context:{checked:j.checked===j.trueValue,disabled:j.disabled}}),D=C.ptm,R=C.cx;r(P.css.styles,C.isUnstyled,{name:"checkbox"});var N=e.useRef(null),A=e.useRef(j.inputRef),M=function(){return j.checked===j.trueValue},V=function(e){if(!j.disabled&&!j.readOnly&&j.onChange){var t,n=M()?j.falseValue:j.trueValue;if(null==j||null===(t=j.onChange)||void 0===t||t.call(j,{originalEvent:e,value:j.value,checked:n,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{type:"checkbox",name:j.name,id:j.id,value:j.value,checked:n}}),e.defaultPrevented)return;s.focus(A.current)}};e.useImperativeHandle(m,(function(){return{props:j,focus:function(){return s.focus(A.current)},getElement:function(){return N.current},getInput:function(){return A.current}}})),e.useEffect((function(){p.combinedRefs(A,j.inputRef)}),[A,j.inputRef]),l((function(){A.current.checked=M()}),[j.checked,j.trueValue]),i((function(){j.autoFocus&&s.focus(A.current,j.autoFocus)}));var F,q,T,_,B,U=M(),H=p.isNotEmpty(j.tooltip),J=P.getOtherProps(j),K=v({id:j.id,className:c(j.className,R("root",{checked:U,context:O})),style:j.style,"data-p-highlight":U,"data-p-disabled":j.disabled,onContextMenu:j.onContextMenu,onMouseDown:j.onMouseDown},J,D("root"));return e.createElement(e.Fragment,null,e.createElement("div",d({ref:N},K),(_=p.reduceKeys(J,s.ARIA_PROPS),B=v(S({id:j.inputId,type:"checkbox",className:R("input"),name:j.name,tabIndex:j.tabIndex,onFocus:function(e){return t=e,I(!0),void(null==j||null===(n=j.onFocus)||void 0===n||n.call(j,t));var t,n},onBlur:function(e){return t=e,I(!1),void(null==j||null===(n=j.onBlur)||void 0===n||n.call(j,t));var t,n},onChange:function(e){return V(e)},disabled:j.disabled,readOnly:j.readOnly,required:j.required,"aria-invalid":j.invalid,checked:U},_),D("input")),e.createElement("input",d({ref:A},B))),(F=v({className:R("icon")},D("icon")),q=v({className:R("box",{checked:U}),"data-p-highlight":U,"data-p-disabled":j.disabled},D("box")),T=f.getJSXIcon(U?j.icon||e.createElement(u,F):null,S({},F),{props:j,checked:U}),e.createElement("div",q,T))),H&&e.createElement(a,d({target:N,content:j.tooltip,pt:D("tooltip")},j.tooltipOptions)))})));w.displayName="Checkbox";export{w as Checkbox};
|
package/checkbox/checkbox.js
CHANGED
|
@@ -23,18 +23,13 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
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,39 +42,33 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
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 _arrayWithHoles(
|
|
82
|
-
if (Array.isArray(
|
|
70
|
+
function _arrayWithHoles(r) {
|
|
71
|
+
if (Array.isArray(r)) return r;
|
|
83
72
|
}
|
|
84
73
|
|
|
85
74
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -110,27 +99,26 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
110
99
|
}
|
|
111
100
|
}
|
|
112
101
|
|
|
113
|
-
function _arrayLikeToArray(
|
|
114
|
-
|
|
115
|
-
for (var
|
|
116
|
-
return
|
|
102
|
+
function _arrayLikeToArray(r, a) {
|
|
103
|
+
(null == a || a > r.length) && (a = r.length);
|
|
104
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
105
|
+
return n;
|
|
117
106
|
}
|
|
118
107
|
|
|
119
|
-
function _unsupportedIterableToArray(
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
108
|
+
function _unsupportedIterableToArray(r, a) {
|
|
109
|
+
if (r) {
|
|
110
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
111
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
112
|
+
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;
|
|
113
|
+
}
|
|
126
114
|
}
|
|
127
115
|
|
|
128
116
|
function _nonIterableRest() {
|
|
129
117
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
130
118
|
}
|
|
131
119
|
|
|
132
|
-
function _slicedToArray(
|
|
133
|
-
return _arrayWithHoles(
|
|
120
|
+
function _slicedToArray(r, e) {
|
|
121
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
134
122
|
}
|
|
135
123
|
|
|
136
124
|
var classes = {
|
|
@@ -214,7 +202,7 @@ this.primereact.checkbox = (function (exports, React, api, componentbase, hooks,
|
|
|
214
202
|
return props.checked === props.trueValue;
|
|
215
203
|
};
|
|
216
204
|
var _onChange = function onChange(event) {
|
|
217
|
-
if (props.disabled || props.
|
|
205
|
+
if (props.disabled || props.readOnly) {
|
|
218
206
|
return;
|
|
219
207
|
}
|
|
220
208
|
if (props.onChange) {
|
package/checkbox/checkbox.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.checkbox=function(e,t,n,r,o,l,i,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.checkbox=function(e,t,n,r,o,l,i,u){"use strict";function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var c=a(t);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.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,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function p(e){var t=d(e,"string");return"symbol"==f(t)?t:t+""}function b(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){if(Array.isArray(e))return e}function y(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,u=[],a=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{if(!a&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return u}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var O=r.ComponentBase.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:{box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(e){var t=e.props,n=e.context;return u.classNames("p-checkbox p-component",{"p-highlight":e.checked,"p-disabled":t.disabled,"p-invalid":t.invalid,"p-variant-filled":t.variant?"filled"===t.variant:n&&"filled"===n.inputStyle})}}}});function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=c.memo(c.forwardRef((function(e,t){var a,f,d=o.useMergeProps(),p=c.useContext(n.PrimeReactContext),b=O.getProps(e,p),v=c.useState(!1),j=(f=2,m(a=v)||y(a,f)||h(a,f)||g()),x=j[1],P=O.setMetaData({props:b,state:{focused:j[0]},context:{checked:b.checked===b.trueValue,disabled:b.disabled}}),S=P.ptm,w=P.cx;r.useHandleStyle(O.css.styles,P.isUnstyled,{name:"checkbox"});var E=c.useRef(null),C=c.useRef(b.inputRef),D=function(){return b.checked===b.trueValue},I=function(e){if(!b.disabled&&!b.readOnly&&b.onChange){var t,n=D()?b.falseValue:b.trueValue;if(null==b||null===(t=b.onChange)||void 0===t||t.call(b,{originalEvent:e,value:b.value,checked:n,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{type:"checkbox",name:b.name,id:b.id,value:b.value,checked:n}}),e.defaultPrevented)return;u.DomHandler.focus(C.current)}};c.useImperativeHandle(t,(function(){return{props:b,focus:function(){return u.DomHandler.focus(C.current)},getElement:function(){return E.current},getInput:function(){return C.current}}})),c.useEffect((function(){u.ObjectUtils.combinedRefs(C,b.inputRef)}),[C,b.inputRef]),o.useUpdateEffect((function(){C.current.checked=D()}),[b.checked,b.trueValue]),o.useMountEffect((function(){b.autoFocus&&u.DomHandler.focus(C.current,b.autoFocus)}));var M,R,N,A,U,V=D(),_=u.ObjectUtils.isNotEmpty(b.tooltip),F=O.getOtherProps(b),H=d({id:b.id,className:u.classNames(b.className,w("root",{checked:V,context:p})),style:b.style,"data-p-highlight":V,"data-p-disabled":b.disabled,onContextMenu:b.onContextMenu,onMouseDown:b.onMouseDown},F,S("root"));return c.createElement(c.Fragment,null,c.createElement("div",s({ref:E},H),(A=u.ObjectUtils.reduceKeys(F,u.DomHandler.ARIA_PROPS),U=d(k({id:b.inputId,type:"checkbox",className:w("input"),name:b.name,tabIndex:b.tabIndex,onFocus:function(e){return t=e,x(!0),void(null==b||null===(n=b.onFocus)||void 0===n||n.call(b,t));var t,n},onBlur:function(e){return t=e,x(!1),void(null==b||null===(n=b.onBlur)||void 0===n||n.call(b,t));var t,n},onChange:function(e){return I(e)},disabled:b.disabled,readOnly:b.readOnly,required:b.required,"aria-invalid":b.invalid,checked:V},A),S("input")),c.createElement("input",s({ref:C},U))),(M=d({className:w("icon")},S("icon")),R=d({className:w("box",{checked:V}),"data-p-highlight":V,"data-p-disabled":b.disabled},S("box")),N=u.IconUtils.getJSXIcon(V?b.icon||c.createElement(l.CheckIcon,M):null,k({},M),{props:b,checked:V}),c.createElement("div",R,N))),_&&c.createElement(i.Tooltip,s({target:E,content:b.tooltip,pt:S("tooltip")},b.tooltipOptions)))})));return x.displayName="Checkbox",e.Checkbox=x,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.icons.check,primereact.tooltip,primereact.utils);
|
package/chip/chip.cjs.js
CHANGED
|
@@ -40,54 +40,43 @@ function _typeof(o) {
|
|
|
40
40
|
}, _typeof(o);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
function
|
|
44
|
-
if (
|
|
45
|
-
var
|
|
46
|
-
if (
|
|
47
|
-
var
|
|
48
|
-
if (
|
|
43
|
+
function toPrimitive(t, r) {
|
|
44
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
45
|
+
var e = t[Symbol.toPrimitive];
|
|
46
|
+
if (void 0 !== e) {
|
|
47
|
+
var i = e.call(t, r || "default");
|
|
48
|
+
if ("object" != _typeof(i)) return i;
|
|
49
49
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
50
50
|
}
|
|
51
|
-
return (
|
|
51
|
+
return ("string" === r ? String : Number)(t);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
function
|
|
55
|
-
var
|
|
56
|
-
return _typeof(
|
|
54
|
+
function toPropertyKey(t) {
|
|
55
|
+
var i = toPrimitive(t, "string");
|
|
56
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
function _defineProperty(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
writable: true
|
|
67
|
-
});
|
|
68
|
-
} else {
|
|
69
|
-
obj[key] = value;
|
|
70
|
-
}
|
|
71
|
-
return obj;
|
|
59
|
+
function _defineProperty(e, r, t) {
|
|
60
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
61
|
+
value: t,
|
|
62
|
+
enumerable: !0,
|
|
63
|
+
configurable: !0,
|
|
64
|
+
writable: !0
|
|
65
|
+
}) : e[r] = t, e;
|
|
72
66
|
}
|
|
73
67
|
|
|
74
68
|
function _extends() {
|
|
75
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
76
|
-
for (var
|
|
77
|
-
var
|
|
78
|
-
for (var
|
|
79
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
80
|
-
target[key] = source[key];
|
|
81
|
-
}
|
|
82
|
-
}
|
|
69
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
70
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
71
|
+
var t = arguments[e];
|
|
72
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
83
73
|
}
|
|
84
|
-
return
|
|
85
|
-
};
|
|
86
|
-
return _extends.apply(this, arguments);
|
|
74
|
+
return n;
|
|
75
|
+
}, _extends.apply(null, arguments);
|
|
87
76
|
}
|
|
88
77
|
|
|
89
|
-
function _arrayWithHoles(
|
|
90
|
-
if (Array.isArray(
|
|
78
|
+
function _arrayWithHoles(r) {
|
|
79
|
+
if (Array.isArray(r)) return r;
|
|
91
80
|
}
|
|
92
81
|
|
|
93
82
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -118,27 +107,26 @@ function _iterableToArrayLimit(r, l) {
|
|
|
118
107
|
}
|
|
119
108
|
}
|
|
120
109
|
|
|
121
|
-
function _arrayLikeToArray(
|
|
122
|
-
|
|
123
|
-
for (var
|
|
124
|
-
return
|
|
110
|
+
function _arrayLikeToArray(r, a) {
|
|
111
|
+
(null == a || a > r.length) && (a = r.length);
|
|
112
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
113
|
+
return n;
|
|
125
114
|
}
|
|
126
115
|
|
|
127
|
-
function _unsupportedIterableToArray(
|
|
128
|
-
if (
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
116
|
+
function _unsupportedIterableToArray(r, a) {
|
|
117
|
+
if (r) {
|
|
118
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
119
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
120
|
+
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;
|
|
121
|
+
}
|
|
134
122
|
}
|
|
135
123
|
|
|
136
124
|
function _nonIterableRest() {
|
|
137
125
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
138
126
|
}
|
|
139
127
|
|
|
140
|
-
function _slicedToArray(
|
|
141
|
-
return _arrayWithHoles(
|
|
128
|
+
function _slicedToArray(r, e) {
|
|
129
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
142
130
|
}
|
|
143
131
|
|
|
144
132
|
var classes = {
|
|
@@ -186,6 +174,10 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
186
174
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
187
175
|
visibleState = _React$useState2[0],
|
|
188
176
|
setVisibleState = _React$useState2[1];
|
|
177
|
+
var _React$useState3 = React__namespace.useState(props.id),
|
|
178
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
179
|
+
idState = _React$useState4[0],
|
|
180
|
+
setIdState = _React$useState4[1];
|
|
189
181
|
var _ChipBase$setMetaData = ChipBase.setMetaData({
|
|
190
182
|
props: props
|
|
191
183
|
}),
|
|
@@ -203,6 +195,7 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
203
195
|
var close = function close(event) {
|
|
204
196
|
var result = true;
|
|
205
197
|
if (props.onRemove) {
|
|
198
|
+
event.stopPropagation();
|
|
206
199
|
result = props.onRemove({
|
|
207
200
|
originalEvent: event,
|
|
208
201
|
value: props.label || props.image || props.icon
|
|
@@ -222,7 +215,7 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
222
215
|
onKeyDown: onKeyDown
|
|
223
216
|
}, ptm('removeIcon'));
|
|
224
217
|
var icon = props.removeIcon || /*#__PURE__*/React__namespace.createElement(timescircle.TimesCircleIcon, _extends({}, removeIconProps, {
|
|
225
|
-
key:
|
|
218
|
+
key: "".concat(idState, "-removeIcon")
|
|
226
219
|
}));
|
|
227
220
|
if (props.image) {
|
|
228
221
|
var imageProps = mergeProps({
|
|
@@ -232,7 +225,7 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
232
225
|
content.push(/*#__PURE__*/React__namespace.createElement("img", _extends({
|
|
233
226
|
alt: props.imageAlt
|
|
234
227
|
}, imageProps, {
|
|
235
|
-
key:
|
|
228
|
+
key: "".concat(idState, "-image")
|
|
236
229
|
})));
|
|
237
230
|
} else if (props.icon) {
|
|
238
231
|
var chipIconProps = mergeProps({
|
|
@@ -283,6 +276,14 @@ var Chip = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forw
|
|
|
283
276
|
}
|
|
284
277
|
};
|
|
285
278
|
});
|
|
279
|
+
hooks.useMountEffect(function () {
|
|
280
|
+
if (!idState) {
|
|
281
|
+
setIdState(utils.UniqueComponentId());
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
if (!idState) {
|
|
285
|
+
return null;
|
|
286
|
+
}
|
|
286
287
|
return visibleState && createElement();
|
|
287
288
|
}));
|
|
288
289
|
Chip.displayName = 'Chip';
|
package/chip/chip.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/api"),t=require("primereact/componentbase"),n=require("primereact/hooks"),o=require("primereact/icons/timescircle"),i=require("primereact/utils");function l(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/api"),t=require("primereact/componentbase"),n=require("primereact/hooks"),o=require("primereact/icons/timescircle"),i=require("primereact/utils");function l(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var c=l(e);function a(e){return a="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},a(e)}function u(e,r){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}function s(e){var r=u(e,"string");return"symbol"==a(r)?r:r+""}function p(e,r,t){return(r=s(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},m.apply(null,arguments)}function f(e){if(Array.isArray(e))return e}function b(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,l,c=[],a=!0,u=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=i.call(t)).done)&&(c.push(n.value),c.length!==r);a=!0);}catch(e){u=!0,o=e}finally{try{if(!a&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(u)throw o}}return c}}function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function v(e,r){if(e){if("string"==typeof e)return y(e,r);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,r):void 0}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,r){return f(e)||b(e,r)||v(e,r)||g()}var d=t.ComponentBase.extend({defaultProps:{__TYPE:"Chip",label:null,icon:null,image:null,removable:!1,removeIcon:null,className:null,style:null,template:null,imageAlt:"chip",onImageError:null,onRemove:null,children:void 0},css:{classes:{root:function(e){return i.classNames("p-chip p-component",{"p-chip-image":null!=e.props.image})},removeIcon:"p-chip-remove-icon",icon:"p-chip-icon",label:"p-chip-text"},styles:"\n@layer primereact {\n .p-chip {\n display: inline-flex;\n align-items: center;\n }\n \n .p-chip-text {\n line-height: 1.5;\n }\n \n .p-chip-icon.pi {\n line-height: 1.5;\n }\n \n .p-chip .p-chip-remove-icon {\n line-height: 1.5;\n cursor: pointer;\n }\n \n .p-chip img {\n border-radius: 50%;\n }\n}\n"}});function O(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function j(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?O(Object(t),!0).forEach((function(r){p(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var P=c.memo(c.forwardRef((function(e,l){var a=n.useMergeProps(),u=c.useContext(r.PrimeReactContext),s=d.getProps(e,u),p=c.useRef(null),f=h(c.useState(!0),2),b=f[0],y=f[1],v=h(c.useState(s.id),2),g=v[0],O=v[1],P=d.setMetaData({props:s}),I=P.ptm,S=P.cx;t.useHandleStyle(d.css.styles,P.isUnstyled,{name:"chip"});var E,w,C=function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code&&"Backspace"!==e.code||x(e)},x=function(e){var r=!0;s.onRemove&&(e.stopPropagation(),r=s.onRemove({originalEvent:e,value:s.label||s.image||s.icon})),!1!==r&&y(!1)},N=function(){var e=[],r=a({role:"button",tabIndex:0,className:S("removeIcon"),onClick:x,onKeyDown:C},I("removeIcon")),t=s.removeIcon||c.createElement(o.TimesCircleIcon,m({},r,{key:"".concat(g,"-removeIcon")}));if(s.image){var n=a({src:s.image,onError:s.onImageError},I("image"));e.push(c.createElement("img",m({alt:s.imageAlt},n,{key:"".concat(g,"-image")})))}else if(s.icon){var l=a({className:S("icon")},I("icon"));e.push(i.IconUtils.getJSXIcon(s.icon,j({},l),{props:s}))}if(s.label){var u=a({className:S("label")},I("label"));e.push(c.createElement("span",m({},u,{key:i.UniqueComponentId("label")}),s.label))}return s.removable&&e.push(i.IconUtils.getJSXIcon(t,j({},r),{props:s})),e};return c.useImperativeHandle(l,(function(){return{props:s,getVisible:function(){return b},setVisible:function(e){return y(e)},getElement:function(){return p.current}}})),n.useMountEffect((function(){g||O(i.UniqueComponentId())})),g?b&&(E=s.template?i.ObjectUtils.getJSXElement(s.template,s):N(),w=a({ref:p,style:s.style,className:i.classNames(s.className,S("root")),"aria-label":s.label},d.getOtherProps(s),I("root")),c.createElement("div",m({},w,{key:i.UniqueComponentId("chip")}),E)):null})));P.displayName="Chip",exports.Chip=P;
|
package/chip/chip.d.ts
CHANGED
|
@@ -161,9 +161,9 @@ export interface ChipProps extends Omit<React.DetailedHTMLProps<React.HTMLAttrib
|
|
|
161
161
|
export declare class Chip extends React.Component<ChipProps, any> {
|
|
162
162
|
/**
|
|
163
163
|
* Used to get container element.
|
|
164
|
-
* @return {HTMLDivElement} Container element
|
|
164
|
+
* @return {HTMLDivElement | null} Container element
|
|
165
165
|
*/
|
|
166
|
-
public getElement(): HTMLDivElement;
|
|
166
|
+
public getElement(): HTMLDivElement | null;
|
|
167
167
|
/**
|
|
168
168
|
* Used to set the visibility of the chip.
|
|
169
169
|
* @param {boolean} visible - Whether to show or hide the chip
|
package/chip/chip.esm.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { PrimeReactContext } from 'primereact/api';
|
|
4
4
|
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
5
|
-
import { useMergeProps } from 'primereact/hooks';
|
|
5
|
+
import { useMergeProps, useMountEffect } from 'primereact/hooks';
|
|
6
6
|
import { TimesCircleIcon } from 'primereact/icons/timescircle';
|
|
7
|
-
import { classNames,
|
|
7
|
+
import { classNames, UniqueComponentId, ObjectUtils, IconUtils } from 'primereact/utils';
|
|
8
8
|
|
|
9
9
|
function _typeof(o) {
|
|
10
10
|
"@babel/helpers - typeof";
|
|
@@ -16,54 +16,43 @@ function _typeof(o) {
|
|
|
16
16
|
}, _typeof(o);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
function
|
|
20
|
-
if (
|
|
21
|
-
var
|
|
22
|
-
if (
|
|
23
|
-
var
|
|
24
|
-
if (
|
|
19
|
+
function toPrimitive(t, r) {
|
|
20
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
21
|
+
var e = t[Symbol.toPrimitive];
|
|
22
|
+
if (void 0 !== e) {
|
|
23
|
+
var i = e.call(t, r || "default");
|
|
24
|
+
if ("object" != _typeof(i)) return i;
|
|
25
25
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
26
26
|
}
|
|
27
|
-
return (
|
|
27
|
+
return ("string" === r ? String : Number)(t);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
function
|
|
31
|
-
var
|
|
32
|
-
return _typeof(
|
|
30
|
+
function toPropertyKey(t) {
|
|
31
|
+
var i = toPrimitive(t, "string");
|
|
32
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
function _defineProperty(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
writable: true
|
|
43
|
-
});
|
|
44
|
-
} else {
|
|
45
|
-
obj[key] = value;
|
|
46
|
-
}
|
|
47
|
-
return obj;
|
|
35
|
+
function _defineProperty(e, r, t) {
|
|
36
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
37
|
+
value: t,
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
writable: !0
|
|
41
|
+
}) : e[r] = t, e;
|
|
48
42
|
}
|
|
49
43
|
|
|
50
44
|
function _extends() {
|
|
51
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
52
|
-
for (var
|
|
53
|
-
var
|
|
54
|
-
for (var
|
|
55
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
56
|
-
target[key] = source[key];
|
|
57
|
-
}
|
|
58
|
-
}
|
|
45
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
46
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
47
|
+
var t = arguments[e];
|
|
48
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
59
49
|
}
|
|
60
|
-
return
|
|
61
|
-
};
|
|
62
|
-
return _extends.apply(this, arguments);
|
|
50
|
+
return n;
|
|
51
|
+
}, _extends.apply(null, arguments);
|
|
63
52
|
}
|
|
64
53
|
|
|
65
|
-
function _arrayWithHoles(
|
|
66
|
-
if (Array.isArray(
|
|
54
|
+
function _arrayWithHoles(r) {
|
|
55
|
+
if (Array.isArray(r)) return r;
|
|
67
56
|
}
|
|
68
57
|
|
|
69
58
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -94,27 +83,26 @@ function _iterableToArrayLimit(r, l) {
|
|
|
94
83
|
}
|
|
95
84
|
}
|
|
96
85
|
|
|
97
|
-
function _arrayLikeToArray(
|
|
98
|
-
|
|
99
|
-
for (var
|
|
100
|
-
return
|
|
86
|
+
function _arrayLikeToArray(r, a) {
|
|
87
|
+
(null == a || a > r.length) && (a = r.length);
|
|
88
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
89
|
+
return n;
|
|
101
90
|
}
|
|
102
91
|
|
|
103
|
-
function _unsupportedIterableToArray(
|
|
104
|
-
if (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
92
|
+
function _unsupportedIterableToArray(r, a) {
|
|
93
|
+
if (r) {
|
|
94
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
95
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
96
|
+
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;
|
|
97
|
+
}
|
|
110
98
|
}
|
|
111
99
|
|
|
112
100
|
function _nonIterableRest() {
|
|
113
101
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
114
102
|
}
|
|
115
103
|
|
|
116
|
-
function _slicedToArray(
|
|
117
|
-
return _arrayWithHoles(
|
|
104
|
+
function _slicedToArray(r, e) {
|
|
105
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
118
106
|
}
|
|
119
107
|
|
|
120
108
|
var classes = {
|
|
@@ -162,6 +150,10 @@ var Chip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
162
150
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
163
151
|
visibleState = _React$useState2[0],
|
|
164
152
|
setVisibleState = _React$useState2[1];
|
|
153
|
+
var _React$useState3 = React.useState(props.id),
|
|
154
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
155
|
+
idState = _React$useState4[0],
|
|
156
|
+
setIdState = _React$useState4[1];
|
|
165
157
|
var _ChipBase$setMetaData = ChipBase.setMetaData({
|
|
166
158
|
props: props
|
|
167
159
|
}),
|
|
@@ -179,6 +171,7 @@ var Chip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
179
171
|
var close = function close(event) {
|
|
180
172
|
var result = true;
|
|
181
173
|
if (props.onRemove) {
|
|
174
|
+
event.stopPropagation();
|
|
182
175
|
result = props.onRemove({
|
|
183
176
|
originalEvent: event,
|
|
184
177
|
value: props.label || props.image || props.icon
|
|
@@ -198,7 +191,7 @@ var Chip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
198
191
|
onKeyDown: onKeyDown
|
|
199
192
|
}, ptm('removeIcon'));
|
|
200
193
|
var icon = props.removeIcon || /*#__PURE__*/React.createElement(TimesCircleIcon, _extends({}, removeIconProps, {
|
|
201
|
-
key:
|
|
194
|
+
key: "".concat(idState, "-removeIcon")
|
|
202
195
|
}));
|
|
203
196
|
if (props.image) {
|
|
204
197
|
var imageProps = mergeProps({
|
|
@@ -208,7 +201,7 @@ var Chip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
208
201
|
content.push(/*#__PURE__*/React.createElement("img", _extends({
|
|
209
202
|
alt: props.imageAlt
|
|
210
203
|
}, imageProps, {
|
|
211
|
-
key:
|
|
204
|
+
key: "".concat(idState, "-image")
|
|
212
205
|
})));
|
|
213
206
|
} else if (props.icon) {
|
|
214
207
|
var chipIconProps = mergeProps({
|
|
@@ -259,6 +252,14 @@ var Chip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inPro
|
|
|
259
252
|
}
|
|
260
253
|
};
|
|
261
254
|
});
|
|
255
|
+
useMountEffect(function () {
|
|
256
|
+
if (!idState) {
|
|
257
|
+
setIdState(UniqueComponentId());
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
if (!idState) {
|
|
261
|
+
return null;
|
|
262
|
+
}
|
|
262
263
|
return visibleState && createElement();
|
|
263
264
|
}));
|
|
264
265
|
Chip.displayName = 'Chip';
|