@vaadin/multi-select-combo-box 24.2.0-alpha4 → 24.2.0-alpha5
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.2.0-
|
|
3
|
+
"version": "24.2.0-alpha5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/a11y-base": "24.2.0-
|
|
41
|
-
"@vaadin/combo-box": "24.2.0-
|
|
42
|
-
"@vaadin/component-base": "24.2.0-
|
|
43
|
-
"@vaadin/field-base": "24.2.0-
|
|
44
|
-
"@vaadin/input-container": "24.2.0-
|
|
45
|
-
"@vaadin/item": "24.2.0-
|
|
46
|
-
"@vaadin/lit-renderer": "24.2.0-
|
|
47
|
-
"@vaadin/overlay": "24.2.0-
|
|
48
|
-
"@vaadin/vaadin-lumo-styles": "24.2.0-
|
|
49
|
-
"@vaadin/vaadin-material-styles": "24.2.0-
|
|
50
|
-
"@vaadin/vaadin-themable-mixin": "24.2.0-
|
|
40
|
+
"@vaadin/a11y-base": "24.2.0-alpha5",
|
|
41
|
+
"@vaadin/combo-box": "24.2.0-alpha5",
|
|
42
|
+
"@vaadin/component-base": "24.2.0-alpha5",
|
|
43
|
+
"@vaadin/field-base": "24.2.0-alpha5",
|
|
44
|
+
"@vaadin/input-container": "24.2.0-alpha5",
|
|
45
|
+
"@vaadin/item": "24.2.0-alpha5",
|
|
46
|
+
"@vaadin/lit-renderer": "24.2.0-alpha5",
|
|
47
|
+
"@vaadin/overlay": "24.2.0-alpha5",
|
|
48
|
+
"@vaadin/vaadin-lumo-styles": "24.2.0-alpha5",
|
|
49
|
+
"@vaadin/vaadin-material-styles": "24.2.0-alpha5",
|
|
50
|
+
"@vaadin/vaadin-themable-mixin": "24.2.0-alpha5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@esm-bundle/chai": "^4.3.4",
|
|
54
|
-
"@vaadin/testing-helpers": "^0.4.
|
|
54
|
+
"@vaadin/testing-helpers": "^0.4.3",
|
|
55
55
|
"lit": "^2.0.0",
|
|
56
56
|
"sinon": "^13.0.2"
|
|
57
57
|
},
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"web-types.json",
|
|
60
60
|
"web-types.lit.json"
|
|
61
61
|
],
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "73db22a5e8993e3ce48d1e6540d30eff9cb5c257"
|
|
63
63
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import type { TemplateResult } from 'lit';
|
|
7
6
|
import type { DirectiveResult } from 'lit/directive.js';
|
|
8
7
|
import type { ComboBoxItemModel } from '@vaadin/combo-box/src/vaadin-combo-box.js';
|
|
8
|
+
import type { LitRendererResult } from '@vaadin/lit-renderer';
|
|
9
9
|
import { LitRendererDirective } from '@vaadin/lit-renderer';
|
|
10
10
|
import type { MultiSelectComboBox } from '../vaadin-multi-select-combo-box.js';
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ export type MultiSelectComboBoxLitRenderer<TItem> = (
|
|
|
13
13
|
item: TItem,
|
|
14
14
|
model: ComboBoxItemModel<TItem>,
|
|
15
15
|
comboBox: MultiSelectComboBox<TItem>,
|
|
16
|
-
) =>
|
|
16
|
+
) => LitRendererResult;
|
|
17
17
|
|
|
18
18
|
export class MultiSelectComboBoxRendererDirective<TItem> extends LitRendererDirective<
|
|
19
19
|
MultiSelectComboBox,
|
|
@@ -232,18 +232,20 @@ class MultiSelectComboBoxInternal extends ComboBoxDataProviderMixin(ComboBoxMixi
|
|
|
232
232
|
/**
|
|
233
233
|
* Override method inherited from the combo-box
|
|
234
234
|
* to close dropdown on blur when readonly.
|
|
235
|
-
* @param {
|
|
235
|
+
* @param {boolean} focused
|
|
236
236
|
* @protected
|
|
237
237
|
* @override
|
|
238
238
|
*/
|
|
239
|
-
|
|
239
|
+
_setFocused(focused) {
|
|
240
240
|
// Disable combo-box logic that updates selectedItem
|
|
241
241
|
// based on the overlay focused index on input blur
|
|
242
|
-
|
|
242
|
+
if (!focused) {
|
|
243
|
+
this._ignoreCommitValue = true;
|
|
244
|
+
}
|
|
243
245
|
|
|
244
|
-
super.
|
|
246
|
+
super._setFocused(focused);
|
|
245
247
|
|
|
246
|
-
if (this.readonly && !this._closeOnBlurIsPrevented) {
|
|
248
|
+
if (!focused && this.readonly && !this._closeOnBlurIsPrevented) {
|
|
247
249
|
this.close();
|
|
248
250
|
}
|
|
249
251
|
}
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED