primereact 10.0.0 → 10.0.2
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/README.md +1 -1
- package/accordion/accordion.esm.js +0 -1
- package/api/api.esm.js +0 -1
- package/autocomplete/autocomplete.esm.js +8 -7
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/avatar/avatar.esm.js +0 -1
- package/avatargroup/avatargroup.esm.js +0 -1
- package/badge/badge.esm.js +0 -1
- package/blockui/blockui.esm.js +3 -1
- package/blockui/blockui.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +0 -1
- package/button/button.esm.js +0 -1
- package/calendar/calendar.esm.js +2 -1
- package/calendar/calendar.esm.min.js +1 -1
- package/card/card.esm.js +0 -1
- package/carousel/carousel.esm.js +7 -8
- package/carousel/carousel.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +0 -1
- package/chart/chart.esm.js +0 -1
- package/checkbox/checkbox.esm.js +0 -1
- package/chip/chip.esm.js +0 -1
- package/chips/chips.esm.js +0 -1
- package/colorpicker/colorpicker.esm.js +0 -1
- package/column/column.esm.js +0 -1
- package/columngroup/columngroup.esm.js +0 -1
- package/componentbase/componentbase.cjs.js +12 -7
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +23 -13
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +12 -7
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +0 -1
- package/confirmpopup/confirmpopup.esm.js +0 -1
- package/contextmenu/contextmenu.esm.js +0 -1
- package/core/core.js +12 -7
- package/core/core.min.js +1 -1
- package/csstransition/csstransition.esm.js +0 -1
- package/datascroller/datascroller.esm.js +0 -1
- package/datatable/datatable.esm.js +0 -1
- package/dataview/dataview.esm.js +0 -1
- package/deferredcontent/deferredcontent.esm.js +0 -1
- package/dialog/dialog.esm.js +2 -1
- package/dialog/dialog.esm.min.js +1 -1
- package/divider/divider.esm.js +0 -1
- package/dock/dock.esm.js +0 -1
- package/dropdown/dropdown.esm.js +0 -1
- package/editor/editor.esm.js +0 -1
- package/fieldset/fieldset.esm.js +0 -1
- package/fileupload/fileupload.esm.js +0 -1
- package/galleria/galleria.esm.js +11 -7
- package/galleria/galleria.esm.min.js +1 -1
- package/hooks/hooks.esm.js +0 -6
- package/iconbase/iconbase.esm.js +0 -1
- package/icons/angledoubledown/index.esm.js +0 -1
- package/icons/angledoubleleft/index.esm.js +0 -1
- package/icons/angledoubleright/index.esm.js +0 -1
- package/icons/angledoubleup/index.esm.js +0 -1
- package/icons/angledown/index.esm.js +0 -1
- package/icons/angleleft/index.esm.js +0 -1
- package/icons/angleright/index.esm.js +0 -1
- package/icons/angleup/index.esm.js +0 -1
- package/icons/arrowdown/index.esm.js +0 -1
- package/icons/arrowup/index.esm.js +0 -1
- package/icons/ban/index.esm.js +0 -1
- package/icons/bars/index.esm.js +0 -1
- package/icons/calendar/index.esm.js +0 -1
- package/icons/check/index.esm.js +0 -1
- package/icons/chevrondown/index.esm.js +0 -1
- package/icons/chevronleft/index.esm.js +0 -1
- package/icons/chevronright/index.esm.js +0 -1
- package/icons/chevronup/index.esm.js +0 -1
- package/icons/download/index.esm.js +0 -1
- package/icons/exclamationtriangle/index.esm.js +0 -1
- package/icons/eye/index.esm.js +0 -1
- package/icons/eyeslash/index.esm.js +0 -1
- package/icons/filter/index.esm.js +0 -1
- package/icons/filterslash/index.esm.js +0 -1
- package/icons/infocircle/index.esm.js +0 -1
- package/icons/minus/index.esm.js +0 -1
- package/icons/pencil/index.esm.js +0 -1
- package/icons/plus/index.esm.js +0 -1
- package/icons/refresh/index.esm.js +0 -1
- package/icons/search/index.esm.js +0 -1
- package/icons/searchminus/index.esm.js +0 -1
- package/icons/searchplus/index.esm.js +0 -1
- package/icons/sortalt/index.esm.js +0 -1
- package/icons/sortamountdown/index.esm.js +0 -1
- package/icons/sortamountupalt/index.esm.js +0 -1
- package/icons/spinner/index.esm.js +0 -1
- package/icons/star/index.esm.js +0 -1
- package/icons/starfill/index.esm.js +0 -1
- package/icons/thlarge/index.esm.js +0 -1
- package/icons/times/index.esm.js +0 -1
- package/icons/timescircle/index.esm.js +0 -1
- package/icons/trash/index.esm.js +0 -1
- package/icons/undo/index.esm.js +0 -1
- package/icons/upload/index.esm.js +0 -1
- package/icons/windowmaximize/index.esm.js +0 -1
- package/icons/windowminimize/index.esm.js +0 -1
- package/image/image.esm.js +2 -1
- package/image/image.esm.min.js +1 -1
- package/inplace/inplace.esm.js +0 -1
- package/inputmask/inputmask.esm.js +0 -1
- package/inputnumber/inputnumber.esm.js +0 -1
- package/inputswitch/inputswitch.esm.js +0 -1
- package/inputtext/inputtext.esm.js +0 -1
- package/inputtextarea/inputtextarea.esm.js +0 -1
- package/keyfilter/keyfilter.esm.js +0 -1
- package/knob/knob.esm.js +0 -1
- package/listbox/listbox.esm.js +0 -1
- package/megamenu/megamenu.esm.js +0 -1
- package/mention/mention.esm.js +0 -1
- package/menu/menu.esm.js +0 -1
- package/menubar/menubar.esm.js +0 -1
- package/message/message.esm.js +0 -1
- package/messages/messages.esm.js +1 -2
- package/messages/messages.esm.min.js +1 -1
- package/multiselect/multiselect.esm.js +0 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +0 -1
- package/orderlist/orderlist.esm.js +9 -5
- package/orderlist/orderlist.esm.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +0 -1
- package/overlaypanel/overlaypanel.esm.js +0 -1
- package/overlayservice/overlayservice.esm.js +0 -1
- package/package.json +2 -2
- package/paginator/paginator.esm.js +0 -1
- package/panel/panel.esm.js +0 -1
- package/panelmenu/panelmenu.esm.js +0 -1
- package/passthrough/index.esm.js +0 -1
- package/passthrough/tailwind/index.cjs.js +2 -4
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +149 -148
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +2 -4
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.esm.js +0 -1
- package/picklist/picklist.esm.js +0 -1
- package/portal/portal.esm.js +0 -1
- package/primereact.all.cjs.js +12 -7
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +70 -42
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +12 -7
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.esm.js +0 -1
- package/progressspinner/progressspinner.esm.js +0 -1
- package/radiobutton/radiobutton.esm.js +0 -1
- package/rating/rating.esm.js +0 -1
- package/ripple/ripple.esm.js +0 -1
- package/row/row.esm.js +0 -1
- package/scrollpanel/scrollpanel.esm.js +0 -1
- package/scrolltop/scrolltop.esm.js +0 -1
- package/selectbutton/selectbutton.esm.js +0 -1
- package/sidebar/sidebar.esm.js +2 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/skeleton/skeleton.esm.js +0 -1
- package/slidemenu/slidemenu.esm.js +0 -1
- package/slider/slider.esm.js +0 -1
- package/speeddial/speeddial.esm.js +0 -1
- package/splitbutton/splitbutton.esm.js +0 -1
- package/splitter/splitter.esm.js +0 -1
- package/steps/steps.esm.js +0 -1
- package/styleclass/styleclass.esm.js +0 -1
- package/tabmenu/tabmenu.esm.js +0 -1
- package/tabview/tabview.esm.js +0 -1
- package/tag/tag.esm.js +0 -1
- package/terminal/terminal.esm.js +0 -1
- package/terminalservice/terminalservice.esm.js +0 -1
- package/tieredmenu/tieredmenu.esm.js +0 -1
- package/timeline/timeline.esm.js +0 -1
- package/toast/toast.esm.js +0 -1
- package/togglebutton/togglebutton.esm.js +0 -1
- package/toolbar/toolbar.esm.js +0 -1
- package/tooltip/tooltip.esm.js +0 -1
- package/tree/tree.esm.js +0 -1
- package/treeselect/treeselect.esm.js +0 -1
- package/treetable/treetable.esm.js +0 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +0 -1
- package/utils/utils.esm.js +0 -1
- package/virtualscroller/virtualscroller.esm.js +0 -1
- package/web-types.json +1 -1
- package/accordion/accordion.esm.min.mjs +0 -1
- package/accordion/accordion.esm.mjs +0 -420
- package/api/api.esm.min.mjs +0 -1
- package/api/api.esm.mjs +0 -943
- package/autocomplete/autocomplete.esm.min.mjs +0 -1
- package/autocomplete/autocomplete.esm.mjs +0 -1128
- package/avatar/avatar.esm.min.mjs +0 -1
- package/avatar/avatar.esm.mjs +0 -244
- package/avatargroup/avatargroup.esm.min.mjs +0 -1
- package/avatargroup/avatargroup.esm.mjs +0 -54
- package/badge/badge.esm.min.mjs +0 -1
- package/badge/badge.esm.mjs +0 -109
- package/blockui/blockui.esm.min.mjs +0 -1
- package/blockui/blockui.esm.mjs +0 -267
- package/breadcrumb/breadcrumb.esm.min.mjs +0 -1
- package/breadcrumb/breadcrumb.esm.mjs +0 -350
- package/button/button.esm.min.mjs +0 -1
- package/button/button.esm.mjs +0 -294
- package/calendar/calendar.esm.min.mjs +0 -1
- package/calendar/calendar.esm.mjs +0 -3474
- package/card/card.esm.min.mjs +0 -1
- package/card/card.esm.mjs +0 -97
- package/carousel/carousel.esm.min.mjs +0 -1
- package/carousel/carousel.esm.mjs +0 -800
- package/cascadeselect/cascadeselect.esm.min.mjs +0 -1
- package/cascadeselect/cascadeselect.esm.mjs +0 -818
- package/chart/chart.esm.min.mjs +0 -1
- package/chart/chart.esm.mjs +0 -154
- package/checkbox/checkbox.esm.min.mjs +0 -1
- package/checkbox/checkbox.esm.mjs +0 -356
- package/chip/chip.esm.min.mjs +0 -1
- package/chip/chip.esm.mjs +0 -247
- package/chips/chips.esm.min.mjs +0 -1
- package/chips/chips.esm.mjs +0 -500
- package/colorpicker/colorpicker.esm.min.mjs +0 -1
- package/colorpicker/colorpicker.esm.mjs +0 -787
- package/column/column.esm.min.mjs +0 -1
- package/column/column.esm.mjs +0 -7
- package/columngroup/columngroup.esm.min.mjs +0 -1
- package/columngroup/columngroup.esm.mjs +0 -5
- package/componentbase/componentbase.esm.min.mjs +0 -1
- package/componentbase/componentbase.esm.mjs +0 -328
- package/confirmdialog/confirmdialog.esm.min.mjs +0 -1
- package/confirmdialog/confirmdialog.esm.mjs +0 -375
- package/confirmpopup/confirmpopup.esm.min.mjs +0 -1
- package/confirmpopup/confirmpopup.esm.mjs +0 -609
- package/contextmenu/contextmenu.esm.min.mjs +0 -1
- package/contextmenu/contextmenu.esm.mjs +0 -663
- package/csstransition/csstransition.esm.min.mjs +0 -1
- package/csstransition/csstransition.esm.mjs +0 -137
- package/datascroller/datascroller.esm.min.mjs +0 -1
- package/datascroller/datascroller.esm.mjs +0 -319
- package/datatable/datatable.esm.min.mjs +0 -1
- package/datatable/datatable.esm.mjs +0 -6635
- package/dataview/dataview.esm.min.mjs +0 -1
- package/dataview/dataview.esm.mjs +0 -505
- package/deferredcontent/deferredcontent.esm.min.mjs +0 -1
- package/deferredcontent/deferredcontent.esm.mjs +0 -132
- package/dialog/dialog.esm.min.mjs +0 -1
- package/dialog/dialog.esm.mjs +0 -984
- package/divider/divider.esm.min.mjs +0 -1
- package/divider/divider.esm.mjs +0 -78
- package/dock/dock.esm.min.mjs +0 -1
- package/dock/dock.esm.mjs +0 -347
- package/dropdown/dropdown.esm.min.mjs +0 -1
- package/dropdown/dropdown.esm.mjs +0 -1379
- package/editor/editor.esm.min.mjs +0 -1
- package/editor/editor.esm.mjs +0 -337
- package/fieldset/fieldset.esm.min.mjs +0 -1
- package/fieldset/fieldset.esm.mjs +0 -269
- package/fileupload/fileupload.esm.min.mjs +0 -1
- package/fileupload/fileupload.esm.mjs +0 -1004
- package/galleria/galleria.esm.min.mjs +0 -1
- package/galleria/galleria.esm.mjs +0 -1094
- package/hooks/hooks.esm.min.mjs +0 -1
- package/hooks/hooks.esm.mjs +0 -1036
- package/iconbase/iconbase.esm.min.mjs +0 -1
- package/iconbase/iconbase.esm.mjs +0 -32
- package/icons/angledoubledown/index.esm.min.mjs +0 -1
- package/icons/angledoubledown/index.esm.mjs +0 -38
- package/icons/angledoubleleft/index.esm.min.mjs +0 -1
- package/icons/angledoubleleft/index.esm.mjs +0 -38
- package/icons/angledoubleright/index.esm.min.mjs +0 -1
- package/icons/angledoubleright/index.esm.mjs +0 -38
- package/icons/angledoubleup/index.esm.min.mjs +0 -1
- package/icons/angledoubleup/index.esm.mjs +0 -38
- package/icons/angledown/index.esm.min.mjs +0 -1
- package/icons/angledown/index.esm.mjs +0 -36
- package/icons/angleleft/index.esm.min.mjs +0 -1
- package/icons/angleleft/index.esm.mjs +0 -36
- package/icons/angleright/index.esm.min.mjs +0 -1
- package/icons/angleright/index.esm.mjs +0 -36
- package/icons/angleup/index.esm.min.mjs +0 -1
- package/icons/angleup/index.esm.mjs +0 -36
- package/icons/arrowdown/index.esm.min.mjs +0 -1
- package/icons/arrowdown/index.esm.mjs +0 -660
- package/icons/arrowup/index.esm.min.mjs +0 -1
- package/icons/arrowup/index.esm.mjs +0 -660
- package/icons/ban/index.esm.min.mjs +0 -1
- package/icons/ban/index.esm.mjs +0 -658
- package/icons/bars/index.esm.min.mjs +0 -1
- package/icons/bars/index.esm.mjs +0 -38
- package/icons/calendar/index.esm.min.mjs +0 -1
- package/icons/calendar/index.esm.mjs +0 -36
- package/icons/check/index.esm.min.mjs +0 -1
- package/icons/check/index.esm.mjs +0 -36
- package/icons/chevrondown/index.esm.min.mjs +0 -1
- package/icons/chevrondown/index.esm.mjs +0 -36
- package/icons/chevronleft/index.esm.min.mjs +0 -1
- package/icons/chevronleft/index.esm.mjs +0 -36
- package/icons/chevronright/index.esm.min.mjs +0 -1
- package/icons/chevronright/index.esm.mjs +0 -36
- package/icons/chevronup/index.esm.min.mjs +0 -1
- package/icons/chevronup/index.esm.mjs +0 -36
- package/icons/download/index.esm.min.mjs +0 -1
- package/icons/download/index.esm.mjs +0 -660
- package/icons/exclamationtriangle/index.esm.min.mjs +0 -1
- package/icons/exclamationtriangle/index.esm.mjs +0 -664
- package/icons/eye/index.esm.min.mjs +0 -1
- package/icons/eye/index.esm.mjs +0 -38
- package/icons/eyeslash/index.esm.min.mjs +0 -1
- package/icons/eyeslash/index.esm.mjs +0 -660
- package/icons/filter/index.esm.min.mjs +0 -1
- package/icons/filter/index.esm.mjs +0 -658
- package/icons/filterslash/index.esm.min.mjs +0 -1
- package/icons/filterslash/index.esm.mjs +0 -660
- package/icons/infocircle/index.esm.min.mjs +0 -1
- package/icons/infocircle/index.esm.mjs +0 -660
- package/icons/minus/index.esm.min.mjs +0 -1
- package/icons/minus/index.esm.mjs +0 -36
- package/icons/pencil/index.esm.min.mjs +0 -1
- package/icons/pencil/index.esm.mjs +0 -658
- package/icons/plus/index.esm.min.mjs +0 -1
- package/icons/plus/index.esm.mjs +0 -658
- package/icons/refresh/index.esm.min.mjs +0 -1
- package/icons/refresh/index.esm.mjs +0 -660
- package/icons/search/index.esm.min.mjs +0 -1
- package/icons/search/index.esm.mjs +0 -660
- package/icons/searchminus/index.esm.min.mjs +0 -1
- package/icons/searchminus/index.esm.mjs +0 -660
- package/icons/searchplus/index.esm.min.mjs +0 -1
- package/icons/searchplus/index.esm.mjs +0 -660
- package/icons/sortalt/index.esm.min.mjs +0 -1
- package/icons/sortalt/index.esm.mjs +0 -667
- package/icons/sortamountdown/index.esm.min.mjs +0 -1
- package/icons/sortamountdown/index.esm.mjs +0 -673
- package/icons/sortamountupalt/index.esm.min.mjs +0 -1
- package/icons/sortamountupalt/index.esm.mjs +0 -673
- package/icons/spinner/index.esm.min.mjs +0 -1
- package/icons/spinner/index.esm.mjs +0 -658
- package/icons/star/index.esm.min.mjs +0 -1
- package/icons/star/index.esm.mjs +0 -658
- package/icons/starfill/index.esm.min.mjs +0 -1
- package/icons/starfill/index.esm.mjs +0 -658
- package/icons/thlarge/index.esm.min.mjs +0 -1
- package/icons/thlarge/index.esm.mjs +0 -660
- package/icons/times/index.esm.min.mjs +0 -1
- package/icons/times/index.esm.mjs +0 -36
- package/icons/timescircle/index.esm.min.mjs +0 -1
- package/icons/timescircle/index.esm.mjs +0 -660
- package/icons/trash/index.esm.min.mjs +0 -1
- package/icons/trash/index.esm.mjs +0 -660
- package/icons/undo/index.esm.min.mjs +0 -1
- package/icons/undo/index.esm.mjs +0 -660
- package/icons/upload/index.esm.min.mjs +0 -1
- package/icons/upload/index.esm.mjs +0 -660
- package/icons/windowmaximize/index.esm.min.mjs +0 -1
- package/icons/windowmaximize/index.esm.mjs +0 -660
- package/icons/windowminimize/index.esm.min.mjs +0 -1
- package/icons/windowminimize/index.esm.mjs +0 -660
- package/image/image.esm.min.mjs +0 -1
- package/image/image.esm.mjs +0 -1163
- package/inplace/inplace.esm.min.mjs +0 -1
- package/inplace/inplace.esm.mjs +0 -242
- package/inputmask/inputmask.esm.min.mjs +0 -1
- package/inputmask/inputmask.esm.mjs +0 -559
- package/inputnumber/inputnumber.esm.min.mjs +0 -1
- package/inputnumber/inputnumber.esm.mjs +0 -1208
- package/inputswitch/inputswitch.esm.min.mjs +0 -1
- package/inputswitch/inputswitch.esm.mjs +0 -290
- package/inputtext/inputtext.esm.min.mjs +0 -1
- package/inputtext/inputtext.esm.mjs +0 -170
- package/inputtextarea/inputtextarea.esm.min.mjs +0 -1
- package/inputtextarea/inputtextarea.esm.mjs +0 -219
- package/keyfilter/keyfilter.esm.min.mjs +0 -1
- package/keyfilter/keyfilter.esm.mjs +0 -107
- package/knob/knob.esm.min.mjs +0 -1
- package/knob/knob.esm.mjs +0 -317
- package/listbox/listbox.esm.min.mjs +0 -1
- package/listbox/listbox.esm.mjs +0 -809
- package/megamenu/megamenu.esm.min.mjs +0 -1
- package/megamenu/megamenu.esm.mjs +0 -715
- package/mention/mention.esm.min.mjs +0 -1
- package/mention/mention.esm.mjs +0 -770
- package/menu/menu.esm.min.mjs +0 -1
- package/menu/menu.esm.mjs +0 -484
- package/menubar/menubar.esm.min.mjs +0 -1
- package/menubar/menubar.esm.mjs +0 -583
- package/message/message.esm.min.mjs +0 -1
- package/message/message.esm.mjs +0 -168
- package/messages/messages.esm.min.mjs +0 -1
- package/messages/messages.esm.mjs +0 -438
- package/multiselect/multiselect.esm.min.mjs +0 -1
- package/multiselect/multiselect.esm.mjs +0 -1723
- package/multistatecheckbox/multistatecheckbox.esm.min.mjs +0 -1
- package/multistatecheckbox/multistatecheckbox.esm.mjs +0 -351
- package/orderlist/orderlist.esm.min.mjs +0 -1
- package/orderlist/orderlist.esm.mjs +0 -820
- package/organizationchart/organizationchart.esm.min.mjs +0 -1
- package/organizationchart/organizationchart.esm.mjs +0 -479
- package/overlaypanel/overlaypanel.esm.min.mjs +0 -1
- package/overlaypanel/overlaypanel.esm.mjs +0 -515
- package/overlayservice/overlayservice.esm.min.mjs +0 -1
- package/overlayservice/overlayservice.esm.mjs +0 -6
- package/paginator/paginator.esm.min.mjs +0 -1
- package/paginator/paginator.esm.mjs +0 -932
- package/panel/panel.esm.min.mjs +0 -1
- package/panel/panel.esm.mjs +0 -315
- package/panelmenu/panelmenu.esm.min.mjs +0 -1
- package/panelmenu/panelmenu.esm.mjs +0 -644
- package/passthrough/index.esm.min.mjs +0 -1
- package/passthrough/index.esm.mjs +0 -70
- package/passthrough/tailwind/index.esm.min.mjs +0 -1
- package/passthrough/tailwind/index.esm.mjs +0 -3513
- package/password/password.esm.min.mjs +0 -1
- package/password/password.esm.mjs +0 -566
- package/picklist/picklist.esm.min.mjs +0 -1
- package/picklist/picklist.esm.mjs +0 -1118
- package/portal/portal.esm.min.mjs +0 -1
- package/portal/portal.esm.mjs +0 -109
- package/primereact.all.esm.min.mjs +0 -1
- package/primereact.all.esm.mjs +0 -51669
- package/progressbar/progressbar.esm.min.mjs +0 -1
- package/progressbar/progressbar.esm.mjs +0 -189
- package/progressspinner/progressspinner.esm.min.mjs +0 -1
- package/progressspinner/progressspinner.esm.mjs +0 -87
- package/radiobutton/radiobutton.esm.min.mjs +0 -1
- package/radiobutton/radiobutton.esm.mjs +0 -328
- package/rating/rating.esm.min.mjs +0 -1
- package/rating/rating.esm.mjs +0 -272
- package/ripple/ripple.esm.min.mjs +0 -1
- package/ripple/ripple.esm.mjs +0 -99
- package/row/row.esm.min.mjs +0 -1
- package/row/row.esm.mjs +0 -35
- package/scrollpanel/scrollpanel.esm.min.mjs +0 -1
- package/scrollpanel/scrollpanel.esm.mjs +0 -209
- package/scrolltop/scrolltop.esm.min.mjs +0 -1
- package/scrolltop/scrolltop.esm.mjs +0 -268
- package/selectbutton/selectbutton.esm.min.mjs +0 -1
- package/selectbutton/selectbutton.esm.mjs +0 -326
- package/sidebar/sidebar.esm.min.mjs +0 -1
- package/sidebar/sidebar.esm.mjs +0 -544
- package/skeleton/skeleton.esm.min.mjs +0 -1
- package/skeleton/skeleton.esm.mjs +0 -124
- package/slidemenu/slidemenu.esm.min.mjs +0 -1
- package/slidemenu/slidemenu.esm.mjs +0 -688
- package/slider/slider.esm.min.mjs +0 -1
- package/slider/slider.esm.mjs +0 -477
- package/speeddial/speeddial.esm.min.mjs +0 -1
- package/speeddial/speeddial.esm.mjs +0 -520
- package/splitbutton/splitbutton.esm.min.mjs +0 -1
- package/splitbutton/splitbutton.esm.mjs +0 -544
- package/splitter/splitter.esm.min.mjs +0 -1
- package/splitter/splitter.esm.mjs +0 -465
- package/steps/steps.esm.min.mjs +0 -1
- package/steps/steps.esm.mjs +0 -293
- package/styleclass/styleclass.esm.min.mjs +0 -1
- package/styleclass/styleclass.esm.mjs +0 -268
- package/tabmenu/tabmenu.esm.min.mjs +0 -1
- package/tabmenu/tabmenu.esm.mjs +0 -331
- package/tabview/tabview.esm.min.mjs +0 -1
- package/tabview/tabview.esm.mjs +0 -677
- package/tag/tag.esm.min.mjs +0 -1
- package/tag/tag.esm.mjs +0 -116
- package/terminal/terminal.esm.min.mjs +0 -1
- package/terminal/terminal.esm.mjs +0 -279
- package/terminalservice/terminalservice.esm.min.mjs +0 -1
- package/terminalservice/terminalservice.esm.mjs +0 -6
- package/tieredmenu/tieredmenu.esm.min.mjs +0 -1
- package/tieredmenu/tieredmenu.esm.mjs +0 -698
- package/timeline/timeline.esm.min.mjs +0 -1
- package/timeline/timeline.esm.mjs +0 -163
- package/toast/toast.esm.min.mjs +0 -1
- package/toast/toast.esm.mjs +0 -738
- package/togglebutton/togglebutton.esm.min.mjs +0 -1
- package/togglebutton/togglebutton.esm.mjs +0 -216
- package/toolbar/toolbar.esm.min.mjs +0 -1
- package/toolbar/toolbar.esm.mjs +0 -78
- package/tooltip/tooltip.esm.min.mjs +0 -1
- package/tooltip/tooltip.esm.mjs +0 -695
- package/tree/tree.esm.min.mjs +0 -1
- package/tree/tree.esm.mjs +0 -1402
- package/treeselect/treeselect.esm.min.mjs +0 -1
- package/treeselect/treeselect.esm.mjs +0 -929
- package/treetable/treetable.esm.min.mjs +0 -1
- package/treetable/treetable.esm.mjs +0 -3093
- package/tristatecheckbox/tristatecheckbox.esm.min.mjs +0 -1
- package/tristatecheckbox/tristatecheckbox.esm.mjs +0 -291
- package/utils/utils.esm.min.mjs +0 -1
- package/utils/utils.esm.mjs +0 -2382
- package/virtualscroller/virtualscroller.esm.min.mjs +0 -1
- package/virtualscroller/virtualscroller.esm.mjs +0 -971
package/tooltip/tooltip.esm.mjs
DELETED
|
@@ -1,695 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import PrimeReact, { PrimeReactContext } from 'primereact/api';
|
|
4
|
-
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
5
|
-
import { useResizeListener, useOverlayScrollListener, useMountEffect, useUpdateEffect, useUnmountEffect } from 'primereact/hooks';
|
|
6
|
-
import { Portal } from 'primereact/portal';
|
|
7
|
-
import { classNames, DomHandler, ZIndexUtils, ObjectUtils, mergeProps } from 'primereact/utils';
|
|
8
|
-
|
|
9
|
-
function _extends() {
|
|
10
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
11
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
-
var source = arguments[i];
|
|
13
|
-
for (var key in source) {
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
15
|
-
target[key] = source[key];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
return _extends.apply(this, arguments);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function _typeof(o) {
|
|
25
|
-
"@babel/helpers - typeof";
|
|
26
|
-
|
|
27
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
28
|
-
return typeof o;
|
|
29
|
-
} : function (o) {
|
|
30
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
31
|
-
}, _typeof(o);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function _toPrimitive(input, hint) {
|
|
35
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
36
|
-
var prim = input[Symbol.toPrimitive];
|
|
37
|
-
if (prim !== undefined) {
|
|
38
|
-
var res = prim.call(input, hint || "default");
|
|
39
|
-
if (_typeof(res) !== "object") return res;
|
|
40
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
41
|
-
}
|
|
42
|
-
return (hint === "string" ? String : Number)(input);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function _toPropertyKey(arg) {
|
|
46
|
-
var key = _toPrimitive(arg, "string");
|
|
47
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function _defineProperty(obj, key, value) {
|
|
51
|
-
key = _toPropertyKey(key);
|
|
52
|
-
if (key in obj) {
|
|
53
|
-
Object.defineProperty(obj, key, {
|
|
54
|
-
value: value,
|
|
55
|
-
enumerable: true,
|
|
56
|
-
configurable: true,
|
|
57
|
-
writable: true
|
|
58
|
-
});
|
|
59
|
-
} else {
|
|
60
|
-
obj[key] = value;
|
|
61
|
-
}
|
|
62
|
-
return obj;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function _arrayLikeToArray(arr, len) {
|
|
66
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
67
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
68
|
-
return arr2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function _arrayWithoutHoles(arr) {
|
|
72
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function _iterableToArray(iter) {
|
|
76
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
80
|
-
if (!o) return;
|
|
81
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
82
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
83
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
84
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
85
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function _nonIterableSpread() {
|
|
89
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function _toConsumableArray(arr) {
|
|
93
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function _arrayWithHoles(arr) {
|
|
97
|
-
if (Array.isArray(arr)) return arr;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function _iterableToArrayLimit(r, l) {
|
|
101
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
102
|
-
if (null != t) {
|
|
103
|
-
var e,
|
|
104
|
-
n,
|
|
105
|
-
i,
|
|
106
|
-
u,
|
|
107
|
-
a = [],
|
|
108
|
-
f = !0,
|
|
109
|
-
o = !1;
|
|
110
|
-
try {
|
|
111
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
112
|
-
if (Object(t) !== t) return;
|
|
113
|
-
f = !1;
|
|
114
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
115
|
-
} catch (r) {
|
|
116
|
-
o = !0, n = r;
|
|
117
|
-
} finally {
|
|
118
|
-
try {
|
|
119
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
120
|
-
} finally {
|
|
121
|
-
if (o) throw n;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return a;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
function _nonIterableRest() {
|
|
129
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
function _slicedToArray(arr, i) {
|
|
133
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
var classes = {
|
|
137
|
-
root: function root(_ref) {
|
|
138
|
-
var positionState = _ref.positionState,
|
|
139
|
-
classNameState = _ref.classNameState;
|
|
140
|
-
return classNames('p-tooltip p-component', _defineProperty({}, "p-tooltip-".concat(positionState), true), classNameState);
|
|
141
|
-
},
|
|
142
|
-
arrow: 'p-tooltip-arrow',
|
|
143
|
-
text: 'p-tooltip-text'
|
|
144
|
-
};
|
|
145
|
-
var inlineStyles = {
|
|
146
|
-
arrow: function arrow(_ref2) {
|
|
147
|
-
var context = _ref2.context;
|
|
148
|
-
return {
|
|
149
|
-
top: context.bottom ? '0' : context.right || context.left || !context.right && !context.left && !context.top && !context.bottom ? '50%' : null,
|
|
150
|
-
bottom: context.top ? '0' : null,
|
|
151
|
-
left: context.right || !context.right && !context.left && !context.top && !context.bottom ? '0' : context.top || context.bottom ? '50%' : null,
|
|
152
|
-
right: context.left ? '0' : null
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
var 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";
|
|
157
|
-
var TooltipBase = ComponentBase.extend({
|
|
158
|
-
defaultProps: {
|
|
159
|
-
__TYPE: 'Tooltip',
|
|
160
|
-
appendTo: null,
|
|
161
|
-
at: null,
|
|
162
|
-
autoHide: true,
|
|
163
|
-
autoZIndex: true,
|
|
164
|
-
baseZIndex: 0,
|
|
165
|
-
className: null,
|
|
166
|
-
content: null,
|
|
167
|
-
disabled: false,
|
|
168
|
-
event: null,
|
|
169
|
-
hideDelay: 0,
|
|
170
|
-
hideEvent: 'mouseleave',
|
|
171
|
-
id: null,
|
|
172
|
-
mouseTrack: false,
|
|
173
|
-
mouseTrackLeft: 5,
|
|
174
|
-
mouseTrackTop: 5,
|
|
175
|
-
my: null,
|
|
176
|
-
onBeforeHide: null,
|
|
177
|
-
onBeforeShow: null,
|
|
178
|
-
onHide: null,
|
|
179
|
-
onShow: null,
|
|
180
|
-
position: 'right',
|
|
181
|
-
showDelay: 0,
|
|
182
|
-
showEvent: 'mouseenter',
|
|
183
|
-
showOnDisabled: false,
|
|
184
|
-
style: null,
|
|
185
|
-
target: null,
|
|
186
|
-
updateDelay: 0,
|
|
187
|
-
children: undefined
|
|
188
|
-
},
|
|
189
|
-
css: {
|
|
190
|
-
classes: classes,
|
|
191
|
-
styles: styles,
|
|
192
|
-
inlineStyles: inlineStyles
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
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; }
|
|
197
|
-
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; }
|
|
198
|
-
var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
199
|
-
var context = React.useContext(PrimeReactContext);
|
|
200
|
-
var props = TooltipBase.getProps(inProps, context);
|
|
201
|
-
var _React$useState = React.useState(false),
|
|
202
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
203
|
-
visibleState = _React$useState2[0],
|
|
204
|
-
setVisibleState = _React$useState2[1];
|
|
205
|
-
var _React$useState3 = React.useState(props.position),
|
|
206
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
207
|
-
positionState = _React$useState4[0],
|
|
208
|
-
setPositionState = _React$useState4[1];
|
|
209
|
-
var _React$useState5 = React.useState(''),
|
|
210
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
211
|
-
classNameState = _React$useState6[0],
|
|
212
|
-
setClassNameState = _React$useState6[1];
|
|
213
|
-
var metaData = {
|
|
214
|
-
props: props,
|
|
215
|
-
state: {
|
|
216
|
-
visible: visibleState,
|
|
217
|
-
position: positionState,
|
|
218
|
-
className: classNameState
|
|
219
|
-
},
|
|
220
|
-
context: {
|
|
221
|
-
right: positionState === 'right',
|
|
222
|
-
left: positionState === 'left',
|
|
223
|
-
top: positionState === 'top',
|
|
224
|
-
bottom: positionState === 'bottom'
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
var _TooltipBase$setMetaD = TooltipBase.setMetaData(metaData),
|
|
228
|
-
ptm = _TooltipBase$setMetaD.ptm,
|
|
229
|
-
cx = _TooltipBase$setMetaD.cx,
|
|
230
|
-
sx = _TooltipBase$setMetaD.sx,
|
|
231
|
-
isUnstyled = _TooltipBase$setMetaD.isUnstyled;
|
|
232
|
-
useHandleStyle(TooltipBase.css.styles, isUnstyled, {
|
|
233
|
-
name: 'tooltip'
|
|
234
|
-
});
|
|
235
|
-
var elementRef = React.useRef(null);
|
|
236
|
-
var textRef = React.useRef(null);
|
|
237
|
-
var currentTargetRef = React.useRef(null);
|
|
238
|
-
var containerSize = React.useRef(null);
|
|
239
|
-
var allowHide = React.useRef(true);
|
|
240
|
-
var timeouts = React.useRef({});
|
|
241
|
-
var currentMouseEvent = React.useRef(null);
|
|
242
|
-
var _useResizeListener = useResizeListener({
|
|
243
|
-
listener: function listener(event) {
|
|
244
|
-
!DomHandler.isTouchDevice() && hide(event);
|
|
245
|
-
}
|
|
246
|
-
}),
|
|
247
|
-
_useResizeListener2 = _slicedToArray(_useResizeListener, 2),
|
|
248
|
-
bindWindowResizeListener = _useResizeListener2[0],
|
|
249
|
-
unbindWindowResizeListener = _useResizeListener2[1];
|
|
250
|
-
var _useOverlayScrollList = useOverlayScrollListener({
|
|
251
|
-
target: currentTargetRef.current,
|
|
252
|
-
listener: function listener(event) {
|
|
253
|
-
hide(event);
|
|
254
|
-
},
|
|
255
|
-
when: visibleState
|
|
256
|
-
}),
|
|
257
|
-
_useOverlayScrollList2 = _slicedToArray(_useOverlayScrollList, 2),
|
|
258
|
-
bindOverlayScrollListener = _useOverlayScrollList2[0],
|
|
259
|
-
unbindOverlayScrollListener = _useOverlayScrollList2[1];
|
|
260
|
-
var isTargetContentEmpty = function isTargetContentEmpty(target) {
|
|
261
|
-
return !(props.content || getTargetOption(target, 'tooltip'));
|
|
262
|
-
};
|
|
263
|
-
var isContentEmpty = function isContentEmpty(target) {
|
|
264
|
-
return !(props.content || getTargetOption(target, 'tooltip') || props.children);
|
|
265
|
-
};
|
|
266
|
-
var isMouseTrack = function isMouseTrack(target) {
|
|
267
|
-
return getTargetOption(target, 'mousetrack') || props.mouseTrack;
|
|
268
|
-
};
|
|
269
|
-
var isDisabled = function isDisabled(target) {
|
|
270
|
-
return getTargetOption(target, 'disabled') === 'true' || hasTargetOption(target, 'disabled') || props.disabled;
|
|
271
|
-
};
|
|
272
|
-
var isShowOnDisabled = function isShowOnDisabled(target) {
|
|
273
|
-
return getTargetOption(target, 'showondisabled') || props.showOnDisabled;
|
|
274
|
-
};
|
|
275
|
-
var isAutoHide = function isAutoHide() {
|
|
276
|
-
return getTargetOption(currentTargetRef.current, 'autohide') || props.autoHide;
|
|
277
|
-
};
|
|
278
|
-
var getTargetOption = function getTargetOption(target, option) {
|
|
279
|
-
return hasTargetOption(target, "data-pr-".concat(option)) ? target.getAttribute("data-pr-".concat(option)) : null;
|
|
280
|
-
};
|
|
281
|
-
var hasTargetOption = function hasTargetOption(target, option) {
|
|
282
|
-
return target && target.hasAttribute(option);
|
|
283
|
-
};
|
|
284
|
-
var getEvents = function getEvents(target) {
|
|
285
|
-
var showEvents = [getTargetOption(target, 'showevent') || props.showEvent];
|
|
286
|
-
var hideEvents = [getTargetOption(target, 'hideevent') || props.hideEvent];
|
|
287
|
-
if (isMouseTrack(target)) {
|
|
288
|
-
showEvents = ['mousemove'];
|
|
289
|
-
hideEvents = ['mouseleave'];
|
|
290
|
-
} else {
|
|
291
|
-
var event = getTargetOption(target, 'event') || props.event;
|
|
292
|
-
if (event === 'focus') {
|
|
293
|
-
showEvents = ['focus'];
|
|
294
|
-
hideEvents = ['blur'];
|
|
295
|
-
}
|
|
296
|
-
if (event === 'both') {
|
|
297
|
-
showEvents = ['focus', 'mouseenter'];
|
|
298
|
-
hideEvents = ['blur', 'mouseleave'];
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
return {
|
|
302
|
-
showEvents: showEvents,
|
|
303
|
-
hideEvents: hideEvents
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
var getPosition = function getPosition(target) {
|
|
307
|
-
return getTargetOption(target, 'position') || positionState;
|
|
308
|
-
};
|
|
309
|
-
var getMouseTrackPosition = function getMouseTrackPosition(target) {
|
|
310
|
-
var top = getTargetOption(target, 'mousetracktop') || props.mouseTrackTop;
|
|
311
|
-
var left = getTargetOption(target, 'mousetrackleft') || props.mouseTrackLeft;
|
|
312
|
-
return {
|
|
313
|
-
top: top,
|
|
314
|
-
left: left
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
var updateText = function updateText(target, callback) {
|
|
318
|
-
if (textRef.current) {
|
|
319
|
-
var content = getTargetOption(target, 'tooltip') || props.content;
|
|
320
|
-
if (content) {
|
|
321
|
-
textRef.current.innerHTML = ''; // remove children
|
|
322
|
-
textRef.current.appendChild(document.createTextNode(content));
|
|
323
|
-
callback();
|
|
324
|
-
} else if (props.children) {
|
|
325
|
-
callback();
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
var updateTooltipState = function updateTooltipState(position) {
|
|
330
|
-
updateText(currentTargetRef.current, function () {
|
|
331
|
-
var _currentMouseEvent$cu = currentMouseEvent.current,
|
|
332
|
-
x = _currentMouseEvent$cu.pageX,
|
|
333
|
-
y = _currentMouseEvent$cu.pageY;
|
|
334
|
-
if (props.autoZIndex && !ZIndexUtils.get(elementRef.current)) {
|
|
335
|
-
ZIndexUtils.set('tooltip', elementRef.current, context && context.autoZIndex || PrimeReact.autoZIndex, props.baseZIndex || context && context.zIndex['tooltip'] || PrimeReact.zIndex['tooltip']);
|
|
336
|
-
}
|
|
337
|
-
elementRef.current.style.left = '';
|
|
338
|
-
elementRef.current.style.top = '';
|
|
339
|
-
|
|
340
|
-
// GitHub #2695 disable pointer events when autohiding
|
|
341
|
-
if (isAutoHide()) {
|
|
342
|
-
elementRef.current.style.pointerEvents = 'none';
|
|
343
|
-
}
|
|
344
|
-
if ((isMouseTrack(currentTargetRef.current) || position == 'mouse') && !containerSize.current) {
|
|
345
|
-
containerSize.current = {
|
|
346
|
-
width: DomHandler.getOuterWidth(elementRef.current),
|
|
347
|
-
height: DomHandler.getOuterHeight(elementRef.current)
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
align(currentTargetRef.current, {
|
|
351
|
-
x: x,
|
|
352
|
-
y: y
|
|
353
|
-
}, position);
|
|
354
|
-
});
|
|
355
|
-
};
|
|
356
|
-
var show = function show(e) {
|
|
357
|
-
currentTargetRef.current = e.currentTarget;
|
|
358
|
-
var disabled = isDisabled(currentTargetRef.current);
|
|
359
|
-
var empty = isContentEmpty(isShowOnDisabled(currentTargetRef.current) && disabled ? currentTargetRef.current.firstChild : currentTargetRef.current);
|
|
360
|
-
if (empty || disabled) {
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
currentMouseEvent.current = e;
|
|
364
|
-
if (visibleState) {
|
|
365
|
-
applyDelay('updateDelay', updateTooltipState);
|
|
366
|
-
} else {
|
|
367
|
-
// #2653 give the callback a chance to return false and not continue with display
|
|
368
|
-
var success = sendCallback(props.onBeforeShow, {
|
|
369
|
-
originalEvent: e,
|
|
370
|
-
target: currentTargetRef.current
|
|
371
|
-
});
|
|
372
|
-
if (success) {
|
|
373
|
-
applyDelay('showDelay', function () {
|
|
374
|
-
setVisibleState(true);
|
|
375
|
-
sendCallback(props.onShow, {
|
|
376
|
-
originalEvent: e,
|
|
377
|
-
target: currentTargetRef.current
|
|
378
|
-
});
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
var hide = function hide(e) {
|
|
384
|
-
clearTimeouts();
|
|
385
|
-
if (visibleState) {
|
|
386
|
-
var success = sendCallback(props.onBeforeHide, {
|
|
387
|
-
originalEvent: e,
|
|
388
|
-
target: currentTargetRef.current
|
|
389
|
-
});
|
|
390
|
-
if (success) {
|
|
391
|
-
applyDelay('hideDelay', function () {
|
|
392
|
-
if (!isAutoHide() && allowHide.current === false) {
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
ZIndexUtils.clear(elementRef.current);
|
|
396
|
-
DomHandler.removeClass(elementRef.current, 'p-tooltip-active');
|
|
397
|
-
setVisibleState(false);
|
|
398
|
-
sendCallback(props.onHide, {
|
|
399
|
-
originalEvent: e,
|
|
400
|
-
target: currentTargetRef.current
|
|
401
|
-
});
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
var align = function align(target, coordinate, position) {
|
|
407
|
-
var left = 0,
|
|
408
|
-
top = 0,
|
|
409
|
-
currentPosition = position || positionState;
|
|
410
|
-
if ((isMouseTrack(target) || currentPosition == 'mouse') && coordinate) {
|
|
411
|
-
var _containerSize = {
|
|
412
|
-
width: DomHandler.getOuterWidth(elementRef.current),
|
|
413
|
-
height: DomHandler.getOuterHeight(elementRef.current)
|
|
414
|
-
};
|
|
415
|
-
left = coordinate.x;
|
|
416
|
-
top = coordinate.y;
|
|
417
|
-
var _getMouseTrackPositio = getMouseTrackPosition(target),
|
|
418
|
-
mouseTrackTop = _getMouseTrackPositio.top,
|
|
419
|
-
mouseTrackLeft = _getMouseTrackPositio.left;
|
|
420
|
-
switch (currentPosition) {
|
|
421
|
-
case 'left':
|
|
422
|
-
left -= _containerSize.width + mouseTrackLeft;
|
|
423
|
-
top -= _containerSize.height / 2 - mouseTrackTop;
|
|
424
|
-
break;
|
|
425
|
-
case 'right':
|
|
426
|
-
case 'mouse':
|
|
427
|
-
left += mouseTrackLeft;
|
|
428
|
-
top -= _containerSize.height / 2 - mouseTrackTop;
|
|
429
|
-
break;
|
|
430
|
-
case 'top':
|
|
431
|
-
left -= _containerSize.width / 2 - mouseTrackLeft;
|
|
432
|
-
top -= _containerSize.height + mouseTrackTop;
|
|
433
|
-
break;
|
|
434
|
-
case 'bottom':
|
|
435
|
-
left -= _containerSize.width / 2 - mouseTrackLeft;
|
|
436
|
-
top += mouseTrackTop;
|
|
437
|
-
break;
|
|
438
|
-
}
|
|
439
|
-
if (left <= 0 || containerSize.current.width > _containerSize.width) {
|
|
440
|
-
elementRef.current.style.left = '0px';
|
|
441
|
-
elementRef.current.style.right = window.innerWidth - _containerSize.width - left + 'px';
|
|
442
|
-
} else {
|
|
443
|
-
elementRef.current.style.right = '';
|
|
444
|
-
elementRef.current.style.left = left + 'px';
|
|
445
|
-
}
|
|
446
|
-
elementRef.current.style.top = top + 'px';
|
|
447
|
-
DomHandler.addClass(elementRef.current, 'p-tooltip-active');
|
|
448
|
-
} else {
|
|
449
|
-
var pos = DomHandler.findCollisionPosition(currentPosition);
|
|
450
|
-
var my = getTargetOption(target, 'my') || props.my || pos.my;
|
|
451
|
-
var at = getTargetOption(target, 'at') || props.at || pos.at;
|
|
452
|
-
elementRef.current.style.padding = '0px';
|
|
453
|
-
DomHandler.flipfitCollision(elementRef.current, target, my, at, function (calculatedPosition) {
|
|
454
|
-
var _calculatedPosition$a = calculatedPosition.at,
|
|
455
|
-
atX = _calculatedPosition$a.x,
|
|
456
|
-
atY = _calculatedPosition$a.y;
|
|
457
|
-
var myX = calculatedPosition.my.x;
|
|
458
|
-
var newPosition = props.at ? atX !== 'center' && atX !== myX ? atX : atY : calculatedPosition.at["".concat(pos.axis)];
|
|
459
|
-
elementRef.current.style.padding = '';
|
|
460
|
-
setPositionState(newPosition);
|
|
461
|
-
updateContainerPosition(newPosition);
|
|
462
|
-
DomHandler.addClass(elementRef.current, 'p-tooltip-active');
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
var updateContainerPosition = function updateContainerPosition(position) {
|
|
467
|
-
if (elementRef.current) {
|
|
468
|
-
var style = getComputedStyle(elementRef.current);
|
|
469
|
-
if (position === 'left') elementRef.current.style.left = parseFloat(style.left) - parseFloat(style.paddingLeft) * 2 + 'px';else if (position === 'top') elementRef.current.style.top = parseFloat(style.top) - parseFloat(style.paddingTop) * 2 + 'px';
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
|
-
var _onMouseEnter = function onMouseEnter() {
|
|
473
|
-
if (!isAutoHide()) {
|
|
474
|
-
allowHide.current = false;
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
var _onMouseLeave = function onMouseLeave(e) {
|
|
478
|
-
if (!isAutoHide()) {
|
|
479
|
-
allowHide.current = true;
|
|
480
|
-
hide(e);
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
var bindTargetEvent = function bindTargetEvent(target) {
|
|
484
|
-
if (target) {
|
|
485
|
-
var _getEvents = getEvents(target),
|
|
486
|
-
showEvents = _getEvents.showEvents,
|
|
487
|
-
hideEvents = _getEvents.hideEvents;
|
|
488
|
-
var currentTarget = getTarget(target);
|
|
489
|
-
showEvents.forEach(function (event) {
|
|
490
|
-
return currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.addEventListener(event, show);
|
|
491
|
-
});
|
|
492
|
-
hideEvents.forEach(function (event) {
|
|
493
|
-
return currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.addEventListener(event, hide);
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
|
-
var unbindTargetEvent = function unbindTargetEvent(target) {
|
|
498
|
-
if (target) {
|
|
499
|
-
var _getEvents2 = getEvents(target),
|
|
500
|
-
showEvents = _getEvents2.showEvents,
|
|
501
|
-
hideEvents = _getEvents2.hideEvents;
|
|
502
|
-
var currentTarget = getTarget(target);
|
|
503
|
-
showEvents.forEach(function (event) {
|
|
504
|
-
return currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.removeEventListener(event, show);
|
|
505
|
-
});
|
|
506
|
-
hideEvents.forEach(function (event) {
|
|
507
|
-
return currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.removeEventListener(event, hide);
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
|
-
var applyDelay = function applyDelay(delayProp, callback) {
|
|
512
|
-
clearTimeouts();
|
|
513
|
-
var delay = getTargetOption(currentTargetRef.current, delayProp.toLowerCase()) || props[delayProp];
|
|
514
|
-
!!delay ? timeouts.current["".concat(delayProp)] = setTimeout(function () {
|
|
515
|
-
return callback();
|
|
516
|
-
}, delay) : callback();
|
|
517
|
-
};
|
|
518
|
-
var sendCallback = function sendCallback(callback) {
|
|
519
|
-
if (callback) {
|
|
520
|
-
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
521
|
-
params[_key - 1] = arguments[_key];
|
|
522
|
-
}
|
|
523
|
-
var result = callback.apply(void 0, params);
|
|
524
|
-
if (result === undefined) {
|
|
525
|
-
result = true;
|
|
526
|
-
}
|
|
527
|
-
return result;
|
|
528
|
-
}
|
|
529
|
-
return true;
|
|
530
|
-
};
|
|
531
|
-
var clearTimeouts = function clearTimeouts() {
|
|
532
|
-
Object.values(timeouts.current).forEach(function (t) {
|
|
533
|
-
return clearTimeout(t);
|
|
534
|
-
});
|
|
535
|
-
};
|
|
536
|
-
var getTarget = function getTarget(target) {
|
|
537
|
-
if (target) {
|
|
538
|
-
if (isShowOnDisabled(target)) {
|
|
539
|
-
if (!target.hasWrapper) {
|
|
540
|
-
var wrapper = document.createElement('span');
|
|
541
|
-
DomHandler.addClass(wrapper, 'p-tooltip-target-wrapper');
|
|
542
|
-
target.parentNode.insertBefore(wrapper, target);
|
|
543
|
-
wrapper.appendChild(target);
|
|
544
|
-
target.hasWrapper = true;
|
|
545
|
-
return wrapper;
|
|
546
|
-
} else {
|
|
547
|
-
return target.parentElement;
|
|
548
|
-
}
|
|
549
|
-
} else if (target.hasWrapper) {
|
|
550
|
-
var _target$parentElement;
|
|
551
|
-
(_target$parentElement = target.parentElement).replaceWith.apply(_target$parentElement, _toConsumableArray(target.parentElement.childNodes));
|
|
552
|
-
delete target.hasWrapper;
|
|
553
|
-
}
|
|
554
|
-
return target;
|
|
555
|
-
}
|
|
556
|
-
return null;
|
|
557
|
-
};
|
|
558
|
-
var updateTargetEvents = function updateTargetEvents(target) {
|
|
559
|
-
unloadTargetEvents(target);
|
|
560
|
-
loadTargetEvents(target);
|
|
561
|
-
};
|
|
562
|
-
var loadTargetEvents = function loadTargetEvents(target) {
|
|
563
|
-
setTargetEventOperations(target || props.target, bindTargetEvent);
|
|
564
|
-
};
|
|
565
|
-
var unloadTargetEvents = function unloadTargetEvents(target) {
|
|
566
|
-
setTargetEventOperations(target || props.target, unbindTargetEvent);
|
|
567
|
-
};
|
|
568
|
-
var setTargetEventOperations = function setTargetEventOperations(target, operation) {
|
|
569
|
-
target = ObjectUtils.getRefElement(target);
|
|
570
|
-
if (target) {
|
|
571
|
-
if (DomHandler.isElement(target)) {
|
|
572
|
-
operation(target);
|
|
573
|
-
} else {
|
|
574
|
-
var setEvent = function setEvent(target) {
|
|
575
|
-
var element = DomHandler.find(document, target);
|
|
576
|
-
element.forEach(function (el) {
|
|
577
|
-
operation(el);
|
|
578
|
-
});
|
|
579
|
-
};
|
|
580
|
-
if (target instanceof Array) {
|
|
581
|
-
target.forEach(function (t) {
|
|
582
|
-
setEvent(t);
|
|
583
|
-
});
|
|
584
|
-
} else {
|
|
585
|
-
setEvent(target);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
};
|
|
590
|
-
useMountEffect(function () {
|
|
591
|
-
if (visibleState && currentTargetRef.current && isDisabled(currentTargetRef.current)) {
|
|
592
|
-
hide();
|
|
593
|
-
}
|
|
594
|
-
});
|
|
595
|
-
useUpdateEffect(function () {
|
|
596
|
-
loadTargetEvents();
|
|
597
|
-
return function () {
|
|
598
|
-
unloadTargetEvents();
|
|
599
|
-
};
|
|
600
|
-
}, [show, hide, props.target]);
|
|
601
|
-
useUpdateEffect(function () {
|
|
602
|
-
if (visibleState) {
|
|
603
|
-
var position = getPosition(currentTargetRef.current);
|
|
604
|
-
var classname = getTargetOption(currentTargetRef.current, 'classname');
|
|
605
|
-
setPositionState(position);
|
|
606
|
-
setClassNameState(classname);
|
|
607
|
-
updateTooltipState(position);
|
|
608
|
-
bindWindowResizeListener();
|
|
609
|
-
bindOverlayScrollListener();
|
|
610
|
-
} else {
|
|
611
|
-
setPositionState(props.position);
|
|
612
|
-
setClassNameState('');
|
|
613
|
-
currentTargetRef.current = null;
|
|
614
|
-
containerSize.current = null;
|
|
615
|
-
allowHide.current = true;
|
|
616
|
-
}
|
|
617
|
-
return function () {
|
|
618
|
-
unbindWindowResizeListener();
|
|
619
|
-
unbindOverlayScrollListener();
|
|
620
|
-
};
|
|
621
|
-
}, [visibleState]);
|
|
622
|
-
useUpdateEffect(function () {
|
|
623
|
-
if (visibleState) {
|
|
624
|
-
applyDelay('updateDelay', function () {
|
|
625
|
-
updateText(currentTargetRef.current, function () {
|
|
626
|
-
align(currentTargetRef.current);
|
|
627
|
-
});
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
}, [props.content]);
|
|
631
|
-
useUnmountEffect(function () {
|
|
632
|
-
clearTimeouts();
|
|
633
|
-
unloadTargetEvents();
|
|
634
|
-
ZIndexUtils.clear(elementRef.current);
|
|
635
|
-
});
|
|
636
|
-
React.useImperativeHandle(ref, function () {
|
|
637
|
-
return {
|
|
638
|
-
props: props,
|
|
639
|
-
updateTargetEvents: updateTargetEvents,
|
|
640
|
-
loadTargetEvents: loadTargetEvents,
|
|
641
|
-
unloadTargetEvents: unloadTargetEvents,
|
|
642
|
-
show: show,
|
|
643
|
-
hide: hide,
|
|
644
|
-
getElement: function getElement() {
|
|
645
|
-
return elementRef.current;
|
|
646
|
-
},
|
|
647
|
-
getTarget: function getTarget() {
|
|
648
|
-
return currentTargetRef.current;
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
|
-
});
|
|
652
|
-
var createElement = function createElement() {
|
|
653
|
-
var empty = isTargetContentEmpty(currentTargetRef.current);
|
|
654
|
-
var rootProps = mergeProps({
|
|
655
|
-
id: props.id,
|
|
656
|
-
className: classNames(props.className, cx('root', {
|
|
657
|
-
positionState: positionState,
|
|
658
|
-
classNameState: classNameState
|
|
659
|
-
})),
|
|
660
|
-
style: props.style,
|
|
661
|
-
role: 'tooltip',
|
|
662
|
-
'aria-hidden': visibleState,
|
|
663
|
-
onMouseEnter: function onMouseEnter(e) {
|
|
664
|
-
return _onMouseEnter();
|
|
665
|
-
},
|
|
666
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
667
|
-
return _onMouseLeave(e);
|
|
668
|
-
}
|
|
669
|
-
}, TooltipBase.getOtherProps(props), ptm('root'));
|
|
670
|
-
var arrowProps = mergeProps({
|
|
671
|
-
className: cx('arrow'),
|
|
672
|
-
style: sx('arrow', _objectSpread({}, metaData))
|
|
673
|
-
}, ptm('arrow'));
|
|
674
|
-
var textProps = mergeProps({
|
|
675
|
-
className: cx('text')
|
|
676
|
-
}, ptm('text'));
|
|
677
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
678
|
-
ref: elementRef
|
|
679
|
-
}, rootProps), /*#__PURE__*/React.createElement("div", arrowProps), /*#__PURE__*/React.createElement("div", _extends({
|
|
680
|
-
ref: textRef
|
|
681
|
-
}, textProps), empty && props.children));
|
|
682
|
-
};
|
|
683
|
-
if (visibleState) {
|
|
684
|
-
var element = createElement();
|
|
685
|
-
return /*#__PURE__*/React.createElement(Portal, {
|
|
686
|
-
element: element,
|
|
687
|
-
appendTo: props.appendTo,
|
|
688
|
-
visible: true
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
return null;
|
|
692
|
-
}));
|
|
693
|
-
Tooltip.displayName = 'Tooltip';
|
|
694
|
-
|
|
695
|
-
export { Tooltip };
|