import * as _angular_core from '@angular/core'; import { TemplateRef } from '@angular/core'; import { TooltipOptions } from 'primeng/api'; import { BaseComponent } from 'primeng/basecomponent'; import { ConnectedOverlayScrollHandler } from 'primeng/dom'; import { Nullable, VoidListener } from 'primeng/ts-helpers'; import { AppendTo } from 'primeng/types/shared'; import { TooltipPassThroughOptions, TooltipPosition, TooltipEvent, TooltipPassThrough } from 'primeng/types/tooltip'; import { BaseStyle } from 'primeng/base'; import * as i1 from 'primeng/bind'; declare class TooltipStyle extends BaseStyle { name: string; style: string; classes: { root: string; arrow: string; text: string; }; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } /** * * Tooltip directive provides advisory information for a component. * * [Live Demo](https://www.primeng.org/tooltip) * * @module tooltipstyle * */ declare enum TooltipClasses { /** * Class name of the root element */ root = "p-tooltip", /** * Class name of the arrow element */ arrow = "p-tooltip-arrow", /** * Class name of the text element */ text = "p-tooltip-text" } /** * Tooltip directive provides advisory information for a component. * @group Components */ declare class Tooltip extends BaseComponent { componentName: string; $pcTooltip: Tooltip | undefined; /** * Position of the tooltip. * @group Props */ tooltipPosition: _angular_core.InputSignal; /** * Event to show the tooltip. * @group Props */ tooltipEvent: _angular_core.InputSignal; /** * Type of CSS position. * @group Props */ positionStyle: _angular_core.InputSignal; /** * Style class of the tooltip. * @group Props */ tooltipStyleClass: _angular_core.InputSignal; /** * Whether the z-index should be managed automatically to always go on top or have a fixed value. * @group Props */ tooltipZIndex: _angular_core.InputSignal; /** * By default the tooltip contents are rendered as text. Set to false to support html tags in the content. * @group Props */ escape: _angular_core.InputSignalWithTransform; /** * Delay to show the tooltip in milliseconds. * @group Props */ showDelay: _angular_core.InputSignalWithTransform; /** * Delay to hide the tooltip in milliseconds. * @group Props */ hideDelay: _angular_core.InputSignalWithTransform; /** * Time to wait in milliseconds to hide the tooltip even it is active. * @group Props */ life: _angular_core.InputSignalWithTransform; /** * Specifies the additional vertical offset of the tooltip from its default position. * @group Props */ positionTop: _angular_core.InputSignalWithTransform; /** * Specifies the additional horizontal offset of the tooltip from its default position. * @group Props */ positionLeft: _angular_core.InputSignalWithTransform; /** * Whether to hide tooltip when hovering over tooltip content. * @group Props */ autoHide: _angular_core.InputSignalWithTransform; /** * Automatically adjusts the element position when there is not enough space on the selected position. * @group Props */ fitContent: _angular_core.InputSignalWithTransform; /** * Whether to hide tooltip on escape key press. * @group Props */ hideOnEscape: _angular_core.InputSignalWithTransform; /** * Whether to show the tooltip only when the target text overflows (e.g., ellipsis is active). * @group Props */ showOnEllipsis: _angular_core.InputSignalWithTransform; /** * Content of the tooltip. * @group Props */ content: _angular_core.InputSignal | undefined>; /** * When present, it specifies that the component should be disabled. * @defaultValue false * @group Props */ tooltipDisabled: _angular_core.InputSignalWithTransform; /** * Specifies the tooltip configuration options for the component. * @group Props */ tooltipOptions: _angular_core.InputSignal; /** * 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). * @defaultValue 'self' * @group Props */ appendTo: _angular_core.InputSignal; $appendTo: _angular_core.Signal; private readonly tooltipId; /** * Computed tooltip options that merges individual props with tooltipOptions. * Priority: tooltipOptions > individual props (with inline defaults) */ _tooltipOptions: _angular_core.Signal; container: HTMLDivElement | null; styleClass: string | undefined; tooltipText: HTMLDivElement | null; rootPTClasses: string; showTimeout: ReturnType | null; hideTimeout: ReturnType | null; active: boolean | undefined; mouseEnterListener: Nullable; mouseLeaveListener: Nullable<(event: MouseEvent) => void>; clickListener: Nullable; focusListener: Nullable; blurListener: Nullable; touchStartListener: Nullable; touchEndListener: Nullable; containerMouseleaveListener: VoidListener; documentTouchListener: VoidListener; documentEscapeListener: VoidListener; scrollHandler: ConnectedOverlayScrollHandler | null; resizeListener: ((event: Event) => void) | null; _componentStyle: TooltipStyle; /** * Used to pass attributes to DOM elements inside the Tooltip component. * @defaultValue undefined * @group Props */ pTooltipPT: _angular_core.InputSignal; /** * Indicates whether the component should be rendered without styles. * @defaultValue undefined * @group Props */ pTooltipUnstyled: _angular_core.InputSignal; private viewContainer; constructor(); onAfterViewInit(): void; isAutoHide(): boolean; onMouseEnter(e: Event): void; onMouseLeave(e: MouseEvent): void; onTouchStart(e: TouchEvent): void; onTouchEnd(e: TouchEvent): void; bindDocumentTouchListener(): void; unbindDocumentTouchListener(): void; onFocus(e: Event): void; onBlur(e: Event): void; onInputClick(e: Event): void; hasEllipsis(): boolean; activate(): void; deactivate(): void; create(): void; bindContainerMouseleaveListener(): void; unbindContainerMouseleaveListener(): void; show(): void; hide(): void; updateText(): void; align(): void; getHostOffset(): { left: any; top: any; }; private get activeElement(); alignRight(): void; alignLeft(): void; alignTop(): void; getArrowElement(): HTMLElement | null; alignBottom(): void; alignTooltip(offsetLeft: number, offsetTop: number): void; getOption(option: string): any; getTarget(el: Element): Element | null; preAlign(position: string): void; isOutOfBounds(): boolean; onWindowResize(e: Event): void; bindDocumentResizeListener(): void; unbindDocumentResizeListener(): void; bindScrollListener(): void; unbindScrollListener(): void; unbindEvents(): void; remove(): void; clearShowTimeout(): void; clearHideTimeout(): void; clearTimeouts(): void; onDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class TooltipModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { Tooltip, TooltipClasses, TooltipModule, TooltipStyle };