primereact 8.7.1 → 8.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +56 -57
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +56 -57
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +56 -57
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +30 -68
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +30 -68
- package/api/api.esm.min.js +1 -1
- package/api/api.js +30 -68
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +88 -156
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +1 -0
- package/autocomplete/autocomplete.esm.js +88 -156
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +88 -156
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +86 -14
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +5 -4
- package/avatar/avatar.esm.js +86 -14
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +86 -14
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +0 -2
- package/avatargroup/avatargroup.esm.js +0 -2
- package/avatargroup/avatargroup.js +0 -2
- package/badge/badge.cjs.js +27 -3
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +27 -3
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +27 -3
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +40 -54
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +5 -3
- package/blockui/blockui.esm.js +40 -54
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +40 -54
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +6 -29
- package/breadcrumb/breadcrumb.esm.js +6 -29
- package/breadcrumb/breadcrumb.js +6 -29
- package/button/button.cjs.js +29 -11
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +29 -11
- package/button/button.esm.min.js +1 -1
- package/button/button.js +29 -11
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +205 -667
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +6 -4
- package/calendar/calendar.esm.js +205 -667
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +205 -667
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +0 -15
- package/captcha/captcha.esm.js +0 -15
- package/captcha/captcha.js +0 -15
- package/card/card.cjs.js +0 -6
- package/card/card.esm.js +0 -6
- package/card/card.js +0 -6
- package/carousel/carousel.cjs.js +42 -130
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +42 -130
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +42 -130
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +47 -132
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +47 -132
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +47 -132
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +6 -7
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +6 -7
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +6 -7
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +26 -40
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +26 -40
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +26 -40
- package/checkbox/checkbox.min.css +1 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +26 -41
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +26 -41
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +26 -41
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +29 -72
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +29 -72
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +29 -72
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +75 -143
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +8 -6
- package/colorpicker/colorpicker.esm.js +75 -143
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +75 -143
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +1 -0
- package/confirmdialog/confirmdialog.cjs.js +60 -60
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +60 -60
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +60 -60
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +74 -94
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +74 -94
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +74 -94
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +75 -120
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +75 -120
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +75 -120
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +986 -2025
- package/core/core.min.js +18 -18
- package/csstransition/csstransition.cjs.js +27 -13
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +27 -13
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +27 -13
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +32 -64
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +32 -64
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +32 -64
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +318 -1077
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +6 -1
- package/datatable/datatable.esm.js +318 -1077
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +318 -1077
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +56 -68
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +56 -68
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +56 -68
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +37 -46
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +37 -46
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +37 -46
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +89 -175
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +89 -175
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +89 -175
- package/dialog/dialog.min.css +1 -1
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +0 -2
- package/divider/divider.esm.js +0 -2
- package/divider/divider.js +0 -2
- package/dock/dock.cjs.js +31 -53
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +31 -53
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +31 -53
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +72 -199
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +39 -38
- package/dropdown/dropdown.esm.js +72 -199
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +72 -199
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +31 -22
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +31 -22
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +31 -22
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +29 -51
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +29 -51
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +29 -51
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +45 -128
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +45 -128
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +45 -128
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +54 -165
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +54 -165
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +54 -165
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.cjs.js +2 -23
- package/gmap/gmap.esm.js +2 -23
- package/gmap/gmap.js +2 -23
- package/hooks/hooks.cjs.js +102 -131
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +102 -131
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +102 -131
- package/hooks/hooks.min.js +1 -1
- package/image/image.cjs.js +41 -67
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +1 -1
- package/image/image.esm.js +41 -67
- package/image/image.esm.min.js +1 -1
- package/image/image.js +41 -67
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +26 -45
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +26 -45
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +26 -45
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +16 -108
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +16 -108
- package/inputmask/inputmask.js +16 -108
- package/inputnumber/inputnumber.cjs.js +89 -230
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +2 -1
- package/inputnumber/inputnumber.esm.js +89 -230
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +89 -230
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +26 -37
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +26 -37
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +26 -37
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +4 -15
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +3 -3
- package/inputtext/inputtext.esm.js +4 -15
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +4 -15
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +24 -18
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +4 -2
- package/inputtextarea/inputtextarea.esm.js +24 -18
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -20
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +6 -16
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +6 -16
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +6 -16
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +74 -106
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +74 -106
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +74 -106
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +94 -125
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +6 -0
- package/listbox/listbox.esm.js +95 -126
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +94 -125
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +36 -99
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +36 -99
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +36 -99
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +106 -136
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +1 -1
- package/mention/mention.esm.js +106 -136
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +107 -138
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +38 -72
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +38 -72
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +38 -72
- package/menu/menu.min.css +1 -1
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +49 -99
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +49 -99
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +49 -99
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +0 -7
- package/message/message.esm.js +0 -7
- package/message/message.js +0 -7
- package/messages/messages.cjs.js +39 -67
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +39 -67
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +39 -67
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +137 -210
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +46 -41
- package/multiselect/multiselect.esm.js +137 -210
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +137 -210
- package/multiselect/multiselect.min.css +1 -1
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +58 -53
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +58 -53
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +58 -53
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +38 -103
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +38 -103
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +38 -103
- package/orderlist/orderlist.min.css +1 -1
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +26 -52
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +26 -52
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +26 -52
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +40 -79
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +40 -79
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +40 -79
- package/overlaypanel/overlaypanel.min.css +1 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +46 -87
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +46 -87
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +46 -87
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +29 -50
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +29 -50
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +29 -50
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +35 -81
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +35 -81
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +35 -81
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +54 -107
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +54 -107
- package/password/password.esm.min.js +1 -1
- package/password/password.js +54 -107
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +48 -159
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +48 -159
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +48 -159
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +26 -31
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +26 -31
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +26 -31
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +2325 -7353
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2325 -7353
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +2325 -7353
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +0 -7
- package/progressbar/progressbar.esm.js +0 -7
- package/progressbar/progressbar.js +0 -7
- package/progressspinner/progressspinner.cjs.js +0 -2
- package/progressspinner/progressspinner.esm.js +0 -2
- package/progressspinner/progressspinner.js +0 -2
- package/radiobutton/radiobutton.cjs.js +30 -40
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +30 -40
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +30 -40
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +27 -14
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +27 -14
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +27 -14
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +47 -1
- package/resources/primereact.min.css +1 -1
- package/ripple/ripple.cjs.js +0 -13
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +0 -13
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +0 -13
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +0 -2
- package/row/row.esm.js +0 -2
- package/row/row.js +0 -2
- package/scrollpanel/scrollpanel.cjs.js +2 -16
- package/scrollpanel/scrollpanel.esm.js +2 -16
- package/scrollpanel/scrollpanel.js +2 -16
- package/scrolltop/scrolltop.cjs.js +44 -57
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +44 -57
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +44 -57
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +26 -53
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +26 -53
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +26 -53
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +52 -83
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +52 -83
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +52 -83
- package/sidebar/sidebar.min.css +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +0 -2
- package/skeleton/skeleton.esm.js +0 -2
- package/skeleton/skeleton.js +0 -2
- package/slidemenu/slidemenu.cjs.js +73 -87
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +73 -87
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +73 -87
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +61 -96
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +61 -96
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +61 -96
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +70 -89
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +70 -89
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +70 -89
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +46 -80
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +46 -80
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +46 -80
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +72 -85
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +72 -85
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +72 -85
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +0 -14
- package/steps/steps.esm.js +0 -14
- package/steps/steps.js +0 -14
- package/styleclass/styleclass.cjs.js +75 -111
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +75 -111
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +75 -111
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +33 -54
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +33 -54
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +33 -54
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +83 -102
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +83 -102
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +83 -102
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +27 -4
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +27 -4
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +27 -4
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +37 -63
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +37 -63
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +37 -63
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +76 -117
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +76 -117
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +76 -117
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +27 -7
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +27 -7
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +27 -7
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +81 -99
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +81 -99
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +81 -99
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +0 -7
- package/togglebutton/togglebutton.esm.js +0 -7
- package/togglebutton/togglebutton.js +0 -7
- package/toolbar/toolbar.cjs.js +0 -2
- package/toolbar/toolbar.esm.js +0 -2
- package/toolbar/toolbar.js +0 -2
- package/tooltip/tooltip.cjs.js +113 -167
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +113 -167
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +113 -167
- package/tooltip/tooltip.min.css +1 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +13 -13
- package/tree/tree.cjs.js +68 -223
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +68 -223
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +68 -223
- package/tree/tree.min.js +1 -1
- package/treenode/treenode.d.ts +1 -0
- package/treeselect/treeselect.cjs.js +117 -167
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +30 -29
- package/treeselect/treeselect.esm.js +117 -167
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +117 -167
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +143 -462
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +143 -462
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +143 -462
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +29 -39
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +29 -39
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +29 -39
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +112 -328
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +112 -328
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +112 -328
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +108 -204
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +108 -204
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +108 -204
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +166 -40
package/tooltip/tooltip.esm.js
CHANGED
|
@@ -8,20 +8,45 @@ function _extends() {
|
|
|
8
8
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
9
9
|
for (var i = 1; i < arguments.length; i++) {
|
|
10
10
|
var source = arguments[i];
|
|
11
|
-
|
|
12
11
|
for (var key in source) {
|
|
13
12
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
14
13
|
target[key] = source[key];
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
return target;
|
|
20
18
|
};
|
|
21
19
|
return _extends.apply(this, arguments);
|
|
22
20
|
}
|
|
23
21
|
|
|
22
|
+
function _typeof(obj) {
|
|
23
|
+
"@babel/helpers - typeof";
|
|
24
|
+
|
|
25
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
26
|
+
return typeof obj;
|
|
27
|
+
} : function (obj) {
|
|
28
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
29
|
+
}, _typeof(obj);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function _toPrimitive(input, hint) {
|
|
33
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
34
|
+
var prim = input[Symbol.toPrimitive];
|
|
35
|
+
if (prim !== undefined) {
|
|
36
|
+
var res = prim.call(input, hint || "default");
|
|
37
|
+
if (_typeof(res) !== "object") return res;
|
|
38
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
39
|
+
}
|
|
40
|
+
return (hint === "string" ? String : Number)(input);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function _toPropertyKey(arg) {
|
|
44
|
+
var key = _toPrimitive(arg, "string");
|
|
45
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
46
|
+
}
|
|
47
|
+
|
|
24
48
|
function _defineProperty(obj, key, value) {
|
|
49
|
+
key = _toPropertyKey(key);
|
|
25
50
|
if (key in obj) {
|
|
26
51
|
Object.defineProperty(obj, key, {
|
|
27
52
|
value: value,
|
|
@@ -32,17 +57,14 @@ function _defineProperty(obj, key, value) {
|
|
|
32
57
|
} else {
|
|
33
58
|
obj[key] = value;
|
|
34
59
|
}
|
|
35
|
-
|
|
36
60
|
return obj;
|
|
37
61
|
}
|
|
38
62
|
|
|
39
63
|
function _arrayLikeToArray(arr, len) {
|
|
40
64
|
if (len == null || len > arr.length) len = arr.length;
|
|
41
|
-
|
|
42
65
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
43
66
|
arr2[i] = arr[i];
|
|
44
67
|
}
|
|
45
|
-
|
|
46
68
|
return arr2;
|
|
47
69
|
}
|
|
48
70
|
|
|
@@ -76,33 +98,33 @@ function _arrayWithHoles(arr) {
|
|
|
76
98
|
}
|
|
77
99
|
|
|
78
100
|
function _iterableToArrayLimit(arr, i) {
|
|
79
|
-
var _i =
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
try {
|
|
89
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
90
|
-
_arr.push(_s.value);
|
|
91
|
-
|
|
92
|
-
if (i && _arr.length === i) break;
|
|
93
|
-
}
|
|
94
|
-
} catch (err) {
|
|
95
|
-
_d = true;
|
|
96
|
-
_e = err;
|
|
97
|
-
} finally {
|
|
101
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
102
|
+
if (null != _i) {
|
|
103
|
+
var _s,
|
|
104
|
+
_e,
|
|
105
|
+
_x,
|
|
106
|
+
_r,
|
|
107
|
+
_arr = [],
|
|
108
|
+
_n = !0,
|
|
109
|
+
_d = !1;
|
|
98
110
|
try {
|
|
99
|
-
if (
|
|
111
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
112
|
+
if (Object(_i) !== _i) return;
|
|
113
|
+
_n = !1;
|
|
114
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
115
|
+
;
|
|
116
|
+
}
|
|
117
|
+
} catch (err) {
|
|
118
|
+
_d = !0, _e = err;
|
|
100
119
|
} finally {
|
|
101
|
-
|
|
120
|
+
try {
|
|
121
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
122
|
+
} finally {
|
|
123
|
+
if (_d) throw _e;
|
|
124
|
+
}
|
|
102
125
|
}
|
|
126
|
+
return _arr;
|
|
103
127
|
}
|
|
104
|
-
|
|
105
|
-
return _arr;
|
|
106
128
|
}
|
|
107
129
|
|
|
108
130
|
function _nonIterableRest() {
|
|
@@ -115,20 +137,17 @@ function _slicedToArray(arr, i) {
|
|
|
115
137
|
|
|
116
138
|
var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
117
139
|
var _React$useState = React.useState(false),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
140
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
141
|
+
visibleState = _React$useState2[0],
|
|
142
|
+
setVisibleState = _React$useState2[1];
|
|
122
143
|
var _React$useState3 = React.useState(props.position),
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
144
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
145
|
+
positionState = _React$useState4[0],
|
|
146
|
+
setPositionState = _React$useState4[1];
|
|
127
147
|
var _React$useState5 = React.useState(''),
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
148
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
149
|
+
classNameState = _React$useState6[0],
|
|
150
|
+
setClassNameState = _React$useState6[1];
|
|
132
151
|
var elementRef = React.useRef(null);
|
|
133
152
|
var textRef = React.useRef(null);
|
|
134
153
|
var currentTargetRef = React.useRef(null);
|
|
@@ -136,90 +155,73 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
136
155
|
var allowHide = React.useRef(true);
|
|
137
156
|
var timeouts = React.useRef({});
|
|
138
157
|
var currentMouseEvent = React.useRef(null);
|
|
139
|
-
|
|
140
158
|
var _useResizeListener = useResizeListener({
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
159
|
+
listener: function listener(event) {
|
|
160
|
+
!DomHandler.isTouchDevice() && hide(event);
|
|
161
|
+
}
|
|
162
|
+
}),
|
|
163
|
+
_useResizeListener2 = _slicedToArray(_useResizeListener, 2),
|
|
164
|
+
bindWindowResizeListener = _useResizeListener2[0],
|
|
165
|
+
unbindWindowResizeListener = _useResizeListener2[1];
|
|
149
166
|
var _useOverlayScrollList = useOverlayScrollListener({
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
167
|
+
target: currentTargetRef.current,
|
|
168
|
+
listener: function listener(event) {
|
|
169
|
+
hide(event);
|
|
170
|
+
},
|
|
171
|
+
when: visibleState
|
|
172
|
+
}),
|
|
173
|
+
_useOverlayScrollList2 = _slicedToArray(_useOverlayScrollList, 2),
|
|
174
|
+
bindOverlayScrollListener = _useOverlayScrollList2[0],
|
|
175
|
+
unbindOverlayScrollListener = _useOverlayScrollList2[1];
|
|
160
176
|
var isTargetContentEmpty = function isTargetContentEmpty(target) {
|
|
161
177
|
return !(props.content || getTargetOption(target, 'tooltip'));
|
|
162
178
|
};
|
|
163
|
-
|
|
164
179
|
var isContentEmpty = function isContentEmpty(target) {
|
|
165
180
|
return !(props.content || getTargetOption(target, 'tooltip') || props.children);
|
|
166
181
|
};
|
|
167
|
-
|
|
168
182
|
var isMouseTrack = function isMouseTrack(target) {
|
|
169
183
|
return getTargetOption(target, 'mousetrack') || props.mouseTrack;
|
|
170
184
|
};
|
|
171
|
-
|
|
172
185
|
var isDisabled = function isDisabled(target) {
|
|
173
186
|
return getTargetOption(target, 'disabled') === 'true' || hasTargetOption(target, 'disabled') || props.disabled;
|
|
174
187
|
};
|
|
175
|
-
|
|
176
188
|
var isShowOnDisabled = function isShowOnDisabled(target) {
|
|
177
189
|
return getTargetOption(target, 'showondisabled') || props.showOnDisabled;
|
|
178
190
|
};
|
|
179
|
-
|
|
180
191
|
var isAutoHide = function isAutoHide() {
|
|
181
192
|
return getTargetOption(currentTargetRef.current, 'autohide') || props.autoHide;
|
|
182
193
|
};
|
|
183
|
-
|
|
184
194
|
var getTargetOption = function getTargetOption(target, option) {
|
|
185
195
|
return hasTargetOption(target, "data-pr-".concat(option)) ? target.getAttribute("data-pr-".concat(option)) : null;
|
|
186
196
|
};
|
|
187
|
-
|
|
188
197
|
var hasTargetOption = function hasTargetOption(target, option) {
|
|
189
198
|
return target && target.hasAttribute(option);
|
|
190
199
|
};
|
|
191
|
-
|
|
192
200
|
var getEvents = function getEvents(target) {
|
|
193
201
|
var showEvents = [getTargetOption(target, 'showevent') || props.showEvent];
|
|
194
202
|
var hideEvents = [getTargetOption(target, 'hideevent') || props.hideEvent];
|
|
195
|
-
|
|
196
203
|
if (isMouseTrack(target)) {
|
|
197
204
|
showEvents = ['mousemove'];
|
|
198
205
|
hideEvents = ['mouseleave'];
|
|
199
206
|
} else {
|
|
200
207
|
var event = getTargetOption(target, 'event') || props.event;
|
|
201
|
-
|
|
202
208
|
if (event === 'focus') {
|
|
203
209
|
showEvents = ['focus'];
|
|
204
210
|
hideEvents = ['blur'];
|
|
205
211
|
}
|
|
206
|
-
|
|
207
212
|
if (event === 'both') {
|
|
208
213
|
showEvents = ['focus', 'mouseenter'];
|
|
209
214
|
hideEvents = ['blur', 'mouseleave'];
|
|
210
215
|
}
|
|
211
216
|
}
|
|
212
|
-
|
|
213
217
|
return {
|
|
214
218
|
showEvents: showEvents,
|
|
215
219
|
hideEvents: hideEvents
|
|
216
220
|
};
|
|
217
221
|
};
|
|
218
|
-
|
|
219
222
|
var getPosition = function getPosition(target) {
|
|
220
223
|
return getTargetOption(target, 'position') || positionState;
|
|
221
224
|
};
|
|
222
|
-
|
|
223
225
|
var getMouseTrackPosition = function getMouseTrackPosition(target) {
|
|
224
226
|
var top = getTargetOption(target, 'mousetracktop') || props.mouseTrackTop;
|
|
225
227
|
var left = getTargetOption(target, 'mousetrackleft') || props.mouseTrackLeft;
|
|
@@ -228,14 +230,11 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
228
230
|
left: left
|
|
229
231
|
};
|
|
230
232
|
};
|
|
231
|
-
|
|
232
233
|
var updateText = function updateText(target, callback) {
|
|
233
234
|
if (textRef.current) {
|
|
234
235
|
var content = getTargetOption(target, 'tooltip') || props.content;
|
|
235
|
-
|
|
236
236
|
if (content) {
|
|
237
237
|
textRef.current.innerHTML = ''; // remove children
|
|
238
|
-
|
|
239
238
|
textRef.current.appendChild(document.createTextNode(content));
|
|
240
239
|
callback();
|
|
241
240
|
} else if (props.children) {
|
|
@@ -243,49 +242,41 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
243
242
|
}
|
|
244
243
|
}
|
|
245
244
|
};
|
|
246
|
-
|
|
247
245
|
var updateTooltipState = function updateTooltipState(position) {
|
|
248
246
|
updateText(currentTargetRef.current, function () {
|
|
249
247
|
var _currentMouseEvent$cu = currentMouseEvent.current,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
248
|
+
x = _currentMouseEvent$cu.pageX,
|
|
249
|
+
y = _currentMouseEvent$cu.pageY;
|
|
253
250
|
if (props.autoZIndex && !ZIndexUtils.get(elementRef.current)) {
|
|
254
251
|
ZIndexUtils.set('tooltip', elementRef.current, PrimeReact.autoZIndex, props.baseZIndex || PrimeReact.zIndex['tooltip']);
|
|
255
252
|
}
|
|
256
|
-
|
|
257
253
|
elementRef.current.style.left = '';
|
|
258
|
-
elementRef.current.style.top = '';
|
|
254
|
+
elementRef.current.style.top = '';
|
|
259
255
|
|
|
256
|
+
// GitHub #2695 disable pointer events when autohiding
|
|
260
257
|
if (isAutoHide()) {
|
|
261
258
|
elementRef.current.style.pointerEvents = 'none';
|
|
262
259
|
}
|
|
263
|
-
|
|
264
|
-
if (isMouseTrack(currentTargetRef.current) && !containerSize.current) {
|
|
260
|
+
if ((isMouseTrack(currentTargetRef.current) || position == 'mouse') && !containerSize.current) {
|
|
265
261
|
containerSize.current = {
|
|
266
262
|
width: DomHandler.getOuterWidth(elementRef.current),
|
|
267
263
|
height: DomHandler.getOuterHeight(elementRef.current)
|
|
268
264
|
};
|
|
269
265
|
}
|
|
270
|
-
|
|
271
266
|
align(currentTargetRef.current, {
|
|
272
267
|
x: x,
|
|
273
268
|
y: y
|
|
274
269
|
}, position);
|
|
275
270
|
});
|
|
276
271
|
};
|
|
277
|
-
|
|
278
272
|
var show = function show(e) {
|
|
279
273
|
currentTargetRef.current = e.currentTarget;
|
|
280
274
|
var disabled = isDisabled(currentTargetRef.current);
|
|
281
275
|
var empty = isContentEmpty(isShowOnDisabled(currentTargetRef.current) && disabled ? currentTargetRef.current.firstChild : currentTargetRef.current);
|
|
282
|
-
|
|
283
276
|
if (empty || disabled) {
|
|
284
277
|
return;
|
|
285
278
|
}
|
|
286
|
-
|
|
287
279
|
currentMouseEvent.current = e;
|
|
288
|
-
|
|
289
280
|
if (visibleState) {
|
|
290
281
|
applyDelay('updateDelay', updateTooltipState);
|
|
291
282
|
} else {
|
|
@@ -294,7 +285,6 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
294
285
|
originalEvent: e,
|
|
295
286
|
target: currentTargetRef.current
|
|
296
287
|
});
|
|
297
|
-
|
|
298
288
|
if (success) {
|
|
299
289
|
applyDelay('showDelay', function () {
|
|
300
290
|
setVisibleState(true);
|
|
@@ -306,22 +296,18 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
306
296
|
}
|
|
307
297
|
}
|
|
308
298
|
};
|
|
309
|
-
|
|
310
299
|
var hide = function hide(e) {
|
|
311
300
|
clearTimeouts();
|
|
312
|
-
|
|
313
301
|
if (visibleState) {
|
|
314
302
|
var success = sendCallback(props.onBeforeHide, {
|
|
315
303
|
originalEvent: e,
|
|
316
304
|
target: currentTargetRef.current
|
|
317
305
|
});
|
|
318
|
-
|
|
319
306
|
if (success) {
|
|
320
307
|
applyDelay('hideDelay', function () {
|
|
321
308
|
if (!isAutoHide() && allowHide.current === false) {
|
|
322
309
|
return;
|
|
323
310
|
}
|
|
324
|
-
|
|
325
311
|
ZIndexUtils.clear(elementRef.current);
|
|
326
312
|
DomHandler.removeClass(elementRef.current, 'p-tooltip-active');
|
|
327
313
|
setVisibleState(false);
|
|
@@ -333,46 +319,39 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
333
319
|
}
|
|
334
320
|
}
|
|
335
321
|
};
|
|
336
|
-
|
|
337
322
|
var align = function align(target, coordinate, position) {
|
|
338
323
|
var left = 0,
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
if (isMouseTrack(target) && coordinate) {
|
|
324
|
+
top = 0,
|
|
325
|
+
currentPosition = position || positionState;
|
|
326
|
+
if ((isMouseTrack(target) || currentPosition == 'mouse') && coordinate) {
|
|
343
327
|
var _containerSize = {
|
|
344
328
|
width: DomHandler.getOuterWidth(elementRef.current),
|
|
345
329
|
height: DomHandler.getOuterHeight(elementRef.current)
|
|
346
330
|
};
|
|
347
331
|
left = coordinate.x;
|
|
348
332
|
top = coordinate.y;
|
|
349
|
-
|
|
350
333
|
var _getMouseTrackPositio = getMouseTrackPosition(target),
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
334
|
+
mouseTrackTop = _getMouseTrackPositio.top,
|
|
335
|
+
mouseTrackLeft = _getMouseTrackPositio.left;
|
|
354
336
|
switch (currentPosition) {
|
|
355
337
|
case 'left':
|
|
356
338
|
left -= _containerSize.width + mouseTrackLeft;
|
|
357
339
|
top -= _containerSize.height / 2 - mouseTrackTop;
|
|
358
340
|
break;
|
|
359
|
-
|
|
360
341
|
case 'right':
|
|
342
|
+
case 'mouse':
|
|
361
343
|
left += mouseTrackLeft;
|
|
362
344
|
top -= _containerSize.height / 2 - mouseTrackTop;
|
|
363
345
|
break;
|
|
364
|
-
|
|
365
346
|
case 'top':
|
|
366
347
|
left -= _containerSize.width / 2 - mouseTrackLeft;
|
|
367
348
|
top -= _containerSize.height + mouseTrackTop;
|
|
368
349
|
break;
|
|
369
|
-
|
|
370
350
|
case 'bottom':
|
|
371
351
|
left -= _containerSize.width / 2 - mouseTrackLeft;
|
|
372
352
|
top += mouseTrackTop;
|
|
373
353
|
break;
|
|
374
354
|
}
|
|
375
|
-
|
|
376
355
|
if (left <= 0 || containerSize.current.width > _containerSize.width) {
|
|
377
356
|
elementRef.current.style.left = '0px';
|
|
378
357
|
elementRef.current.style.right = window.innerWidth - _containerSize.width - left + 'px';
|
|
@@ -380,7 +359,6 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
380
359
|
elementRef.current.style.right = '';
|
|
381
360
|
elementRef.current.style.left = left + 'px';
|
|
382
361
|
}
|
|
383
|
-
|
|
384
362
|
elementRef.current.style.top = top + 'px';
|
|
385
363
|
DomHandler.addClass(elementRef.current, 'p-tooltip-active');
|
|
386
364
|
} else {
|
|
@@ -390,8 +368,8 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
390
368
|
elementRef.current.style.padding = '0px';
|
|
391
369
|
DomHandler.flipfitCollision(elementRef.current, target, my, at, function (calculatedPosition) {
|
|
392
370
|
var _calculatedPosition$a = calculatedPosition.at,
|
|
393
|
-
|
|
394
|
-
|
|
371
|
+
atX = _calculatedPosition$a.x,
|
|
372
|
+
atY = _calculatedPosition$a.y;
|
|
395
373
|
var myX = calculatedPosition.my.x;
|
|
396
374
|
var newPosition = props.at ? atX !== 'center' && atX !== myX ? atX : atY : calculatedPosition.at["".concat(pos.axis)];
|
|
397
375
|
elementRef.current.style.padding = '';
|
|
@@ -401,33 +379,28 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
401
379
|
});
|
|
402
380
|
}
|
|
403
381
|
};
|
|
404
|
-
|
|
405
382
|
var updateContainerPosition = function updateContainerPosition(position) {
|
|
406
383
|
if (elementRef.current) {
|
|
407
384
|
var style = getComputedStyle(elementRef.current);
|
|
408
385
|
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';
|
|
409
386
|
}
|
|
410
387
|
};
|
|
411
|
-
|
|
412
388
|
var onMouseEnter = function onMouseEnter() {
|
|
413
389
|
if (!isAutoHide()) {
|
|
414
390
|
allowHide.current = false;
|
|
415
391
|
}
|
|
416
392
|
};
|
|
417
|
-
|
|
418
393
|
var onMouseLeave = function onMouseLeave(e) {
|
|
419
394
|
if (!isAutoHide()) {
|
|
420
395
|
allowHide.current = true;
|
|
421
396
|
hide(e);
|
|
422
397
|
}
|
|
423
398
|
};
|
|
424
|
-
|
|
425
399
|
var bindTargetEvent = function bindTargetEvent(target) {
|
|
426
400
|
if (target) {
|
|
427
401
|
var _getEvents = getEvents(target),
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
402
|
+
showEvents = _getEvents.showEvents,
|
|
403
|
+
hideEvents = _getEvents.hideEvents;
|
|
431
404
|
var currentTarget = getTarget(target);
|
|
432
405
|
showEvents.forEach(function (event) {
|
|
433
406
|
return currentTarget.addEventListener(event, show);
|
|
@@ -437,13 +410,11 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
437
410
|
});
|
|
438
411
|
}
|
|
439
412
|
};
|
|
440
|
-
|
|
441
413
|
var unbindTargetEvent = function unbindTargetEvent(target) {
|
|
442
414
|
if (target) {
|
|
443
415
|
var _getEvents2 = getEvents(target),
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
416
|
+
showEvents = _getEvents2.showEvents,
|
|
417
|
+
hideEvents = _getEvents2.hideEvents;
|
|
447
418
|
var currentTarget = getTarget(target);
|
|
448
419
|
showEvents.forEach(function (event) {
|
|
449
420
|
return currentTarget.removeEventListener(event, show);
|
|
@@ -453,7 +424,6 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
453
424
|
});
|
|
454
425
|
}
|
|
455
426
|
};
|
|
456
|
-
|
|
457
427
|
var applyDelay = function applyDelay(delayProp, callback) {
|
|
458
428
|
clearTimeouts();
|
|
459
429
|
var delay = getTargetOption(currentTargetRef.current, delayProp.toLowerCase()) || props[delayProp];
|
|
@@ -461,31 +431,24 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
461
431
|
return callback();
|
|
462
432
|
}, delay) : callback();
|
|
463
433
|
};
|
|
464
|
-
|
|
465
434
|
var sendCallback = function sendCallback(callback) {
|
|
466
435
|
if (callback) {
|
|
467
436
|
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
468
437
|
params[_key - 1] = arguments[_key];
|
|
469
438
|
}
|
|
470
|
-
|
|
471
439
|
var result = callback.apply(void 0, params);
|
|
472
|
-
|
|
473
440
|
if (result === undefined) {
|
|
474
441
|
result = true;
|
|
475
442
|
}
|
|
476
|
-
|
|
477
443
|
return result;
|
|
478
444
|
}
|
|
479
|
-
|
|
480
445
|
return true;
|
|
481
446
|
};
|
|
482
|
-
|
|
483
447
|
var clearTimeouts = function clearTimeouts() {
|
|
484
448
|
Object.values(timeouts.current).forEach(function (t) {
|
|
485
449
|
return clearTimeout(t);
|
|
486
450
|
});
|
|
487
451
|
};
|
|
488
|
-
|
|
489
452
|
var getTarget = function getTarget(target) {
|
|
490
453
|
if (target) {
|
|
491
454
|
if (isShowOnDisabled(target)) {
|
|
@@ -500,34 +463,25 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
500
463
|
}
|
|
501
464
|
} else if (target.hasWrapper) {
|
|
502
465
|
var _target$parentElement;
|
|
503
|
-
|
|
504
466
|
(_target$parentElement = target.parentElement).replaceWith.apply(_target$parentElement, _toConsumableArray(target.parentElement.childNodes));
|
|
505
|
-
|
|
506
467
|
delete target.hasWrapper;
|
|
507
468
|
}
|
|
508
|
-
|
|
509
469
|
return target;
|
|
510
470
|
}
|
|
511
|
-
|
|
512
471
|
return null;
|
|
513
472
|
};
|
|
514
|
-
|
|
515
473
|
var updateTargetEvents = function updateTargetEvents(target) {
|
|
516
474
|
unloadTargetEvents(target);
|
|
517
475
|
loadTargetEvents(target);
|
|
518
476
|
};
|
|
519
|
-
|
|
520
477
|
var loadTargetEvents = function loadTargetEvents(target) {
|
|
521
478
|
setTargetEventOperations(target || props.target, bindTargetEvent);
|
|
522
479
|
};
|
|
523
|
-
|
|
524
480
|
var unloadTargetEvents = function unloadTargetEvents(target) {
|
|
525
481
|
setTargetEventOperations(target || props.target, unbindTargetEvent);
|
|
526
482
|
};
|
|
527
|
-
|
|
528
483
|
var setTargetEventOperations = function setTargetEventOperations(target, operation) {
|
|
529
484
|
target = ObjectUtils.getRefElement(target);
|
|
530
|
-
|
|
531
485
|
if (target) {
|
|
532
486
|
if (DomHandler.isElement(target)) {
|
|
533
487
|
operation(target);
|
|
@@ -538,7 +492,6 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
538
492
|
operation(el);
|
|
539
493
|
});
|
|
540
494
|
};
|
|
541
|
-
|
|
542
495
|
if (target instanceof Array) {
|
|
543
496
|
target.forEach(function (t) {
|
|
544
497
|
setEvent(t);
|
|
@@ -549,15 +502,12 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
549
502
|
}
|
|
550
503
|
}
|
|
551
504
|
};
|
|
552
|
-
|
|
553
|
-
|
|
505
|
+
useMountEffect(function () {
|
|
506
|
+
loadTargetEvents();
|
|
554
507
|
if (visibleState && currentTargetRef.current && isDisabled(currentTargetRef.current)) {
|
|
555
508
|
hide();
|
|
556
509
|
}
|
|
557
510
|
});
|
|
558
|
-
useMountEffect(function () {
|
|
559
|
-
loadTargetEvents();
|
|
560
|
-
});
|
|
561
511
|
useUpdateEffect(function () {
|
|
562
512
|
loadTargetEvents();
|
|
563
513
|
return function () {
|
|
@@ -580,7 +530,6 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
580
530
|
containerSize.current = null;
|
|
581
531
|
allowHide.current = true;
|
|
582
532
|
}
|
|
583
|
-
|
|
584
533
|
return function () {
|
|
585
534
|
unbindWindowResizeListener();
|
|
586
535
|
unbindOverlayScrollListener();
|
|
@@ -616,7 +565,6 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
616
565
|
}
|
|
617
566
|
};
|
|
618
567
|
});
|
|
619
|
-
|
|
620
568
|
var createElement = function createElement() {
|
|
621
569
|
var otherProps = ObjectUtils.findDiffKeys(props, Tooltip.defaultProps);
|
|
622
570
|
var tooltipClassName = classNames('p-tooltip p-component', _defineProperty({}, "p-tooltip-".concat(positionState), true), props.className, classNameState);
|
|
@@ -638,7 +586,6 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
638
586
|
className: "p-tooltip-text"
|
|
639
587
|
}, empty && props.children));
|
|
640
588
|
};
|
|
641
|
-
|
|
642
589
|
if (visibleState) {
|
|
643
590
|
var element = createElement();
|
|
644
591
|
return /*#__PURE__*/React.createElement(Portal, {
|
|
@@ -647,39 +594,38 @@ var Tooltip = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
647
594
|
visible: true
|
|
648
595
|
});
|
|
649
596
|
}
|
|
650
|
-
|
|
651
597
|
return null;
|
|
652
598
|
}));
|
|
653
599
|
Tooltip.displayName = 'Tooltip';
|
|
654
600
|
Tooltip.defaultProps = {
|
|
655
601
|
__TYPE: 'Tooltip',
|
|
656
|
-
id: null,
|
|
657
|
-
target: null,
|
|
658
|
-
content: null,
|
|
659
|
-
disabled: false,
|
|
660
|
-
className: null,
|
|
661
|
-
style: null,
|
|
662
602
|
appendTo: null,
|
|
663
|
-
position: 'right',
|
|
664
|
-
my: null,
|
|
665
603
|
at: null,
|
|
666
|
-
|
|
667
|
-
showEvent: 'mouseenter',
|
|
668
|
-
hideEvent: 'mouseleave',
|
|
604
|
+
autoHide: true,
|
|
669
605
|
autoZIndex: true,
|
|
670
606
|
baseZIndex: 0,
|
|
607
|
+
className: null,
|
|
608
|
+
content: null,
|
|
609
|
+
disabled: false,
|
|
610
|
+
event: null,
|
|
611
|
+
hideDelay: 0,
|
|
612
|
+
hideEvent: 'mouseleave',
|
|
613
|
+
id: null,
|
|
671
614
|
mouseTrack: false,
|
|
672
|
-
mouseTrackTop: 5,
|
|
673
615
|
mouseTrackLeft: 5,
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
hideDelay: 0,
|
|
677
|
-
autoHide: true,
|
|
678
|
-
showOnDisabled: false,
|
|
679
|
-
onBeforeShow: null,
|
|
616
|
+
mouseTrackTop: 5,
|
|
617
|
+
my: null,
|
|
680
618
|
onBeforeHide: null,
|
|
619
|
+
onBeforeShow: null,
|
|
620
|
+
onHide: null,
|
|
681
621
|
onShow: null,
|
|
682
|
-
|
|
622
|
+
position: 'right',
|
|
623
|
+
showDelay: 0,
|
|
624
|
+
showEvent: 'mouseenter',
|
|
625
|
+
showOnDisabled: false,
|
|
626
|
+
style: null,
|
|
627
|
+
target: null,
|
|
628
|
+
updateDelay: 0
|
|
683
629
|
};
|
|
684
630
|
|
|
685
631
|
export { Tooltip };
|