1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, AfterContentInit, OnDestroy } from '@angular/core';
|
7 | import { NgClass } from '@angular/common';
|
8 | import { Subject } from 'rxjs';
|
9 | import { NbComponentSize } from '../component-size';
|
10 | import { NbPosition } from '../cdk/overlay/overlay-position';
|
11 | import { NbOptionComponent } from '../option/option.component';
|
12 | import { NbPortalDirective } from '../cdk/overlay/mapping';
|
13 | import * as i0 from "@angular/core";
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare class NbAutocompleteComponent<T> implements AfterContentInit, OnDestroy {
|
19 | protected cd: ChangeDetectorRef;
|
20 | protected destroy$: Subject<void>;
|
21 | |
22 |
|
23 |
|
24 | hostRef: ElementRef;
|
25 | |
26 |
|
27 |
|
28 | id: string;
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 | _overlayPosition: NbPosition;
|
35 | get overlayPosition(): NbPosition;
|
36 | set overlayPosition(value: NbPosition);
|
37 | |
38 |
|
39 |
|
40 | get hostWidth(): number;
|
41 | |
42 |
|
43 |
|
44 | handleDisplayFn: (value: any) => string;
|
45 | |
46 |
|
47 |
|
48 |
|
49 | size: NbComponentSize;
|
50 | |
51 |
|
52 |
|
53 | activeFirst: boolean;
|
54 | |
55 |
|
56 |
|
57 | optionsListClass: NgClass['ngClass'];
|
58 | |
59 |
|
60 |
|
61 | optionsPanelClass: string | string[];
|
62 | |
63 |
|
64 |
|
65 | get optionsWidth(): number;
|
66 | set optionsWidth(value: number);
|
67 | protected _optionsWidth: number | undefined;
|
68 | |
69 |
|
70 |
|
71 | selectedChange: EventEmitter<T>;
|
72 | |
73 |
|
74 |
|
75 | options: QueryList<NbOptionComponent<T>>;
|
76 | |
77 |
|
78 |
|
79 | portal: NbPortalDirective;
|
80 | constructor(cd: ChangeDetectorRef);
|
81 | ngAfterContentInit(): void;
|
82 | ngOnDestroy(): void;
|
83 | /**
|
84 | * Autocomplete knows nothing about host html input element.
|
85 | * So, attach method set input hostRef for styling.
|
86 | * */
|
87 | setHost(hostRef: ElementRef): void;
|
88 | /**
|
89 | * Propagate selected value.
|
90 | * */
|
91 | emitSelected(selected: T): void;
|
92 | get tiny(): boolean;
|
93 | get small(): boolean;
|
94 | get medium(): boolean;
|
95 | get large(): boolean;
|
96 | get giant(): boolean;
|
97 | static ɵfac: i0.ɵɵFactoryDeclaration<NbAutocompleteComponent<any>, never>;
|
98 | static ɵcmp: i0.ɵɵComponentDeclaration<NbAutocompleteComponent<any>, "nb-autocomplete", never, { "handleDisplayFn": { "alias": "handleDisplayFn"; "required": false; }; "size": { "alias": "size"; "required": false; }; "activeFirst": { "alias": "activeFirst"; "required": false; }; "optionsListClass": { "alias": "optionsListClass"; "required": false; }; "optionsPanelClass": { "alias": "optionsPanelClass"; "required": false; }; "optionsWidth": { "alias": "optionsWidth"; "required": false; }; }, { "selectedChange": "selectedChange"; }, ["options"], ["nb-option, nb-option-group"], false, never>;
|
99 | }
|