ng-select2-component 8.0.3 → 8.1.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/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,280 +1,319 @@
1
- # Changelog of ng-select2
2
-
3
- ## V8.0.3 (2021-07-02)
4
-
5
- ### Corrections
6
-
7
- - add more controls for `resultContainer`
8
-
9
- ## V8.0.2 (2021-07-01)
10
-
11
- ### Corrections
12
-
13
- - fix `open` event with overlay
14
- - fix `ExpressionChangedAfterItHasBeenCheckedError`
15
-
16
- ## V8.0.1 (2021-07-01)
17
-
18
- ### Corrections
19
-
20
- - fix overlay size on reopen after resize
21
-
22
- ## V8.0.0 (2021-06-30)
23
-
24
- ### Breaking Changes
25
-
26
- - minimum required support has been upgraded to Angular `10.0`.
27
- - remove parameters `material` and `noStyle`, use `styleMode`.
28
-
29
- ### Changes
30
-
31
- - add `overlay` parameter with Angular CDK, to change the display method of the dropdown list to the root of the DOM. (See README).
32
- - add `noResultMessage` parameter, to display a message if there is no result.
33
- - add `styleMode` parameter, to choose an alternative predefined style of the component.
34
-
35
- ## V7.3.1 (2021-04-24)
36
-
37
- ### Corrections
38
-
39
- - fix placeholder overflow (ellipsis)
40
-
41
- ## V7.3.0 (2021-04-23)
42
-
43
- ### Changes
44
-
45
- - add `ngx-infinite-scroll` support (See README)
46
- - add `(removedOption)` event, triggered when an option is removed from the list of selected options options list
47
-
48
- ### Corrections
49
-
50
- - remove a forgotten logger
51
-
52
- ## V7.2.3 (2021-03-11)
53
-
54
- ### Corrections
55
-
56
- - fix crash when switching between multiple and non-multiple
57
-
58
- ### Demo
59
-
60
- - add html generator
61
-
62
- ## V7.2.2 (2021-03-05)
63
-
64
- ### Corrections
65
-
66
- - hidden options are no longer selectable with keyboard
67
-
68
- ## V7.2.1 (2021-03-04)
69
-
70
- ### Changes
71
-
72
- - add a possibility to hide an option
73
- - add an argument `resettable` to display a reset button (in single mode)
74
-
75
- ## V7.2.0 (2020-12-09)
76
-
77
- ### Changes
78
-
79
- - formating options & groups with template
80
-
81
- ### Corrections
82
-
83
- - crash when data is empty
84
-
85
- ## V7.1.11 (2020-11-12)
86
-
87
- ### Corrections
88
-
89
- - support for Angular versions up to 11
90
-
91
- ## V7.1.10 (2020-11-11)
92
-
93
- ### Corrections
94
-
95
- - also call markForCheck() on the change detector when the filtered values are set
96
- - support for Angular versions up to 10
97
-
98
- ## V7.1.9 (2020-11-02)
99
-
100
- ### Corrections
101
-
102
- - Change event is stopped for input
103
- - Fix CSS for outline
104
- - Fix infinite valueChange sometimes because of asynchronous test
105
-
106
- ## V7.1.8 (2020-10-26)
107
-
108
- ### Changes
109
-
110
- - change the return of these events:
111
- - `(open)`: `void` to `Select2`
112
- - `(close)`: `void` to `Select2`
113
- - `(focus)`: `void` to `Select2`
114
- - `(blur)`: `void` to `Select2`
115
- - `(search)`: `string` to `Select2SearchEvent`
116
-
117
- ### Corrections
118
-
119
- - Fix multiple events for `(update)` when value changes
120
-
121
- ## V7.1.7 (2020-10-19)
122
-
123
- ### Corrections
124
-
125
- - Fix case with 0 in value
126
-
127
- ## V7.1.6 (2020-10-13)
128
-
129
- ### Changes
130
-
131
- - Added an `id` on the select options.
132
- - Allow to give a specific id to an option via `Select2Option` config.
133
-
134
- ### Corrections
135
-
136
- - Remove the `undefined` class wrongly added to options when `classes` is not defined on `Select2Option`.
137
-
138
- ## V7.1.5 (2020-10-06)
139
-
140
- ### Corrections
141
-
142
- - fix update of list when value is `null`/`undefined`/`empty`
143
-
144
- ## V7.1.4 (2020-09-18)
145
-
146
- ### Changes
147
-
148
- - add `limitSelection` attribute to limit multiple selection. (By defaut `0` for no limit)
149
-
150
- ## V7.1.3 (2020-05-07)
151
-
152
- ### Breaking Changes
153
-
154
- - review the naming of all CSS variables and add new
155
- - no more predefined variables (it was impossible to overwrite them)
156
-
157
- ## V7.1.2 (2020-04-27)
158
-
159
- ### Changes
160
-
161
- - add event `(focus)` and `(blur)`
162
-
163
- ### Corrections
164
-
165
- - fix the focused status which is not removed in some cases or called for the wrong reason
166
-
167
- ## V7.1.1 (2020-04-24)
168
-
169
- ### Changes
170
-
171
- - add event `(close)`
172
-
173
- ### Corrections
174
-
175
- - fix dropdown position with hint
176
-
177
- ## V7.1.0 (2020-04-23)
178
-
179
- ### Breaking Changes
180
-
181
- * `(update)` : return object `Select2UpdateValue` change for `Select2UpdateEvent` object. Please, see the readme.
182
-
183
- ### Changes
184
-
185
- - add CSS variables for colors (see the readme)
186
- - add new attributes : `listPosition`, `minCharForSearch`, `noStyle`
187
- - now, selection container use a flexbox layout (CSS symplification)
188
- - update the SearchBox status when the list change
189
-
190
- ## V7.0.7 (2020-04-17)
191
-
192
- ### Changes
193
-
194
- - add a new `displaySearchStatus` attribute
195
- - edit `minCountForSearch` to make it dynamic and easier to use
196
-
197
- ## V7.0.6 (2020-02-21)
198
-
199
- ### Corrections
200
-
201
- - fix dropdown when is close
202
-
203
- ## V7.0.5 (2020-02-07)
204
-
205
- ### Corrections
206
-
207
- - fix `resultMaxHeight` (`@Output` instead of `@Input`)
208
-
209
- ## V7.0.4 (2020-02-06)
210
-
211
- ### Changes
212
-
213
- - with label and required is true, add a red `*` after the label
214
- - add new @input parameters :
215
- - `hideSelectedItems` : for `multiple`, remove selected values (by defaut : `false`)
216
- - `resultMaxHeight` : change the height size of results (by defaut : `200px`);
217
-
218
- ### Corrections
219
-
220
- - fix value update
221
- - fix CSS for the height of result when the panel is closed
222
-
223
- ## V7.0.3 (2019-11-08)
224
-
225
- ### Changes
226
-
227
- - options label accept HTML content
228
-
229
- ## V7.0.2 (2019-08-09)
230
-
231
- ### Corrections
232
-
233
- - fix scroll when opening the select to go to the selected option(s)
234
- - fix arrowUp/arrowDown to be able to jump disabled options within the list
235
-
236
- ## V7.0.1 (2019-07-29)
237
-
238
- ### Corrections
239
-
240
- - fix spam issue on `filteredData` in some cases
241
- - refactoring the method to handle up/down arrows
242
-
243
- ## V7.0.0 (2018-12-05)
244
-
245
- ### Changes
246
-
247
- - update to Angular 7
248
- - add Label with `<select2-label>` tag
249
-
250
- ### Corrections
251
-
252
- - ajust CSS
253
- - change the key detection
254
-
255
- ## V6.0.3 (2018-10-29)
256
-
257
- ### Correction
258
-
259
- - fix formcontrol value update
260
-
261
- ## V6.0.2 (2018-10-12)
262
-
263
- ### Correction
264
-
265
- - fix error when using FormControls
266
- - add new examples in the demo
267
-
268
- ## V6.0.1 (2018-07-16)
269
-
270
- ### Correction
271
-
272
- - fix ExpressionChangedAfterItHasBeenCheckedError
273
-
274
- ## V6.0.0 (2018-07-10)
275
-
276
- ### Breaking changes
277
-
278
- - **not compatible anymore with Angular 5**
279
- - upgrade to Angular 6 using Angular CLI
280
- - change folders architecture to match the Angular CLI `ng new` and `ng generate library`
1
+ # Changelog of ng-select2
2
+
3
+ ## V8.1.0 (2022-02-18)
4
+
5
+ ### Breaking Changes
6
+
7
+ - CSS variable `--select2-font-style-color` renamed in `--select2-too-much-font-style`
8
+
9
+ ### Changes
10
+
11
+ - add `maxResults` maximum results limit (`0` = no limit, by default : `0`).
12
+ - add `maxResultsMessage` parameter, message when maximum results (by default : `'Too many results…'`)
13
+ - add CSS variable `--select2-too-much-result-color` and `--select2-too-much-result-style`
14
+
15
+ ### Corrections
16
+
17
+ - filtered data for group is now correct
18
+
19
+ ## V8.0.6 (2022-01-04)
20
+
21
+ ### Corrections
22
+
23
+ - Remove `×` for disabled & readonly
24
+ - Update data when new sets come in.
25
+
26
+ ## V8.0.5 (2021-09-27)
27
+
28
+ ### Corrections
29
+
30
+ - Fix when `overlay` is `true` on start
31
+
32
+ ## V8.0.4 (2021-09-23)
33
+
34
+ ### Changes
35
+
36
+ - with `overlay` active, the value `auto` for `listPosition` is possible
37
+
38
+ ### Corrections
39
+
40
+ - Fix above position with overlay
41
+
42
+ ## V8.0.3 (2021-07-02)
43
+
44
+ ### Corrections
45
+
46
+ - add more controls for `resultContainer`
47
+
48
+ ## V8.0.2 (2021-07-01)
49
+
50
+ ### Corrections
51
+
52
+ - fix `open` event with overlay
53
+ - fix `ExpressionChangedAfterItHasBeenCheckedError`
54
+
55
+ ## V8.0.1 (2021-07-01)
56
+
57
+ ### Corrections
58
+
59
+ - fix overlay size on reopen after resize
60
+
61
+ ## V8.0.0 (2021-06-30)
62
+
63
+ ### Breaking Changes
64
+
65
+ - minimum required support has been upgraded to Angular `10.0`.
66
+ - remove parameters `material` and `noStyle`, use `styleMode`.
67
+
68
+ ### Changes
69
+
70
+ - add `overlay` parameter with Angular CDK, to change the display method of the dropdown list to the root of the DOM. (See README).
71
+ - add `noResultMessage` parameter, to display a message if there is no result.
72
+ - add `styleMode` parameter, to choose an alternative predefined style of the component.
73
+
74
+ ## V7.3.1 (2021-04-24)
75
+
76
+ ### Corrections
77
+
78
+ - fix placeholder overflow (ellipsis)
79
+
80
+ ## V7.3.0 (2021-04-23)
81
+
82
+ ### Changes
83
+
84
+ - add `ngx-infinite-scroll` support (See README)
85
+ - add `(removedOption)` event, triggered when an option is removed from the list of selected options options list
86
+
87
+ ### Corrections
88
+
89
+ - remove a forgotten logger
90
+
91
+ ## V7.2.3 (2021-03-11)
92
+
93
+ ### Corrections
94
+
95
+ - fix crash when switching between multiple and non-multiple
96
+
97
+ ### Demo
98
+
99
+ - add html generator
100
+
101
+ ## V7.2.2 (2021-03-05)
102
+
103
+ ### Corrections
104
+
105
+ - hidden options are no longer selectable with keyboard
106
+
107
+ ## V7.2.1 (2021-03-04)
108
+
109
+ ### Changes
110
+
111
+ - add a possibility to hide an option
112
+ - add an argument `resettable` to display a reset button (in single mode)
113
+
114
+ ## V7.2.0 (2020-12-09)
115
+
116
+ ### Changes
117
+
118
+ - formating options & groups with template
119
+
120
+ ### Corrections
121
+
122
+ - crash when data is empty
123
+
124
+ ## V7.1.11 (2020-11-12)
125
+
126
+ ### Corrections
127
+
128
+ - support for Angular versions up to 11
129
+
130
+ ## V7.1.10 (2020-11-11)
131
+
132
+ ### Corrections
133
+
134
+ - also call markForCheck() on the change detector when the filtered values are set
135
+ - support for Angular versions up to 10
136
+
137
+ ## V7.1.9 (2020-11-02)
138
+
139
+ ### Corrections
140
+
141
+ - Change event is stopped for input
142
+ - Fix CSS for outline
143
+ - Fix infinite valueChange sometimes because of asynchronous test
144
+
145
+ ## V7.1.8 (2020-10-26)
146
+
147
+ ### Changes
148
+
149
+ - change the return of these events:
150
+ - `(open)`: `void` to `Select2`
151
+ - `(close)`: `void` to `Select2`
152
+ - `(focus)`: `void` to `Select2`
153
+ - `(blur)`: `void` to `Select2`
154
+ - `(search)`: `string` to `Select2SearchEvent`
155
+
156
+ ### Corrections
157
+
158
+ - Fix multiple events for `(update)` when value changes
159
+
160
+ ## V7.1.7 (2020-10-19)
161
+
162
+ ### Corrections
163
+
164
+ - Fix case with 0 in value
165
+
166
+ ## V7.1.6 (2020-10-13)
167
+
168
+ ### Changes
169
+
170
+ - Added an `id` on the select options.
171
+ - Allow to give a specific id to an option via `Select2Option` config.
172
+
173
+ ### Corrections
174
+
175
+ - Remove the `undefined` class wrongly added to options when `classes` is not defined on `Select2Option`.
176
+
177
+ ## V7.1.5 (2020-10-06)
178
+
179
+ ### Corrections
180
+
181
+ - fix update of list when value is `null`/`undefined`/`empty`
182
+
183
+ ## V7.1.4 (2020-09-18)
184
+
185
+ ### Changes
186
+
187
+ - add `limitSelection` attribute to limit multiple selection. (By defaut `0` for no limit)
188
+
189
+ ## V7.1.3 (2020-05-07)
190
+
191
+ ### Breaking Changes
192
+
193
+ - review the naming of all CSS variables and add new
194
+ - no more predefined variables (it was impossible to overwrite them)
195
+
196
+ ## V7.1.2 (2020-04-27)
197
+
198
+ ### Changes
199
+
200
+ - add event `(focus)` and `(blur)`
201
+
202
+ ### Corrections
203
+
204
+ - fix the focused status which is not removed in some cases or called for the wrong reason
205
+
206
+ ## V7.1.1 (2020-04-24)
207
+
208
+ ### Changes
209
+
210
+ - add event `(close)`
211
+
212
+ ### Corrections
213
+
214
+ - fix dropdown position with hint
215
+
216
+ ## V7.1.0 (2020-04-23)
217
+
218
+ ### Breaking Changes
219
+
220
+ - `(update)` : return object `Select2UpdateValue` change for `Select2UpdateEvent` object. Please, see the readme.
221
+
222
+ ### Changes
223
+
224
+ - add CSS variables for colors (see the readme)
225
+ - add new attributes : `listPosition`, `minCharForSearch`, `noStyle`
226
+ - now, selection container use a flexbox layout (CSS symplification)
227
+ - update the SearchBox status when the list change
228
+
229
+ ## V7.0.7 (2020-04-17)
230
+
231
+ ### Changes
232
+
233
+ - add a new `displaySearchStatus` attribute
234
+ - edit `minCountForSearch` to make it dynamic and easier to use
235
+
236
+ ## V7.0.6 (2020-02-21)
237
+
238
+ ### Corrections
239
+
240
+ - fix dropdown when is close
241
+
242
+ ## V7.0.5 (2020-02-07)
243
+
244
+ ### Corrections
245
+
246
+ - fix `resultMaxHeight` (`@Output` instead of `@Input`)
247
+
248
+ ## V7.0.4 (2020-02-06)
249
+
250
+ ### Changes
251
+
252
+ - with label and required is true, add a red `*` after the label
253
+ - add new @input parameters :
254
+ - `hideSelectedItems` : for `multiple`, remove selected values (by defaut : `false`)
255
+ - `resultMaxHeight` : change the height size of results (by defaut : `200px`);
256
+
257
+ ### Corrections
258
+
259
+ - fix value update
260
+ - fix CSS for the height of result when the panel is closed
261
+
262
+ ## V7.0.3 (2019-11-08)
263
+
264
+ ### Changes
265
+
266
+ - options label accept HTML content
267
+
268
+ ## V7.0.2 (2019-08-09)
269
+
270
+ ### Corrections
271
+
272
+ - fix scroll when opening the select to go to the selected option(s)
273
+ - fix arrowUp/arrowDown to be able to jump disabled options within the list
274
+
275
+ ## V7.0.1 (2019-07-29)
276
+
277
+ ### Corrections
278
+
279
+ - fix spam issue on `filteredData` in some cases
280
+ - refactoring the method to handle up/down arrows
281
+
282
+ ## V7.0.0 (2018-12-05)
283
+
284
+ ### Changes
285
+
286
+ - update to Angular 7
287
+ - add Label with `<select2-label>` tag
288
+
289
+ ### Corrections
290
+
291
+ - ajust CSS
292
+ - change the key detection
293
+
294
+ ## V6.0.3 (2018-10-29)
295
+
296
+ ### Correction
297
+
298
+ - fix formcontrol value update
299
+
300
+ ## V6.0.2 (2018-10-12)
301
+
302
+ ### Correction
303
+
304
+ - fix error when using FormControls
305
+ - add new examples in the demo
306
+
307
+ ## V6.0.1 (2018-07-16)
308
+
309
+ ### Correction
310
+
311
+ - fix ExpressionChangedAfterItHasBeenCheckedError
312
+
313
+ ## V6.0.0 (2018-07-10)
314
+
315
+ ### Breaking changes
316
+
317
+ - **not compatible anymore with Angular 5**
318
+ - upgrade to Angular 6 using Angular CLI
319
+ - 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.