/** * 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 { ElementRef, Renderer2, OnChanges, SimpleChanges, ChangeDetectorRef, OnInit, TemplateRef, OnDestroy, AfterViewInit, NgZone, EventEmitter } from '@angular/core'; import { VtsProlayoutService } from './pro-layout.service'; import { Router } from '@angular/router'; import { VtsAvatarMenu, VtsAvatarUser, VtsMenuItemProLayout, VtsNotificationConfig, VtsVisibilityConfig } from './pro-layout.types'; import { VtsBlockUIService } from './block-ui.service'; import { BreakpointObserver } from '@angular/cdk/layout'; import { VtsTheme, VtsThemeService } from '@ui-vts-kit/theme/services'; import * as i0 from "@angular/core"; export declare class VtsHeaderComponent implements OnChanges, OnInit, OnDestroy, AfterViewInit { elementRef: ElementRef; private renderer; private prolayoutService; private lockUiService; private cdf; private router; private breakpointService; private document; private ngZone; private themeService; constructor(elementRef: ElementRef, renderer: Renderer2, prolayoutService: VtsProlayoutService, lockUiService: VtsBlockUIService, cdf: ChangeDetectorRef, router: Router, breakpointService: BreakpointObserver, document: Document, ngZone: NgZone, themeService: VtsThemeService); ngOnDestroy(): void; isFixedHeader: boolean; isFixedSider: boolean; isCollapsedSider: boolean; notificationCount: number; isFullScreen: boolean; isShowSider: boolean; /** * check window size */ windowSize: 'small' | 'medium' | 'large'; private onDestroy$; useSplitMenu: boolean; vtsTitle: string | TemplateRef | null; showLogo: boolean; vtsAvatar: VtsAvatarUser; showMenu: boolean; vtsAvatarMenu: VtsAvatarMenu[]; vtsLogoUrl: string; vtsMenuTemplate: TemplateRef | null; vtsNotificationConfig: VtsNotificationConfig; vtsVisibleNotifyPane: boolean; vtsMenuAvatarTemplateRef: TemplateRef | null; /** * input from parent; actual data will be wrapped by one item with Toc:vts icon */ vtsMenuData: VtsMenuItemProLayout[]; vtsVisibilityConfig: VtsVisibilityConfig; /** * display header menu's items horizontally */ vtsUseExpandHeaderMenu: boolean; /** * mark active root menu item on header menu, when vtsUseExpandHeaderMenu = true */ vtsActiveRootMenuHeader: string | number | undefined; visibleChangeCtxNotify: EventEmitter; displayMenuData: VtsMenuItemProLayout[]; scrollListEle: HTMLElement | null; /** * position of list scroll, when this field >= 0 => cannot scroll to the right, if Math.abs(posScroll) >= maxScrollPos => cannot scroll to the left */ posScroll: number; /** * if > 0 => able to scroll */ private maxScrollPos; private lockAnimationTimeoutId; ngOnInit(): void; currentTheme: VtsTheme | null; /** * destroy all subscription of prolayout service */ destroySubscriptions(): void; ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; /** * whenever vtsUseExpandHeaderMenu = true, check max scroll limit and add listener for wheel event */ private enableExpandHeaderScroll; handleChangeFixedStatus(isFixedHeader: boolean, isFixedSider: boolean): void; onClickAvatarMenuItem(item: VtsAvatarMenu): void; toggleSider(): void; openNotificationPane(): void; toggleFullScreen(): void; lockScreen(): void; /** * add wheel event's listener for header menu */ private addWheelListerHeader; private onWheel; private lockAnimation; private updateMaxPosScroll; private updateScrollListPos; onChangeVisibleNotifyCtx(val: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }