@vaadin/multi-select-combo-box 25.2.11 → 25.2.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 +15 -15
- package/src/vaadin-multi-select-combo-box-mixin.js +26 -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": "25.2.
|
|
3
|
+
"version": "25.2.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/a11y-base": "~25.2.
|
|
41
|
-
"@vaadin/combo-box": "~25.2.
|
|
42
|
-
"@vaadin/component-base": "~25.2.
|
|
43
|
-
"@vaadin/field-base": "~25.2.
|
|
44
|
-
"@vaadin/input-container": "~25.2.
|
|
45
|
-
"@vaadin/item": "~25.2.
|
|
46
|
-
"@vaadin/lit-renderer": "~25.2.
|
|
47
|
-
"@vaadin/overlay": "~25.2.
|
|
48
|
-
"@vaadin/vaadin-themable-mixin": "~25.2.
|
|
40
|
+
"@vaadin/a11y-base": "~25.2.13",
|
|
41
|
+
"@vaadin/combo-box": "~25.2.13",
|
|
42
|
+
"@vaadin/component-base": "~25.2.13",
|
|
43
|
+
"@vaadin/field-base": "~25.2.13",
|
|
44
|
+
"@vaadin/input-container": "~25.2.13",
|
|
45
|
+
"@vaadin/item": "~25.2.13",
|
|
46
|
+
"@vaadin/lit-renderer": "~25.2.13",
|
|
47
|
+
"@vaadin/overlay": "~25.2.13",
|
|
48
|
+
"@vaadin/vaadin-themable-mixin": "~25.2.13",
|
|
49
49
|
"lit": "^3.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@vaadin/aura": "~25.2.
|
|
53
|
-
"@vaadin/chai-plugins": "~25.2.
|
|
54
|
-
"@vaadin/test-runner-commands": "~25.2.
|
|
52
|
+
"@vaadin/aura": "~25.2.13",
|
|
53
|
+
"@vaadin/chai-plugins": "~25.2.13",
|
|
54
|
+
"@vaadin/test-runner-commands": "~25.2.13",
|
|
55
55
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
56
|
-
"@vaadin/vaadin-lumo-styles": "~25.2.
|
|
56
|
+
"@vaadin/vaadin-lumo-styles": "~25.2.13",
|
|
57
57
|
"sinon": "^22.0.0"
|
|
58
58
|
},
|
|
59
59
|
"customElements": "custom-elements.json",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"web-types.json",
|
|
62
62
|
"web-types.lit.json"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "601112f027fb53668eed85f9593fa6fe5222fa00"
|
|
65
65
|
}
|
|
@@ -450,6 +450,21 @@ export const MultiSelectComboBoxMixin = (superClass) =>
|
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
+
/**
|
|
454
|
+
* Override method from `ComboBoxBaseMixin` to only open the dropdown
|
|
455
|
+
* when clicking on the label or the input field.
|
|
456
|
+
* @param {Event} event
|
|
457
|
+
* @protected
|
|
458
|
+
* @override
|
|
459
|
+
*/
|
|
460
|
+
_onHostClick(event) {
|
|
461
|
+
const path = event.composedPath();
|
|
462
|
+
|
|
463
|
+
if (path.includes(this._labelNode) || path.includes(this._inputField)) {
|
|
464
|
+
super._onHostClick(event);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
453
468
|
/**
|
|
454
469
|
* Override method from `ComboBoxBaseMixin` to implement clearing logic.
|
|
455
470
|
* @protected
|
|
@@ -509,6 +524,17 @@ export const MultiSelectComboBoxMixin = (superClass) =>
|
|
|
509
524
|
}
|
|
510
525
|
}
|
|
511
526
|
|
|
527
|
+
/**
|
|
528
|
+
* Override method from `ComboBoxBaseMixin` to revert the input to the
|
|
529
|
+
* filter, as this component does not use `value` for the input text.
|
|
530
|
+
* @protected
|
|
531
|
+
* @override
|
|
532
|
+
*/
|
|
533
|
+
_revertInputValue() {
|
|
534
|
+
this._inputElementValue = this.filter;
|
|
535
|
+
this._clearSelectionRange();
|
|
536
|
+
}
|
|
537
|
+
|
|
512
538
|
/**
|
|
513
539
|
* @protected
|
|
514
540
|
* @override
|
package/web-types.json
CHANGED