import { BehaviorSubject } from 'rxjs'; import { OnDestroy, OnInit } from '@angular/core'; import { ISuggestValueData } from '@uipath/angular/components/ui-suggest'; import { UiGridIntl } from '../ui-grid.intl'; import { UiGridFilterDirective } from './ui-grid-filter'; import * as i0 from "@angular/core"; /** * Dropdown option schema. * * @export */ export interface IDropdownOption { /** * The current dropdown value. * */ value: string | number | boolean; /** * The dropdown option label. * */ label: string; /** * The dropdown translation key, used by the `intl` service. * */ translationKey?: string; } export type FilterDropdownPossibleOption = IDropdownOption | IDropdownOption[] | undefined; export type ISuggestDropdownValueData = ISuggestValueData; /** * The dropdown filter definition directive. * * @export */ export declare class UiGridDropdownFilterDirective extends UiGridFilterDirective implements OnDestroy, OnInit { /** * The dropdown items. * */ set items(value: IDropdownOption[] | null); get items(): IDropdownOption[] | null; /** * If true multiple values can be selected in the dropdown filter. * */ set multi(value: boolean); get multi(): boolean; /** * If it should display the `All` option. * */ showAllOption: boolean; /** * The current dropdown option. * */ set value(v: FilterDropdownPossibleOption); get value(): FilterDropdownPossibleOption; /** * The empty dropdown state. * */ emptyStateValue?: IDropdownOption['value']; /** * Wether the filter should be rendered in the grid. * */ get visible(): boolean; set visible(visible: boolean); /** * @ignore */ visible$: BehaviorSubject; intl: UiGridIntl; suggestValue: ISuggestDropdownValueData[]; /** * Dropdown items expressed as ISuggestDropdownValueData */ suggestItems: ISuggestDropdownValueData[]; private _items; private _value; private _multi; private _destroy$; ngOnInit(): void; /** * Updates the dropdown value. * */ updateValue(value?: FilterDropdownPossibleOption): void; updateSuggestValue(value?: FilterDropdownPossibleOption): void; /** * @ignore */ ngOnDestroy(): void; findDropDownOptionBySuggestValue(suggestValue: ISuggestDropdownValueData): IDropdownOption | undefined; get hasValue(): number | boolean; private _addNoFilterOption; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, "[uiGridDropdownFilter], ui-grid-dropdown-filter", never, { "items": "items"; "multi": "multi"; "showAllOption": "showAllOption"; "value": "value"; "emptyStateValue": "emptyStateValue"; "visible": "visible"; }, {}, never, never, false, never>; }