@anglr/select 11.0.0 → 11.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +14 -0
- package/es2015/src/index.js +3 -1
- package/es2015/src/index.js.map +1 -1
- package/es2020/src/index.js +3 -1
- package/es2020/src/index.js.map +1 -1
- package/package.json +11 -11
- package/src/index.d.ts +3 -1
- package/src/index.d.ts.map +1 -1
- package/version.bak +1 -1
- package/elements/select-elements.d.ts +0 -149
- package/elements/select-elements.internal.d.ts +0 -149
- package/elements/temp/select-elements.api.md +0 -81
- package/extensions/select-extensions.d.ts +0 -31
- package/extensions/select-extensions.internal.d.ts +0 -31
- package/extensions/temp/select-extensions.api.md +0 -33
- package/material/select-material.d.ts +0 -334
- package/material/select-material.internal.d.ts +0 -338
- package/material/temp/select-material.api.md +0 -199
- package/popperJs/select-popperJs.d.ts +0 -113
- package/popperJs/select-popperJs.internal.d.ts +0 -113
- package/popperJs/temp/select-popperJs.api.md +0 -78
- package/select.d.ts +0 -2802
- package/select.internal.d.ts +0 -2947
package/select.d.ts
DELETED
|
@@ -1,2802 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
|
-
import { ApplicationRef } from '@angular/core';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
5
|
-
import { ComponentFactoryResolver } from '@angular/core';
|
|
6
|
-
import { ComponentRef } from '@angular/core';
|
|
7
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
8
|
-
import { ElementRef } from '@angular/core';
|
|
9
|
-
import { EventEmitter } from '@angular/core';
|
|
10
|
-
import { FlipCallback } from '@anglr/common/positions';
|
|
11
|
-
import * as i0 from '@angular/core';
|
|
12
|
-
import * as i17 from '@angular/common';
|
|
13
|
-
import * as i18 from '@anglr/common';
|
|
14
|
-
import { InjectionToken } from '@angular/core';
|
|
15
|
-
import { Injector } from '@angular/core';
|
|
16
|
-
import { Observable } from 'rxjs';
|
|
17
|
-
import { OnChanges } from '@angular/core';
|
|
18
|
-
import { OnDestroy } from '@angular/core';
|
|
19
|
-
import { OnInit } from '@angular/core';
|
|
20
|
-
import { PipeTransform } from '@angular/core';
|
|
21
|
-
import type { PositionsCoordinates } from 'positions';
|
|
22
|
-
import { QueryList } from '@angular/core';
|
|
23
|
-
import { SimpleChanges } from '@angular/core';
|
|
24
|
-
import { StringLocalization } from '@anglr/common';
|
|
25
|
-
import { Subscription } from 'rxjs';
|
|
26
|
-
import { TemplateRef } from '@angular/core';
|
|
27
|
-
import { Type } from '@angular/core';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Public API for 'BasicKeyboardHandlerComponent'
|
|
31
|
-
*/
|
|
32
|
-
export declare interface BasicKeyboardHandler extends KeyboardHandler {
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Component used for obtaining basic keyboard handler html element
|
|
37
|
-
*/
|
|
38
|
-
export declare class BasicKeyboardHandlerComponent implements BasicKeyboardHandler, NgSelectPlugin<BasicKeyboardHandlerOptions>, OnDestroy {
|
|
39
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
40
|
-
pluginBus: PluginBus;
|
|
41
|
-
pluginElement: ElementRef;
|
|
42
|
-
/**
|
|
43
|
-
* Options for NgSelect plugin
|
|
44
|
-
*/
|
|
45
|
-
protected _options: BasicKeyboardHandlerOptions;
|
|
46
|
-
/**
|
|
47
|
-
* Popup that is displayed
|
|
48
|
-
*/
|
|
49
|
-
protected _popup: Popup;
|
|
50
|
-
/**
|
|
51
|
-
* Gets currently available options
|
|
52
|
-
*/
|
|
53
|
-
protected get availableOptions(): ɵNgSelectOption[];
|
|
54
|
-
/**
|
|
55
|
-
* Options for NgSelect plugin
|
|
56
|
-
*/
|
|
57
|
-
get options(): BasicKeyboardHandlerOptions;
|
|
58
|
-
set options(options: BasicKeyboardHandlerOptions);
|
|
59
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, options?: BasicKeyboardHandlerOptions);
|
|
60
|
-
/**
|
|
61
|
-
* Called when component is destroyed
|
|
62
|
-
*/
|
|
63
|
-
ngOnDestroy(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
66
|
-
*/
|
|
67
|
-
initialize(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
70
|
-
*/
|
|
71
|
-
initOptions(): void;
|
|
72
|
-
/**
|
|
73
|
-
* Explicitly runs invalidation of content (change detection)
|
|
74
|
-
*/
|
|
75
|
-
invalidateVisuals(): void;
|
|
76
|
-
/**
|
|
77
|
-
* Handles keyboard event
|
|
78
|
-
* @param event - Keyboard event that occured
|
|
79
|
-
*/
|
|
80
|
-
protected _handleKeyboard: (event: KeyboardEvent) => void;
|
|
81
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BasicKeyboardHandlerComponent, [{ optional: true; }, { optional: true; }, null, { optional: true; }]>;
|
|
82
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BasicKeyboardHandlerComponent, "ng-basic-keyboard-handler", never, {}, {}, never, never>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Basic keyboard handler options
|
|
87
|
-
*/
|
|
88
|
-
export declare interface BasicKeyboardHandlerOptions extends KeyboardHandlerOptions {
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Public API for 'BasicLiveSearchComponent'
|
|
93
|
-
*/
|
|
94
|
-
export declare interface BasicLiveSearch extends LiveSearch {
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Component used for obtaining basic live search html element
|
|
99
|
-
*/
|
|
100
|
-
export declare class BasicLiveSearchComponent implements BasicLiveSearch, NgSelectPlugin<BasicLiveSearchOptions>, OnDestroy {
|
|
101
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
102
|
-
pluginBus: PluginBus;
|
|
103
|
-
pluginElement: ElementRef;
|
|
104
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
105
|
-
protected _stringLocalization: StringLocalization;
|
|
106
|
-
/**
|
|
107
|
-
* Popup used in NgSelect
|
|
108
|
-
*/
|
|
109
|
-
protected _popup: Popup;
|
|
110
|
-
/**
|
|
111
|
-
* Subscription for changes in texts
|
|
112
|
-
*/
|
|
113
|
-
protected _textsChangedSubscription: Subscription;
|
|
114
|
-
/**
|
|
115
|
-
* Subscription for changes of popup visibility
|
|
116
|
-
*/
|
|
117
|
-
protected _visibilityChangeSubscription: Subscription;
|
|
118
|
-
/**
|
|
119
|
-
* Subscription for live search focus request
|
|
120
|
-
*/
|
|
121
|
-
protected _liveSearchFocusSubscription: Subscription;
|
|
122
|
-
/**
|
|
123
|
-
* Options for NgSelect plugin
|
|
124
|
-
*/
|
|
125
|
-
protected _options: BasicLiveSearchOptions;
|
|
126
|
-
/**
|
|
127
|
-
* Options for NgSelect plugin
|
|
128
|
-
*/
|
|
129
|
-
get options(): BasicLiveSearchOptions;
|
|
130
|
-
set options(options: BasicLiveSearchOptions);
|
|
131
|
-
/**
|
|
132
|
-
* HTML element that represents live search
|
|
133
|
-
*/
|
|
134
|
-
get liveSearchElement(): HTMLElement;
|
|
135
|
-
/**
|
|
136
|
-
* Current value of live search
|
|
137
|
-
*/
|
|
138
|
-
searchValue: string;
|
|
139
|
-
/**
|
|
140
|
-
* Occurs when current value of live search changes
|
|
141
|
-
*/
|
|
142
|
-
searchValueChange: EventEmitter<void>;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, _changeDetector: ChangeDetectorRef, _stringLocalization: StringLocalization, options?: BasicLiveSearchOptions);
|
|
147
|
-
/**
|
|
148
|
-
* Called when component is destroyed
|
|
149
|
-
*/
|
|
150
|
-
ngOnDestroy(): void;
|
|
151
|
-
/**
|
|
152
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
153
|
-
*/
|
|
154
|
-
initialize(): void;
|
|
155
|
-
/**
|
|
156
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
157
|
-
*/
|
|
158
|
-
initOptions(): void;
|
|
159
|
-
/**
|
|
160
|
-
* Explicitly runs invalidation of content (change detection)
|
|
161
|
-
*/
|
|
162
|
-
invalidateVisuals(): void;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Initialize texts
|
|
166
|
-
*/
|
|
167
|
-
protected _initTexts(): void;
|
|
168
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BasicLiveSearchComponent, [{ optional: true; }, { optional: true; }, null, null, null, { optional: true; }]>;
|
|
169
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BasicLiveSearchComponent, "ng-basic-live-search", never, {}, {}, never, never>;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Basic live search options
|
|
174
|
-
*/
|
|
175
|
-
export declare interface BasicLiveSearchOptions extends LiveSearchOptions<CssClassesBasicLiveSearch> {
|
|
176
|
-
/**
|
|
177
|
-
* Indication whether keep search value after popup close
|
|
178
|
-
*/
|
|
179
|
-
keepSearchValue?: boolean;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Public API for 'BasicNormalStateComponent'
|
|
184
|
-
*/
|
|
185
|
-
export declare interface BasicNormalState extends NormalState {
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Component used for rendering basic simple normal state of select
|
|
190
|
-
*/
|
|
191
|
-
export declare class BasicNormalStateComponent<TValue = any> extends NormalStateAbstractComponent<CssClassesBasicNormalState, BasicNormalStateOptions<TValue>, TValue> implements BasicNormalState, NgSelectPlugin<BasicNormalStateOptions>, OnDestroy {
|
|
192
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, changeDetector: ChangeDetectorRef, stringLocalization: StringLocalization, options?: BasicNormalStateOptions);
|
|
193
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BasicNormalStateComponent<any>, [{ optional: true; }, { optional: true; }, null, null, null, { optional: true; }]>;
|
|
194
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BasicNormalStateComponent<any>, "div.normal-state", never, {}, {}, never, never>;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Basic normal state options
|
|
199
|
-
*/
|
|
200
|
-
export declare interface BasicNormalStateOptions<TValue = any> extends NormalStateOptions<CssClassesBasicNormalState, TValue> {
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Public API for 'BasicPopupComponent'
|
|
205
|
-
*/
|
|
206
|
-
export declare interface BasicPopup extends Popup {
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Component used for rendering basic popup with options
|
|
211
|
-
*/
|
|
212
|
-
export declare class BasicPopupComponent extends PopupAbstractComponent<CssClassesBasicPopup, BasicPopupOptions> implements BasicPopup, NgSelectPlugin<BasicPopupOptions>, AfterViewInit, OnDestroy {
|
|
213
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, changeDetector: ChangeDetectorRef, options: BasicPopupOptions, stringLocalization: StringLocalization, document?: Document);
|
|
214
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BasicPopupComponent, [{ optional: true; }, { optional: true; }, null, null, { optional: true; }, null, null]>;
|
|
215
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BasicPopupComponent, "div.ng-select-popup", never, {}, {}, never, ["*"]>;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Basic popup options
|
|
220
|
-
*/
|
|
221
|
-
export declare interface BasicPopupOptions extends PopupOptions<CssClassesBasicPopup> {
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Public API for 'BasicPositionerComponent'
|
|
226
|
-
*/
|
|
227
|
-
export declare interface BasicPositioner extends Positioner {
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Component used for positioning popup element, handles resize, scroll and collision with viewport
|
|
232
|
-
*/
|
|
233
|
-
export declare class BasicPositionerComponent implements BasicPositioner, NgSelectPlugin<BasicPositionerOptions>, OnDestroy {
|
|
234
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
235
|
-
pluginBus: PluginBus;
|
|
236
|
-
pluginElement: ElementRef;
|
|
237
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
238
|
-
protected _document?: Document;
|
|
239
|
-
protected _platformId?: Object;
|
|
240
|
-
protected _scrollTargetSelector?: ScrollTargetSelector;
|
|
241
|
-
/**
|
|
242
|
-
* Instance of previous options gatherer, that is used for obtaining available options
|
|
243
|
-
*/
|
|
244
|
-
protected _optionsGatherer: OptionsGatherer;
|
|
245
|
-
/**
|
|
246
|
-
* Options for NgSelect plugin
|
|
247
|
-
*/
|
|
248
|
-
protected _options: BasicPositionerOptions;
|
|
249
|
-
/**
|
|
250
|
-
* Subscription for visibility change of popup
|
|
251
|
-
*/
|
|
252
|
-
protected _visibilitySubscription: Subscription;
|
|
253
|
-
/**
|
|
254
|
-
* Subscription for changes of options in options gatherer
|
|
255
|
-
*/
|
|
256
|
-
protected _optionsChangeSubscription: Subscription;
|
|
257
|
-
/**
|
|
258
|
-
* Popup that is displayed
|
|
259
|
-
*/
|
|
260
|
-
protected _popup: Popup;
|
|
261
|
-
/**
|
|
262
|
-
* Html element of popup plugin
|
|
263
|
-
*/
|
|
264
|
-
protected _popupElement: HTMLElement;
|
|
265
|
-
/**
|
|
266
|
-
* Indication whether is code running in browser
|
|
267
|
-
*/
|
|
268
|
-
protected _isBrowser: boolean;
|
|
269
|
-
/**
|
|
270
|
-
* Options for NgSelect plugin
|
|
271
|
-
*/
|
|
272
|
-
get options(): BasicPositionerOptions;
|
|
273
|
-
set options(options: BasicPositionerOptions);
|
|
274
|
-
/**
|
|
275
|
-
* Gets scroll target
|
|
276
|
-
*/
|
|
277
|
-
get scrollTarget(): EventTarget;
|
|
278
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, _changeDetector: ChangeDetectorRef, options?: BasicPositionerOptions, _document?: Document, _platformId?: Object, _scrollTargetSelector?: ScrollTargetSelector);
|
|
279
|
-
/**
|
|
280
|
-
* Called when component is destroyed
|
|
281
|
-
*/
|
|
282
|
-
ngOnDestroy(): void;
|
|
283
|
-
/**
|
|
284
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
285
|
-
*/
|
|
286
|
-
initialize(): void;
|
|
287
|
-
/**
|
|
288
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
289
|
-
*/
|
|
290
|
-
initOptions(): void;
|
|
291
|
-
/**
|
|
292
|
-
* Explicitly runs invalidation of content (change detection)
|
|
293
|
-
*/
|
|
294
|
-
invalidateVisuals(): void;
|
|
295
|
-
/**
|
|
296
|
-
* Handles resize and scroll event
|
|
297
|
-
*/
|
|
298
|
-
protected _handleResizeAndScroll: () => void;
|
|
299
|
-
/**
|
|
300
|
-
* Handles position of popup
|
|
301
|
-
*/
|
|
302
|
-
protected _handlePosition(): void;
|
|
303
|
-
/**
|
|
304
|
-
* Updates min width of popup
|
|
305
|
-
*/
|
|
306
|
-
protected _updateMinWidth(): void;
|
|
307
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BasicPositionerComponent, [{ optional: true; }, { optional: true; }, null, null, { optional: true; }, null, null, null]>;
|
|
308
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BasicPositionerComponent, "ng-basic-positioner", never, {}, {}, never, never>;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Basic positioner options
|
|
313
|
-
*/
|
|
314
|
-
export declare interface BasicPositionerOptions extends PositionerOptions {
|
|
315
|
-
/**
|
|
316
|
-
* Callback that is called when flip occurs during positioning
|
|
317
|
-
*/
|
|
318
|
-
flipCallback?: FlipCallback;
|
|
319
|
-
/**
|
|
320
|
-
* Target element that is used for handling scroll event
|
|
321
|
-
*/
|
|
322
|
-
scrollTarget?: EventTarget;
|
|
323
|
-
/**
|
|
324
|
-
* Indication whether positioner should be sensitive/activated also to scroll of scrollTarget
|
|
325
|
-
*/
|
|
326
|
-
activateOnScroll?: boolean;
|
|
327
|
-
/**
|
|
328
|
-
* Indication whether positioner should be sensitive/activated also on resize of window
|
|
329
|
-
*/
|
|
330
|
-
activateOnResize?: boolean;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Public API for 'BasicValueHandlerComponent'
|
|
335
|
-
*/
|
|
336
|
-
export declare interface BasicValueHandler<TValue = any> extends ValueHandler<TValue> {
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Component used for handling current value of NgSelect
|
|
341
|
-
*/
|
|
342
|
-
export declare class BasicValueHandlerComponent<TValue = any> extends ValueHandlerBase<TValue, BasicValueHandlerOptions> implements BasicValueHandler<TValue> {
|
|
343
|
-
/**
|
|
344
|
-
* Backed up unmapped value that was set before options were obtained
|
|
345
|
-
*/
|
|
346
|
-
protected _unmappedValue: TValue | TValue[];
|
|
347
|
-
/**
|
|
348
|
-
* Options for NgSelect plugin
|
|
349
|
-
*/
|
|
350
|
-
get options(): BasicValueHandlerOptions;
|
|
351
|
-
set options(options: BasicValueHandlerOptions);
|
|
352
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus<TValue>, pluginElement: ElementRef, options?: BasicValueHandlerOptions);
|
|
353
|
-
/**
|
|
354
|
-
* Sets value for NgSelect
|
|
355
|
-
* @param value - Value to be set
|
|
356
|
-
*/
|
|
357
|
-
setValue(value: TValue | TValue[]): void;
|
|
358
|
-
/**
|
|
359
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
360
|
-
*/
|
|
361
|
-
initOptions(): void;
|
|
362
|
-
/**
|
|
363
|
-
* Explicitly runs invalidation of content (change detection)
|
|
364
|
-
*/
|
|
365
|
-
invalidateVisuals(): void;
|
|
366
|
-
/**
|
|
367
|
-
* Sets value
|
|
368
|
-
*/
|
|
369
|
-
protected _setValue: (option: ɵNgSelectOption<TValue>) => void;
|
|
370
|
-
/**
|
|
371
|
-
* Loads options
|
|
372
|
-
*/
|
|
373
|
-
protected _loadOptions(): void;
|
|
374
|
-
/**
|
|
375
|
-
* Converts value to options
|
|
376
|
-
* @param value - Value to be changed to options
|
|
377
|
-
*/
|
|
378
|
-
protected _useOptionsAsValue(value: TValue | TValue[]): void;
|
|
379
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BasicValueHandlerComponent<any>, [{ optional: true; }, { optional: true; }, null, { optional: true; }]>;
|
|
380
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BasicValueHandlerComponent<any>, "ng-basic-value-handler", never, {}, {}, never, never>;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Basic value handler options
|
|
385
|
-
*/
|
|
386
|
-
export declare interface BasicValueHandlerOptions extends ValueHandlerOptions {
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* Options gatherer used for static options gathering from code
|
|
391
|
-
*/
|
|
392
|
-
export declare class CodeOptionsGatherer<TValue = any> implements OptionsGatherer<TValue> {
|
|
393
|
-
/**
|
|
394
|
-
* Array of visible, displayed options for select
|
|
395
|
-
*/
|
|
396
|
-
private _availableOptions;
|
|
397
|
-
/**
|
|
398
|
-
* Array of provided options for select
|
|
399
|
-
*/
|
|
400
|
-
private _options;
|
|
401
|
-
/**
|
|
402
|
-
* Occurs when array of visible, displayed options has changed
|
|
403
|
-
*/
|
|
404
|
-
private _availableOptionsChange;
|
|
405
|
-
/**
|
|
406
|
-
* Live search plugin currently used in NgSelect
|
|
407
|
-
*/
|
|
408
|
-
protected _liveSearch: LiveSearch;
|
|
409
|
-
/**
|
|
410
|
-
* Subscription for changes of live search value
|
|
411
|
-
*/
|
|
412
|
-
protected _searchValueChangeSubscription: Subscription;
|
|
413
|
-
/**
|
|
414
|
-
* Array of provided options for select
|
|
415
|
-
*/
|
|
416
|
-
get options(): NgSelectOption<TValue>[];
|
|
417
|
-
set options(value: NgSelectOption<TValue>[]);
|
|
418
|
-
/**
|
|
419
|
-
* Occurs when array of provided options has changed
|
|
420
|
-
*/
|
|
421
|
-
optionsChange: EventEmitter<void>;
|
|
422
|
-
/**
|
|
423
|
-
* Array of visible, displayed options for select
|
|
424
|
-
*/
|
|
425
|
-
get availableOptions(): NgSelectOption<TValue>[];
|
|
426
|
-
/**
|
|
427
|
-
* Occurs when array of visible, displayed options has changed
|
|
428
|
-
*/
|
|
429
|
-
get availableOptionsChange(): EventEmitter<void>;
|
|
430
|
-
/**
|
|
431
|
-
* NgSelect plugin instances available for gatherer
|
|
432
|
-
*/
|
|
433
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
434
|
-
/**
|
|
435
|
-
* Plugin bus used for inter plugin shared events
|
|
436
|
-
*/
|
|
437
|
-
pluginBus: PluginBus<TValue>;
|
|
438
|
-
/**
|
|
439
|
-
* Select element that implements default gatherers
|
|
440
|
-
*/
|
|
441
|
-
select: NgSelect<TValue>;
|
|
442
|
-
/**
|
|
443
|
-
* Initialize gatherer during initialization phase
|
|
444
|
-
*/
|
|
445
|
-
initializeGatherer(): void;
|
|
446
|
-
/**
|
|
447
|
-
* Called when gatherer needs to be destroyed
|
|
448
|
-
*/
|
|
449
|
-
destroyGatherer(): void;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* Function used for comparing two values
|
|
454
|
-
*/
|
|
455
|
-
export declare interface CompareValueFunc<TValue = any> {
|
|
456
|
-
/**
|
|
457
|
-
* Compares two values and returns true if objects are equal, otherwise false
|
|
458
|
-
* @param source - First value to be compared
|
|
459
|
-
* @param target - Second value to be compared
|
|
460
|
-
*/
|
|
461
|
-
(source: TValue, target: TValue): boolean;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Css classes for basic live search
|
|
466
|
-
*/
|
|
467
|
-
export declare interface CssClassesBasicLiveSearch {
|
|
468
|
-
/**
|
|
469
|
-
* Applied to wrapper div around input
|
|
470
|
-
*/
|
|
471
|
-
wrapperDiv?: string;
|
|
472
|
-
/**
|
|
473
|
-
* Applied to input that represents live search
|
|
474
|
-
*/
|
|
475
|
-
input?: string;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
* Css classes for basic normal state
|
|
480
|
-
*/
|
|
481
|
-
export declare interface CssClassesBasicNormalState {
|
|
482
|
-
/**
|
|
483
|
-
* Applied to currently selected value, which is visible to user (default template)
|
|
484
|
-
*/
|
|
485
|
-
selectedValue?: string;
|
|
486
|
-
/**
|
|
487
|
-
* Applied to "carret", indicating that it is select and there is more options available
|
|
488
|
-
*/
|
|
489
|
-
selectedCarret?: string;
|
|
490
|
-
/**
|
|
491
|
-
* Applied to HTML element that represents normal default state visible to user
|
|
492
|
-
*/
|
|
493
|
-
normalStateElement?: string;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Css classes for basic popup
|
|
498
|
-
*/
|
|
499
|
-
export declare interface CssClassesBasicPopup {
|
|
500
|
-
/**
|
|
501
|
-
* Css class applied to each option div
|
|
502
|
-
*/
|
|
503
|
-
optionItemDiv?: string;
|
|
504
|
-
/**
|
|
505
|
-
* Css class applied to each option text div
|
|
506
|
-
*/
|
|
507
|
-
optionItemTextDiv?: string;
|
|
508
|
-
/**
|
|
509
|
-
* Css class used as icons indicating that option is selected (only when multiple)
|
|
510
|
-
*/
|
|
511
|
-
optionChecked?: string;
|
|
512
|
-
/**
|
|
513
|
-
* Css class applied directly to css popup
|
|
514
|
-
*/
|
|
515
|
-
popupDiv?: string;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* Css classes for edit live search
|
|
520
|
-
*/
|
|
521
|
-
export declare interface CssClassesEditLiveSearch {
|
|
522
|
-
/**
|
|
523
|
-
* Applied to wrapper div around input
|
|
524
|
-
*/
|
|
525
|
-
wrapperDiv?: string;
|
|
526
|
-
/**
|
|
527
|
-
* Applied to input that represents live search
|
|
528
|
-
*/
|
|
529
|
-
input?: string;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
* Css classes for edit normal state
|
|
534
|
-
*/
|
|
535
|
-
export declare interface CssClassesEditNormalState {
|
|
536
|
-
/**
|
|
537
|
-
* Applied to currently selected value, which is visible to user (default template)
|
|
538
|
-
*/
|
|
539
|
-
selectedValue?: string;
|
|
540
|
-
/**
|
|
541
|
-
* Applied to "carret", indicating that it is select and there is more options available
|
|
542
|
-
*/
|
|
543
|
-
selectedCarret?: string;
|
|
544
|
-
/**
|
|
545
|
-
* Applied to "carret" wrapper element
|
|
546
|
-
*/
|
|
547
|
-
selectedCarretWrapper?: string;
|
|
548
|
-
/**
|
|
549
|
-
* Applied to HTML element that represents normal default state visible to user
|
|
550
|
-
*/
|
|
551
|
-
normalStateElement?: string;
|
|
552
|
-
/**
|
|
553
|
-
* Applied to container displaying single multi value
|
|
554
|
-
*/
|
|
555
|
-
selectedMultiValueContainer?: string;
|
|
556
|
-
/**
|
|
557
|
-
* Applied to element used for canceling selected value
|
|
558
|
-
*/
|
|
559
|
-
selectedMultiValueCancel?: string;
|
|
560
|
-
/**
|
|
561
|
-
* Applied to element that is used as cancel selected button
|
|
562
|
-
*/
|
|
563
|
-
cancelSelectedElement?: string;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* Css classes for edit popup
|
|
568
|
-
*/
|
|
569
|
-
export declare interface CssClassesEditPopup {
|
|
570
|
-
/**
|
|
571
|
-
* Css class applied to each option div
|
|
572
|
-
*/
|
|
573
|
-
optionItemDiv?: string;
|
|
574
|
-
/**
|
|
575
|
-
* Css class applied to each option text div
|
|
576
|
-
*/
|
|
577
|
-
optionItemTextDiv?: string;
|
|
578
|
-
/**
|
|
579
|
-
* Css class used as icons indicating that option is selected (only when multiple)
|
|
580
|
-
*/
|
|
581
|
-
optionChecked?: string;
|
|
582
|
-
/**
|
|
583
|
-
* Css class applied directly to css popup
|
|
584
|
-
*/
|
|
585
|
-
popupDiv?: string;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
/**
|
|
589
|
-
* Function used for transformation of ng select option into display text
|
|
590
|
-
*/
|
|
591
|
-
export declare interface DisplayTextFunc<TValue = any> {
|
|
592
|
-
/**
|
|
593
|
-
* Transforms option into display text
|
|
594
|
-
* @param option - Option that is being transformed
|
|
595
|
-
*/
|
|
596
|
-
(option: NgSelectOption<TValue>): string;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
/**
|
|
600
|
-
* Class that is used as for options gathering in dynamic way, for example from external source when writing
|
|
601
|
-
*/
|
|
602
|
-
export declare class DynamicOptionsGatherer<TValue = any> implements OptionsGatherer<TValue> {
|
|
603
|
-
protected _options: DynamicOptionsGathererOptions<TValue>;
|
|
604
|
-
/**
|
|
605
|
-
* Live search plugin currently used in NgSelect
|
|
606
|
-
*/
|
|
607
|
-
protected _liveSearch: LiveSearch;
|
|
608
|
-
/**
|
|
609
|
-
* Subscription for changes of live search value
|
|
610
|
-
*/
|
|
611
|
-
protected _searchValueChangeSubscription: Subscription;
|
|
612
|
-
/**
|
|
613
|
-
* Subscription for visibility change of popup
|
|
614
|
-
*/
|
|
615
|
-
protected _visibilitySubscription: Subscription;
|
|
616
|
-
/**
|
|
617
|
-
* Minimal number of characters required for searching
|
|
618
|
-
*/
|
|
619
|
-
protected _minLength: number;
|
|
620
|
-
/**
|
|
621
|
-
* Popup that is displayed
|
|
622
|
-
*/
|
|
623
|
-
protected _popup: Popup;
|
|
624
|
-
/**
|
|
625
|
-
* Indication that first initial call was performed
|
|
626
|
-
*/
|
|
627
|
-
protected _initialized: boolean;
|
|
628
|
-
/**
|
|
629
|
-
* Currently used value handler plugin
|
|
630
|
-
*/
|
|
631
|
-
protected _valueHandler: ValueHandler;
|
|
632
|
-
/**
|
|
633
|
-
* Array of provided options for select
|
|
634
|
-
*/
|
|
635
|
-
options: NgSelectOption<TValue>[];
|
|
636
|
-
/**
|
|
637
|
-
* Occurs when array of provided options has changed
|
|
638
|
-
*/
|
|
639
|
-
optionsChange: EventEmitter<void>;
|
|
640
|
-
/**
|
|
641
|
-
* Array of visible, displayed options for select
|
|
642
|
-
*/
|
|
643
|
-
get availableOptions(): NgSelectOption<TValue>[];
|
|
644
|
-
/**
|
|
645
|
-
* Occurs when array of visible, displayed options has changed
|
|
646
|
-
*/
|
|
647
|
-
get availableOptionsChange(): EventEmitter<void>;
|
|
648
|
-
/**
|
|
649
|
-
* NgSelect plugin instances available for gatherer
|
|
650
|
-
*/
|
|
651
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
652
|
-
/**
|
|
653
|
-
* Plugin bus used for inter plugin shared events
|
|
654
|
-
*/
|
|
655
|
-
pluginBus: PluginBus<TValue>;
|
|
656
|
-
/**
|
|
657
|
-
* Select element that implements default gatherers
|
|
658
|
-
*/
|
|
659
|
-
select: NgSelect<TValue>;
|
|
660
|
-
constructor(_options: DynamicOptionsGathererOptions<TValue>);
|
|
661
|
-
/**
|
|
662
|
-
* Initialize gatherer during initialization phase
|
|
663
|
-
*/
|
|
664
|
-
initializeGatherer(): void;
|
|
665
|
-
/**
|
|
666
|
-
* Called when gatherer needs to be destroyed
|
|
667
|
-
*/
|
|
668
|
-
destroyGatherer(): void;
|
|
669
|
-
/**
|
|
670
|
-
* Process options change request
|
|
671
|
-
*/
|
|
672
|
-
protected _processOptionsChange(): Promise<void>;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* Options for dynamic options gatherer
|
|
677
|
-
*/
|
|
678
|
-
export declare interface DynamicOptionsGathererOptions<TValue = any> {
|
|
679
|
-
/**
|
|
680
|
-
* Callback used for obtaining dynamic options
|
|
681
|
-
*/
|
|
682
|
-
dynamicOptionsCallback: GetOptionsCallback<TValue>;
|
|
683
|
-
/**
|
|
684
|
-
* Number of miliseconds which represents minimal delay between calls of dynamicOptionsCallback
|
|
685
|
-
*/
|
|
686
|
-
delay?: number;
|
|
687
|
-
/**
|
|
688
|
-
* Minimal number of characters to be used for searching
|
|
689
|
-
*/
|
|
690
|
-
minLength?: number;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* Public API for 'DynamicValueHandlerComponent'
|
|
695
|
-
*/
|
|
696
|
-
export declare interface DynamicValueHandler<TValue = any> extends ValueHandler<TValue> {
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* Component used for handling current value of NgSelect, allows values which are not present in options
|
|
701
|
-
*/
|
|
702
|
-
export declare class DynamicValueHandlerComponent<TValue = any> extends ValueHandlerBase<TValue, DynamicValueHandlerOptions<TValue>> implements DynamicValueHandler<TValue> {
|
|
703
|
-
/**
|
|
704
|
-
* Options for NgSelect plugin
|
|
705
|
-
*/
|
|
706
|
-
get options(): DynamicValueHandlerOptions<TValue>;
|
|
707
|
-
set options(options: DynamicValueHandlerOptions<TValue>);
|
|
708
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus<TValue>, pluginElement: ElementRef, options?: DynamicValueHandlerOptions<TValue>);
|
|
709
|
-
/**
|
|
710
|
-
* Sets value for NgSelect
|
|
711
|
-
* @param value - Value to be set
|
|
712
|
-
*/
|
|
713
|
-
setValue(value: TValue | TValue[]): void;
|
|
714
|
-
/**
|
|
715
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
716
|
-
*/
|
|
717
|
-
initOptions(): void;
|
|
718
|
-
/**
|
|
719
|
-
* Explicitly runs invalidation of content (change detection)
|
|
720
|
-
*/
|
|
721
|
-
invalidateVisuals(): void;
|
|
722
|
-
/**
|
|
723
|
-
* Sets value
|
|
724
|
-
*/
|
|
725
|
-
protected _setValue: (option: ɵNgSelectOption<TValue>) => void;
|
|
726
|
-
/**
|
|
727
|
-
* Loads options
|
|
728
|
-
*/
|
|
729
|
-
protected _loadOptions(): void;
|
|
730
|
-
/**
|
|
731
|
-
* Converts value to options
|
|
732
|
-
* @param value - Value to be changed to options
|
|
733
|
-
*/
|
|
734
|
-
protected _useOptionsAsValue(value: TValue | TValue[]): Promise<void>;
|
|
735
|
-
/**
|
|
736
|
-
* Loads text for specified value
|
|
737
|
-
* @param value - Value that is going to be used for obtaining option
|
|
738
|
-
*/
|
|
739
|
-
protected _loadText(value: TValue): Promise<ɵNgSelectOption<TValue>>;
|
|
740
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicValueHandlerComponent<any>, [{ optional: true; }, { optional: true; }, null, { optional: true; }]>;
|
|
741
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicValueHandlerComponent<any>, "ng-dynamic-value-handler", never, {}, {}, never, never>;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
* Dynamic value handler options
|
|
746
|
-
*/
|
|
747
|
-
export declare interface DynamicValueHandlerOptions<TValue = any> extends ValueHandlerOptions {
|
|
748
|
-
/**
|
|
749
|
-
* Callback used for obtaining dynamic options during initialization, if not specified value will be used as text
|
|
750
|
-
*/
|
|
751
|
-
dynamicOptionsCallback?: GetOptionsCallback<TValue>;
|
|
752
|
-
/**
|
|
753
|
-
* Used for obtaining displayed text from value, defaults to value itself, if dynamicOptionsCallback is specified this is not called
|
|
754
|
-
*/
|
|
755
|
-
textExtractor?: (value: TValue) => string;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* Public API for 'EditKeyboardHandlerComponent'
|
|
760
|
-
*/
|
|
761
|
-
export declare interface EditKeyboardHandler extends KeyboardHandler {
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
* Component used for obtaining edit keyboard handler html element
|
|
766
|
-
*/
|
|
767
|
-
export declare class EditKeyboardHandlerComponent implements EditKeyboardHandler, NgSelectPlugin<EditKeyboardHandlerOptions>, OnDestroy {
|
|
768
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
769
|
-
pluginBus: PluginBus;
|
|
770
|
-
pluginElement: ElementRef;
|
|
771
|
-
/**
|
|
772
|
-
* Options for NgSelect plugin
|
|
773
|
-
*/
|
|
774
|
-
protected _options: EditKeyboardHandlerOptions;
|
|
775
|
-
/**
|
|
776
|
-
* Popup that is displayed
|
|
777
|
-
*/
|
|
778
|
-
protected _popup: Popup;
|
|
779
|
-
/**
|
|
780
|
-
* Value handler used for hanling current value
|
|
781
|
-
*/
|
|
782
|
-
protected _valueHandler: ValueHandler;
|
|
783
|
-
/**
|
|
784
|
-
* Live search plugin currently used in NgSelect
|
|
785
|
-
*/
|
|
786
|
-
protected _liveSearch: LiveSearch;
|
|
787
|
-
/**
|
|
788
|
-
* Gets currently available options
|
|
789
|
-
*/
|
|
790
|
-
protected get availableOptions(): ɵNgSelectOption[];
|
|
791
|
-
/**
|
|
792
|
-
* Options for NgSelect plugin
|
|
793
|
-
*/
|
|
794
|
-
get options(): EditKeyboardHandlerOptions;
|
|
795
|
-
set options(options: EditKeyboardHandlerOptions);
|
|
796
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, options?: EditKeyboardHandlerOptions);
|
|
797
|
-
/**
|
|
798
|
-
* Called when component is destroyed
|
|
799
|
-
*/
|
|
800
|
-
ngOnDestroy(): void;
|
|
801
|
-
/**
|
|
802
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
803
|
-
*/
|
|
804
|
-
initialize(): void;
|
|
805
|
-
/**
|
|
806
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
807
|
-
*/
|
|
808
|
-
initOptions(): void;
|
|
809
|
-
/**
|
|
810
|
-
* Explicitly runs invalidation of content (change detection)
|
|
811
|
-
*/
|
|
812
|
-
invalidateVisuals(): void;
|
|
813
|
-
/**
|
|
814
|
-
* Handles keyboard event
|
|
815
|
-
* @param event - Keyboard event that occured
|
|
816
|
-
*/
|
|
817
|
-
protected _handleKeyboard: (event: KeyboardEvent) => void;
|
|
818
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditKeyboardHandlerComponent, [{ optional: true; }, { optional: true; }, null, { optional: true; }]>;
|
|
819
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditKeyboardHandlerComponent, "ng-edit-keyboard-handler", never, {}, {}, never, never>;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
/**
|
|
823
|
-
* Edit keyboard handler options
|
|
824
|
-
*/
|
|
825
|
-
export declare interface EditKeyboardHandlerOptions extends KeyboardHandlerOptions {
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* Public API for 'EditLiveSearchComponent'
|
|
830
|
-
*/
|
|
831
|
-
export declare interface EditLiveSearch extends LiveSearch {
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
* Component used for obtaining edit live search html element
|
|
836
|
-
*/
|
|
837
|
-
export declare class EditLiveSearchComponent implements EditLiveSearch, NgSelectPlugin<EditLiveSearchOptions>, OnDestroy {
|
|
838
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
839
|
-
pluginBus: PluginBus;
|
|
840
|
-
pluginElement: ElementRef;
|
|
841
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
842
|
-
protected _stringLocalization: StringLocalization;
|
|
843
|
-
/**
|
|
844
|
-
* Popup plugin used within `NgSelect`
|
|
845
|
-
*/
|
|
846
|
-
protected _popup: Popup;
|
|
847
|
-
/**
|
|
848
|
-
* Value handler plugin used within `NgSelect`
|
|
849
|
-
*/
|
|
850
|
-
protected _valueHandler: ValueHandler;
|
|
851
|
-
/**
|
|
852
|
-
* Instance of previous options gatherer, that is used for obtaining available options
|
|
853
|
-
*/
|
|
854
|
-
protected _optionsGatherer: OptionsGatherer;
|
|
855
|
-
/**
|
|
856
|
-
* Subscription for changes of options in options gatherer
|
|
857
|
-
*/
|
|
858
|
-
protected _optionsChangeSubscription: Subscription;
|
|
859
|
-
/**
|
|
860
|
-
* Subscription for changes in texts
|
|
861
|
-
*/
|
|
862
|
-
protected _textsChangedSubscription: Subscription;
|
|
863
|
-
/**
|
|
864
|
-
* Subscription for changes of selected value
|
|
865
|
-
*/
|
|
866
|
-
protected _valueChangedSubscription: Subscription;
|
|
867
|
-
/**
|
|
868
|
-
* Subscription for live search focus request
|
|
869
|
-
*/
|
|
870
|
-
protected _liveSearchFocusSubscription: Subscription;
|
|
871
|
-
/**
|
|
872
|
-
* Subscription for update displayed value request
|
|
873
|
-
*/
|
|
874
|
-
protected _updateDisplayedValueSubscription: Subscription;
|
|
875
|
-
/**
|
|
876
|
-
* Options for NgSelect plugin
|
|
877
|
-
*/
|
|
878
|
-
protected _options: EditLiveSearchOptions;
|
|
879
|
-
/**
|
|
880
|
-
* Gets currently available options
|
|
881
|
-
*/
|
|
882
|
-
protected get availableOptions(): ɵNgSelectOption[];
|
|
883
|
-
/**
|
|
884
|
-
* Options for NgSelect plugin
|
|
885
|
-
*/
|
|
886
|
-
get options(): EditLiveSearchOptions;
|
|
887
|
-
set options(options: EditLiveSearchOptions);
|
|
888
|
-
/**
|
|
889
|
-
* HTML element that represents live search
|
|
890
|
-
*/
|
|
891
|
-
get liveSearchElement(): HTMLElement;
|
|
892
|
-
/**
|
|
893
|
-
* Current value of live search
|
|
894
|
-
*/
|
|
895
|
-
searchValue: string;
|
|
896
|
-
/**
|
|
897
|
-
* Occurs when current value of live search changes
|
|
898
|
-
*/
|
|
899
|
-
searchValueChange: EventEmitter<void>;
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, _changeDetector: ChangeDetectorRef, _stringLocalization: StringLocalization, options?: EditLiveSearchOptions);
|
|
905
|
-
/**
|
|
906
|
-
* Called when component is destroyed
|
|
907
|
-
*/
|
|
908
|
-
ngOnDestroy(): void;
|
|
909
|
-
/**
|
|
910
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
911
|
-
*/
|
|
912
|
-
initialize(): void;
|
|
913
|
-
/**
|
|
914
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
915
|
-
*/
|
|
916
|
-
initOptions(): void;
|
|
917
|
-
/**
|
|
918
|
-
* Explicitly runs invalidation of content (change detection)
|
|
919
|
-
*/
|
|
920
|
-
invalidateVisuals(): void;
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
/**
|
|
924
|
-
* Handles blur of live search
|
|
925
|
-
*/
|
|
926
|
-
handleBlur(): void;
|
|
927
|
-
/**
|
|
928
|
-
* Initialize texts
|
|
929
|
-
*/
|
|
930
|
-
protected _initTexts(): void;
|
|
931
|
-
/**
|
|
932
|
-
* Activates first available option or selected option
|
|
933
|
-
*/
|
|
934
|
-
protected _activateSelectedOrFirst(): void;
|
|
935
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditLiveSearchComponent, [{ optional: true; }, { optional: true; }, null, null, null, { optional: true; }]>;
|
|
936
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditLiveSearchComponent, "ng-edit-live-search", never, {}, {}, never, never>;
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
/**
|
|
940
|
-
* Edit live search options
|
|
941
|
-
*/
|
|
942
|
-
export declare interface EditLiveSearchOptions extends LiveSearchOptions<CssClassesEditLiveSearch> {
|
|
943
|
-
/**
|
|
944
|
-
* Indication whether keep search value after popup close
|
|
945
|
-
*/
|
|
946
|
-
keepSearchValue?: boolean;
|
|
947
|
-
/**
|
|
948
|
-
* Indication whether cancel selected value if non existing value is in live search, works for single value
|
|
949
|
-
*/
|
|
950
|
-
nonExistingCancel?: boolean;
|
|
951
|
-
/**
|
|
952
|
-
* Indicaiton whether empty string in live search cancel selected value
|
|
953
|
-
*/
|
|
954
|
-
emptyCancel?: boolean;
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
/**
|
|
958
|
-
* Public API for 'EditNormalStateComponent'
|
|
959
|
-
*/
|
|
960
|
-
export declare interface EditNormalState extends NormalState {
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
/**
|
|
964
|
-
* Component used for rendering edit normal state of select
|
|
965
|
-
*/
|
|
966
|
-
export declare class EditNormalStateComponent<TValue = any> extends NormalStateAbstractComponent<CssClassesEditNormalState, EditNormalStateOptions<TValue>, TValue> implements EditNormalState, NgSelectPlugin<EditNormalStateOptions>, OnDestroy {
|
|
967
|
-
/**
|
|
968
|
-
* Gets currently selected options
|
|
969
|
-
*/
|
|
970
|
-
get selectedOptions(): NgSelectOption[];
|
|
971
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, changeDetector: ChangeDetectorRef, stringLocalization: StringLocalization, options?: EditNormalStateOptions);
|
|
972
|
-
/**
|
|
973
|
-
* Cancel selected options
|
|
974
|
-
*/
|
|
975
|
-
cancelSelected(): void;
|
|
976
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditNormalStateComponent<any>, [{ optional: true; }, { optional: true; }, null, null, null, { optional: true; }]>;
|
|
977
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditNormalStateComponent<any>, "div.edit-normal-state", never, {}, {}, never, ["*"]>;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
/**
|
|
981
|
-
* Edit normal state options
|
|
982
|
-
*/
|
|
983
|
-
export declare interface EditNormalStateOptions<TValue = any> extends NormalStateOptions<CssClassesEditNormalState, TValue> {
|
|
984
|
-
/**
|
|
985
|
-
* Indication whether display cancel button
|
|
986
|
-
*/
|
|
987
|
-
cancelButton?: boolean;
|
|
988
|
-
/**
|
|
989
|
-
* Indication whether display button for displaying options
|
|
990
|
-
*/
|
|
991
|
-
showOptionsButton?: boolean;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
/**
|
|
995
|
-
* Public API for 'EditPopupComponent'
|
|
996
|
-
*/
|
|
997
|
-
export declare interface EditPopup extends Popup {
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
/**
|
|
1001
|
-
* Component used for rendering edit popup with options
|
|
1002
|
-
*/
|
|
1003
|
-
export declare class EditPopupComponent extends PopupAbstractComponent<CssClassesEditPopup, EditPopupOptions> implements EditPopup, NgSelectPlugin<EditPopupOptions>, AfterViewInit, OnDestroy {
|
|
1004
|
-
/**
|
|
1005
|
-
* Gets indication whether keep open popup after value change
|
|
1006
|
-
*/
|
|
1007
|
-
protected get keepOpen(): boolean;
|
|
1008
|
-
/**
|
|
1009
|
-
* Gets all options
|
|
1010
|
-
*/
|
|
1011
|
-
protected get allOptions(): ɵNgSelectOption[];
|
|
1012
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, changeDetector: ChangeDetectorRef, options: EditPopupOptions, stringLocalization: StringLocalization, document?: Document);
|
|
1013
|
-
|
|
1014
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditPopupComponent, [{ optional: true; }, { optional: true; }, null, null, { optional: true; }, null, null]>;
|
|
1015
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditPopupComponent, "div.ng-select-edit-popup", never, {}, {}, never, never>;
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
/**
|
|
1019
|
-
* Edit popup options
|
|
1020
|
-
*/
|
|
1021
|
-
export declare interface EditPopupOptions extends PopupOptions<CssClassesEditPopup> {
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
/**
|
|
1025
|
-
* Options gatherer using default build in gatherer extended with exclusion of selected options
|
|
1026
|
-
*/
|
|
1027
|
-
export declare class ExcludingOptionsGatherer<TValue = any> implements OptionsGatherer<TValue> {
|
|
1028
|
-
/**
|
|
1029
|
-
* Array of visible, displayed options for select
|
|
1030
|
-
*/
|
|
1031
|
-
protected _availableOptions: NgSelectOption<TValue>[];
|
|
1032
|
-
/**
|
|
1033
|
-
* Occurs when array of visible, displayed options has changed
|
|
1034
|
-
*/
|
|
1035
|
-
protected _availableOptionsChange: EventEmitter<void>;
|
|
1036
|
-
/**
|
|
1037
|
-
* Subscription for change of available options
|
|
1038
|
-
*/
|
|
1039
|
-
protected _availableOptionsChangeSubscription: Subscription;
|
|
1040
|
-
/**
|
|
1041
|
-
* Subscription for change of value in value handler
|
|
1042
|
-
*/
|
|
1043
|
-
protected _valueChangedSubscription: Subscription;
|
|
1044
|
-
/**
|
|
1045
|
-
* Value handler plugin used within `NgSelect`
|
|
1046
|
-
*/
|
|
1047
|
-
protected _valueHandler: ValueHandler;
|
|
1048
|
-
/**
|
|
1049
|
-
* Array of provided options for select
|
|
1050
|
-
*/
|
|
1051
|
-
get options(): NgSelectOption<TValue>[];
|
|
1052
|
-
/**
|
|
1053
|
-
* Occurs when array of provided options has changed
|
|
1054
|
-
*/
|
|
1055
|
-
get optionsChange(): EventEmitter<void>;
|
|
1056
|
-
/**
|
|
1057
|
-
* Array of visible, displayed options for select
|
|
1058
|
-
*/
|
|
1059
|
-
get availableOptions(): NgSelectOption<TValue>[];
|
|
1060
|
-
/**
|
|
1061
|
-
* Occurs when array of visible, displayed options has changed
|
|
1062
|
-
*/
|
|
1063
|
-
get availableOptionsChange(): EventEmitter<void>;
|
|
1064
|
-
/**
|
|
1065
|
-
* NgSelect plugin instances available for gatherer
|
|
1066
|
-
*/
|
|
1067
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
1068
|
-
/**
|
|
1069
|
-
* Plugin bus used for inter plugin shared events
|
|
1070
|
-
*/
|
|
1071
|
-
pluginBus: PluginBus<TValue>;
|
|
1072
|
-
/**
|
|
1073
|
-
* Select element that implements default gatherers
|
|
1074
|
-
*/
|
|
1075
|
-
select: NgSelect<TValue>;
|
|
1076
|
-
/**
|
|
1077
|
-
* Initialize gatherer during initialization phase
|
|
1078
|
-
*/
|
|
1079
|
-
initializeGatherer(): void;
|
|
1080
|
-
/**
|
|
1081
|
-
* Called when gatherer needs to be destroyed
|
|
1082
|
-
*/
|
|
1083
|
-
destroyGatherer(): void;
|
|
1084
|
-
/**
|
|
1085
|
-
* Exclude selected options
|
|
1086
|
-
*/
|
|
1087
|
-
protected _excludeSelected(): void;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
/**
|
|
1091
|
-
* Callback used for obtaining dynamic options
|
|
1092
|
-
*/
|
|
1093
|
-
export declare interface GetOptionsCallback<TValue = any> {
|
|
1094
|
-
/**
|
|
1095
|
-
* Gets array of options based on query
|
|
1096
|
-
* @param query - Query for obtaining options, can be searched string or TValue in case of obtaining option for value during initialization
|
|
1097
|
-
*/
|
|
1098
|
-
(query: string | TValue): Promise<NgSelectOption<TValue>[]>;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
declare namespace i1 {
|
|
1102
|
-
export {
|
|
1103
|
-
OptionComponent
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
declare namespace i10 {
|
|
1108
|
-
export {
|
|
1109
|
-
BasicPopupComponent
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
declare namespace i11 {
|
|
1114
|
-
export {
|
|
1115
|
-
NoPositionerComponent
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
declare namespace i12 {
|
|
1120
|
-
export {
|
|
1121
|
-
BasicPositionerComponent
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
declare namespace i13 {
|
|
1126
|
-
export {
|
|
1127
|
-
BasicKeyboardHandlerComponent
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
declare namespace i14 {
|
|
1132
|
-
export {
|
|
1133
|
-
BasicValueHandlerComponent
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
declare namespace i15 {
|
|
1138
|
-
export {
|
|
1139
|
-
NgSelectAbsoluteDirective
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
declare namespace i16 {
|
|
1144
|
-
export {
|
|
1145
|
-
NgSelectPlaceholderDirective
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
declare namespace i1_2 {
|
|
1150
|
-
export {
|
|
1151
|
-
DynamicValueHandlerComponent
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
declare namespace i1_3 {
|
|
1156
|
-
export {
|
|
1157
|
-
NgSelectEditDirective
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
declare namespace i2 {
|
|
1162
|
-
export {
|
|
1163
|
-
OptGroupComponent
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
declare namespace i2_2 {
|
|
1168
|
-
export {
|
|
1169
|
-
EditNormalStateComponent
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
declare namespace i3 {
|
|
1174
|
-
export {
|
|
1175
|
-
NgSelectComponent
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
declare namespace i3_2 {
|
|
1180
|
-
export {
|
|
1181
|
-
EditLiveSearchComponent
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
declare namespace i4 {
|
|
1186
|
-
export {
|
|
1187
|
-
NgSelectValuePipe
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
declare namespace i4_2 {
|
|
1192
|
-
export {
|
|
1193
|
-
EditPopupComponent
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
declare namespace i5 {
|
|
1198
|
-
export {
|
|
1199
|
-
NgSelectHasValuePipe
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
declare namespace i5_2 {
|
|
1204
|
-
export {
|
|
1205
|
-
EditKeyboardHandlerComponent
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
declare namespace i6 {
|
|
1210
|
-
export {
|
|
1211
|
-
NgSelectControlValueAccessor
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
declare namespace i7 {
|
|
1216
|
-
export {
|
|
1217
|
-
BasicNormalStateComponent
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
declare namespace i7_2 {
|
|
1222
|
-
export {
|
|
1223
|
-
NgSelectModule
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
declare namespace i8 {
|
|
1228
|
-
export {
|
|
1229
|
-
NoLiveSearchComponent
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
declare namespace i9 {
|
|
1234
|
-
export {
|
|
1235
|
-
BasicLiveSearchComponent
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* Constant used for accessing keyboard handler plugin in NgSelect
|
|
1241
|
-
*/
|
|
1242
|
-
export declare const KEYBOARD_HANDLER = "KEYBOARD_HANDLER";
|
|
1243
|
-
|
|
1244
|
-
/**
|
|
1245
|
-
* Token for injecting options for keyboard handler plugin
|
|
1246
|
-
*/
|
|
1247
|
-
export declare const KEYBOARD_HANDLER_OPTIONS: InjectionToken<KeyboardHandlerOptions>;
|
|
1248
|
-
|
|
1249
|
-
/**
|
|
1250
|
-
* Injection token for 'KeyboardHandler' implementation
|
|
1251
|
-
*/
|
|
1252
|
-
export declare const KEYBOARD_HANDLER_TYPE: InjectionToken<Type<KeyboardHandler>>;
|
|
1253
|
-
|
|
1254
|
-
/**
|
|
1255
|
-
* Keyboard handler plugin interface
|
|
1256
|
-
*/
|
|
1257
|
-
export declare interface KeyboardHandler extends NgSelectPlugin {
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
/**
|
|
1261
|
-
* Options for keyboard handler plugin
|
|
1262
|
-
*/
|
|
1263
|
-
export declare interface KeyboardHandlerOptions extends PluginOptions {
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
/**
|
|
1267
|
-
* Constant used for accessing live search plugin in NgSelect
|
|
1268
|
-
*/
|
|
1269
|
-
export declare const LIVE_SEARCH = "LIVE_SEARCH";
|
|
1270
|
-
|
|
1271
|
-
/**
|
|
1272
|
-
* Token for injecting options for live search plugin
|
|
1273
|
-
*/
|
|
1274
|
-
export declare const LIVE_SEARCH_OPTIONS: InjectionToken<LiveSearchOptions>;
|
|
1275
|
-
|
|
1276
|
-
/**
|
|
1277
|
-
* Injection token for 'LiveSearch' implementation
|
|
1278
|
-
*/
|
|
1279
|
-
export declare const LIVE_SEARCH_TYPE: InjectionToken<Type<LiveSearch>>;
|
|
1280
|
-
|
|
1281
|
-
/**
|
|
1282
|
-
* Keyboard handler plugin interface
|
|
1283
|
-
*/
|
|
1284
|
-
export declare interface LiveSearch extends NgSelectPlugin {
|
|
1285
|
-
/**
|
|
1286
|
-
* HTML element that represents live search
|
|
1287
|
-
*/
|
|
1288
|
-
readonly liveSearchElement: HTMLElement;
|
|
1289
|
-
/**
|
|
1290
|
-
* Current value of live search
|
|
1291
|
-
*/
|
|
1292
|
-
readonly searchValue: string;
|
|
1293
|
-
/**
|
|
1294
|
-
* Occurs when current value of live search changes
|
|
1295
|
-
*/
|
|
1296
|
-
readonly searchValueChange: EventEmitter<void>;
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
/**
|
|
1300
|
-
* Callback that is used for filtering static values during live search
|
|
1301
|
-
*/
|
|
1302
|
-
export declare interface LiveSearchFilter<TValue = any> {
|
|
1303
|
-
(query: string, normalizer?: NormalizeFunc<TValue>): (option: NgSelectOption<TValue>) => boolean;
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
/**
|
|
1307
|
-
* Options for live search plugin
|
|
1308
|
-
*/
|
|
1309
|
-
export declare interface LiveSearchOptions<TCssClasses = any> extends VisualPluginOptions<TCssClasses> {
|
|
1310
|
-
/**
|
|
1311
|
-
* Texts that are used within any LiveSearch
|
|
1312
|
-
*/
|
|
1313
|
-
texts?: LiveSearchTexts;
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
/**
|
|
1317
|
-
* Texts that are used within LiveSearch
|
|
1318
|
-
*/
|
|
1319
|
-
export declare interface LiveSearchTexts {
|
|
1320
|
-
/**
|
|
1321
|
-
* Displayed when nothing was entered into input
|
|
1322
|
-
*/
|
|
1323
|
-
inputPlaceholder?: string;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
/**
|
|
1327
|
-
* Injection token for 'NgSelectOptions'
|
|
1328
|
-
*/
|
|
1329
|
-
export declare const NG_SELECT_OPTIONS: InjectionToken<NgSelectOptions>;
|
|
1330
|
-
|
|
1331
|
-
/**
|
|
1332
|
-
* Token used for obtaining 'NgSelectPluginInstances'
|
|
1333
|
-
*/
|
|
1334
|
-
export declare const NG_SELECT_PLUGIN_INSTANCES: InjectionToken<NgSelectPluginInstances>;
|
|
1335
|
-
|
|
1336
|
-
/**
|
|
1337
|
-
* Public API for NgSelect
|
|
1338
|
-
*/
|
|
1339
|
-
export declare interface NgSelect<TValue = any> extends OptionsGatherer<TValue>, TemplateGatherer {
|
|
1340
|
-
/**
|
|
1341
|
-
* Occurs every time when NgSelect is initialized or reinitialized, if value is false NgSelect was not initialized yet
|
|
1342
|
-
*/
|
|
1343
|
-
readonly initialized: Observable<boolean>;
|
|
1344
|
-
/**
|
|
1345
|
-
* Gets current state of initialization
|
|
1346
|
-
*/
|
|
1347
|
-
readonly isInitialized: boolean;
|
|
1348
|
-
/**
|
|
1349
|
-
* Gets or sets NgSelect options
|
|
1350
|
-
*/
|
|
1351
|
-
selectOptions: NgSelectOptions<TValue>;
|
|
1352
|
-
/**
|
|
1353
|
-
* Initialize component, automatically called once if not blocked by options
|
|
1354
|
-
*/
|
|
1355
|
-
initialize(): void;
|
|
1356
|
-
/**
|
|
1357
|
-
* Initialize options, automaticaly called during init phase, but can be used to reinitialize NgSelectOptions
|
|
1358
|
-
*/
|
|
1359
|
-
initOptions(): void;
|
|
1360
|
-
/**
|
|
1361
|
-
* Gets instance of plugin by its id
|
|
1362
|
-
* @param pluginId - Id of plugin, use constants
|
|
1363
|
-
*/
|
|
1364
|
-
getPlugin<PluginType extends NgSelectPlugin>(pluginId: string): PluginType;
|
|
1365
|
-
/**
|
|
1366
|
-
* Subscribes for event
|
|
1367
|
-
* @param eventName - Name of event that should be listened to
|
|
1368
|
-
* @param handler - Function used for handling event
|
|
1369
|
-
*/
|
|
1370
|
-
listenTo<TParam = void>(eventName: keyof PluginBusEvents, handler: (data: TParam) => void): Subscription;
|
|
1371
|
-
/**
|
|
1372
|
-
* Explicitly runs invalidation of content (change detection)
|
|
1373
|
-
*/
|
|
1374
|
-
invalidateVisuals(): void;
|
|
1375
|
-
/**
|
|
1376
|
-
* Executes actions on NgSelect
|
|
1377
|
-
* @param actions - Array of actions that are executed over NgSelect
|
|
1378
|
-
*/
|
|
1379
|
-
execute(...actions: NgSelectAction<TValue>[]): void;
|
|
1380
|
-
/**
|
|
1381
|
-
* Executes function on NgSelect and returns result
|
|
1382
|
-
* @param func - Function that is executed and its result is returned
|
|
1383
|
-
*/
|
|
1384
|
-
executeAndReturn<TResult>(func: NgSelectFunction<TResult, TValue>): TResult;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
/**
|
|
1388
|
-
* Directive used for setting absolute option for ng-select
|
|
1389
|
-
*/
|
|
1390
|
-
declare class NgSelectAbsoluteDirective {
|
|
1391
|
-
constructor(select: NgSelectComponent);
|
|
1392
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectAbsoluteDirective, never>;
|
|
1393
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectAbsoluteDirective, "ng-select[absolute]", never, {}, {}, never>;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
/**
|
|
1397
|
-
* Defintion of action that can be executed on NgSelect
|
|
1398
|
-
*/
|
|
1399
|
-
export declare type NgSelectAction<TValue = any> = (ngSelect: NgSelect<TValue>) => void;
|
|
1400
|
-
|
|
1401
|
-
/**
|
|
1402
|
-
* Component that represents NgSelect itself, allows selection of value from options
|
|
1403
|
-
*/
|
|
1404
|
-
export declare class NgSelectComponent<TValue = any> implements NgSelect<TValue>, OnChanges, OnInit, AfterViewInit, OnDestroy {
|
|
1405
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
1406
|
-
protected _element: ElementRef<HTMLElement>;
|
|
1407
|
-
protected _componentFactoryResolver: ComponentFactoryResolver;
|
|
1408
|
-
protected _appRef: ApplicationRef;
|
|
1409
|
-
protected _injector: Injector;
|
|
1410
|
-
protected _pluginBus: PluginBus<TValue>;
|
|
1411
|
-
protected _pluginInstances: NgSelectPluginInstances;
|
|
1412
|
-
/**
|
|
1413
|
-
* NgSelect options
|
|
1414
|
-
*/
|
|
1415
|
-
protected _selectOptions: NgSelectOptions<TValue>;
|
|
1416
|
-
/**
|
|
1417
|
-
* Subject used for indication that NgSelect was initialized
|
|
1418
|
-
*/
|
|
1419
|
-
protected _initializedSubject: BehaviorSubject<boolean>;
|
|
1420
|
-
/**
|
|
1421
|
-
* Occurs when array of provided options has changed
|
|
1422
|
-
*/
|
|
1423
|
-
protected _optionsChange: EventEmitter<void>;
|
|
1424
|
-
/**
|
|
1425
|
-
* Occurs when array of visible, displayed options has changed
|
|
1426
|
-
*/
|
|
1427
|
-
protected _availableOptionsChange: EventEmitter<void>;
|
|
1428
|
-
/**
|
|
1429
|
-
* Array of available options to be displayed
|
|
1430
|
-
*/
|
|
1431
|
-
protected _availableOptions: NgSelectOption<TValue>[];
|
|
1432
|
-
/**
|
|
1433
|
-
* Live search plugin currently used in NgSelect
|
|
1434
|
-
*/
|
|
1435
|
-
protected _liveSearch: LiveSearch;
|
|
1436
|
-
/**
|
|
1437
|
-
* Subscription for changes of live search value
|
|
1438
|
-
*/
|
|
1439
|
-
protected _searchValueChangeSubscription: Subscription;
|
|
1440
|
-
/**
|
|
1441
|
-
* Instance of component ref for absolute popup
|
|
1442
|
-
*/
|
|
1443
|
-
protected _absolutePopup: ComponentRef<Popup>;
|
|
1444
|
-
/**
|
|
1445
|
-
* Instance of type that is used as absolute popup
|
|
1446
|
-
*/
|
|
1447
|
-
protected _absolutePopupType: Type<Popup>;
|
|
1448
|
-
/**
|
|
1449
|
-
* Instance of html element that is used
|
|
1450
|
-
*/
|
|
1451
|
-
protected _absolutePopupElement: HTMLElement;
|
|
1452
|
-
/**
|
|
1453
|
-
* Gets or sets NgSelect options
|
|
1454
|
-
*/
|
|
1455
|
-
get selectOptions(): NgSelectOptions<TValue>;
|
|
1456
|
-
set selectOptions(options: NgSelectOptions<TValue>);
|
|
1457
|
-
/**
|
|
1458
|
-
* Indication whether should be NgSelect disabled or not
|
|
1459
|
-
*/
|
|
1460
|
-
disabled: boolean;
|
|
1461
|
-
/**
|
|
1462
|
-
* Indication whether should be NgSelect readonly or not
|
|
1463
|
-
*/
|
|
1464
|
-
readonly: boolean;
|
|
1465
|
-
/**
|
|
1466
|
-
* Occurs every time when NgSelect is initialized or reinitialized, if value is false NgSelect was not initialized yet
|
|
1467
|
-
*/
|
|
1468
|
-
get initialized(): Observable<boolean>;
|
|
1469
|
-
/**
|
|
1470
|
-
* Gets current state of initialization
|
|
1471
|
-
*/
|
|
1472
|
-
isInitialized: boolean;
|
|
1473
|
-
/**
|
|
1474
|
-
* Template used within normal state
|
|
1475
|
-
*/
|
|
1476
|
-
normalStateTemplate: TemplateRef<NormalStateContext>;
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* Array of provided options for select
|
|
1480
|
-
*/
|
|
1481
|
-
get options(): NgSelectOption<TValue>[];
|
|
1482
|
-
/**
|
|
1483
|
-
* Occurs when array of provided options has changed
|
|
1484
|
-
*/
|
|
1485
|
-
get optionsChange(): EventEmitter<void>;
|
|
1486
|
-
/**
|
|
1487
|
-
* Array of visible, displayed options for select
|
|
1488
|
-
*/
|
|
1489
|
-
get availableOptions(): NgSelectOption<TValue>[];
|
|
1490
|
-
/**
|
|
1491
|
-
* Occurs when array of visible, displayed options has changed
|
|
1492
|
-
*/
|
|
1493
|
-
get availableOptionsChange(): EventEmitter<void>;
|
|
1494
|
-
/**
|
|
1495
|
-
* NgSelect plugin instances available for gatherer
|
|
1496
|
-
*/
|
|
1497
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
1498
|
-
/**
|
|
1499
|
-
* Plugin bus used for inter plugin shared events
|
|
1500
|
-
*/
|
|
1501
|
-
pluginBus: PluginBus<TValue>;
|
|
1502
|
-
/**
|
|
1503
|
-
* Select element that implements default gatherers
|
|
1504
|
-
*/
|
|
1505
|
-
select: NgSelect<TValue>;
|
|
1506
|
-
/**
|
|
1507
|
-
* Element used for live search
|
|
1508
|
-
*/
|
|
1509
|
-
liveSearchElement: HTMLElement[][];
|
|
1510
|
-
/**
|
|
1511
|
-
* Options children found inside ng-select
|
|
1512
|
-
*/
|
|
1513
|
-
optionsChildren: QueryList<NgSelectOption>;
|
|
1514
|
-
/**
|
|
1515
|
-
* Options groups children found inside ng-select
|
|
1516
|
-
*/
|
|
1517
|
-
optGroupsChildren: QueryList<NgSelectOptGroup>;
|
|
1518
|
-
constructor(_changeDetector: ChangeDetectorRef, _element: ElementRef<HTMLElement>, _componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _pluginBus: PluginBus<TValue>, _pluginInstances: NgSelectPluginInstances, options?: NgSelectOptions<TValue>, normalStateType?: Type<NormalState>, keyboardHandlerType?: Type<KeyboardHandler>, popupType?: Type<Popup>, positionerType?: Type<Positioner>, readonlyStateType?: Type<ReadonlyState>, valueHandlerType?: Type<ValueHandler>, liveSearchType?: Type<LiveSearch>, readonly?: string, disabled?: string, multiple?: string);
|
|
1519
|
-
/**
|
|
1520
|
-
* Called when input value changes
|
|
1521
|
-
*/
|
|
1522
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
1523
|
-
/**
|
|
1524
|
-
* Initialize component
|
|
1525
|
-
*/
|
|
1526
|
-
ngOnInit(): void;
|
|
1527
|
-
/**
|
|
1528
|
-
* Called when view was initialized
|
|
1529
|
-
*/
|
|
1530
|
-
ngAfterViewInit(): void;
|
|
1531
|
-
/**
|
|
1532
|
-
* Called when component is destroyed
|
|
1533
|
-
*/
|
|
1534
|
-
ngOnDestroy(): void;
|
|
1535
|
-
/**
|
|
1536
|
-
* Initialize gatherer during initialization phase
|
|
1537
|
-
*/
|
|
1538
|
-
initializeGatherer(): void;
|
|
1539
|
-
/**
|
|
1540
|
-
* Called when gatherer needs to be destroyed
|
|
1541
|
-
*/
|
|
1542
|
-
destroyGatherer(): void;
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
/**
|
|
1551
|
-
* Initialize component, automatically called once if not blocked by options
|
|
1552
|
-
*/
|
|
1553
|
-
initialize(): void;
|
|
1554
|
-
/**
|
|
1555
|
-
* Initialize options, automaticaly called during init phase, but can be used to reinitialize NgSelectOptions
|
|
1556
|
-
*/
|
|
1557
|
-
initOptions(): void;
|
|
1558
|
-
/**
|
|
1559
|
-
* Explicitly runs invalidation of content (change detection)
|
|
1560
|
-
*/
|
|
1561
|
-
invalidateVisuals(): void;
|
|
1562
|
-
/**
|
|
1563
|
-
* Gets instance of plugin by its id
|
|
1564
|
-
* @param pluginId - Id of plugin, use constants
|
|
1565
|
-
*/
|
|
1566
|
-
getPlugin<PluginType extends NgSelectPlugin>(pluginId: string): PluginType;
|
|
1567
|
-
/**
|
|
1568
|
-
* Subscribes for event
|
|
1569
|
-
* @param eventName - Name of event that should be listened to
|
|
1570
|
-
* @param handler - Function used for handling event
|
|
1571
|
-
*/
|
|
1572
|
-
listenTo<TParam = void>(eventName: keyof PluginBusEvents, handler: (data: TParam) => void): Subscription;
|
|
1573
|
-
/**
|
|
1574
|
-
* Executes actions on NgSelect
|
|
1575
|
-
* @param actions - Array of actions that are executed over NgSelect
|
|
1576
|
-
*/
|
|
1577
|
-
execute(...actions: NgSelectAction<TValue>[]): void;
|
|
1578
|
-
/**
|
|
1579
|
-
* Executes function on NgSelect and returns result
|
|
1580
|
-
* @param func - Function that is executed and its result is returned
|
|
1581
|
-
*/
|
|
1582
|
-
executeAndReturn<TResult>(func: NgSelectFunction<TResult, TValue>): TResult;
|
|
1583
|
-
/**
|
|
1584
|
-
* Appends popup component directly to body, allows absolute positioning over page body
|
|
1585
|
-
* @param component - Popup component type to be appended
|
|
1586
|
-
*/
|
|
1587
|
-
protected _appendPopupToBody(component: Type<Popup>): void;
|
|
1588
|
-
/**
|
|
1589
|
-
* Destroyes absolute popup if it exists
|
|
1590
|
-
*/
|
|
1591
|
-
protected _destroyAbsolutePopup(): void;
|
|
1592
|
-
/**
|
|
1593
|
-
* Registers newly created plugin
|
|
1594
|
-
* @param plugin - Plugin to be registered
|
|
1595
|
-
* @param pluginKey - Key of plugin used for pluginInstances
|
|
1596
|
-
* @param pluginName - Name property for plugin from options
|
|
1597
|
-
*/
|
|
1598
|
-
protected _registerNewPlugin(plugin: NgSelectPlugin, pluginKey: string, pluginName: keyof NgSelectPluginTypes): void;
|
|
1599
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectComponent<any>, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { attribute: "readonly"; }, { attribute: "disabled"; }, { attribute: "multiple"; }]>;
|
|
1600
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgSelectComponent<any>, "ng-select", never, { "selectOptions": "selectOptions"; "disabled": "disabled"; "readonly": "readonly"; }, {}, ["normalStateTemplate", "optionTemplate", "optionsChildren", "optGroupsChildren"], never>;
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
/**
|
|
1604
|
-
* Control value accessor for NgSelectComponent
|
|
1605
|
-
*/
|
|
1606
|
-
export declare class NgSelectControlValueAccessor<TValue = any> implements ControlValueAccessor, OnDestroy {
|
|
1607
|
-
private _select;
|
|
1608
|
-
/**
|
|
1609
|
-
* Subscription for initialized status of NgSelect, used for writeValue
|
|
1610
|
-
*/
|
|
1611
|
-
private _initializedSubscription;
|
|
1612
|
-
/**
|
|
1613
|
-
* Subscription for initialized status of NgSelect, used for registerOnChange
|
|
1614
|
-
*/
|
|
1615
|
-
private _changeInitializedSubscription;
|
|
1616
|
-
/**
|
|
1617
|
-
* Subscription for initialized status of NgSelect, used for registerOnTouched
|
|
1618
|
-
*/
|
|
1619
|
-
private _touchInitializedSubscription;
|
|
1620
|
-
/**
|
|
1621
|
-
* Subscription for initialized status of NgSelect, used for setDisabledState
|
|
1622
|
-
*/
|
|
1623
|
-
private _disabledInitializedSubscription;
|
|
1624
|
-
/**
|
|
1625
|
-
* Subscription that looks for changes of select
|
|
1626
|
-
*/
|
|
1627
|
-
private _changeSubscription;
|
|
1628
|
-
/**
|
|
1629
|
-
* Subscription that looks for changes of select
|
|
1630
|
-
*/
|
|
1631
|
-
private _focusSubscription;
|
|
1632
|
-
/**
|
|
1633
|
-
* Last set value to this control
|
|
1634
|
-
*/
|
|
1635
|
-
private _value;
|
|
1636
|
-
constructor(_select: NgSelectComponent<TValue>);
|
|
1637
|
-
/**
|
|
1638
|
-
* Sets value to select
|
|
1639
|
-
*/
|
|
1640
|
-
writeValue(value: TValue | Array<TValue>): void;
|
|
1641
|
-
/**
|
|
1642
|
-
* Registers callback that is called when value of select changes
|
|
1643
|
-
*/
|
|
1644
|
-
registerOnChange(fn: (data: TValue | Array<TValue>) => void): void;
|
|
1645
|
-
/**
|
|
1646
|
-
* Registers callback that is called when select is closed
|
|
1647
|
-
*/
|
|
1648
|
-
registerOnTouched(fn: () => void): void;
|
|
1649
|
-
/**
|
|
1650
|
-
* Sets NgSelect as disabled/readonly
|
|
1651
|
-
* @param isDisabled - Indication whether is control disabled or not
|
|
1652
|
-
*/
|
|
1653
|
-
setDisabledState(isDisabled: boolean): void;
|
|
1654
|
-
/**
|
|
1655
|
-
* Called when component is destroyed
|
|
1656
|
-
*/
|
|
1657
|
-
ngOnDestroy(): void;
|
|
1658
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectControlValueAccessor<any>, never>;
|
|
1659
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectControlValueAccessor<any>, "ng-select[formControlName],ng-select[formControl],ng-select[ngModel]", never, {}, {}, never>;
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* Module for select and its options, allows use of dynamic value handler
|
|
1664
|
-
*/
|
|
1665
|
-
export declare class NgSelectDynamicModule {
|
|
1666
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectDynamicModule, never>;
|
|
1667
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgSelectDynamicModule, [typeof i1_2.DynamicValueHandlerComponent], never, never>;
|
|
1668
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgSelectDynamicModule>;
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
/**
|
|
1672
|
-
* Directive that applies options for NgSelect which enable usage of NgSelect edit (jira like) style
|
|
1673
|
-
*/
|
|
1674
|
-
export declare class NgSelectEditDirective {
|
|
1675
|
-
constructor(select: NgSelectComponent);
|
|
1676
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectEditDirective, never>;
|
|
1677
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectEditDirective, "ng-select[editStyle]", never, {}, {}, never>;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
/**
|
|
1681
|
-
* Module for select with editation and tags (jira like select)
|
|
1682
|
-
*/
|
|
1683
|
-
export declare class NgSelectEditModule {
|
|
1684
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectEditModule, never>;
|
|
1685
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgSelectEditModule, [typeof i1_3.NgSelectEditDirective, typeof i2_2.EditNormalStateComponent, typeof i3_2.EditLiveSearchComponent, typeof i4_2.EditPopupComponent, typeof i5_2.EditKeyboardHandlerComponent], [typeof i17.CommonModule, typeof i7_2.NgSelectModule], [typeof i1_3.NgSelectEditDirective, typeof i2_2.EditNormalStateComponent, typeof i3_2.EditLiveSearchComponent, typeof i4_2.EditPopupComponent, typeof i5_2.EditKeyboardHandlerComponent]>;
|
|
1686
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgSelectEditModule>;
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
/**
|
|
1690
|
-
* Definition of function that can be executed on NgSelect and returns some data
|
|
1691
|
-
*/
|
|
1692
|
-
export declare type NgSelectFunction<TResult = any, TValue = any> = (ngSelect: NgSelect<TValue>) => TResult;
|
|
1693
|
-
|
|
1694
|
-
/**
|
|
1695
|
-
* Pipe that checks whether select has currently any option
|
|
1696
|
-
*/
|
|
1697
|
-
declare class NgSelectHasValuePipe<TValue = any> implements PipeTransform {
|
|
1698
|
-
/**
|
|
1699
|
-
* Transforms selected option into boolean indication if there is option selected
|
|
1700
|
-
* @param options - Selected options to be transformed into boolean
|
|
1701
|
-
*/
|
|
1702
|
-
transform(options: NgSelectOption<TValue> | Array<NgSelectOption<TValue>>): boolean;
|
|
1703
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectHasValuePipe<any>, never>;
|
|
1704
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<NgSelectHasValuePipe<any>, "ngSelectHasValue">;
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
/**
|
|
1708
|
-
* Module for select and its options
|
|
1709
|
-
*/
|
|
1710
|
-
export declare class NgSelectModule {
|
|
1711
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectModule, never>;
|
|
1712
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgSelectModule, [typeof i1.OptionComponent, typeof i2.OptGroupComponent, typeof i3.NgSelectComponent, typeof i4.NgSelectValuePipe, typeof i5.NgSelectHasValuePipe, typeof i6.NgSelectControlValueAccessor, typeof i7.BasicNormalStateComponent, typeof i8.NoLiveSearchComponent, typeof i9.BasicLiveSearchComponent, typeof i10.BasicPopupComponent, typeof i11.NoPositionerComponent, typeof i12.BasicPositionerComponent, typeof i13.BasicKeyboardHandlerComponent, typeof i14.BasicValueHandlerComponent, typeof i15.NgSelectAbsoluteDirective, typeof i16.NgSelectPlaceholderDirective], [typeof i17.CommonModule, typeof i18.CommonDynamicModule], [typeof i1.OptionComponent, typeof i2.OptGroupComponent, typeof i3.NgSelectComponent, typeof i4.NgSelectValuePipe, typeof i5.NgSelectHasValuePipe, typeof i6.NgSelectControlValueAccessor, typeof i15.NgSelectAbsoluteDirective, typeof i16.NgSelectPlaceholderDirective]>;
|
|
1713
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgSelectModule>;
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
/**
|
|
1717
|
-
* Option group for ng select
|
|
1718
|
-
*/
|
|
1719
|
-
export declare interface NgSelectOptGroup<TValue = any> {
|
|
1720
|
-
/**
|
|
1721
|
-
* Options assigned to this options group
|
|
1722
|
-
*/
|
|
1723
|
-
readonly options?: NgSelectOption<TValue>[];
|
|
1724
|
-
/**
|
|
1725
|
-
* Occurs when options in this group change
|
|
1726
|
-
*/
|
|
1727
|
-
readonly optionsChange?: EventEmitter<void>;
|
|
1728
|
-
/**
|
|
1729
|
-
* Text that is displayed for this options group
|
|
1730
|
-
*/
|
|
1731
|
-
text?: string;
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
/**
|
|
1735
|
-
* Option for ng select
|
|
1736
|
-
*/
|
|
1737
|
-
export declare interface NgSelectOption<TValue = any> {
|
|
1738
|
-
/**
|
|
1739
|
-
* Value that will be used if this option will be selected
|
|
1740
|
-
*/
|
|
1741
|
-
value?: TValue;
|
|
1742
|
-
/**
|
|
1743
|
-
* Text that is displayed if this value is selected
|
|
1744
|
-
*/
|
|
1745
|
-
text?: string;
|
|
1746
|
-
/**
|
|
1747
|
-
* If specified this option will be displayed in group
|
|
1748
|
-
*/
|
|
1749
|
-
group?: string;
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
/**
|
|
1753
|
-
* Describes select options used for NgSelect
|
|
1754
|
-
*/
|
|
1755
|
-
export declare interface NgSelectOptions<TValue = any> extends PluginBusOptions<TValue> {
|
|
1756
|
-
/**
|
|
1757
|
-
* Indication whether NgSelect should be initialized automaticaly during 'NgOnInit' phase
|
|
1758
|
-
*/
|
|
1759
|
-
autoInitialize?: boolean;
|
|
1760
|
-
/**
|
|
1761
|
-
* Css classes applied to ng select component, possible to override only part of classes
|
|
1762
|
-
*/
|
|
1763
|
-
cssClasses?: {};
|
|
1764
|
-
/**
|
|
1765
|
-
* Object defining overrides for default plugins, default plugins can be also specified using DI
|
|
1766
|
-
*/
|
|
1767
|
-
plugins?: NgSelectPluginTypes;
|
|
1768
|
-
/**
|
|
1769
|
-
* Indication whether is 'Popup' plugin displayd inside of NgSelect (false) or directly in Body (true)
|
|
1770
|
-
*/
|
|
1771
|
-
absolute?: boolean;
|
|
1772
|
-
/**
|
|
1773
|
-
* Indication whether force value check on initialization of select, this allows to change value of form control to value of valueHandler
|
|
1774
|
-
*/
|
|
1775
|
-
forceValueCheckOnInit?: boolean;
|
|
1776
|
-
}
|
|
1777
|
-
|
|
1778
|
-
/**
|
|
1779
|
-
* Directive used for setting live search placeholder text
|
|
1780
|
-
*/
|
|
1781
|
-
declare class NgSelectPlaceholderDirective implements OnInit {
|
|
1782
|
-
private _select;
|
|
1783
|
-
/**
|
|
1784
|
-
* Placeholder text used for live search plugin
|
|
1785
|
-
*/
|
|
1786
|
-
placeholder: string;
|
|
1787
|
-
constructor(_select: NgSelectComponent);
|
|
1788
|
-
/**
|
|
1789
|
-
* Initialize component
|
|
1790
|
-
*/
|
|
1791
|
-
ngOnInit(): void;
|
|
1792
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectPlaceholderDirective, never>;
|
|
1793
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectPlaceholderDirective, "ng-select[placeholder]", never, { "placeholder": "placeholder"; }, {}, never>;
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
/**
|
|
1797
|
-
* NgSelect plugin interface
|
|
1798
|
-
*/
|
|
1799
|
-
export declare interface NgSelectPlugin<TOptions = any, TValue = any> {
|
|
1800
|
-
/**
|
|
1801
|
-
* NgSelect plugin instances available for this plugin
|
|
1802
|
-
*/
|
|
1803
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
1804
|
-
/**
|
|
1805
|
-
* Element that represents plugin
|
|
1806
|
-
*/
|
|
1807
|
-
pluginElement: ElementRef;
|
|
1808
|
-
/**
|
|
1809
|
-
* Options for NgSelect plugin
|
|
1810
|
-
*/
|
|
1811
|
-
options: TOptions;
|
|
1812
|
-
/**
|
|
1813
|
-
* Plugin bus used in select
|
|
1814
|
-
*/
|
|
1815
|
-
pluginBus: PluginBus<TValue>;
|
|
1816
|
-
/**
|
|
1817
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
1818
|
-
*/
|
|
1819
|
-
initialize(): void;
|
|
1820
|
-
/**
|
|
1821
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
1822
|
-
*/
|
|
1823
|
-
initOptions(): void;
|
|
1824
|
-
/**
|
|
1825
|
-
* Explicitly runs invalidation of content (change detection)
|
|
1826
|
-
*/
|
|
1827
|
-
invalidateVisuals(): void;
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
|
-
/**
|
|
1831
|
-
* Interface describing object storing all existing plugin instances for NgSelect
|
|
1832
|
-
*/
|
|
1833
|
-
export declare interface NgSelectPluginInstances {
|
|
1834
|
-
[pluginName: string]: NgSelectPlugin;
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
/**
|
|
1838
|
-
* All available types of plugins for NgSelect
|
|
1839
|
-
*/
|
|
1840
|
-
export declare interface NgSelectPluginTypes {
|
|
1841
|
-
/**
|
|
1842
|
-
* Handles keyboard events
|
|
1843
|
-
*/
|
|
1844
|
-
keyboardHandler?: PluginDescription<KeyboardHandler>;
|
|
1845
|
-
/**
|
|
1846
|
-
* Component used for displaying normal state of select
|
|
1847
|
-
*/
|
|
1848
|
-
normalState?: PluginDescription<NormalState>;
|
|
1849
|
-
/**
|
|
1850
|
-
* Component used for displaying available options for selection
|
|
1851
|
-
*/
|
|
1852
|
-
popup?: PluginDescription<Popup>;
|
|
1853
|
-
/**
|
|
1854
|
-
* Handles correct position of pop component
|
|
1855
|
-
*/
|
|
1856
|
-
positioner?: PluginDescription<Positioner>;
|
|
1857
|
-
/**
|
|
1858
|
-
* Component used for displaying readonly/disabled state of select, can be null, in that case normal state component is used
|
|
1859
|
-
*/
|
|
1860
|
-
readonlyState?: PluginDescription<ReadonlyState>;
|
|
1861
|
-
/**
|
|
1862
|
-
* Handles obtaining and setting value of component
|
|
1863
|
-
*/
|
|
1864
|
-
valueHandler?: PluginDescription<ValueHandler>;
|
|
1865
|
-
/**
|
|
1866
|
-
* Contains component that is used for live searching in options
|
|
1867
|
-
*/
|
|
1868
|
-
liveSearch?: PluginDescription<LiveSearch>;
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
|
-
/**
|
|
1872
|
-
* Pipe to transform ng select selected option into
|
|
1873
|
-
*/
|
|
1874
|
-
export declare class NgSelectValuePipe<TValue = any> implements PipeTransform {
|
|
1875
|
-
/**
|
|
1876
|
-
* Transforms selected option into string
|
|
1877
|
-
* @param options - Selected options to be transformed into text
|
|
1878
|
-
* @param nothingSelectedText - Text displayed if nothing is selected
|
|
1879
|
-
* @param optionDisplayText - Function used for transformation of option into display text, defaults to text property of option
|
|
1880
|
-
*/
|
|
1881
|
-
transform(options: NgSelectOption<TValue> | Array<NgSelectOption<TValue>>, nothingSelectedText: string, optionDisplayText?: DisplayTextFunc<TValue>): string;
|
|
1882
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectValuePipe<any>, never>;
|
|
1883
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<NgSelectValuePipe<any>, "ngSelectValue">;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
/**
|
|
1887
|
-
* Public API for 'NoLiveSearchComponent'
|
|
1888
|
-
*/
|
|
1889
|
-
export declare interface NoLiveSearch extends LiveSearch {
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
|
-
/**
|
|
1893
|
-
* Component used for no live search
|
|
1894
|
-
*/
|
|
1895
|
-
export declare class NoLiveSearchComponent implements NoLiveSearch, NgSelectPlugin<NoLiveSearchOptions> {
|
|
1896
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
1897
|
-
pluginElement: ElementRef;
|
|
1898
|
-
private _document;
|
|
1899
|
-
/**
|
|
1900
|
-
* Options for NgSelect plugin
|
|
1901
|
-
*/
|
|
1902
|
-
protected _options: NoLiveSearchOptions;
|
|
1903
|
-
/**
|
|
1904
|
-
* Options for NgSelect plugin
|
|
1905
|
-
*/
|
|
1906
|
-
options: NoLiveSearchOptions;
|
|
1907
|
-
/**
|
|
1908
|
-
* Plugin bus used for inter plugin shared events
|
|
1909
|
-
*/
|
|
1910
|
-
pluginBus: PluginBus;
|
|
1911
|
-
/**
|
|
1912
|
-
* HTML element that represents live search
|
|
1913
|
-
*/
|
|
1914
|
-
get liveSearchElement(): HTMLElement;
|
|
1915
|
-
/**
|
|
1916
|
-
* Current value of live search
|
|
1917
|
-
*/
|
|
1918
|
-
searchValue: string;
|
|
1919
|
-
/**
|
|
1920
|
-
* Occurs when current value of live search changes
|
|
1921
|
-
*/
|
|
1922
|
-
searchValueChange: EventEmitter<void>;
|
|
1923
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginElement: ElementRef, _document: Document);
|
|
1924
|
-
/**
|
|
1925
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
1926
|
-
*/
|
|
1927
|
-
initialize(): void;
|
|
1928
|
-
/**
|
|
1929
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
1930
|
-
*/
|
|
1931
|
-
initOptions(): void;
|
|
1932
|
-
/**
|
|
1933
|
-
* Explicitly runs invalidation of content (change detection)
|
|
1934
|
-
*/
|
|
1935
|
-
invalidateVisuals(): void;
|
|
1936
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NoLiveSearchComponent, [{ optional: true; }, null, null]>;
|
|
1937
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NoLiveSearchComponent, "ng-no-live-search", never, {}, {}, never, never>;
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
|
-
/**
|
|
1941
|
-
* No live search options
|
|
1942
|
-
*/
|
|
1943
|
-
export declare interface NoLiveSearchOptions extends LiveSearchOptions {
|
|
1944
|
-
}
|
|
1945
|
-
|
|
1946
|
-
/**
|
|
1947
|
-
* Public API for 'NoPositionerComponent'
|
|
1948
|
-
*/
|
|
1949
|
-
export declare interface NoPositioner extends Positioner {
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
/**
|
|
1953
|
-
* Component used for not positioning popup
|
|
1954
|
-
*/
|
|
1955
|
-
export declare class NoPositionerComponent implements NoPositioner, NgSelectPlugin<NoPositionerOptions> {
|
|
1956
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
1957
|
-
pluginElement: ElementRef;
|
|
1958
|
-
/**
|
|
1959
|
-
* Options for NgSelect plugin
|
|
1960
|
-
*/
|
|
1961
|
-
protected _options: NoPositionerOptions;
|
|
1962
|
-
/**
|
|
1963
|
-
* Options for NgSelect plugin
|
|
1964
|
-
*/
|
|
1965
|
-
get options(): NoPositionerOptions;
|
|
1966
|
-
set options(options: NoPositionerOptions);
|
|
1967
|
-
/**
|
|
1968
|
-
* Plugin bus used for inter plugin shared events
|
|
1969
|
-
*/
|
|
1970
|
-
pluginBus: PluginBus;
|
|
1971
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginElement: ElementRef, options?: NoPositionerOptions);
|
|
1972
|
-
/**
|
|
1973
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
1974
|
-
*/
|
|
1975
|
-
initialize(): void;
|
|
1976
|
-
/**
|
|
1977
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
1978
|
-
*/
|
|
1979
|
-
initOptions(): void;
|
|
1980
|
-
/**
|
|
1981
|
-
* Explicitly runs invalidation of content (change detection)
|
|
1982
|
-
*/
|
|
1983
|
-
invalidateVisuals(): void;
|
|
1984
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NoPositionerComponent, [{ optional: true; }, null, { optional: true; }]>;
|
|
1985
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NoPositionerComponent, "ng-no-positioner", never, {}, {}, never, never>;
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
/**
|
|
1989
|
-
* No positioner options
|
|
1990
|
-
*/
|
|
1991
|
-
export declare interface NoPositionerOptions extends PositionerOptions {
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
/**
|
|
1995
|
-
* Constant used for accessing normal state plugin in NgSelect
|
|
1996
|
-
*/
|
|
1997
|
-
export declare const NORMAL_STATE = "NORMAL_STATE";
|
|
1998
|
-
|
|
1999
|
-
/**
|
|
2000
|
-
* Token for injecting options for normal state plugin
|
|
2001
|
-
*/
|
|
2002
|
-
export declare const NORMAL_STATE_OPTIONS: InjectionToken<NormalStateOptions>;
|
|
2003
|
-
|
|
2004
|
-
/**
|
|
2005
|
-
* Injection token for 'NormalState' implementation
|
|
2006
|
-
*/
|
|
2007
|
-
export declare const NORMAL_STATE_TYPE: InjectionToken<Type<NormalState>>;
|
|
2008
|
-
|
|
2009
|
-
/**
|
|
2010
|
-
* Function used for normalization of value, used during comparison or search
|
|
2011
|
-
*/
|
|
2012
|
-
export declare interface NormalizeFunc<TValue = any> {
|
|
2013
|
-
/**
|
|
2014
|
-
* Normalize provided value, usually used with strings
|
|
2015
|
-
* @param value - Value that is being normalized
|
|
2016
|
-
*/
|
|
2017
|
-
(value: TValue): TValue;
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
/**
|
|
2021
|
-
* Normal state plugin interface
|
|
2022
|
-
*/
|
|
2023
|
-
export declare interface NormalState extends NgSelectPlugin {
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
/**
|
|
2027
|
-
* Base abstract class for normal state of select
|
|
2028
|
-
*/
|
|
2029
|
-
export declare abstract class NormalStateAbstractComponent<TCssClasses = any, TOptions extends NormalStateOptions<TCssClasses, TValue> = any, TValue = any> implements NormalState, NgSelectPlugin<TOptions>, OnDestroy {
|
|
2030
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
2031
|
-
pluginBus: PluginBus;
|
|
2032
|
-
pluginElement: ElementRef;
|
|
2033
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
2034
|
-
protected _stringLocalization: StringLocalization;
|
|
2035
|
-
/**
|
|
2036
|
-
* Subscription for changes in texts
|
|
2037
|
-
*/
|
|
2038
|
-
protected _textsChangedSubscription: Subscription;
|
|
2039
|
-
/**
|
|
2040
|
-
* Options for NgSelect plugin
|
|
2041
|
-
*/
|
|
2042
|
-
protected _options: TOptions;
|
|
2043
|
-
/**
|
|
2044
|
-
* Indication whether was component destroyed
|
|
2045
|
-
*/
|
|
2046
|
-
protected _destroyed: boolean;
|
|
2047
|
-
/**
|
|
2048
|
-
* Options for NgSelect plugin
|
|
2049
|
-
*/
|
|
2050
|
-
get options(): TOptions;
|
|
2051
|
-
set options(options: TOptions);
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, _changeDetector: ChangeDetectorRef, _stringLocalization: StringLocalization);
|
|
2055
|
-
/**
|
|
2056
|
-
* Called when component is destroyed
|
|
2057
|
-
*/
|
|
2058
|
-
ngOnDestroy(): void;
|
|
2059
|
-
/**
|
|
2060
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
2061
|
-
*/
|
|
2062
|
-
initialize(): void;
|
|
2063
|
-
/**
|
|
2064
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
2065
|
-
*/
|
|
2066
|
-
initOptions(): void;
|
|
2067
|
-
/**
|
|
2068
|
-
* Explicitly runs invalidation of content (change detection)
|
|
2069
|
-
*/
|
|
2070
|
-
invalidateVisuals(): void;
|
|
2071
|
-
/**
|
|
2072
|
-
* Initialize texts
|
|
2073
|
-
*/
|
|
2074
|
-
protected _initTexts(): void;
|
|
2075
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NormalStateAbstractComponent<any, any, any>, never>;
|
|
2076
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NormalStateAbstractComponent<any, any, any>, never, never, {}, {}, never>;
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
/**
|
|
2080
|
-
* Context for template that is used within normal state plugin
|
|
2081
|
-
*/
|
|
2082
|
-
export declare interface NormalStateContext {
|
|
2083
|
-
/**
|
|
2084
|
-
* Instance of plugin itself
|
|
2085
|
-
*/
|
|
2086
|
-
$implicit: NormalState;
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
/**
|
|
2090
|
-
* Options for normal state plugin
|
|
2091
|
-
*/
|
|
2092
|
-
export declare interface NormalStateOptions<TCssClasses = any, TValue = any> extends VisualPluginOptions<TCssClasses> {
|
|
2093
|
-
/**
|
|
2094
|
-
* Texts that are used within any NormalState
|
|
2095
|
-
*/
|
|
2096
|
-
texts?: NormalStateTexts;
|
|
2097
|
-
/**
|
|
2098
|
-
* Function used for transformation of option into display text
|
|
2099
|
-
*/
|
|
2100
|
-
optionDisplayText?: DisplayTextFunc<TValue>;
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
|
-
/**
|
|
2104
|
-
* Texts that are used within NormalState
|
|
2105
|
-
*/
|
|
2106
|
-
export declare interface NormalStateTexts {
|
|
2107
|
-
/**
|
|
2108
|
-
* Displayed when there is no value selected, represents empty value, used if value is null or empty array
|
|
2109
|
-
*/
|
|
2110
|
-
nothingSelected?: string;
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
/**
|
|
2114
|
-
* Component used for options group in select component
|
|
2115
|
-
*/
|
|
2116
|
-
export declare class OptGroupComponent<TValue = any> implements NgSelectOptGroup<TValue>, AfterViewInit {
|
|
2117
|
-
/**
|
|
2118
|
-
* Instance of event emitter for optionsChange
|
|
2119
|
-
*/
|
|
2120
|
-
private _optionsChange;
|
|
2121
|
-
/**
|
|
2122
|
-
* Options assigned to this options group
|
|
2123
|
-
*/
|
|
2124
|
-
get options(): NgSelectOption<TValue>[];
|
|
2125
|
-
/**
|
|
2126
|
-
* Occurs when options in this group change
|
|
2127
|
-
*/
|
|
2128
|
-
get optionsChange(): EventEmitter<void>;
|
|
2129
|
-
|
|
2130
|
-
/**
|
|
2131
|
-
* Text that is displayed for this options group
|
|
2132
|
-
*/
|
|
2133
|
-
text: string;
|
|
2134
|
-
/**
|
|
2135
|
-
* Called when view was initialized
|
|
2136
|
-
*/
|
|
2137
|
-
ngAfterViewInit(): void;
|
|
2138
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptGroupComponent<any>, never>;
|
|
2139
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptGroupComponent<any>, "ng-select>ng-optgroup", never, { "text": "text"; }, {}, never, never>;
|
|
2140
|
-
}
|
|
2141
|
-
|
|
2142
|
-
/**
|
|
2143
|
-
* Component used for options in select component
|
|
2144
|
-
*/
|
|
2145
|
-
export declare class OptionComponent<TValue = any> implements NgSelectOption<TValue> {
|
|
2146
|
-
/**
|
|
2147
|
-
* Indication whether is item active
|
|
2148
|
-
*/
|
|
2149
|
-
active: boolean;
|
|
2150
|
-
/**
|
|
2151
|
-
* Indication whether this option is selected
|
|
2152
|
-
*/
|
|
2153
|
-
selected: boolean;
|
|
2154
|
-
/**
|
|
2155
|
-
* Value that will be used if this option will be selected
|
|
2156
|
-
*/
|
|
2157
|
-
value: TValue;
|
|
2158
|
-
/**
|
|
2159
|
-
* Text that is displayed if this value is selected
|
|
2160
|
-
*/
|
|
2161
|
-
text: string;
|
|
2162
|
-
/**
|
|
2163
|
-
* If specified this option will be displayed in group
|
|
2164
|
-
*/
|
|
2165
|
-
group: string;
|
|
2166
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent<any>, never>;
|
|
2167
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent<any>, "ng-option", never, { "value": "value"; "text": "text"; }, {}, never, never>;
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
/**
|
|
2171
|
-
* Gatherer used for obtaining options for select
|
|
2172
|
-
*/
|
|
2173
|
-
export declare interface OptionsGatherer<TValue = any> {
|
|
2174
|
-
/**
|
|
2175
|
-
* Array of provided options for select
|
|
2176
|
-
*/
|
|
2177
|
-
readonly options: NgSelectOption<TValue>[];
|
|
2178
|
-
/**
|
|
2179
|
-
* Occurs when array of provided options has changed
|
|
2180
|
-
*/
|
|
2181
|
-
readonly optionsChange: EventEmitter<void>;
|
|
2182
|
-
/**
|
|
2183
|
-
* Array of visible, displayed options for select
|
|
2184
|
-
*/
|
|
2185
|
-
readonly availableOptions: NgSelectOption<TValue>[];
|
|
2186
|
-
/**
|
|
2187
|
-
* Occurs when array of visible, displayed options has changed
|
|
2188
|
-
*/
|
|
2189
|
-
readonly availableOptionsChange: EventEmitter<void>;
|
|
2190
|
-
/**
|
|
2191
|
-
* NgSelect plugin instances available for gatherer
|
|
2192
|
-
*/
|
|
2193
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
2194
|
-
/**
|
|
2195
|
-
* Plugin bus used for inter plugin shared events
|
|
2196
|
-
*/
|
|
2197
|
-
pluginBus: PluginBus<TValue>;
|
|
2198
|
-
/**
|
|
2199
|
-
* Select element that implements default gatherers
|
|
2200
|
-
*/
|
|
2201
|
-
select: NgSelect<TValue>;
|
|
2202
|
-
/**
|
|
2203
|
-
* Initialize gatherer during initialization phase
|
|
2204
|
-
*/
|
|
2205
|
-
initializeGatherer(): void;
|
|
2206
|
-
/**
|
|
2207
|
-
* Called when gatherer needs to be destroyed
|
|
2208
|
-
*/
|
|
2209
|
-
destroyGatherer(): void;
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
|
-
/**
|
|
2213
|
-
* Class represents centralized bus for plugin communications
|
|
2214
|
-
*/
|
|
2215
|
-
export declare class PluginBus<TValue = any> implements PluginBusEvents {
|
|
2216
|
-
/**
|
|
2217
|
-
* Options passed to select
|
|
2218
|
-
*/
|
|
2219
|
-
selectOptions: PluginBusOptions<TValue>;
|
|
2220
|
-
/**
|
|
2221
|
-
* HTML element that represents select itself
|
|
2222
|
-
*/
|
|
2223
|
-
selectElement: ElementRef<HTMLElement>;
|
|
2224
|
-
/**
|
|
2225
|
-
* Occurs when popup visibility should be toggled
|
|
2226
|
-
*/
|
|
2227
|
-
togglePopup: EventEmitter<void>;
|
|
2228
|
-
/**
|
|
2229
|
-
* Occurs when popup visibility should be changed
|
|
2230
|
-
*/
|
|
2231
|
-
showHidePopup: EventEmitter<boolean>;
|
|
2232
|
-
/**
|
|
2233
|
-
* Occurs when option should be selected
|
|
2234
|
-
*/
|
|
2235
|
-
optionSelect: EventEmitter<NgSelectOption>;
|
|
2236
|
-
/**
|
|
2237
|
-
* Occurs when option should be canceled
|
|
2238
|
-
*/
|
|
2239
|
-
optionCancel: EventEmitter<NgSelectOption>;
|
|
2240
|
-
/**
|
|
2241
|
-
* Occurs when any part of select gains focus
|
|
2242
|
-
*/
|
|
2243
|
-
focus: EventEmitter<void>;
|
|
2244
|
-
/**
|
|
2245
|
-
* Occurs when live search should gain focus
|
|
2246
|
-
*/
|
|
2247
|
-
liveSearchFocus: EventEmitter<void>;
|
|
2248
|
-
/**
|
|
2249
|
-
* Occurs when there is need for updating displayed value
|
|
2250
|
-
*/
|
|
2251
|
-
readonly updateDisplayedValue: EventEmitter<void>;
|
|
2252
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PluginBus<any>, never>;
|
|
2253
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PluginBus<any>>;
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2256
|
-
/**
|
|
2257
|
-
* Represents all events implemented by plugin bus
|
|
2258
|
-
*/
|
|
2259
|
-
export declare interface PluginBusEvents {
|
|
2260
|
-
/**
|
|
2261
|
-
* Occurs when popup visibility should be toggled
|
|
2262
|
-
*/
|
|
2263
|
-
readonly togglePopup: EventEmitter<void>;
|
|
2264
|
-
/**
|
|
2265
|
-
* Occurs when popup visibility should be changed
|
|
2266
|
-
*/
|
|
2267
|
-
readonly showHidePopup: EventEmitter<boolean>;
|
|
2268
|
-
/**
|
|
2269
|
-
* Occurs when option should be selected
|
|
2270
|
-
*/
|
|
2271
|
-
readonly optionSelect: EventEmitter<NgSelectOption>;
|
|
2272
|
-
/**
|
|
2273
|
-
* Occurs when option should be canceled
|
|
2274
|
-
*/
|
|
2275
|
-
readonly optionCancel: EventEmitter<NgSelectOption>;
|
|
2276
|
-
/**
|
|
2277
|
-
* Occurs when any part of select gains focus
|
|
2278
|
-
*/
|
|
2279
|
-
readonly focus: EventEmitter<void>;
|
|
2280
|
-
/**
|
|
2281
|
-
* Occurs when live search should gain focus
|
|
2282
|
-
*/
|
|
2283
|
-
readonly liveSearchFocus: EventEmitter<void>;
|
|
2284
|
-
/**
|
|
2285
|
-
* Occurs when there is need for updating displayed value
|
|
2286
|
-
*/
|
|
2287
|
-
readonly updateDisplayedValue: EventEmitter<void>;
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
/**
|
|
2291
|
-
* Options used for plugin bus
|
|
2292
|
-
*/
|
|
2293
|
-
export declare interface PluginBusOptions<TValue = any> {
|
|
2294
|
-
/**
|
|
2295
|
-
* Instance of options gatherer that is used for obtaining options
|
|
2296
|
-
*/
|
|
2297
|
-
optionsGatherer?: OptionsGatherer<TValue>;
|
|
2298
|
-
/**
|
|
2299
|
-
* Instance of template gatherer used for obtaining custom templates
|
|
2300
|
-
*/
|
|
2301
|
-
templateGatherer?: TemplateGatherer;
|
|
2302
|
-
/**
|
|
2303
|
-
* Indication whether is NgSelect readonly or not
|
|
2304
|
-
*/
|
|
2305
|
-
readonly?: boolean;
|
|
2306
|
-
/**
|
|
2307
|
-
* Indication that multiple values can be selected
|
|
2308
|
-
*/
|
|
2309
|
-
multiple?: boolean;
|
|
2310
|
-
/**
|
|
2311
|
-
* Indication whether use non existing value in live search as new value, use with dynamic value handler
|
|
2312
|
-
*/
|
|
2313
|
-
useNonExistingAsValue?: boolean;
|
|
2314
|
-
/**
|
|
2315
|
-
* Function of value comparer that is used for comparison of values
|
|
2316
|
-
*/
|
|
2317
|
-
valueComparer?: CompareValueFunc<TValue>;
|
|
2318
|
-
/**
|
|
2319
|
-
* Method that is used for filtering when live search is running on static data
|
|
2320
|
-
*/
|
|
2321
|
-
liveSearchFilter?: LiveSearchFilter<TValue>;
|
|
2322
|
-
/**
|
|
2323
|
-
* Normalizer used for normalizing values
|
|
2324
|
-
*/
|
|
2325
|
-
normalizer?: NormalizeFunc<TValue>;
|
|
2326
|
-
}
|
|
2327
|
-
|
|
2328
|
-
/**
|
|
2329
|
-
* Defines interface, that describes minimal set of parameters for specifying plugin for NgSelect
|
|
2330
|
-
*/
|
|
2331
|
-
export declare interface PluginDescription<PluginType = any> {
|
|
2332
|
-
/**
|
|
2333
|
-
* Type of plugin that will be dynamically instantiated
|
|
2334
|
-
*/
|
|
2335
|
-
type?: Type<PluginType>;
|
|
2336
|
-
/**
|
|
2337
|
-
* Options that will be passed to dynamically instantiated plugin
|
|
2338
|
-
*/
|
|
2339
|
-
options?: PluginOptions;
|
|
2340
|
-
/**
|
|
2341
|
-
* Optional callback used for obtaining dynamic instance of plugin (allows direct communication with plugin)
|
|
2342
|
-
*/
|
|
2343
|
-
instanceCallback?: (instance: NgSelectPlugin | null) => void;
|
|
2344
|
-
}
|
|
2345
|
-
|
|
2346
|
-
/**
|
|
2347
|
-
* Base options for every plugin
|
|
2348
|
-
*/
|
|
2349
|
-
export declare interface PluginOptions {
|
|
2350
|
-
}
|
|
2351
|
-
|
|
2352
|
-
/**
|
|
2353
|
-
* Constant used for accessing popup plugin in NgSelect
|
|
2354
|
-
*/
|
|
2355
|
-
export declare const POPUP = "POPUP";
|
|
2356
|
-
|
|
2357
|
-
/**
|
|
2358
|
-
* Popup plugin interface
|
|
2359
|
-
*/
|
|
2360
|
-
export declare interface Popup extends NgSelectPlugin {
|
|
2361
|
-
/**
|
|
2362
|
-
* Occurs when visibility of popup has changed
|
|
2363
|
-
*/
|
|
2364
|
-
readonly visibilityChange: EventEmitter<void>;
|
|
2365
|
-
/**
|
|
2366
|
-
* Html element that represents popup itself
|
|
2367
|
-
*/
|
|
2368
|
-
readonly popupElement: HTMLElement;
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
/**
|
|
2372
|
-
* Token for injecting options for popup plugin
|
|
2373
|
-
*/
|
|
2374
|
-
export declare const POPUP_OPTIONS: InjectionToken<PopupOptions>;
|
|
2375
|
-
|
|
2376
|
-
/**
|
|
2377
|
-
* Injection token for 'Popup' implementation
|
|
2378
|
-
*/
|
|
2379
|
-
export declare const POPUP_TYPE: InjectionToken<Type<Popup>>;
|
|
2380
|
-
|
|
2381
|
-
/**
|
|
2382
|
-
* Base abstract class for popup with options
|
|
2383
|
-
*/
|
|
2384
|
-
export declare class PopupAbstractComponent<TCssClasses = any, TOptions extends PopupOptions<TCssClasses> = any> implements Popup, NgSelectPlugin<TOptions>, AfterViewInit, OnDestroy {
|
|
2385
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
2386
|
-
pluginBus: PluginBus;
|
|
2387
|
-
pluginElement: ElementRef;
|
|
2388
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
2389
|
-
protected _document: Document;
|
|
2390
|
-
protected _stringLocalization: StringLocalization;
|
|
2391
|
-
/**
|
|
2392
|
-
* Options for NgSelect plugin
|
|
2393
|
-
*/
|
|
2394
|
-
protected _options: TOptions;
|
|
2395
|
-
/**
|
|
2396
|
-
* Instance of previous options gatherer, that is used for obtaining available options
|
|
2397
|
-
*/
|
|
2398
|
-
protected _optionsGatherer: OptionsGatherer;
|
|
2399
|
-
/**
|
|
2400
|
-
* Subscription for changes of options in options gatherer
|
|
2401
|
-
*/
|
|
2402
|
-
protected _optionsChangeSubscription: Subscription;
|
|
2403
|
-
/**
|
|
2404
|
-
* Subscription for toggle popup event
|
|
2405
|
-
*/
|
|
2406
|
-
protected _popupToggleSubscription: Subscription;
|
|
2407
|
-
/**
|
|
2408
|
-
* Subscription for popup visibility change request
|
|
2409
|
-
*/
|
|
2410
|
-
protected _visibilityRequestSubscription: Subscription;
|
|
2411
|
-
/**
|
|
2412
|
-
* Subscription for changes of selected value
|
|
2413
|
-
*/
|
|
2414
|
-
protected _valueChangedSubscription: Subscription;
|
|
2415
|
-
/**
|
|
2416
|
-
* Subscription for changes in texts
|
|
2417
|
-
*/
|
|
2418
|
-
protected _textsChangedSubscription: Subscription;
|
|
2419
|
-
/**
|
|
2420
|
-
* Indication whether is popup visible
|
|
2421
|
-
*/
|
|
2422
|
-
protected _popupVisible: boolean;
|
|
2423
|
-
/**
|
|
2424
|
-
* Value handler plugin used within `NgSelect`
|
|
2425
|
-
*/
|
|
2426
|
-
protected _valueHandler: ValueHandler;
|
|
2427
|
-
/**
|
|
2428
|
-
* Gets indication whether keep open popup after value change
|
|
2429
|
-
*/
|
|
2430
|
-
protected get keepOpen(): boolean;
|
|
2431
|
-
/**
|
|
2432
|
-
* Options for NgSelect plugin
|
|
2433
|
-
*/
|
|
2434
|
-
get options(): TOptions;
|
|
2435
|
-
set options(options: TOptions);
|
|
2436
|
-
/**
|
|
2437
|
-
* Occurs when visibility of popup has changed
|
|
2438
|
-
*/
|
|
2439
|
-
visibilityChange: EventEmitter<void>;
|
|
2440
|
-
/**
|
|
2441
|
-
* Html element that represents popup itself
|
|
2442
|
-
*/
|
|
2443
|
-
get popupElement(): HTMLElement;
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus, pluginElement: ElementRef, _changeDetector: ChangeDetectorRef, _document: Document, _stringLocalization: StringLocalization);
|
|
2448
|
-
/**
|
|
2449
|
-
* Called when view was initialized
|
|
2450
|
-
*/
|
|
2451
|
-
ngAfterViewInit(): void;
|
|
2452
|
-
/**
|
|
2453
|
-
* Called when component is destroyed
|
|
2454
|
-
*/
|
|
2455
|
-
ngOnDestroy(): void;
|
|
2456
|
-
/**
|
|
2457
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
2458
|
-
*/
|
|
2459
|
-
initialize(): void;
|
|
2460
|
-
/**
|
|
2461
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
2462
|
-
*/
|
|
2463
|
-
initOptions(): void;
|
|
2464
|
-
/**
|
|
2465
|
-
* Explicitly runs invalidation of content (change detection)
|
|
2466
|
-
*/
|
|
2467
|
-
invalidateVisuals(): void;
|
|
2468
|
-
/**
|
|
2469
|
-
* Initialize texts
|
|
2470
|
-
*/
|
|
2471
|
-
protected _initTexts(): void;
|
|
2472
|
-
/**
|
|
2473
|
-
* Loads options
|
|
2474
|
-
*/
|
|
2475
|
-
protected loadOptions(): void;
|
|
2476
|
-
/**
|
|
2477
|
-
* Toggles popup visibility
|
|
2478
|
-
*/
|
|
2479
|
-
protected togglePopup(): void;
|
|
2480
|
-
/**
|
|
2481
|
-
* Handles click outside of select element
|
|
2482
|
-
* @param event - Mouse event object
|
|
2483
|
-
*/
|
|
2484
|
-
protected _handleClickOutside: (event: MouseEvent) => void;
|
|
2485
|
-
/**
|
|
2486
|
-
* Handles visibility change
|
|
2487
|
-
*/
|
|
2488
|
-
protected _handleVisibilityChange: (visible: boolean) => void;
|
|
2489
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PopupAbstractComponent<any, any>, never>;
|
|
2490
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PopupAbstractComponent<any, any>, never, never, {}, {}, never>;
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
|
-
/**
|
|
2494
|
-
* Context for template that is used within popup plugin
|
|
2495
|
-
*/
|
|
2496
|
-
export declare interface PopupContext {
|
|
2497
|
-
/**
|
|
2498
|
-
* Instance of plugin itself
|
|
2499
|
-
*/
|
|
2500
|
-
$implicit: NgSelectOption;
|
|
2501
|
-
/**
|
|
2502
|
-
* Instance of plugin itself
|
|
2503
|
-
*/
|
|
2504
|
-
popup: Popup;
|
|
2505
|
-
}
|
|
2506
|
-
|
|
2507
|
-
/**
|
|
2508
|
-
* Options for popup plugin
|
|
2509
|
-
*/
|
|
2510
|
-
export declare interface PopupOptions<TCssClasses = any> extends VisualPluginOptions<TCssClasses> {
|
|
2511
|
-
/**
|
|
2512
|
-
* Indication whether are popup options visible, or not
|
|
2513
|
-
*/
|
|
2514
|
-
visible?: boolean;
|
|
2515
|
-
/**
|
|
2516
|
-
* Texts that are used within any Popup
|
|
2517
|
-
*/
|
|
2518
|
-
texts?: PopupTexts;
|
|
2519
|
-
}
|
|
2520
|
-
|
|
2521
|
-
/**
|
|
2522
|
-
* Texts that are used within Popup
|
|
2523
|
-
*/
|
|
2524
|
-
export declare interface PopupTexts {
|
|
2525
|
-
/**
|
|
2526
|
-
* Displayed when there is are no available options to be displayed
|
|
2527
|
-
*/
|
|
2528
|
-
noAvailableOptions?: string;
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
/**
|
|
2532
|
-
* Constant used for accessing positioner plugin in NgSelect
|
|
2533
|
-
*/
|
|
2534
|
-
export declare const POSITIONER = "POSITIONER";
|
|
2535
|
-
|
|
2536
|
-
/**
|
|
2537
|
-
* Positioner plugin interface
|
|
2538
|
-
*/
|
|
2539
|
-
export declare interface Positioner extends NgSelectPlugin {
|
|
2540
|
-
}
|
|
2541
|
-
|
|
2542
|
-
/**
|
|
2543
|
-
* Token for injecting options for positioner plugin
|
|
2544
|
-
*/
|
|
2545
|
-
export declare const POSITIONER_OPTIONS: InjectionToken<PositionerOptions>;
|
|
2546
|
-
|
|
2547
|
-
/**
|
|
2548
|
-
* Injection token for 'Positioner' implementation
|
|
2549
|
-
*/
|
|
2550
|
-
export declare const POSITIONER_TYPE: InjectionToken<Type<Positioner>>;
|
|
2551
|
-
|
|
2552
|
-
/**
|
|
2553
|
-
* Options for positioner plugin
|
|
2554
|
-
*/
|
|
2555
|
-
export declare interface PositionerOptions extends PluginOptions {
|
|
2556
|
-
/**
|
|
2557
|
-
* Coordinates of options popup relative to select
|
|
2558
|
-
*/
|
|
2559
|
-
optionsCoordinates?: PositionsCoordinates;
|
|
2560
|
-
/**
|
|
2561
|
-
* Coordinates of select relative to options
|
|
2562
|
-
*/
|
|
2563
|
-
selectCoordinates?: PositionsCoordinates;
|
|
2564
|
-
}
|
|
2565
|
-
|
|
2566
|
-
/**
|
|
2567
|
-
* Constant used for accessing readonly state plugin in NgSelect
|
|
2568
|
-
*/
|
|
2569
|
-
export declare const READONLY_STATE = "READONLY_STATE";
|
|
2570
|
-
|
|
2571
|
-
/**
|
|
2572
|
-
* Token for injecting options for readonly state plugin
|
|
2573
|
-
*/
|
|
2574
|
-
export declare const READONLY_STATE_OPTIONS: InjectionToken<ReadonlyStateOptions>;
|
|
2575
|
-
|
|
2576
|
-
/**
|
|
2577
|
-
* Injection token for 'ReadonlyState' implementation
|
|
2578
|
-
*/
|
|
2579
|
-
export declare const READONLY_STATE_TYPE: InjectionToken<Type<ReadonlyState>>;
|
|
2580
|
-
|
|
2581
|
-
/**
|
|
2582
|
-
* Readonly state plugin interface
|
|
2583
|
-
*/
|
|
2584
|
-
export declare interface ReadonlyState extends NormalState {
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
|
-
/**
|
|
2588
|
-
* Options for readonly state plugin
|
|
2589
|
-
*/
|
|
2590
|
-
export declare interface ReadonlyStateOptions<TCssClasses = any> extends NormalStateOptions<TCssClasses> {
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
/**
|
|
2594
|
-
* Scroll target selector that is used for obtaining scroll target
|
|
2595
|
-
*/
|
|
2596
|
-
export declare class ScrollTargetSelector {
|
|
2597
|
-
/**
|
|
2598
|
-
* Callback used for getting scroll target for scrolling
|
|
2599
|
-
*/
|
|
2600
|
-
private _scrollTargetCallback;
|
|
2601
|
-
/**
|
|
2602
|
-
* Gets scroll target that is used for scrolling
|
|
2603
|
-
*/
|
|
2604
|
-
get scrollTarget(): EventTarget;
|
|
2605
|
-
/**
|
|
2606
|
-
* Sets callback used for obtaining scroll target
|
|
2607
|
-
* @param callback - Callback that is used for obtaining scroll target element
|
|
2608
|
-
*/
|
|
2609
|
-
setScrollTarget(callback: () => EventTarget): void;
|
|
2610
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollTargetSelector, never>;
|
|
2611
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollTargetSelector>;
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
|
-
/**
|
|
2615
|
-
* Gatherer used for obtaining templates for NgSelect plugins
|
|
2616
|
-
*/
|
|
2617
|
-
export declare interface TemplateGatherer {
|
|
2618
|
-
/**
|
|
2619
|
-
* Template used within normal state
|
|
2620
|
-
*/
|
|
2621
|
-
readonly normalStateTemplate: TemplateRef<NormalStateContext>;
|
|
2622
|
-
/**
|
|
2623
|
-
* Template that is used within Popup as option
|
|
2624
|
-
*/
|
|
2625
|
-
readonly optionTemplate?: TemplateRef<PopupContext>;
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
/**
|
|
2629
|
-
* Constant used for accessing value handler plugin in NgSelect
|
|
2630
|
-
*/
|
|
2631
|
-
export declare const VALUE_HANDLER = "VALUE_HANDLER";
|
|
2632
|
-
|
|
2633
|
-
/**
|
|
2634
|
-
* Token for injecting options for value handler plugin
|
|
2635
|
-
*/
|
|
2636
|
-
export declare const VALUE_HANDLER_OPTIONS: InjectionToken<ValueHandlerOptions>;
|
|
2637
|
-
|
|
2638
|
-
/**
|
|
2639
|
-
* Injection token for 'ValueHandler' implementation
|
|
2640
|
-
*/
|
|
2641
|
-
export declare const VALUE_HANDLER_TYPE: InjectionToken<Type<ValueHandler>>;
|
|
2642
|
-
|
|
2643
|
-
/**
|
|
2644
|
-
* Value handler plugin interface
|
|
2645
|
-
*/
|
|
2646
|
-
export declare interface ValueHandler<TValue = any> extends NgSelectPlugin {
|
|
2647
|
-
/**
|
|
2648
|
-
* Current selected options of NgSelect
|
|
2649
|
-
*/
|
|
2650
|
-
readonly selectedOptions: NgSelectOption<TValue> | NgSelectOption<TValue>[];
|
|
2651
|
-
/**
|
|
2652
|
-
* Current selected value of NgSelect
|
|
2653
|
-
*/
|
|
2654
|
-
readonly value: TValue | TValue[];
|
|
2655
|
-
/**
|
|
2656
|
-
* Occurs when value of NgSelect changes
|
|
2657
|
-
*/
|
|
2658
|
-
readonly valueChange: EventEmitter<void>;
|
|
2659
|
-
/**
|
|
2660
|
-
* Sets value for NgSelect
|
|
2661
|
-
* @param value - Value to be set
|
|
2662
|
-
*/
|
|
2663
|
-
setValue(value: TValue | TValue[]): void;
|
|
2664
|
-
}
|
|
2665
|
-
|
|
2666
|
-
/**
|
|
2667
|
-
* Base class for value handlers
|
|
2668
|
-
*/
|
|
2669
|
-
export declare abstract class ValueHandlerBase<TValue = any, TOptions extends ValueHandlerOptions = any> implements ValueHandler<TValue>, NgSelectPlugin<TOptions, TValue>, OnDestroy {
|
|
2670
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
2671
|
-
pluginElement: ElementRef;
|
|
2672
|
-
pluginBus: PluginBus<TValue>;
|
|
2673
|
-
/**
|
|
2674
|
-
* Options for NgSelect plugin
|
|
2675
|
-
*/
|
|
2676
|
-
protected _options: TOptions;
|
|
2677
|
-
/**
|
|
2678
|
-
* Normal state that is used
|
|
2679
|
-
*/
|
|
2680
|
-
protected _normalState: NormalState;
|
|
2681
|
-
/**
|
|
2682
|
-
* Subscription for option selection
|
|
2683
|
-
*/
|
|
2684
|
-
protected _optionSelectSubscription: Subscription;
|
|
2685
|
-
/**
|
|
2686
|
-
* Subscription for option cancelation
|
|
2687
|
-
*/
|
|
2688
|
-
protected _optionCancelSubscription: Subscription;
|
|
2689
|
-
/**
|
|
2690
|
-
* Subscription for changes of options in options gatherer
|
|
2691
|
-
*/
|
|
2692
|
-
protected _optionsChangeSubscription: Subscription;
|
|
2693
|
-
/**
|
|
2694
|
-
* Instance of previous options gatherer, that is used for obtaining available options
|
|
2695
|
-
*/
|
|
2696
|
-
protected _optionsGatherer: OptionsGatherer<TValue>;
|
|
2697
|
-
/**
|
|
2698
|
-
* Options for NgSelect plugin
|
|
2699
|
-
*/
|
|
2700
|
-
abstract options: TOptions;
|
|
2701
|
-
/**
|
|
2702
|
-
* Occurs when value of NgSelect changes
|
|
2703
|
-
*/
|
|
2704
|
-
valueChange: EventEmitter<void>;
|
|
2705
|
-
/**
|
|
2706
|
-
* Current value of NgSelect
|
|
2707
|
-
*/
|
|
2708
|
-
selectedOptions: NgSelectOption<TValue> | NgSelectOption<TValue>[];
|
|
2709
|
-
/**
|
|
2710
|
-
* Current selected value of NgSelect
|
|
2711
|
-
*/
|
|
2712
|
-
get value(): TValue | TValue[];
|
|
2713
|
-
/**
|
|
2714
|
-
* Function of value comparer that is used for comparison of values
|
|
2715
|
-
*/
|
|
2716
|
-
protected get valueComparer(): CompareValueFunc<TValue>;
|
|
2717
|
-
/**
|
|
2718
|
-
* Method that is used for filtering when live search is running on static data
|
|
2719
|
-
*/
|
|
2720
|
-
protected get liveSearchFilter(): LiveSearchFilter<TValue>;
|
|
2721
|
-
/**
|
|
2722
|
-
* Normalizer used for normalizing values
|
|
2723
|
-
*/
|
|
2724
|
-
protected get normalizer(): NormalizeFunc<TValue>;
|
|
2725
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginElement: ElementRef, pluginBus: PluginBus<TValue>);
|
|
2726
|
-
/**
|
|
2727
|
-
* Called when component is destroyed
|
|
2728
|
-
*/
|
|
2729
|
-
ngOnDestroy(): void;
|
|
2730
|
-
/**
|
|
2731
|
-
* Sets value for NgSelect
|
|
2732
|
-
* @param value - Value to be set
|
|
2733
|
-
*/
|
|
2734
|
-
abstract setValue(value: TValue | TValue[]): void;
|
|
2735
|
-
/**
|
|
2736
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
2737
|
-
*/
|
|
2738
|
-
initialize(): void;
|
|
2739
|
-
/**
|
|
2740
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
2741
|
-
*/
|
|
2742
|
-
initOptions(): void;
|
|
2743
|
-
/**
|
|
2744
|
-
* Explicitly runs invalidation of content (change detection)
|
|
2745
|
-
*/
|
|
2746
|
-
invalidateVisuals(): void;
|
|
2747
|
-
/**
|
|
2748
|
-
* Sets value
|
|
2749
|
-
*/
|
|
2750
|
-
protected abstract _setValue: (option: ɵNgSelectOption<TValue>) => void;
|
|
2751
|
-
/**
|
|
2752
|
-
* Cancels, removes option from selected options
|
|
2753
|
-
* @param option - Option to be canceled
|
|
2754
|
-
*/
|
|
2755
|
-
protected _cancelValue: (option: ɵNgSelectOption<TValue>) => void;
|
|
2756
|
-
/**
|
|
2757
|
-
* Clears all selected values
|
|
2758
|
-
*/
|
|
2759
|
-
protected _clearSelected(): void;
|
|
2760
|
-
/**
|
|
2761
|
-
* Marks current value as selected
|
|
2762
|
-
*/
|
|
2763
|
-
protected _markValueAsSelected(): void;
|
|
2764
|
-
/**
|
|
2765
|
-
* Loads options
|
|
2766
|
-
*/
|
|
2767
|
-
protected abstract _loadOptions(): void;
|
|
2768
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ValueHandlerBase<any, any>, never>;
|
|
2769
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueHandlerBase<any, any>, never, never, {}, {}, never>;
|
|
2770
|
-
}
|
|
2771
|
-
|
|
2772
|
-
/**
|
|
2773
|
-
* Options for value handler plugin
|
|
2774
|
-
*/
|
|
2775
|
-
export declare interface ValueHandlerOptions extends PluginOptions {
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
/**
|
|
2779
|
-
* Base options for every visual plugin (component)
|
|
2780
|
-
*/
|
|
2781
|
-
export declare interface VisualPluginOptions<TCssClasses = any> extends PluginOptions {
|
|
2782
|
-
/**
|
|
2783
|
-
* Css classes applied to visual plugin (component), possible to override only part of classes
|
|
2784
|
-
*/
|
|
2785
|
-
cssClasses?: TCssClasses;
|
|
2786
|
-
}
|
|
2787
|
-
|
|
2788
|
-
/**
|
|
2789
|
-
* Option for ng select
|
|
2790
|
-
*/
|
|
2791
|
-
export declare interface ɵNgSelectOption<TValue = any> extends NgSelectOption<TValue> {
|
|
2792
|
-
/**
|
|
2793
|
-
* Indication whether is item active
|
|
2794
|
-
*/
|
|
2795
|
-
active?: boolean;
|
|
2796
|
-
/**
|
|
2797
|
-
* Indication whether is this option selected
|
|
2798
|
-
*/
|
|
2799
|
-
selected?: boolean;
|
|
2800
|
-
}
|
|
2801
|
-
|
|
2802
|
-
export { }
|