@vaadin/multi-select-combo-box 25.2.10 → 25.2.12
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 +29 -3
- 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.12",
|
|
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.12",
|
|
41
|
+
"@vaadin/combo-box": "~25.2.12",
|
|
42
|
+
"@vaadin/component-base": "~25.2.12",
|
|
43
|
+
"@vaadin/field-base": "~25.2.12",
|
|
44
|
+
"@vaadin/input-container": "~25.2.12",
|
|
45
|
+
"@vaadin/item": "~25.2.12",
|
|
46
|
+
"@vaadin/lit-renderer": "~25.2.12",
|
|
47
|
+
"@vaadin/overlay": "~25.2.12",
|
|
48
|
+
"@vaadin/vaadin-themable-mixin": "~25.2.12",
|
|
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.12",
|
|
53
|
+
"@vaadin/chai-plugins": "~25.2.12",
|
|
54
|
+
"@vaadin/test-runner-commands": "~25.2.12",
|
|
55
55
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
56
|
-
"@vaadin/vaadin-lumo-styles": "~25.2.
|
|
56
|
+
"@vaadin/vaadin-lumo-styles": "~25.2.12",
|
|
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": "7261133c2bc1c781f5b00037d896bac5443a4e00"
|
|
65
65
|
}
|
|
@@ -216,7 +216,7 @@ export const MultiSelectComboBoxMixin = (superClass) =>
|
|
|
216
216
|
static get observers() {
|
|
217
217
|
return [
|
|
218
218
|
'_selectedItemsChanged(selectedItems)',
|
|
219
|
-
'__openedOrItemsChanged(opened, _dropdownItems, loading
|
|
219
|
+
'__openedOrItemsChanged(opened, _dropdownItems, loading)',
|
|
220
220
|
'__updateOverflowChip(_overflow, _overflowItems, disabled, readonly)',
|
|
221
221
|
'__updateScroller(opened, _dropdownItems, _focusedIndex, _theme)',
|
|
222
222
|
'__updateTopGroup(selectedItemsOnTop, selectedItems, opened)',
|
|
@@ -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
|
|
@@ -492,10 +507,10 @@ export const MultiSelectComboBoxMixin = (superClass) =>
|
|
|
492
507
|
}
|
|
493
508
|
|
|
494
509
|
/** @private */
|
|
495
|
-
__openedOrItemsChanged(opened, items, loading
|
|
510
|
+
__openedOrItemsChanged(opened, items, loading) {
|
|
496
511
|
// Close the overlay if there are no items to display.
|
|
497
512
|
// See https://github.com/vaadin/vaadin-combo-box/pull/964
|
|
498
|
-
this._overlayOpened = opened && (
|
|
513
|
+
this._overlayOpened = opened && (loading || !!items?.length);
|
|
499
514
|
}
|
|
500
515
|
|
|
501
516
|
/**
|
|
@@ -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