import { OnInit, QueryList, EventEmitter, ElementRef, AfterContentInit, OnDestroy, SimpleChanges, OnChanges, AfterContentChecked } from '@angular/core'; import { DropdownSelectOptionComponent } from '../dropdown-select-option/dropdown-select-option.component'; import { Subscription, BehaviorSubject } from 'rxjs'; import * as i0 from "@angular/core"; export declare class DropdownSelectComponent implements OnInit, OnDestroy, AfterContentInit, OnChanges, AfterContentChecked { private elementRef; /** * Controls the display of the border. Set to false to eliminate borders. */ border: boolean; /** * A QueryList of the DropdownSelectOptionComponent that populate the options. */ readonly options: QueryList; /** * Tab Index to enable keyboard navigation */ readonly tabIndex = 0; /** * Boolean state of the dropdown menu. open = true; closed = false */ isOpen: boolean; /** * Boolean. True when the component has focus, otherwise false. */ hasFocus: boolean; /** * The index of the currently-highlighted option */ highlightedIndex: number; /** * The index of the currently-selected option. */ selectedIndex: number; /** * Array of subscriptions created during the life of the component. */ _subscriptions: Subscription[]; /** * Detect focus and blur events from projected components * */ contentFocusState: BehaviorSubject; /** * Input options state, this is any as we need to now only if option state has changed or not * */ optionsListstate: any; /** * display or hide options * */ showOptions: boolean; /** * The current value of the component. */ _value: any; get value(): any; set value(value: any); valueChange: EventEmitter; /** * Constructs a new ToolbarSelectComponent. * @param elementRef Reference to the component's host element. */ constructor(elementRef: ElementRef); /** * Manages rxjs subscriptions so that the component doesn't leak memory. * @param subscription Subscription to add to tracking array. */ addSubscription(subscription: Subscription): this; /** * Initializes the subscriptions for hover and clicks from ToolbarOptionComponent children. */ ngAfterContentInit(): void; /** *Responds everytime new content is rendered * */ ngAfterContentChecked(): void; ngOnChanges(changes: SimpleChanges): void; /** * Safely closes subscriptions when the component is destroyed. */ ngOnDestroy(): void; /** * destroys all exising subscriptions * */ destoryExistingSubscriptionsListOptions(): void; /** * creates new subscriptions * */ createNewSubscriptionsListOptions(): void; /** * Highlights an option by its position in the `option` array. * @param highlightIndex The index of the option to highlight on screen. * @param scrollToHighlightedOption Boolean, if the option should be scrolled to on highlight. */ highlightOptionByIndex(highlightIndex: number, scrollToHighlightedOption?: boolean): void; /** * Toggles the dropdown being open or closed. */ toggleOpen(): void; /** * Opens the dropdown. */ open(): this; /** * Closes the dropdown */ close(): this; /** * Called when the component gets focus. Used to make keyboard navigation make sense. */ onFocusIn(): void; /** * Called when the component loses focus. */ onFocusOut(): void; /** * Closes dropdown on stray click * @param event Click event containing the target. */ onClick(event: any): void; /** * Processes keyboard presses to enable keyboard navigation. * @param event An event containing details about the key press. */ onDocumentKeyDown(event: KeyboardEvent): void; ngOnInit(): void; /** * Finds the index of a value within the options ToolbarOptionComponent array. * @param value Value to find in the options. */ getIndexByValue(value: any): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }