ng-select2-component 13.0.2 → 13.0.4

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 CHANGED
@@ -1,10 +1,24 @@
1
1
  # Changelog of ng-select2
2
2
 
3
+ ## V13.0.3 (2023-08-xx)
4
+
5
+ ### Changes
6
+
7
+ - improve keyboard navigation
8
+ - fixed arrow navigation when there is no search field
9
+ - improve tab and input actions (fix when unfocus)
10
+ - add CSS variables:
11
+ - `--select2-selection-line-height`
12
+ - `--select2-selection-padding`
13
+ - `--select2-selection-multiple-gap`
14
+ - `--select2-selection-multiple-padding`
15
+ - `--select2-option-padding`
16
+
3
17
  ## V13.0.2 (2023-08-15)
4
18
 
5
19
  ### Changes
6
20
 
7
- Fix customSearchEnabled
21
+ - fix customSearchEnabled
8
22
 
9
23
  ## V13.0.1 (2023-07-31)
10
24
 
@@ -50,7 +64,9 @@ Fix customSearchEnabled
50
64
 
51
65
  - add `noLabelTemplate`: do not use the template in the selection, stay in text mode.
52
66
  - add `autoCreate`: gives the possibility to add elements not present in the list. #48
53
- - add CSS variables : `--select2-single-height`, `--select2-multiple-height`
67
+ - add CSS variables :
68
+ - `--select2-single-height`
69
+ - `--select2-multiple-height`
54
70
 
55
71
  ## V11.0.0 (2023-04-06)
56
72
 
@@ -88,7 +104,9 @@ Fix customSearchEnabled
88
104
 
89
105
  - add `maxResults` maximum results limit (`0` = no limit, by default : `0`).
90
106
  - add `maxResultsMessage` parameter, message when maximum results (by default : `'Too many results…'`)
91
- - add CSS variable `--select2-too-much-result-color` and `--select2-too-much-result-style`
107
+ - add CSS variables:
108
+ - `--select2-too-much-result-color`
109
+ - `--select2-too-much-result-style`
92
110
 
93
111
  ### Corrections
94
112
 
package/README.md CHANGED
@@ -286,6 +286,12 @@ It's possible to change different colors (and more) with CSS variables without h
286
286
  --select2-selection-border-color: #aaa;
287
287
  --select2-selection-focus-border-color: #000;
288
288
  --select2-selection-text-color: #111;
289
+ --select2-selection-line-height: 28px;
290
+ --select2-selection-padding: 0 0 0 8px;
291
+
292
+ /* selection (multiple) */
293
+ --select2-selection-multiple-gap: 2px 5px;
294
+ --select2-selection-multiple-padding: 2px 5px;
289
295
 
290
296
  /* selection: choice item (multiple) */
291
297
  --select2-selection-choice-background: #e4e4e4;
@@ -334,6 +340,7 @@ It's possible to change different colors (and more) with CSS variables without h
334
340
  --select2-option-highlighted-background: #5897fb;
335
341
  --select2-option-group-text-color: gray;
336
342
  --select2-option-group-background: transparent;
343
+ --select2-option-padding: 6px;
337
344
 
338
345
  /* hint */
339
346
  --select2-hint-text-color: #888;