import { BehaviorSubject, Observable } from 'rxjs'; import { OnDestroy } from '@angular/core'; import { ISuggestValue, ISuggestValues } from '@uipath/angular/components/ui-suggest'; import { UiGridFilterDirective } from './ui-grid-filter'; import * as i0 from "@angular/core"; /** * The searchable dropdown definition directive. * * @export */ export declare class UiGridSearchFilterDirective extends UiGridFilterDirective implements OnDestroy { /** * The property associated to the dropdown search fetch strategy. * */ fetchStrategy?: 'eager' | 'onOpen'; /** * The property associated to the dropdown search. * */ property?: string; /** * The no selection placeholder. * */ noFilterPlaceholder?: string; /** * Allow filter drill down * */ drillDown: boolean; /** * Stream factory, used to resolve a stream for the provided options. * * @param searchTerm The current searched term. * @param fetchSize The next chunk size that needs to be loaded. */ searchSourceFactory?: (searchTerm?: string, fetchSize?: number) => Observable>; /** * The current dropdown options. * */ value?: ISuggestValue | ISuggestValue[]; /** * Wether the filter should be rendered in the grid. * */ get visible(): boolean; set visible(visible: boolean); /** * Allow multiple selection * */ multiple: boolean; /** * Configure the minimum number of characters that triggers the searchSourceFactory call * This will have priority over the fetch strategy if set. * */ minChars: number; /** * The maximum number of items rendered in the viewport. * */ displayCount: number; /** * @ignore */ visible$: BehaviorSubject; /** * Updates the dropdown option. * */ updateValue(value?: ISuggestValue, isSelected?: boolean): void; /** * @ignore */ ngOnDestroy(): void; get hasValue(): boolean; private checkAlreadyExisting; private handleMultiple; private removeElement; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, "[uiGridSearchFilter], ui-grid-search-filter", never, { "fetchStrategy": "fetchStrategy"; "property": "property"; "noFilterPlaceholder": "noFilterPlaceholder"; "drillDown": "drillDown"; "searchSourceFactory": "searchSourceFactory"; "value": "value"; "visible": "visible"; "multiple": "multiple"; "minChars": "minChars"; "displayCount": "displayCount"; }, {}, never, never, false, never>; }