primereact 10.8.5 → 10.9.1
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 +1482 -1020
- 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 +348 -242
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +348 -242
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +348 -242
- 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 +88 -67
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +88 -67
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +88 -67
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"react";import e,{PrimeReactContext as r}from"primereact/api";import{ComponentBase as n,useHandleStyle as o}from"primereact/componentbase";import{useMergeProps as i,useGlobalOnEscapeKey as a,ESC_KEY_HANDLING_PRIORITIES as u,useResizeListener as l,useOverlayScrollListener as c,useMountEffect as p,useUpdateEffect as s,useUnmountEffect as f}from"primereact/hooks";import{Portal as d}from"primereact/portal";import{classNames as m,DomHandler as h,ZIndexUtils as v,ObjectUtils as y}from"primereact/utils";function b(){return b=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},b.apply(null,arguments)}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function w(t,e){if("object"!=g(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function E(t){var e=w(t,"string");return"symbol"==g(e)?e:e+""}function x(t,e,r){return(e=E(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function T(t){if(Array.isArray(t))return O(t)}function S(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function j(t,e){if(t){if("string"==typeof t)return O(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(t,e):void 0}}function P(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(t){if(Array.isArray(t))return t}function I(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}function D(){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 N(t,e){return k(t)||I(t,e)||j(t,e)||D()}var C=n.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:{root:function(t){var e=t.classNameState;return m("p-tooltip p-component",x({},"p-tooltip-".concat(t.positionState),!0),e)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},styles:"\n@layer primereact {\n .p-tooltip {\n position: absolute;\n padding: .25em .5rem;\n /* #3687: Tooltip prevent scrollbar flickering */\n top: -9999px;\n left: -9999px;\n }\n \n .p-tooltip.p-tooltip-right,\n .p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n }\n \n .p-tooltip.p-tooltip-top,\n .p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n }\n \n .p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n }\n \n .p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n \n .p-tooltip-right .p-tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n }\n \n .p-tooltip-left .p-tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n }\n \n .p-tooltip.p-tooltip-top {\n padding: .25em 0;\n }\n \n .p-tooltip-top .p-tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n }\n \n .p-tooltip-bottom .p-tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n }\n\n .p-tooltip-target-wrapper {\n display: inline-flex;\n }\n}\n",inlineStyles:{arrow:function(t){var e=t.context;return{top:e.bottom?"0":e.right||e.left||!e.right&&!e.left&&!e.top&&!e.bottom?"50%":null,bottom:e.top?"0":null,left:!e.right&&(e.right||e.left||e.top||e.bottom)?e.top||e.bottom?"50%":null:"0",right:e.left?"0":null}}}}});function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){x(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var H=t.memo(t.forwardRef((function(n,g){var w=i(),E=t.useContext(r),x=C.getProps(n,E),O=N(t.useState(!1),2),k=O[0],I=O[1],D=N(t.useState(x.position||"right"),2),A=D[0],H=D[1],R=N(t.useState(""),2),W=R[0],M=R[1],Z=N(t.useState(!1),2),B=Z[0],F=Z[1],U={props:x,state:{visible:k,position:A,className:W},context:{right:"right"===A,left:"left"===A,top:"top"===A,bottom:"bottom"===A}},z=C.setMetaData(U),Y=z.ptm,_=z.cx,X=z.sx;o(C.css.styles,z.isUnstyled,{name:"tooltip"}),a({callback:function(){bt()},when:x.closeOnEscape,priority:[u.TOOLTIP,0]});var $=t.useRef(null),q=t.useRef(null),G=t.useRef(null),J=t.useRef(null),K=t.useRef(!0),Q=t.useRef({}),V=t.useRef(null),tt=N(l({listener:function(t){!h.isTouchDevice()&&bt(t)}}),2),et=tt[0],rt=tt[1],nt=N(c({target:G.current,listener:function(t){bt(t)},when:k}),2),ot=nt[0],it=nt[1],at=function(t){return pt(t,"mousetrack")||x.mouseTrack},ut=function(t){return"true"===pt(t,"disabled")||st(t,"disabled")||x.disabled},lt=function(t){return pt(t,"showondisabled")||x.showOnDisabled},ct=function(){return pt(G.current,"autohide")||x.autoHide},pt=function(t,e){return st(t,"data-pr-".concat(e))?t.getAttribute("data-pr-".concat(e)):null},st=function(t,e){return t&&t.hasAttribute(e)},ft=function(t){var e=[pt(t,"showevent")||x.showEvent],r=[pt(t,"hideevent")||x.hideEvent];if(at(t))e=["mousemove"],r=["mouseleave"];else{var n=pt(t,"event")||x.event;"focus"===n&&(e=["focus"],r=["blur"]),"both"===n&&(e=["focus","mouseenter"],r=B?["blur"]:["mouseleave","blur"])}return{showEvents:e,hideEvents:r}},dt=function(t){return pt(t,"position")||A},mt=function(t){return{top:pt(t,"mousetracktop")||x.mouseTrackTop,left:pt(t,"mousetrackleft")||x.mouseTrackLeft}},ht=function(t,e){if(q.current){var r=pt(t,"tooltip")||x.content;r?(q.current.innerHTML="",q.current.appendChild(document.createTextNode(r)),e()):x.children&&e()}},vt=function(t){ht(G.current,(function(){var r=V.current,n=r.pageX,o=r.pageY;x.autoZIndex&&!v.get($.current)&&v.set("tooltip",$.current,E&&E.autoZIndex||e.autoZIndex,x.baseZIndex||E&&E.zIndex.tooltip||e.zIndex.tooltip),$.current.style.left="",$.current.style.top="",ct()&&($.current.style.pointerEvents="none");var i=at(G.current)||"mouse"===t;(i&&!J.current||i)&&(J.current={width:h.getOuterWidth($.current),height:h.getOuterHeight($.current)}),gt(G.current,{x:n,y:o},t)}))},yt=function(t){t.type&&"focus"===t.type&&F(!0),G.current=t.currentTarget;var e,r=ut(G.current);(e=lt(G.current)&&r?G.current.firstChild:G.current,!(x.content||pt(e,"tooltip")||x.children))||r||(V.current=t,k?Tt("updateDelay",vt):St(x.onBeforeShow,{originalEvent:t,target:G.current})&&Tt("showDelay",(function(){I(!0),St(x.onShow,{originalEvent:t,target:G.current})})))},bt=function(t){(t&&"blur"===t.type&&F(!1),jt(),k)&&(St(x.onBeforeHide,{originalEvent:t,target:G.current})&&Tt("hideDelay",(function(){(ct()||!1!==K.current)&&(v.clear($.current),h.removeClass($.current,"p-tooltip-active"),I(!1),St(x.onHide,{originalEvent:t,target:G.current}))})))},gt=function(t,e,r){var n=0,o=0,i=r||A;if((at(t)||"mouse"==i)&&e){var a={width:h.getOuterWidth($.current),height:h.getOuterHeight($.current)};n=e.x,o=e.y;var u=mt(t),l=u.top,c=u.left;switch(i){case"left":n-=a.width+c,o-=a.height/2-l;break;case"right":case"mouse":n+=c,o-=a.height/2-l;break;case"top":n-=a.width/2-c,o-=a.height+l;break;case"bottom":n-=a.width/2-c,o+=l}n<=0||J.current.width>a.width?($.current.style.left="0px",$.current.style.right=window.innerWidth-a.width-n+"px"):($.current.style.right="",$.current.style.left=n+"px"),$.current.style.top=o+"px",h.addClass($.current,"p-tooltip-active")}else{var p=h.findCollisionPosition(i),s=pt(t,"my")||x.my||p.my,f=pt(t,"at")||x.at||p.at;$.current.style.padding="0px",h.flipfitCollision($.current,t,s,f,(function(t){var e=t.at,r=e.x,n=x.at?"center"!==r&&r!==t.my.x?r:e.y:t.at["".concat(p.axis)];$.current.style.padding="",H(n),wt(n),h.addClass($.current,"p-tooltip-active")}))}},wt=function(t){if($.current){var e=getComputedStyle($.current);"left"===t?$.current.style.left=parseFloat(e.left)-2*parseFloat(e.paddingLeft)+"px":"top"===t&&($.current.style.top=parseFloat(e.top)-2*parseFloat(e.paddingTop)+"px")}},Et=function(t){ct()||(K.current=!0,bt(t))},xt=function(t){if(t){var e=ft(t),r=e.showEvents,n=e.hideEvents,o=Pt(t);r.forEach((function(t){return null==o?void 0:o.addEventListener(t,yt)})),n.forEach((function(t){return null==o?void 0:o.addEventListener(t,bt)}))}},Ot=function(t){if(t){var e=ft(t),r=e.showEvents,n=e.hideEvents,o=Pt(t);r.forEach((function(t){return null==o?void 0:o.removeEventListener(t,yt)})),n.forEach((function(t){return null==o?void 0:o.removeEventListener(t,bt)}))}},Tt=function(t,e){jt();var r=pt(G.current,t.toLowerCase())||x[t];r?Q.current["".concat(t)]=setTimeout((function(){return e()}),r):e()},St=function(t){if(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.apply(void 0,r);return void 0===o&&(o=!0),o}return!0},jt=function(){Object.values(Q.current).forEach((function(t){return clearTimeout(t)}))},Pt=function(t){if(t){if(lt(t)){if(!t.hasWrapper){var e=document.createElement("div");return"INPUT"===t.nodeName?h.addMultipleClasses(e,"p-tooltip-target-wrapper p-inputwrapper"):h.addClass(e,"p-tooltip-target-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t),t.hasWrapper=!0,e}return t.parentElement}var r;return t.hasWrapper&&((r=t.parentElement).replaceWith.apply(r,T(n=t.parentElement.childNodes)||S(n)||j(n)||P()),delete t.hasWrapper),t}var n;return null},kt=function(t){Dt(t),It(t)},It=function(t){Nt(t||x.target,xt)},Dt=function(t){Nt(t||x.target,Ot)},Nt=function(t,e){if(t=y.getRefElement(t))if(h.isElement(t))e(t);else{var r=function(t){h.find(document,t).forEach((function(t){e(t)}))};t instanceof Array?t.forEach((function(t){r(t)})):r(t)}};p((function(){k&&G.current&&ut(G.current)&&bt()})),s((function(){return It(),function(){Dt()}}),[yt,bt,x.target]),s((function(){if(k){var t=dt(G.current),e=pt(G.current,"classname");H(t),M(e),vt(t),et(),ot()}else H(x.position||"right"),M(""),G.current=null,J.current=null,K.current=!0;return function(){rt(),it()}}),[k]),s((function(){var t=dt(G.current);k&&"mouse"!==t&&Tt("updateDelay",(function(){ht(G.current,(function(){gt(G.current)}))}))}),[x.content]),f((function(){bt(),v.clear($.current)})),t.useImperativeHandle(g,(function(){return{props:x,updateTargetEvents:kt,loadTargetEvents:It,unloadTargetEvents:Dt,show:yt,hide:bt,getElement:function(){return $.current},getTarget:function(){return G.current}}}));var Ct,At,Lt,Ht,Rt;if(k){var Wt=(Ct=G.current,At=!(x.content||pt(Ct,"tooltip")),Lt=w({id:x.id,className:m(x.className,_("root",{positionState:A,classNameState:W})),style:x.style,role:"tooltip","aria-hidden":k,onMouseEnter:function(t){ct()||(K.current=!1)},onMouseLeave:function(t){return Et(t)}},C.getOtherProps(x),Y("root")),Ht=w({className:_("arrow"),style:X("arrow",L({},U))},Y("arrow")),Rt=w({className:_("text")},Y("text")),t.createElement("div",b({ref:$},Lt),t.createElement("div",Ht),t.createElement("div",b({ref:q},Rt),At&&x.children)));return t.createElement(d,{element:Wt,appendTo:x.appendTo,visible:!0})}return null})));H.displayName="Tooltip";export{H as Tooltip};
|
|
1
|
+
import*as t from"react";import e,{PrimeReactContext as r}from"primereact/api";import{ComponentBase as n,useHandleStyle as o}from"primereact/componentbase";import{useMergeProps as i,useDisplayOrder as a,useGlobalOnEscapeKey as u,ESC_KEY_HANDLING_PRIORITIES as l,useResizeListener as c,useOverlayScrollListener as p,useMountEffect as s,useUpdateEffect as f,useUnmountEffect as d}from"primereact/hooks";import{Portal as m}from"primereact/portal";import{classNames as h,DomHandler as v,ZIndexUtils as y,ObjectUtils as b}from"primereact/utils";function g(){return g=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},g.apply(this,arguments)}function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function E(t,e){if("object"!==w(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function O(t){var e=E(t,"string");return"symbol"===w(e)?e:String(e)}function x(t,e,r){return(e=O(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function T(t){if(Array.isArray(t))return S(t)}function j(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function P(t,e){if(t){if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(t){if(Array.isArray(t))return t}function D(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}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 C(t,e){return I(t)||D(t,e)||P(t,e)||N()}var A=n.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:{root:function(t){var e=t.classNameState;return h("p-tooltip p-component",x({},"p-tooltip-".concat(t.positionState),!0),e)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},styles:"\n@layer primereact {\n .p-tooltip {\n position: absolute;\n padding: .25em .5rem;\n /* #3687: Tooltip prevent scrollbar flickering */\n top: -9999px;\n left: -9999px;\n }\n \n .p-tooltip.p-tooltip-right,\n .p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n }\n \n .p-tooltip.p-tooltip-top,\n .p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n }\n \n .p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n }\n \n .p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n \n .p-tooltip-right .p-tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n }\n \n .p-tooltip-left .p-tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n }\n \n .p-tooltip.p-tooltip-top {\n padding: .25em 0;\n }\n \n .p-tooltip-top .p-tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n }\n \n .p-tooltip-bottom .p-tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n }\n\n .p-tooltip-target-wrapper {\n display: inline-flex;\n }\n}\n",inlineStyles:{arrow:function(t){var e=t.context;return{top:e.bottom?"0":e.right||e.left||!e.right&&!e.left&&!e.top&&!e.bottom?"50%":null,bottom:e.top?"0":null,left:!e.right&&(e.right||e.left||e.top||e.bottom)?e.top||e.bottom?"50%":null:"0",right:e.left?"0":null}}}}});function L(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function H(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach((function(e){x(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var R=t.memo(t.forwardRef((function(n,w){var E=i(),O=t.useContext(r),x=A.getProps(n,O),S=C(t.useState(!1),2),I=S[0],D=S[1],N=C(t.useState(x.position||"right"),2),L=N[0],R=N[1],W=C(t.useState(""),2),M=W[0],Z=W[1],B=C(t.useState(!1),2),F=B[0],U=B[1],z=I&&x.closeOnEscape,Y=a("tooltip",z),_={props:x,state:{visible:I,position:L,className:M},context:{right:"right"===L,left:"left"===L,top:"top"===L,bottom:"bottom"===L}},X=A.setMetaData(_),$=X.ptm,q=X.cx,G=X.sx;o(A.css.styles,X.isUnstyled,{name:"tooltip"}),u({callback:function(){Et()},when:z,priority:[l.TOOLTIP,Y]});var J=t.useRef(null),K=t.useRef(null),Q=t.useRef(null),V=t.useRef(null),tt=t.useRef(!0),et=t.useRef({}),rt=t.useRef(null),nt=C(c({listener:function(t){!v.isTouchDevice()&&Et(t)}}),2),ot=nt[0],it=nt[1],at=C(p({target:Q.current,listener:function(t){Et(t)},when:I}),2),ut=at[0],lt=at[1],ct=function(t){return dt(t,"mousetrack")||x.mouseTrack},pt=function(t){return"true"===dt(t,"disabled")||mt(t,"disabled")||x.disabled},st=function(t){return dt(t,"showondisabled")||x.showOnDisabled},ft=function(){return dt(Q.current,"autohide")||x.autoHide},dt=function(t,e){return mt(t,"data-pr-".concat(e))?t.getAttribute("data-pr-".concat(e)):null},mt=function(t,e){return t&&t.hasAttribute(e)},ht=function(t){var e=[dt(t,"showevent")||x.showEvent],r=[dt(t,"hideevent")||x.hideEvent];if(ct(t))e=["mousemove"],r=["mouseleave"];else{var n=dt(t,"event")||x.event;"focus"===n&&(e=["focus"],r=["blur"]),"both"===n&&(e=["focus","mouseenter"],r=F?["blur"]:["mouseleave","blur"])}return{showEvents:e,hideEvents:r}},vt=function(t){return dt(t,"position")||L},yt=function(t){return{top:dt(t,"mousetracktop")||x.mouseTrackTop,left:dt(t,"mousetrackleft")||x.mouseTrackLeft}},bt=function(t,e){if(K.current){var r=dt(t,"tooltip")||x.content;r?(K.current.innerHTML="",K.current.appendChild(document.createTextNode(r)),e()):x.children&&e()}},gt=function(t){bt(Q.current,(function(){var r=rt.current,n=r.pageX,o=r.pageY;x.autoZIndex&&!y.get(J.current)&&y.set("tooltip",J.current,O&&O.autoZIndex||e.autoZIndex,x.baseZIndex||O&&O.zIndex.tooltip||e.zIndex.tooltip),J.current.style.left="",J.current.style.top="",ft()&&(J.current.style.pointerEvents="none");var i=ct(Q.current)||"mouse"===t;(i&&!V.current||i)&&(V.current={width:v.getOuterWidth(J.current),height:v.getOuterHeight(J.current)}),Ot(Q.current,{x:n,y:o},t)}))},wt=function(t){t.type&&"focus"===t.type&&U(!0),Q.current=t.currentTarget;var e,r=pt(Q.current);(e=st(Q.current)&&r?Q.current.firstChild:Q.current,!(x.content||dt(e,"tooltip")||x.children))||r||(rt.current=t,I?Pt("updateDelay",gt):kt(x.onBeforeShow,{originalEvent:t,target:Q.current})&&Pt("showDelay",(function(){D(!0),kt(x.onShow,{originalEvent:t,target:Q.current})})))},Et=function(t){(t&&"blur"===t.type&&U(!1),It(),I)&&(kt(x.onBeforeHide,{originalEvent:t,target:Q.current})&&Pt("hideDelay",(function(){(ft()||!1!==tt.current)&&(y.clear(J.current),v.removeClass(J.current,"p-tooltip-active"),D(!1),kt(x.onHide,{originalEvent:t,target:Q.current}))})))},Ot=function(t,e,r){var n=0,o=0,i=r||L;if((ct(t)||"mouse"==i)&&e){var a={width:v.getOuterWidth(J.current),height:v.getOuterHeight(J.current)};n=e.x,o=e.y;var u=yt(t),l=u.top,c=u.left;switch(i){case"left":n-=a.width+c,o-=a.height/2-l;break;case"right":case"mouse":n+=c,o-=a.height/2-l;break;case"top":n-=a.width/2-c,o-=a.height+l;break;case"bottom":n-=a.width/2-c,o+=l}n<=0||V.current.width>a.width?(J.current.style.left="0px",J.current.style.right=window.innerWidth-a.width-n+"px"):(J.current.style.right="",J.current.style.left=n+"px"),J.current.style.top=o+"px",v.addClass(J.current,"p-tooltip-active")}else{var p=v.findCollisionPosition(i),s=dt(t,"my")||x.my||p.my,f=dt(t,"at")||x.at||p.at;J.current.style.padding="0px",v.flipfitCollision(J.current,t,s,f,(function(t){var e=t.at,r=e.x,n=x.at?"center"!==r&&r!==t.my.x?r:e.y:t.at["".concat(p.axis)];J.current.style.padding="",R(n),xt(n),v.addClass(J.current,"p-tooltip-active")}))}},xt=function(t){if(J.current){var e=getComputedStyle(J.current);"left"===t?J.current.style.left=parseFloat(e.left)-2*parseFloat(e.paddingLeft)+"px":"top"===t&&(J.current.style.top=parseFloat(e.top)-2*parseFloat(e.paddingTop)+"px")}},St=function(t){ft()||(tt.current=!0,Et(t))},Tt=function(t){if(t){var e=ht(t),r=e.showEvents,n=e.hideEvents,o=Dt(t);r.forEach((function(t){return null==o?void 0:o.addEventListener(t,wt)})),n.forEach((function(t){return null==o?void 0:o.addEventListener(t,Et)}))}},jt=function(t){if(t){var e=ht(t),r=e.showEvents,n=e.hideEvents,o=Dt(t);r.forEach((function(t){return null==o?void 0:o.removeEventListener(t,wt)})),n.forEach((function(t){return null==o?void 0:o.removeEventListener(t,Et)}))}},Pt=function(t,e){It();var r=dt(Q.current,t.toLowerCase())||x[t];r?et.current["".concat(t)]=setTimeout((function(){return e()}),r):e()},kt=function(t){if(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.apply(void 0,r);return void 0===o&&(o=!0),o}return!0},It=function(){Object.values(et.current).forEach((function(t){return clearTimeout(t)}))},Dt=function(t){if(t){if(st(t)){if(!t.hasWrapper){var e=document.createElement("div");return"INPUT"===t.nodeName?v.addMultipleClasses(e,"p-tooltip-target-wrapper p-inputwrapper"):v.addClass(e,"p-tooltip-target-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t),t.hasWrapper=!0,e}return t.parentElement}var r;return t.hasWrapper&&((r=t.parentElement).replaceWith.apply(r,T(n=t.parentElement.childNodes)||j(n)||P(n)||k()),delete t.hasWrapper),t}var n;return null},Nt=function(t){At(t),Ct(t)},Ct=function(t){Lt(t||x.target,Tt)},At=function(t){Lt(t||x.target,jt)},Lt=function(t,e){if(t=b.getRefElement(t))if(v.isElement(t))e(t);else{var r=function(t){v.find(document,t).forEach((function(t){e(t)}))};t instanceof Array?t.forEach((function(t){r(t)})):r(t)}};s((function(){I&&Q.current&&pt(Q.current)&&Et()})),f((function(){return Ct(),function(){At()}}),[wt,Et,x.target]),f((function(){if(I){var t=vt(Q.current),e=dt(Q.current,"classname");R(t),Z(e),gt(t),ot(),ut()}else R(x.position||"right"),Z(""),Q.current=null,V.current=null,tt.current=!0;return function(){it(),lt()}}),[I]),f((function(){var t=vt(Q.current);I&&"mouse"!==t&&Pt("updateDelay",(function(){bt(Q.current,(function(){Ot(Q.current)}))}))}),[x.content]),d((function(){Et(),y.clear(J.current)})),t.useImperativeHandle(w,(function(){return{props:x,updateTargetEvents:Nt,loadTargetEvents:Ct,unloadTargetEvents:At,show:wt,hide:Et,getElement:function(){return J.current},getTarget:function(){return Q.current}}}));var Ht,Rt,Wt,Mt,Zt;if(I){var Bt=(Ht=Q.current,Rt=!(x.content||dt(Ht,"tooltip")),Wt=E({id:x.id,className:h(x.className,q("root",{positionState:L,classNameState:M})),style:x.style,role:"tooltip","aria-hidden":I,onMouseEnter:function(t){ft()||(tt.current=!1)},onMouseLeave:function(t){return St(t)}},A.getOtherProps(x),$("root")),Mt=E({className:q("arrow"),style:G("arrow",H({},_))},$("arrow")),Zt=E({className:q("text")},$("text")),t.createElement("div",g({ref:J},Wt),t.createElement("div",Mt),t.createElement("div",g({ref:K},Zt),Rt&&x.children)));return t.createElement(m,{element:Bt,appendTo:x.appendTo,visible:!0})}return null})));R.displayName="Tooltip";export{R as Tooltip};
|
package/tooltip/tooltip.js
CHANGED
|
@@ -26,13 +26,18 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
26
26
|
var PrimeReact__default = /*#__PURE__*/_interopDefaultLegacy(PrimeReact);
|
|
27
27
|
|
|
28
28
|
function _extends() {
|
|
29
|
-
|
|
30
|
-
for (var
|
|
31
|
-
var
|
|
32
|
-
for (var
|
|
29
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
31
|
+
var source = arguments[i];
|
|
32
|
+
for (var key in source) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
+
target[key] = source[key];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
33
37
|
}
|
|
34
|
-
return
|
|
35
|
-
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
40
|
+
return _extends.apply(this, arguments);
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
function _typeof(o) {
|
|
@@ -45,63 +50,70 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
45
50
|
}, _typeof(o);
|
|
46
51
|
}
|
|
47
52
|
|
|
48
|
-
function
|
|
49
|
-
if ("object"
|
|
50
|
-
var
|
|
51
|
-
if (
|
|
52
|
-
var
|
|
53
|
-
if ("object"
|
|
53
|
+
function _toPrimitive(input, hint) {
|
|
54
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
55
|
+
var prim = input[Symbol.toPrimitive];
|
|
56
|
+
if (prim !== undefined) {
|
|
57
|
+
var res = prim.call(input, hint || "default");
|
|
58
|
+
if (_typeof(res) !== "object") return res;
|
|
54
59
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
55
60
|
}
|
|
56
|
-
return ("string"
|
|
61
|
+
return (hint === "string" ? String : Number)(input);
|
|
57
62
|
}
|
|
58
63
|
|
|
59
|
-
function
|
|
60
|
-
var
|
|
61
|
-
return "symbol"
|
|
64
|
+
function _toPropertyKey(arg) {
|
|
65
|
+
var key = _toPrimitive(arg, "string");
|
|
66
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
function _defineProperty(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
function _defineProperty(obj, key, value) {
|
|
70
|
+
key = _toPropertyKey(key);
|
|
71
|
+
if (key in obj) {
|
|
72
|
+
Object.defineProperty(obj, key, {
|
|
73
|
+
value: value,
|
|
74
|
+
enumerable: true,
|
|
75
|
+
configurable: true,
|
|
76
|
+
writable: true
|
|
77
|
+
});
|
|
78
|
+
} else {
|
|
79
|
+
obj[key] = value;
|
|
80
|
+
}
|
|
81
|
+
return obj;
|
|
71
82
|
}
|
|
72
83
|
|
|
73
|
-
function _arrayLikeToArray(
|
|
74
|
-
(
|
|
75
|
-
for (var
|
|
76
|
-
return
|
|
84
|
+
function _arrayLikeToArray(arr, len) {
|
|
85
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
86
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
87
|
+
return arr2;
|
|
77
88
|
}
|
|
78
89
|
|
|
79
|
-
function _arrayWithoutHoles(
|
|
80
|
-
if (Array.isArray(
|
|
90
|
+
function _arrayWithoutHoles(arr) {
|
|
91
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
81
92
|
}
|
|
82
93
|
|
|
83
|
-
function _iterableToArray(
|
|
84
|
-
if (
|
|
94
|
+
function _iterableToArray(iter) {
|
|
95
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
85
96
|
}
|
|
86
97
|
|
|
87
|
-
function _unsupportedIterableToArray(
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
98
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
99
|
+
if (!o) return;
|
|
100
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
101
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
102
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
103
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
104
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
93
105
|
}
|
|
94
106
|
|
|
95
107
|
function _nonIterableSpread() {
|
|
96
108
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
97
109
|
}
|
|
98
110
|
|
|
99
|
-
function _toConsumableArray(
|
|
100
|
-
return _arrayWithoutHoles(
|
|
111
|
+
function _toConsumableArray(arr) {
|
|
112
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
101
113
|
}
|
|
102
114
|
|
|
103
|
-
function _arrayWithHoles(
|
|
104
|
-
if (Array.isArray(
|
|
115
|
+
function _arrayWithHoles(arr) {
|
|
116
|
+
if (Array.isArray(arr)) return arr;
|
|
105
117
|
}
|
|
106
118
|
|
|
107
119
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -136,8 +148,8 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
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 classes = {
|
|
@@ -223,6 +235,8 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
223
235
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
224
236
|
multipleFocusEvents = _React$useState8[0],
|
|
225
237
|
setMultipleFocusEvents = _React$useState8[1];
|
|
238
|
+
var isCloseOnEscape = visibleState && props.closeOnEscape;
|
|
239
|
+
var overlayDisplayOrder = hooks.useDisplayOrder('tooltip', isCloseOnEscape);
|
|
226
240
|
var metaData = {
|
|
227
241
|
props: props,
|
|
228
242
|
state: {
|
|
@@ -249,8 +263,8 @@ this.primereact.tooltip = (function (exports, React, PrimeReact, componentbase,
|
|
|
249
263
|
callback: function callback() {
|
|
250
264
|
hide();
|
|
251
265
|
},
|
|
252
|
-
when:
|
|
253
|
-
priority: [hooks.ESC_KEY_HANDLING_PRIORITIES.TOOLTIP,
|
|
266
|
+
when: isCloseOnEscape,
|
|
267
|
+
priority: [hooks.ESC_KEY_HANDLING_PRIORITIES.TOOLTIP, overlayDisplayOrder]
|
|
254
268
|
});
|
|
255
269
|
var elementRef = React__namespace.useRef(null);
|
|
256
270
|
var textRef = React__namespace.useRef(null);
|
package/tooltip/tooltip.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.tooltip=function(t,e,r,n,o,i,a){"use strict";function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function u(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var c=u(e),s=l(r);function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},p.apply(null,arguments)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function m(t){var e=d(t,"string");return"symbol"==f(e)?e:e+""}function h(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function y(t){if(Array.isArray(t))return v(t)}function b(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function g(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(t){if(Array.isArray(t))return t}function O(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(t,e){return E(t)||O(t,e)||g(t,e)||x()}var T=n.ComponentBase.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:{root:function(t){var e=t.classNameState;return a.classNames("p-tooltip p-component",h({},"p-tooltip-".concat(t.positionState),!0),e)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},styles:"\n@layer primereact {\n .p-tooltip {\n position: absolute;\n padding: .25em .5rem;\n /* #3687: Tooltip prevent scrollbar flickering */\n top: -9999px;\n left: -9999px;\n }\n \n .p-tooltip.p-tooltip-right,\n .p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n }\n \n .p-tooltip.p-tooltip-top,\n .p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n }\n \n .p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n }\n \n .p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n \n .p-tooltip-right .p-tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n }\n \n .p-tooltip-left .p-tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n }\n \n .p-tooltip.p-tooltip-top {\n padding: .25em 0;\n }\n \n .p-tooltip-top .p-tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n }\n \n .p-tooltip-bottom .p-tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n }\n\n .p-tooltip-target-wrapper {\n display: inline-flex;\n }\n}\n",inlineStyles:{arrow:function(t){var e=t.context;return{top:e.bottom?"0":e.right||e.left||!e.right&&!e.left&&!e.top&&!e.bottom?"50%":null,bottom:e.top?"0":null,left:!e.right&&(e.right||e.left||e.top||e.bottom)?e.top||e.bottom?"50%":null:"0",right:e.left?"0":null}}}}});function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var H=c.memo(c.forwardRef((function(t,e){var l=o.useMergeProps(),u=c.useContext(r.PrimeReactContext),f=T.getProps(t,u),d=S(c.useState(!1),2),m=d[0],h=d[1],v=S(c.useState(f.position||"right"),2),E=v[0],O=v[1],x=S(c.useState(""),2),D=x[0],H=x[1],P=S(c.useState(!1),2),I=P[0],k=P[1],N={props:f,state:{visible:m,position:E,className:D},context:{right:"right"===E,left:"left"===E,top:"top"===E,bottom:"bottom"===E}},C=T.setMetaData(N),A=C.ptm,L=C.cx,R=C.sx;n.useHandleStyle(T.css.styles,C.isUnstyled,{name:"tooltip"}),o.useGlobalOnEscapeKey({callback:function(){ut()},when:f.closeOnEscape,priority:[o.ESC_KEY_HANDLING_PRIORITIES.TOOLTIP,0]});var U=c.useRef(null),M=c.useRef(null),Z=c.useRef(null),_=c.useRef(null),W=c.useRef(!0),B=c.useRef({}),z=c.useRef(null),F=S(o.useResizeListener({listener:function(t){!a.DomHandler.isTouchDevice()&&ut(t)}}),2),Y=F[0],G=F[1],K=S(o.useOverlayScrollListener({target:Z.current,listener:function(t){ut(t)},when:m}),2),X=K[0],$=K[1],q=function(t){return tt(t,"mousetrack")||f.mouseTrack},J=function(t){return"true"===tt(t,"disabled")||et(t,"disabled")||f.disabled},Q=function(t){return tt(t,"showondisabled")||f.showOnDisabled},V=function(){return tt(Z.current,"autohide")||f.autoHide},tt=function(t,e){return et(t,"data-pr-".concat(e))?t.getAttribute("data-pr-".concat(e)):null},et=function(t,e){return t&&t.hasAttribute(e)},rt=function(t){var e=[tt(t,"showevent")||f.showEvent],r=[tt(t,"hideevent")||f.hideEvent];if(q(t))e=["mousemove"],r=["mouseleave"];else{var n=tt(t,"event")||f.event;"focus"===n&&(e=["focus"],r=["blur"]),"both"===n&&(e=["focus","mouseenter"],r=I?["blur"]:["mouseleave","blur"])}return{showEvents:e,hideEvents:r}},nt=function(t){return tt(t,"position")||E},ot=function(t){return{top:tt(t,"mousetracktop")||f.mouseTrackTop,left:tt(t,"mousetrackleft")||f.mouseTrackLeft}},it=function(t,e){if(M.current){var r=tt(t,"tooltip")||f.content;r?(M.current.innerHTML="",M.current.appendChild(document.createTextNode(r)),e()):f.children&&e()}},at=function(t){it(Z.current,(function(){var e=z.current,r=e.pageX,n=e.pageY;f.autoZIndex&&!a.ZIndexUtils.get(U.current)&&a.ZIndexUtils.set("tooltip",U.current,u&&u.autoZIndex||s.default.autoZIndex,f.baseZIndex||u&&u.zIndex.tooltip||s.default.zIndex.tooltip),U.current.style.left="",U.current.style.top="",V()&&(U.current.style.pointerEvents="none");var o=q(Z.current)||"mouse"===t;(o&&!_.current||o)&&(_.current={width:a.DomHandler.getOuterWidth(U.current),height:a.DomHandler.getOuterHeight(U.current)}),ct(Z.current,{x:r,y:n},t)}))},lt=function(t){t.type&&"focus"===t.type&&k(!0),Z.current=t.currentTarget;var e,r=J(Z.current);(e=Q(Z.current)&&r?Z.current.firstChild:Z.current,!(f.content||tt(e,"tooltip")||f.children))||r||(z.current=t,m?mt("updateDelay",at):ht(f.onBeforeShow,{originalEvent:t,target:Z.current})&&mt("showDelay",(function(){h(!0),ht(f.onShow,{originalEvent:t,target:Z.current})})))},ut=function(t){(t&&"blur"===t.type&&k(!1),vt(),m)&&(ht(f.onBeforeHide,{originalEvent:t,target:Z.current})&&mt("hideDelay",(function(){(V()||!1!==W.current)&&(a.ZIndexUtils.clear(U.current),a.DomHandler.removeClass(U.current,"p-tooltip-active"),h(!1),ht(f.onHide,{originalEvent:t,target:Z.current}))})))},ct=function(t,e,r){var n=0,o=0,i=r||E;if((q(t)||"mouse"==i)&&e){var l={width:a.DomHandler.getOuterWidth(U.current),height:a.DomHandler.getOuterHeight(U.current)};n=e.x,o=e.y;var u=ot(t),c=u.top,s=u.left;switch(i){case"left":n-=l.width+s,o-=l.height/2-c;break;case"right":case"mouse":n+=s,o-=l.height/2-c;break;case"top":n-=l.width/2-s,o-=l.height+c;break;case"bottom":n-=l.width/2-s,o+=c}n<=0||_.current.width>l.width?(U.current.style.left="0px",U.current.style.right=window.innerWidth-l.width-n+"px"):(U.current.style.right="",U.current.style.left=n+"px"),U.current.style.top=o+"px",a.DomHandler.addClass(U.current,"p-tooltip-active")}else{var p=a.DomHandler.findCollisionPosition(i),d=tt(t,"my")||f.my||p.my,m=tt(t,"at")||f.at||p.at;U.current.style.padding="0px",a.DomHandler.flipfitCollision(U.current,t,d,m,(function(t){var e=t.at,r=e.x,n=f.at?"center"!==r&&r!==t.my.x?r:e.y:t.at["".concat(p.axis)];U.current.style.padding="",O(n),st(n),a.DomHandler.addClass(U.current,"p-tooltip-active")}))}},st=function(t){if(U.current){var e=getComputedStyle(U.current);"left"===t?U.current.style.left=parseFloat(e.left)-2*parseFloat(e.paddingLeft)+"px":"top"===t&&(U.current.style.top=parseFloat(e.top)-2*parseFloat(e.paddingTop)+"px")}},pt=function(t){V()||(W.current=!0,ut(t))},ft=function(t){if(t){var e=rt(t),r=e.showEvents,n=e.hideEvents,o=yt(t);r.forEach((function(t){return null==o?void 0:o.addEventListener(t,lt)})),n.forEach((function(t){return null==o?void 0:o.addEventListener(t,ut)}))}},dt=function(t){if(t){var e=rt(t),r=e.showEvents,n=e.hideEvents,o=yt(t);r.forEach((function(t){return null==o?void 0:o.removeEventListener(t,lt)})),n.forEach((function(t){return null==o?void 0:o.removeEventListener(t,ut)}))}},mt=function(t,e){vt();var r=tt(Z.current,t.toLowerCase())||f[t];r?B.current["".concat(t)]=setTimeout((function(){return e()}),r):e()},ht=function(t){if(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.apply(void 0,r);return void 0===o&&(o=!0),o}return!0},vt=function(){Object.values(B.current).forEach((function(t){return clearTimeout(t)}))},yt=function(t){if(t){if(Q(t)){if(!t.hasWrapper){var e=document.createElement("div");return"INPUT"===t.nodeName?a.DomHandler.addMultipleClasses(e,"p-tooltip-target-wrapper p-inputwrapper"):a.DomHandler.addClass(e,"p-tooltip-target-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t),t.hasWrapper=!0,e}return t.parentElement}var r;return t.hasWrapper&&((r=t.parentElement).replaceWith.apply(r,y(n=t.parentElement.childNodes)||b(n)||g(n)||w()),delete t.hasWrapper),t}var n;return null},bt=function(t){wt(t),gt(t)},gt=function(t){Et(t||f.target,ft)},wt=function(t){Et(t||f.target,dt)},Et=function(t,e){if(t=a.ObjectUtils.getRefElement(t))if(a.DomHandler.isElement(t))e(t);else{var r=function(t){a.DomHandler.find(document,t).forEach((function(t){e(t)}))};t instanceof Array?t.forEach((function(t){r(t)})):r(t)}};o.useMountEffect((function(){m&&Z.current&&J(Z.current)&&ut()})),o.useUpdateEffect((function(){return gt(),function(){wt()}}),[lt,ut,f.target]),o.useUpdateEffect((function(){if(m){var t=nt(Z.current),e=tt(Z.current,"classname");O(t),H(e),at(t),Y(),X()}else O(f.position||"right"),H(""),Z.current=null,_.current=null,W.current=!0;return function(){G(),$()}}),[m]),o.useUpdateEffect((function(){var t=nt(Z.current);m&&"mouse"!==t&&mt("updateDelay",(function(){it(Z.current,(function(){ct(Z.current)}))}))}),[f.content]),o.useUnmountEffect((function(){ut(),a.ZIndexUtils.clear(U.current)})),c.useImperativeHandle(e,(function(){return{props:f,updateTargetEvents:bt,loadTargetEvents:gt,unloadTargetEvents:wt,show:lt,hide:ut,getElement:function(){return U.current},getTarget:function(){return Z.current}}}));var Ot,xt,St,Tt,Dt;if(m){var jt=(Ot=Z.current,xt=!(f.content||tt(Ot,"tooltip")),St=l({id:f.id,className:a.classNames(f.className,L("root",{positionState:E,classNameState:D})),style:f.style,role:"tooltip","aria-hidden":m,onMouseEnter:function(t){V()||(W.current=!1)},onMouseLeave:function(t){return pt(t)}},T.getOtherProps(f),A("root")),Tt=l({className:L("arrow"),style:R("arrow",j({},N))},A("arrow")),Dt=l({className:L("text")},A("text")),c.createElement("div",p({ref:U},St),c.createElement("div",Tt),c.createElement("div",p({ref:M},Dt),xt&&f.children)));return c.createElement(i.Portal,{element:jt,appendTo:f.appendTo,visible:!0})}return null})));return H.displayName="Tooltip",t.Tooltip=H,Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.portal,primereact.utils);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.tooltip=function(t,e,r,n,o,i,a){"use strict";function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function u(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var c=u(e),s=l(r);function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},p.apply(this,arguments)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function m(t){var e=d(t,"string");return"symbol"===f(e)?e:String(e)}function h(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function y(t){if(Array.isArray(t))return v(t)}function b(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function g(t,e){if(t){if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(t){if(Array.isArray(t))return t}function O(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(t,e){return E(t)||O(t,e)||g(t,e)||x()}var T=n.ComponentBase.extend({defaultProps:{__TYPE:"Tooltip",appendTo:null,at:null,autoHide:!0,autoZIndex:!0,baseZIndex:0,className:null,closeOnEscape:!1,content:null,disabled:!1,event:null,hideDelay:0,hideEvent:"mouseleave",id:null,mouseTrack:!1,mouseTrackLeft:5,mouseTrackTop:5,my:null,onBeforeHide:null,onBeforeShow:null,onHide:null,onShow:null,position:"right",showDelay:0,showEvent:"mouseenter",showOnDisabled:!1,style:null,target:null,updateDelay:0,children:void 0},css:{classes:{root:function(t){var e=t.classNameState;return a.classNames("p-tooltip p-component",h({},"p-tooltip-".concat(t.positionState),!0),e)},arrow:"p-tooltip-arrow",text:"p-tooltip-text"},styles:"\n@layer primereact {\n .p-tooltip {\n position: absolute;\n padding: .25em .5rem;\n /* #3687: Tooltip prevent scrollbar flickering */\n top: -9999px;\n left: -9999px;\n }\n \n .p-tooltip.p-tooltip-right,\n .p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n }\n \n .p-tooltip.p-tooltip-top,\n .p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n }\n \n .p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n }\n \n .p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n \n .p-tooltip-right .p-tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n }\n \n .p-tooltip-left .p-tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n }\n \n .p-tooltip.p-tooltip-top {\n padding: .25em 0;\n }\n \n .p-tooltip-top .p-tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n }\n \n .p-tooltip-bottom .p-tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n }\n\n .p-tooltip-target-wrapper {\n display: inline-flex;\n }\n}\n",inlineStyles:{arrow:function(t){var e=t.context;return{top:e.bottom?"0":e.right||e.left||!e.right&&!e.left&&!e.top&&!e.bottom?"50%":null,bottom:e.top?"0":null,left:!e.right&&(e.right||e.left||e.top||e.bottom)?e.top||e.bottom?"50%":null:"0",right:e.left?"0":null}}}}});function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function D(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var H=c.memo(c.forwardRef((function(t,e){var l=o.useMergeProps(),u=c.useContext(r.PrimeReactContext),f=T.getProps(t,u),d=S(c.useState(!1),2),m=d[0],h=d[1],v=S(c.useState(f.position||"right"),2),E=v[0],O=v[1],x=S(c.useState(""),2),j=x[0],H=x[1],P=S(c.useState(!1),2),I=P[0],k=P[1],N=m&&f.closeOnEscape,C=o.useDisplayOrder("tooltip",N),A={props:f,state:{visible:m,position:E,className:j},context:{right:"right"===E,left:"left"===E,top:"top"===E,bottom:"bottom"===E}},L=T.setMetaData(A),R=L.ptm,U=L.cx,M=L.sx;n.useHandleStyle(T.css.styles,L.isUnstyled,{name:"tooltip"}),o.useGlobalOnEscapeKey({callback:function(){st()},when:N,priority:[o.ESC_KEY_HANDLING_PRIORITIES.TOOLTIP,C]});var Z=c.useRef(null),_=c.useRef(null),W=c.useRef(null),B=c.useRef(null),z=c.useRef(!0),F=c.useRef({}),Y=c.useRef(null),G=S(o.useResizeListener({listener:function(t){!a.DomHandler.isTouchDevice()&&st(t)}}),2),K=G[0],X=G[1],$=S(o.useOverlayScrollListener({target:W.current,listener:function(t){st(t)},when:m}),2),q=$[0],J=$[1],Q=function(t){return rt(t,"mousetrack")||f.mouseTrack},V=function(t){return"true"===rt(t,"disabled")||nt(t,"disabled")||f.disabled},tt=function(t){return rt(t,"showondisabled")||f.showOnDisabled},et=function(){return rt(W.current,"autohide")||f.autoHide},rt=function(t,e){return nt(t,"data-pr-".concat(e))?t.getAttribute("data-pr-".concat(e)):null},nt=function(t,e){return t&&t.hasAttribute(e)},ot=function(t){var e=[rt(t,"showevent")||f.showEvent],r=[rt(t,"hideevent")||f.hideEvent];if(Q(t))e=["mousemove"],r=["mouseleave"];else{var n=rt(t,"event")||f.event;"focus"===n&&(e=["focus"],r=["blur"]),"both"===n&&(e=["focus","mouseenter"],r=I?["blur"]:["mouseleave","blur"])}return{showEvents:e,hideEvents:r}},it=function(t){return rt(t,"position")||E},at=function(t){return{top:rt(t,"mousetracktop")||f.mouseTrackTop,left:rt(t,"mousetrackleft")||f.mouseTrackLeft}},lt=function(t,e){if(_.current){var r=rt(t,"tooltip")||f.content;r?(_.current.innerHTML="",_.current.appendChild(document.createTextNode(r)),e()):f.children&&e()}},ut=function(t){lt(W.current,(function(){var e=Y.current,r=e.pageX,n=e.pageY;f.autoZIndex&&!a.ZIndexUtils.get(Z.current)&&a.ZIndexUtils.set("tooltip",Z.current,u&&u.autoZIndex||s.default.autoZIndex,f.baseZIndex||u&&u.zIndex.tooltip||s.default.zIndex.tooltip),Z.current.style.left="",Z.current.style.top="",et()&&(Z.current.style.pointerEvents="none");var o=Q(W.current)||"mouse"===t;(o&&!B.current||o)&&(B.current={width:a.DomHandler.getOuterWidth(Z.current),height:a.DomHandler.getOuterHeight(Z.current)}),pt(W.current,{x:r,y:n},t)}))},ct=function(t){t.type&&"focus"===t.type&&k(!0),W.current=t.currentTarget;var e,r=V(W.current);(e=tt(W.current)&&r?W.current.firstChild:W.current,!(f.content||rt(e,"tooltip")||f.children))||r||(Y.current=t,m?vt("updateDelay",ut):yt(f.onBeforeShow,{originalEvent:t,target:W.current})&&vt("showDelay",(function(){h(!0),yt(f.onShow,{originalEvent:t,target:W.current})})))},st=function(t){(t&&"blur"===t.type&&k(!1),bt(),m)&&(yt(f.onBeforeHide,{originalEvent:t,target:W.current})&&vt("hideDelay",(function(){(et()||!1!==z.current)&&(a.ZIndexUtils.clear(Z.current),a.DomHandler.removeClass(Z.current,"p-tooltip-active"),h(!1),yt(f.onHide,{originalEvent:t,target:W.current}))})))},pt=function(t,e,r){var n=0,o=0,i=r||E;if((Q(t)||"mouse"==i)&&e){var l={width:a.DomHandler.getOuterWidth(Z.current),height:a.DomHandler.getOuterHeight(Z.current)};n=e.x,o=e.y;var u=at(t),c=u.top,s=u.left;switch(i){case"left":n-=l.width+s,o-=l.height/2-c;break;case"right":case"mouse":n+=s,o-=l.height/2-c;break;case"top":n-=l.width/2-s,o-=l.height+c;break;case"bottom":n-=l.width/2-s,o+=c}n<=0||B.current.width>l.width?(Z.current.style.left="0px",Z.current.style.right=window.innerWidth-l.width-n+"px"):(Z.current.style.right="",Z.current.style.left=n+"px"),Z.current.style.top=o+"px",a.DomHandler.addClass(Z.current,"p-tooltip-active")}else{var p=a.DomHandler.findCollisionPosition(i),d=rt(t,"my")||f.my||p.my,m=rt(t,"at")||f.at||p.at;Z.current.style.padding="0px",a.DomHandler.flipfitCollision(Z.current,t,d,m,(function(t){var e=t.at,r=e.x,n=f.at?"center"!==r&&r!==t.my.x?r:e.y:t.at["".concat(p.axis)];Z.current.style.padding="",O(n),ft(n),a.DomHandler.addClass(Z.current,"p-tooltip-active")}))}},ft=function(t){if(Z.current){var e=getComputedStyle(Z.current);"left"===t?Z.current.style.left=parseFloat(e.left)-2*parseFloat(e.paddingLeft)+"px":"top"===t&&(Z.current.style.top=parseFloat(e.top)-2*parseFloat(e.paddingTop)+"px")}},dt=function(t){et()||(z.current=!0,st(t))},mt=function(t){if(t){var e=ot(t),r=e.showEvents,n=e.hideEvents,o=gt(t);r.forEach((function(t){return null==o?void 0:o.addEventListener(t,ct)})),n.forEach((function(t){return null==o?void 0:o.addEventListener(t,st)}))}},ht=function(t){if(t){var e=ot(t),r=e.showEvents,n=e.hideEvents,o=gt(t);r.forEach((function(t){return null==o?void 0:o.removeEventListener(t,ct)})),n.forEach((function(t){return null==o?void 0:o.removeEventListener(t,st)}))}},vt=function(t,e){bt();var r=rt(W.current,t.toLowerCase())||f[t];r?F.current["".concat(t)]=setTimeout((function(){return e()}),r):e()},yt=function(t){if(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=t.apply(void 0,r);return void 0===o&&(o=!0),o}return!0},bt=function(){Object.values(F.current).forEach((function(t){return clearTimeout(t)}))},gt=function(t){if(t){if(tt(t)){if(!t.hasWrapper){var e=document.createElement("div");return"INPUT"===t.nodeName?a.DomHandler.addMultipleClasses(e,"p-tooltip-target-wrapper p-inputwrapper"):a.DomHandler.addClass(e,"p-tooltip-target-wrapper"),t.parentNode.insertBefore(e,t),e.appendChild(t),t.hasWrapper=!0,e}return t.parentElement}var r;return t.hasWrapper&&((r=t.parentElement).replaceWith.apply(r,y(n=t.parentElement.childNodes)||b(n)||g(n)||w()),delete t.hasWrapper),t}var n;return null},wt=function(t){Ot(t),Et(t)},Et=function(t){xt(t||f.target,mt)},Ot=function(t){xt(t||f.target,ht)},xt=function(t,e){if(t=a.ObjectUtils.getRefElement(t))if(a.DomHandler.isElement(t))e(t);else{var r=function(t){a.DomHandler.find(document,t).forEach((function(t){e(t)}))};t instanceof Array?t.forEach((function(t){r(t)})):r(t)}};o.useMountEffect((function(){m&&W.current&&V(W.current)&&st()})),o.useUpdateEffect((function(){return Et(),function(){Ot()}}),[ct,st,f.target]),o.useUpdateEffect((function(){if(m){var t=it(W.current),e=rt(W.current,"classname");O(t),H(e),ut(t),K(),q()}else O(f.position||"right"),H(""),W.current=null,B.current=null,z.current=!0;return function(){X(),J()}}),[m]),o.useUpdateEffect((function(){var t=it(W.current);m&&"mouse"!==t&&vt("updateDelay",(function(){lt(W.current,(function(){pt(W.current)}))}))}),[f.content]),o.useUnmountEffect((function(){st(),a.ZIndexUtils.clear(Z.current)})),c.useImperativeHandle(e,(function(){return{props:f,updateTargetEvents:wt,loadTargetEvents:Et,unloadTargetEvents:Ot,show:ct,hide:st,getElement:function(){return Z.current},getTarget:function(){return W.current}}}));var St,Tt,jt,Dt,Ht;if(m){var Pt=(St=W.current,Tt=!(f.content||rt(St,"tooltip")),jt=l({id:f.id,className:a.classNames(f.className,U("root",{positionState:E,classNameState:j})),style:f.style,role:"tooltip","aria-hidden":m,onMouseEnter:function(t){et()||(z.current=!1)},onMouseLeave:function(t){return dt(t)}},T.getOtherProps(f),R("root")),Dt=l({className:U("arrow"),style:M("arrow",D({},A))},R("arrow")),Ht=l({className:U("text")},R("text")),c.createElement("div",p({ref:Z},jt),c.createElement("div",Dt),c.createElement("div",p({ref:_},Ht),Tt&&f.children)));return c.createElement(i.Portal,{element:Pt,appendTo:f.appendTo,visible:!0})}return null})));return H.displayName="Tooltip",t.Tooltip=H,Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.portal,primereact.utils);
|
package/tree/tree.cjs.js
CHANGED
|
@@ -38,43 +38,49 @@ function _interopNamespace(e) {
|
|
|
38
38
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
39
39
|
|
|
40
40
|
function _extends() {
|
|
41
|
-
|
|
42
|
-
for (var
|
|
43
|
-
var
|
|
44
|
-
for (var
|
|
41
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
42
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
43
|
+
var source = arguments[i];
|
|
44
|
+
for (var key in source) {
|
|
45
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
46
|
+
target[key] = source[key];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
|
-
return
|
|
47
|
-
}
|
|
50
|
+
return target;
|
|
51
|
+
};
|
|
52
|
+
return _extends.apply(this, arguments);
|
|
48
53
|
}
|
|
49
54
|
|
|
50
|
-
function _arrayLikeToArray$2(
|
|
51
|
-
(
|
|
52
|
-
for (var
|
|
53
|
-
return
|
|
55
|
+
function _arrayLikeToArray$2(arr, len) {
|
|
56
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
57
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
58
|
+
return arr2;
|
|
54
59
|
}
|
|
55
60
|
|
|
56
|
-
function _arrayWithoutHoles(
|
|
57
|
-
if (Array.isArray(
|
|
61
|
+
function _arrayWithoutHoles(arr) {
|
|
62
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$2(arr);
|
|
58
63
|
}
|
|
59
64
|
|
|
60
|
-
function _iterableToArray(
|
|
61
|
-
if (
|
|
65
|
+
function _iterableToArray(iter) {
|
|
66
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
function _unsupportedIterableToArray$2(
|
|
65
|
-
if (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
function _unsupportedIterableToArray$2(o, minLen) {
|
|
70
|
+
if (!o) return;
|
|
71
|
+
if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
|
|
72
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
73
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
74
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
75
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
function _nonIterableSpread() {
|
|
73
79
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
74
80
|
}
|
|
75
81
|
|
|
76
|
-
function _toConsumableArray(
|
|
77
|
-
return _arrayWithoutHoles(
|
|
82
|
+
function _toConsumableArray(arr) {
|
|
83
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread();
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
function _typeof(o) {
|
|
@@ -87,33 +93,39 @@ function _typeof(o) {
|
|
|
87
93
|
}, _typeof(o);
|
|
88
94
|
}
|
|
89
95
|
|
|
90
|
-
function
|
|
91
|
-
if ("object"
|
|
92
|
-
var
|
|
93
|
-
if (
|
|
94
|
-
var
|
|
95
|
-
if ("object"
|
|
96
|
+
function _toPrimitive(input, hint) {
|
|
97
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
98
|
+
var prim = input[Symbol.toPrimitive];
|
|
99
|
+
if (prim !== undefined) {
|
|
100
|
+
var res = prim.call(input, hint || "default");
|
|
101
|
+
if (_typeof(res) !== "object") return res;
|
|
96
102
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
97
103
|
}
|
|
98
|
-
return ("string"
|
|
104
|
+
return (hint === "string" ? String : Number)(input);
|
|
99
105
|
}
|
|
100
106
|
|
|
101
|
-
function
|
|
102
|
-
var
|
|
103
|
-
return "symbol"
|
|
107
|
+
function _toPropertyKey(arg) {
|
|
108
|
+
var key = _toPrimitive(arg, "string");
|
|
109
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
104
110
|
}
|
|
105
111
|
|
|
106
|
-
function _defineProperty(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
function _defineProperty(obj, key, value) {
|
|
113
|
+
key = _toPropertyKey(key);
|
|
114
|
+
if (key in obj) {
|
|
115
|
+
Object.defineProperty(obj, key, {
|
|
116
|
+
value: value,
|
|
117
|
+
enumerable: true,
|
|
118
|
+
configurable: true,
|
|
119
|
+
writable: true
|
|
120
|
+
});
|
|
121
|
+
} else {
|
|
122
|
+
obj[key] = value;
|
|
123
|
+
}
|
|
124
|
+
return obj;
|
|
113
125
|
}
|
|
114
126
|
|
|
115
|
-
function _arrayWithHoles(
|
|
116
|
-
if (Array.isArray(
|
|
127
|
+
function _arrayWithHoles(arr) {
|
|
128
|
+
if (Array.isArray(arr)) return arr;
|
|
117
129
|
}
|
|
118
130
|
|
|
119
131
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -148,8 +160,8 @@ function _nonIterableRest() {
|
|
|
148
160
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
149
161
|
}
|
|
150
162
|
|
|
151
|
-
function _slicedToArray(
|
|
152
|
-
return _arrayWithHoles(
|
|
163
|
+
function _slicedToArray(arr, i) {
|
|
164
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest();
|
|
153
165
|
}
|
|
154
166
|
|
|
155
167
|
/* eslint-disable */
|
|
@@ -390,15 +402,15 @@ var Checkbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
390
402
|
utils.DomHandler.focus(inputRef.current);
|
|
391
403
|
}
|
|
392
404
|
};
|
|
393
|
-
var _onFocus = function onFocus() {
|
|
405
|
+
var _onFocus = function onFocus(event) {
|
|
394
406
|
var _props$onFocus;
|
|
395
407
|
setFocusedState(true);
|
|
396
|
-
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props);
|
|
408
|
+
props === null || props === void 0 || (_props$onFocus = props.onFocus) === null || _props$onFocus === void 0 || _props$onFocus.call(props, event);
|
|
397
409
|
};
|
|
398
|
-
var _onBlur = function onBlur() {
|
|
410
|
+
var _onBlur = function onBlur(event) {
|
|
399
411
|
var _props$onBlur;
|
|
400
412
|
setFocusedState(false);
|
|
401
|
-
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props);
|
|
413
|
+
props === null || props === void 0 || (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, event);
|
|
402
414
|
};
|
|
403
415
|
React__namespace.useImperativeHandle(ref, function () {
|
|
404
416
|
return {
|
|
@@ -449,10 +461,10 @@ var Checkbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
449
461
|
name: props.name,
|
|
450
462
|
tabIndex: props.tabIndex,
|
|
451
463
|
onFocus: function onFocus(e) {
|
|
452
|
-
return _onFocus();
|
|
464
|
+
return _onFocus(e);
|
|
453
465
|
},
|
|
454
466
|
onBlur: function onBlur(e) {
|
|
455
|
-
return _onBlur();
|
|
467
|
+
return _onBlur(e);
|
|
456
468
|
},
|
|
457
469
|
onChange: function onChange(e) {
|
|
458
470
|
return _onChange(e);
|
|
@@ -495,9 +507,9 @@ var Checkbox = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.
|
|
|
495
507
|
}));
|
|
496
508
|
Checkbox.displayName = 'Checkbox';
|
|
497
509
|
|
|
498
|
-
function _createForOfIteratorHelper$1(
|
|
499
|
-
function _unsupportedIterableToArray$1(
|
|
500
|
-
function _arrayLikeToArray$1(
|
|
510
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
511
|
+
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
512
|
+
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
501
513
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
502
514
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
503
515
|
var UITreeNode = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
@@ -1304,9 +1316,9 @@ UITreeNode.displayName = 'UITreeNode';
|
|
|
1304
1316
|
|
|
1305
1317
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1306
1318
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1307
|
-
function _createForOfIteratorHelper(
|
|
1308
|
-
function _unsupportedIterableToArray(
|
|
1309
|
-
function _arrayLikeToArray(
|
|
1319
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
1320
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
1321
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
1310
1322
|
var Tree = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
1311
1323
|
var mergeProps = hooks.useMergeProps();
|
|
1312
1324
|
var context = React__namespace.useContext(api.PrimeReactContext);
|