/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { TemplateRef, OnDestroy, ElementRef, NgZone, OnChanges, Renderer2, AfterViewChecked } from '@angular/core'; import { PopupService, PopupRef, Collision } from '@progress/kendo-angular-popup'; import { TooltipSettings } from './tooltip.settings'; import { Position } from '../models/position.type'; import { ShowOption } from '../models/show.option.type'; import * as i0 from "@angular/core"; /** * Represents the [Kendo UI Tooltip directive for Angular](https://www.telerik.com/kendo-angular-ui/components/tooltips/tooltip). * Displays additional information related to an element. * * @example * ```html *
* *
* ``` */ export declare class TooltipDirective implements OnDestroy, OnChanges, AfterViewChecked { tooltipWrapper: ElementRef; ngZone: NgZone; private renderer; private popupService; /** * Specifies a selector for elements within a container that display a tooltip * ([see example](https://www.telerik.com/kendo-angular-ui/components/tooltips/tooltip/anchor-elements)). The possible values include any * DOM `selector`. * @default '[title]' */ filter: string; /** * Specifies the position of the Tooltip relative to the * anchor element ([see example](https://www.telerik.com/kendo-angular-ui/components/tooltips/tooltip/positioning)). * * @default 'top' */ position: Position; /** * Sets the template for the tooltip header title. [See example](https://www.telerik.com/kendo-angular-ui/components/tooltips/tooltip/anchor-elements). */ titleTemplate?: TemplateRef; /** * Specifies the mouse action that triggers the Tooltip to show. [See example](https://www.telerik.com/kendo-angular-ui/components/tooltips/tooltip/opening). */ showOn: ShowOption; /** * Specifies the delay in milliseconds before the Tooltip is shown. * * @default 100 */ showAfter: number; /** * Determines if the Tooltip displays a callout arrow. * * @default true */ callout: boolean; /** * Determines if the Tooltip displays a **Close** button. [See example](https://www.telerik.com/kendo-angular-ui/components/tooltips/tooltip/closable-tooltip). * * @default false */ closable: boolean; /** * Specifies the offset in pixels between the Tooltip and the anchor. * If the `callout` property is set to `true`, the offset is rendered from the callout arrow. * If the `callout` property is set to `false`, the offset is rendered from the content of the Tooltip. * * @default 6 */ offset: number; /** * Sets the width of the Tooltip. [See example](https://www.telerik.com/kendo-angular-ui/components/tooltips/tooltip/anchor-elements). */ tooltipWidth: number; /** * Sets the height of the Tooltip. */ tooltipHeight: number; /** * Sets a CSS class for the Tooltip. */ tooltipClass: string; /** * @hidden * Specifies a CSS class that will be added to the kendo-tooltip element. */ tooltipContentClass: string; /** * Provides screen boundary detection when the Тooltip is shown. */ collision: Collision; /** * Sets the title of the **Close** button. */ closeTitle: string; /** * Sets a custom content template for the Tooltip. * The template is rendered inside the Tooltip content area. [See example](https://www.telerik.com/kendo-angular-ui/components/tooltips/tooltip/templates). */ set tooltipTemplate(value: TemplateRef); get tooltipTemplate(): TemplateRef; popupRef: PopupRef; template: TemplateRef; private showTimeout; private anchor; private mouseOverSubscription; private mouseOutSubscription; private mouseClickSubscription; private anchorTitleSubscription; private popupPositionChangeSubscription; private popupMouseOutSubscription; private keyboardNavigationSubscription; private closeClickSubscription; private validPositions; private validShowOptions; constructor(tooltipWrapper: ElementRef, ngZone: NgZone, renderer: Renderer2, popupService: PopupService, settings: TooltipSettings, legacySettings: TooltipSettings); /** * Shows the Tooltip. * @param anchor - The element used as an anchor. The Tooltip opens relative to this element. */ show(anchor: ElementRef | Element): void; /** * Hides the Tooltip. */ hide(): void; /** * Toggles the visibility of the Tooltip. * @param anchor - The element used as an anchor. * @param show - Optional. Boolean. Specifies if the Tooltip is rendered. */ toggle(anchor: ElementRef | Element, show?: boolean): void; ngOnInit(): void; ngOnChanges(changes: any): void; ngAfterViewChecked(): void; ngOnDestroy(): void; private showContent; private bindContent; private hideElementTitle; private openPopup; private closePopup; private subscribeClick; private onMouseClick; private onKeyDown; private canCloseTooltip; private onMouseOver; private onMouseOut; private verifyProperties; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }