import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from "@angular/core"; import { MatExpansionPanel } from "@angular/material/expansion"; import { StarkLoggingService, StarkRoutingService } from "@nationalbankbelgium/stark-core"; import { AbstractStarkUiComponent } from "@nationalbankbelgium/stark-ui/src/internal-common"; import { StarkMenuGroup } from "./app-menu-group.intf"; import * as i0 from "@angular/core"; /** * Component to display app-menu-item based on the options passed as parameters. */ export declare class StarkAppMenuItemComponent extends AbstractStarkUiComponent implements OnInit, AfterViewInit, OnDestroy { logger: StarkLoggingService; routingService: StarkRoutingService; protected cdRef: ChangeDetectorRef; /** * Current menu level */ level: number; /** * Data source of the component */ menuGroup: StarkMenuGroup; /** * Event to emit when the component is activated */ readonly activated: EventEmitter; /** * Event to emit when the component is deactivated */ readonly deactivated: EventEmitter; /** * ViewChild catching the extension panel in order to open/close it programmatically */ menuGroupsPanel: MatExpansionPanel; /** * Active status of the component */ private _isActive; set isActive(isActive: boolean); get isActive(): boolean; /** * Routing transition finish callback */ private routingTransitionFinishCallback?; /** * Routing transition success callback */ private routingTransitionSuccessCallback?; /** * Class constructor * @param logger - The `StarkLoggingService` instance of the application. * @param routingService - The `StarkRoutingService` instance of the application. * @param renderer - Angular `Renderer2` wrapper for DOM manipulations. * @param elementRef - Reference to the DOM element where this component is attached to. * @param cdRef - Reference to the change detector attached to this component. */ constructor(logger: StarkLoggingService, routingService: StarkRoutingService, renderer: Renderer2, elementRef: ElementRef, cdRef: ChangeDetectorRef); /** * Component OnInit lifecycle hook */ ngOnInit(): void; /** * Component AfterViewInit lifecycle hook */ ngAfterViewInit(): void; /** * Component OnDestroy lifecycle hook */ ngOnDestroy(): void; /** * Click event handler */ onClick(): void; /** * Activate event handler */ onActivate(): void; /** * Deactivate event handler */ onDeactivate(): void; /** * Utility function to check if the component targetState is the current state */ isCurrentState(): boolean; /** * @ignore */ trackMenuItem(index: number, _menuGroup: StarkMenuGroup): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }