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
|
@@ -27,13 +27,18 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
28
|
|
|
29
29
|
function _extends() {
|
|
30
|
-
|
|
31
|
-
for (var
|
|
32
|
-
var
|
|
33
|
-
for (var
|
|
30
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
31
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
+
var source = arguments[i];
|
|
33
|
+
for (var key in source) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35
|
+
target[key] = source[key];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
34
38
|
}
|
|
35
|
-
return
|
|
36
|
-
}
|
|
39
|
+
return target;
|
|
40
|
+
};
|
|
41
|
+
return _extends.apply(this, arguments);
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
var WindowMinimizeIcon = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/iconbase");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/iconbase");function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var C=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,C.get?C:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var C=t(e);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var C in t)Object.prototype.hasOwnProperty.call(t,C)&&(e[C]=t[C])}return e},n.apply(this,arguments)}var i=C.memo(C.forwardRef((function(e,t){var i=r.IconBase.getPTI(e);return C.createElement("svg",n({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"}))})));i.displayName="WindowMinimizeIcon",exports.WindowMinimizeIcon=i;
|
|
@@ -3,13 +3,18 @@ import * as React from 'react';
|
|
|
3
3
|
import { IconBase } from 'primereact/iconbase';
|
|
4
4
|
|
|
5
5
|
function _extends() {
|
|
6
|
-
|
|
7
|
-
for (var
|
|
8
|
-
var
|
|
9
|
-
for (var
|
|
6
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
7
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
8
|
+
var source = arguments[i];
|
|
9
|
+
for (var key in source) {
|
|
10
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
11
|
+
target[key] = source[key];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
10
14
|
}
|
|
11
|
-
return
|
|
12
|
-
}
|
|
15
|
+
return target;
|
|
16
|
+
};
|
|
17
|
+
return _extends.apply(this, arguments);
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
var WindowMinimizeIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as C from"react";import{IconBase as e}from"primereact/iconbase";function r(){return r=Object.assign?Object.assign.bind():function(C){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var
|
|
1
|
+
import*as C from"react";import{IconBase as e}from"primereact/iconbase";function r(){return r=Object.assign?Object.assign.bind():function(C){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(C[t]=r[t])}return C},r.apply(this,arguments)}var t=C.memo(C.forwardRef((function(t,n){var o=e.getPTI(t);return C.createElement("svg",r({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"}))})));t.displayName="WindowMinimizeIcon";export{t as WindowMinimizeIcon};
|
|
@@ -24,13 +24,18 @@ this.primereact.icons.windowminimize = (function (exports, React, iconbase) {
|
|
|
24
24
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
25
25
|
|
|
26
26
|
function _extends() {
|
|
27
|
-
|
|
28
|
-
for (var
|
|
29
|
-
var
|
|
30
|
-
for (var
|
|
27
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
28
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
29
|
+
var source = arguments[i];
|
|
30
|
+
for (var key in source) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32
|
+
target[key] = source[key];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
31
35
|
}
|
|
32
|
-
return
|
|
33
|
-
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
38
|
+
return _extends.apply(this, arguments);
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
var WindowMinimizeIcon = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.icons=this.primereact.icons||{},this.primereact.icons.windowminimize=function(e,r
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.icons=this.primereact.icons||{},this.primereact.icons.windowminimize=function(e,t,r){"use strict";function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=i(t);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 i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},C.apply(this,arguments)}var c=n.memo(n.forwardRef((function(e,t){var i=r.IconBase.getPTI(e);return n.createElement("svg",C({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"}))})));return c.displayName="WindowMinimizeIcon",e.WindowMinimizeIcon=c,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.iconbase);
|
package/image/image.cjs.js
CHANGED
|
@@ -42,13 +42,18 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
42
42
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
43
43
|
|
|
44
44
|
function _extends() {
|
|
45
|
-
|
|
46
|
-
for (var
|
|
47
|
-
var
|
|
48
|
-
for (var
|
|
45
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
46
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
47
|
+
var source = arguments[i];
|
|
48
|
+
for (var key in source) {
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
50
|
+
target[key] = source[key];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
|
-
return
|
|
51
|
-
}
|
|
54
|
+
return target;
|
|
55
|
+
};
|
|
56
|
+
return _extends.apply(this, arguments);
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
function _typeof(o) {
|
|
@@ -61,33 +66,39 @@ function _typeof(o) {
|
|
|
61
66
|
}, _typeof(o);
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
function
|
|
65
|
-
if ("object"
|
|
66
|
-
var
|
|
67
|
-
if (
|
|
68
|
-
var
|
|
69
|
-
if ("object"
|
|
69
|
+
function _toPrimitive(input, hint) {
|
|
70
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
71
|
+
var prim = input[Symbol.toPrimitive];
|
|
72
|
+
if (prim !== undefined) {
|
|
73
|
+
var res = prim.call(input, hint || "default");
|
|
74
|
+
if (_typeof(res) !== "object") return res;
|
|
70
75
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
71
76
|
}
|
|
72
|
-
return ("string"
|
|
77
|
+
return (hint === "string" ? String : Number)(input);
|
|
73
78
|
}
|
|
74
79
|
|
|
75
|
-
function
|
|
76
|
-
var
|
|
77
|
-
return "symbol"
|
|
80
|
+
function _toPropertyKey(arg) {
|
|
81
|
+
var key = _toPrimitive(arg, "string");
|
|
82
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
78
83
|
}
|
|
79
84
|
|
|
80
|
-
function _defineProperty(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
function _defineProperty(obj, key, value) {
|
|
86
|
+
key = _toPropertyKey(key);
|
|
87
|
+
if (key in obj) {
|
|
88
|
+
Object.defineProperty(obj, key, {
|
|
89
|
+
value: value,
|
|
90
|
+
enumerable: true,
|
|
91
|
+
configurable: true,
|
|
92
|
+
writable: true
|
|
93
|
+
});
|
|
94
|
+
} else {
|
|
95
|
+
obj[key] = value;
|
|
96
|
+
}
|
|
97
|
+
return obj;
|
|
87
98
|
}
|
|
88
99
|
|
|
89
|
-
function _arrayWithHoles(
|
|
90
|
-
if (Array.isArray(
|
|
100
|
+
function _arrayWithHoles(arr) {
|
|
101
|
+
if (Array.isArray(arr)) return arr;
|
|
91
102
|
}
|
|
92
103
|
|
|
93
104
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -118,26 +129,27 @@ function _iterableToArrayLimit(r, l) {
|
|
|
118
129
|
}
|
|
119
130
|
}
|
|
120
131
|
|
|
121
|
-
function _arrayLikeToArray(
|
|
122
|
-
(
|
|
123
|
-
for (var
|
|
124
|
-
return
|
|
132
|
+
function _arrayLikeToArray(arr, len) {
|
|
133
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
134
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
135
|
+
return arr2;
|
|
125
136
|
}
|
|
126
137
|
|
|
127
|
-
function _unsupportedIterableToArray(
|
|
128
|
-
if (
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
138
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
139
|
+
if (!o) return;
|
|
140
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
141
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
142
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
143
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
144
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
133
145
|
}
|
|
134
146
|
|
|
135
147
|
function _nonIterableRest() {
|
|
136
148
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
137
149
|
}
|
|
138
150
|
|
|
139
|
-
function _slicedToArray(
|
|
140
|
-
return _arrayWithHoles(
|
|
151
|
+
function _slicedToArray(arr, i) {
|
|
152
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
141
153
|
}
|
|
142
154
|
|
|
143
155
|
var DownloadIcon = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
package/image/image.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/componentbase"),o=require("primereact/csstransition"),r=require("primereact/hooks"),a=require("primereact/iconbase"),i=require("primereact/icons/eye"),l=require("primereact/icons/refresh"),c=require("primereact/icons/searchminus"),s=require("primereact/icons/searchplus"),u=require("primereact/icons/times"),p=require("primereact/icons/undo"),m=require("primereact/portal"),f=require("primereact/utils");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function g(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 b=g(e),y=d(t);function v(){return v=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},v.apply(null,arguments)}function w(e){return w="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},w(e)}function I(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(e){var t=I(e,"string");return"symbol"==w(t)?t:t+""}function O(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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=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={}.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=b.memo(b.forwardRef((function(e,t){var n=a.IconBase.getPTI(e);return b.createElement("svg",v({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.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=n.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 f.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){O(e,t,n[t])})):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=b.memo(b.forwardRef((function(e,a){var d=r.useMergeProps(),g=b.useContext(t.PrimeReactContext),w=N.getProps(e,g),I=x(b.useState(!1),2),h=I[0],O=I[1],C=x(b.useState(!1),2),E=C[0],S=C[1],P=x(b.useState(0),2),j=P[0],z=P[1],R=x(b.useState(1),2),U=R[0],D=R[1],q=b.useRef(null),M=b.useRef(null),H=b.useRef(null),L=b.useRef(null),T=b.useRef(null),A=U<=.5,_=U>=1.5,J=N.setMetaData({props:w,state:{maskVisible:h,previewVisible:E,rotate:j,scale:U}}),V=J.ptm,X=J.cx,Z=J.sx,G=J.isUnstyled;r.useGlobalOnEscapeKey({callback:function(){Y()},when:w.closeOnEscape&&h,priority:[r.ESC_KEY_HANDLING_PRIORITIES.IMAGE,0]}),n.useHandleStyle(N.css.styles,G,{name:"image"});var K=function(){w.preview&&(O(!0),f.DomHandler.blockBodyScroll(),setTimeout((function(){S(!0)}),25))},Y=function(){S(!1),f.DomHandler.unblockBodyScroll(),z(0),D(1)},F=function(e){[e.target.classList].includes("p-image-action")||e.target.closest(".p-image-action")||Y()},$=function(e){if("Escape"===e.code)Y(),setTimeout((function(){f.DomHandler.focus(T.current)}),200),e.preventDefault()},Q=function(){f.DomHandler.saveAs({name:w.alt,src:w.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 _?e:e+.1}))},ne=function(e){e.stopPropagation(),D((function(e){return A?e:e-.1}))},oe=function(){f.ZIndexUtils.set("modal",H.current,g&&g.autoZIndex||y.default.autoZIndex,g&&g.zIndex.modal||y.default.zIndex.modal)},re=function(){w.onShow&&w.onShow()},ae=function(){!G()&&f.DomHandler.addClass(H.current,"p-component-overlay-leave")},ie=function(){w.onHide&&w.onHide()},le=function(){f.ZIndexUtils.clear(H.current),O(!1)};r.useUnmountEffect((function(){H.current&&f.ZIndexUtils.clear(H.current)}));b.useImperativeHandle(a,(function(){return{props:w,show:K,hide:Y,getElement:function(){return q.current},getImage:function(){return M.current}}}));var ce,se,ue=w.src,pe=w.alt,me=w.width,fe=w.height,de=w.crossOrigin,ge=w.referrerPolicy,be=w.useMap,ye=w.loading,ve=function(){var e=w.downloadable,n=w.alt,r=w.crossOrigin,a=w.referrerPolicy,i=w.useMap,m=w.loading,g=d(V("downloadIcon")),y=d(V("rotateRightIcon")),I=d(V("rotateLeftIcon")),O=d(V("zoomOutIcon")),C=d(V("zoomInIcon")),S=d(V("closeIcon")),P=f.IconUtils.getJSXIcon(w.downloadIcon||b.createElement(k,null),B({},g),{props:w}),x=f.IconUtils.getJSXIcon(w.rotateRightIcon||b.createElement(l.RefreshIcon,null),B({},y),{props:w}),N=f.IconUtils.getJSXIcon(w.rotateLeftIcon||b.createElement(p.UndoIcon,null),B({},I),{props:w}),z=f.IconUtils.getJSXIcon(w.zoomOutIcon||b.createElement(c.SearchMinusIcon,null),B({},O),{props:w}),R=f.IconUtils.getJSXIcon(w.zoomInIcon||b.createElement(s.SearchPlusIcon,null),B({},C),{props:w}),D=f.IconUtils.getJSXIcon(w.closeIcon||b.createElement(u.TimesIcon,null),B({},S),{props:w}),q=d({ref:H,role:"dialog",className:X("mask"),"aria-modal":h,onClick:F,onKeyDown:$},V("mask")),M=d({className:X("toolbar")},V("toolbar")),T=d({className:X("downloadButton"),onPointerUp:Q,type:"button"},V("downloadButton")),J=d({className:X("rotateRightButton"),onClick:W,type:"button","aria-label":t.localeOption("aria")?t.localeOption("aria").rotateRight:void 0,"data-pc-group-section":"action"},V("rotateRightButton")),G=d({className:X("rotateLeftButton"),onClick:ee,type:"button","aria-label":t.localeOption("aria")?t.localeOption("aria").rotateLeft:void 0,"data-pc-group-section":"action"},V("rotateLeftButton")),K=d({className:f.classNames(X("zoomOutButton"),{"p-disabled":A}),style:{pointerEvents:"auto"},onClick:ne,type:"button",disabled:A,"aria-label":t.localeOption("aria")?t.localeOption("aria").zoomOut:void 0,"data-pc-group-section":"action"},V("zoomOutButton")),ce=d({className:f.classNames(X("zoomInButton"),{"p-disabled":_}),style:{pointerEvents:"auto"},onClick:te,type:"button",disabled:_,"aria-label":t.localeOption("aria")?t.localeOption("aria").zoomIn:void 0,"data-pc-group-section":"action"},V("zoomInButton")),se=d({className:X("closeButton"),type:"button",onClick:Y,"aria-label":t.localeOption("aria")?t.localeOption("aria").close:void 0,autoFocus:!0,"data-pc-group-section":"action"},V("closeButton")),ue=d({src:w.zoomSrc||w.src,className:X("preview"),style:Z("preview",{rotateState:j,scaleState:U}),crossOrigin:r,referrerPolicy:a,useMap:i,loading:m},V("preview")),pe=d({ref:L},V("previewContainer")),me=d({classNames:X("transition"),in:E,timeout:{enter:150,exit:150},unmountOnExit:!0,onEntering:oe,onEntered:re,onExit:ae,onExiting:ie,onExited:le},V("transition"));return b.createElement("div",q,b.createElement("div",M,e&&b.createElement("button",T,P),b.createElement("button",J,x),b.createElement("button",G,N),b.createElement("button",K,z),b.createElement("button",ce,R),b.createElement("button",se,D)),b.createElement(o.CSSTransition,v({nodeRef:L},me),b.createElement("div",pe,b.createElement("img",v({alt:n},ue)))))}(),we=d({className:X("icon")},V("icon")),Ie=f.IconUtils.getJSXIcon(w.indicatorIcon||b.createElement(i.EyeIcon,we),B({},we),{props:w}),he=w.template?f.ObjectUtils.getJSXElement(w.template,w):Ie,Oe=(ce=t.localeOption("aria")?t.localeOption("aria").zoomImage:void 0,se=d({ref:T,className:X("button"),onClick:K,type:"button","aria-label":ce},V("button")),w.preview?b.createElement("button",se,he):null),Ce=d({ref:M,src:ue,className:w.imageClassName,width:me,height:fe,crossOrigin:de,referrerPolicy:ge,useMap:be,loading:ye,style:w.imageStyle,onError:w.onError},V("image")),Ee=w.src&&b.createElement("img",v({},Ce,{alt:pe})),Se=d({ref:q,className:f.classNames(w.className,X("root"))},N.getOtherProps(w),V("root"));return b.createElement("span",Se,Ee,Oe,h&&b.createElement(m.Portal,{element:ve,appendTo:document.body}))})));R.displayName="Image",exports.Image=R;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/componentbase"),o=require("primereact/csstransition"),r=require("primereact/hooks"),a=require("primereact/iconbase"),i=require("primereact/icons/eye"),l=require("primereact/icons/refresh"),c=require("primereact/icons/searchminus"),s=require("primereact/icons/searchplus"),u=require("primereact/icons/times"),p=require("primereact/icons/undo"),m=require("primereact/portal"),f=require("primereact/utils");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function g(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 b=g(e),y=d(t);function v(){return v=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},v.apply(this,arguments)}function w(e){return w="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},w(e)}function I(e,t){if("object"!==w(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(e){var t=I(e,"string");return"symbol"===w(t)?t:String(t)}function O(e){if(Array.isArray(e))return e}function C(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 E(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 S(e,t){if(e){if("string"==typeof e)return E(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)?E(e,t):void 0}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){return O(e)||C(e,t)||S(e,t)||P()}var x=b.memo(b.forwardRef((function(e,t){var n=a.IconBase.getPTI(e);return b.createElement("svg",v({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.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"}))})));x.displayName="DownloadIcon";var k=n.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 f.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 N(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 z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){var o,r,a;o=e,a=n[t],(r=h(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)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var B=b.memo(b.forwardRef((function(e,a){var d=r.useMergeProps(),g=b.useContext(t.PrimeReactContext),w=k.getProps(e,g),I=j(b.useState(!1),2),h=I[0],O=I[1],C=j(b.useState(!1),2),E=C[0],S=C[1],P=j(b.useState(0),2),N=P[0],B=P[1],R=j(b.useState(1),2),U=R[0],D=R[1],q=b.useRef(null),M=b.useRef(null),H=b.useRef(null),L=b.useRef(null),T=b.useRef(null),A=U<=.5,_=U>=1.5,J=k.setMetaData({props:w,state:{maskVisible:h,previewVisible:E,rotate:N,scale:U}}),V=J.ptm,X=J.cx,Z=J.sx,G=J.isUnstyled;r.useGlobalOnEscapeKey({callback:function(){Y()},when:w.closeOnEscape&&h,priority:[r.ESC_KEY_HANDLING_PRIORITIES.IMAGE,0]}),n.useHandleStyle(k.css.styles,G,{name:"image"});var K=function(){w.preview&&(O(!0),f.DomHandler.blockBodyScroll(),setTimeout((function(){S(!0)}),25))},Y=function(){S(!1),f.DomHandler.unblockBodyScroll(),B(0),D(1)},F=function(e){[e.target.classList].includes("p-image-action")||e.target.closest(".p-image-action")||Y()},$=function(e){if("Escape"===e.code)Y(),setTimeout((function(){f.DomHandler.focus(T.current)}),200),e.preventDefault()},Q=function(){f.DomHandler.saveAs({name:w.alt,src:w.src})},W=function(e){e.stopPropagation(),B((function(e){return e+90}))},ee=function(e){e.stopPropagation(),B((function(e){return e-90}))},te=function(e){e.stopPropagation(),D((function(e){return _?e:e+.1}))},ne=function(e){e.stopPropagation(),D((function(e){return A?e:e-.1}))},oe=function(){f.ZIndexUtils.set("modal",H.current,g&&g.autoZIndex||y.default.autoZIndex,g&&g.zIndex.modal||y.default.zIndex.modal)},re=function(){w.onShow&&w.onShow()},ae=function(){!G()&&f.DomHandler.addClass(H.current,"p-component-overlay-leave")},ie=function(){w.onHide&&w.onHide()},le=function(){f.ZIndexUtils.clear(H.current),O(!1)};r.useUnmountEffect((function(){H.current&&f.ZIndexUtils.clear(H.current)}));b.useImperativeHandle(a,(function(){return{props:w,show:K,hide:Y,getElement:function(){return q.current},getImage:function(){return M.current}}}));var ce,se,ue=w.src,pe=w.alt,me=w.width,fe=w.height,de=w.crossOrigin,ge=w.referrerPolicy,be=w.useMap,ye=w.loading,ve=function(){var e=w.downloadable,n=w.alt,r=w.crossOrigin,a=w.referrerPolicy,i=w.useMap,m=w.loading,g=d(V("downloadIcon")),y=d(V("rotateRightIcon")),I=d(V("rotateLeftIcon")),O=d(V("zoomOutIcon")),C=d(V("zoomInIcon")),S=d(V("closeIcon")),P=f.IconUtils.getJSXIcon(w.downloadIcon||b.createElement(x,null),z({},g),{props:w}),j=f.IconUtils.getJSXIcon(w.rotateRightIcon||b.createElement(l.RefreshIcon,null),z({},y),{props:w}),k=f.IconUtils.getJSXIcon(w.rotateLeftIcon||b.createElement(p.UndoIcon,null),z({},I),{props:w}),B=f.IconUtils.getJSXIcon(w.zoomOutIcon||b.createElement(c.SearchMinusIcon,null),z({},O),{props:w}),R=f.IconUtils.getJSXIcon(w.zoomInIcon||b.createElement(s.SearchPlusIcon,null),z({},C),{props:w}),D=f.IconUtils.getJSXIcon(w.closeIcon||b.createElement(u.TimesIcon,null),z({},S),{props:w}),q=d({ref:H,role:"dialog",className:X("mask"),"aria-modal":h,onClick:F,onKeyDown:$},V("mask")),M=d({className:X("toolbar")},V("toolbar")),T=d({className:X("downloadButton"),onPointerUp:Q,type:"button"},V("downloadButton")),J=d({className:X("rotateRightButton"),onClick:W,type:"button","aria-label":t.localeOption("aria")?t.localeOption("aria").rotateRight:void 0,"data-pc-group-section":"action"},V("rotateRightButton")),G=d({className:X("rotateLeftButton"),onClick:ee,type:"button","aria-label":t.localeOption("aria")?t.localeOption("aria").rotateLeft:void 0,"data-pc-group-section":"action"},V("rotateLeftButton")),K=d({className:f.classNames(X("zoomOutButton"),{"p-disabled":A}),style:{pointerEvents:"auto"},onClick:ne,type:"button",disabled:A,"aria-label":t.localeOption("aria")?t.localeOption("aria").zoomOut:void 0,"data-pc-group-section":"action"},V("zoomOutButton")),ce=d({className:f.classNames(X("zoomInButton"),{"p-disabled":_}),style:{pointerEvents:"auto"},onClick:te,type:"button",disabled:_,"aria-label":t.localeOption("aria")?t.localeOption("aria").zoomIn:void 0,"data-pc-group-section":"action"},V("zoomInButton")),se=d({className:X("closeButton"),type:"button",onClick:Y,"aria-label":t.localeOption("aria")?t.localeOption("aria").close:void 0,autoFocus:!0,"data-pc-group-section":"action"},V("closeButton")),ue=d({src:w.zoomSrc||w.src,className:X("preview"),style:Z("preview",{rotateState:N,scaleState:U}),crossOrigin:r,referrerPolicy:a,useMap:i,loading:m},V("preview")),pe=d({ref:L},V("previewContainer")),me=d({classNames:X("transition"),in:E,timeout:{enter:150,exit:150},unmountOnExit:!0,onEntering:oe,onEntered:re,onExit:ae,onExiting:ie,onExited:le},V("transition"));return b.createElement("div",q,b.createElement("div",M,e&&b.createElement("button",T,P),b.createElement("button",J,j),b.createElement("button",G,k),b.createElement("button",K,B),b.createElement("button",ce,R),b.createElement("button",se,D)),b.createElement(o.CSSTransition,v({nodeRef:L},me),b.createElement("div",pe,b.createElement("img",v({alt:n},ue)))))}(),we=d({className:X("icon")},V("icon")),Ie=f.IconUtils.getJSXIcon(w.indicatorIcon||b.createElement(i.EyeIcon,we),z({},we),{props:w}),he=w.template?f.ObjectUtils.getJSXElement(w.template,w):Ie,Oe=(ce=t.localeOption("aria")?t.localeOption("aria").zoomImage:void 0,se=d({ref:T,className:X("button"),onClick:K,type:"button","aria-label":ce},V("button")),w.preview?b.createElement("button",se,he):null),Ce=d({ref:M,src:ue,className:w.imageClassName,width:me,height:fe,crossOrigin:de,referrerPolicy:ge,useMap:be,loading:ye,style:w.imageStyle,onError:w.onError},V("image")),Ee=w.src&&b.createElement("img",v({},Ce,{alt:pe})),Se=d({ref:q,className:f.classNames(w.className,X("root"))},k.getOtherProps(w),V("root"));return b.createElement("span",Se,Ee,Oe,h&&b.createElement(m.Portal,{element:ve,appendTo:document.body}))})));B.displayName="Image",exports.Image=B;
|
package/image/image.esm.js
CHANGED
|
@@ -15,13 +15,18 @@ import { Portal } from 'primereact/portal';
|
|
|
15
15
|
import { classNames, DomHandler, ZIndexUtils, IconUtils, ObjectUtils } from 'primereact/utils';
|
|
16
16
|
|
|
17
17
|
function _extends() {
|
|
18
|
-
|
|
19
|
-
for (var
|
|
20
|
-
var
|
|
21
|
-
for (var
|
|
18
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
19
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
20
|
+
var source = arguments[i];
|
|
21
|
+
for (var key in source) {
|
|
22
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23
|
+
target[key] = source[key];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
22
26
|
}
|
|
23
|
-
return
|
|
24
|
-
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
return _extends.apply(this, arguments);
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
function _typeof(o) {
|
|
@@ -34,33 +39,39 @@ function _typeof(o) {
|
|
|
34
39
|
}, _typeof(o);
|
|
35
40
|
}
|
|
36
41
|
|
|
37
|
-
function
|
|
38
|
-
if ("object"
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
41
|
-
var
|
|
42
|
-
if ("object"
|
|
42
|
+
function _toPrimitive(input, hint) {
|
|
43
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
44
|
+
var prim = input[Symbol.toPrimitive];
|
|
45
|
+
if (prim !== undefined) {
|
|
46
|
+
var res = prim.call(input, hint || "default");
|
|
47
|
+
if (_typeof(res) !== "object") return res;
|
|
43
48
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44
49
|
}
|
|
45
|
-
return ("string"
|
|
50
|
+
return (hint === "string" ? String : Number)(input);
|
|
46
51
|
}
|
|
47
52
|
|
|
48
|
-
function
|
|
49
|
-
var
|
|
50
|
-
return "symbol"
|
|
53
|
+
function _toPropertyKey(arg) {
|
|
54
|
+
var key = _toPrimitive(arg, "string");
|
|
55
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
51
56
|
}
|
|
52
57
|
|
|
53
|
-
function _defineProperty(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
function _defineProperty(obj, key, value) {
|
|
59
|
+
key = _toPropertyKey(key);
|
|
60
|
+
if (key in obj) {
|
|
61
|
+
Object.defineProperty(obj, key, {
|
|
62
|
+
value: value,
|
|
63
|
+
enumerable: true,
|
|
64
|
+
configurable: true,
|
|
65
|
+
writable: true
|
|
66
|
+
});
|
|
67
|
+
} else {
|
|
68
|
+
obj[key] = value;
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
60
71
|
}
|
|
61
72
|
|
|
62
|
-
function _arrayWithHoles(
|
|
63
|
-
if (Array.isArray(
|
|
73
|
+
function _arrayWithHoles(arr) {
|
|
74
|
+
if (Array.isArray(arr)) return arr;
|
|
64
75
|
}
|
|
65
76
|
|
|
66
77
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -91,26 +102,27 @@ function _iterableToArrayLimit(r, l) {
|
|
|
91
102
|
}
|
|
92
103
|
}
|
|
93
104
|
|
|
94
|
-
function _arrayLikeToArray(
|
|
95
|
-
(
|
|
96
|
-
for (var
|
|
97
|
-
return
|
|
105
|
+
function _arrayLikeToArray(arr, len) {
|
|
106
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
107
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
108
|
+
return arr2;
|
|
98
109
|
}
|
|
99
110
|
|
|
100
|
-
function _unsupportedIterableToArray(
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
111
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
112
|
+
if (!o) return;
|
|
113
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
114
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
115
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
116
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
117
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
106
118
|
}
|
|
107
119
|
|
|
108
120
|
function _nonIterableRest() {
|
|
109
121
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
110
122
|
}
|
|
111
123
|
|
|
112
|
-
function _slicedToArray(
|
|
113
|
-
return _arrayWithHoles(
|
|
124
|
+
function _slicedToArray(arr, i) {
|
|
125
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
114
126
|
}
|
|
115
127
|
|
|
116
128
|
var DownloadIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
package/image/image.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t,{PrimeReactContext as n,localeOption as o}from"primereact/api";import{ComponentBase as r,useHandleStyle as i}from"primereact/componentbase";import{CSSTransition as a}from"primereact/csstransition";import{useMergeProps as l,useGlobalOnEscapeKey as c,ESC_KEY_HANDLING_PRIORITIES as s,useUnmountEffect as u}from"primereact/hooks";import{IconBase as p}from"primereact/iconbase";import{EyeIcon as m}from"primereact/icons/eye";import{RefreshIcon as f}from"primereact/icons/refresh";import{SearchMinusIcon as g}from"primereact/icons/searchminus";import{SearchPlusIcon as d}from"primereact/icons/searchplus";import{TimesIcon as y}from"primereact/icons/times";import{UndoIcon as b}from"primereact/icons/undo";import{Portal as v}from"primereact/portal";import{classNames as w,DomHandler as h,ZIndexUtils as C,IconUtils as I,ObjectUtils as E}from"primereact/utils";function O(){return O=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},O.apply(null,arguments)}function S(e){return S="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},S(e)}function P(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=S(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function k(e){var t=P(e,"string");return"symbol"==S(t)?t:t+""}function x(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){if(Array.isArray(e))return e}function z(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.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&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}function B(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 N(e,t){if(e){if("string"==typeof e)return B(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)?B(e,t):void 0}}function R(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function L(e,t){return j(e)||z(e,t)||N(e,t)||R()}var M=e.memo(e.forwardRef((function(t,n){var o=p.getPTI(t);return e.createElement("svg",O({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),e.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"}))})));M.displayName="DownloadIcon";var A=r.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 w("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 D(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 J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V=e.memo(e.forwardRef((function(r,p){var S=l(),P=e.useContext(n),k=A.getProps(r,P),x=L(e.useState(!1),2),j=x[0],z=x[1],B=L(e.useState(!1),2),N=B[0],R=B[1],D=L(e.useState(0),2),V=D[0],X=D[1],T=L(e.useState(1),2),H=T[0],Z=T[1],U=e.useRef(null),_=e.useRef(null),F=e.useRef(null),G=e.useRef(null),K=e.useRef(null),Y=H<=.5,$=H>=1.5,q=A.setMetaData({props:k,state:{maskVisible:j,previewVisible:N,rotate:V,scale:H}}),Q=q.ptm,W=q.cx,ee=q.sx,te=q.isUnstyled;c({callback:function(){oe()},when:k.closeOnEscape&&j,priority:[s.IMAGE,0]}),i(A.css.styles,te,{name:"image"});var ne=function(){k.preview&&(z(!0),h.blockBodyScroll(),setTimeout((function(){R(!0)}),25))},oe=function(){R(!1),h.unblockBodyScroll(),X(0),Z(1)},re=function(e){[e.target.classList].includes("p-image-action")||e.target.closest(".p-image-action")||oe()},ie=function(e){if("Escape"===e.code)oe(),setTimeout((function(){h.focus(K.current)}),200),e.preventDefault()},ae=function(){h.saveAs({name:k.alt,src:k.src})},le=function(e){e.stopPropagation(),X((function(e){return e+90}))},ce=function(e){e.stopPropagation(),X((function(e){return e-90}))},se=function(e){e.stopPropagation(),Z((function(e){return $?e:e+.1}))},ue=function(e){e.stopPropagation(),Z((function(e){return Y?e:e-.1}))},pe=function(){C.set("modal",F.current,P&&P.autoZIndex||t.autoZIndex,P&&P.zIndex.modal||t.zIndex.modal)},me=function(){k.onShow&&k.onShow()},fe=function(){!te()&&h.addClass(F.current,"p-component-overlay-leave")},ge=function(){k.onHide&&k.onHide()},de=function(){C.clear(F.current),z(!1)};u((function(){F.current&&C.clear(F.current)}));e.useImperativeHandle(p,(function(){return{props:k,show:ne,hide:oe,getElement:function(){return U.current},getImage:function(){return _.current}}}));var ye,be,ve=k.src,we=k.alt,he=k.width,Ce=k.height,Ie=k.crossOrigin,Ee=k.referrerPolicy,Oe=k.useMap,Se=k.loading,Pe=function(){var t=k.downloadable,n=k.alt,r=k.crossOrigin,i=k.referrerPolicy,l=k.useMap,c=k.loading,s=S(Q("downloadIcon")),u=S(Q("rotateRightIcon")),p=S(Q("rotateLeftIcon")),m=S(Q("zoomOutIcon")),v=S(Q("zoomInIcon")),h=S(Q("closeIcon")),C=I.getJSXIcon(k.downloadIcon||e.createElement(M,null),J({},s),{props:k}),E=I.getJSXIcon(k.rotateRightIcon||e.createElement(f,null),J({},u),{props:k}),P=I.getJSXIcon(k.rotateLeftIcon||e.createElement(b,null),J({},p),{props:k}),x=I.getJSXIcon(k.zoomOutIcon||e.createElement(g,null),J({},m),{props:k}),z=I.getJSXIcon(k.zoomInIcon||e.createElement(d,null),J({},v),{props:k}),B=I.getJSXIcon(k.closeIcon||e.createElement(y,null),J({},h),{props:k}),R=S({ref:F,role:"dialog",className:W("mask"),"aria-modal":j,onClick:re,onKeyDown:ie},Q("mask")),L=S({className:W("toolbar")},Q("toolbar")),A=S({className:W("downloadButton"),onPointerUp:ae,type:"button"},Q("downloadButton")),D=S({className:W("rotateRightButton"),onClick:le,type:"button","aria-label":o("aria")?o("aria").rotateRight:void 0,"data-pc-group-section":"action"},Q("rotateRightButton")),X=S({className:W("rotateLeftButton"),onClick:ce,type:"button","aria-label":o("aria")?o("aria").rotateLeft:void 0,"data-pc-group-section":"action"},Q("rotateLeftButton")),T=S({className:w(W("zoomOutButton"),{"p-disabled":Y}),style:{pointerEvents:"auto"},onClick:ue,type:"button",disabled:Y,"aria-label":o("aria")?o("aria").zoomOut:void 0,"data-pc-group-section":"action"},Q("zoomOutButton")),Z=S({className:w(W("zoomInButton"),{"p-disabled":$}),style:{pointerEvents:"auto"},onClick:se,type:"button",disabled:$,"aria-label":o("aria")?o("aria").zoomIn:void 0,"data-pc-group-section":"action"},Q("zoomInButton")),U=S({className:W("closeButton"),type:"button",onClick:oe,"aria-label":o("aria")?o("aria").close:void 0,autoFocus:!0,"data-pc-group-section":"action"},Q("closeButton")),_=S({src:k.zoomSrc||k.src,className:W("preview"),style:ee("preview",{rotateState:V,scaleState:H}),crossOrigin:r,referrerPolicy:i,useMap:l,loading:c},Q("preview")),K=S({ref:G},Q("previewContainer")),q=S({classNames:W("transition"),in:N,timeout:{enter:150,exit:150},unmountOnExit:!0,onEntering:pe,onEntered:me,onExit:fe,onExiting:ge,onExited:de},Q("transition"));return e.createElement("div",R,e.createElement("div",L,t&&e.createElement("button",A,C),e.createElement("button",D,E),e.createElement("button",X,P),e.createElement("button",T,x),e.createElement("button",Z,z),e.createElement("button",U,B)),e.createElement(a,O({nodeRef:G},q),e.createElement("div",K,e.createElement("img",O({alt:n},_)))))}(),ke=S({className:W("icon")},Q("icon")),xe=I.getJSXIcon(k.indicatorIcon||e.createElement(m,ke),J({},ke),{props:k}),je=k.template?E.getJSXElement(k.template,k):xe,ze=(ye=o("aria")?o("aria").zoomImage:void 0,be=S({ref:K,className:W("button"),onClick:ne,type:"button","aria-label":ye},Q("button")),k.preview?e.createElement("button",be,je):null),Be=S({ref:_,src:ve,className:k.imageClassName,width:he,height:Ce,crossOrigin:Ie,referrerPolicy:Ee,useMap:Oe,loading:Se,style:k.imageStyle,onError:k.onError},Q("image")),Ne=k.src&&e.createElement("img",O({},Be,{alt:we})),Re=S({ref:U,className:w(k.className,W("root"))},A.getOtherProps(k),Q("root"));return e.createElement("span",Re,Ne,ze,j&&e.createElement(v,{element:Pe,appendTo:document.body}))})));V.displayName="Image";export{V as Image};
|
|
1
|
+
import*as e from"react";import t,{PrimeReactContext as n,localeOption as o}from"primereact/api";import{ComponentBase as r,useHandleStyle as i}from"primereact/componentbase";import{CSSTransition as a}from"primereact/csstransition";import{useMergeProps as l,useGlobalOnEscapeKey as c,ESC_KEY_HANDLING_PRIORITIES as s,useUnmountEffect as u}from"primereact/hooks";import{IconBase as p}from"primereact/iconbase";import{EyeIcon as m}from"primereact/icons/eye";import{RefreshIcon as f}from"primereact/icons/refresh";import{SearchMinusIcon as g}from"primereact/icons/searchminus";import{SearchPlusIcon as d}from"primereact/icons/searchplus";import{TimesIcon as y}from"primereact/icons/times";import{UndoIcon as b}from"primereact/icons/undo";import{Portal as v}from"primereact/portal";import{classNames as w,DomHandler as h,ZIndexUtils as C,IconUtils as I,ObjectUtils as E}from"primereact/utils";function O(){return O=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},O.apply(this,arguments)}function S(e){return S="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},S(e)}function P(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==S(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function k(e){var t=P(e,"string");return"symbol"===S(t)?t:String(t)}function x(e){if(Array.isArray(e))return e}function j(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.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&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}function z(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 B(e,t){if(e){if("string"==typeof e)return z(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)?z(e,t):void 0}}function N(){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 R(e,t){return x(e)||j(e,t)||B(e,t)||N()}var L=e.memo(e.forwardRef((function(t,n){var o=p.getPTI(t);return e.createElement("svg",O({ref:n,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),e.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"}))})));L.displayName="DownloadIcon";var M=r.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 w("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 A(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){var o,r,i;o=e,i=n[t],(r=k(r=t))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=e.memo(e.forwardRef((function(r,p){var S=l(),P=e.useContext(n),k=M.getProps(r,P),x=R(e.useState(!1),2),j=x[0],z=x[1],B=R(e.useState(!1),2),N=B[0],A=B[1],J=R(e.useState(0),2),V=J[0],X=J[1],T=R(e.useState(1),2),H=T[0],Z=T[1],U=e.useRef(null),_=e.useRef(null),F=e.useRef(null),G=e.useRef(null),K=e.useRef(null),Y=H<=.5,$=H>=1.5,q=M.setMetaData({props:k,state:{maskVisible:j,previewVisible:N,rotate:V,scale:H}}),Q=q.ptm,W=q.cx,ee=q.sx,te=q.isUnstyled;c({callback:function(){oe()},when:k.closeOnEscape&&j,priority:[s.IMAGE,0]}),i(M.css.styles,te,{name:"image"});var ne=function(){k.preview&&(z(!0),h.blockBodyScroll(),setTimeout((function(){A(!0)}),25))},oe=function(){A(!1),h.unblockBodyScroll(),X(0),Z(1)},re=function(e){[e.target.classList].includes("p-image-action")||e.target.closest(".p-image-action")||oe()},ie=function(e){if("Escape"===e.code)oe(),setTimeout((function(){h.focus(K.current)}),200),e.preventDefault()},ae=function(){h.saveAs({name:k.alt,src:k.src})},le=function(e){e.stopPropagation(),X((function(e){return e+90}))},ce=function(e){e.stopPropagation(),X((function(e){return e-90}))},se=function(e){e.stopPropagation(),Z((function(e){return $?e:e+.1}))},ue=function(e){e.stopPropagation(),Z((function(e){return Y?e:e-.1}))},pe=function(){C.set("modal",F.current,P&&P.autoZIndex||t.autoZIndex,P&&P.zIndex.modal||t.zIndex.modal)},me=function(){k.onShow&&k.onShow()},fe=function(){!te()&&h.addClass(F.current,"p-component-overlay-leave")},ge=function(){k.onHide&&k.onHide()},de=function(){C.clear(F.current),z(!1)};u((function(){F.current&&C.clear(F.current)}));e.useImperativeHandle(p,(function(){return{props:k,show:ne,hide:oe,getElement:function(){return U.current},getImage:function(){return _.current}}}));var ye,be,ve=k.src,we=k.alt,he=k.width,Ce=k.height,Ie=k.crossOrigin,Ee=k.referrerPolicy,Oe=k.useMap,Se=k.loading,Pe=function(){var t=k.downloadable,n=k.alt,r=k.crossOrigin,i=k.referrerPolicy,l=k.useMap,c=k.loading,s=S(Q("downloadIcon")),u=S(Q("rotateRightIcon")),p=S(Q("rotateLeftIcon")),m=S(Q("zoomOutIcon")),v=S(Q("zoomInIcon")),h=S(Q("closeIcon")),C=I.getJSXIcon(k.downloadIcon||e.createElement(L,null),D({},s),{props:k}),E=I.getJSXIcon(k.rotateRightIcon||e.createElement(f,null),D({},u),{props:k}),P=I.getJSXIcon(k.rotateLeftIcon||e.createElement(b,null),D({},p),{props:k}),x=I.getJSXIcon(k.zoomOutIcon||e.createElement(g,null),D({},m),{props:k}),z=I.getJSXIcon(k.zoomInIcon||e.createElement(d,null),D({},v),{props:k}),B=I.getJSXIcon(k.closeIcon||e.createElement(y,null),D({},h),{props:k}),R=S({ref:F,role:"dialog",className:W("mask"),"aria-modal":j,onClick:re,onKeyDown:ie},Q("mask")),M=S({className:W("toolbar")},Q("toolbar")),A=S({className:W("downloadButton"),onPointerUp:ae,type:"button"},Q("downloadButton")),J=S({className:W("rotateRightButton"),onClick:le,type:"button","aria-label":o("aria")?o("aria").rotateRight:void 0,"data-pc-group-section":"action"},Q("rotateRightButton")),X=S({className:W("rotateLeftButton"),onClick:ce,type:"button","aria-label":o("aria")?o("aria").rotateLeft:void 0,"data-pc-group-section":"action"},Q("rotateLeftButton")),T=S({className:w(W("zoomOutButton"),{"p-disabled":Y}),style:{pointerEvents:"auto"},onClick:ue,type:"button",disabled:Y,"aria-label":o("aria")?o("aria").zoomOut:void 0,"data-pc-group-section":"action"},Q("zoomOutButton")),Z=S({className:w(W("zoomInButton"),{"p-disabled":$}),style:{pointerEvents:"auto"},onClick:se,type:"button",disabled:$,"aria-label":o("aria")?o("aria").zoomIn:void 0,"data-pc-group-section":"action"},Q("zoomInButton")),U=S({className:W("closeButton"),type:"button",onClick:oe,"aria-label":o("aria")?o("aria").close:void 0,autoFocus:!0,"data-pc-group-section":"action"},Q("closeButton")),_=S({src:k.zoomSrc||k.src,className:W("preview"),style:ee("preview",{rotateState:V,scaleState:H}),crossOrigin:r,referrerPolicy:i,useMap:l,loading:c},Q("preview")),K=S({ref:G},Q("previewContainer")),q=S({classNames:W("transition"),in:N,timeout:{enter:150,exit:150},unmountOnExit:!0,onEntering:pe,onEntered:me,onExit:fe,onExiting:ge,onExited:de},Q("transition"));return e.createElement("div",R,e.createElement("div",M,t&&e.createElement("button",A,C),e.createElement("button",J,E),e.createElement("button",X,P),e.createElement("button",T,x),e.createElement("button",Z,z),e.createElement("button",U,B)),e.createElement(a,O({nodeRef:G},q),e.createElement("div",K,e.createElement("img",O({alt:n},_)))))}(),ke=S({className:W("icon")},Q("icon")),xe=I.getJSXIcon(k.indicatorIcon||e.createElement(m,ke),D({},ke),{props:k}),je=k.template?E.getJSXElement(k.template,k):xe,ze=(ye=o("aria")?o("aria").zoomImage:void 0,be=S({ref:K,className:W("button"),onClick:ne,type:"button","aria-label":ye},Q("button")),k.preview?e.createElement("button",be,je):null),Be=S({ref:_,src:ve,className:k.imageClassName,width:he,height:Ce,crossOrigin:Ie,referrerPolicy:Ee,useMap:Oe,loading:Se,style:k.imageStyle,onError:k.onError},Q("image")),Ne=k.src&&e.createElement("img",O({},Be,{alt:we})),Re=S({ref:U,className:w(k.className,W("root"))},M.getOtherProps(k),Q("root"));return e.createElement("span",Re,Ne,ze,j&&e.createElement(v,{element:Pe,appendTo:document.body}))})));J.displayName="Image";export{J as Image};
|