UNPKG

design-angular-kit

Version:

Un toolkit Angular conforme alle linee guida di design per i servizi web della PA

60 lines (59 loc) 2.85 kB
import { EventEmitter, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component'; import { AutocompleteItem } from '../../../interfaces/form'; import * as i0 from "@angular/core"; import * as i1 from "../../../utils/coercion"; export declare class ItAutocompleteComponent extends ItAbstractFormComponent<string | null | undefined> implements OnInit { /** * Indicates the list of searchable elements on which to base the input autocomplete system * If you need to retrieve items via API, can pass a function of Observable * @default undefined */ autocompleteData: Array<AutocompleteItem> | ((search?: string | null) => Observable<Array<AutocompleteItem>>); /** * To get a large version of Autocomplete */ big?: boolean; /** * Time span [ms] has passed without another source emission, to delay data filtering. * Useful when the user is typing multiple letters * @default 300 [ms] */ debounceTime: number; /** * The input placeholder */ placeholder: string; /** * The input label even get labelWaria icon */ labelWaria: string | undefined; /** * Show the label */ forceShowLabel: boolean; /** * Fired when the Autocomplete Item has been selected */ autocompleteSelectedEvent: EventEmitter<AutocompleteItem>; protected showAutocompletion: boolean; /** Observable da cui vengono emessi i risultati dell'auto completamento */ protected autocompleteResults$: Observable<{ searchedValue: string | undefined | null; relatedEntries: Array<AutocompleteItem>; }>; ngOnInit(): void; /** * Create the autocomplete list */ private getAutocompleteResults$; protected onEntryClick(entry: AutocompleteItem, event: Event): void; protected autocompleteItemTrackByValueFn(index: number, item: AutocompleteItem): string; protected onKeyDown(): void; protected get isActiveLabel(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<ItAutocompleteComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ItAutocompleteComponent, "it-autocomplete", never, { "autocompleteData": { "alias": "autocompleteData"; "required": true; }; "big": { "alias": "big"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "labelWaria": { "alias": "labelWaria"; "required": false; }; "forceShowLabel": { "alias": "forceShowLabel"; "required": false; }; }, { "autocompleteSelectedEvent": "autocompleteSelectedEvent"; }, never, ["[error]"], true, never>; static ngAcceptInputType_big: i1.BooleanInput; static ngAcceptInputType_forceShowLabel: i1.BooleanInput; }