import { ElementRef, EventEmitter, NgZone, OnInit, QueryList, Renderer2 } from '@angular/core'; import { Router } from '@angular/router'; import { Subscription } from 'rxjs'; import { BzLayoutService } from '../../layout'; import { SafeString } from '../../utilities/type/type'; import { BzBaseComponent } from '../base/base.component'; import { BzTabComponent } from './tab.component'; import { BzTabsetService } from './tabset.service'; export declare class BzTabsetComponent extends BzBaseComponent implements OnInit { private router; private ngZone; private tabsetService; private _elRef; private _renderer2; private _layoutService; tabChildren: Array; subscription: Subscription; fullWidthValue: boolean | string; isInOverflow: boolean; tabScroll: number; offsetScroll: number; private _tabsetNumber; set fullWidth(value: boolean | string); activeTab: string; changeTab: EventEmitter; tabListElement: ElementRef; tabHeader: ElementRef; tabItems: QueryList>; tabs: QueryList; constructor(router: Router, ngZone: NgZone, tabsetService: BzTabsetService, _elRef: ElementRef, _renderer2: Renderer2, _layoutService: BzLayoutService); isOverflow: boolean; ngOnInit(): void; /** * Put to true the active property of tab selected * * @author Federico Gambardella * @param {TabComponent} tab */ selectTab(tab: BzTabComponent): void; /** * Get tab by title * * @author Federico Gambardella * @param {SafeString} title */ getTabByTitle(title: SafeString): BzTabComponent; /** * Get tab by index. * * @author Federico Gambardella * @param {number} index * @returns */ getTabByIndex(index: number): BzTabComponent; /** * Select tab by title. * * @author Federico Gambardella * @param {string} title */ selectTabByTitle(title: string): void; /** * Select tab by Index. * * @author Federico Gambardella * @param {number} index */ selectTabByIndex(index: number): void; /** * Scroll right. * * @author Federico Gambardella */ scrollRight(): void; /** * Scroll left. * * @author Federico Gambardella */ scrollLeft(): void; /** * Add trasformation. * * @author Federico Gambardella */ private _addTranslateTrasformation; /** * Check overflow on x assis. * * @author Federico Gambardella */ isOverflowx(isAnimationTime?: boolean): void; /** * Set overflow on resize. * * @author Federico Gambardella */ private _setOverflowOnResize; /** * Set tab on init. * * @author Federico Gambardella * @param {Array} hasPermissionTabs */ private _setTabOnInit; /** * Selects tab to oninit if list of tabs who user * has permissions to see has atleast an item. * * @author Federico Gambardella * @param {TabComponent[]} hasPermissionTabs * @param {string} title */ private _setTabIsPermissionList; /** * Selects tab to oninit if list of tabs who user * has permissions to see has no items. * * @author Federico Gambardella * @param {string} title */ private _setTabNotPermissionList; /** * Check if there is a tab with title passed in input * in list of tabs who user has permissions to see. * * @author Federico Gambardella * @param {string} title * @param {TabComponent[]} hasPermissionTab */ private _isPermission; /** * Remove active tab title form session storage * on route change. * * @author Federico Gambardella */ private _removeSessionItemOnRouteChange; /** * Set tab title on session storage. * * @author Federico Gambardella * @param {string} title */ private _setTabTitleOnSessionStorage; /** * Get tab title by session storage value. * * @author Federico Gambardella */ private _getTabTitleBySessionStorage; private _getTabTranslateOffset; /** * Check if tab selected by title is active. * * @author Federico Gambardella * @param {string} title */ checkTabActiveByTitle(title: string): boolean | undefined; /** * No children. * * @author Federico Gambardella */ private _noChildren; /** * No children. * * @author Federico Gambardella */ private _removeTabset; /** * Set tab translate offset at init. * * @author Federico Gambardella */ private _setTabTranslateOffsetAtInit; /** * Manage active tabs. * * @author Federico Gambardella * @param {BzTabComponent} tab * @returns */ private _manageActiveTabs; /** * Sets tab title if not exsist. * * @author Federico Gambardella * @param {TabComponent[]} hasPermissionTab */ private _setTabTitleIsNotExsist; ngOnDestroy(): void; }