ng-select2-component 12.0.0 → 13.0.0
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 +19 -0
- package/README.md +34 -15
- package/esm2022/lib/select2-const.mjs +47 -47
- package/esm2022/lib/select2-hint.component.mjs +10 -10
- package/esm2022/lib/select2-interfaces.mjs +2 -2
- package/esm2022/lib/select2-label.component.mjs +10 -10
- package/esm2022/lib/select2-utils.mjs +279 -279
- package/esm2022/lib/select2.component.mjs +868 -900
- package/esm2022/lib/select2.module.mjs +22 -22
- package/esm2022/ng-select2-component.mjs +4 -4
- package/esm2022/public_api.mjs +11 -11
- package/fesm2022/ng-select2-component.mjs +1210 -1241
- package/fesm2022/ng-select2-component.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/select2-const.d.ts +7 -7
- package/lib/select2-hint.component.d.ts +5 -5
- package/lib/select2-interfaces.d.ts +72 -54
- package/lib/select2-interfaces.d.ts.map +1 -1
- package/lib/select2-label.component.d.ts +5 -5
- package/lib/select2-utils.d.ts +24 -24
- package/lib/select2.component.d.ts +234 -235
- package/lib/select2.component.d.ts.map +1 -1
- package/lib/select2.module.d.ts +13 -13
- package/package.json +4 -4
- package/public_api.d.ts +8 -8
|
@@ -1,236 +1,235 @@
|
|
|
1
|
-
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
2
|
-
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
3
|
-
import { AfterViewInit, ChangeDetectorRef, DoCheck, EventEmitter,
|
|
4
|
-
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
5
|
-
import { Select2Data, Select2Group, Select2Option, Select2RemoveEvent, Select2ScrollEvent, Select2SearchEvent, Select2UpdateEvent, Select2UpdateValue } from './select2-interfaces';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class Select2 implements ControlValueAccessor, OnInit,
|
|
8
|
-
protected _viewportRuler: ViewportRuler;
|
|
9
|
-
private _changeDetectorRef;
|
|
10
|
-
private _parentForm;
|
|
11
|
-
private _parentFormGroup;
|
|
12
|
-
_control: NgControl;
|
|
13
|
-
_data: Select2Data;
|
|
14
|
-
/** data of options & optiongrps */
|
|
15
|
-
set data(data: Select2Data);
|
|
16
|
-
minCharForSearch: number;
|
|
17
|
-
displaySearchStatus: 'default' | 'hidden' | 'always';
|
|
18
|
-
placeholder: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
|
|
31
|
-
/** maximum results
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
/** infinite scroll distance */
|
|
36
|
-
|
|
37
|
-
/** infinite scroll
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
get
|
|
73
|
-
set
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
get
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
get
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
get
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
private
|
|
112
|
-
private
|
|
113
|
-
private
|
|
114
|
-
private
|
|
115
|
-
private
|
|
116
|
-
private
|
|
117
|
-
private
|
|
118
|
-
|
|
119
|
-
private
|
|
120
|
-
private
|
|
121
|
-
private
|
|
122
|
-
private
|
|
123
|
-
private
|
|
124
|
-
|
|
125
|
-
private
|
|
126
|
-
private
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
private
|
|
131
|
-
|
|
132
|
-
private
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
*
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Sets
|
|
207
|
-
*
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
private
|
|
214
|
-
private
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
static
|
|
234
|
-
|
|
235
|
-
}
|
|
1
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
2
|
+
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
3
|
+
import { AfterViewInit, ChangeDetectorRef, DoCheck, EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
5
|
+
import { Select2Data, Select2Group, Select2Option, Select2RemoveEvent, Select2ScrollEvent, Select2SearchEvent, Select2UpdateEvent, Select2UpdateValue } from './select2-interfaces';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, AfterViewInit {
|
|
8
|
+
protected _viewportRuler: ViewportRuler;
|
|
9
|
+
private _changeDetectorRef;
|
|
10
|
+
private _parentForm;
|
|
11
|
+
private _parentFormGroup;
|
|
12
|
+
_control: NgControl;
|
|
13
|
+
_data: Select2Data;
|
|
14
|
+
/** data of options & optiongrps */
|
|
15
|
+
set data(data: Select2Data);
|
|
16
|
+
minCharForSearch: number;
|
|
17
|
+
displaySearchStatus: 'default' | 'hidden' | 'always';
|
|
18
|
+
placeholder: string;
|
|
19
|
+
limitSelection: number;
|
|
20
|
+
listPosition: 'above' | 'below' | 'auto';
|
|
21
|
+
get multiple(): any;
|
|
22
|
+
set multiple(value: any);
|
|
23
|
+
/** use the material style */
|
|
24
|
+
overlay: boolean;
|
|
25
|
+
/** use the material style */
|
|
26
|
+
styleMode: 'material' | 'noStyle' | 'default';
|
|
27
|
+
/** message when no result */
|
|
28
|
+
noResultMessage: string;
|
|
29
|
+
/** maximum results limit (0 = no limit) */
|
|
30
|
+
maxResults: number;
|
|
31
|
+
/** message when maximum results */
|
|
32
|
+
maxResultsMessage: string;
|
|
33
|
+
/** infinite scroll distance */
|
|
34
|
+
infiniteScrollDistance: number;
|
|
35
|
+
/** infinite scroll distance */
|
|
36
|
+
infiniteScrollThrottle: number;
|
|
37
|
+
/** infinite scroll activated */
|
|
38
|
+
infiniteScroll: boolean;
|
|
39
|
+
/** auto create if not existe */
|
|
40
|
+
autoCreate: boolean;
|
|
41
|
+
/** no template for label selection */
|
|
42
|
+
noLabelTemplate: boolean;
|
|
43
|
+
/** use it for change the pattern of the filter search */
|
|
44
|
+
editPattern: (str: string) => string;
|
|
45
|
+
/** template for formating */
|
|
46
|
+
templates: TemplateRef<any> | {
|
|
47
|
+
[key: string]: TemplateRef<any>;
|
|
48
|
+
};
|
|
49
|
+
/** the max height of the results container when opening the select */
|
|
50
|
+
resultMaxHeight: string;
|
|
51
|
+
/** Active Search event */
|
|
52
|
+
customSearchEnabled: boolean;
|
|
53
|
+
/** minimal data of show the search field */
|
|
54
|
+
get minCountForSearch(): number;
|
|
55
|
+
set minCountForSearch(value: number);
|
|
56
|
+
/** Unique id of the element. */
|
|
57
|
+
get id(): string;
|
|
58
|
+
set id(value: string);
|
|
59
|
+
/** Whether the element is required. */
|
|
60
|
+
required: boolean;
|
|
61
|
+
/** Whether selected items should be hidden. */
|
|
62
|
+
get disabled(): boolean;
|
|
63
|
+
set disabled(value: boolean);
|
|
64
|
+
/** Whether items are hidden when has. */
|
|
65
|
+
hideSelectedItems: boolean;
|
|
66
|
+
/** Whether the element is readonly. */
|
|
67
|
+
readonly: boolean;
|
|
68
|
+
/** The input element's value. */
|
|
69
|
+
get value(): Select2UpdateValue;
|
|
70
|
+
set value(value: Select2UpdateValue);
|
|
71
|
+
/** Tab index for the select2 element. */
|
|
72
|
+
get tabIndex(): number;
|
|
73
|
+
set tabIndex(value: number);
|
|
74
|
+
/** reset with no selected value */
|
|
75
|
+
resettable: boolean;
|
|
76
|
+
update: EventEmitter<Select2UpdateEvent<Select2UpdateValue>>;
|
|
77
|
+
open: EventEmitter<Select2>;
|
|
78
|
+
close: EventEmitter<Select2>;
|
|
79
|
+
focus: EventEmitter<Select2>;
|
|
80
|
+
blur: EventEmitter<Select2>;
|
|
81
|
+
search: EventEmitter<Select2SearchEvent<Select2UpdateValue>>;
|
|
82
|
+
scroll: EventEmitter<Select2ScrollEvent>;
|
|
83
|
+
removeOption: EventEmitter<Select2RemoveEvent<Select2UpdateValue>>;
|
|
84
|
+
option: Select2Option | Select2Option[] | null;
|
|
85
|
+
isOpen: boolean;
|
|
86
|
+
searchStyle: string;
|
|
87
|
+
/** Whether the element is focused or not. */
|
|
88
|
+
focused: boolean;
|
|
89
|
+
filteredData: Select2Data;
|
|
90
|
+
get select2Options(): Select2Option[];
|
|
91
|
+
get select2Option(): Select2Option;
|
|
92
|
+
get searchText(): string;
|
|
93
|
+
set searchText(text: string);
|
|
94
|
+
get ariaInvalid(): boolean;
|
|
95
|
+
get classMaterial(): boolean;
|
|
96
|
+
get classNostyle(): boolean;
|
|
97
|
+
get select2above(): boolean;
|
|
98
|
+
overlayWidth: number;
|
|
99
|
+
overlayHeight: number;
|
|
100
|
+
_triggerRect: DOMRect;
|
|
101
|
+
_dropdownRect: DOMRect;
|
|
102
|
+
get _positions(): ConnectedPosition[];
|
|
103
|
+
maxResultsExceeded: boolean;
|
|
104
|
+
private _customSearchEnabled;
|
|
105
|
+
private _minCountForSearch?;
|
|
106
|
+
private cdkConnectedOverlay;
|
|
107
|
+
private selection;
|
|
108
|
+
private resultContainer;
|
|
109
|
+
private results;
|
|
110
|
+
private searchInput;
|
|
111
|
+
private dropdown;
|
|
112
|
+
private hoveringValue;
|
|
113
|
+
private innerSearchText;
|
|
114
|
+
private isSearchboxHidden;
|
|
115
|
+
private selectionElement;
|
|
116
|
+
private get resultsElement();
|
|
117
|
+
private _stateChanges;
|
|
118
|
+
/** Tab index for the element. */
|
|
119
|
+
private _tabIndex;
|
|
120
|
+
private _disabled;
|
|
121
|
+
private _multiple;
|
|
122
|
+
private _id;
|
|
123
|
+
private _uid;
|
|
124
|
+
private _value;
|
|
125
|
+
private _previousNativeValue;
|
|
126
|
+
private _overlayPosition;
|
|
127
|
+
constructor(_viewportRuler: ViewportRuler, _changeDetectorRef: ChangeDetectorRef, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _control: NgControl, tabIndex: string);
|
|
128
|
+
clickDetection(e: MouseEvent): void;
|
|
129
|
+
/** View -> model callback called when select has been touched */
|
|
130
|
+
private _onTouched;
|
|
131
|
+
/** View -> model callback called when value changes */
|
|
132
|
+
private _onChange;
|
|
133
|
+
ngOnInit(): void;
|
|
134
|
+
ngAfterViewInit(): void;
|
|
135
|
+
ngDoCheck(): void;
|
|
136
|
+
updateSearchBox(): void;
|
|
137
|
+
hideSearch(): boolean;
|
|
138
|
+
getOptionStyle(option: Select2Option): string;
|
|
139
|
+
mouseenter(option: Select2Option): void;
|
|
140
|
+
click(option: Select2Option): void;
|
|
141
|
+
reset(event: MouseEvent): void;
|
|
142
|
+
prevChange(event: Event): void;
|
|
143
|
+
stopEvent(event: Event): void;
|
|
144
|
+
toggleOpenAndClose(focus?: boolean, open?: boolean): void;
|
|
145
|
+
hasTemplate(option: Select2Option | Select2Group, defaut: string): boolean;
|
|
146
|
+
getTemplate(option: Select2Option | Select2Group, defaut: string): any;
|
|
147
|
+
triggerRect(): void;
|
|
148
|
+
private testSelection;
|
|
149
|
+
private testValueChange;
|
|
150
|
+
private updateFilteredData;
|
|
151
|
+
private clickExit;
|
|
152
|
+
private ifParentContainsClass;
|
|
153
|
+
private ifParentContainsId;
|
|
154
|
+
private getParentElementByClass;
|
|
155
|
+
private getParentElementById;
|
|
156
|
+
private containClasses;
|
|
157
|
+
focusin(): void;
|
|
158
|
+
focusout(): void;
|
|
159
|
+
select(option: Select2Option | null): void;
|
|
160
|
+
keyDown(e: KeyboardEvent, create?: boolean): void;
|
|
161
|
+
openKey(e: KeyboardEvent, create?: boolean): void;
|
|
162
|
+
searchUpdate(e: Event): void;
|
|
163
|
+
trackBy(_index: number, item: Select2Option): any;
|
|
164
|
+
isSelected(option: Select2Option): "true" | "false";
|
|
165
|
+
isDisabled(option: Select2Option): "true" | "false";
|
|
166
|
+
removeSelection(e: MouseEvent | KeyboardEvent, option: Select2Option): void;
|
|
167
|
+
/**
|
|
168
|
+
* Sets the model value. Implemented as part of ControlValueAccessor.
|
|
169
|
+
* @param value
|
|
170
|
+
*/
|
|
171
|
+
writeValue(value: any): void;
|
|
172
|
+
/**
|
|
173
|
+
* Saves a callback function to be invoked when the select's value
|
|
174
|
+
* changes from user input. Part of the ControlValueAccessor interface
|
|
175
|
+
* required to integrate with Angular's core forms API.
|
|
176
|
+
*
|
|
177
|
+
* @param fn Callback to be triggered when the value changes.
|
|
178
|
+
*/
|
|
179
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
180
|
+
/**
|
|
181
|
+
* Saves a callback function to be invoked when the select is blurred
|
|
182
|
+
* by the user. Part of the ControlValueAccessor interface required
|
|
183
|
+
* to integrate with Angular's core forms API.
|
|
184
|
+
*
|
|
185
|
+
* @param fn Callback to be triggered when the component has been touched.
|
|
186
|
+
*/
|
|
187
|
+
registerOnTouched(fn: () => {}): void;
|
|
188
|
+
/**
|
|
189
|
+
* Sets whether the component should be disabled.
|
|
190
|
+
* Implemented as part of ControlValueAccessor.
|
|
191
|
+
* @param isDisabled
|
|
192
|
+
*/
|
|
193
|
+
setDisabledState(isDisabled: boolean): void;
|
|
194
|
+
onScroll(way: 'up' | 'down'): void;
|
|
195
|
+
_isErrorState(): boolean;
|
|
196
|
+
private addItem;
|
|
197
|
+
private createAndAdd;
|
|
198
|
+
private moveUp;
|
|
199
|
+
private moveDown;
|
|
200
|
+
private updateScrollFromOption;
|
|
201
|
+
private selectByEnter;
|
|
202
|
+
private _testKey;
|
|
203
|
+
private _getKey;
|
|
204
|
+
private _isKey;
|
|
205
|
+
/**
|
|
206
|
+
* Sets the selected option based on a value. If no option can be
|
|
207
|
+
* found with the designated value, the select trigger is cleared.
|
|
208
|
+
*/
|
|
209
|
+
private _setSelectionByValue;
|
|
210
|
+
/** Does some manual dirty checking on the native input `value` property. */
|
|
211
|
+
private _dirtyCheckNativeValue;
|
|
212
|
+
private _focusSearchboxOrResultsElement;
|
|
213
|
+
private _focus;
|
|
214
|
+
private _isAbobeOverlay;
|
|
215
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Select2, [null, null, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { attribute: "tabindex"; }]>;
|
|
216
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Select2, "select2", never, { "data": { "alias": "data"; "required": true; }; "minCharForSearch": { "alias": "minCharForSearch"; "required": false; }; "displaySearchStatus": { "alias": "displaySearchStatus"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "limitSelection": { "alias": "limitSelection"; "required": false; }; "listPosition": { "alias": "listPosition"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "overlay": { "alias": "overlay"; "required": false; }; "styleMode": { "alias": "styleMode"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "maxResults": { "alias": "maxResults"; "required": false; }; "maxResultsMessage": { "alias": "maxResultsMessage"; "required": false; }; "infiniteScrollDistance": { "alias": "infiniteScrollDistance"; "required": false; }; "infiniteScrollThrottle": { "alias": "infiniteScrollThrottle"; "required": false; }; "infiniteScroll": { "alias": "infiniteScroll"; "required": false; }; "autoCreate": { "alias": "autoCreate"; "required": false; }; "noLabelTemplate": { "alias": "noLabelTemplate"; "required": false; }; "editPattern": { "alias": "editPattern"; "required": false; }; "templates": { "alias": "templates"; "required": false; }; "resultMaxHeight": { "alias": "resultMaxHeight"; "required": false; }; "customSearchEnabled": { "alias": "customSearchEnabled"; "required": false; }; "minCountForSearch": { "alias": "minCountForSearch"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideSelectedItems": { "alias": "hideSelectedItems"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "resettable": { "alias": "resettable"; "required": false; }; }, { "update": "update"; "open": "open"; "close": "close"; "focus": "focus"; "blur": "blur"; "search": "search"; "scroll": "scroll"; "removeOption": "removeOption"; }, never, ["select2-label", "select2-hint"], false, never>;
|
|
217
|
+
static ngAcceptInputType_minCharForSearch: unknown;
|
|
218
|
+
static ngAcceptInputType_limitSelection: unknown;
|
|
219
|
+
static ngAcceptInputType_overlay: unknown;
|
|
220
|
+
static ngAcceptInputType_maxResults: unknown;
|
|
221
|
+
static ngAcceptInputType_infiniteScrollDistance: unknown;
|
|
222
|
+
static ngAcceptInputType_infiniteScrollThrottle: unknown;
|
|
223
|
+
static ngAcceptInputType_infiniteScroll: unknown;
|
|
224
|
+
static ngAcceptInputType_autoCreate: unknown;
|
|
225
|
+
static ngAcceptInputType_noLabelTemplate: unknown;
|
|
226
|
+
static ngAcceptInputType_customSearchEnabled: unknown;
|
|
227
|
+
static ngAcceptInputType_minCountForSearch: unknown;
|
|
228
|
+
static ngAcceptInputType_required: unknown;
|
|
229
|
+
static ngAcceptInputType_disabled: unknown;
|
|
230
|
+
static ngAcceptInputType_hideSelectedItems: unknown;
|
|
231
|
+
static ngAcceptInputType_readonly: unknown;
|
|
232
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
233
|
+
static ngAcceptInputType_resettable: unknown;
|
|
234
|
+
}
|
|
236
235
|
//# sourceMappingURL=select2.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select2.component.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,iBAAiB,EAEpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EACH,aAAa,EAEb,iBAAiB,EAEjB,OAAO,EACP,YAAY,
|
|
1
|
+
{"version":3,"file":"select2.component.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,iBAAiB,EAEpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EACH,aAAa,EAEb,iBAAiB,EAEjB,OAAO,EACP,YAAY,EAIZ,MAAM,EAIN,WAAW,EAKd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAK7F,OAAO,EACH,WAAW,EACX,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAErB,MAAM,sBAAsB,CAAC;;AAO9B,qBAKa,OAAQ,YAAW,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;IAwO5E,SAAS,CAAC,cAAc,EAAE,aAAa;IACvC,OAAO,CAAC,kBAAkB;IACd,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,gBAAgB;IACT,QAAQ,EAAE,SAAS;IA3OlD,KAAK,EAAE,WAAW,CAAC;IAEnB,mCAAmC;IACnC,IAA+B,IAAI,CAAC,IAAI,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AE,OAAO;IAIpC,QAAQ,CAAC,GAAG,EAAE,IAAI,GAAG,MAAM;IAS3B,aAAa,IAAI,OAAO;IAOxB,OAAO,CAAC,OAAO;IAYf,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,sBAAsB;IAa9B,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,OAAO;IAgBf,OAAO,CAAC,MAAM;IAId;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAwB5B,4EAA4E;IAC5E,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,+BAA+B;IAYvC,OAAO,CAAC,MAAM;IAUd,OAAO,CAAC,eAAe;yCA52Bd,OAAO;2CAAP,OAAO;+CAk3B0zkL,OAAQ;6CAAR,OAAQ;sCAvRl0kL,OAAQ;yCAuRkzkL,OAAQ;qDAAR,OAAQ;qDAAR,OAAQ;6CAvRl0kL,OAAQ;yCAAR,OAAQ;8CAAR,OAAQ;kDAAR,OAAQ;gDAuRkzkL,OAAQ;uCAvRl0kL,OAAQ;uCAAR,OAAQ;gDAAR,OAAQ;uCAAR,OAAQ;uCAuRkzkL,OAAQ;yCAvRl0kL,OAAQ;CAsR3B"}
|
package/lib/select2.module.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./select2-hint.component";
|
|
3
|
-
import * as i2 from "./select2-label.component";
|
|
4
|
-
import * as i3 from "./select2.component";
|
|
5
|
-
import * as i4 from "@angular/common";
|
|
6
|
-
import * as i5 from "@angular/forms";
|
|
7
|
-
import * as i6 from "@angular/cdk/overlay";
|
|
8
|
-
import * as i7 from "ngx-infinite-scroll";
|
|
9
|
-
export declare class Select2Module {
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Select2Module, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<Select2Module, [typeof i1.Select2Hint, typeof i2.Select2Label, typeof i3.Select2], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.OverlayModule, typeof i5.ReactiveFormsModule, typeof i7.InfiniteScrollModule], [typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i1.Select2Hint, typeof i2.Select2Label, typeof i3.Select2]>;
|
|
12
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<Select2Module>;
|
|
13
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./select2-hint.component";
|
|
3
|
+
import * as i2 from "./select2-label.component";
|
|
4
|
+
import * as i3 from "./select2.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "@angular/cdk/overlay";
|
|
8
|
+
import * as i7 from "ngx-infinite-scroll";
|
|
9
|
+
export declare class Select2Module {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Select2Module, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<Select2Module, [typeof i1.Select2Hint, typeof i2.Select2Label, typeof i3.Select2], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.OverlayModule, typeof i5.ReactiveFormsModule, typeof i7.InfiniteScrollModule], [typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i1.Select2Hint, typeof i2.Select2Label, typeof i3.Select2]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<Select2Module>;
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=select2.module.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-select2-component",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "An Angular select2 component.",
|
|
5
5
|
"author": "York Yao, Célian Veyssière",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"tslib": "^2.3.0"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@angular/cdk": ">=16.
|
|
13
|
-
"@angular/common": ">=16.
|
|
14
|
-
"@angular/core": ">=16.
|
|
12
|
+
"@angular/cdk": ">=16.1.0",
|
|
13
|
+
"@angular/common": ">=16.1.0",
|
|
14
|
+
"@angular/core": ">=16.1.0"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
package/public_api.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './lib/select2-interfaces';
|
|
2
|
-
export * from './lib/select2-const';
|
|
3
|
-
export * from './lib/select2.component';
|
|
4
|
-
export * from './lib/select2.component';
|
|
5
|
-
export * from './lib/select2-hint.component';
|
|
6
|
-
export * from './lib/select2-label.component';
|
|
7
|
-
export * from './lib/select2-utils';
|
|
8
|
-
export * from './lib/select2.module';
|
|
1
|
+
export * from './lib/select2-interfaces';
|
|
2
|
+
export * from './lib/select2-const';
|
|
3
|
+
export * from './lib/select2.component';
|
|
4
|
+
export * from './lib/select2.component';
|
|
5
|
+
export * from './lib/select2-hint.component';
|
|
6
|
+
export * from './lib/select2-label.component';
|
|
7
|
+
export * from './lib/select2-utils';
|
|
8
|
+
export * from './lib/select2.module';
|
|
9
9
|
//# sourceMappingURL=public_api.d.ts.map
|