/** * @license * Copyright Alibaba.com All Rights Reserved. * * 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 */ /** get some code from https://github.com/angular/material2 */ import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, SimpleChanges, TemplateRef } from '@angular/core'; import { Router } from '@angular/router'; import { NzConfigService } from 'ng-zorro-antd/core/config'; import { NzSizeLDSType } from 'ng-zorro-antd/core/types'; import { NzTabComponent } from './tab.component'; import { NzAnimatedInterface, NzTabChangeEvent, NzTabPosition, NzTabPositionMode, NzTabsCanDeactivateFn, NzTabType } from './table.types'; import { NzTabsNavComponent } from './tabs-nav.component'; export declare class NzTabSetComponent implements AfterContentChecked, OnInit, OnChanges, AfterContentInit, OnDestroy { nzConfigService: NzConfigService; private renderer; private elementRef; private cdr; private router; private indexToSelect; private el; private _selectedIndex; /** Subscription to tabs being added/removed. */ private tabsSubscription; /** Subscription to changes in the tab labels. */ private tabLabelSubscription; private destroy$; tabPositionMode: NzTabPositionMode; hostClassMap: {}; listOfNzTabComponent: QueryList; nzTabsNavComponent: NzTabsNavComponent; tabContent: ElementRef; nzTabBarExtraContent: TemplateRef; nzShowPagination: boolean; nzAnimated: NzAnimatedInterface | boolean; nzHideAll: boolean; nzTabPosition: NzTabPosition; nzSize: NzSizeLDSType; nzTabBarGutter: number; nzTabBarStyle: { [key: string]: string; }; nzType: NzTabType; nzLinkRouter: boolean; nzLinkExact: boolean; nzCanDeactivate: NzTabsCanDeactivateFn | null; readonly nzOnNextClick: EventEmitter; readonly nzOnPrevClick: EventEmitter; readonly nzSelectChange: EventEmitter; readonly nzSelectedIndexChange: EventEmitter; set nzSelectedIndex(value: number | null); get nzSelectedIndex(): number | null; get inkBarAnimated(): boolean; get tabPaneAnimated(): boolean; setPosition(value: NzTabPosition): void; setClassMap(): void; clickLabel(index: number, disabled: boolean): void; private emitClickEvent; createChangeEvent(index: number): NzTabChangeEvent; /** Clamps the given index to the bounds of 0 and the tabs length. */ private clampTabIndex; private subscribeToTabLabels; constructor(nzConfigService: NzConfigService, renderer: Renderer2, elementRef: ElementRef, cdr: ChangeDetectorRef, router: Router); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngAfterContentChecked(): void; ngAfterContentInit(): void; ngOnDestroy(): void; private updateRouterActive; private findShouldActiveTabIndex; private isLinkActive; }