1 | import { ElementRef, AfterViewChecked, AfterContentInit, OnDestroy, EventEmitter, QueryList, TemplateRef, Renderer2, ChangeDetectorRef, IterableDiffers } from '@angular/core';
|
---|
2 | import { AnimationEvent } from '@angular/animations';
|
---|
3 | import { PrimeNGConfig, OverlayService } from 'primeng/api';
|
---|
4 | import { ControlValueAccessor } from '@angular/forms';
|
---|
5 | import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
---|
6 | import * as i0 from "@angular/core";
|
---|
7 | import * as i1 from "@angular/common";
|
---|
8 | import * as i2 from "primeng/inputtext";
|
---|
9 | import * as i3 from "primeng/button";
|
---|
10 | import * as i4 from "primeng/api";
|
---|
11 | import * as i5 from "primeng/ripple";
|
---|
12 | import * as i6 from "@angular/cdk/scrolling";
|
---|
13 | export declare const AUTOCOMPLETE_VALUE_ACCESSOR: any;
|
---|
14 | export declare class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestroy, ControlValueAccessor {
|
---|
15 | el: ElementRef;
|
---|
16 | renderer: Renderer2;
|
---|
17 | cd: ChangeDetectorRef;
|
---|
18 | differs: IterableDiffers;
|
---|
19 | config: PrimeNGConfig;
|
---|
20 | overlayService: OverlayService;
|
---|
21 | minLength: number;
|
---|
22 | delay: number;
|
---|
23 | style: any;
|
---|
24 | panelStyle: any;
|
---|
25 | styleClass: string;
|
---|
26 | panelStyleClass: string;
|
---|
27 | inputStyle: any;
|
---|
28 | inputId: string;
|
---|
29 | inputStyleClass: string;
|
---|
30 | placeholder: string;
|
---|
31 | readonly: boolean;
|
---|
32 | disabled: boolean;
|
---|
33 | virtualScroll: boolean;
|
---|
34 | itemSize: number;
|
---|
35 | maxlength: number;
|
---|
36 | name: string;
|
---|
37 | required: boolean;
|
---|
38 | size: number;
|
---|
39 | appendTo: any;
|
---|
40 | autoHighlight: boolean;
|
---|
41 | forceSelection: boolean;
|
---|
42 | type: string;
|
---|
43 | autoZIndex: boolean;
|
---|
44 | baseZIndex: number;
|
---|
45 | ariaLabel: string;
|
---|
46 | dropdownAriaLabel: string;
|
---|
47 | ariaLabelledBy: string;
|
---|
48 | dropdownIcon: string;
|
---|
49 | unique: boolean;
|
---|
50 | group: boolean;
|
---|
51 | completeOnFocus: boolean;
|
---|
52 | completeMethod: EventEmitter<any>;
|
---|
53 | onSelect: EventEmitter<any>;
|
---|
54 | onUnselect: EventEmitter<any>;
|
---|
55 | onFocus: EventEmitter<any>;
|
---|
56 | onBlur: EventEmitter<any>;
|
---|
57 | onDropdownClick: EventEmitter<any>;
|
---|
58 | onClear: EventEmitter<any>;
|
---|
59 | onKeyUp: EventEmitter<any>;
|
---|
60 | onShow: EventEmitter<any>;
|
---|
61 | onHide: EventEmitter<any>;
|
---|
62 | field: string;
|
---|
63 | scrollHeight: string;
|
---|
64 | dropdown: boolean;
|
---|
65 | showEmptyMessage: boolean;
|
---|
66 | dropdownMode: string;
|
---|
67 | multiple: boolean;
|
---|
68 | tabindex: number;
|
---|
69 | dataKey: string;
|
---|
70 | emptyMessage: string;
|
---|
71 | showTransitionOptions: string;
|
---|
72 | hideTransitionOptions: string;
|
---|
73 | autofocus: boolean;
|
---|
74 | autocomplete: string;
|
---|
75 | optionGroupChildren: string;
|
---|
76 | optionGroupLabel: string;
|
---|
77 | containerEL: ElementRef;
|
---|
78 | inputEL: ElementRef;
|
---|
79 | multiInputEL: ElementRef;
|
---|
80 | multiContainerEL: ElementRef;
|
---|
81 | dropdownButton: ElementRef;
|
---|
82 | viewPort: CdkVirtualScrollViewport;
|
---|
83 | templates: QueryList<any>;
|
---|
84 | overlay: HTMLDivElement;
|
---|
85 | itemsWrapper: HTMLDivElement;
|
---|
86 | itemTemplate: TemplateRef<any>;
|
---|
87 | emptyTemplate: TemplateRef<any>;
|
---|
88 | headerTemplate: TemplateRef<any>;
|
---|
89 | footerTemplate: TemplateRef<any>;
|
---|
90 | selectedItemTemplate: TemplateRef<any>;
|
---|
91 | groupTemplate: TemplateRef<any>;
|
---|
92 | value: any;
|
---|
93 | _suggestions: any[];
|
---|
94 | onModelChange: Function;
|
---|
95 | onModelTouched: Function;
|
---|
96 | timeout: any;
|
---|
97 | overlayVisible: boolean;
|
---|
98 | documentClickListener: any;
|
---|
99 | suggestionsUpdated: boolean;
|
---|
100 | highlightOption: any;
|
---|
101 | highlightOptionChanged: boolean;
|
---|
102 | focus: boolean;
|
---|
103 | filled: boolean;
|
---|
104 | inputClick: boolean;
|
---|
105 | inputKeyDown: boolean;
|
---|
106 | noResults: boolean;
|
---|
107 | differ: any;
|
---|
108 | inputFieldValue: string;
|
---|
109 | loading: boolean;
|
---|
110 | scrollHandler: any;
|
---|
111 | documentResizeListener: any;
|
---|
112 | forceSelectionUpdateModelTimeout: any;
|
---|
113 | listId: string;
|
---|
114 | itemClicked: boolean;
|
---|
115 | virtualScrollSelectedIndex: number;
|
---|
116 | constructor(el: ElementRef, renderer: Renderer2, cd: ChangeDetectorRef, differs: IterableDiffers, config: PrimeNGConfig, overlayService: OverlayService);
|
---|
117 | get suggestions(): any[];
|
---|
118 | set suggestions(val: any[]);
|
---|
119 | ngAfterViewChecked(): void;
|
---|
120 | handleSuggestionsChange(): void;
|
---|
121 | ngAfterContentInit(): void;
|
---|
122 | updateVirtualScrollSelectedIndex(): void;
|
---|
123 | writeValue(value: any): void;
|
---|
124 | getOptionGroupChildren(optionGroup: any): any;
|
---|
125 | getOptionGroupLabel(optionGroup: any): any;
|
---|
126 | registerOnChange(fn: Function): void;
|
---|
127 | registerOnTouched(fn: Function): void;
|
---|
128 | setDisabledState(val: boolean): void;
|
---|
129 | onInput(event: Event): void;
|
---|
130 | onInputClick(event: MouseEvent): void;
|
---|
131 | search(event: any, query: string): void;
|
---|
132 | selectItem(option: any, focus?: boolean): void;
|
---|
133 | show(): void;
|
---|
134 | onOverlayAnimationStart(event: AnimationEvent): void;
|
---|
135 | onOverlayAnimationEnd(event: AnimationEvent): void;
|
---|
136 | onOverlayClick(event: any): void;
|
---|
137 | appendOverlay(): void;
|
---|
138 | resolveFieldData(value: any): any;
|
---|
139 | restoreOverlayAppend(): void;
|
---|
140 | alignOverlay(): void;
|
---|
141 | hide(): void;
|
---|
142 | handleDropdownClick(event: any): void;
|
---|
143 | focusInput(): void;
|
---|
144 | get emptyMessageLabel(): string;
|
---|
145 | removeItem(item: any): void;
|
---|
146 | onKeydown(event: any): void;
|
---|
147 | onKeyup(event: any): void;
|
---|
148 | onInputFocus(event: any): void;
|
---|
149 | onInputBlur(event: any): void;
|
---|
150 | onInputChange(event: any): void;
|
---|
151 | onInputPaste(event: ClipboardEvent): void;
|
---|
152 | isSelected(val: any): boolean;
|
---|
153 | findOptionIndex(option: any, suggestions: any): number;
|
---|
154 | findOptionGroupIndex(val: any, opts: any[]): any;
|
---|
155 | updateFilledState(): void;
|
---|
156 | updateInputField(): void;
|
---|
157 | bindDocumentClickListener(): void;
|
---|
158 | isDropdownClick(event: any): boolean;
|
---|
159 | unbindDocumentClickListener(): void;
|
---|
160 | bindDocumentResizeListener(): void;
|
---|
161 | unbindDocumentResizeListener(): void;
|
---|
162 | onWindowResize(): void;
|
---|
163 | bindScrollListener(): void;
|
---|
164 | unbindScrollListener(): void;
|
---|
165 | onOverlayHide(): void;
|
---|
166 | ngOnDestroy(): void;
|
---|
167 | static ɵfac: i0.ɵɵFactoryDeclaration<AutoComplete, never>;
|
---|
168 | static ɵcmp: i0.ɵɵComponentDeclaration<AutoComplete, "p-autoComplete", never, { "minLength": "minLength"; "delay": "delay"; "style": "style"; "panelStyle": "panelStyle"; "styleClass": "styleClass"; "panelStyleClass": "panelStyleClass"; "inputStyle": "inputStyle"; "inputId": "inputId"; "inputStyleClass": "inputStyleClass"; "placeholder": "placeholder"; "readonly": "readonly"; "disabled": "disabled"; "virtualScroll": "virtualScroll"; "itemSize": "itemSize"; "maxlength": "maxlength"; "name": "name"; "required": "required"; "size": "size"; "appendTo": "appendTo"; "autoHighlight": "autoHighlight"; "forceSelection": "forceSelection"; "type": "type"; "autoZIndex": "autoZIndex"; "baseZIndex": "baseZIndex"; "ariaLabel": "ariaLabel"; "dropdownAriaLabel": "dropdownAriaLabel"; "ariaLabelledBy": "ariaLabelledBy"; "dropdownIcon": "dropdownIcon"; "unique": "unique"; "group": "group"; "completeOnFocus": "completeOnFocus"; "field": "field"; "scrollHeight": "scrollHeight"; "dropdown": "dropdown"; "showEmptyMessage": "showEmptyMessage"; "dropdownMode": "dropdownMode"; "multiple": "multiple"; "tabindex": "tabindex"; "dataKey": "dataKey"; "emptyMessage": "emptyMessage"; "showTransitionOptions": "showTransitionOptions"; "hideTransitionOptions": "hideTransitionOptions"; "autofocus": "autofocus"; "autocomplete": "autocomplete"; "optionGroupChildren": "optionGroupChildren"; "optionGroupLabel": "optionGroupLabel"; "suggestions": "suggestions"; }, { "completeMethod": "completeMethod"; "onSelect": "onSelect"; "onUnselect": "onUnselect"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onDropdownClick": "onDropdownClick"; "onClear": "onClear"; "onKeyUp": "onKeyUp"; "onShow": "onShow"; "onHide": "onHide"; }, ["templates"], never>;
|
---|
169 | }
|
---|
170 | export declare class AutoCompleteModule {
|
---|
171 | static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteModule, never>;
|
---|
172 | static ɵmod: i0.ɵɵNgModuleDeclaration<AutoCompleteModule, [typeof AutoComplete], [typeof i1.CommonModule, typeof i2.InputTextModule, typeof i3.ButtonModule, typeof i4.SharedModule, typeof i5.RippleModule, typeof i6.ScrollingModule], [typeof AutoComplete, typeof i4.SharedModule, typeof i6.ScrollingModule]>;
|
---|
173 | static ɵinj: i0.ɵɵInjectorDeclaration<AutoCompleteModule>;
|
---|
174 | }
|
---|