/// import { AfterViewInit, ElementRef, NgZone } from "@angular/core"; import { ControlValueAccessor } from "@angular/forms"; import { IEntityDataService } from "./../interfaces/index"; export declare const TAJ_VALUE_ACCESSOR: any; export declare class TagAutocompleteJqueryControl implements ControlValueAccessor, AfterViewInit { private elRef; private dataSource; private currentZone; /** Additional filters */ private additionalFilters; /** The disabled property */ private disabled; /** The display property */ private displayProperty; /** Entity data source Type */ private entityType; /** The placeholder property */ private iconClass; /** The placeholder property */ private placeholder; /** The sort direction */ private sortDirection; /** The sort property */ private sortProperty; /** The class css property */ private styleClass; /** The tag class css property */ private tagClass; /** choose top record */ private top; /** The value property */ private valueProperty; /** The change event emit property */ private change; /** The selected event emit property */ private selected; touched: Function; /** loaded event emitter */ private loadedEE; /** The control id number*/ private controlID; /** The tag value of elements selected */ private values; /** The global control id number (will be increased 1 when it has the constructor)*/ private static staticID; /** * Represents a Tag auto complete jquery component. * @constructor * @param cd NgControl * @param elRef ElementRef * @param dataSource IEntityDataService * @param currentZone NgZone */ constructor(elRef: ElementRef, dataSource: IEntityDataService, currentZone: NgZone); /** * Add tag item to input control of component * @param valueID The value of Tag */ addTag(valueID: string): void; /** * Implements method(ngAfterViewInit) of interface AfterViewInit */ ngAfterViewInit(): void; /** * Set value for tag control * @param value */ setValue(value: any): void; /** * Implements method(registerOnChange) of interface ControlValueAccessor * @param fn */ registerOnChange(fn: (valueID: string[]) => void): void; /** * Implements method(registerOnTouched) of interface ControlValueAccessor * @param fn */ registerOnTouched(fn: () => void): void; /** * Implements method(writeValue) of interface ControlValueAccessor * @param value The write value */ writeValue(value: any): void; }