import { ElementRef, EventEmitter } from '@angular/core'; import { TulState } from '../../../../shared/types/state.type'; import { ControlValueAccessor } from '@angular/forms'; import { TulSelectData } from '../../../models/select-data.model'; import { Observable } from 'rxjs'; import { TulSelectIcon } from '../../../models/select-icon.model'; import * as i0 from "@angular/core"; /** * Interface for communication with ngModel */ export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any; export declare class TulSelectEntitySelectComponent implements ControlValueAccessor { private eRef; /** * Placeholder */ tulPlaceholder: string; placeholderBackup: string; /** * Text in input label */ tulLabel: string; /** * Icon name on input */ tulInputIconName: string; /** * Disabled */ tulDisabled: boolean; /** * Text under input */ tulAdditionalInfo: string; /** * Enum State { 'error' | 'success' | 'default' } */ tulState: TulState; icon?: TulSelectIcon; /** * Data for content */ tulHttpSubscribe: ({ data }: any) => Observable; /** * Backup @tulData for filter data */ dataBackup: TulSelectData[]; /** * Item selected emit */ tulItemSelected: EventEmitter; /** * Item search emit */ tulItemSearch: EventEmitter; /** * Name for input */ tulName: string; /** */ tulTooltipconfig: any; /** * Show or close menu */ showMenu: boolean; /** * Search text */ /** * Menu scrollable */ showScroll: boolean; /** * Items for dropdown */ dataList: TulSelectData[]; /** * Id timeout */ timeOutId: any; /** * Show spinner in menu */ showLoading: boolean; /** * Text in loading */ loadingText: string; /** * Inner Value */ private innerValue; /** * Response on touched */ private onTouchedCallback; /** * Response on change value */ private onChangeCallback; /** * Get value ngModel */ get value(): any; /** * Set value ngModel */ set value(v: any); /** * constructor * @param eRef element of DOM */ constructor(eRef: ElementRef); /** * Write value * @param value ngModel */ writeValue(value: any): void; /** * Register on change * @param fn function */ registerOnChange(fn: any): void; /** * Register on touched * @param fn function */ registerOnTouched(fn: any): void; /** * Check if the data is list or entity */ checkList(): void; /** * Check click out of the element * @param event */ clickOut(event: Event): void; /** * Emmit the value selected * @param item the option selected * @param index array position */ selectItem(index: number): void; /** * Filter data fot list or entity * @param event string search */ filterData(): void; /** * Filter by entity from httpSubscribe */ filterByEntity(): void; /** * Show ul menu */ showDropdownMenu(): void; /** * Clear items selected */ clearData(allFalse?: boolean): void; /** * Check @tulData length for customize scroll and search input */ checkDataLength(): void; checkSelectedForDefault(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }