import * as i0 from '@angular/core'; import { OnInit, OnChanges, AfterContentInit, QueryList, SimpleChanges, TemplateRef, EventEmitter, ElementRef, AfterViewInit, InjectionToken } from '@angular/core'; import * as _angular_cdk_bidi from '@angular/cdk/bidi'; import { RouterLink } from '@angular/router'; import { Subject, BehaviorSubject, Observable } from 'rxjs'; import * as _angular_cdk_overlay from '@angular/cdk/overlay'; import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay'; import * as i1 from 'ng-zorro-antd/core/animation'; import { NzNoAnimationDirective } from 'ng-zorro-antd/core/animation'; import { POSITION_TYPE_HORIZONTAL } from 'ng-zorro-antd/core/overlay'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; /** * 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 routerLink; private readonly router; protected readonly isMenuInsideDropdown: boolean; level: number; selected$: Subject; inlinePaddingLeft: number | null; 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 isMenuInsideDropdown; private readonly nzHostSubmenuService; mode$: Observable; level: number; 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; protected readonly dir: i0.WritableSignal<_angular_cdk_bidi.Direction>; 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: 'left' | 'right'; triggerWidth: number | null; theme: NzMenuThemeType; mode: NzMenuModeType; inlinePaddingLeft: number | null; overlayPositions: _angular_cdk_overlay.ConnectionPositionPair[]; isSelected: boolean; isActive: boolean; /** 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; } declare class NzMenuDirective implements AfterContentInit, OnInit, OnChanges { private readonly nzMenuService; private readonly destroyRef; private readonly cdr; protected readonly dir: i0.WritableSignal<_angular_cdk_bidi.Direction>; protected readonly isMenuInsideDropdown: boolean; listOfNzMenuItemDirective: QueryList; listOfNzSubMenuComponent: QueryList; nzInlineIndent: number; nzTheme: NzMenuThemeType; nzMode: NzMenuModeType; nzInlineCollapsed: boolean; nzSelectable: boolean; readonly nzClick: EventEmitter; actualMode: NzMenuModeType; 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 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; } declare class NzSubMenuTitleComponent { protected readonly isMenuInsideDropdown: boolean; protected readonly dir: i0.WritableSignal<_angular_cdk_bidi.Direction>; nzIcon: string | null; nzTitle: string | TemplateRef | null; nzDisabled: boolean; paddingLeft: number | null; mode: NzMenuModeType; nzTriggerSubMenuAction: NzSubmenuTrigger; readonly toggleSubMenu: EventEmitter; readonly subMenuMouseState: EventEmitter; protected setMouseState(state: boolean): void; protected clickTitle(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzSubmenuInlineChildComponent { protected readonly dir: i0.WritableSignal<_angular_cdk_bidi.Direction>; readonly menuClass: i0.InputSignal; readonly open: i0.InputSignal; readonly leavedClassName: i0.InputSignal; protected readonly mergedClass: i0.Signal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzSubmenuNoneInlineChildComponent { protected readonly isMenuInsideDropdown: boolean; protected readonly dir: i0.WritableSignal<_angular_cdk_bidi.Direction>; readonly menuClass: i0.InputSignal; readonly theme: i0.InputSignal; readonly mode: i0.InputSignal<"vertical" | "horizontal">; readonly position: i0.InputSignal<"right" | "left">; readonly open: i0.InputSignal; readonly nzDisabled: i0.InputSignal; readonly nzTriggerSubMenuAction: i0.InputSignal; readonly subMenuMouseState: i0.OutputEmitterRef; protected readonly animationEnter: i0.Signal; protected readonly animationLeave: i0.Signal; protected readonly submenuClass: i0.Signal; protected readonly mergedMenuClass: i0.Signal; protected setMouseState(state: boolean): 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 */ /** * A flag to mark if the menu is inside a dropdown. * @note Internally used only, please do not use it. */ declare const NzIsMenuInsideDropdownToken: InjectionToken; /** * A token to hold the local {@link MenuService} instance. This is used for nested menu. * @note Internally used only, please do not use it. */ declare const NzMenuServiceLocalToken: InjectionToken; export { MenuService, NzIsMenuInsideDropdownToken, NzMenuDirective, NzMenuDividerDirective, NzMenuGroupComponent, NzMenuItemComponent, NzMenuModule, NzMenuServiceLocalToken, NzSubMenuComponent, NzSubMenuTitleComponent, NzSubmenuInlineChildComponent, NzSubmenuNoneInlineChildComponent, NzSubmenuService }; export type { NzMenuModeType, NzMenuThemeType, NzSubmenuTrigger };