import { EventEmitter, OnChanges, TemplateRef, OnDestroy, QueryList, SimpleChanges, NgZone, ElementRef, ChangeDetectorRef } from '@angular/core'; import { ActiveDescendantKeyManager } from '@angular/cdk/a11y'; import { ConnectionPositionPair, CdkOverlayOrigin, CdkConnectedOverlay } from '@angular/cdk/overlay'; import { XotbComboboxOption } from './combobox-option'; import { XotbComboboxInput } from './combobox-input'; export interface XotbComboboxOptionItem { value: number | string; label?: string; disabled?: boolean; } export declare class XotbCombobox implements OnChanges, OnDestroy { private ngZone; private cd; readonly variant: 'base' | 'lookup'; readonly label: string | TemplateRef; uid: string; readonly open = false; openChange: EventEmitter; readonly selection: any; selectionChange: EventEmitter<{}>; readonly multiple = false; readonly visibleLength: 5 | 7 | 10; inputEl: XotbComboboxInput; readonly loading: boolean; readonly loadingMore: boolean; readonly closeOnSelection = true; readonly options: QueryList; data: any[]; overlayOrigin: CdkOverlayOrigin; cdkOverlay: CdkConnectedOverlay; dropdownElementRef: ElementRef; overlayWidth: number; overlayPositions: ConnectionPositionPair[]; /** Manages active item in option list based on key events. */ keyManager: ActiveDescendantKeyManager; private optionChangesSubscription; private _data; private keyboardSubscription; selectionValueFn: (selection: string[]) => string; readonly activeOption: XotbComboboxOption | null; readonly selectedOptions: XotbComboboxOptionItem[]; readonly isLookup: boolean; readonly hasLookupSingleSelection: boolean; constructor(ngZone: NgZone, cd: ChangeDetectorRef); ngOnChanges(changes: SimpleChanges): void; onAttach(): void; onDetach(): void; trackByOption(index: any, option: XotbComboboxOption): any; dropdownClass(): { [x: string]: boolean; }; inputIconRight(): "search" | "chevron-down"; hasNoMatches(): boolean; onOptionSelection(option?: XotbComboboxOption): void; onClearSelection(): void; /** * Check whether value is currently selected. * * @param value The value in test, whether is (part of) selection or not */ isSelected(value: any): boolean; ngOnDestroy(): void; close(): void; private detach; private calculateDisplayValue; private keyboardSubscribe; private updateMenuHeight; }