UNPKG

ng-zorro-antd

Version:

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

52 lines (51 loc) 2.85 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 { Direction, Directionality } from '@angular/cdk/bidi'; import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core'; import { Router, RouterLink } from '@angular/router'; import { Subject } from 'rxjs'; import { BooleanInput } from 'ng-zorro-antd/core/types'; import { MenuService } from './menu.service'; import { NzSubmenuService } from './submenu.service'; import * as i0 from "@angular/core"; export declare class NzMenuItemComponent implements OnInit, OnChanges, OnDestroy, AfterContentInit { private nzMenuService; private cdr; private nzSubmenuService; isMenuInsideDropDown: boolean; private directionality; private routerLink?; private router?; static ngAcceptInputType_nzDisabled: BooleanInput; static ngAcceptInputType_nzSelected: BooleanInput; static ngAcceptInputType_nzDanger: BooleanInput; static ngAcceptInputType_nzMatchRouterExact: BooleanInput; static ngAcceptInputType_nzMatchRouter: BooleanInput; private destroy$; level: number; selected$: Subject<boolean>; inlinePaddingLeft: number | null; dir: Direction; nzPaddingLeft?: number; nzDisabled: boolean; nzSelected: boolean; nzDanger: boolean; nzMatchRouterExact: boolean; nzMatchRouter: boolean; listOfRouterLink: QueryList<RouterLink>; /** clear all item selected status except this */ clickMenuItem(e: MouseEvent): void; setSelectedState(value: boolean): void; private updateRouterActive; private hasActiveLinks; private isLinkActive; constructor(nzMenuService: MenuService, cdr: ChangeDetectorRef, nzSubmenuService: NzSubmenuService, isMenuInsideDropDown: boolean, directionality: Directionality, routerLink?: RouterLink | undefined, router?: Router | undefined); ngOnInit(): void; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NzMenuItemComponent, [null, null, { optional: true; }, null, { optional: true; }, { optional: true; }, { optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<NzMenuItemComponent, "[nz-menu-item]", ["nzMenuItem"], { "nzPaddingLeft": { "alias": "nzPaddingLeft"; "required": false; }; "nzDisabled": { "alias": "nzDisabled"; "required": false; }; "nzSelected": { "alias": "nzSelected"; "required": false; }; "nzDanger": { "alias": "nzDanger"; "required": false; }; "nzMatchRouterExact": { "alias": "nzMatchRouterExact"; "required": false; }; "nzMatchRouter": { "alias": "nzMatchRouter"; "required": false; }; }, {}, ["listOfRouterLink"], ["*"], true, never>; }