ng-select2-component 16.0.0 → 17.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 +8 -8
- package/CHANGELOG.md +246 -150
- package/README.md +135 -121
- package/fesm2022/ng-select2-component.mjs +601 -597
- package/fesm2022/ng-select2-component.mjs.map +1 -1
- package/lib/select2-hint.component.d.ts +1 -1
- package/lib/select2-hint.component.d.ts.map +1 -1
- package/lib/select2-interfaces.d.ts +10 -6
- package/lib/select2-interfaces.d.ts.map +1 -1
- package/lib/select2-label.component.d.ts +1 -1
- package/lib/select2-label.component.d.ts.map +1 -1
- package/lib/select2-utils.d.ts +12 -8
- package/lib/select2-utils.d.ts.map +1 -1
- package/lib/select2.component.d.ts +128 -122
- package/lib/select2.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -4
- package/public_api.d.ts.map +1 -1
- package/lib/select2.module.d.ts +0 -14
- package/lib/select2.module.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,505 +1,601 @@
|
|
|
1
1
|
# Changelog of ng-select2
|
|
2
2
|
|
|
3
|
+
## V17.1.0 (2024-12-26)
|
|
4
|
+
|
|
5
|
+
- Add attribute `multipleDrag`: drag'n drop list of items in selection
|
|
6
|
+
|
|
7
|
+
## V17.0.0 (2024-12-23)
|
|
8
|
+
|
|
9
|
+
### Changes
|
|
10
|
+
|
|
11
|
+
- Rewrite the component to use all the advances of Angular:
|
|
12
|
+
- Switch to stand-alone component mode
|
|
13
|
+
- Use of signals for inputs & queries
|
|
14
|
+
- Removed a lot of setTimeout
|
|
15
|
+
- Improved the overlay with the CDK
|
|
16
|
+
- Fix autocreate with single option
|
|
17
|
+
- Add resettable with multiple mode
|
|
18
|
+
- Fix inconsistencies in the code
|
|
19
|
+
- Much stricter code rewriting
|
|
20
|
+
- Accessibility (from 15.4.0)
|
|
21
|
+
- Added/modified accessibility attributes
|
|
22
|
+
- New inputs for accessibility
|
|
23
|
+
- `title`
|
|
24
|
+
- `ariaLabelledBy`
|
|
25
|
+
- `ariaDescribedBy`
|
|
26
|
+
- `ariaInvalid`
|
|
27
|
+
- `ariaResetButtonDescription`
|
|
28
|
+
- Improved focus/blur
|
|
29
|
+
- Fixed readonly
|
|
30
|
+
- Added reset button to tab navigation
|
|
31
|
+
- Keyboard interactions
|
|
32
|
+
- Update
|
|
33
|
+
- `Escape`: Improved focus after closing popup.
|
|
34
|
+
- `Tab`: Navigates correctly when no searchbox.
|
|
35
|
+
- New
|
|
36
|
+
- `Home`: Opens popup. Goes to first option.
|
|
37
|
+
- `End`: Opens popup. Goes to last option.
|
|
38
|
+
- `PageUp`: Opens popup. Goes up 10 options.
|
|
39
|
+
- `PageDown`: Opens popup. Goes down 10 options.
|
|
40
|
+
- `Space`: Opens popup. Selects option when there is no search input.
|
|
41
|
+
- `Alt`+`Down`, `Alt`+`Up`: Opens/closes popup.
|
|
42
|
+
|
|
43
|
+
### Demo
|
|
44
|
+
|
|
45
|
+
- New demo
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
3
49
|
## V16.0.0 (2024-11-27)
|
|
4
50
|
|
|
5
51
|
### Breaking Changes
|
|
6
52
|
|
|
7
|
-
-
|
|
53
|
+
- minimum required support has been upgraded to Angular `19.0`.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## V15.4.0 (on a branch) (2024-12-18)
|
|
58
|
+
|
|
59
|
+
### Changes
|
|
60
|
+
|
|
61
|
+
- Added/modified accessibility attributes
|
|
62
|
+
- New inputs for accessibility
|
|
63
|
+
- `title`
|
|
64
|
+
- `ariaLabelledBy`
|
|
65
|
+
- `ariaDescribedBy`
|
|
66
|
+
- `ariaInvalid`
|
|
67
|
+
- `ariaResetButtonDescription`
|
|
68
|
+
- Improved focus/blur
|
|
69
|
+
- Fixed readonly
|
|
70
|
+
- Added reset button to tab navigation
|
|
71
|
+
- Keyboard interactions
|
|
72
|
+
- Update
|
|
73
|
+
- `Escape`: Improved focus after closing popup.
|
|
74
|
+
- `Tab`: Navigates correctly when no searchbox.
|
|
75
|
+
- New
|
|
76
|
+
- `Home`: Opens popup. Goes to first option.
|
|
77
|
+
- `End`: Opens popup. Goes to last option.
|
|
78
|
+
- `PageUp`: Opens popup. Goes up 10 options.
|
|
79
|
+
- `PageDown`: Opens popup. Goes down 10 options.
|
|
80
|
+
- `Space`: Opens popup. Selects option when there is no search input.
|
|
81
|
+
- `Alt`+`Down`, `Alt`+`Up`: Opens/closes popup.
|
|
82
|
+
|
|
83
|
+
### Demo
|
|
84
|
+
|
|
85
|
+
- Fixed bugs
|
|
86
|
+
- Added accessibility exemples
|
|
8
87
|
|
|
9
88
|
## V15.3.0 (2024-11-16)
|
|
10
89
|
|
|
11
90
|
### Changes
|
|
12
91
|
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
92
|
+
- Add properties:
|
|
93
|
+
- `selectionOverride`: Change what is displayed in the selection area #79
|
|
94
|
+
- `selectionNoWrap`: Force selection on one line #79
|
|
95
|
+
- `showSelectAll`: Add an option to select all options c #80
|
|
96
|
+
- `selectAllText`: Text when all options as not selected #80
|
|
97
|
+
- `removeAllText`: Text when all options as selected #80
|
|
98
|
+
- Fix labels of selected options #81
|
|
20
99
|
|
|
21
100
|
## V15.2.1 (2024-08-22)
|
|
22
101
|
|
|
23
102
|
### Changes
|
|
24
103
|
|
|
25
|
-
-
|
|
104
|
+
- Delete a forgotten logger #75
|
|
26
105
|
|
|
27
106
|
## V15.2.0 (2024-08-03)
|
|
28
107
|
|
|
29
108
|
### Changes
|
|
30
109
|
|
|
31
|
-
-
|
|
110
|
+
- Add templates for selection (see readme or code generator) #74
|
|
32
111
|
|
|
33
112
|
## V15.1.0 (2024-08-02)
|
|
34
113
|
|
|
35
114
|
### Changes
|
|
36
115
|
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
116
|
+
- Add grid layout mode in dropdown #72
|
|
117
|
+
- Fix init value in multiple mode #73
|
|
118
|
+
- Fix reset value
|
|
40
119
|
|
|
41
120
|
## V15.0.1 (2024-07-24)
|
|
42
121
|
|
|
43
122
|
### Changes
|
|
44
123
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
124
|
+
- Fix reset with multiple #69
|
|
125
|
+
- Rewrite update event #69
|
|
47
126
|
|
|
48
127
|
## V15.0.0 (2024-05-31)
|
|
49
128
|
|
|
50
129
|
### Breaking Changes
|
|
51
130
|
|
|
52
|
-
-
|
|
131
|
+
- minimum required support has been upgraded to Angular `18.0`.
|
|
53
132
|
|
|
54
133
|
### Changes
|
|
55
134
|
|
|
56
|
-
-
|
|
135
|
+
- manage blur event (overlay, click on option)
|
|
136
|
+
|
|
137
|
+
---
|
|
57
138
|
|
|
58
139
|
## V14.0.1 (2024-03-04)
|
|
59
140
|
|
|
60
|
-
-
|
|
141
|
+
- add `borderless` style
|
|
61
142
|
|
|
62
143
|
## V14.0.0 (2024-01-07)
|
|
63
144
|
|
|
64
145
|
### Breaking Changes
|
|
65
146
|
|
|
66
|
-
-
|
|
147
|
+
- minimum required support has been upgraded to Angular `17.0`.
|
|
148
|
+
|
|
149
|
+
---
|
|
67
150
|
|
|
68
|
-
## V13.0.
|
|
151
|
+
## V13.0.12 (on a branch) (2024-07-24)
|
|
69
152
|
|
|
70
|
-
-
|
|
153
|
+
- Fix reset with multiple #69
|
|
154
|
+
- Rewrite update event #69
|
|
155
|
+
|
|
156
|
+
## V13.0.11 (on a branch) (2024-06-14)
|
|
157
|
+
|
|
158
|
+
- manage blur event (overlay, click on option)
|
|
159
|
+
|
|
160
|
+
## V13.0.10 (on a branch) (2024-03-04)
|
|
161
|
+
|
|
162
|
+
- add `borderless` style
|
|
71
163
|
|
|
72
164
|
## V13.0.9 (2023-09-24)
|
|
73
165
|
|
|
74
|
-
-
|
|
75
|
-
-
|
|
166
|
+
- add `autoCreate` for single mode #56 (thanks @majora2007)
|
|
167
|
+
- add `autoCreateItem` event #56 (thanks @majora2007)
|
|
76
168
|
|
|
77
169
|
## V13.0.8 (2023-08-29)
|
|
78
170
|
|
|
79
|
-
-
|
|
171
|
+
- fix focus on blur
|
|
80
172
|
|
|
81
173
|
## V13.0.7 (2023-08-29)
|
|
82
174
|
|
|
83
|
-
-
|
|
175
|
+
- fix tab navigation (don't open dropdown with tab)
|
|
84
176
|
|
|
85
177
|
## V13.0.6 (2023-08-23)
|
|
86
178
|
|
|
87
|
-
-
|
|
179
|
+
- fix value when data changes with NgControl
|
|
88
180
|
|
|
89
181
|
## V13.0.5 (2023-08-23)
|
|
90
182
|
|
|
91
|
-
-
|
|
183
|
+
- update current value when data changes
|
|
92
184
|
|
|
93
185
|
## V13.0.4 (2023-08-22)
|
|
94
186
|
|
|
95
187
|
### Changes
|
|
96
188
|
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
105
|
-
-
|
|
189
|
+
- improve keyboard navigation
|
|
190
|
+
- fixed arrow navigation when there is no search field
|
|
191
|
+
- improve tab and input actions (fix when unfocus)
|
|
192
|
+
- add CSS variables:
|
|
193
|
+
- `--select2-selection-line-height`
|
|
194
|
+
- `--select2-selection-padding`
|
|
195
|
+
- `--select2-selection-multiple-gap`
|
|
196
|
+
- `--select2-selection-multiple-padding`
|
|
197
|
+
- `--select2-option-padding`
|
|
106
198
|
|
|
107
199
|
## V13.0.2 (2023-08-15)
|
|
108
200
|
|
|
109
201
|
### Changes
|
|
110
202
|
|
|
111
|
-
-
|
|
203
|
+
- fix customSearchEnabled
|
|
112
204
|
|
|
113
205
|
## V13.0.1 (2023-07-31)
|
|
114
206
|
|
|
115
207
|
### Changes
|
|
116
208
|
|
|
117
|
-
-
|
|
118
|
-
-
|
|
209
|
+
- add `resetSelectedValue` parameter #42
|
|
210
|
+
- fix `autoCreate` with no search input #49
|
|
119
211
|
|
|
120
212
|
## V13.0.0 (2023-07-20)
|
|
121
213
|
|
|
122
214
|
### Breaking Changes
|
|
123
215
|
|
|
124
|
-
-
|
|
216
|
+
- minimum required support has been upgraded to Angular `16.1`.
|
|
125
217
|
|
|
126
218
|
### Changes
|
|
127
219
|
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
220
|
+
- rewrite `clickDetection`
|
|
221
|
+
- fix template with `multiple`
|
|
222
|
+
- refacto with `numberAttribute` & `booleanAttribute` (Angular `16.1`)
|
|
223
|
+
|
|
224
|
+
---
|
|
131
225
|
|
|
132
226
|
## V12.1.0 (2023-07-05)
|
|
133
227
|
|
|
134
228
|
### Changes
|
|
135
229
|
|
|
136
|
-
-
|
|
137
|
-
-
|
|
230
|
+
- improve `search` event (see `Select2ScrollEvent`)
|
|
231
|
+
- add data on `Select2ScrollEvent`
|
|
138
232
|
|
|
139
233
|
## V12.0.0 (2023-06-07)
|
|
140
234
|
|
|
141
235
|
### Breaking Changes
|
|
142
236
|
|
|
143
|
-
-
|
|
144
|
-
-
|
|
237
|
+
- minimum required support has been upgraded to Angular `16.0`.
|
|
238
|
+
- update ngx-infinite-scroll to `16.0.0`.
|
|
145
239
|
|
|
146
240
|
## V11.1.0 (2023-04-15)
|
|
147
241
|
|
|
148
242
|
### Breaking Changes
|
|
149
243
|
|
|
150
|
-
-
|
|
151
|
-
-
|
|
244
|
+
- By default the template is now used in the selection. To revert to previous behavior use `noLabelTemplate`.
|
|
245
|
+
- Code removal for IE11 and Edge
|
|
152
246
|
|
|
153
247
|
### Changes
|
|
154
248
|
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
249
|
+
- add `noLabelTemplate`: do not use the template in the selection, stay in text mode.
|
|
250
|
+
- add `autoCreate`: gives the possibility to add elements not present in the list. #48
|
|
251
|
+
- add CSS variables :
|
|
252
|
+
- `--select2-single-height`
|
|
253
|
+
- `--select2-multiple-height`
|
|
160
254
|
|
|
161
255
|
## V11.0.0 (2023-04-06)
|
|
162
256
|
|
|
163
257
|
### Breaking Changes
|
|
164
258
|
|
|
165
|
-
-
|
|
166
|
-
-
|
|
259
|
+
- minimum required support has been upgraded to Angular `15.0`.
|
|
260
|
+
- update ngx-infinite-scroll to `15.0.0`.
|
|
167
261
|
|
|
168
262
|
### Changes
|
|
169
263
|
|
|
170
|
-
-
|
|
171
|
-
-
|
|
264
|
+
- fix class `select2-container--focus`
|
|
265
|
+
- add item keyboard remove (multiple)
|
|
266
|
+
|
|
267
|
+
---
|
|
172
268
|
|
|
173
269
|
## V10.0.0 (2022-07-27)
|
|
174
270
|
|
|
175
271
|
### Breaking Changes
|
|
176
272
|
|
|
177
|
-
-
|
|
178
|
-
-
|
|
273
|
+
- minimum required support has been upgraded to Angular `14.0`.
|
|
274
|
+
- update ngx-infinite-scroll to `14.0.0`.
|
|
179
275
|
|
|
180
276
|
## V9.0.0 (2022-03-10)
|
|
181
277
|
|
|
182
278
|
### Breaking Changes
|
|
183
279
|
|
|
184
|
-
-
|
|
185
|
-
-
|
|
280
|
+
- minimum required support has been upgraded to Angular `13.2`.
|
|
281
|
+
- update ngx-infinite-scroll to `13.0.2`.
|
|
186
282
|
|
|
187
283
|
## V8.1.0 (2022-02-18)
|
|
188
284
|
|
|
189
285
|
### Breaking Changes
|
|
190
286
|
|
|
191
|
-
-
|
|
287
|
+
- CSS variable `--select2-font-style-color` renamed in `--select2-too-much-font-style`
|
|
192
288
|
|
|
193
289
|
### Changes
|
|
194
290
|
|
|
195
|
-
-
|
|
196
|
-
-
|
|
197
|
-
-
|
|
198
|
-
-
|
|
199
|
-
-
|
|
291
|
+
- add `maxResults` maximum results limit (`0` = no limit, by default : `0`).
|
|
292
|
+
- add `maxResultsMessage` parameter, message when maximum results (by default : `'Too many results…'`)
|
|
293
|
+
- add CSS variables:
|
|
294
|
+
- `--select2-too-much-result-color`
|
|
295
|
+
- `--select2-too-much-result-style`
|
|
200
296
|
|
|
201
297
|
### Corrections
|
|
202
298
|
|
|
203
|
-
-
|
|
299
|
+
- filtered data for group is now correct
|
|
204
300
|
|
|
205
301
|
## V8.0.6 (2022-01-04)
|
|
206
302
|
|
|
207
303
|
### Corrections
|
|
208
304
|
|
|
209
|
-
-
|
|
210
|
-
-
|
|
305
|
+
- Remove `×` for disabled & readonly
|
|
306
|
+
- Update data when new sets come in.
|
|
211
307
|
|
|
212
308
|
## V8.0.5 (2021-09-27)
|
|
213
309
|
|
|
214
310
|
### Corrections
|
|
215
311
|
|
|
216
|
-
-
|
|
312
|
+
- Fix when `overlay` is `true` on start
|
|
217
313
|
|
|
218
314
|
## V8.0.4 (2021-09-23)
|
|
219
315
|
|
|
220
316
|
### Changes
|
|
221
317
|
|
|
222
|
-
-
|
|
318
|
+
- with `overlay` active, the value `auto` for `listPosition` is possible
|
|
223
319
|
|
|
224
320
|
### Corrections
|
|
225
321
|
|
|
226
|
-
-
|
|
322
|
+
- Fix above position with overlay
|
|
227
323
|
|
|
228
324
|
## V8.0.3 (2021-07-02)
|
|
229
325
|
|
|
230
326
|
### Corrections
|
|
231
327
|
|
|
232
|
-
-
|
|
328
|
+
- add more controls for `resultContainer`
|
|
233
329
|
|
|
234
330
|
## V8.0.2 (2021-07-01)
|
|
235
331
|
|
|
236
332
|
### Corrections
|
|
237
333
|
|
|
238
|
-
-
|
|
239
|
-
-
|
|
334
|
+
- fix `open` event with overlay
|
|
335
|
+
- fix `ExpressionChangedAfterItHasBeenCheckedError`
|
|
240
336
|
|
|
241
337
|
## V8.0.1 (2021-07-01)
|
|
242
338
|
|
|
243
339
|
### Corrections
|
|
244
340
|
|
|
245
|
-
-
|
|
341
|
+
- fix overlay size on reopen after resize
|
|
246
342
|
|
|
247
343
|
## V8.0.0 (2021-06-30)
|
|
248
344
|
|
|
249
345
|
### Breaking Changes
|
|
250
346
|
|
|
251
|
-
-
|
|
252
|
-
-
|
|
347
|
+
- minimum required support has been upgraded to Angular `10.0`.
|
|
348
|
+
- remove parameters `material` and `noStyle`, use `styleMode`.
|
|
253
349
|
|
|
254
350
|
### Changes
|
|
255
351
|
|
|
256
|
-
-
|
|
257
|
-
-
|
|
258
|
-
-
|
|
352
|
+
- add `overlay` parameter with Angular CDK, to change the display method of the dropdown list to the root of the DOM. (See README).
|
|
353
|
+
- add `noResultMessage` parameter, to display a message if there is no result.
|
|
354
|
+
- add `styleMode` parameter, to choose an alternative predefined style of the component.
|
|
259
355
|
|
|
260
356
|
## V7.3.1 (2021-04-24)
|
|
261
357
|
|
|
262
358
|
### Corrections
|
|
263
359
|
|
|
264
|
-
-
|
|
360
|
+
- fix placeholder overflow (ellipsis)
|
|
265
361
|
|
|
266
362
|
## V7.3.0 (2021-04-23)
|
|
267
363
|
|
|
268
364
|
### Changes
|
|
269
365
|
|
|
270
|
-
-
|
|
271
|
-
-
|
|
366
|
+
- add `ngx-infinite-scroll` support (See README)
|
|
367
|
+
- add `(removedOption)` event, triggered when an option is removed from the list of selected options options list
|
|
272
368
|
|
|
273
369
|
### Corrections
|
|
274
370
|
|
|
275
|
-
-
|
|
371
|
+
- remove a forgotten logger
|
|
276
372
|
|
|
277
373
|
## V7.2.3 (2021-03-11)
|
|
278
374
|
|
|
279
375
|
### Corrections
|
|
280
376
|
|
|
281
|
-
-
|
|
377
|
+
- fix crash when switching between multiple and non-multiple
|
|
282
378
|
|
|
283
379
|
### Demo
|
|
284
380
|
|
|
285
|
-
-
|
|
381
|
+
- add html generator
|
|
286
382
|
|
|
287
383
|
## V7.2.2 (2021-03-05)
|
|
288
384
|
|
|
289
385
|
### Corrections
|
|
290
386
|
|
|
291
|
-
-
|
|
387
|
+
- hidden options are no longer selectable with keyboard
|
|
292
388
|
|
|
293
389
|
## V7.2.1 (2021-03-04)
|
|
294
390
|
|
|
295
391
|
### Changes
|
|
296
392
|
|
|
297
|
-
-
|
|
298
|
-
-
|
|
393
|
+
- add a possibility to hide an option
|
|
394
|
+
- add an argument `resettable` to display a reset button (in single mode)
|
|
299
395
|
|
|
300
396
|
## V7.2.0 (2020-12-09)
|
|
301
397
|
|
|
302
398
|
### Changes
|
|
303
399
|
|
|
304
|
-
-
|
|
400
|
+
- formating options & groups with template
|
|
305
401
|
|
|
306
402
|
### Corrections
|
|
307
403
|
|
|
308
|
-
-
|
|
404
|
+
- crash when data is empty
|
|
309
405
|
|
|
310
406
|
## V7.1.11 (2020-11-12)
|
|
311
407
|
|
|
312
408
|
### Corrections
|
|
313
409
|
|
|
314
|
-
-
|
|
410
|
+
- support for Angular versions up to 11
|
|
315
411
|
|
|
316
412
|
## V7.1.10 (2020-11-11)
|
|
317
413
|
|
|
318
414
|
### Corrections
|
|
319
415
|
|
|
320
|
-
-
|
|
321
|
-
-
|
|
416
|
+
- also call markForCheck() on the change detector when the filtered values are set
|
|
417
|
+
- support for Angular versions up to 10
|
|
322
418
|
|
|
323
419
|
## V7.1.9 (2020-11-02)
|
|
324
420
|
|
|
325
421
|
### Corrections
|
|
326
422
|
|
|
327
|
-
-
|
|
328
|
-
-
|
|
329
|
-
-
|
|
423
|
+
- Change event is stopped for input
|
|
424
|
+
- Fix CSS for outline
|
|
425
|
+
- Fix infinite valueChange sometimes because of asynchronous test
|
|
330
426
|
|
|
331
427
|
## V7.1.8 (2020-10-26)
|
|
332
428
|
|
|
333
429
|
### Changes
|
|
334
430
|
|
|
335
|
-
-
|
|
336
|
-
-
|
|
337
|
-
-
|
|
338
|
-
-
|
|
339
|
-
-
|
|
340
|
-
-
|
|
431
|
+
- change the return of these events:
|
|
432
|
+
- `(open)`: `void` to `Select2`
|
|
433
|
+
- `(close)`: `void` to `Select2`
|
|
434
|
+
- `(focus)`: `void` to `Select2`
|
|
435
|
+
- `(blur)`: `void` to `Select2`
|
|
436
|
+
- `(search)`: `string` to `Select2SearchEvent`
|
|
341
437
|
|
|
342
438
|
### Corrections
|
|
343
439
|
|
|
344
|
-
-
|
|
440
|
+
- Fix multiple events for `(update)` when value changes
|
|
345
441
|
|
|
346
442
|
## V7.1.7 (2020-10-19)
|
|
347
443
|
|
|
348
444
|
### Corrections
|
|
349
445
|
|
|
350
|
-
-
|
|
446
|
+
- Fix case with 0 in value
|
|
351
447
|
|
|
352
448
|
## V7.1.6 (2020-10-13)
|
|
353
449
|
|
|
354
450
|
### Changes
|
|
355
451
|
|
|
356
|
-
-
|
|
357
|
-
-
|
|
452
|
+
- Added an `id` on the select options.
|
|
453
|
+
- Allow to give a specific id to an option via `Select2Option` config.
|
|
358
454
|
|
|
359
455
|
### Corrections
|
|
360
456
|
|
|
361
|
-
-
|
|
457
|
+
- Remove the `undefined` class wrongly added to options when `classes` is not defined on `Select2Option`.
|
|
362
458
|
|
|
363
459
|
## V7.1.5 (2020-10-06)
|
|
364
460
|
|
|
365
461
|
### Corrections
|
|
366
462
|
|
|
367
|
-
-
|
|
463
|
+
- fix update of list when value is `null`/`undefined`/`empty`
|
|
368
464
|
|
|
369
465
|
## V7.1.4 (2020-09-18)
|
|
370
466
|
|
|
371
467
|
### Changes
|
|
372
468
|
|
|
373
|
-
-
|
|
469
|
+
- add `limitSelection` attribute to limit multiple selection. (By default `0` for no limit)
|
|
374
470
|
|
|
375
471
|
## V7.1.3 (2020-05-07)
|
|
376
472
|
|
|
377
473
|
### Breaking Changes
|
|
378
474
|
|
|
379
|
-
-
|
|
380
|
-
-
|
|
475
|
+
- review the naming of all CSS variables and add new
|
|
476
|
+
- no more predefined variables (it was impossible to overwrite them)
|
|
381
477
|
|
|
382
478
|
## V7.1.2 (2020-04-27)
|
|
383
479
|
|
|
384
480
|
### Changes
|
|
385
481
|
|
|
386
|
-
-
|
|
482
|
+
- add event `(focus)` and `(blur)`
|
|
387
483
|
|
|
388
484
|
### Corrections
|
|
389
485
|
|
|
390
|
-
-
|
|
486
|
+
- fix the focused status which is not removed in some cases or called for the wrong reason
|
|
391
487
|
|
|
392
488
|
## V7.1.1 (2020-04-24)
|
|
393
489
|
|
|
394
490
|
### Changes
|
|
395
491
|
|
|
396
|
-
-
|
|
492
|
+
- add event `(close)`
|
|
397
493
|
|
|
398
494
|
### Corrections
|
|
399
495
|
|
|
400
|
-
-
|
|
496
|
+
- fix dropdown position with hint
|
|
401
497
|
|
|
402
498
|
## V7.1.0 (2020-04-23)
|
|
403
499
|
|
|
404
500
|
### Breaking Changes
|
|
405
501
|
|
|
406
|
-
-
|
|
502
|
+
- `(update)` : return object `Select2UpdateValue` change for `Select2UpdateEvent` object. Please, see the readme.
|
|
407
503
|
|
|
408
504
|
### Changes
|
|
409
505
|
|
|
410
|
-
-
|
|
411
|
-
-
|
|
412
|
-
-
|
|
413
|
-
-
|
|
506
|
+
- add CSS variables for colors (see the readme)
|
|
507
|
+
- add new attributes : `listPosition`, `minCharForSearch`, `noStyle`
|
|
508
|
+
- now, selection container use a flexbox layout (CSS symplification)
|
|
509
|
+
- update the SearchBox status when the list change
|
|
414
510
|
|
|
415
511
|
## V7.0.7 (2020-04-17)
|
|
416
512
|
|
|
417
513
|
### Changes
|
|
418
514
|
|
|
419
|
-
-
|
|
420
|
-
-
|
|
515
|
+
- add a new `displaySearchStatus` attribute
|
|
516
|
+
- edit `minCountForSearch` to make it dynamic and easier to use
|
|
421
517
|
|
|
422
518
|
## V7.0.6 (2020-02-21)
|
|
423
519
|
|
|
424
520
|
### Corrections
|
|
425
521
|
|
|
426
|
-
-
|
|
522
|
+
- fix dropdown when is close
|
|
427
523
|
|
|
428
524
|
## V7.0.5 (2020-02-07)
|
|
429
525
|
|
|
430
526
|
### Corrections
|
|
431
527
|
|
|
432
|
-
-
|
|
528
|
+
- fix `resultMaxHeight` (`@Output` instead of `@Input`)
|
|
433
529
|
|
|
434
530
|
## V7.0.4 (2020-02-06)
|
|
435
531
|
|
|
436
532
|
### Changes
|
|
437
533
|
|
|
438
|
-
-
|
|
439
|
-
-
|
|
440
|
-
-
|
|
441
|
-
-
|
|
534
|
+
- with label and required is true, add a red `*` after the label
|
|
535
|
+
- add new @input parameters :
|
|
536
|
+
- `hideSelectedItems` : for `multiple`, remove selected values (by default : `false`)
|
|
537
|
+
- `resultMaxHeight` : change the height size of results (by default : `200px`);
|
|
442
538
|
|
|
443
539
|
### Corrections
|
|
444
540
|
|
|
445
|
-
-
|
|
446
|
-
-
|
|
541
|
+
- fix value update
|
|
542
|
+
- fix CSS for the height of result when the panel is closed
|
|
447
543
|
|
|
448
544
|
## V7.0.3 (2019-11-08)
|
|
449
545
|
|
|
450
546
|
### Changes
|
|
451
547
|
|
|
452
|
-
-
|
|
548
|
+
- options label accept HTML content
|
|
453
549
|
|
|
454
550
|
## V7.0.2 (2019-08-09)
|
|
455
551
|
|
|
456
552
|
### Corrections
|
|
457
553
|
|
|
458
|
-
-
|
|
459
|
-
-
|
|
554
|
+
- fix scroll when opening the select to go to the selected option(s)
|
|
555
|
+
- fix arrowUp/arrowDown to be able to jump disabled options within the list
|
|
460
556
|
|
|
461
557
|
## V7.0.1 (2019-07-29)
|
|
462
558
|
|
|
463
559
|
### Corrections
|
|
464
560
|
|
|
465
|
-
-
|
|
466
|
-
-
|
|
561
|
+
- fix spam issue on `filteredData` in some cases
|
|
562
|
+
- refactoring the method to handle up/down arrows
|
|
467
563
|
|
|
468
564
|
## V7.0.0 (2018-12-05)
|
|
469
565
|
|
|
470
566
|
### Changes
|
|
471
567
|
|
|
472
|
-
-
|
|
473
|
-
-
|
|
568
|
+
- update to Angular 7
|
|
569
|
+
- add Label with `<select2-label>` tag
|
|
474
570
|
|
|
475
571
|
### Corrections
|
|
476
572
|
|
|
477
|
-
-
|
|
478
|
-
-
|
|
573
|
+
- ajust CSS
|
|
574
|
+
- change the key detection
|
|
479
575
|
|
|
480
576
|
## V6.0.3 (2018-10-29)
|
|
481
577
|
|
|
482
578
|
### Correction
|
|
483
579
|
|
|
484
|
-
-
|
|
580
|
+
- fix formcontrol value update
|
|
485
581
|
|
|
486
582
|
## V6.0.2 (2018-10-12)
|
|
487
583
|
|
|
488
584
|
### Correction
|
|
489
585
|
|
|
490
|
-
-
|
|
491
|
-
-
|
|
586
|
+
- fix error when using FormControls
|
|
587
|
+
- add new examples in the demo
|
|
492
588
|
|
|
493
589
|
## V6.0.1 (2018-07-16)
|
|
494
590
|
|
|
495
591
|
### Correction
|
|
496
592
|
|
|
497
|
-
-
|
|
593
|
+
- fix ExpressionChangedAfterItHasBeenCheckedError
|
|
498
594
|
|
|
499
595
|
## V6.0.0 (2018-07-10)
|
|
500
596
|
|
|
501
597
|
### Breaking changes
|
|
502
598
|
|
|
503
|
-
-
|
|
504
|
-
-
|
|
505
|
-
-
|
|
599
|
+
- **not compatible anymore with Angular 5**
|
|
600
|
+
- upgrade to Angular 6 using Angular CLI
|
|
601
|
+
- change folders architecture to match the Angular CLI `ng new` and `ng generate library`
|