import { ElementRef, NgZone } from '@angular/core'; import { Overlay } from '@angular/cdk/overlay'; import { PblNgridComponent, PblNgridMultiTemplateRegistry } from '@pebula/ngrid'; import { PblNgridOverlayPanelComponentExtension } from './component-registry-extension'; import { PblNgridOverlayPanelRef } from './overlay-panel-ref'; import * as i0 from "@angular/core"; declare module '@pebula/ngrid/core/lib/registry/types' { interface PblNgridMultiRegistryMap { overlayPanels?: PblNgridMultiTemplateRegistry | PblNgridOverlayPanelComponentExtension; } } export interface PblNgridOverlayPanelConfig { hasBackdrop?: boolean; backdropClass?: string; xPos?: 'before' | 'center' | 'after'; yPos?: 'above' | 'center' | 'below'; insetPos?: boolean; } export declare class PblNgridOverlayPanelFactory { private _overlay; private zone; constructor(_overlay: Overlay, zone: NgZone); create(grid: PblNgridComponent): PblNgridOverlayPanel; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export declare class PblNgridOverlayPanel { private _overlay; private zone; readonly grid: PblNgridComponent; private vcRef; private injector; private _scrollStrategy; constructor(_overlay: Overlay, zone: NgZone, grid: PblNgridComponent); /** * Opens a panel relative to a cell element using the overlay panel extension registry template/component with the name provided in `extName`. * The cell element is referenced by the `columnId` and the `rowRenderPosition`. * * If the `rowRenderPosition` is "header" or "footer" then the grid's header / footer rows are targeted, otherwise the number provided should reference * the rendered row index to use to get the cell from. * * > Note that this helper method does not allow targeting meta cells. */ openGridCell(extName: string, columnId: string, rowRenderPosition: number | 'header' | 'footer', config?: PblNgridOverlayPanelConfig, data?: T): PblNgridOverlayPanelRef; open(extName: string, source: ElementRef, config?: PblNgridOverlayPanelConfig, data?: T): PblNgridOverlayPanelRef; /** * This method creates the overlay from the provided menu's template and saves its * OverlayRef so that it can be attached to the DOM when openMenu is called. */ private _createOverlay; /** * This method builds the configuration object needed to create the overlay, the OverlayState. * @returns OverlayConfig */ private _getOverlayConfig; private _getTemplatePortal; private _getComponentPortal; private _setPosition; private findNamesExtension; }