UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

36 lines (35 loc) 1.48 kB
/** * 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 */ import { OnDestroy } from '@angular/core'; import { BehaviorSubject, Observable } from 'rxjs'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { MenuService } from './menu.service'; import { NzMenuModeType } from './menu.types'; import * as i0 from "@angular/core"; export declare class NzSubmenuService implements OnDestroy { private nzHostSubmenuService; nzMenuService: MenuService; isMenuInsideDropDown: boolean; mode$: Observable<NzMenuModeType>; level: number; isCurrentSubMenuOpen$: BehaviorSubject<boolean>; private isChildSubMenuOpen$; /** submenu title & overlay mouse enter status **/ private isMouseEnterTitleOrOverlay$; private childMenuItemClick$; private destroy$; /** * menu item inside submenu clicked * * @param menu */ onChildMenuItemClick(menu: NzSafeAny): void; setOpenStateWithoutDebounce(value: boolean): void; setMouseEnterTitleOrOverlayState(value: boolean): void; constructor(nzHostSubmenuService: NzSubmenuService, nzMenuService: MenuService, isMenuInsideDropDown: boolean); ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NzSubmenuService, [{ optional: true; skipSelf: true; }, null, null]>; static ɵprov: i0.ɵɵInjectableDeclaration<NzSubmenuService>; }