UNPKG

@ux-aspects/ux-aspects

Version:

Open source user interface framework for building modern, responsive, mobile big data applications

36 lines (35 loc) 1.71 kB
import { FocusableOption } from '@angular/cdk/a11y'; import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core'; import { BehaviorSubject, Observable } from 'rxjs'; import { IconType } from '../../../../common/index'; import type { PageHeaderNavigationItem } from '../navigation.component'; import * as i0 from "@angular/core"; export declare class PageHeaderNavigationItemComponent implements AfterViewInit, OnDestroy, FocusableOption { readonly elementRef: ElementRef<any>; private readonly _pageHeaderService; private readonly _navigationService; /** Access the data for this dropdown item */ set item(item: PageHeaderNavigationItem); get item(): PageHeaderNavigationItem; /** Store the secondary state */ secondary$: BehaviorSubject<boolean>; /** Store the open state of the item dropdown */ isOpen: boolean; /** Store the item data */ _item: PageHeaderNavigationItem; /** Store the icon type */ _iconType: IconType; /** Update the tabindex based on keyboard input */ _tabindex: Observable<number>; /** Access the navigation button element */ navigationBtn: ElementRef; /** Unsubscribe when the component is destroyed */ private readonly _onDestroy; ngAfterViewInit(): void; ngOnDestroy(): void; focus(): void; select(): void; onKeydown(event: KeyboardEvent, target: HTMLElement): void; static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderNavigationItemComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderNavigationItemComponent, "ux-page-header-horizontal-navigation-item", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, false, never>; }