import { TemplateRef, ViewContainerRef } from '@angular/core'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { DomSanitizer } from '@angular/platform-browser'; import { ComponentPortal } from '@angular/cdk/portal'; import { MenuItem, MenuOptions } from './types'; import * as i0 from "@angular/core"; export declare const calcMenuItemBounds: (menuItems: MenuItem[], dataObj: any) => Promise; export declare class MenuComponent { viewContainer: ViewContainerRef; sanitizer: DomSanitizer; private _data; dialog: MatDialog; dialogRef: MatDialogRef; data: any; items: MenuItem[]; config: MenuOptions; id: string; overlayOverlap: number; hoverDelay: number; showDebugOverlay: boolean; targetBounds: DOMRect; ownerCords: DOMRect; selfCords: any; parentItem: any; parentContext: any; isLockedOpen: boolean; hasBootstrapped: boolean; pointerIsOnVoid: boolean; pointerHasBeenOverMask: boolean; parentIsNgxMenu: boolean; coverRectCords: { top: number; left: number; height: number; width: number; }; readonly matIconRx: RegExp; showIconColumn: boolean; showShortcutColumn: boolean; template: TemplateRef; templateType: "template" | "component"; componentPortal: ComponentPortal; private childDialogs; constructor(viewContainer: ViewContainerRef, sanitizer: DomSanitizer, _data: any, dialog: MatDialog, // optional only for the purpose of estimating dimensions dialogRef: MatDialogRef); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; /** * */ onMenuItemClick(item: MenuItem, row: HTMLTableRowElement, keepOpen?: boolean): Promise; /** * * @param label * @returns */ formatLabel(label: string): string; /** * Close the context menu under these circumstances */ close(result?: any): void; closeOnVoid(force?: boolean): void; startHoverTimer(item: any, row: any): void; stopHoverTimer(item: any): void; private closeTimer; startCloseTimer(): void; stopCloseTimer(): void; /** * Check if the dialog is clipping offscreen * if so, move it back into view. */ private onResize; onWheel(evt: WheelEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }