@vaadin/multi-select-combo-box 24.8.11 → 24.8.13
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.8.
|
|
3
|
+
"version": "24.8.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,22 +39,22 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
41
41
|
"@polymer/polymer": "^3.0.0",
|
|
42
|
-
"@vaadin/a11y-base": "~24.8.
|
|
43
|
-
"@vaadin/combo-box": "~24.8.
|
|
44
|
-
"@vaadin/component-base": "~24.8.
|
|
45
|
-
"@vaadin/field-base": "~24.8.
|
|
46
|
-
"@vaadin/input-container": "~24.8.
|
|
47
|
-
"@vaadin/item": "~24.8.
|
|
48
|
-
"@vaadin/lit-renderer": "~24.8.
|
|
49
|
-
"@vaadin/overlay": "~24.8.
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "~24.8.
|
|
51
|
-
"@vaadin/vaadin-material-styles": "~24.8.
|
|
52
|
-
"@vaadin/vaadin-themable-mixin": "~24.8.
|
|
42
|
+
"@vaadin/a11y-base": "~24.8.13",
|
|
43
|
+
"@vaadin/combo-box": "~24.8.13",
|
|
44
|
+
"@vaadin/component-base": "~24.8.13",
|
|
45
|
+
"@vaadin/field-base": "~24.8.13",
|
|
46
|
+
"@vaadin/input-container": "~24.8.13",
|
|
47
|
+
"@vaadin/item": "~24.8.13",
|
|
48
|
+
"@vaadin/lit-renderer": "~24.8.13",
|
|
49
|
+
"@vaadin/overlay": "~24.8.13",
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "~24.8.13",
|
|
51
|
+
"@vaadin/vaadin-material-styles": "~24.8.13",
|
|
52
|
+
"@vaadin/vaadin-themable-mixin": "~24.8.13",
|
|
53
53
|
"lit": "^3.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@vaadin/chai-plugins": "~24.8.
|
|
57
|
-
"@vaadin/test-runner-commands": "~24.8.
|
|
56
|
+
"@vaadin/chai-plugins": "~24.8.13",
|
|
57
|
+
"@vaadin/test-runner-commands": "~24.8.13",
|
|
58
58
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
59
59
|
"sinon": "^18.0.0"
|
|
60
60
|
},
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"web-types.json",
|
|
63
63
|
"web-types.lit.json"
|
|
64
64
|
],
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "3bdf9208b7ad24d55ed3d2ce18be06be71cf3443"
|
|
66
66
|
}
|
|
@@ -109,9 +109,9 @@ class MultiSelectComboBox extends MultiSelectComboBoxMixin(ThemableMixin(Element
|
|
|
109
109
|
<div part="error-message">
|
|
110
110
|
<slot name="error-message"></slot>
|
|
111
111
|
</div>
|
|
112
|
-
</div>
|
|
113
112
|
|
|
114
|
-
|
|
113
|
+
<slot name="tooltip"></slot>
|
|
114
|
+
</div>
|
|
115
115
|
`;
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -76,6 +76,7 @@ export const MultiSelectComboBoxMixin = (superClass) =>
|
|
|
76
76
|
items: {
|
|
77
77
|
type: Array,
|
|
78
78
|
sync: true,
|
|
79
|
+
observer: '__itemsChanged',
|
|
79
80
|
},
|
|
80
81
|
|
|
81
82
|
/**
|
|
@@ -252,6 +253,7 @@ export const MultiSelectComboBoxMixin = (superClass) =>
|
|
|
252
253
|
dataProvider: {
|
|
253
254
|
type: Object,
|
|
254
255
|
sync: true,
|
|
256
|
+
observer: '__dataProviderChanged',
|
|
255
257
|
},
|
|
256
258
|
|
|
257
259
|
/**
|
|
@@ -451,6 +453,11 @@ export const MultiSelectComboBoxMixin = (superClass) =>
|
|
|
451
453
|
announce(this.i18n.cleared);
|
|
452
454
|
}
|
|
453
455
|
|
|
456
|
+
/** @private */
|
|
457
|
+
__syncTopGroup() {
|
|
458
|
+
this._topGroup = this.selectedItemsOnTop ? [...this.selectedItems] : [];
|
|
459
|
+
}
|
|
460
|
+
|
|
454
461
|
/**
|
|
455
462
|
* Clears the cached pages and reloads data from data provider when needed.
|
|
456
463
|
*/
|
|
@@ -458,6 +465,18 @@ export const MultiSelectComboBoxMixin = (superClass) =>
|
|
|
458
465
|
if (this.$ && this.$.comboBox) {
|
|
459
466
|
this.$.comboBox.clearCache();
|
|
460
467
|
}
|
|
468
|
+
|
|
469
|
+
this.__syncTopGroup();
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/** @private */
|
|
473
|
+
__itemsChanged() {
|
|
474
|
+
this.__syncTopGroup();
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/** @private */
|
|
478
|
+
__dataProviderChanged() {
|
|
479
|
+
this.__syncTopGroup();
|
|
461
480
|
}
|
|
462
481
|
|
|
463
482
|
/**
|
|
@@ -175,9 +175,9 @@ class MultiSelectComboBox extends MultiSelectComboBoxMixin(ThemableMixin(Element
|
|
|
175
175
|
<div part="error-message">
|
|
176
176
|
<slot name="error-message"></slot>
|
|
177
177
|
</div>
|
|
178
|
-
</div>
|
|
179
178
|
|
|
180
|
-
|
|
179
|
+
<slot name="tooltip"></slot>
|
|
180
|
+
</div>
|
|
181
181
|
`;
|
|
182
182
|
}
|
|
183
183
|
}
|
package/web-types.json
CHANGED