import { EventEmitter, OnInit, ChangeDetectorRef, ElementRef } from '@angular/core'; import { Header } from '../../models'; import { UglaService } from '../../ugla.service'; /** * # Header component * * ## HTML: * ```html * * * * ``` * * ## Typescript * ```typescript * import { Header, People, Menu, MenuItem, Select, Options } from 'ugla-ugla'; * * public header = new Header('Ugla', './assets/imgs/logo.png', 'home', true); * public people = new People('PEOPLE NAME', 'LOGIN\@ciandt.com', 'IMAGE URL'); * * public menu = new Menu([ * new MenuItem('Home Page', '/', true), * new MenuItem('Content', '/content', false), * new MenuItem('Menu Hidden in mobile', '/no-mobile', true), * ]); * * ngOnInit() { * this.header.people = this.people; * this.header.menu = this.menu; * this.contentType = ContentTypes.FLUID; * } * ``` */ export declare class HeaderComponent implements OnInit { private ugla; private changeDetector; /** * Instance of header right area */ headerRightInstance: ElementRef; /** * Object type Header */ header: Header; /** * Function logout */ logoutAction: EventEmitter; /** * Logout text alt */ logoutText: string; /** * Identify menu is open */ open: boolean; /** * @ignore */ private theme; /** * @ignore */ private hasShadow; /** * Classes of the header component */ classes: string; /** * Height of header right area */ headerRightHeight: number; windowHeight: number; /** * Receives the component's name * @param ugla: UglaService * @param changeDetector: ChangeDetectorRef */ constructor(ugla: UglaService, changeDetector: ChangeDetectorRef); /** * Set the header classes * @param shadow active or not the shadow, default is false */ private setClasses; /** * Function click * * Open / Close menu */ toggleMenu(): void; /** * Function logout */ logout(): void; /** * Set initial configurations */ ngOnInit(): void; closeMenu(): void; }