import { TemplateRef } from "@angular/core"; import { MotionOptions } from "@primeuix/motion"; import { OverlayModeType, PassThrough, PassThroughOption } from "primeng/api"; /** * Custom content template context. * @group Interface */ export interface OverlayContentTemplateContext { /** * Object containing the overlay mode. */ $implicit: { /** * Current overlay mode. */ mode: OverlayModeType | string | null; }; } /** * Defines valid templates in Overlay. * @group Templates */ export interface OverlayTemplates { /** * Custom content template. * @param {OverlayContentTemplateContext} context - content context. */ content(context: OverlayContentTemplateContext): TemplateRef; } /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link OverlayProps.pt} * @group Interface */ export interface OverlayPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the content's DOM element. */ content?: PassThroughOption; /** * Used to pass options to the motion component/directive. */ motion?: MotionOptions; } /** * Defines valid pass-through options in Overlay component. * @see {@link OverlayPassThroughOptions} * * @template I Type of instance. */ export type OverlayPassThrough = PassThrough>;