/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { ComponentRef, EventEmitter } from '@angular/core'; import { PopupComponent } from '../popup.component'; /** * Holds references to the object instance of the Popup. * Controls Popups opened through `PopupService` ([see example](https://www.telerik.com/kendo-angular-ui/components/popup/api/popupservice#open)). */ export interface PopupRef { /** * Provides a reference to the Popup instance. */ popup: ComponentRef; /** * Provides a reference to the HTML element of the Popup. */ popupElement: HTMLElement; /** * Provides a reference to the child component of the Popup. Available when the Popup opens with [`content`](https://www.telerik.com/kendo-angular-ui/components/popup/service#using-components). */ content: ComponentRef; /** * Closes and destroys the Popup. */ close: Function; /** * Fires when the anchor scrolls outside the screen boundaries ([see example](https://www.telerik.com/kendo-angular-ui/components/popup/closing)). */ popupAnchorViewportLeave: EventEmitter; /** * Fires after the component closes. */ popupClose: EventEmitter; /** * Fires after the component opens and the opening animation ends. */ popupOpen: EventEmitter; /** * Fires after the component opens and the Popup is positioned. */ popupPositionChange: EventEmitter; }