@vaadin/multi-select-combo-box 24.9.5 → 24.9.6
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 +15 -15
- package/src/vaadin-multi-select-combo-box-mixin.js +19 -0
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/multi-select-combo-box",
|
|
3
|
-
"version": "24.9.
|
|
3
|
+
"version": "24.9.6",
|
|
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.9.
|
|
43
|
-
"@vaadin/combo-box": "~24.9.
|
|
44
|
-
"@vaadin/component-base": "~24.9.
|
|
45
|
-
"@vaadin/field-base": "~24.9.
|
|
46
|
-
"@vaadin/input-container": "~24.9.
|
|
47
|
-
"@vaadin/item": "~24.9.
|
|
48
|
-
"@vaadin/lit-renderer": "~24.9.
|
|
49
|
-
"@vaadin/overlay": "~24.9.
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "~24.9.
|
|
51
|
-
"@vaadin/vaadin-material-styles": "~24.9.
|
|
52
|
-
"@vaadin/vaadin-themable-mixin": "~24.9.
|
|
42
|
+
"@vaadin/a11y-base": "~24.9.6",
|
|
43
|
+
"@vaadin/combo-box": "~24.9.6",
|
|
44
|
+
"@vaadin/component-base": "~24.9.6",
|
|
45
|
+
"@vaadin/field-base": "~24.9.6",
|
|
46
|
+
"@vaadin/input-container": "~24.9.6",
|
|
47
|
+
"@vaadin/item": "~24.9.6",
|
|
48
|
+
"@vaadin/lit-renderer": "~24.9.6",
|
|
49
|
+
"@vaadin/overlay": "~24.9.6",
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "~24.9.6",
|
|
51
|
+
"@vaadin/vaadin-material-styles": "~24.9.6",
|
|
52
|
+
"@vaadin/vaadin-themable-mixin": "~24.9.6",
|
|
53
53
|
"lit": "^3.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@vaadin/chai-plugins": "~24.9.
|
|
57
|
-
"@vaadin/test-runner-commands": "~24.9.
|
|
56
|
+
"@vaadin/chai-plugins": "~24.9.6",
|
|
57
|
+
"@vaadin/test-runner-commands": "~24.9.6",
|
|
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": "04dec563d48efd4e5ca0c0b96687302666ee5ab1"
|
|
66
66
|
}
|
|
@@ -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
|
/**
|
package/web-types.json
CHANGED