ng-select2-component 8.0.2 → 8.0.6

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/AUTHORS.md CHANGED
@@ -1,14 +1,16 @@
1
- ## ng-select2 contributors
2
-
3
- ng-select2 is written by York Yao with contributions from:
4
-
5
- Main contributors:
6
- * Célian Veyssière (aka Zéfling)
7
- * Baptiste (aka BatMen)
8
-
9
- Thanks for your contributions:
10
- * ADesbois
11
- * mbelin-hvs
12
- * Varun Nambiar
13
- * Khanh Ngo
14
- * Johan Compagner
1
+ ## ng-select2 contributors
2
+
3
+ ng-select2 is written by York Yao with contributions from:
4
+
5
+ Main contributors:
6
+
7
+ - Célian Veyssière (aka Zéfling)
8
+ - Baptiste (aka BatMen)
9
+
10
+ Thanks for your contributions:
11
+
12
+ - ADesbois
13
+ - mbelin-hvs
14
+ - Varun Nambiar
15
+ - Khanh Ngo
16
+ - Johan Compagner
package/CHANGELOG.md CHANGED
@@ -1,274 +1,303 @@
1
- # Changelog of ng-select2
2
-
3
- ## V8.0.2 (2021-07-01)
4
-
5
- ### Corrections
6
-
7
- - fix open event with overlay
8
- - fix ExpressionChangedAfterItHasBeenCheckedError
9
-
10
- ## V8.0.1 (2021-07-01)
11
-
12
- ### Corrections
13
-
14
- - fix overlay size on reopen after resize
15
-
16
- ## V8.0.0 (2021-06-30)
17
-
18
- ### Breaking Changes
19
-
20
- - minimum required support has been upgraded to Angular `10.0`.
21
- - remove parameters `material` and `noStyle`, use `styleMode`.
22
-
23
- ### Changes
24
-
25
- - add `overlay` parameter with Angular CDK, to change the display method of the dropdown list to the root of the DOM. (See README).
26
- - add `noResultMessage` parameter, to display a message if there is no result.
27
- - add `styleMode` parameter, to choose an alternative predefined style of the component.
28
-
29
- ## V7.3.1 (2021-04-24)
30
-
31
- ### Corrections
32
-
33
- - fix placeholder overflow (ellipsis)
34
-
35
- ## V7.3.0 (2021-04-23)
36
-
37
- ### Changes
38
-
39
- - add `ngx-infinite-scroll` support (See README)
40
- - add `(removedOption)` event, triggered when an option is removed from the list of selected options options list
41
-
42
- ### Corrections
43
-
44
- - remove a forgotten logger
45
-
46
- ## V7.2.3 (2021-03-11)
47
-
48
- ### Corrections
49
-
50
- - fix crash when switching between multiple and non-multiple
51
-
52
- ### Demo
53
-
54
- - add html generator
55
-
56
- ## V7.2.2 (2021-03-05)
57
-
58
- ### Corrections
59
-
60
- - hidden options are no longer selectable with keyboard
61
-
62
- ## V7.2.1 (2021-03-04)
63
-
64
- ### Changes
65
-
66
- - add a possibility to hide an option
67
- - add an argument `resettable` to display a reset button (in single mode)
68
-
69
- ## V7.2.0 (2020-12-09)
70
-
71
- ### Changes
72
-
73
- - formating options & groups with template
74
-
75
- ### Corrections
76
-
77
- - crash when data is empty
78
-
79
- ## V7.1.11 (2020-11-12)
80
-
81
- ### Corrections
82
-
83
- - support for Angular versions up to 11
84
-
85
- ## V7.1.10 (2020-11-11)
86
-
87
- ### Corrections
88
-
89
- - also call markForCheck() on the change detector when the filtered values are set
90
- - support for Angular versions up to 10
91
-
92
- ## V7.1.9 (2020-11-02)
93
-
94
- ### Corrections
95
-
96
- - Change event is stopped for input
97
- - Fix CSS for outline
98
- - Fix infinite valueChange sometimes because of asynchronous test
99
-
100
- ## V7.1.8 (2020-10-26)
101
-
102
- ### Changes
103
-
104
- - change the return of these events:
105
- - `(open)`: `void` to `Select2`
106
- - `(close)`: `void` to `Select2`
107
- - `(focus)`: `void` to `Select2`
108
- - `(blur)`: `void` to `Select2`
109
- - `(search)`: `string` to `Select2SearchEvent`
110
-
111
- ### Corrections
112
-
113
- - Fix multiple events for `(update)` when value changes
114
-
115
- ## V7.1.7 (2020-10-19)
116
-
117
- ### Corrections
118
-
119
- - Fix case with 0 in value
120
-
121
- ## V7.1.6 (2020-10-13)
122
-
123
- ### Changes
124
-
125
- - Added an `id` on the select options.
126
- - Allow to give a specific id to an option via `Select2Option` config.
127
-
128
- ### Corrections
129
-
130
- - Remove the `undefined` class wrongly added to options when `classes` is not defined on `Select2Option`.
131
-
132
- ## V7.1.5 (2020-10-06)
133
-
134
- ### Corrections
135
-
136
- - fix update of list when value is `null`/`undefined`/`empty`
137
-
138
- ## V7.1.4 (2020-09-18)
139
-
140
- ### Changes
141
-
142
- - add `limitSelection` attribute to limit multiple selection. (By defaut `0` for no limit)
143
-
144
- ## V7.1.3 (2020-05-07)
145
-
146
- ### Breaking Changes
147
-
148
- - review the naming of all CSS variables and add new
149
- - no more predefined variables (it was impossible to overwrite them)
150
-
151
- ## V7.1.2 (2020-04-27)
152
-
153
- ### Changes
154
-
155
- - add event `(focus)` and `(blur)`
156
-
157
- ### Corrections
158
-
159
- - fix the focused status which is not removed in some cases or called for the wrong reason
160
-
161
- ## V7.1.1 (2020-04-24)
162
-
163
- ### Changes
164
-
165
- - add event `(close)`
166
-
167
- ### Corrections
168
-
169
- - fix dropdown position with hint
170
-
171
- ## V7.1.0 (2020-04-23)
172
-
173
- ### Breaking Changes
174
-
175
- * `(update)` : return object `Select2UpdateValue` change for `Select2UpdateEvent` object. Please, see the readme.
176
-
177
- ### Changes
178
-
179
- - add CSS variables for colors (see the readme)
180
- - add new attributes : `listPosition`, `minCharForSearch`, `noStyle`
181
- - now, selection container use a flexbox layout (CSS symplification)
182
- - update the SearchBox status when the list change
183
-
184
- ## V7.0.7 (2020-04-17)
185
-
186
- ### Changes
187
-
188
- - add a new `displaySearchStatus` attribute
189
- - edit `minCountForSearch` to make it dynamic and easier to use
190
-
191
- ## V7.0.6 (2020-02-21)
192
-
193
- ### Corrections
194
-
195
- - fix dropdown when is close
196
-
197
- ## V7.0.5 (2020-02-07)
198
-
199
- ### Corrections
200
-
201
- - fix `resultMaxHeight` (`@Output` instead of `@Input`)
202
-
203
- ## V7.0.4 (2020-02-06)
204
-
205
- ### Changes
206
-
207
- - with label and required is true, add a red `*` after the label
208
- - add new @input parameters :
209
- - `hideSelectedItems` : for `multiple`, remove selected values (by defaut : `false`)
210
- - `resultMaxHeight` : change the height size of results (by defaut : `200px`);
211
-
212
- ### Corrections
213
-
214
- - fix value update
215
- - fix CSS for the height of result when the panel is closed
216
-
217
- ## V7.0.3 (2019-11-08)
218
-
219
- ### Changes
220
-
221
- - options label accept HTML content
222
-
223
- ## V7.0.2 (2019-08-09)
224
-
225
- ### Corrections
226
-
227
- - fix scroll when opening the select to go to the selected option(s)
228
- - fix arrowUp/arrowDown to be able to jump disabled options within the list
229
-
230
- ## V7.0.1 (2019-07-29)
231
-
232
- ### Corrections
233
-
234
- - fix spam issue on `filteredData` in some cases
235
- - refactoring the method to handle up/down arrows
236
-
237
- ## V7.0.0 (2018-12-05)
238
-
239
- ### Changes
240
-
241
- - update to Angular 7
242
- - add Label with `<select2-label>` tag
243
-
244
- ### Corrections
245
-
246
- - ajust CSS
247
- - change the key detection
248
-
249
- ## V6.0.3 (2018-10-29)
250
-
251
- ### Correction
252
-
253
- - fix formcontrol value update
254
-
255
- ## V6.0.2 (2018-10-12)
256
-
257
- ### Correction
258
-
259
- - fix error when using FormControls
260
- - add new examples in the demo
261
-
262
- ## V6.0.1 (2018-07-16)
263
-
264
- ### Correction
265
-
266
- - fix ExpressionChangedAfterItHasBeenCheckedError
267
-
268
- ## V6.0.0 (2018-07-10)
269
-
270
- ### Breaking changes
271
-
272
- - **not compatible anymore with Angular 5**
273
- - upgrade to Angular 6 using Angular CLI
274
- - change folders architecture to match the Angular CLI `ng new` and `ng generate library`
1
+ # Changelog of ng-select2
2
+
3
+ ## V8.0.6 (2021-02-04)
4
+
5
+ ### Corrections
6
+
7
+ - Remove `×` for disabled & readonly
8
+ - Update data when new sets come in.
9
+
10
+ ## V8.0.5 (2021-09-27)
11
+
12
+ ### Corrections
13
+
14
+ - Fix when `overlay` is `true` on start
15
+
16
+ ## V8.0.4 (2021-09-23)
17
+
18
+ ### Changes
19
+
20
+ - with `overlay` active, the value `auto` for `listPosition` is possible
21
+
22
+ ### Corrections
23
+
24
+ - Fix above position with overlay
25
+
26
+ ## V8.0.3 (2021-07-02)
27
+
28
+ ### Corrections
29
+
30
+ - add more controls for `resultContainer`
31
+
32
+ ## V8.0.2 (2021-07-01)
33
+
34
+ ### Corrections
35
+
36
+ - fix `open` event with overlay
37
+ - fix `ExpressionChangedAfterItHasBeenCheckedError`
38
+
39
+ ## V8.0.1 (2021-07-01)
40
+
41
+ ### Corrections
42
+
43
+ - fix overlay size on reopen after resize
44
+
45
+ ## V8.0.0 (2021-06-30)
46
+
47
+ ### Breaking Changes
48
+
49
+ - minimum required support has been upgraded to Angular `10.0`.
50
+ - remove parameters `material` and `noStyle`, use `styleMode`.
51
+
52
+ ### Changes
53
+
54
+ - add `overlay` parameter with Angular CDK, to change the display method of the dropdown list to the root of the DOM. (See README).
55
+ - add `noResultMessage` parameter, to display a message if there is no result.
56
+ - add `styleMode` parameter, to choose an alternative predefined style of the component.
57
+
58
+ ## V7.3.1 (2021-04-24)
59
+
60
+ ### Corrections
61
+
62
+ - fix placeholder overflow (ellipsis)
63
+
64
+ ## V7.3.0 (2021-04-23)
65
+
66
+ ### Changes
67
+
68
+ - add `ngx-infinite-scroll` support (See README)
69
+ - add `(removedOption)` event, triggered when an option is removed from the list of selected options options list
70
+
71
+ ### Corrections
72
+
73
+ - remove a forgotten logger
74
+
75
+ ## V7.2.3 (2021-03-11)
76
+
77
+ ### Corrections
78
+
79
+ - fix crash when switching between multiple and non-multiple
80
+
81
+ ### Demo
82
+
83
+ - add html generator
84
+
85
+ ## V7.2.2 (2021-03-05)
86
+
87
+ ### Corrections
88
+
89
+ - hidden options are no longer selectable with keyboard
90
+
91
+ ## V7.2.1 (2021-03-04)
92
+
93
+ ### Changes
94
+
95
+ - add a possibility to hide an option
96
+ - add an argument `resettable` to display a reset button (in single mode)
97
+
98
+ ## V7.2.0 (2020-12-09)
99
+
100
+ ### Changes
101
+
102
+ - formating options & groups with template
103
+
104
+ ### Corrections
105
+
106
+ - crash when data is empty
107
+
108
+ ## V7.1.11 (2020-11-12)
109
+
110
+ ### Corrections
111
+
112
+ - support for Angular versions up to 11
113
+
114
+ ## V7.1.10 (2020-11-11)
115
+
116
+ ### Corrections
117
+
118
+ - also call markForCheck() on the change detector when the filtered values are set
119
+ - support for Angular versions up to 10
120
+
121
+ ## V7.1.9 (2020-11-02)
122
+
123
+ ### Corrections
124
+
125
+ - Change event is stopped for input
126
+ - Fix CSS for outline
127
+ - Fix infinite valueChange sometimes because of asynchronous test
128
+
129
+ ## V7.1.8 (2020-10-26)
130
+
131
+ ### Changes
132
+
133
+ - change the return of these events:
134
+ - `(open)`: `void` to `Select2`
135
+ - `(close)`: `void` to `Select2`
136
+ - `(focus)`: `void` to `Select2`
137
+ - `(blur)`: `void` to `Select2`
138
+ - `(search)`: `string` to `Select2SearchEvent`
139
+
140
+ ### Corrections
141
+
142
+ - Fix multiple events for `(update)` when value changes
143
+
144
+ ## V7.1.7 (2020-10-19)
145
+
146
+ ### Corrections
147
+
148
+ - Fix case with 0 in value
149
+
150
+ ## V7.1.6 (2020-10-13)
151
+
152
+ ### Changes
153
+
154
+ - Added an `id` on the select options.
155
+ - Allow to give a specific id to an option via `Select2Option` config.
156
+
157
+ ### Corrections
158
+
159
+ - Remove the `undefined` class wrongly added to options when `classes` is not defined on `Select2Option`.
160
+
161
+ ## V7.1.5 (2020-10-06)
162
+
163
+ ### Corrections
164
+
165
+ - fix update of list when value is `null`/`undefined`/`empty`
166
+
167
+ ## V7.1.4 (2020-09-18)
168
+
169
+ ### Changes
170
+
171
+ - add `limitSelection` attribute to limit multiple selection. (By defaut `0` for no limit)
172
+
173
+ ## V7.1.3 (2020-05-07)
174
+
175
+ ### Breaking Changes
176
+
177
+ - review the naming of all CSS variables and add new
178
+ - no more predefined variables (it was impossible to overwrite them)
179
+
180
+ ## V7.1.2 (2020-04-27)
181
+
182
+ ### Changes
183
+
184
+ - add event `(focus)` and `(blur)`
185
+
186
+ ### Corrections
187
+
188
+ - fix the focused status which is not removed in some cases or called for the wrong reason
189
+
190
+ ## V7.1.1 (2020-04-24)
191
+
192
+ ### Changes
193
+
194
+ - add event `(close)`
195
+
196
+ ### Corrections
197
+
198
+ - fix dropdown position with hint
199
+
200
+ ## V7.1.0 (2020-04-23)
201
+
202
+ ### Breaking Changes
203
+
204
+ - `(update)` : return object `Select2UpdateValue` change for `Select2UpdateEvent` object. Please, see the readme.
205
+
206
+ ### Changes
207
+
208
+ - add CSS variables for colors (see the readme)
209
+ - add new attributes : `listPosition`, `minCharForSearch`, `noStyle`
210
+ - now, selection container use a flexbox layout (CSS symplification)
211
+ - update the SearchBox status when the list change
212
+
213
+ ## V7.0.7 (2020-04-17)
214
+
215
+ ### Changes
216
+
217
+ - add a new `displaySearchStatus` attribute
218
+ - edit `minCountForSearch` to make it dynamic and easier to use
219
+
220
+ ## V7.0.6 (2020-02-21)
221
+
222
+ ### Corrections
223
+
224
+ - fix dropdown when is close
225
+
226
+ ## V7.0.5 (2020-02-07)
227
+
228
+ ### Corrections
229
+
230
+ - fix `resultMaxHeight` (`@Output` instead of `@Input`)
231
+
232
+ ## V7.0.4 (2020-02-06)
233
+
234
+ ### Changes
235
+
236
+ - with label and required is true, add a red `*` after the label
237
+ - add new @input parameters :
238
+ - `hideSelectedItems` : for `multiple`, remove selected values (by defaut : `false`)
239
+ - `resultMaxHeight` : change the height size of results (by defaut : `200px`);
240
+
241
+ ### Corrections
242
+
243
+ - fix value update
244
+ - fix CSS for the height of result when the panel is closed
245
+
246
+ ## V7.0.3 (2019-11-08)
247
+
248
+ ### Changes
249
+
250
+ - options label accept HTML content
251
+
252
+ ## V7.0.2 (2019-08-09)
253
+
254
+ ### Corrections
255
+
256
+ - fix scroll when opening the select to go to the selected option(s)
257
+ - fix arrowUp/arrowDown to be able to jump disabled options within the list
258
+
259
+ ## V7.0.1 (2019-07-29)
260
+
261
+ ### Corrections
262
+
263
+ - fix spam issue on `filteredData` in some cases
264
+ - refactoring the method to handle up/down arrows
265
+
266
+ ## V7.0.0 (2018-12-05)
267
+
268
+ ### Changes
269
+
270
+ - update to Angular 7
271
+ - add Label with `<select2-label>` tag
272
+
273
+ ### Corrections
274
+
275
+ - ajust CSS
276
+ - change the key detection
277
+
278
+ ## V6.0.3 (2018-10-29)
279
+
280
+ ### Correction
281
+
282
+ - fix formcontrol value update
283
+
284
+ ## V6.0.2 (2018-10-12)
285
+
286
+ ### Correction
287
+
288
+ - fix error when using FormControls
289
+ - add new examples in the demo
290
+
291
+ ## V6.0.1 (2018-07-16)
292
+
293
+ ### Correction
294
+
295
+ - fix ExpressionChangedAfterItHasBeenCheckedError
296
+
297
+ ## V6.0.0 (2018-07-10)
298
+
299
+ ### Breaking changes
300
+
301
+ - **not compatible anymore with Angular 5**
302
+ - upgrade to Angular 6 using Angular CLI
303
+ - change folders architecture to match the Angular CLI `ng new` and `ng generate library`
package/LICENSE.md CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 York Yao, 2018-2020 Célian Veyssière
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2017 York Yao, 2018-2020 Célian Veyssière
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.