primereact 10.8.5 → 10.9.0
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/LICENSE.md +1 -1
- package/accordion/accordion.cjs.js +55 -43
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +55 -43
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +55 -43
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +59 -44
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +59 -44
- package/api/api.esm.min.js +1 -1
- package/api/api.js +59 -44
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +59 -47
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +1 -1
- package/autocomplete/autocomplete.esm.js +59 -47
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +59 -47
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +49 -37
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +49 -37
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +49 -37
- package/avatar/avatar.min.js +1 -1
- package/badge/badge.cjs.js +23 -17
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +23 -17
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +23 -17
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +49 -37
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +49 -37
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +49 -37
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +49 -37
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +49 -37
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +49 -37
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +34 -23
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +34 -23
- package/button/button.esm.min.js +1 -1
- package/button/button.js +34 -23
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +67 -49
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +67 -49
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +67 -49
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +55 -43
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +55 -43
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +55 -43
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +52 -40
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +52 -40
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +52 -40
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/checkbox.cjs.js +55 -43
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +55 -43
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +55 -43
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +56 -40
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +56 -40
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +56 -40
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +68 -50
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +68 -50
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +68 -50
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +49 -37
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +49 -37
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +49 -37
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +42 -35
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +42 -35
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +42 -35
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +57 -43
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +57 -43
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +57 -43
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +49 -37
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +49 -37
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +49 -37
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +49 -37
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +49 -37
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +49 -37
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1485 -1043
- package/core/core.min.js +68 -68
- package/csstransition/csstransition.cjs.js +23 -17
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +23 -17
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +23 -17
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +32 -26
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +32 -26
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +32 -26
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +114 -87
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +114 -87
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +114 -87
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +58 -46
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +58 -46
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +58 -46
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +15 -14
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +15 -14
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +15 -14
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +62 -50
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +62 -50
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +62 -50
- package/dialog/dialog.min.js +1 -1
- package/dock/dock.cjs.js +55 -43
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +55 -43
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +55 -43
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +74 -52
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +2 -2
- package/dropdown/dropdown.esm.js +74 -52
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +74 -52
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +49 -37
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +49 -37
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +49 -37
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +26 -20
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +26 -20
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +26 -20
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +60 -48
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +60 -48
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +60 -48
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +30 -24
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +30 -24
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +30 -24
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +55 -43
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +55 -43
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +55 -43
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +44 -37
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +44 -37
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +44 -37
- package/hooks/hooks.min.js +1 -1
- package/iconbase/iconbase.cjs.js +1 -1
- package/iconbase/iconbase.cjs.min.js +1 -1
- package/iconbase/iconbase.esm.js +1 -1
- package/iconbase/iconbase.esm.min.js +1 -1
- package/iconbase/iconbase.js +1 -1
- package/iconbase/iconbase.min.js +1 -1
- package/iconfield/iconfield.cjs.js +34 -23
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +34 -23
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +34 -23
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +11 -6
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +11 -6
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +11 -6
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +11 -6
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +11 -6
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +11 -6
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +11 -6
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +11 -6
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +11 -6
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +11 -6
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +11 -6
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +11 -6
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +11 -6
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +11 -6
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +11 -6
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +11 -6
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +11 -6
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +11 -6
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +11 -6
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +11 -6
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +11 -6
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +11 -6
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +11 -6
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +11 -6
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +11 -6
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +11 -6
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +11 -6
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +11 -6
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +11 -6
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +11 -6
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +11 -6
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +11 -6
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +11 -6
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +11 -6
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +11 -6
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +11 -6
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +11 -6
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +11 -6
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +11 -6
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +11 -6
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +11 -6
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +11 -6
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +11 -6
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +11 -6
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +11 -6
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +11 -6
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +11 -6
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +11 -6
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +11 -6
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +11 -6
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +11 -6
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +11 -6
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +11 -6
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +11 -6
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +11 -6
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +11 -6
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +11 -6
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +11 -6
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +11 -6
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +11 -6
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +11 -6
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +11 -6
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +11 -6
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +11 -6
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +11 -6
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +11 -6
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +11 -6
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +11 -6
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +11 -6
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +11 -6
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +11 -6
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +11 -6
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +11 -6
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +11 -6
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +11 -6
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +11 -6
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +11 -6
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +11 -6
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +11 -6
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +11 -6
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +11 -6
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +11 -6
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +11 -6
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +11 -6
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +11 -6
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +11 -6
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +11 -6
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +11 -6
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +11 -6
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +11 -6
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +11 -6
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +11 -6
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +11 -6
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +11 -6
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +11 -6
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +11 -6
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +11 -6
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +11 -6
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +11 -6
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +11 -6
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +11 -6
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +11 -6
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +11 -6
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +11 -6
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +11 -6
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +11 -6
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +11 -6
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +11 -6
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +11 -6
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +11 -6
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +11 -6
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +11 -6
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +11 -6
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +11 -6
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +11 -6
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +11 -6
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +11 -6
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +11 -6
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +11 -6
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +11 -6
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +11 -6
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +11 -6
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +11 -6
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +11 -6
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +11 -6
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +11 -6
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +11 -6
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +11 -6
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +11 -6
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +11 -6
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +11 -6
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +11 -6
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +11 -6
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +11 -6
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +11 -6
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +11 -6
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +11 -6
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +11 -6
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +11 -6
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +11 -6
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +11 -6
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +49 -37
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +49 -37
- package/image/image.esm.min.js +1 -1
- package/image/image.js +49 -37
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +15 -14
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +15 -14
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +15 -14
- package/inplace/inplace.min.js +1 -1
- package/inputicon/inputicon.cjs.js +34 -23
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +34 -23
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +34 -23
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +11 -6
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +11 -6
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +11 -6
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +55 -43
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +55 -43
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +55 -43
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +55 -43
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +55 -43
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +55 -43
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +34 -23
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +34 -23
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +34 -23
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +34 -23
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +34 -23
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +34 -23
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +43 -24
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +43 -24
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +43 -24
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +17 -16
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +17 -16
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +17 -16
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +15 -14
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +15 -14
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +15 -14
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +58 -46
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +58 -46
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +58 -46
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +51 -39
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +51 -39
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +51 -39
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +64 -44
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +64 -44
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +64 -44
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +73 -54
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +73 -54
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +73 -54
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +49 -37
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +49 -37
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +49 -37
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +34 -23
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +34 -23
- package/message/message.esm.min.js +1 -1
- package/message/message.js +34 -23
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +56 -44
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +56 -44
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +56 -44
- package/messages/messages.min.js +1 -1
- package/metergroup/metergroup.cjs.js +34 -23
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +34 -23
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +34 -23
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +67 -55
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +68 -56
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +67 -55
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +56 -44
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +56 -44
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +56 -44
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +55 -43
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +55 -43
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +55 -43
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +55 -43
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +55 -43
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +55 -43
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +50 -39
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +51 -40
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +50 -39
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +56 -41
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +56 -41
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +56 -41
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +26 -20
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +26 -20
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +26 -20
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +49 -37
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +49 -37
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +49 -37
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +23 -17
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +23 -17
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +23 -17
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +15 -14
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +15 -14
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +15 -14
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +49 -37
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +49 -37
- package/password/password.esm.min.js +1 -1
- package/password/password.js +49 -37
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +64 -49
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +64 -49
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +64 -49
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +15 -14
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +15 -14
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +15 -14
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +382 -276
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2783 -2677
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +382 -276
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +34 -23
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +34 -23
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +34 -23
- package/progressbar/progressbar.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +34 -23
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +34 -23
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +34 -23
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +49 -37
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +49 -37
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +49 -37
- package/rating/rating.min.js +1 -1
- package/ripple/ripple.cjs.js +49 -37
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +49 -37
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +49 -37
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +27 -20
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +27 -20
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +27 -20
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +49 -37
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +49 -37
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +49 -37
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +32 -26
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +32 -26
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +32 -26
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +50 -39
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +51 -40
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +50 -39
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +23 -17
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +23 -17
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +23 -17
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +49 -37
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +49 -37
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +49 -37
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +55 -43
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +55 -43
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +55 -43
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +55 -43
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +55 -43
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +55 -43
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +49 -37
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +49 -37
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +49 -37
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +55 -43
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +55 -43
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +55 -43
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.js +49 -37
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +49 -37
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +49 -37
- package/stepper/stepper.min.js +1 -1
- package/steps/steps.cjs.js +49 -37
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +49 -37
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +49 -37
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +15 -14
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +15 -14
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +15 -14
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +49 -37
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +49 -37
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +49 -37
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +61 -38
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +61 -38
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +61 -38
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +23 -17
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +23 -17
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +23 -17
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +21 -20
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +21 -20
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +21 -20
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +49 -37
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +49 -37
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +49 -37
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +34 -23
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +34 -23
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +34 -23
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +60 -277
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +61 -278
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +60 -277
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +34 -23
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +34 -23
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +34 -23
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/tooltip.cjs.js +59 -45
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +60 -46
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +59 -45
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +67 -55
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +67 -55
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +67 -55
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +59 -47
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +60 -48
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +59 -47
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +111 -91
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +111 -91
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +111 -91
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +50 -38
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +50 -38
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +50 -38
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +89 -90
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +88 -69
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +91 -90
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +63 -40
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +64 -41
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +63 -40
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +4 -4
package/image/image.js
CHANGED
|
@@ -26,13 +26,18 @@ this.primereact.image = (function (exports, React, PrimeReact, componentbase, cs
|
|
|
26
26
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
27
|
|
|
28
28
|
function _extends() {
|
|
29
|
-
|
|
30
|
-
for (var
|
|
31
|
-
var
|
|
32
|
-
for (var
|
|
29
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
31
|
+
var source = arguments[i];
|
|
32
|
+
for (var key in source) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
+
target[key] = source[key];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
33
37
|
}
|
|
34
|
-
return
|
|
35
|
-
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
40
|
+
return _extends.apply(this, arguments);
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
function _typeof(o) {
|
|
@@ -45,33 +50,39 @@ this.primereact.image = (function (exports, React, PrimeReact, componentbase, cs
|
|
|
45
50
|
}, _typeof(o);
|
|
46
51
|
}
|
|
47
52
|
|
|
48
|
-
function
|
|
49
|
-
if ("object"
|
|
50
|
-
var
|
|
51
|
-
if (
|
|
52
|
-
var
|
|
53
|
-
if ("object"
|
|
53
|
+
function _toPrimitive(input, hint) {
|
|
54
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
55
|
+
var prim = input[Symbol.toPrimitive];
|
|
56
|
+
if (prim !== undefined) {
|
|
57
|
+
var res = prim.call(input, hint || "default");
|
|
58
|
+
if (_typeof(res) !== "object") return res;
|
|
54
59
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
55
60
|
}
|
|
56
|
-
return ("string"
|
|
61
|
+
return (hint === "string" ? String : Number)(input);
|
|
57
62
|
}
|
|
58
63
|
|
|
59
|
-
function
|
|
60
|
-
var
|
|
61
|
-
return "symbol"
|
|
64
|
+
function _toPropertyKey(arg) {
|
|
65
|
+
var key = _toPrimitive(arg, "string");
|
|
66
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
function _defineProperty(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
function _defineProperty(obj, key, value) {
|
|
70
|
+
key = _toPropertyKey(key);
|
|
71
|
+
if (key in obj) {
|
|
72
|
+
Object.defineProperty(obj, key, {
|
|
73
|
+
value: value,
|
|
74
|
+
enumerable: true,
|
|
75
|
+
configurable: true,
|
|
76
|
+
writable: true
|
|
77
|
+
});
|
|
78
|
+
} else {
|
|
79
|
+
obj[key] = value;
|
|
80
|
+
}
|
|
81
|
+
return obj;
|
|
71
82
|
}
|
|
72
83
|
|
|
73
|
-
function _arrayWithHoles(
|
|
74
|
-
if (Array.isArray(
|
|
84
|
+
function _arrayWithHoles(arr) {
|
|
85
|
+
if (Array.isArray(arr)) return arr;
|
|
75
86
|
}
|
|
76
87
|
|
|
77
88
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -102,26 +113,27 @@ this.primereact.image = (function (exports, React, PrimeReact, componentbase, cs
|
|
|
102
113
|
}
|
|
103
114
|
}
|
|
104
115
|
|
|
105
|
-
function _arrayLikeToArray(
|
|
106
|
-
(
|
|
107
|
-
for (var
|
|
108
|
-
return
|
|
116
|
+
function _arrayLikeToArray(arr, len) {
|
|
117
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
118
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
119
|
+
return arr2;
|
|
109
120
|
}
|
|
110
121
|
|
|
111
|
-
function _unsupportedIterableToArray(
|
|
112
|
-
if (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
122
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
123
|
+
if (!o) return;
|
|
124
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
125
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
126
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
127
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
128
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
117
129
|
}
|
|
118
130
|
|
|
119
131
|
function _nonIterableRest() {
|
|
120
132
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
121
133
|
}
|
|
122
134
|
|
|
123
|
-
function _slicedToArray(
|
|
124
|
-
return _arrayWithHoles(
|
|
135
|
+
function _slicedToArray(arr, i) {
|
|
136
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
125
137
|
}
|
|
126
138
|
|
|
127
139
|
var DownloadIcon = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
package/image/image.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.image=function(e,t,n,o,r,a,i,l,c,s,u,p,m,f,d){"use strict";function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function b(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var y=b(t),v=g(n);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},w.apply(null,arguments)}function I(e){return I="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},I(e)}function h(e,t){if("object"!=I(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=I(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function O(e){var t=h(e,"string");return"symbol"==I(t)?t:t+""}function C(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){if(Array.isArray(e))return e}function S(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function j(e,t){if(e){if("string"==typeof e)return P(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)?P(e,t):void 0}}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 k(e,t){return E(e)||S(e,t)||j(e,t)||x()}var N=y.memo(y.forwardRef((function(e,t){var n=i.IconBase.getPTI(e);return y.createElement("svg",w({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.0118 10C6.93296 10.0003 6.85484 9.98495 6.78202 9.95477C6.7091 9.92454 6.64297 9.88008 6.58749 9.82399L3.38288 6.62399C3.27675 6.51025 3.21897 6.35982 3.22171 6.20438C3.22446 6.04893 3.28752 5.90063 3.39761 5.7907C3.5077 5.68077 3.65622 5.6178 3.81188 5.61505C3.96755 5.61231 4.1182 5.67001 4.23211 5.77599L6.41125 7.95201V0.6C6.41125 0.44087 6.47456 0.288258 6.58724 0.175736C6.69993 0.063214 6.85276 0 7.01212 0C7.17148 0 7.32431 0.063214 7.43699 0.175736C7.54968 0.288258 7.61298 0.44087 7.61298 0.6V7.95198L9.7921 5.77599C9.90601 5.67001 10.0567 5.61231 10.2123 5.61505C10.368 5.6178 10.5165 5.68077 10.6266 5.7907C10.7367 5.90063 10.7997 6.04893 10.8025 6.20438C10.8052 6.35982 10.7475 6.51025 10.6413 6.62399L7.43671 9.82399C7.38124 9.88008 7.3151 9.92454 7.24219 9.95477C7.16938 9.98495 7.09127 10.0003 7.01244 10C7.01233 10 7.01223 10 7.01212 10C7.01201 10 7.0119 10 7.0118 10ZM13.45 13.3115C13.0749 13.7235 12.5521 13.971 11.9952 14H2.02889C1.75106 13.9887 1.47819 13.9228 1.2259 13.806C0.973606 13.6893 0.74684 13.524 0.558578 13.3197C0.370316 13.1153 0.224251 12.8759 0.128742 12.6152C0.0332333 12.3544 -0.00984502 12.0774 0.00197194 11.8V9.39999C0.00197194 9.24086 0.065277 9.08825 0.177961 8.97572C0.290645 8.8632 0.443477 8.79999 0.602836 8.79999C0.762195 8.79999 0.915027 8.8632 1.02771 8.97572C1.1404 9.08825 1.2037 9.24086 1.2037 9.39999V11.8C1.18301 12.0375 1.25469 12.2739 1.40385 12.4601C1.55302 12.6463 1.76823 12.768 2.00485 12.8H11.9952C12.2318 12.768 12.4471 12.6463 12.5962 12.4601C12.7454 12.2739 12.8171 12.0375 12.7964 11.8V9.39999C12.7964 9.24086 12.8597 9.08825 12.9724 8.97572C13.085 8.8632 13.2379 8.79999 13.3972 8.79999C13.5566 8.79999 13.7094 8.8632 13.8221 8.97572C13.9348 9.08825 13.9981 9.24086 13.9981 9.39999V11.8C14.0221 12.3563 13.8251 12.8995 13.45 13.3115Z",fill:"currentColor"}))})));N.displayName="DownloadIcon";var z=o.ComponentBase.extend({defaultProps:{__TYPE:"Image",alt:null,className:null,closeIcon:null,crossOrigin:null,decoding:null,downloadIcon:null,downloadable:!1,height:null,imageClassName:null,imageStyle:null,indicatorIcon:null,loading:null,onError:null,onHide:null,onShow:null,preview:!1,referrerPolicy:null,rotateLeftIcon:null,rotateRightIcon:null,src:null,template:null,useMap:null,width:null,zoomInIcon:null,zoomOutIcon:null,zoomSrc:null,children:void 0,closeOnEscape:!0},css:{classes:{button:"p-image-preview-indicator",mask:"p-image-mask p-component-overlay p-component-overlay-enter",toolbar:"p-image-toolbar",downloadButton:"p-image-action p-link",rotateRightButton:"p-image-action p-link",rotateLeftButton:"p-image-action p-link",zoomOutButton:"p-image-action p-link",zoomInButton:"p-image-action p-link",closeButton:"p-image-action p-link",preview:"p-image-preview",icon:"p-image-preview-icon",root:function(e){return d.classNames("p-image p-component",{"p-image-preview-container":e.props.preview})},transition:"p-image-preview"},styles:"\n@layer primereact {\n .p-image-mask {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-image-preview-container {\n position: relative;\n display: inline-block;\n line-height: 0;\n }\n \n .p-image-preview-indicator {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity .3s;\n border: none;\n padding: 0;\n }\n \n .p-image-preview-icon {\n font-size: 1.5rem;\n }\n \n .p-image-preview-container:hover > .p-image-preview-indicator {\n opacity: 1;\n cursor: pointer;\n }\n \n .p-image-preview-container > img {\n cursor: pointer;\n }\n \n .p-image-toolbar {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n z-index: 1;\n }\n \n .p-image-action.p-link {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-image-preview {\n transition: transform .15s;\n max-width: 100vw;\n max-height: 100vh;\n width: 100%;\n height: 100%;\n }\n \n .p-image-preview-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-image-preview-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-image-preview-enter-done {\n transform: none;\n }\n \n .p-image-preview-exit {\n opacity: 1;\n }\n \n .p-image-preview-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n}\n",inlineStyles:{preview:function(e){return{transform:"rotate("+e.rotateState+"deg) scale("+e.scaleState+")"}}}}});function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var U=y.memo(y.forwardRef((function(e,t){var i=a.useMergeProps(),g=y.useContext(n.PrimeReactContext),b=z.getProps(e,g),I=k(y.useState(!1),2),h=I[0],O=I[1],C=k(y.useState(!1),2),E=C[0],S=C[1],P=k(y.useState(0),2),j=P[0],x=P[1],B=k(y.useState(1),2),U=B[0],D=B[1],M=y.useRef(null),H=y.useRef(null),L=y.useRef(null),T=y.useRef(null),A=y.useRef(null),_=U<=.5,J=U>=1.5,V=z.setMetaData({props:b,state:{maskVisible:h,previewVisible:E,rotate:j,scale:U}}),X=V.ptm,Z=V.cx,G=V.sx,K=V.isUnstyled;a.useGlobalOnEscapeKey({callback:function(){F()},when:b.closeOnEscape&&h,priority:[a.ESC_KEY_HANDLING_PRIORITIES.IMAGE,0]}),o.useHandleStyle(z.css.styles,K,{name:"image"});var Y=function(){b.preview&&(O(!0),d.DomHandler.blockBodyScroll(),setTimeout((function(){S(!0)}),25))},F=function(){S(!1),d.DomHandler.unblockBodyScroll(),x(0),D(1)},$=function(e){[e.target.classList].includes("p-image-action")||e.target.closest(".p-image-action")||F()},q=function(e){if("Escape"===e.code)F(),setTimeout((function(){d.DomHandler.focus(A.current)}),200),e.preventDefault()},Q=function(){d.DomHandler.saveAs({name:b.alt,src:b.src})},W=function(e){e.stopPropagation(),x((function(e){return e+90}))},ee=function(e){e.stopPropagation(),x((function(e){return e-90}))},te=function(e){e.stopPropagation(),D((function(e){return J?e:e+.1}))},ne=function(e){e.stopPropagation(),D((function(e){return _?e:e-.1}))},oe=function(){d.ZIndexUtils.set("modal",L.current,g&&g.autoZIndex||v.default.autoZIndex,g&&g.zIndex.modal||v.default.zIndex.modal)},re=function(){b.onShow&&b.onShow()},ae=function(){!K()&&d.DomHandler.addClass(L.current,"p-component-overlay-leave")},ie=function(){b.onHide&&b.onHide()},le=function(){d.ZIndexUtils.clear(L.current),O(!1)};a.useUnmountEffect((function(){L.current&&d.ZIndexUtils.clear(L.current)}));y.useImperativeHandle(t,(function(){return{props:b,show:Y,hide:F,getElement:function(){return M.current},getImage:function(){return H.current}}}));var ce,se,ue=b.src,pe=b.alt,me=b.width,fe=b.height,de=b.crossOrigin,ge=b.referrerPolicy,be=b.useMap,ye=b.loading,ve=function(){var e=b.downloadable,t=b.alt,o=b.crossOrigin,a=b.referrerPolicy,l=b.useMap,f=b.loading,g=i(X("downloadIcon")),v=i(X("rotateRightIcon")),I=i(X("rotateLeftIcon")),O=i(X("zoomOutIcon")),C=i(X("zoomInIcon")),S=i(X("closeIcon")),P=d.IconUtils.getJSXIcon(b.downloadIcon||y.createElement(N,null),R({},g),{props:b}),x=d.IconUtils.getJSXIcon(b.rotateRightIcon||y.createElement(c.RefreshIcon,null),R({},v),{props:b}),k=d.IconUtils.getJSXIcon(b.rotateLeftIcon||y.createElement(m.UndoIcon,null),R({},I),{props:b}),z=d.IconUtils.getJSXIcon(b.zoomOutIcon||y.createElement(s.SearchMinusIcon,null),R({},O),{props:b}),B=d.IconUtils.getJSXIcon(b.zoomInIcon||y.createElement(u.SearchPlusIcon,null),R({},C),{props:b}),D=d.IconUtils.getJSXIcon(b.closeIcon||y.createElement(p.TimesIcon,null),R({},S),{props:b}),M=i({ref:L,role:"dialog",className:Z("mask"),"aria-modal":h,onClick:$,onKeyDown:q},X("mask")),H=i({className:Z("toolbar")},X("toolbar")),A=i({className:Z("downloadButton"),onPointerUp:Q,type:"button"},X("downloadButton")),V=i({className:Z("rotateRightButton"),onClick:W,type:"button","aria-label":n.localeOption("aria")?n.localeOption("aria").rotateRight:void 0,"data-pc-group-section":"action"},X("rotateRightButton")),K=i({className:Z("rotateLeftButton"),onClick:ee,type:"button","aria-label":n.localeOption("aria")?n.localeOption("aria").rotateLeft:void 0,"data-pc-group-section":"action"},X("rotateLeftButton")),Y=i({className:d.classNames(Z("zoomOutButton"),{"p-disabled":_}),style:{pointerEvents:"auto"},onClick:ne,type:"button",disabled:_,"aria-label":n.localeOption("aria")?n.localeOption("aria").zoomOut:void 0,"data-pc-group-section":"action"},X("zoomOutButton")),ce=i({className:d.classNames(Z("zoomInButton"),{"p-disabled":J}),style:{pointerEvents:"auto"},onClick:te,type:"button",disabled:J,"aria-label":n.localeOption("aria")?n.localeOption("aria").zoomIn:void 0,"data-pc-group-section":"action"},X("zoomInButton")),se=i({className:Z("closeButton"),type:"button",onClick:F,"aria-label":n.localeOption("aria")?n.localeOption("aria").close:void 0,autoFocus:!0,"data-pc-group-section":"action"},X("closeButton")),ue=i({src:b.zoomSrc||b.src,className:Z("preview"),style:G("preview",{rotateState:j,scaleState:U}),crossOrigin:o,referrerPolicy:a,useMap:l,loading:f},X("preview")),pe=i({ref:T},X("previewContainer")),me=i({classNames:Z("transition"),in:E,timeout:{enter:150,exit:150},unmountOnExit:!0,onEntering:oe,onEntered:re,onExit:ae,onExiting:ie,onExited:le},X("transition"));return y.createElement("div",M,y.createElement("div",H,e&&y.createElement("button",A,P),y.createElement("button",V,x),y.createElement("button",K,k),y.createElement("button",Y,z),y.createElement("button",ce,B),y.createElement("button",se,D)),y.createElement(r.CSSTransition,w({nodeRef:T},me),y.createElement("div",pe,y.createElement("img",w({alt:t},ue)))))}(),we=i({className:Z("icon")},X("icon")),Ie=d.IconUtils.getJSXIcon(b.indicatorIcon||y.createElement(l.EyeIcon,we),R({},we),{props:b}),he=b.template?d.ObjectUtils.getJSXElement(b.template,b):Ie,Oe=(ce=n.localeOption("aria")?n.localeOption("aria").zoomImage:void 0,se=i({ref:A,className:Z("button"),onClick:Y,type:"button","aria-label":ce},X("button")),b.preview?y.createElement("button",se,he):null),Ce=i({ref:H,src:ue,className:b.imageClassName,width:me,height:fe,crossOrigin:de,referrerPolicy:ge,useMap:be,loading:ye,style:b.imageStyle,onError:b.onError},X("image")),Ee=b.src&&y.createElement("img",w({},Ce,{alt:pe})),Se=i({ref:M,className:d.classNames(b.className,Z("root"))},z.getOtherProps(b),X("root"));return y.createElement("span",Se,Ee,Oe,h&&y.createElement(f.Portal,{element:ve,appendTo:document.body}))})));return U.displayName="Image",e.Image=U,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.csstransition,primereact.hooks,primereact.iconbase,primereact.icons.eye,primereact.icons.refresh,primereact.icons.searchminus,primereact.icons.searchplus,primereact.icons.times,primereact.icons.undo,primereact.portal,primereact.utils);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.image=function(e,t,n,o,r,a,i,l,c,s,u,p,m,f,d){"use strict";function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function b(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var y=b(t),v=g(n);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},w.apply(this,arguments)}function h(e){return h="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},h(e)}function I(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function O(e){var t=I(e,"string");return"symbol"===h(t)?t:String(t)}function C(e){if(Array.isArray(e))return e}function E(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function P(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}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 x(e,t){return C(e)||E(e,t)||P(e,t)||j()}var k=y.memo(y.forwardRef((function(e,t){var n=i.IconBase.getPTI(e);return y.createElement("svg",w({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.0118 10C6.93296 10.0003 6.85484 9.98495 6.78202 9.95477C6.7091 9.92454 6.64297 9.88008 6.58749 9.82399L3.38288 6.62399C3.27675 6.51025 3.21897 6.35982 3.22171 6.20438C3.22446 6.04893 3.28752 5.90063 3.39761 5.7907C3.5077 5.68077 3.65622 5.6178 3.81188 5.61505C3.96755 5.61231 4.1182 5.67001 4.23211 5.77599L6.41125 7.95201V0.6C6.41125 0.44087 6.47456 0.288258 6.58724 0.175736C6.69993 0.063214 6.85276 0 7.01212 0C7.17148 0 7.32431 0.063214 7.43699 0.175736C7.54968 0.288258 7.61298 0.44087 7.61298 0.6V7.95198L9.7921 5.77599C9.90601 5.67001 10.0567 5.61231 10.2123 5.61505C10.368 5.6178 10.5165 5.68077 10.6266 5.7907C10.7367 5.90063 10.7997 6.04893 10.8025 6.20438C10.8052 6.35982 10.7475 6.51025 10.6413 6.62399L7.43671 9.82399C7.38124 9.88008 7.3151 9.92454 7.24219 9.95477C7.16938 9.98495 7.09127 10.0003 7.01244 10C7.01233 10 7.01223 10 7.01212 10C7.01201 10 7.0119 10 7.0118 10ZM13.45 13.3115C13.0749 13.7235 12.5521 13.971 11.9952 14H2.02889C1.75106 13.9887 1.47819 13.9228 1.2259 13.806C0.973606 13.6893 0.74684 13.524 0.558578 13.3197C0.370316 13.1153 0.224251 12.8759 0.128742 12.6152C0.0332333 12.3544 -0.00984502 12.0774 0.00197194 11.8V9.39999C0.00197194 9.24086 0.065277 9.08825 0.177961 8.97572C0.290645 8.8632 0.443477 8.79999 0.602836 8.79999C0.762195 8.79999 0.915027 8.8632 1.02771 8.97572C1.1404 9.08825 1.2037 9.24086 1.2037 9.39999V11.8C1.18301 12.0375 1.25469 12.2739 1.40385 12.4601C1.55302 12.6463 1.76823 12.768 2.00485 12.8H11.9952C12.2318 12.768 12.4471 12.6463 12.5962 12.4601C12.7454 12.2739 12.8171 12.0375 12.7964 11.8V9.39999C12.7964 9.24086 12.8597 9.08825 12.9724 8.97572C13.085 8.8632 13.2379 8.79999 13.3972 8.79999C13.5566 8.79999 13.7094 8.8632 13.8221 8.97572C13.9348 9.08825 13.9981 9.24086 13.9981 9.39999V11.8C14.0221 12.3563 13.8251 12.8995 13.45 13.3115Z",fill:"currentColor"}))})));k.displayName="DownloadIcon";var N=o.ComponentBase.extend({defaultProps:{__TYPE:"Image",alt:null,className:null,closeIcon:null,crossOrigin:null,decoding:null,downloadIcon:null,downloadable:!1,height:null,imageClassName:null,imageStyle:null,indicatorIcon:null,loading:null,onError:null,onHide:null,onShow:null,preview:!1,referrerPolicy:null,rotateLeftIcon:null,rotateRightIcon:null,src:null,template:null,useMap:null,width:null,zoomInIcon:null,zoomOutIcon:null,zoomSrc:null,children:void 0,closeOnEscape:!0},css:{classes:{button:"p-image-preview-indicator",mask:"p-image-mask p-component-overlay p-component-overlay-enter",toolbar:"p-image-toolbar",downloadButton:"p-image-action p-link",rotateRightButton:"p-image-action p-link",rotateLeftButton:"p-image-action p-link",zoomOutButton:"p-image-action p-link",zoomInButton:"p-image-action p-link",closeButton:"p-image-action p-link",preview:"p-image-preview",icon:"p-image-preview-icon",root:function(e){return d.classNames("p-image p-component",{"p-image-preview-container":e.props.preview})},transition:"p-image-preview"},styles:"\n@layer primereact {\n .p-image-mask {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-image-preview-container {\n position: relative;\n display: inline-block;\n line-height: 0;\n }\n \n .p-image-preview-indicator {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity .3s;\n border: none;\n padding: 0;\n }\n \n .p-image-preview-icon {\n font-size: 1.5rem;\n }\n \n .p-image-preview-container:hover > .p-image-preview-indicator {\n opacity: 1;\n cursor: pointer;\n }\n \n .p-image-preview-container > img {\n cursor: pointer;\n }\n \n .p-image-toolbar {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n z-index: 1;\n }\n \n .p-image-action.p-link {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-image-preview {\n transition: transform .15s;\n max-width: 100vw;\n max-height: 100vh;\n width: 100%;\n height: 100%;\n }\n \n .p-image-preview-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-image-preview-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-image-preview-enter-done {\n transform: none;\n }\n \n .p-image-preview-exit {\n opacity: 1;\n }\n \n .p-image-preview-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n}\n",inlineStyles:{preview:function(e){return{transform:"rotate("+e.rotateState+"deg) scale("+e.scaleState+")"}}}}});function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){var o,r,a;o=e,a=n[t],(r=O(r=t))in o?Object.defineProperty(o,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[r]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=y.memo(y.forwardRef((function(e,t){var i=a.useMergeProps(),g=y.useContext(n.PrimeReactContext),b=N.getProps(e,g),h=x(y.useState(!1),2),I=h[0],O=h[1],C=x(y.useState(!1),2),E=C[0],S=C[1],P=x(y.useState(0),2),j=P[0],z=P[1],R=x(y.useState(1),2),U=R[0],D=R[1],M=y.useRef(null),H=y.useRef(null),L=y.useRef(null),T=y.useRef(null),A=y.useRef(null),_=U<=.5,J=U>=1.5,V=N.setMetaData({props:b,state:{maskVisible:I,previewVisible:E,rotate:j,scale:U}}),X=V.ptm,Z=V.cx,G=V.sx,K=V.isUnstyled;a.useGlobalOnEscapeKey({callback:function(){F()},when:b.closeOnEscape&&I,priority:[a.ESC_KEY_HANDLING_PRIORITIES.IMAGE,0]}),o.useHandleStyle(N.css.styles,K,{name:"image"});var Y=function(){b.preview&&(O(!0),d.DomHandler.blockBodyScroll(),setTimeout((function(){S(!0)}),25))},F=function(){S(!1),d.DomHandler.unblockBodyScroll(),z(0),D(1)},$=function(e){[e.target.classList].includes("p-image-action")||e.target.closest(".p-image-action")||F()},q=function(e){if("Escape"===e.code)F(),setTimeout((function(){d.DomHandler.focus(A.current)}),200),e.preventDefault()},Q=function(){d.DomHandler.saveAs({name:b.alt,src:b.src})},W=function(e){e.stopPropagation(),z((function(e){return e+90}))},ee=function(e){e.stopPropagation(),z((function(e){return e-90}))},te=function(e){e.stopPropagation(),D((function(e){return J?e:e+.1}))},ne=function(e){e.stopPropagation(),D((function(e){return _?e:e-.1}))},oe=function(){d.ZIndexUtils.set("modal",L.current,g&&g.autoZIndex||v.default.autoZIndex,g&&g.zIndex.modal||v.default.zIndex.modal)},re=function(){b.onShow&&b.onShow()},ae=function(){!K()&&d.DomHandler.addClass(L.current,"p-component-overlay-leave")},ie=function(){b.onHide&&b.onHide()},le=function(){d.ZIndexUtils.clear(L.current),O(!1)};a.useUnmountEffect((function(){L.current&&d.ZIndexUtils.clear(L.current)}));y.useImperativeHandle(t,(function(){return{props:b,show:Y,hide:F,getElement:function(){return M.current},getImage:function(){return H.current}}}));var ce,se,ue=b.src,pe=b.alt,me=b.width,fe=b.height,de=b.crossOrigin,ge=b.referrerPolicy,be=b.useMap,ye=b.loading,ve=function(){var e=b.downloadable,t=b.alt,o=b.crossOrigin,a=b.referrerPolicy,l=b.useMap,f=b.loading,g=i(X("downloadIcon")),v=i(X("rotateRightIcon")),h=i(X("rotateLeftIcon")),O=i(X("zoomOutIcon")),C=i(X("zoomInIcon")),S=i(X("closeIcon")),P=d.IconUtils.getJSXIcon(b.downloadIcon||y.createElement(k,null),B({},g),{props:b}),x=d.IconUtils.getJSXIcon(b.rotateRightIcon||y.createElement(c.RefreshIcon,null),B({},v),{props:b}),N=d.IconUtils.getJSXIcon(b.rotateLeftIcon||y.createElement(m.UndoIcon,null),B({},h),{props:b}),z=d.IconUtils.getJSXIcon(b.zoomOutIcon||y.createElement(s.SearchMinusIcon,null),B({},O),{props:b}),R=d.IconUtils.getJSXIcon(b.zoomInIcon||y.createElement(u.SearchPlusIcon,null),B({},C),{props:b}),D=d.IconUtils.getJSXIcon(b.closeIcon||y.createElement(p.TimesIcon,null),B({},S),{props:b}),M=i({ref:L,role:"dialog",className:Z("mask"),"aria-modal":I,onClick:$,onKeyDown:q},X("mask")),H=i({className:Z("toolbar")},X("toolbar")),A=i({className:Z("downloadButton"),onPointerUp:Q,type:"button"},X("downloadButton")),V=i({className:Z("rotateRightButton"),onClick:W,type:"button","aria-label":n.localeOption("aria")?n.localeOption("aria").rotateRight:void 0,"data-pc-group-section":"action"},X("rotateRightButton")),K=i({className:Z("rotateLeftButton"),onClick:ee,type:"button","aria-label":n.localeOption("aria")?n.localeOption("aria").rotateLeft:void 0,"data-pc-group-section":"action"},X("rotateLeftButton")),Y=i({className:d.classNames(Z("zoomOutButton"),{"p-disabled":_}),style:{pointerEvents:"auto"},onClick:ne,type:"button",disabled:_,"aria-label":n.localeOption("aria")?n.localeOption("aria").zoomOut:void 0,"data-pc-group-section":"action"},X("zoomOutButton")),ce=i({className:d.classNames(Z("zoomInButton"),{"p-disabled":J}),style:{pointerEvents:"auto"},onClick:te,type:"button",disabled:J,"aria-label":n.localeOption("aria")?n.localeOption("aria").zoomIn:void 0,"data-pc-group-section":"action"},X("zoomInButton")),se=i({className:Z("closeButton"),type:"button",onClick:F,"aria-label":n.localeOption("aria")?n.localeOption("aria").close:void 0,autoFocus:!0,"data-pc-group-section":"action"},X("closeButton")),ue=i({src:b.zoomSrc||b.src,className:Z("preview"),style:G("preview",{rotateState:j,scaleState:U}),crossOrigin:o,referrerPolicy:a,useMap:l,loading:f},X("preview")),pe=i({ref:T},X("previewContainer")),me=i({classNames:Z("transition"),in:E,timeout:{enter:150,exit:150},unmountOnExit:!0,onEntering:oe,onEntered:re,onExit:ae,onExiting:ie,onExited:le},X("transition"));return y.createElement("div",M,y.createElement("div",H,e&&y.createElement("button",A,P),y.createElement("button",V,x),y.createElement("button",K,N),y.createElement("button",Y,z),y.createElement("button",ce,R),y.createElement("button",se,D)),y.createElement(r.CSSTransition,w({nodeRef:T},me),y.createElement("div",pe,y.createElement("img",w({alt:t},ue)))))}(),we=i({className:Z("icon")},X("icon")),he=d.IconUtils.getJSXIcon(b.indicatorIcon||y.createElement(l.EyeIcon,we),B({},we),{props:b}),Ie=b.template?d.ObjectUtils.getJSXElement(b.template,b):he,Oe=(ce=n.localeOption("aria")?n.localeOption("aria").zoomImage:void 0,se=i({ref:A,className:Z("button"),onClick:Y,type:"button","aria-label":ce},X("button")),b.preview?y.createElement("button",se,Ie):null),Ce=i({ref:H,src:ue,className:b.imageClassName,width:me,height:fe,crossOrigin:de,referrerPolicy:ge,useMap:be,loading:ye,style:b.imageStyle,onError:b.onError},X("image")),Ee=b.src&&y.createElement("img",w({},Ce,{alt:pe})),Se=i({ref:M,className:d.classNames(b.className,Z("root"))},N.getOtherProps(b),X("root"));return y.createElement("span",Se,Ee,Oe,I&&y.createElement(f.Portal,{element:ve,appendTo:document.body}))})));return R.displayName="Image",e.Image=R,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.csstransition,primereact.hooks,primereact.iconbase,primereact.icons.eye,primereact.icons.refresh,primereact.icons.searchminus,primereact.icons.searchplus,primereact.icons.times,primereact.icons.undo,primereact.portal,primereact.utils);
|
package/inplace/inplace.cjs.js
CHANGED
|
@@ -31,8 +31,8 @@ function _interopNamespace(e) {
|
|
|
31
31
|
|
|
32
32
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
33
|
|
|
34
|
-
function _arrayWithHoles(
|
|
35
|
-
if (Array.isArray(
|
|
34
|
+
function _arrayWithHoles(arr) {
|
|
35
|
+
if (Array.isArray(arr)) return arr;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -63,26 +63,27 @@ function _iterableToArrayLimit(r, l) {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
function _arrayLikeToArray(
|
|
67
|
-
(
|
|
68
|
-
for (var
|
|
69
|
-
return
|
|
66
|
+
function _arrayLikeToArray(arr, len) {
|
|
67
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
68
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
69
|
+
return arr2;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
function _unsupportedIterableToArray(
|
|
73
|
-
if (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
73
|
+
if (!o) return;
|
|
74
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
75
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
76
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
77
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
78
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
function _nonIterableRest() {
|
|
81
82
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
function _slicedToArray(
|
|
85
|
-
return _arrayWithHoles(
|
|
85
|
+
function _slicedToArray(arr, i) {
|
|
86
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
var classes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),n=require("primereact/api"),t=require("primereact/button"),l=require("primereact/componentbase"),a=require("primereact/hooks"),r=require("primereact/icons/times"),o=require("primereact/utils");function i(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var c=i(e);function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),n=require("primereact/api"),t=require("primereact/button"),l=require("primereact/componentbase"),a=require("primereact/hooks"),r=require("primereact/icons/times"),o=require("primereact/utils");function i(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var c=i(e);function p(e){if(Array.isArray(e))return e}function s(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var l,a,r,o,i=[],c=!0,p=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(l=r.call(t)).done)&&(i.push(l.value),i.length!==n);c=!0);}catch(e){p=!0,a=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(p)throw a}}return i}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,l=new Array(n);t<n;t++)l[t]=e[t];return l}function d(e,n){if(e){if("string"==typeof e)return u(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)?u(e,n):void 0}}function f(){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 m={display:function(e){return o.classNames("p-inplace-display",{"p-disabled":e.props.disabled})},root:function(e){return o.classNames("p-inplace p-component",{"p-inplace-closable":e.props.closable})},closeButton:"p-inplace-content-close",content:"p-inplace-content"};l.ComponentBase.extend({defaultProps:{__TYPE:"InplaceDisplay",children:void 0}}),l.ComponentBase.extend({defaultProps:{__TYPE:"InplaceContent",children:void 0}});var y=l.ComponentBase.extend({defaultProps:{__TYPE:"Inplace",style:null,className:null,active:!1,closable:!1,closeIcon:null,disabled:!1,tabIndex:0,ariaLabel:null,onOpen:null,onClose:null,onToggle:null,children:void 0},css:{classes:m,styles:"\n@layer primereact {\n .p-inplace .p-inplace-display {\n display: inline;\n cursor: pointer;\n }\n \n .p-inplace .p-inplace-content {\n display: inline;\n }\n \n .p-fluid .p-inplace.p-inplace-closable .p-inplace-content {\n display: flex;\n }\n \n .p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {\n flex: 1 1 auto;\n width: 1%;\n }\n \n .p-inplace-content-close {\n margin-left: .25rem;\n }\n}\n"}}),v=function(e){return e.children},b=function(e){return e.children},g=c.forwardRef((function(e,i){var u,m,v=a.useMergeProps(),b=c.useContext(n.PrimeReactContext),g=y.getProps(e,b),I=c.useState(g.active),h=(m=2,p(u=I)||s(u,m)||d(u,m)||f()),C=h[0],O=h[1],x=c.useRef(null),E=g.onToggle?g.active:C,j={props:g,state:{active:C}},N=y.setMetaData(j),P=N.ptm,_=N.cx;l.useHandleStyle(y.css.styles,N.isUnstyled,{name:"inplace"});var T=function(e){g.disabled||(g.onOpen&&g.onOpen(e),g.onToggle?g.onToggle({originalEvent:e,value:!0}):O(!0))},D=function(e){g.disabled||(g.onClose&&g.onClose(e),g.onToggle?g.onToggle({originalEvent:e,value:!1}):O(!1))},S=function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code&&"Space"!==e.code||(T(e),e.preventDefault())},w=function(e){var n=v({onClick:T,className:_("display"),onKeyDown:S,tabIndex:g.tabIndex||"0",role:"button","aria-label":g.ariaLabel},P("display"));return c.createElement("div",n,e)},q=function(){var e=o.IconUtils.getJSXIcon(g.closeIcon||c.createElement(r.TimesIcon,null),void 0,{props:g}),l=n.localeOption("aria")?n.localeOption("aria").close:void 0;if(g.closable){var a=v({className:_("closeButton"),icon:e,type:"button",onClick:D,"aria-label":l,pt:P("closeButton"),__parentMetadata:{parent:j}});return c.createElement(t.Button,a)}return null};c.useImperativeHandle(i,(function(){return{props:g,getElement:function(){return x.current}}})),a.useUpdateEffect((function(){g.active?T(null):D(null)}),[g.active]);var B,A=(B=["InplaceContent","InplaceDisplay"],c.Children.map(g.children,(function(e){return E&&o.ObjectUtils.isValidChild(e,"InplaceContent",B)?(n=e,t=q(),l=v({className:_("content")},P("content")),c.createElement("div",l,n,t)):!E&&o.ObjectUtils.isValidChild(e,"InplaceDisplay",B)?w(e):void 0;var n,t,l}))),M=v({ref:x,className:o.classNames(g.className,_("root")),"aria-live":"polite"},y.getOtherProps(g),P("root"));return c.createElement("div",M,A)}));v.displayName="InplaceDisplay",b.displayName="InplaceContent",g.displayName="Inplace",exports.Inplace=g,exports.InplaceContent=b,exports.InplaceDisplay=v;
|
package/inplace/inplace.esm.js
CHANGED
|
@@ -7,8 +7,8 @@ import { useMergeProps, useUpdateEffect } from 'primereact/hooks';
|
|
|
7
7
|
import { TimesIcon } from 'primereact/icons/times';
|
|
8
8
|
import { classNames, ObjectUtils, IconUtils } from 'primereact/utils';
|
|
9
9
|
|
|
10
|
-
function _arrayWithHoles(
|
|
11
|
-
if (Array.isArray(
|
|
10
|
+
function _arrayWithHoles(arr) {
|
|
11
|
+
if (Array.isArray(arr)) return arr;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -39,26 +39,27 @@ function _iterableToArrayLimit(r, l) {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
function _arrayLikeToArray(
|
|
43
|
-
(
|
|
44
|
-
for (var
|
|
45
|
-
return
|
|
42
|
+
function _arrayLikeToArray(arr, len) {
|
|
43
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
44
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
45
|
+
return arr2;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
function _unsupportedIterableToArray(
|
|
49
|
-
if (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
49
|
+
if (!o) return;
|
|
50
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
51
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
52
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
53
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
54
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
function _nonIterableRest() {
|
|
57
58
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
function _slicedToArray(
|
|
61
|
-
return _arrayWithHoles(
|
|
61
|
+
function _slicedToArray(arr, i) {
|
|
62
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
var classes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as n,localeOption as t}from"primereact/api";import{Button as l}from"primereact/button";import{ComponentBase as a,useHandleStyle as r}from"primereact/componentbase";import{useMergeProps as o,useUpdateEffect as i}from"primereact/hooks";import{TimesIcon as c}from"primereact/icons/times";import{classNames as p,ObjectUtils as s,IconUtils as u}from"primereact/utils";function d(e){if(Array.isArray(e))return e}function f(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var l,a,r,o,i=[],c=!0,p=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(l=r.call(t)).done)&&(i.push(l.value),i.length!==n);c=!0);}catch(e){p=!0,a=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(p)throw a}}return i}}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,l=Array(n);t<n;t++)l[t]=e[t];return l}function v(e,n){if(e){if("string"==typeof e)return m(e,n);var t=
|
|
1
|
+
import*as e from"react";import{PrimeReactContext as n,localeOption as t}from"primereact/api";import{Button as l}from"primereact/button";import{ComponentBase as a,useHandleStyle as r}from"primereact/componentbase";import{useMergeProps as o,useUpdateEffect as i}from"primereact/hooks";import{TimesIcon as c}from"primereact/icons/times";import{classNames as p,ObjectUtils as s,IconUtils as u}from"primereact/utils";function d(e){if(Array.isArray(e))return e}function f(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var l,a,r,o,i=[],c=!0,p=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(l=r.call(t)).done)&&(i.push(l.value),i.length!==n);c=!0);}catch(e){p=!0,a=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(p)throw a}}return i}}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,l=new Array(n);t<n;t++)l[t]=e[t];return l}function v(e,n){if(e){if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,n):void 0}}function y(){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 b={display:function(e){return p("p-inplace-display",{"p-disabled":e.props.disabled})},root:function(e){return p("p-inplace p-component",{"p-inplace-closable":e.props.closable})},closeButton:"p-inplace-content-close",content:"p-inplace-content"};a.extend({defaultProps:{__TYPE:"InplaceDisplay",children:void 0}}),a.extend({defaultProps:{__TYPE:"InplaceContent",children:void 0}});var g=a.extend({defaultProps:{__TYPE:"Inplace",style:null,className:null,active:!1,closable:!1,closeIcon:null,disabled:!1,tabIndex:0,ariaLabel:null,onOpen:null,onClose:null,onToggle:null,children:void 0},css:{classes:b,styles:"\n@layer primereact {\n .p-inplace .p-inplace-display {\n display: inline;\n cursor: pointer;\n }\n \n .p-inplace .p-inplace-content {\n display: inline;\n }\n \n .p-fluid .p-inplace.p-inplace-closable .p-inplace-content {\n display: flex;\n }\n \n .p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {\n flex: 1 1 auto;\n width: 1%;\n }\n \n .p-inplace-content-close {\n margin-left: .25rem;\n }\n}\n"}}),h=function(e){return e.children},I=function(e){return e.children},C=e.forwardRef((function(a,m){var b,h,I=o(),C=e.useContext(n),E=g.getProps(a,C),x=e.useState(E.active),N=(h=2,d(b=x)||f(b,h)||v(b,h)||y()),T=N[0],O=N[1],P=e.useRef(null),S=E.onToggle?E.active:T,_={props:E,state:{active:T}},w=g.setMetaData(_),D=w.ptm,A=w.cx;r(g.css.styles,w.isUnstyled,{name:"inplace"});var j=function(e){E.disabled||(E.onOpen&&E.onOpen(e),E.onToggle?E.onToggle({originalEvent:e,value:!0}):O(!0))},k=function(e){E.disabled||(E.onClose&&E.onClose(e),E.onToggle?E.onToggle({originalEvent:e,value:!1}):O(!1))},B=function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code&&"Space"!==e.code||(j(e),e.preventDefault())},M=function(n){var t=I({onClick:j,className:A("display"),onKeyDown:B,tabIndex:E.tabIndex||"0",role:"button","aria-label":E.ariaLabel},D("display"));return e.createElement("div",t,n)},Y=function(){var n=u.getJSXIcon(E.closeIcon||e.createElement(c,null),void 0,{props:E}),a=t("aria")?t("aria").close:void 0;if(E.closable){var r=I({className:A("closeButton"),icon:n,type:"button",onClick:k,"aria-label":a,pt:D("closeButton"),__parentMetadata:{parent:_}});return e.createElement(l,r)}return null};e.useImperativeHandle(m,(function(){return{props:E,getElement:function(){return P.current}}})),i((function(){E.active?j(null):k(null)}),[E.active]);var L,R=(L=["InplaceContent","InplaceDisplay"],e.Children.map(E.children,(function(n){return S&&s.isValidChild(n,"InplaceContent",L)?(t=n,l=Y(),a=I({className:A("content")},D("content")),e.createElement("div",a,t,l)):!S&&s.isValidChild(n,"InplaceDisplay",L)?M(n):void 0;var t,l,a}))),U=I({ref:P,className:p(E.className,A("root")),"aria-live":"polite"},g.getOtherProps(E),D("root"));return e.createElement("div",U,R)}));h.displayName="InplaceDisplay",I.displayName="InplaceContent",C.displayName="Inplace";export{C as Inplace,I as InplaceContent,h as InplaceDisplay};
|
package/inplace/inplace.js
CHANGED
|
@@ -22,8 +22,8 @@ this.primereact.inplace = (function (exports, React, api, button, componentbase,
|
|
|
22
22
|
|
|
23
23
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
24
|
|
|
25
|
-
function _arrayWithHoles(
|
|
26
|
-
if (Array.isArray(
|
|
25
|
+
function _arrayWithHoles(arr) {
|
|
26
|
+
if (Array.isArray(arr)) return arr;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -54,26 +54,27 @@ this.primereact.inplace = (function (exports, React, api, button, componentbase,
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
function _arrayLikeToArray(
|
|
58
|
-
(
|
|
59
|
-
for (var
|
|
60
|
-
return
|
|
57
|
+
function _arrayLikeToArray(arr, len) {
|
|
58
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
59
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
60
|
+
return arr2;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
function _unsupportedIterableToArray(
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
64
|
+
if (!o) return;
|
|
65
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
66
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
67
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
68
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
69
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
function _nonIterableRest() {
|
|
72
73
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
73
74
|
}
|
|
74
75
|
|
|
75
|
-
function _slicedToArray(
|
|
76
|
-
return _arrayWithHoles(
|
|
76
|
+
function _slicedToArray(arr, i) {
|
|
77
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
var classes = {
|
package/inplace/inplace.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.inplace=function(e,n,t,l,a,r,o,i){"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 l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var p=c(n);function s(e){if(Array.isArray(e))return e}function u(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var l,a,r,o,i=[],c=!0,p=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(l=r.call(t)).done)&&(i.push(l.value),i.length!==n);c=!0);}catch(e){p=!0,a=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(p)throw a}}return i}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,l=Array(n);t<n;t++)l[t]=e[t];return l}function f(e,n){if(e){if("string"==typeof e)return d(e,n);var t=
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.inplace=function(e,n,t,l,a,r,o,i){"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 l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var p=c(n);function s(e){if(Array.isArray(e))return e}function u(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var l,a,r,o,i=[],c=!0,p=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(l=r.call(t)).done)&&(i.push(l.value),i.length!==n);c=!0);}catch(e){p=!0,a=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(p)throw a}}return i}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,l=new Array(n);t<n;t++)l[t]=e[t];return l}function f(e,n){if(e){if("string"==typeof e)return d(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)?d(e,n):void 0}}function m(){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 y={display:function(e){return i.classNames("p-inplace-display",{"p-disabled":e.props.disabled})},root:function(e){return i.classNames("p-inplace p-component",{"p-inplace-closable":e.props.closable})},closeButton:"p-inplace-content-close",content:"p-inplace-content"};a.ComponentBase.extend({defaultProps:{__TYPE:"InplaceDisplay",children:void 0}}),a.ComponentBase.extend({defaultProps:{__TYPE:"InplaceContent",children:void 0}});var v=a.ComponentBase.extend({defaultProps:{__TYPE:"Inplace",style:null,className:null,active:!1,closable:!1,closeIcon:null,disabled:!1,tabIndex:0,ariaLabel:null,onOpen:null,onClose:null,onToggle:null,children:void 0},css:{classes:y,styles:"\n@layer primereact {\n .p-inplace .p-inplace-display {\n display: inline;\n cursor: pointer;\n }\n \n .p-inplace .p-inplace-content {\n display: inline;\n }\n \n .p-fluid .p-inplace.p-inplace-closable .p-inplace-content {\n display: flex;\n }\n \n .p-fluid .p-inplace.p-inplace-closable .p-inplace-content > .p-inputtext {\n flex: 1 1 auto;\n width: 1%;\n }\n \n .p-inplace-content-close {\n margin-left: .25rem;\n }\n}\n"}}),b=function(e){return e.children},g=function(e){return e.children},h=p.forwardRef((function(e,n){var c,d,y=r.useMergeProps(),b=p.useContext(t.PrimeReactContext),g=v.getProps(e,b),h=p.useState(g.active),I=(d=2,s(c=h)||u(c,d)||f(c,d)||m()),C=I[0],O=I[1],E=p.useRef(null),j=g.onToggle?g.active:C,x={props:g,state:{active:C}},N=v.setMetaData(x),P=N.ptm,_=N.cx;a.useHandleStyle(v.css.styles,N.isUnstyled,{name:"inplace"});var T=function(e){g.disabled||(g.onOpen&&g.onOpen(e),g.onToggle?g.onToggle({originalEvent:e,value:!0}):O(!0))},D=function(e){g.disabled||(g.onClose&&g.onClose(e),g.onToggle?g.onToggle({originalEvent:e,value:!1}):O(!1))},S=function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code&&"Space"!==e.code||(T(e),e.preventDefault())},w=function(e){var n=y({onClick:T,className:_("display"),onKeyDown:S,tabIndex:g.tabIndex||"0",role:"button","aria-label":g.ariaLabel},P("display"));return p.createElement("div",n,e)},B=function(){var e=i.IconUtils.getJSXIcon(g.closeIcon||p.createElement(o.TimesIcon,null),void 0,{props:g}),n=t.localeOption("aria")?t.localeOption("aria").close:void 0;if(g.closable){var a=y({className:_("closeButton"),icon:e,type:"button",onClick:D,"aria-label":n,pt:P("closeButton"),__parentMetadata:{parent:x}});return p.createElement(l.Button,a)}return null};p.useImperativeHandle(n,(function(){return{props:g,getElement:function(){return E.current}}})),r.useUpdateEffect((function(){g.active?T(null):D(null)}),[g.active]);var A,M=(A=["InplaceContent","InplaceDisplay"],p.Children.map(g.children,(function(e){return j&&i.ObjectUtils.isValidChild(e,"InplaceContent",A)?(n=e,t=B(),l=y({className:_("content")},P("content")),p.createElement("div",l,n,t)):!j&&i.ObjectUtils.isValidChild(e,"InplaceDisplay",A)?w(e):void 0;var n,t,l}))),U=y({ref:E,className:i.classNames(g.className,_("root")),"aria-live":"polite"},v.getOtherProps(g),P("root"));return p.createElement("div",U,M)}));return b.displayName="InplaceDisplay",g.displayName="InplaceContent",h.displayName="Inplace",e.Inplace=h,e.InplaceContent=g,e.InplaceDisplay=b,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.button,primereact.componentbase,primereact.hooks,primereact.icons.times,primereact.utils);
|
|
@@ -14,13 +14,18 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
15
|
|
|
16
16
|
function _extends() {
|
|
17
|
-
|
|
18
|
-
for (var
|
|
19
|
-
var
|
|
20
|
-
for (var
|
|
17
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
18
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
19
|
+
var source = arguments[i];
|
|
20
|
+
for (var key in source) {
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
22
|
+
target[key] = source[key];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
21
25
|
}
|
|
22
|
-
return
|
|
23
|
-
}
|
|
26
|
+
return target;
|
|
27
|
+
};
|
|
28
|
+
return _extends.apply(this, arguments);
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
function _typeof(o) {
|
|
@@ -33,29 +38,35 @@ function _typeof(o) {
|
|
|
33
38
|
}, _typeof(o);
|
|
34
39
|
}
|
|
35
40
|
|
|
36
|
-
function
|
|
37
|
-
if ("object"
|
|
38
|
-
var
|
|
39
|
-
if (
|
|
40
|
-
var
|
|
41
|
-
if ("object"
|
|
41
|
+
function _toPrimitive(input, hint) {
|
|
42
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
43
|
+
var prim = input[Symbol.toPrimitive];
|
|
44
|
+
if (prim !== undefined) {
|
|
45
|
+
var res = prim.call(input, hint || "default");
|
|
46
|
+
if (_typeof(res) !== "object") return res;
|
|
42
47
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
43
48
|
}
|
|
44
|
-
return ("string"
|
|
49
|
+
return (hint === "string" ? String : Number)(input);
|
|
45
50
|
}
|
|
46
51
|
|
|
47
|
-
function
|
|
48
|
-
var
|
|
49
|
-
return "symbol"
|
|
52
|
+
function _toPropertyKey(arg) {
|
|
53
|
+
var key = _toPrimitive(arg, "string");
|
|
54
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
50
55
|
}
|
|
51
56
|
|
|
52
|
-
function _defineProperty(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
function _defineProperty(obj, key, value) {
|
|
58
|
+
key = _toPropertyKey(key);
|
|
59
|
+
if (key in obj) {
|
|
60
|
+
Object.defineProperty(obj, key, {
|
|
61
|
+
value: value,
|
|
62
|
+
enumerable: true,
|
|
63
|
+
configurable: true,
|
|
64
|
+
writable: true
|
|
65
|
+
});
|
|
66
|
+
} else {
|
|
67
|
+
obj[key] = value;
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
59
70
|
}
|
|
60
71
|
|
|
61
72
|
var classes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/hooks"),r=require("primereact/api"),n=require("primereact/componentbase"),o=require("primereact/utils");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e);function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/hooks"),r=require("primereact/api"),n=require("primereact/componentbase"),o=require("primereact/utils");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function l(e){var t=s(e,"string");return"symbol"===u(t)?t:String(t)}var p=n.ComponentBase.extend({defaultProps:{__TYPE:"InputIcon",__parentMetadata:null,className:null,iconPosition:null},css:{classes:{root:"p-input-icon"}}});function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){var n,o,i;n=e,i=r[t],(o=l(o=t))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var m=a.default.memo(a.default.forwardRef((function(n,i){var u=e.useRef(i),s=t.useMergeProps(),l=e.useContext(r.PrimeReactContext),f=p.getProps(n,l),m=p.setMetaData(b(b({props:f},f.__parentMetadata),{},{context:{iconPosition:f.iconPosition}})),y=m.ptm,O=s({className:o.classNames(f.className,(0,m.cx)("root"))},p.getOtherProps(f),y("root"));return a.default.createElement(a.default.Fragment,null,a.default.createElement("span",c({},O,{ref:u}),f.children))})));m.displayName="InputIcon",exports.InputIcon=m;
|
|
@@ -6,13 +6,18 @@ import { ComponentBase } from 'primereact/componentbase';
|
|
|
6
6
|
import { classNames } from 'primereact/utils';
|
|
7
7
|
|
|
8
8
|
function _extends() {
|
|
9
|
-
|
|
10
|
-
for (var
|
|
11
|
-
var
|
|
12
|
-
for (var
|
|
9
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
10
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
11
|
+
var source = arguments[i];
|
|
12
|
+
for (var key in source) {
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
14
|
+
target[key] = source[key];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
13
17
|
}
|
|
14
|
-
return
|
|
15
|
-
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
return _extends.apply(this, arguments);
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
function _typeof(o) {
|
|
@@ -25,29 +30,35 @@ function _typeof(o) {
|
|
|
25
30
|
}, _typeof(o);
|
|
26
31
|
}
|
|
27
32
|
|
|
28
|
-
function
|
|
29
|
-
if ("object"
|
|
30
|
-
var
|
|
31
|
-
if (
|
|
32
|
-
var
|
|
33
|
-
if ("object"
|
|
33
|
+
function _toPrimitive(input, hint) {
|
|
34
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
35
|
+
var prim = input[Symbol.toPrimitive];
|
|
36
|
+
if (prim !== undefined) {
|
|
37
|
+
var res = prim.call(input, hint || "default");
|
|
38
|
+
if (_typeof(res) !== "object") return res;
|
|
34
39
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
35
40
|
}
|
|
36
|
-
return ("string"
|
|
41
|
+
return (hint === "string" ? String : Number)(input);
|
|
37
42
|
}
|
|
38
43
|
|
|
39
|
-
function
|
|
40
|
-
var
|
|
41
|
-
return "symbol"
|
|
44
|
+
function _toPropertyKey(arg) {
|
|
45
|
+
var key = _toPrimitive(arg, "string");
|
|
46
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
42
47
|
}
|
|
43
48
|
|
|
44
|
-
function _defineProperty(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
function _defineProperty(obj, key, value) {
|
|
50
|
+
key = _toPropertyKey(key);
|
|
51
|
+
if (key in obj) {
|
|
52
|
+
Object.defineProperty(obj, key, {
|
|
53
|
+
value: value,
|
|
54
|
+
enumerable: true,
|
|
55
|
+
configurable: true,
|
|
56
|
+
writable: true
|
|
57
|
+
});
|
|
58
|
+
} else {
|
|
59
|
+
obj[key] = value;
|
|
60
|
+
}
|
|
61
|
+
return obj;
|
|
51
62
|
}
|
|
52
63
|
|
|
53
64
|
var classes = {
|