import { FocusMonitor } from '@angular/cdk/a11y'; import { HttpClient } from '@angular/common/http'; import { AfterViewInit, ElementRef, EventEmitter, Injector } from '@angular/core'; import { FormGroupDirective, NgControl, NgForm } from '@angular/forms'; import { ErrorStateMatcher } from '@angular/material/core'; import { MatSelect } from '@angular/material/select'; import { AbstractMatFormField } from '../../forms/helpers/abstract-mat-form-field'; import { VdSelectOptionDirective } from '../directives/vd-select-option.directive'; import { VdSelectTriggerDirective } from '../directives/vd-select-trigger.directive'; import * as i0 from "@angular/core"; /** * VdSelectComponent class */ export declare class VdSelectComponent extends AbstractMatFormField implements AfterViewInit { protected injector: Injector; /** * The http service from to get the data */ protected http: HttpClient; /** * Option template */ optionTemplate: VdSelectOptionDirective; /** * Trigger template */ triggerTemplate: VdSelectTriggerDirective; /** * The select element. */ selectEl: MatSelect; /** * The select element. */ filterInput: ElementRef; /** * Multiple select option */ _multiple: boolean; /** * Multiple select option */ get multiple(): boolean; set multiple(multi: boolean); /** * Gets the control is disabled. * @param disabled */ set disabled(disabled: any); /** * Sets the disabled. * @param disabled */ get disabled(): any; /** * Sorts options */ _sorted: boolean; /** * Sorts options */ get sorted(): boolean; set sorted(multi: boolean); /** * textPrefix?: any */ textPrefix: string; /** * Whether the select has a value. */ get empty(): boolean; /** * Represents a value that changes over time. * Observers can subscribe to the subject to receive pdf file changes */ private _endpointChange; /** * _endpoint: string */ _endpoint: string; /** * Gets pdf endpoint */ get endpoint(): string; set endpoint(endpoint: string); /** * _params: any */ _params: any; /** * params: any */ get params(): any; set params(params: any); /** * _projection: any */ _projection: string; /** * projection: any */ get projection(): string; set projection(projection: string); /** * Gets current value */ get currentValue(): any; /** * The name of the endpoint */ private enum; /** * The key */ key: any; /** * The text */ text: any; /** * The prefix */ prefix: any; /** * Option list */ options: any; /** * filtered option list */ filteredOptions: any; /** * filterable? */ filterable: boolean; /** * cache? */ cache: boolean; /** * selectFirst? */ selectFirst: boolean; /** * sortBy? */ sortBy: string; /** * mapper: Function */ mapper: Function; /** * A function to compare the option values with the selected values. The first argument * is a value from an option. The second is a value from the selection. A boolean * should be returned. */ get compareWith(): (o1: any, o2: any) => boolean; set compareWith(fn: (o1: any, o2: any) => boolean); private _compareWith; /** * change?: function */ onValueChange: EventEmitter; /** * itemChange?: function */ onItemChange: EventEmitter; /** * selected?: function */ onSelected: EventEmitter; /** * itemSelected?: function */ onItemSelected: EventEmitter; /** * launch?: function */ onLaunch: EventEmitter; /** * searchField?: function */ searchField: (x: any) => string; /** * Constructor * @param ngControl * @param parentForm * @param parentFormGroup * @param defaultErrorStateMatcher * @param focusMonitor * @param elementRef */ constructor(injector: Injector, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, focusMonitor: FocusMonitor, elementRef: ElementRef); /** * Lifecycle hook that is called after a component's * view has been fully initialized. */ ngOnInit(): void; /** * A callback method that is invoked immediately after * Angular has completed initialization of a component's view. * It is invoked only once when the view is instantiated. * */ ngAfterViewInit(): void; /** * Sets control focus */ focus(): void; /** * From ControlValueAccessor interface * @param value */ writeValue(value: any): void; /** * Method executed when an option changes */ handleChange($event: any): void; /** * Handles item changes * @param value */ handleItemSelected(value: any): void; /** * Handles item changes * @param value */ handleItemChange(value: any): void; /** * Handles launch button click * @param value */ handleLaunchClicked(value: any): void; /** * Handels filter event * @param searchText */ handleFilter(searchText: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }