@exhaustive-ui/core 3.0.0-alpha.0 → 22.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +10 -17
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +786 -928
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +561 -599
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +227 -394
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +255 -266
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +585 -653
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1792 -1787
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +480 -577
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +774 -745
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +68 -102
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +591 -728
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +324 -375
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +945 -1045
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +861 -879
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +837 -986
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2435 -2721
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +604 -690
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +333 -423
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +11 -11
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +11 -6
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, InjectionToken, inject, NgZone, ViewContainerRef, input,
|
|
2
|
+
import { Injectable, InjectionToken, inject, NgZone, ViewContainerRef, input, booleanAttribute, numberAttribute, linkedSignal, signal, effect, untracked, afterNextRender, Directive, NgModule } from '@angular/core';
|
|
4
3
|
import { uuid, hasClass, createElement, appendChild, fadeIn, getWindowScrollLeft, getWindowScrollTop, findSingle, getOuterWidth, getOuterHeight, getViewport, removeChild } from '@exhaustive-ui/utils';
|
|
5
4
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
6
5
|
import { BindModule } from '@exhaustive-ui/core/bind';
|
|
@@ -63,99 +62,99 @@ class Tooltip extends BaseComponent {
|
|
|
63
62
|
* Position of the tooltip.
|
|
64
63
|
* @group Props
|
|
65
64
|
*/
|
|
66
|
-
tooltipPosition
|
|
65
|
+
tooltipPosition = input(undefined, /* @ts-ignore */
|
|
66
|
+
...(ngDevMode ? [{ debugName: "tooltipPosition" }] : /* istanbul ignore next */ []));
|
|
67
67
|
/**
|
|
68
68
|
* Event to show the tooltip.
|
|
69
69
|
* @group Props
|
|
70
70
|
*/
|
|
71
|
-
tooltipEvent = 'hover'
|
|
71
|
+
tooltipEvent = input('hover', /* @ts-ignore */
|
|
72
|
+
...(ngDevMode ? [{ debugName: "tooltipEvent" }] : /* istanbul ignore next */ []));
|
|
72
73
|
/**
|
|
73
74
|
* Type of CSS position.
|
|
74
75
|
* @group Props
|
|
75
76
|
*/
|
|
76
|
-
positionStyle
|
|
77
|
+
positionStyle = input(undefined, /* @ts-ignore */
|
|
78
|
+
...(ngDevMode ? [{ debugName: "positionStyle" }] : /* istanbul ignore next */ []));
|
|
77
79
|
/**
|
|
78
80
|
* Style class of the tooltip.
|
|
79
81
|
* @group Props
|
|
80
82
|
*/
|
|
81
|
-
tooltipStyleClass
|
|
83
|
+
tooltipStyleClass = input(undefined, /* @ts-ignore */
|
|
84
|
+
...(ngDevMode ? [{ debugName: "tooltipStyleClass" }] : /* istanbul ignore next */ []));
|
|
82
85
|
/**
|
|
83
86
|
* Whether the z-index should be managed automatically to always go on top or have a fixed value.
|
|
84
87
|
* @group Props
|
|
85
88
|
*/
|
|
86
|
-
tooltipZIndex
|
|
89
|
+
tooltipZIndex = input(undefined, /* @ts-ignore */
|
|
90
|
+
...(ngDevMode ? [{ debugName: "tooltipZIndex" }] : /* istanbul ignore next */ []));
|
|
87
91
|
/**
|
|
88
92
|
* By default the tooltip contents are rendered as text. Set to false to support html tags in the content.
|
|
89
93
|
* @group Props
|
|
90
94
|
*/
|
|
91
|
-
escape = true;
|
|
95
|
+
escape = input(true, { ...(ngDevMode ? { debugName: "escape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
92
96
|
/**
|
|
93
97
|
* Delay to show the tooltip in milliseconds.
|
|
94
98
|
* @group Props
|
|
95
99
|
*/
|
|
96
|
-
showDelay;
|
|
100
|
+
showDelay = input(undefined, { ...(ngDevMode ? { debugName: "showDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
97
101
|
/**
|
|
98
102
|
* Delay to hide the tooltip in milliseconds.
|
|
99
103
|
* @group Props
|
|
100
104
|
*/
|
|
101
|
-
hideDelay;
|
|
105
|
+
hideDelay = input(undefined, { ...(ngDevMode ? { debugName: "hideDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
102
106
|
/**
|
|
103
107
|
* Time to wait in milliseconds to hide the tooltip even it is active.
|
|
104
108
|
* @group Props
|
|
105
109
|
*/
|
|
106
|
-
life;
|
|
110
|
+
life = input(undefined, { ...(ngDevMode ? { debugName: "life" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
107
111
|
/**
|
|
108
112
|
* Specifies the additional vertical offset of the tooltip from its default position.
|
|
109
113
|
* @group Props
|
|
110
114
|
*/
|
|
111
|
-
positionTop;
|
|
115
|
+
positionTop = input(undefined, { ...(ngDevMode ? { debugName: "positionTop" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
112
116
|
/**
|
|
113
117
|
* Specifies the additional horizontal offset of the tooltip from its default position.
|
|
114
118
|
* @group Props
|
|
115
119
|
*/
|
|
116
|
-
positionLeft;
|
|
120
|
+
positionLeft = input(undefined, { ...(ngDevMode ? { debugName: "positionLeft" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
117
121
|
/**
|
|
118
122
|
* Whether to hide tooltip when hovering over tooltip content.
|
|
119
123
|
* @group Props
|
|
120
124
|
*/
|
|
121
|
-
autoHide = true;
|
|
125
|
+
autoHide = input(true, { ...(ngDevMode ? { debugName: "autoHide" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
122
126
|
/**
|
|
123
127
|
* Automatically adjusts the element position when there is not enough space on the selected position.
|
|
124
128
|
* @group Props
|
|
125
129
|
*/
|
|
126
|
-
fitContent = true;
|
|
130
|
+
fitContent = input(true, { ...(ngDevMode ? { debugName: "fitContent" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
127
131
|
/**
|
|
128
132
|
* Whether to hide tooltip on escape key press.
|
|
129
133
|
* @group Props
|
|
130
134
|
*/
|
|
131
|
-
hideOnEscape = true;
|
|
135
|
+
hideOnEscape = input(true, { ...(ngDevMode ? { debugName: "hideOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
132
136
|
/**
|
|
133
137
|
* Whether to show the tooltip only when the target text overflows (e.g., ellipsis is active).
|
|
134
138
|
* @group Props
|
|
135
139
|
*/
|
|
136
|
-
showOnEllipsis = false;
|
|
140
|
+
showOnEllipsis = input(false, { ...(ngDevMode ? { debugName: "showOnEllipsis" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
137
141
|
/**
|
|
138
142
|
* Content of the tooltip.
|
|
139
143
|
* @group Props
|
|
140
144
|
*/
|
|
141
|
-
content;
|
|
145
|
+
content = input(undefined, { ...(ngDevMode ? { debugName: "content" } : /* istanbul ignore next */ {}), alias: 'pTooltip' });
|
|
142
146
|
/**
|
|
143
147
|
* When present, it specifies that the component should be disabled.
|
|
144
148
|
* @defaultValue false
|
|
145
149
|
* @group Props
|
|
146
150
|
*/
|
|
147
|
-
|
|
148
|
-
return this._disabled;
|
|
149
|
-
}
|
|
150
|
-
set disabled(val) {
|
|
151
|
-
this._disabled = val;
|
|
152
|
-
this.deactivate();
|
|
153
|
-
}
|
|
151
|
+
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), alias: 'tooltipDisabled' });
|
|
154
152
|
/**
|
|
155
153
|
* Specifies the tooltip configuration options for the component.
|
|
156
154
|
* @group Props
|
|
157
155
|
*/
|
|
158
|
-
tooltipOptions
|
|
156
|
+
tooltipOptions = input(undefined, /* @ts-ignore */
|
|
157
|
+
...(ngDevMode ? [{ debugName: "tooltipOptions" }] : /* istanbul ignore next */ []));
|
|
159
158
|
/**
|
|
160
159
|
* Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
|
161
160
|
* @defaultValue 'self'
|
|
@@ -163,51 +162,68 @@ class Tooltip extends BaseComponent {
|
|
|
163
162
|
*/
|
|
164
163
|
appendTo = input(undefined, /* @ts-ignore */
|
|
165
164
|
...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
container
|
|
190
|
-
|
|
191
|
-
tooltipText
|
|
192
|
-
|
|
193
|
-
showTimeout
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
165
|
+
_id = uuid('pn_id_') + '_tooltip';
|
|
166
|
+
_tooltipOptions = linkedSignal(() => ({
|
|
167
|
+
tooltipLabel: this.content() ?? null,
|
|
168
|
+
tooltipPosition: this.tooltipPosition() ?? 'right',
|
|
169
|
+
tooltipEvent: this.tooltipEvent(),
|
|
170
|
+
appendTo: this.appendTo() ?? 'body',
|
|
171
|
+
positionStyle: this.positionStyle() ?? null,
|
|
172
|
+
tooltipStyleClass: this.tooltipStyleClass() ?? null,
|
|
173
|
+
tooltipZIndex: this.tooltipZIndex() ?? 'auto',
|
|
174
|
+
escape: this.escape(),
|
|
175
|
+
disabled: this.disabled() ?? null,
|
|
176
|
+
showDelay: this.showDelay() ?? null,
|
|
177
|
+
hideDelay: this.hideDelay() ?? null,
|
|
178
|
+
positionTop: this.positionTop() ?? null,
|
|
179
|
+
positionLeft: this.positionLeft() ?? null,
|
|
180
|
+
life: this.life() ?? null,
|
|
181
|
+
autoHide: this.autoHide(),
|
|
182
|
+
hideOnEscape: this.hideOnEscape(),
|
|
183
|
+
showOnEllipsis: this.showOnEllipsis(),
|
|
184
|
+
id: this._id,
|
|
185
|
+
...this.tooltipOptions()
|
|
186
|
+
}), /* @ts-ignore */
|
|
187
|
+
...(ngDevMode ? [{ debugName: "_tooltipOptions" }] : /* istanbul ignore next */ []));
|
|
188
|
+
container = signal(undefined, /* @ts-ignore */
|
|
189
|
+
...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
190
|
+
tooltipText = signal(undefined, /* @ts-ignore */
|
|
191
|
+
...(ngDevMode ? [{ debugName: "tooltipText" }] : /* istanbul ignore next */ []));
|
|
192
|
+
showTimeout = signal(undefined, /* @ts-ignore */
|
|
193
|
+
...(ngDevMode ? [{ debugName: "showTimeout" }] : /* istanbul ignore next */ []));
|
|
194
|
+
hideTimeout = signal(undefined, /* @ts-ignore */
|
|
195
|
+
...(ngDevMode ? [{ debugName: "hideTimeout" }] : /* istanbul ignore next */ []));
|
|
196
|
+
active = signal(undefined, /* @ts-ignore */
|
|
197
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
198
|
+
mouseEnterListener = signal(undefined, /* @ts-ignore */
|
|
199
|
+
...(ngDevMode ? [{ debugName: "mouseEnterListener" }] : /* istanbul ignore next */ []));
|
|
200
|
+
mouseLeaveListener = signal(undefined, /* @ts-ignore */
|
|
201
|
+
...(ngDevMode ? [{ debugName: "mouseLeaveListener" }] : /* istanbul ignore next */ []));
|
|
202
|
+
containerMouseleaveListener = signal(undefined, /* @ts-ignore */
|
|
203
|
+
...(ngDevMode ? [{ debugName: "containerMouseleaveListener" }] : /* istanbul ignore next */ []));
|
|
204
|
+
clickListener = signal(undefined, /* @ts-ignore */
|
|
205
|
+
...(ngDevMode ? [{ debugName: "clickListener" }] : /* istanbul ignore next */ []));
|
|
206
|
+
focusListener = signal(undefined, /* @ts-ignore */
|
|
207
|
+
...(ngDevMode ? [{ debugName: "focusListener" }] : /* istanbul ignore next */ []));
|
|
208
|
+
blurListener = signal(undefined, /* @ts-ignore */
|
|
209
|
+
...(ngDevMode ? [{ debugName: "blurListener" }] : /* istanbul ignore next */ []));
|
|
210
|
+
touchStartListener = signal(undefined, /* @ts-ignore */
|
|
211
|
+
...(ngDevMode ? [{ debugName: "touchStartListener" }] : /* istanbul ignore next */ []));
|
|
212
|
+
touchEndListener = signal(undefined, /* @ts-ignore */
|
|
213
|
+
...(ngDevMode ? [{ debugName: "touchEndListener" }] : /* istanbul ignore next */ []));
|
|
214
|
+
documentTouchListener = signal(undefined, /* @ts-ignore */
|
|
215
|
+
...(ngDevMode ? [{ debugName: "documentTouchListener" }] : /* istanbul ignore next */ []));
|
|
216
|
+
documentEscapeListener = signal(undefined, /* @ts-ignore */
|
|
217
|
+
...(ngDevMode ? [{ debugName: "documentEscapeListener" }] : /* istanbul ignore next */ []));
|
|
218
|
+
scrollHandler = signal(undefined, /* @ts-ignore */
|
|
219
|
+
...(ngDevMode ? [{ debugName: "scrollHandler" }] : /* istanbul ignore next */ []));
|
|
220
|
+
resizeListener = signal(undefined, /* @ts-ignore */
|
|
221
|
+
...(ngDevMode ? [{ debugName: "resizeListener" }] : /* istanbul ignore next */ []));
|
|
208
222
|
_componentStyle = inject(TooltipStyle);
|
|
209
|
-
interactionInProgress = false
|
|
210
|
-
|
|
223
|
+
interactionInProgress = signal(false, /* @ts-ignore */
|
|
224
|
+
...(ngDevMode ? [{ debugName: "interactionInProgress" }] : /* istanbul ignore next */ []));
|
|
225
|
+
pointerInside = signal(false, /* @ts-ignore */
|
|
226
|
+
...(ngDevMode ? [{ debugName: "pointerInside" }] : /* istanbul ignore next */ []));
|
|
211
227
|
/**
|
|
212
228
|
* Used to pass attributes to DOM elements inside the Tooltip component.
|
|
213
229
|
* @defaultValue undefined
|
|
@@ -239,121 +255,58 @@ class Tooltip extends BaseComponent {
|
|
|
239
255
|
effect(() => {
|
|
240
256
|
this.pTooltipUnstyled() && this.directiveUnstyled.set(this.pTooltipUnstyled());
|
|
241
257
|
});
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
258
|
+
effect(() => {
|
|
259
|
+
const content = this.content();
|
|
260
|
+
untracked(() => {
|
|
261
|
+
if (this.active()) {
|
|
262
|
+
if (content) {
|
|
263
|
+
if (this.container() && this.container().offsetParent) {
|
|
264
|
+
this.updateText();
|
|
265
|
+
this.align();
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
this.show();
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
this.hide();
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
effect(() => {
|
|
278
|
+
this.tooltipOptions();
|
|
279
|
+
this.disabled();
|
|
280
|
+
untracked(() => this.deactivate());
|
|
281
|
+
});
|
|
282
|
+
afterNextRender(() => {
|
|
245
283
|
this.zone.runOutsideAngular(() => {
|
|
246
284
|
const tooltipEvent = this.getOption('tooltipEvent');
|
|
247
285
|
if (tooltipEvent === 'hover' || tooltipEvent === 'both') {
|
|
248
|
-
this.mouseEnterListener
|
|
249
|
-
this.mouseLeaveListener
|
|
250
|
-
this.clickListener
|
|
251
|
-
this.el.nativeElement.addEventListener('mouseenter', this.mouseEnterListener);
|
|
252
|
-
this.el.nativeElement.addEventListener('click', this.clickListener);
|
|
253
|
-
this.el.nativeElement.addEventListener('mouseleave', this.mouseLeaveListener);
|
|
286
|
+
this.mouseEnterListener.set(this.onMouseEnter.bind(this));
|
|
287
|
+
this.mouseLeaveListener.set(this.onMouseLeave.bind(this));
|
|
288
|
+
this.clickListener.set(this.onInputClick.bind(this));
|
|
289
|
+
this.el.nativeElement.addEventListener('mouseenter', this.mouseEnterListener());
|
|
290
|
+
this.el.nativeElement.addEventListener('click', this.clickListener());
|
|
291
|
+
this.el.nativeElement.addEventListener('mouseleave', this.mouseLeaveListener());
|
|
254
292
|
// Touch support
|
|
255
|
-
this.touchStartListener
|
|
256
|
-
this.touchEndListener
|
|
257
|
-
this.el.nativeElement.addEventListener('touchstart', this.touchStartListener, { passive: true });
|
|
258
|
-
this.el.nativeElement.addEventListener('touchend', this.touchEndListener, { passive: true });
|
|
293
|
+
this.touchStartListener.set(this.onTouchStart.bind(this));
|
|
294
|
+
this.touchEndListener.set(this.onTouchEnd.bind(this));
|
|
295
|
+
this.el.nativeElement.addEventListener('touchstart', this.touchStartListener(), { passive: true });
|
|
296
|
+
this.el.nativeElement.addEventListener('touchend', this.touchEndListener(), { passive: true });
|
|
259
297
|
}
|
|
260
298
|
if (tooltipEvent === 'focus' || tooltipEvent === 'both') {
|
|
261
|
-
this.focusListener
|
|
262
|
-
this.blurListener
|
|
299
|
+
this.focusListener.set(this.onFocus.bind(this));
|
|
300
|
+
this.blurListener.set(this.onBlur.bind(this));
|
|
263
301
|
let target = this.el.nativeElement.querySelector('.p-component');
|
|
264
302
|
if (!target) {
|
|
265
303
|
target = this.getTarget(this.el.nativeElement);
|
|
266
304
|
}
|
|
267
|
-
target.addEventListener('focus', this.focusListener);
|
|
268
|
-
target.addEventListener('blur', this.blurListener);
|
|
305
|
+
target.addEventListener('focus', this.focusListener());
|
|
306
|
+
target.addEventListener('blur', this.blurListener());
|
|
269
307
|
}
|
|
270
308
|
});
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
onChanges(simpleChange) {
|
|
274
|
-
if (simpleChange.tooltipPosition) {
|
|
275
|
-
this.setOption({ tooltipPosition: simpleChange.tooltipPosition.currentValue });
|
|
276
|
-
}
|
|
277
|
-
if (simpleChange.tooltipEvent) {
|
|
278
|
-
this.setOption({ tooltipEvent: simpleChange.tooltipEvent.currentValue });
|
|
279
|
-
}
|
|
280
|
-
if (simpleChange.appendTo) {
|
|
281
|
-
this.setOption({ appendTo: simpleChange.appendTo.currentValue });
|
|
282
|
-
}
|
|
283
|
-
if (simpleChange.positionStyle) {
|
|
284
|
-
this.setOption({ positionStyle: simpleChange.positionStyle.currentValue });
|
|
285
|
-
}
|
|
286
|
-
if (simpleChange.tooltipStyleClass) {
|
|
287
|
-
this.setOption({ tooltipStyleClass: simpleChange.tooltipStyleClass.currentValue });
|
|
288
|
-
}
|
|
289
|
-
if (simpleChange.tooltipZIndex) {
|
|
290
|
-
this.setOption({ tooltipZIndex: simpleChange.tooltipZIndex.currentValue });
|
|
291
|
-
}
|
|
292
|
-
if (simpleChange.escape) {
|
|
293
|
-
this.setOption({ escape: simpleChange.escape.currentValue });
|
|
294
|
-
}
|
|
295
|
-
if (simpleChange.showDelay) {
|
|
296
|
-
this.setOption({ showDelay: simpleChange.showDelay.currentValue });
|
|
297
|
-
}
|
|
298
|
-
if (simpleChange.hideDelay) {
|
|
299
|
-
this.setOption({ hideDelay: simpleChange.hideDelay.currentValue });
|
|
300
|
-
}
|
|
301
|
-
if (simpleChange.life) {
|
|
302
|
-
this.setOption({ life: simpleChange.life.currentValue });
|
|
303
|
-
}
|
|
304
|
-
if (simpleChange.positionTop) {
|
|
305
|
-
this.setOption({ positionTop: simpleChange.positionTop.currentValue });
|
|
306
|
-
}
|
|
307
|
-
if (simpleChange.positionLeft) {
|
|
308
|
-
this.setOption({ positionLeft: simpleChange.positionLeft.currentValue });
|
|
309
|
-
}
|
|
310
|
-
if (simpleChange.disabled) {
|
|
311
|
-
this.setOption({ disabled: simpleChange.disabled.currentValue });
|
|
312
|
-
}
|
|
313
|
-
if (simpleChange.content) {
|
|
314
|
-
this.setOption({ tooltipLabel: simpleChange.content.currentValue });
|
|
315
|
-
if (this.active) {
|
|
316
|
-
if (simpleChange.content.currentValue) {
|
|
317
|
-
if (this.container && this.container.offsetParent) {
|
|
318
|
-
this.updateText();
|
|
319
|
-
this.align();
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
this.show();
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
this.hide();
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
if (simpleChange.autoHide) {
|
|
331
|
-
this.setOption({ autoHide: simpleChange.autoHide.currentValue });
|
|
332
|
-
}
|
|
333
|
-
if (simpleChange.showOnEllipsis) {
|
|
334
|
-
this.setOption({ showOnEllipsis: simpleChange.showOnEllipsis.currentValue });
|
|
335
|
-
}
|
|
336
|
-
if (simpleChange.id) {
|
|
337
|
-
this.setOption({ id: simpleChange.id.currentValue });
|
|
338
|
-
}
|
|
339
|
-
if (simpleChange.tooltipOptions) {
|
|
340
|
-
this._tooltipOptions = { ...this._tooltipOptions, ...simpleChange.tooltipOptions.currentValue };
|
|
341
|
-
this.deactivate();
|
|
342
|
-
if (this.active) {
|
|
343
|
-
if (this.getOption('tooltipLabel')) {
|
|
344
|
-
if (this.container && this.container.offsetParent) {
|
|
345
|
-
this.updateText();
|
|
346
|
-
this.align();
|
|
347
|
-
}
|
|
348
|
-
else {
|
|
349
|
-
this.show();
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
this.hide();
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
309
|
+
});
|
|
357
310
|
}
|
|
358
311
|
isAutoHide() {
|
|
359
312
|
return this.getOption('autoHide');
|
|
@@ -363,16 +316,16 @@ class Tooltip extends BaseComponent {
|
|
|
363
316
|
// detached (e.g. an overlay rendered inside the host closing on click), without the
|
|
364
317
|
// pointer ever leaving. An enter without a preceding leave is not a new hover, so
|
|
365
318
|
// ignore it - otherwise a tooltip dismissed by that very click comes straight back.
|
|
366
|
-
if (this.pointerInside) {
|
|
319
|
+
if (this.pointerInside()) {
|
|
367
320
|
return;
|
|
368
321
|
}
|
|
369
|
-
this.pointerInside
|
|
370
|
-
if (!this.container && !this.showTimeout) {
|
|
322
|
+
this.pointerInside.set(true);
|
|
323
|
+
if (!this.container() && !this.showTimeout()) {
|
|
371
324
|
this.activate();
|
|
372
325
|
}
|
|
373
326
|
}
|
|
374
327
|
onMouseLeave(e) {
|
|
375
|
-
this.pointerInside
|
|
328
|
+
this.pointerInside.set(false);
|
|
376
329
|
if (!this.isAutoHide()) {
|
|
377
330
|
const valid = hasClass(e.relatedTarget, 'p-tooltip') || hasClass(e.relatedTarget, 'p-tooltip-text') || hasClass(e.relatedTarget, 'p-tooltip-arrow');
|
|
378
331
|
!valid && this.deactivate();
|
|
@@ -382,7 +335,7 @@ class Tooltip extends BaseComponent {
|
|
|
382
335
|
}
|
|
383
336
|
}
|
|
384
337
|
onTouchStart(e) {
|
|
385
|
-
if (!this.container && !this.showTimeout) {
|
|
338
|
+
if (!this.container() && !this.showTimeout()) {
|
|
386
339
|
this.activate();
|
|
387
340
|
if (!this.isAutoHide()) {
|
|
388
341
|
this.bindDocumentTouchListener();
|
|
@@ -395,19 +348,21 @@ class Tooltip extends BaseComponent {
|
|
|
395
348
|
}
|
|
396
349
|
}
|
|
397
350
|
bindDocumentTouchListener() {
|
|
398
|
-
if (!this.documentTouchListener) {
|
|
399
|
-
this.documentTouchListener
|
|
400
|
-
|
|
351
|
+
if (!this.documentTouchListener()) {
|
|
352
|
+
this.documentTouchListener.set(this.renderer.listen('document', 'touchstart', (e) => {
|
|
353
|
+
const container = this.container();
|
|
354
|
+
if (container && !container.contains(e.target) && !this.el.nativeElement.contains(e.target)) {
|
|
401
355
|
this.deactivate();
|
|
402
356
|
this.unbindDocumentTouchListener();
|
|
403
357
|
}
|
|
404
|
-
});
|
|
358
|
+
}));
|
|
405
359
|
}
|
|
406
360
|
}
|
|
407
361
|
unbindDocumentTouchListener() {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
362
|
+
const documentTouchListener = this.documentTouchListener();
|
|
363
|
+
if (documentTouchListener) {
|
|
364
|
+
documentTouchListener();
|
|
365
|
+
this.documentTouchListener.set(null);
|
|
411
366
|
}
|
|
412
367
|
}
|
|
413
368
|
onFocus(e) {
|
|
@@ -424,95 +379,99 @@ class Tooltip extends BaseComponent {
|
|
|
424
379
|
return el.offsetWidth < el.scrollWidth || el.offsetHeight < el.scrollHeight;
|
|
425
380
|
}
|
|
426
381
|
activate() {
|
|
427
|
-
if (!this.interactionInProgress) {
|
|
382
|
+
if (!this.interactionInProgress()) {
|
|
428
383
|
if (this.getOption('showOnEllipsis') && !this.hasEllipsis()) {
|
|
429
384
|
return;
|
|
430
385
|
}
|
|
431
|
-
this.active
|
|
386
|
+
this.active.set(true);
|
|
432
387
|
this.clearHideTimeout();
|
|
433
388
|
if (this.getOption('showDelay'))
|
|
434
|
-
this.showTimeout
|
|
389
|
+
this.showTimeout.set(setTimeout(() => {
|
|
435
390
|
this.show();
|
|
436
|
-
}, this.getOption('showDelay'));
|
|
391
|
+
}, this.getOption('showDelay')));
|
|
437
392
|
else
|
|
438
393
|
this.show();
|
|
439
394
|
if (this.getOption('life')) {
|
|
440
395
|
let duration = this.getOption('showDelay') ? this.getOption('life') + this.getOption('showDelay') : this.getOption('life');
|
|
441
|
-
this.hideTimeout
|
|
396
|
+
this.hideTimeout.set(setTimeout(() => {
|
|
442
397
|
this.hide();
|
|
443
|
-
}, duration);
|
|
398
|
+
}, duration));
|
|
444
399
|
}
|
|
445
400
|
if (this.getOption('hideOnEscape')) {
|
|
446
|
-
this.documentEscapeListener
|
|
401
|
+
this.documentEscapeListener.set(this.renderer.listen('document', 'keydown.escape', () => {
|
|
447
402
|
this.deactivate();
|
|
448
|
-
this.documentEscapeListener?.();
|
|
449
|
-
});
|
|
403
|
+
this.documentEscapeListener()?.();
|
|
404
|
+
}));
|
|
450
405
|
}
|
|
451
|
-
this.interactionInProgress
|
|
406
|
+
this.interactionInProgress.set(true);
|
|
452
407
|
}
|
|
453
408
|
}
|
|
454
409
|
deactivate() {
|
|
455
|
-
this.interactionInProgress
|
|
456
|
-
this.active
|
|
410
|
+
this.interactionInProgress.set(false);
|
|
411
|
+
this.active.set(false);
|
|
457
412
|
this.clearShowTimeout();
|
|
458
413
|
if (this.getOption('hideDelay')) {
|
|
459
414
|
this.clearHideTimeout(); //life timeout
|
|
460
|
-
this.hideTimeout
|
|
415
|
+
this.hideTimeout.set(setTimeout(() => {
|
|
461
416
|
this.hide();
|
|
462
|
-
}, this.getOption('hideDelay'));
|
|
417
|
+
}, this.getOption('hideDelay')));
|
|
463
418
|
}
|
|
464
419
|
else {
|
|
465
420
|
this.hide();
|
|
466
421
|
}
|
|
467
|
-
|
|
468
|
-
|
|
422
|
+
const documentEscapeListener = this.documentEscapeListener();
|
|
423
|
+
if (documentEscapeListener) {
|
|
424
|
+
documentEscapeListener();
|
|
469
425
|
}
|
|
470
426
|
}
|
|
471
427
|
create() {
|
|
472
|
-
if (this.container) {
|
|
428
|
+
if (this.container()) {
|
|
473
429
|
this.clearHideTimeout();
|
|
474
430
|
this.remove();
|
|
475
431
|
}
|
|
476
|
-
|
|
477
|
-
this.container.
|
|
432
|
+
const container = createElement('div', { class: this.cx('root'), 'p-bind': this.ptm('root'), 'data-pc-section': 'root' });
|
|
433
|
+
this.container.set(container);
|
|
434
|
+
container.setAttribute('role', 'tooltip');
|
|
478
435
|
let tooltipArrow = createElement('div', { class: this.cx('arrow'), 'p-bind': this.ptm('arrow'), 'data-pc-section': 'arrow' });
|
|
479
|
-
|
|
480
|
-
this.tooltipText
|
|
436
|
+
container.appendChild(tooltipArrow);
|
|
437
|
+
this.tooltipText.set(createElement('div', { class: this.cx('text'), 'p-bind': this.ptm('text'), 'data-pc-section': 'text' }));
|
|
481
438
|
this.updateText();
|
|
482
439
|
if (this.getOption('positionStyle')) {
|
|
483
|
-
|
|
440
|
+
container.style.position = this.getOption('positionStyle');
|
|
484
441
|
}
|
|
485
|
-
|
|
442
|
+
container.appendChild(this.tooltipText());
|
|
486
443
|
if (this.getOption('appendTo') === 'body')
|
|
487
|
-
document.body.appendChild(
|
|
444
|
+
document.body.appendChild(container);
|
|
488
445
|
else if (this.getOption('appendTo') === 'target')
|
|
489
|
-
appendChild(
|
|
446
|
+
appendChild(container, this.el.nativeElement);
|
|
490
447
|
else
|
|
491
|
-
appendChild(this.getOption('appendTo'),
|
|
492
|
-
|
|
493
|
-
if (this.fitContent) {
|
|
494
|
-
|
|
448
|
+
appendChild(this.getOption('appendTo'), container);
|
|
449
|
+
container.style.display = 'none';
|
|
450
|
+
if (this.fitContent()) {
|
|
451
|
+
container.style.width = 'fit-content';
|
|
495
452
|
}
|
|
496
453
|
if (this.isAutoHide()) {
|
|
497
|
-
|
|
454
|
+
container.style.pointerEvents = 'none';
|
|
498
455
|
}
|
|
499
456
|
else {
|
|
500
|
-
|
|
457
|
+
container.style.pointerEvents = 'unset';
|
|
501
458
|
this.bindContainerMouseleaveListener();
|
|
502
459
|
}
|
|
503
460
|
}
|
|
504
461
|
bindContainerMouseleaveListener() {
|
|
505
|
-
if (!this.containerMouseleaveListener) {
|
|
506
|
-
const
|
|
507
|
-
|
|
462
|
+
if (!this.containerMouseleaveListener()) {
|
|
463
|
+
const container = this.container();
|
|
464
|
+
const targetEl = container ?? container.nativeElement;
|
|
465
|
+
this.containerMouseleaveListener.set(this.renderer.listen(targetEl, 'mouseleave', (e) => {
|
|
508
466
|
this.deactivate();
|
|
509
|
-
});
|
|
467
|
+
}));
|
|
510
468
|
}
|
|
511
469
|
}
|
|
512
470
|
unbindContainerMouseleaveListener() {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
471
|
+
const containerMouseleaveListener = this.containerMouseleaveListener();
|
|
472
|
+
if (containerMouseleaveListener) {
|
|
473
|
+
containerMouseleaveListener();
|
|
474
|
+
this.containerMouseleaveListener.set(null);
|
|
516
475
|
}
|
|
517
476
|
}
|
|
518
477
|
show() {
|
|
@@ -524,41 +483,43 @@ class Tooltip extends BaseComponent {
|
|
|
524
483
|
const pDialogWrapper = nativeElement.closest('p-dialog');
|
|
525
484
|
if (pDialogWrapper) {
|
|
526
485
|
setTimeout(() => {
|
|
527
|
-
|
|
528
|
-
|
|
486
|
+
const container = this.container();
|
|
487
|
+
container && (container.style.display = 'inline-block');
|
|
488
|
+
container && this.align();
|
|
529
489
|
}, 100);
|
|
530
490
|
}
|
|
531
491
|
else {
|
|
532
|
-
this.container.style.display = 'inline-block';
|
|
492
|
+
this.container().style.display = 'inline-block';
|
|
533
493
|
this.align();
|
|
534
494
|
}
|
|
535
|
-
fadeIn(this.container, 250);
|
|
495
|
+
fadeIn(this.container(), 250);
|
|
536
496
|
if (this.getOption('tooltipZIndex') === 'auto')
|
|
537
|
-
ZIndexUtils.set('tooltip', this.container, this.config.zIndex.tooltip);
|
|
497
|
+
ZIndexUtils.set('tooltip', this.container(), this.config.zIndex.tooltip);
|
|
538
498
|
else
|
|
539
|
-
this.container.style.zIndex = this.getOption('tooltipZIndex');
|
|
499
|
+
this.container().style.zIndex = this.getOption('tooltipZIndex');
|
|
540
500
|
this.bindDocumentResizeListener();
|
|
541
501
|
this.bindScrollListener();
|
|
542
502
|
}
|
|
543
503
|
hide() {
|
|
544
504
|
if (this.getOption('tooltipZIndex') === 'auto') {
|
|
545
|
-
ZIndexUtils.clear(this.container);
|
|
505
|
+
ZIndexUtils.clear(this.container());
|
|
546
506
|
}
|
|
547
507
|
this.remove();
|
|
548
508
|
}
|
|
549
509
|
updateText() {
|
|
550
510
|
const content = this.getOption('tooltipLabel');
|
|
511
|
+
const tooltipText = this.tooltipText();
|
|
551
512
|
if (content && typeof content.createEmbeddedView === 'function') {
|
|
552
513
|
const embeddedViewRef = this.viewContainer.createEmbeddedView(content);
|
|
553
514
|
embeddedViewRef.detectChanges();
|
|
554
|
-
embeddedViewRef.rootNodes.forEach((node) =>
|
|
515
|
+
embeddedViewRef.rootNodes.forEach((node) => tooltipText.appendChild(node));
|
|
555
516
|
}
|
|
556
517
|
else if (this.getOption('escape')) {
|
|
557
|
-
|
|
558
|
-
|
|
518
|
+
tooltipText.textContent = '';
|
|
519
|
+
tooltipText.appendChild(document.createTextNode(content));
|
|
559
520
|
}
|
|
560
521
|
else {
|
|
561
|
-
|
|
522
|
+
tooltipText.innerHTML = content;
|
|
562
523
|
}
|
|
563
524
|
}
|
|
564
525
|
align() {
|
|
@@ -597,7 +558,7 @@ class Tooltip extends BaseComponent {
|
|
|
597
558
|
this.preAlign('right');
|
|
598
559
|
const el = this.activeElement;
|
|
599
560
|
const offsetLeft = getOuterWidth(el);
|
|
600
|
-
const offsetTop = (getOuterHeight(el) - getOuterHeight(this.container)) / 2;
|
|
561
|
+
const offsetTop = (getOuterHeight(el) - getOuterHeight(this.container())) / 2;
|
|
601
562
|
this.alignTooltip(offsetLeft, offsetTop);
|
|
602
563
|
let arrowElement = this.getArrowElement();
|
|
603
564
|
arrowElement.style.top = '50%';
|
|
@@ -608,8 +569,8 @@ class Tooltip extends BaseComponent {
|
|
|
608
569
|
alignLeft() {
|
|
609
570
|
this.preAlign('left');
|
|
610
571
|
let arrowElement = this.getArrowElement();
|
|
611
|
-
let offsetLeft = getOuterWidth(this.container);
|
|
612
|
-
let offsetTop = (getOuterHeight(this.el.nativeElement) - getOuterHeight(this.container)) / 2;
|
|
572
|
+
let offsetLeft = getOuterWidth(this.container());
|
|
573
|
+
let offsetTop = (getOuterHeight(this.el.nativeElement) - getOuterHeight(this.container())) / 2;
|
|
613
574
|
this.alignTooltip(-offsetLeft, offsetTop);
|
|
614
575
|
arrowElement.style.top = '50%';
|
|
615
576
|
arrowElement.style.right = '0';
|
|
@@ -620,9 +581,9 @@ class Tooltip extends BaseComponent {
|
|
|
620
581
|
this.preAlign('top');
|
|
621
582
|
let arrowElement = this.getArrowElement();
|
|
622
583
|
let hostOffset = this.getHostOffset();
|
|
623
|
-
let elementWidth = getOuterWidth(this.container);
|
|
624
|
-
let offsetLeft = (getOuterWidth(this.el.nativeElement) - getOuterWidth(this.container)) / 2;
|
|
625
|
-
let offsetTop = getOuterHeight(this.container);
|
|
584
|
+
let elementWidth = getOuterWidth(this.container());
|
|
585
|
+
let offsetLeft = (getOuterWidth(this.el.nativeElement) - getOuterWidth(this.container())) / 2;
|
|
586
|
+
let offsetTop = getOuterHeight(this.container());
|
|
626
587
|
this.alignTooltip(offsetLeft, -offsetTop);
|
|
627
588
|
let elementRelativeCenter = hostOffset.left - this.getHostOffset().left + elementWidth / 2;
|
|
628
589
|
arrowElement.style.top = null;
|
|
@@ -631,14 +592,14 @@ class Tooltip extends BaseComponent {
|
|
|
631
592
|
arrowElement.style.left = elementRelativeCenter + 'px';
|
|
632
593
|
}
|
|
633
594
|
getArrowElement() {
|
|
634
|
-
return findSingle(this.container, '[data-pc-section="arrow"]');
|
|
595
|
+
return findSingle(this.container(), '[data-pc-section="arrow"]');
|
|
635
596
|
}
|
|
636
597
|
alignBottom() {
|
|
637
598
|
this.preAlign('bottom');
|
|
638
599
|
let arrowElement = this.getArrowElement();
|
|
639
|
-
let elementWidth = getOuterWidth(this.container);
|
|
600
|
+
let elementWidth = getOuterWidth(this.container());
|
|
640
601
|
let hostOffset = this.getHostOffset();
|
|
641
|
-
let offsetLeft = (getOuterWidth(this.el.nativeElement) - getOuterWidth(this.container)) / 2;
|
|
602
|
+
let offsetLeft = (getOuterWidth(this.el.nativeElement) - getOuterWidth(this.container())) / 2;
|
|
642
603
|
let offsetTop = getOuterHeight(this.el.nativeElement);
|
|
643
604
|
this.alignTooltip(offsetLeft, offsetTop);
|
|
644
605
|
let elementRelativeCenter = hostOffset.left - this.getHostOffset().left + elementWidth / 2;
|
|
@@ -651,29 +612,31 @@ class Tooltip extends BaseComponent {
|
|
|
651
612
|
let hostOffset = this.getHostOffset();
|
|
652
613
|
let left = hostOffset.left + offsetLeft;
|
|
653
614
|
let top = hostOffset.top + offsetTop;
|
|
654
|
-
this.container.style.left = left + this.getOption('positionLeft') + 'px';
|
|
655
|
-
this.container.style.top = top + this.getOption('positionTop') + 'px';
|
|
615
|
+
this.container().style.left = left + this.getOption('positionLeft') + 'px';
|
|
616
|
+
this.container().style.top = top + this.getOption('positionTop') + 'px';
|
|
656
617
|
}
|
|
657
618
|
setOption(option) {
|
|
658
|
-
this._tooltipOptions
|
|
619
|
+
this._tooltipOptions.update((options) => ({ ...options, ...option }));
|
|
659
620
|
}
|
|
660
621
|
getOption(option) {
|
|
661
|
-
return this._tooltipOptions[option];
|
|
622
|
+
return this._tooltipOptions()[option];
|
|
662
623
|
}
|
|
663
624
|
getTarget(el) {
|
|
664
625
|
return hasClass(el, 'p-inputwrapper') ? findSingle(el, 'input') : el;
|
|
665
626
|
}
|
|
666
627
|
preAlign(position) {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
628
|
+
const container = this.container();
|
|
629
|
+
container.style.left = -999 + 'px';
|
|
630
|
+
container.style.top = -999 + 'px';
|
|
631
|
+
container.className = this.cn(this.cx('root'), this.ptm('root')?.class, 'p-tooltip-' + position, this.getOption('tooltipStyleClass'));
|
|
670
632
|
}
|
|
671
633
|
isOutOfBounds() {
|
|
672
|
-
|
|
634
|
+
const container = this.container();
|
|
635
|
+
let offset = container.getBoundingClientRect();
|
|
673
636
|
let targetTop = offset.top;
|
|
674
637
|
let targetLeft = offset.left;
|
|
675
|
-
let width = getOuterWidth(
|
|
676
|
-
let height = getOuterHeight(
|
|
638
|
+
let width = getOuterWidth(container);
|
|
639
|
+
let height = getOuterHeight(container);
|
|
677
640
|
let viewport = getViewport();
|
|
678
641
|
return targetLeft + width > viewport.width || targetLeft < 0 || targetTop < 0 || targetTop + height > viewport.height;
|
|
679
642
|
}
|
|
@@ -682,41 +645,43 @@ class Tooltip extends BaseComponent {
|
|
|
682
645
|
}
|
|
683
646
|
bindDocumentResizeListener() {
|
|
684
647
|
this.zone.runOutsideAngular(() => {
|
|
685
|
-
this.resizeListener
|
|
686
|
-
window.addEventListener('resize', this.resizeListener);
|
|
648
|
+
this.resizeListener.set(this.onWindowResize.bind(this));
|
|
649
|
+
window.addEventListener('resize', this.resizeListener());
|
|
687
650
|
});
|
|
688
651
|
}
|
|
689
652
|
unbindDocumentResizeListener() {
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
653
|
+
const resizeListener = this.resizeListener();
|
|
654
|
+
if (resizeListener) {
|
|
655
|
+
window.removeEventListener('resize', resizeListener);
|
|
656
|
+
this.resizeListener.set(null);
|
|
693
657
|
}
|
|
694
658
|
}
|
|
695
659
|
bindScrollListener() {
|
|
696
|
-
if (!this.scrollHandler) {
|
|
697
|
-
this.scrollHandler
|
|
698
|
-
if (this.container) {
|
|
660
|
+
if (!this.scrollHandler()) {
|
|
661
|
+
this.scrollHandler.set(new ConnectedOverlayScrollHandler(this.el.nativeElement, () => {
|
|
662
|
+
if (this.container()) {
|
|
699
663
|
this.hide();
|
|
700
664
|
}
|
|
701
|
-
});
|
|
665
|
+
}));
|
|
702
666
|
}
|
|
703
|
-
this.scrollHandler.bindScrollListener();
|
|
667
|
+
this.scrollHandler().bindScrollListener();
|
|
704
668
|
}
|
|
705
669
|
unbindScrollListener() {
|
|
706
|
-
|
|
707
|
-
|
|
670
|
+
const scrollHandler = this.scrollHandler();
|
|
671
|
+
if (scrollHandler) {
|
|
672
|
+
scrollHandler.unbindScrollListener();
|
|
708
673
|
}
|
|
709
674
|
}
|
|
710
675
|
unbindEvents() {
|
|
711
676
|
const tooltipEvent = this.getOption('tooltipEvent');
|
|
712
|
-
this.pointerInside
|
|
677
|
+
this.pointerInside.set(false);
|
|
713
678
|
if (tooltipEvent === 'hover' || tooltipEvent === 'both') {
|
|
714
|
-
this.el.nativeElement.removeEventListener('mouseenter', this.mouseEnterListener);
|
|
715
|
-
this.el.nativeElement.removeEventListener('mouseleave', this.mouseLeaveListener);
|
|
716
|
-
this.el.nativeElement.removeEventListener('click', this.clickListener);
|
|
679
|
+
this.el.nativeElement.removeEventListener('mouseenter', this.mouseEnterListener());
|
|
680
|
+
this.el.nativeElement.removeEventListener('mouseleave', this.mouseLeaveListener());
|
|
681
|
+
this.el.nativeElement.removeEventListener('click', this.clickListener());
|
|
717
682
|
// Touch support
|
|
718
|
-
this.el.nativeElement.removeEventListener('touchstart', this.touchStartListener);
|
|
719
|
-
this.el.nativeElement.removeEventListener('touchend', this.touchEndListener);
|
|
683
|
+
this.el.nativeElement.removeEventListener('touchstart', this.touchStartListener());
|
|
684
|
+
this.el.nativeElement.removeEventListener('touchend', this.touchEndListener());
|
|
720
685
|
this.unbindDocumentTouchListener();
|
|
721
686
|
}
|
|
722
687
|
if (tooltipEvent === 'focus' || tooltipEvent === 'both') {
|
|
@@ -724,38 +689,41 @@ class Tooltip extends BaseComponent {
|
|
|
724
689
|
if (!target) {
|
|
725
690
|
target = this.getTarget(this.el.nativeElement);
|
|
726
691
|
}
|
|
727
|
-
target.removeEventListener('focus', this.focusListener);
|
|
728
|
-
target.removeEventListener('blur', this.blurListener);
|
|
692
|
+
target.removeEventListener('focus', this.focusListener());
|
|
693
|
+
target.removeEventListener('blur', this.blurListener());
|
|
729
694
|
}
|
|
730
695
|
this.unbindDocumentResizeListener();
|
|
731
696
|
}
|
|
732
697
|
remove() {
|
|
733
|
-
|
|
698
|
+
const container = this.container();
|
|
699
|
+
if (container && container.parentElement) {
|
|
734
700
|
if (this.getOption('appendTo') === 'body')
|
|
735
|
-
document.body.removeChild(
|
|
701
|
+
document.body.removeChild(container);
|
|
736
702
|
else if (this.getOption('appendTo') === 'target')
|
|
737
|
-
this.el.nativeElement.removeChild(
|
|
703
|
+
this.el.nativeElement.removeChild(container);
|
|
738
704
|
else
|
|
739
|
-
removeChild(this.getOption('appendTo'),
|
|
705
|
+
removeChild(this.getOption('appendTo'), container);
|
|
740
706
|
}
|
|
741
707
|
this.unbindDocumentResizeListener();
|
|
742
708
|
this.unbindScrollListener();
|
|
743
709
|
this.unbindContainerMouseleaveListener();
|
|
744
710
|
this.unbindDocumentTouchListener();
|
|
745
711
|
this.clearTimeouts();
|
|
746
|
-
this.container
|
|
747
|
-
this.scrollHandler
|
|
712
|
+
this.container.set(null);
|
|
713
|
+
this.scrollHandler.set(null);
|
|
748
714
|
}
|
|
749
715
|
clearShowTimeout() {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
716
|
+
const showTimeout = this.showTimeout();
|
|
717
|
+
if (showTimeout) {
|
|
718
|
+
clearTimeout(showTimeout);
|
|
719
|
+
this.showTimeout.set(null);
|
|
753
720
|
}
|
|
754
721
|
}
|
|
755
722
|
clearHideTimeout() {
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
723
|
+
const hideTimeout = this.hideTimeout();
|
|
724
|
+
if (hideTimeout) {
|
|
725
|
+
clearTimeout(hideTimeout);
|
|
726
|
+
this.hideTimeout.set(null);
|
|
759
727
|
}
|
|
760
728
|
}
|
|
761
729
|
clearTimeouts() {
|
|
@@ -764,77 +732,30 @@ class Tooltip extends BaseComponent {
|
|
|
764
732
|
}
|
|
765
733
|
onDestroy() {
|
|
766
734
|
this.unbindEvents();
|
|
767
|
-
if (this.container) {
|
|
768
|
-
ZIndexUtils.clear(this.container);
|
|
735
|
+
if (this.container()) {
|
|
736
|
+
ZIndexUtils.clear(this.container());
|
|
769
737
|
}
|
|
770
738
|
this.remove();
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
739
|
+
const scrollHandler = this.scrollHandler();
|
|
740
|
+
if (scrollHandler) {
|
|
741
|
+
scrollHandler.destroy();
|
|
742
|
+
this.scrollHandler.set(null);
|
|
774
743
|
}
|
|
775
|
-
|
|
776
|
-
|
|
744
|
+
const documentEscapeListener = this.documentEscapeListener();
|
|
745
|
+
if (documentEscapeListener) {
|
|
746
|
+
documentEscapeListener();
|
|
777
747
|
}
|
|
778
748
|
}
|
|
779
749
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Tooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
780
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: Tooltip, isStandalone: true, selector: "[pTooltip]", inputs: { tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal:
|
|
750
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: Tooltip, isStandalone: true, selector: "[pTooltip]", inputs: { tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipEvent: { classPropertyName: "tooltipEvent", publicName: "tooltipEvent", isSignal: true, isRequired: false, transformFunction: null }, positionStyle: { classPropertyName: "positionStyle", publicName: "positionStyle", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, tooltipZIndex: { classPropertyName: "tooltipZIndex", publicName: "tooltipZIndex", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, positionTop: { classPropertyName: "positionTop", publicName: "positionTop", isSignal: true, isRequired: false, transformFunction: null }, positionLeft: { classPropertyName: "positionLeft", publicName: "positionLeft", isSignal: true, isRequired: false, transformFunction: null }, autoHide: { classPropertyName: "autoHide", publicName: "autoHide", isSignal: true, isRequired: false, transformFunction: null }, fitContent: { classPropertyName: "fitContent", publicName: "fitContent", isSignal: true, isRequired: false, transformFunction: null }, hideOnEscape: { classPropertyName: "hideOnEscape", publicName: "hideOnEscape", isSignal: true, isRequired: false, transformFunction: null }, showOnEllipsis: { classPropertyName: "showOnEllipsis", publicName: "showOnEllipsis", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "pTooltip", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, tooltipOptions: { classPropertyName: "tooltipOptions", publicName: "tooltipOptions", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, ptTooltip: { classPropertyName: "ptTooltip", publicName: "ptTooltip", isSignal: true, isRequired: false, transformFunction: null }, pTooltipPT: { classPropertyName: "pTooltipPT", publicName: "pTooltipPT", isSignal: true, isRequired: false, transformFunction: null }, pTooltipUnstyled: { classPropertyName: "pTooltipUnstyled", publicName: "pTooltipUnstyled", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TooltipStyle, { provide: TOOLTIP_INSTANCE, useExisting: Tooltip }, { provide: PARENT_INSTANCE, useExisting: Tooltip }], usesInheritance: true, ngImport: i0 });
|
|
781
751
|
}
|
|
782
752
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Tooltip, decorators: [{
|
|
783
753
|
type: Directive,
|
|
784
754
|
args: [{
|
|
785
755
|
selector: '[pTooltip]',
|
|
786
|
-
standalone: true,
|
|
787
756
|
providers: [TooltipStyle, { provide: TOOLTIP_INSTANCE, useExisting: Tooltip }, { provide: PARENT_INSTANCE, useExisting: Tooltip }]
|
|
788
757
|
}]
|
|
789
|
-
}], ctorParameters: () => [], propDecorators: { tooltipPosition: [{
|
|
790
|
-
type: Input
|
|
791
|
-
}], tooltipEvent: [{
|
|
792
|
-
type: Input
|
|
793
|
-
}], positionStyle: [{
|
|
794
|
-
type: Input
|
|
795
|
-
}], tooltipStyleClass: [{
|
|
796
|
-
type: Input
|
|
797
|
-
}], tooltipZIndex: [{
|
|
798
|
-
type: Input
|
|
799
|
-
}], escape: [{
|
|
800
|
-
type: Input,
|
|
801
|
-
args: [{ transform: booleanAttribute }]
|
|
802
|
-
}], showDelay: [{
|
|
803
|
-
type: Input,
|
|
804
|
-
args: [{ transform: numberAttribute }]
|
|
805
|
-
}], hideDelay: [{
|
|
806
|
-
type: Input,
|
|
807
|
-
args: [{ transform: numberAttribute }]
|
|
808
|
-
}], life: [{
|
|
809
|
-
type: Input,
|
|
810
|
-
args: [{ transform: numberAttribute }]
|
|
811
|
-
}], positionTop: [{
|
|
812
|
-
type: Input,
|
|
813
|
-
args: [{ transform: numberAttribute }]
|
|
814
|
-
}], positionLeft: [{
|
|
815
|
-
type: Input,
|
|
816
|
-
args: [{ transform: numberAttribute }]
|
|
817
|
-
}], autoHide: [{
|
|
818
|
-
type: Input,
|
|
819
|
-
args: [{ transform: booleanAttribute }]
|
|
820
|
-
}], fitContent: [{
|
|
821
|
-
type: Input,
|
|
822
|
-
args: [{ transform: booleanAttribute }]
|
|
823
|
-
}], hideOnEscape: [{
|
|
824
|
-
type: Input,
|
|
825
|
-
args: [{ transform: booleanAttribute }]
|
|
826
|
-
}], showOnEllipsis: [{
|
|
827
|
-
type: Input,
|
|
828
|
-
args: [{ transform: booleanAttribute }]
|
|
829
|
-
}], content: [{
|
|
830
|
-
type: Input,
|
|
831
|
-
args: ['pTooltip']
|
|
832
|
-
}], disabled: [{
|
|
833
|
-
type: Input,
|
|
834
|
-
args: ['tooltipDisabled']
|
|
835
|
-
}], tooltipOptions: [{
|
|
836
|
-
type: Input
|
|
837
|
-
}], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], ptTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "ptTooltip", required: false }] }], pTooltipPT: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTooltipPT", required: false }] }], pTooltipUnstyled: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTooltipUnstyled", required: false }] }] } });
|
|
758
|
+
}], ctorParameters: () => [], propDecorators: { tooltipPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosition", required: false }] }], tooltipEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipEvent", required: false }] }], positionStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionStyle", required: false }] }], tooltipStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipStyleClass", required: false }] }], tooltipZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipZIndex", required: false }] }], escape: [{ type: i0.Input, args: [{ isSignal: true, alias: "escape", required: false }] }], showDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDelay", required: false }] }], hideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideDelay", required: false }] }], life: [{ type: i0.Input, args: [{ isSignal: true, alias: "life", required: false }] }], positionTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionTop", required: false }] }], positionLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "positionLeft", required: false }] }], autoHide: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoHide", required: false }] }], fitContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "fitContent", required: false }] }], hideOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnEscape", required: false }] }], showOnEllipsis: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnEllipsis", required: false }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTooltip", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipDisabled", required: false }] }], tooltipOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipOptions", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], ptTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "ptTooltip", required: false }] }], pTooltipPT: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTooltipPT", required: false }] }], pTooltipUnstyled: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTooltipUnstyled", required: false }] }] } });
|
|
838
759
|
class TooltipModule {
|
|
839
760
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
840
761
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: TooltipModule, imports: [Tooltip, BindModule], exports: [Tooltip, BindModule] });
|