import { Direction } from '@angular/cdk/bidi'; import * as i0 from '@angular/core'; import { OnInit, OnChanges, AfterContentInit, QueryList, SimpleChanges, TemplateRef, EventEmitter, ElementRef, AfterViewInit, InjectionToken } from '@angular/core'; import { RouterLink } from '@angular/router'; import { Subject, BehaviorSubject, Observable } from 'rxjs'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; import * as _angular_cdk_overlay from '@angular/cdk/overlay'; import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay'; import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { POSITION_TYPE_HORIZONTAL } from 'ng-zorro-antd/core/overlay'; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare class NzMenuItemComponent implements OnInit, OnChanges, AfterContentInit { private readonly nzMenuService; private readonly destroyRef; private readonly cdr; private readonly nzSubmenuService; private readonly directionality; private readonly routerLink; private readonly router; protected readonly isMenuInsideDropDown: boolean; level: number; selected$: Subject; inlinePaddingLeft: number | null; dir: Direction; nzPaddingLeft?: number; nzDisabled: boolean; nzSelected: boolean; nzDanger: boolean; nzMatchRouterExact: boolean; nzMatchRouter: boolean; listOfRouterLink: QueryList; /** clear all item selected status except this */ clickMenuItem(e: MouseEvent): void; setSelectedState(value: boolean): void; private updateRouterActive; private hasActiveLinks; private isLinkActive; constructor(); ngOnInit(): void; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_nzPaddingLeft: unknown; static ngAcceptInputType_nzDisabled: unknown; static ngAcceptInputType_nzSelected: unknown; static ngAcceptInputType_nzDanger: unknown; static ngAcceptInputType_nzMatchRouterExact: unknown; static ngAcceptInputType_nzMatchRouter: unknown; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ type NzMenuModeType = 'vertical' | 'horizontal' | 'inline'; type NzMenuThemeType = 'light' | 'dark'; type NzSubmenuTrigger = 'hover' | 'click'; declare class MenuService { /** all descendant menu click **/ descendantMenuItemClick$: Subject; /** child menu item click **/ childMenuItemClick$: Subject; theme$: BehaviorSubject; mode$: BehaviorSubject; inlineIndent$: BehaviorSubject; isChildSubMenuOpen$: BehaviorSubject; onDescendantMenuItemClick(menu: NzSafeAny): void; onChildMenuItemClick(menu: NzSafeAny): void; setMode(mode: NzMenuModeType): void; setTheme(theme: NzMenuThemeType): void; setInlineIndent(indent: number): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class NzSubmenuService { readonly nzMenuService: MenuService; private readonly nzHostSubmenuService; mode$: Observable; level: number; isMenuInsideDropDown: boolean; isCurrentSubMenuOpen$: BehaviorSubject; private isChildSubMenuOpen$; /** submenu title & overlay mouse enter status **/ private isMouseEnterTitleOrOverlay$; private childMenuItemClick$; /** * menu item inside submenu clicked */ onChildMenuItemClick(menu: NzSafeAny): void; setOpenStateWithoutDebounce(value: boolean): void; setMouseEnterTitleOrOverlayState(value: boolean): void; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class NzSubMenuComponent implements OnInit, AfterContentInit, OnChanges { readonly nzSubmenuService: NzSubmenuService; protected readonly isMenuInsideDropDown: boolean; protected readonly noAnimation: NzNoAnimationDirective | null; private readonly directionality; private readonly destroyRef; private readonly nzMenuService; private readonly cdr; private readonly platform; nzMenuClassName: string; nzPaddingLeft: number | null; nzTitle: string | TemplateRef | null; nzIcon: string | null; nzTriggerSubMenuAction: NzSubmenuTrigger; nzOpen: boolean; nzDisabled: boolean; nzPlacement: POSITION_TYPE_HORIZONTAL; readonly nzOpenChange: EventEmitter; cdkOverlayOrigin: ElementRef | null; listOfNzSubMenuComponent: QueryList | null; listOfNzMenuItemDirective: QueryList | null; private level; position: string; triggerWidth: number | null; theme: NzMenuThemeType; mode: NzMenuModeType; inlinePaddingLeft: number | null; overlayPositions: _angular_cdk_overlay.ConnectionPositionPair[]; isSelected: boolean; isActive: boolean; dir: Direction; /** set the submenu host open status directly **/ setOpenStateWithoutDebounce(open: boolean): void; toggleSubMenu(): void; setMouseEnterState(value: boolean): void; setTriggerWidth(): void; onPositionChange(position: ConnectedOverlayPositionChange): void; ngOnInit(): void; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_nzOpen: unknown; static ngAcceptInputType_nzDisabled: unknown; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare function MenuServiceFactory(): MenuService; declare function MenuDropDownTokenFactory(): boolean; declare class NzMenuDirective implements AfterContentInit, OnInit, OnChanges { private readonly nzMenuService; private readonly destroyRef; private readonly cdr; private readonly directionality; listOfNzMenuItemDirective: QueryList; isMenuInsideDropDown: boolean; listOfNzSubMenuComponent: QueryList; nzInlineIndent: number; nzTheme: NzMenuThemeType; nzMode: NzMenuModeType; nzInlineCollapsed: boolean; nzSelectable: boolean; readonly nzClick: EventEmitter; actualMode: NzMenuModeType; dir: Direction; private inlineCollapsed$; private mode$; private listOfOpenedNzSubMenuComponent; setInlineCollapsed(inlineCollapsed: boolean): void; updateInlineCollapse(): void; ngOnInit(): void; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_nzInlineCollapsed: unknown; static ngAcceptInputType_nzSelectable: unknown; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare function MenuGroupFactory(): boolean; declare class NzMenuGroupComponent implements AfterViewInit { private readonly renderer; protected readonly isMenuInsideDropDown: boolean; nzTitle?: string | TemplateRef; titleElement?: ElementRef; ngAfterViewInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzMenuDividerDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare class NzSubMenuTitleComponent implements OnInit { private readonly destroyRef; private readonly cdr; private readonly directionality; nzIcon: string | null; nzTitle: string | TemplateRef | null; isMenuInsideDropDown: boolean; nzDisabled: boolean; paddingLeft: number | null; mode: NzMenuModeType; nzTriggerSubMenuAction: NzSubmenuTrigger; readonly toggleSubMenu: EventEmitter; readonly subMenuMouseState: EventEmitter; dir: Direction; ngOnInit(): void; setMouseState(state: boolean): void; clickTitle(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare class NzSubmenuInlineChildComponent implements OnInit, OnChanges { private readonly elementRef; private readonly renderer; private readonly directionality; private readonly destroyRef; templateOutlet: TemplateRef | null; menuClass: string; mode: NzMenuModeType; nzOpen: boolean; listOfCacheClassName: string[]; expandState: string; dir: Direction; calcMotionState(): void; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare class NzSubmenuNoneInlineChildComponent implements OnInit, OnChanges { private readonly directionality; private readonly destroyRef; menuClass: string; theme: NzMenuThemeType; templateOutlet: TemplateRef | null; isMenuInsideDropDown: boolean; mode: NzMenuModeType; nzTriggerSubMenuAction: NzSubmenuTrigger; position: string; nzDisabled: boolean; nzOpen: boolean; readonly subMenuMouseState: EventEmitter; expandState: string; dir: Direction; setMouseState(state: boolean): void; calcMotionState(): void; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzMenuModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare const NzIsMenuInsideDropDownToken: InjectionToken; declare const NzMenuServiceLocalToken: InjectionToken; export { MenuDropDownTokenFactory, MenuGroupFactory, MenuService, MenuServiceFactory, NzIsMenuInsideDropDownToken, NzMenuDirective, NzMenuDividerDirective, NzMenuGroupComponent, NzMenuItemComponent, NzMenuModule, NzMenuServiceLocalToken, NzSubMenuComponent, NzSubMenuTitleComponent, NzSubmenuInlineChildComponent, NzSubmenuNoneInlineChildComponent, NzSubmenuService }; export type { NzMenuModeType, NzMenuThemeType, NzSubmenuTrigger };