import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, TemplateRef, QueryList, OnInit } from '@angular/core'; import { FocusOrigin } from '@angular/cdk/a11y'; import { Direction } from '@angular/cdk/bidi'; import { Observable, Subject } from 'rxjs'; import { RealsoftMenuItem } from './menu-item'; import { RealsoftMenuContent } from './menu-content'; import { RealsoftMenuCloseReason, RealsoftMenuDefaultOptions, RealsoftMenuPanel, RealsoftMenuPositionX, RealsoftMenuPositionY } from './models'; import * as i0 from "@angular/core"; export declare class RealsoftMenu implements AfterContentInit, RealsoftMenuPanel, OnInit, OnDestroy { elementRef: ElementRef; private _changeDetectorRef; private _keyManager; private _xPosition; private _yPosition; private _firstItemFocusRef?; private _exitFallbackTimeout; private _animationModule; protected _animationsDisabled: boolean; _directDescendantMenuItems: QueryList; _classList: { [key: string]: boolean; }; _panelAnimationState: 'void' | 'enter'; readonly _animationDone: Subject<"enter" | "void">; _isAnimating: boolean; parentMenu: RealsoftMenuPanel | undefined; direction: Direction; overlayPanelClass: string | string[]; backdropClass: string; ariaLabel: string; ariaLabelledby: string; ariaDescribedby: string; _menuItems: QueryList; get xPosition(): RealsoftMenuPositionX; set xPosition(value: RealsoftMenuPositionX); /** Position of the menu in the Y axis. */ get yPosition(): RealsoftMenuPositionY; set yPosition(value: RealsoftMenuPositionY); templateRef: TemplateRef; items: QueryList; lazyContent: RealsoftMenuContent; overlapTrigger: boolean; hasBackdrop?: boolean; /** * This method takes classes set on the host mat-menu element and applies them on the * menu template that displays in the overlay container. Otherwise, it's difficult * to style the containing menu from outside the component. * @param classes list of class names */ set panelClass(classes: string); private _previousPanelClass; readonly closed: EventEmitter; readonly close: EventEmitter; readonly panelId: string; defaultOptions: RealsoftMenuDefaultOptions; constructor(); ngOnInit(): void; ngAfterContentInit(): void; _hovered(): Observable; addItem(_item: RealsoftMenuItem): void; removeItem(_item: RealsoftMenuItem): void; /** Handle a keyboard event from the menu, delegating to the appropriate action. */ handleKeydown(event: KeyboardEvent): void; focusFirstItem(origin?: FocusOrigin): void; resetActiveItem(): void; setPositionClasses(posX?: RealsoftMenuPositionX, posY?: RealsoftMenuPositionY): void; protected onAnimationDone(state: string): void; protected onAnimationStart(state: string): void; openMenuState(isOpen: boolean): void; private updateDirectDescendants; private _resolvePanel; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_overlapTrigger: unknown; static ngAcceptInputType_hasBackdrop: any; }