import { OnInit, EventEmitter, AfterViewInit } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { Request } from '../_services/request.service'; import DataSource from 'devextreme/data/data_source'; export declare class SocAutoComplete2Component implements ControlValueAccessor, OnInit, AfterViewInit { private request; filteredOptions: any[]; /** local, remote */ mode: 'local' | 'remote' | 'dropdown'; /** API ที่ต้องการเรียกใช้เมื่อพิมพ์ auto complete */ api: string; /** field ที่ต้องการ query เมื่อยิง API */ field: string; fieldApi: string; id: string; placeholder: string; value: String; disabled: boolean; orderBy: string; filter: string; ex_type_view: string; limit: number; onLoad: EventEmitter; valueChange: EventEmitter; valueSelete: EventEmitter; storeOnLoaded: EventEmitter; acceptCustomValue: boolean; resData: any[]; loadOptionData: any[]; openOnFieldClick: boolean; showDropDownButton: boolean; searchEnabled: boolean; inputValue: string; /** ds */ ds: DataSource; constructor(request: Request); ngOnInit(): Promise; ngAfterViewInit(): void; fnStartDataSourceLocal(): Promise; fnStartDataSourceRemote(): Promise; fnGetCustomStore(key: any): Promise; fnCustomStoreOnLoaded: (result: any) => any; onValueChanged(e: any): void; onValueSelete(e: any): void; fnPreResponse(params: any): Promise; onOpened(e: any): void; /** START Bind Value */ onModelChange: Function; onModelTouched: Function; writeValue(value: any): void; registerOnChange(fn: Function): void; registerOnTouched(fn: Function): void; } export declare class SharedAutoComplete2Module { }