@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
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ɵGetValue as getValue } from '@anglr/select';
|
|
2
|
-
import { NgSelectAction } from '@anglr/select';
|
|
3
|
-
import { NgSelectOptions } from '@anglr/select';
|
|
4
|
-
import { ɵOnFocus as onFocus } from '@anglr/select';
|
|
5
|
-
import { ɵSetReadonly as setReadonly } from '@anglr/select';
|
|
6
|
-
import { ɵSetValue as setValue } from '@anglr/select';
|
|
7
|
-
import { ɵValueChange as valueChange } from '@anglr/select';
|
|
8
|
-
|
|
9
|
-
export { getValue }
|
|
10
|
-
|
|
11
|
-
export { onFocus }
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Method used to patch options without full initialization of NgSelect, only options are initialized
|
|
15
|
-
* @param options - Options to be used as patch
|
|
16
|
-
*/
|
|
17
|
-
export declare function patchOptions<TValue = any>(options: NgSelectOptions<TValue>): NgSelectAction<TValue>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Method reinitialize options for NgSelect
|
|
21
|
-
* @param options - Options to be used for reinitialization
|
|
22
|
-
*/
|
|
23
|
-
export declare function reinitializeOptions<TValue = any>(options?: NgSelectOptions<TValue>): NgSelectAction<TValue>;
|
|
24
|
-
|
|
25
|
-
export { setReadonly }
|
|
26
|
-
|
|
27
|
-
export { setValue }
|
|
28
|
-
|
|
29
|
-
export { valueChange }
|
|
30
|
-
|
|
31
|
-
export { }
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
## API Report File for "@anglr/select-extensions"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { ɵGetValue as getValue } from '@anglr/select';
|
|
8
|
-
import { NgSelectAction } from '@anglr/select';
|
|
9
|
-
import { NgSelectOptions } from '@anglr/select';
|
|
10
|
-
import { ɵOnFocus as onFocus } from '@anglr/select';
|
|
11
|
-
import { ɵSetReadonly as setReadonly } from '@anglr/select';
|
|
12
|
-
import { ɵSetValue as setValue } from '@anglr/select';
|
|
13
|
-
import { ɵValueChange as valueChange } from '@anglr/select';
|
|
14
|
-
|
|
15
|
-
export { getValue }
|
|
16
|
-
|
|
17
|
-
export { onFocus }
|
|
18
|
-
|
|
19
|
-
// @public
|
|
20
|
-
export function patchOptions<TValue = any>(options: NgSelectOptions<TValue>): NgSelectAction<TValue>;
|
|
21
|
-
|
|
22
|
-
// @public
|
|
23
|
-
export function reinitializeOptions<TValue = any>(options?: NgSelectOptions<TValue>): NgSelectAction<TValue>;
|
|
24
|
-
|
|
25
|
-
export { setReadonly }
|
|
26
|
-
|
|
27
|
-
export { setValue }
|
|
28
|
-
|
|
29
|
-
export { valueChange }
|
|
30
|
-
|
|
31
|
-
// (No @packageDocumentation comment for this package)
|
|
32
|
-
|
|
33
|
-
```
|
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import { ComponentType } from '@angular/cdk/portal';
|
|
4
|
-
import { EditPopupComponent } from '@anglr/select';
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
|
-
import * as i0 from '@angular/core';
|
|
8
|
-
import * as i3_2 from '@angular/cdk/scrolling';
|
|
9
|
-
import * as i4 from '@angular/common';
|
|
10
|
-
import * as i5 from '@angular/material/dialog';
|
|
11
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
12
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
13
|
-
import { NgSelectComponent } from '@anglr/select';
|
|
14
|
-
import { NgSelectPlugin } from '@anglr/select';
|
|
15
|
-
import { NgSelectPluginInstances } from '@anglr/select';
|
|
16
|
-
import { OnChanges } from '@angular/core';
|
|
17
|
-
import { OnDestroy } from '@angular/core';
|
|
18
|
-
import { OnInit } from '@angular/core';
|
|
19
|
-
import { OptionsGatherer } from '@anglr/select';
|
|
20
|
-
import { PluginBus } from '@anglr/select';
|
|
21
|
-
import { Popup } from '@anglr/select';
|
|
22
|
-
import { PopupOptions } from '@anglr/select';
|
|
23
|
-
import { SimpleChanges } from '@angular/core';
|
|
24
|
-
import { Subscription } from 'rxjs';
|
|
25
|
-
import { VisualPluginOptions } from '@anglr/select';
|
|
26
|
-
import { ɵNgSelectOption } from '@anglr/select';
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Basic dialog popup
|
|
30
|
-
*/
|
|
31
|
-
export declare class BasicDialogPopupComponent<TValue = any> implements DialogPopupContentComponent<BasicDialogPopupOptions, TValue, CssClassesBasicDialogPopup>, OnInit, OnDestroy {
|
|
32
|
-
dialog: MatDialogRef<BasicDialogPopupComponent<TValue>>;
|
|
33
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
34
|
-
data: DialogPopupComponentData<BasicDialogPopupOptions, TValue, CssClassesBasicDialogPopup>;
|
|
35
|
-
/**
|
|
36
|
-
* Subscription for available options change
|
|
37
|
-
*/
|
|
38
|
-
protected _optionsChangeSubscription: Subscription;
|
|
39
|
-
/**
|
|
40
|
-
* Instance of options gatherer, that is used for obtaining available options
|
|
41
|
-
*/
|
|
42
|
-
protected _optionsGatherer: OptionsGatherer<TValue>;
|
|
43
|
-
/**
|
|
44
|
-
* Options for NgSelect plugin
|
|
45
|
-
*/
|
|
46
|
-
options: BasicDialogPopupOptions;
|
|
47
|
-
/**
|
|
48
|
-
* Array of provided options for select
|
|
49
|
-
*/
|
|
50
|
-
selectOptions: ɵNgSelectOption<TValue>[];
|
|
51
|
-
constructor(dialog: MatDialogRef<BasicDialogPopupComponent<TValue>>, _changeDetector: ChangeDetectorRef, data: DialogPopupComponentData<BasicDialogPopupOptions, TValue, CssClassesBasicDialogPopup>);
|
|
52
|
-
/**
|
|
53
|
-
* Initialize component
|
|
54
|
-
*/
|
|
55
|
-
ngOnInit(): void;
|
|
56
|
-
/**
|
|
57
|
-
* Called when component is destroyed
|
|
58
|
-
*/
|
|
59
|
-
ngOnDestroy(): void;
|
|
60
|
-
/**
|
|
61
|
-
* Explicitly runs invalidation of content (change detection)
|
|
62
|
-
*/
|
|
63
|
-
invalidateVisuals(): void;
|
|
64
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BasicDialogPopupComponent<any>, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BasicDialogPopupComponent<any>, "ng-select-basic-dialog-popup", never, {}, {}, never, never>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Basic dialog popup options
|
|
70
|
-
*/
|
|
71
|
-
export declare interface BasicDialogPopupOptions extends VisualPluginOptions<CssClassesBasicDialogPopup> {
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Css classes for basic dialog popup
|
|
76
|
-
*/
|
|
77
|
-
export declare interface CssClassesBasicDialogPopup {
|
|
78
|
-
/**
|
|
79
|
-
* Css class applied to each option div
|
|
80
|
-
*/
|
|
81
|
-
optionItemDiv?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Css class applied to each option text div
|
|
84
|
-
*/
|
|
85
|
-
optionItemTextDiv?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Css class used as icons indicating that option is selected (only when multiple)
|
|
88
|
-
*/
|
|
89
|
-
optionChecked?: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Css classes for dialog popup
|
|
94
|
-
*/
|
|
95
|
-
export declare interface CssClassesDialogPopup {
|
|
96
|
-
/**
|
|
97
|
-
* Css class applied directly to dialog
|
|
98
|
-
*/
|
|
99
|
-
dialogDiv?: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Css classes for virtual edit popup
|
|
104
|
-
*/
|
|
105
|
-
export declare interface CssClassesVirtualEditPopup {
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Public API for 'DialogPopupComponent'
|
|
110
|
-
*/
|
|
111
|
-
export declare interface DialogPopup extends Popup {
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Component used for rendering basic popup with options
|
|
116
|
-
*/
|
|
117
|
-
export declare class DialogPopupComponent<TComponent extends DialogPopupContentComponent<TDialogOptions, TValue, TCssClasses> = any, TValue = any, TDialogOptions = any, TCssClasses = any> implements DialogPopup, NgSelectPlugin<DialogPopupOptions<TComponent, TDialogOptions, TValue, TCssClasses>, TValue>, OnDestroy {
|
|
118
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
119
|
-
pluginBus: PluginBus<TValue>;
|
|
120
|
-
pluginElement: ElementRef;
|
|
121
|
-
protected _dialog: MatDialog;
|
|
122
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
123
|
-
/**
|
|
124
|
-
* Options for NgSelect plugin
|
|
125
|
-
*/
|
|
126
|
-
protected _options: DialogPopupOptions<TComponent, TDialogOptions, TValue, TCssClasses>;
|
|
127
|
-
/**
|
|
128
|
-
* Subscription for toggle popup event
|
|
129
|
-
*/
|
|
130
|
-
protected _popupToggleSubscription: Subscription;
|
|
131
|
-
/**
|
|
132
|
-
* Subscription for popup visibility change request
|
|
133
|
-
*/
|
|
134
|
-
protected _visibilityRequestSubscription: Subscription;
|
|
135
|
-
/**
|
|
136
|
-
* Component that is used for handling metadata selection itself
|
|
137
|
-
*/
|
|
138
|
-
protected _dialogComponent?: ComponentType<TComponent>;
|
|
139
|
-
/**
|
|
140
|
-
* Popup dialog reference
|
|
141
|
-
*/
|
|
142
|
-
protected _dialogRef?: MatDialogRef<TComponent>;
|
|
143
|
-
/**
|
|
144
|
-
* Options for NgSelect plugin
|
|
145
|
-
*/
|
|
146
|
-
get options(): DialogPopupOptions<TComponent, TDialogOptions, TValue, TCssClasses>;
|
|
147
|
-
set options(options: DialogPopupOptions<TComponent, TDialogOptions, TValue, TCssClasses>);
|
|
148
|
-
/**
|
|
149
|
-
* Occurs when visibility of popup has changed
|
|
150
|
-
*/
|
|
151
|
-
visibilityChange: EventEmitter<void>;
|
|
152
|
-
/**
|
|
153
|
-
* Html element that represents popup itself
|
|
154
|
-
*/
|
|
155
|
-
get popupElement(): HTMLElement;
|
|
156
|
-
|
|
157
|
-
constructor(ngSelectPlugins: NgSelectPluginInstances, pluginBus: PluginBus<TValue>, pluginElement: ElementRef, _dialog: MatDialog, _changeDetector: ChangeDetectorRef, options?: DialogPopupOptions<TComponent, TDialogOptions, TValue, TCssClasses>);
|
|
158
|
-
/**
|
|
159
|
-
* Called when component is destroyed
|
|
160
|
-
*/
|
|
161
|
-
ngOnDestroy(): void;
|
|
162
|
-
/**
|
|
163
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
164
|
-
*/
|
|
165
|
-
initialize(): void;
|
|
166
|
-
/**
|
|
167
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
168
|
-
*/
|
|
169
|
-
initOptions(): void;
|
|
170
|
-
/**
|
|
171
|
-
* Explicitly runs invalidation of content (change detection)
|
|
172
|
-
*/
|
|
173
|
-
invalidateVisuals(): void;
|
|
174
|
-
/**
|
|
175
|
-
* Toggles dialog visibility
|
|
176
|
-
*/
|
|
177
|
-
protected toggleDialog(): void;
|
|
178
|
-
/**
|
|
179
|
-
* Handles dialog visibility change
|
|
180
|
-
*/
|
|
181
|
-
protected _handleDialog: (visible: boolean) => void;
|
|
182
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogPopupComponent<any, any, any, any>, [{ optional: true; }, { optional: true; }, null, null, null, { optional: true; }]>;
|
|
183
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogPopupComponent<any, any, any, any>, "div.ng-select-dialog-popup", never, {}, {}, never, never>;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Data that are passed to component that displays popup
|
|
188
|
-
*/
|
|
189
|
-
export declare interface DialogPopupComponentData<TOptions extends VisualPluginOptions<TCssClasses> = any, TValue = any, TCssClasses = any> {
|
|
190
|
-
/**
|
|
191
|
-
* NgSelect plugin instances available for this plugin
|
|
192
|
-
*/
|
|
193
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
194
|
-
/**
|
|
195
|
-
* Plugin bus used in select
|
|
196
|
-
*/
|
|
197
|
-
pluginBus: PluginBus<TValue>;
|
|
198
|
-
/**
|
|
199
|
-
* Dialogs popup options
|
|
200
|
-
*/
|
|
201
|
-
options: TOptions;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Component that is rendered within dialog and represents popup
|
|
206
|
-
*/
|
|
207
|
-
export declare interface DialogPopupContentComponent<TOptions = any, TValue = any, TCssClasses = any> {
|
|
208
|
-
/**
|
|
209
|
-
* Data that are used for communication with Popup
|
|
210
|
-
*/
|
|
211
|
-
data: DialogPopupComponentData<TOptions, TValue, TCssClasses>;
|
|
212
|
-
/**
|
|
213
|
-
* Explicitly runs invalidation of content (change detection)
|
|
214
|
-
*/
|
|
215
|
-
invalidateVisuals(): void;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Directive that changes ng select popup to DialogPopup
|
|
220
|
-
*/
|
|
221
|
-
export declare class DialogPopupDirective implements OnChanges {
|
|
222
|
-
protected _select: NgSelectComponent;
|
|
223
|
-
/**
|
|
224
|
-
* Popup type that will be used
|
|
225
|
-
*/
|
|
226
|
-
popupType: ComponentType<DialogPopupContentComponent>;
|
|
227
|
-
/**
|
|
228
|
-
* Dialog popup options
|
|
229
|
-
*/
|
|
230
|
-
dialogPopupOptions: VisualPluginOptions;
|
|
231
|
-
constructor(_select: NgSelectComponent);
|
|
232
|
-
/**
|
|
233
|
-
* Called when input value changes
|
|
234
|
-
*/
|
|
235
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
236
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogPopupDirective, never>;
|
|
237
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DialogPopupDirective, "ng-select[dialogPopup]", never, { "popupType": "dialogPopup"; "dialogPopupOptions": "dialogPopupOptions"; }, {}, never>;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Dialog popup options
|
|
242
|
-
*/
|
|
243
|
-
export declare interface DialogPopupOptions<TComponent extends DialogPopupContentComponent<TOptions, TValue, TCssClasses> = any, TOptions = any, TValue = any, TCssClasses = any> extends PopupOptions<CssClassesDialogPopup> {
|
|
244
|
-
/**
|
|
245
|
-
* Component that is used to show popup content in dialog
|
|
246
|
-
*/
|
|
247
|
-
dialogComponent?: ComponentType<TComponent>;
|
|
248
|
-
/**
|
|
249
|
-
* Options passed to dialog component
|
|
250
|
-
*/
|
|
251
|
-
dialogOptions?: TOptions;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
declare namespace i1 {
|
|
255
|
-
export {
|
|
256
|
-
DialogPopupComponent
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
declare namespace i1_2 {
|
|
261
|
-
export {
|
|
262
|
-
VirtualEditPopupComponent
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
declare namespace i2 {
|
|
267
|
-
export {
|
|
268
|
-
BasicDialogPopupComponent
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
declare namespace i3 {
|
|
273
|
-
export {
|
|
274
|
-
DialogPopupDirective
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Module allows using of angular material dialog for select popup
|
|
280
|
-
*/
|
|
281
|
-
export declare class NgSelectDialogPopupModule {
|
|
282
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectDialogPopupModule, never>;
|
|
283
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgSelectDialogPopupModule, [typeof i1.DialogPopupComponent, typeof i2.BasicDialogPopupComponent, typeof i3.DialogPopupDirective], [typeof i4.CommonModule, typeof i5.MatDialogModule], [typeof i1.DialogPopupComponent, typeof i2.BasicDialogPopupComponent, typeof i3.DialogPopupDirective]>;
|
|
284
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgSelectDialogPopupModule>;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Public API for 'VirtualEditPopupComponent'
|
|
289
|
-
*/
|
|
290
|
-
export declare interface VirtualEditPopup extends Popup {
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Component used for rendering virtual edit popup with options
|
|
295
|
-
*/
|
|
296
|
-
export declare class VirtualEditPopupComponent extends EditPopupComponent implements VirtualEditPopup, NgSelectPlugin<VirtualEditPopupOptions> {
|
|
297
|
-
/**
|
|
298
|
-
* Currently stored max width of displayed popup
|
|
299
|
-
*/
|
|
300
|
-
protected _maxWidth: number;
|
|
301
|
-
/**
|
|
302
|
-
* View port that is used for virtual scrolling
|
|
303
|
-
*/
|
|
304
|
-
viewPort: CdkVirtualScrollViewport;
|
|
305
|
-
/**
|
|
306
|
-
* Gets currently available options
|
|
307
|
-
*/
|
|
308
|
-
protected get availableOptions(): ɵNgSelectOption[];
|
|
309
|
-
invalidateVisuals(): void;
|
|
310
|
-
/**
|
|
311
|
-
* Toggles popup visibility
|
|
312
|
-
*/
|
|
313
|
-
protected togglePopup(): void;
|
|
314
|
-
private _scrollToOption;
|
|
315
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VirtualEditPopupComponent, never>;
|
|
316
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VirtualEditPopupComponent, "div.ng-select-virtual-edit-popup", never, {}, {}, never, never>;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Module for VirtualEditPopup components, can also by used for non edit version
|
|
321
|
-
*/
|
|
322
|
-
export declare class VirtualEditPopupModule {
|
|
323
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VirtualEditPopupModule, never>;
|
|
324
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VirtualEditPopupModule, [typeof i1_2.VirtualEditPopupComponent], [typeof i4.CommonModule, typeof i3_2.ScrollingModule], [typeof i1_2.VirtualEditPopupComponent]>;
|
|
325
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VirtualEditPopupModule>;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* Virtual edit popup options
|
|
330
|
-
*/
|
|
331
|
-
export declare interface VirtualEditPopupOptions extends PopupOptions<CssClassesVirtualEditPopup> {
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export { }
|