@vaadin/multi-select-combo-box 23.1.0 → 23.1.1
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": "23.1.
|
|
3
|
+
"version": "23.1.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/combo-box": "^23.1.
|
|
37
|
-
"@vaadin/component-base": "^23.1.
|
|
38
|
-
"@vaadin/field-base": "^23.1.
|
|
39
|
-
"@vaadin/input-container": "^23.1.
|
|
40
|
-
"@vaadin/vaadin-lumo-styles": "^23.1.
|
|
41
|
-
"@vaadin/vaadin-material-styles": "^23.1.
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "^23.1.
|
|
36
|
+
"@vaadin/combo-box": "^23.1.1",
|
|
37
|
+
"@vaadin/component-base": "^23.1.1",
|
|
38
|
+
"@vaadin/field-base": "^23.1.1",
|
|
39
|
+
"@vaadin/input-container": "^23.1.1",
|
|
40
|
+
"@vaadin/vaadin-lumo-styles": "^23.1.1",
|
|
41
|
+
"@vaadin/vaadin-material-styles": "^23.1.1",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "^23.1.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@esm-bundle/chai": "^4.3.4",
|
|
46
46
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
47
47
|
"sinon": "^13.0.2"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "390458d6519433a2dd502cef90da48e84573a275"
|
|
50
50
|
}
|
|
@@ -50,6 +50,14 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
|
|
|
50
50
|
|
|
51
51
|
static get properties() {
|
|
52
52
|
return {
|
|
53
|
+
/**
|
|
54
|
+
* A subset of items, filtered based on the user input.
|
|
55
|
+
*/
|
|
56
|
+
filteredItems: {
|
|
57
|
+
type: Array,
|
|
58
|
+
notify: true,
|
|
59
|
+
},
|
|
60
|
+
|
|
53
61
|
/**
|
|
54
62
|
* When set to `true`, "loading" attribute is set
|
|
55
63
|
* on the host and the overlay element.
|
|
@@ -173,6 +173,7 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
|
|
|
173
173
|
on-combo-box-item-selected="_onComboBoxItemSelected"
|
|
174
174
|
on-change="_onComboBoxChange"
|
|
175
175
|
on-custom-value-set="_onCustomValueSet"
|
|
176
|
+
on-filtered-items-changed="_onFilteredItemsChanged"
|
|
176
177
|
>
|
|
177
178
|
<vaadin-multi-select-combo-box-container
|
|
178
179
|
part="input-field"
|
|
@@ -605,6 +606,17 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
|
|
|
605
606
|
}
|
|
606
607
|
}
|
|
607
608
|
|
|
609
|
+
/**
|
|
610
|
+
* Implement two-way binding for the `filteredItems` property
|
|
611
|
+
* that can be set on the internal combo-box element.
|
|
612
|
+
*
|
|
613
|
+
* @param {CustomEvent} event
|
|
614
|
+
* @private
|
|
615
|
+
*/
|
|
616
|
+
_onFilteredItemsChanged(event) {
|
|
617
|
+
this.filteredItems = event.detail.value;
|
|
618
|
+
}
|
|
619
|
+
|
|
608
620
|
/** @private */
|
|
609
621
|
_readonlyChanged(readonly, oldReadonly) {
|
|
610
622
|
if (readonly || oldReadonly) {
|
|
@@ -863,6 +875,18 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
|
|
|
863
875
|
announce(this.i18n.cleared);
|
|
864
876
|
}
|
|
865
877
|
|
|
878
|
+
/**
|
|
879
|
+
* Override an event listener from `InputControlMixin` to
|
|
880
|
+
* stop the change event re-targeted from the input.
|
|
881
|
+
*
|
|
882
|
+
* @param {!Event} event
|
|
883
|
+
* @protected
|
|
884
|
+
* @override
|
|
885
|
+
*/
|
|
886
|
+
_onChange(event) {
|
|
887
|
+
event.stopPropagation();
|
|
888
|
+
}
|
|
889
|
+
|
|
866
890
|
/**
|
|
867
891
|
* Override an event listener from `KeyboardMixin`.
|
|
868
892
|
* Do not call `super` in order to override clear
|