import { ElementRef, EventEmitter, OnInit, QueryList } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { VdlButton } from 'vdl-angular/button'; import { VdlIconRegistry } from 'vdl-angular/icon'; import { Category } from './category'; /** @docs-private */ export declare class VdlSidenavItem implements OnInit { private _elementRef; private _sanitizer; private vdlIconRegistry; /** The category for this vdl-sidenav-item */ category: Category; /** Whether the sidenav-item has focus from the keyboard (not the mouse). Used for class binding. */ _isKeyboardFocused: boolean; /** The toggle to show alerts for the sidenav */ showAlert: boolean; /** The toggle to show badge counter for the sidenav */ showBadgeCounter: boolean; /** Binding to pass vdl_sidenav._opened value to vdl-sidenav-item */ sidenavOpen: boolean; constructor(_elementRef: ElementRef, _sanitizer: DomSanitizer, vdlIconRegistry: VdlIconRegistry); ngOnInit(): void; /** Focuses this svdl-sidenav-item. */ _focus(): void; /** * Returns the aria-label for this category. * Order of precedence for properties are arialLabel, alt, and displayName. */ _getAriaLabel(category: Category): string; _getHostElement(): any; _handleKeydown(event: KeyboardEvent): void; _isExpandable(category: Category): boolean; _isExpanded(category: Category): boolean; _removeKeyboardFocus(): void; _setKeyboardFocus(): void; } /** * A VDL compliant side navigation component. */ export declare class VdlSidenav { /** * The list of Category objects to present in the sidenav. A category is allowed to contain * one level of subcategories. */ categoryList: Array; /** * Whether or not the sidenav should be scrollable * Defaults to false. */ scrollable: boolean; /** * Whether or not the sidenav should be opened * Defaults to false. */ opened: boolean; /** The category from categoryList that should be styled as selected */ selectedCategory: Category; /** * The toggle to show alerts for the sidenav * Defaults to true. */ showAlerts: boolean; /** * The toggle to show badge counts for the sidenav * Defaults to true. */ showBadgeCounters: boolean; /** Aria label of the top button to expand/collapse the sidenav. */ ariaLabelOpenToggle: string; /** * Event triggered when a category or subcategory is selected. Note that this * event is not fired when an expandable category (category with a list of subcategories) * is selected. */ categorySelected: EventEmitter<{}>; /** * Event triggered when the sidenav is opened or closed. */ expanderToggled: EventEmitter<{}>; _openCloseButton: VdlButton; constructor(vdlIconRegistry: VdlIconRegistry); _isExpandable(category: Category): boolean; _isExpanded(category: Category): boolean; _isSelected(category: Category): boolean; _itemClicked(category: Category): void; _toggleOpened(): void; } /** @docs-private */ export declare class VdlSidenavFocusManager { categoryList: Array; selectedCategory: Category; _listItems: QueryList; }