@vaadin/multi-select-combo-box 24.1.13 → 24.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/multi-select-combo-box",
3
- "version": "24.1.13",
3
+ "version": "24.1.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,17 +37,17 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/a11y-base": "~24.1.13",
41
- "@vaadin/combo-box": "~24.1.13",
42
- "@vaadin/component-base": "~24.1.13",
43
- "@vaadin/field-base": "~24.1.13",
44
- "@vaadin/input-container": "~24.1.13",
45
- "@vaadin/item": "~24.1.13",
46
- "@vaadin/lit-renderer": "~24.1.13",
47
- "@vaadin/overlay": "~24.1.13",
48
- "@vaadin/vaadin-lumo-styles": "~24.1.13",
49
- "@vaadin/vaadin-material-styles": "~24.1.13",
50
- "@vaadin/vaadin-themable-mixin": "~24.1.13"
40
+ "@vaadin/a11y-base": "~24.1.15",
41
+ "@vaadin/combo-box": "~24.1.15",
42
+ "@vaadin/component-base": "~24.1.15",
43
+ "@vaadin/field-base": "~24.1.15",
44
+ "@vaadin/input-container": "~24.1.15",
45
+ "@vaadin/item": "~24.1.15",
46
+ "@vaadin/lit-renderer": "~24.1.15",
47
+ "@vaadin/overlay": "~24.1.15",
48
+ "@vaadin/vaadin-lumo-styles": "~24.1.15",
49
+ "@vaadin/vaadin-material-styles": "~24.1.15",
50
+ "@vaadin/vaadin-themable-mixin": "~24.1.15"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@esm-bundle/chai": "^4.3.4",
@@ -59,5 +59,5 @@
59
59
  "web-types.json",
60
60
  "web-types.lit.json"
61
61
  ],
62
- "gitHead": "cc297ef7458e98e210db17bfb18eec7ad2932f42"
62
+ "gitHead": "9cf98ac30128388bee2710410afe01a6b725b0aa"
63
63
  }
@@ -138,6 +138,22 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
138
138
  this._toggleElement = this.querySelector('.toggle-button');
139
139
  }
140
140
 
141
+ /**
142
+ * Override combo-box method to group selected
143
+ * items at the top of the overlay.
144
+ *
145
+ * @protected
146
+ * @override
147
+ */
148
+ _setDropdownItems(items) {
149
+ if (this.readonly) {
150
+ this._dropdownItems = this.selectedItems;
151
+ return;
152
+ }
153
+
154
+ this._dropdownItems = items;
155
+ }
156
+
141
157
  /**
142
158
  * Override combo-box method to set correct owner for using by item renderers.
143
159
  * This needs to be done before the scroller gets added to the DOM to ensure
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/multi-select-combo-box",
4
- "version": "24.1.13",
4
+ "version": "24.1.15",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/multi-select-combo-box",
4
- "version": "24.1.13",
4
+ "version": "24.1.15",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {