import * as i0 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 { TooltipEvent, TooltipPassThrough, TooltipPassThroughOptions, TooltipPosition } from "primeng/types/tooltip"; import { BaseStyle } from "primeng/base"; import * as i1 from "primeng/bind"; export declare class TooltipStyle extends BaseStyle { name: string; style: string; classes: { root: string; arrow: string; text: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * Tooltip directive provides advisory information for a component. * * [Live Demo](https://www.primeng.org/tooltip) * * @module tooltipstyle * */ export 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 */ export declare class Tooltip extends BaseComponent { componentName: string; $pcTooltip: Tooltip | undefined; /** * Position of the tooltip. * @group Props */ tooltipPosition: import("@angular/core").InputSignal; /** * Event to show the tooltip. * @group Props */ tooltipEvent: import("@angular/core").InputSignal; /** * Type of CSS position. * @group Props */ positionStyle: import("@angular/core").InputSignal; /** * Style class of the tooltip. * @group Props */ tooltipStyleClass: import("@angular/core").InputSignal; /** * Whether the z-index should be managed automatically to always go on top or have a fixed value. * @group Props */ tooltipZIndex: import("@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: import("@angular/core").InputSignalWithTransform; /** * Delay to show the tooltip in milliseconds. * @group Props */ showDelay: import("@angular/core").InputSignalWithTransform; /** * Delay to hide the tooltip in milliseconds. * @group Props */ hideDelay: import("@angular/core").InputSignalWithTransform; /** * Time to wait in milliseconds to hide the tooltip even it is active. * @group Props */ life: import("@angular/core").InputSignalWithTransform; /** * Specifies the additional vertical offset of the tooltip from its default position. * @group Props */ positionTop: import("@angular/core").InputSignalWithTransform; /** * Specifies the additional horizontal offset of the tooltip from its default position. * @group Props */ positionLeft: import("@angular/core").InputSignalWithTransform; /** * Whether to hide tooltip when hovering over tooltip content. Keeping the tooltip open applies to pointer users only, content inside the tooltip is not reachable with the keyboard. * @group Props */ autoHide: import("@angular/core").InputSignalWithTransform; /** * Whether the width of the tooltip fits its content. * @group Props */ fitContent: import("@angular/core").InputSignalWithTransform; /** * Whether to hide tooltip on escape key press. * @group Props */ hideOnEscape: import("@angular/core").InputSignalWithTransform; /** * Whether to show the tooltip only when the target text overflows (e.g., ellipsis is active). * @group Props */ showOnEllipsis: import("@angular/core").InputSignalWithTransform; /** * Content of the tooltip. * @group Props */ content: import("@angular/core").InputSignal | undefined>; /** * When present, it specifies that the component should be disabled. * @defaultValue false * @group Props */ tooltipDisabled: import("@angular/core").InputSignalWithTransform; /** * Specifies the tooltip configuration options for the component. * @group Props */ tooltipOptions: import("@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: import("@angular/core").InputSignal; $appendTo: import("@angular/core").Signal; private readonly tooltipId; /** * Computed tooltip options that merges individual props with tooltipOptions. * Priority: tooltipOptions > individual props (with inline defaults) */ _tooltipOptions: import("@angular/core").Signal; container: HTMLDivElement | null; /** * @deprecated since v22, not used by the tooltip. This property will be removed in a future version. */ styleClass: string | undefined; tooltipText: HTMLDivElement | null; /** * @deprecated since v22, not used by the tooltip. This property will be removed in a future version. */ rootPTClasses: string; showTimeout: ReturnType | null; hideTimeout: ReturnType | null; private fadeInCancel; private alignTimeout; 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: import("@angular/core").InputSignal; /** * Indicates whether the component should be rendered without styles. * @defaultValue undefined * @group Props */ pTooltipUnstyled: import("@angular/core").InputSignal; private viewContainer; private zone; 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: number; top: number; }; private get activeElement(); private get anchorElement(); alignRight(): void; alignLeft(): void; alignTop(): void; getArrowElement(): HTMLElement | null; alignBottom(): void; alignTooltip(offsetLeft: number, offsetTop: number): void; getOption(option: K): TooltipOptions[K]; 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; clearAlignTimeout(): void; clearTimeouts(): void; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class TooltipModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }