@vaadin/multi-select-combo-box 24.2.0-alpha4 → 24.2.0-alpha6

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-alpha4",
3
+ "version": "24.2.0-alpha6",
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-alpha4",
41
- "@vaadin/combo-box": "24.2.0-alpha4",
42
- "@vaadin/component-base": "24.2.0-alpha4",
43
- "@vaadin/field-base": "24.2.0-alpha4",
44
- "@vaadin/input-container": "24.2.0-alpha4",
45
- "@vaadin/item": "24.2.0-alpha4",
46
- "@vaadin/lit-renderer": "24.2.0-alpha4",
47
- "@vaadin/overlay": "24.2.0-alpha4",
48
- "@vaadin/vaadin-lumo-styles": "24.2.0-alpha4",
49
- "@vaadin/vaadin-material-styles": "24.2.0-alpha4",
50
- "@vaadin/vaadin-themable-mixin": "24.2.0-alpha4"
40
+ "@vaadin/a11y-base": "24.2.0-alpha6",
41
+ "@vaadin/combo-box": "24.2.0-alpha6",
42
+ "@vaadin/component-base": "24.2.0-alpha6",
43
+ "@vaadin/field-base": "24.2.0-alpha6",
44
+ "@vaadin/input-container": "24.2.0-alpha6",
45
+ "@vaadin/item": "24.2.0-alpha6",
46
+ "@vaadin/lit-renderer": "24.2.0-alpha6",
47
+ "@vaadin/overlay": "24.2.0-alpha6",
48
+ "@vaadin/vaadin-lumo-styles": "24.2.0-alpha6",
49
+ "@vaadin/vaadin-material-styles": "24.2.0-alpha6",
50
+ "@vaadin/vaadin-themable-mixin": "24.2.0-alpha6"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@esm-bundle/chai": "^4.3.4",
54
- "@vaadin/testing-helpers": "^0.4.2",
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": "aaf7c5ebfea62628210eead4229be1718ac6b129"
62
+ "gitHead": "3ef6e6cd66919b3ef7637e42916e4c54656beb51"
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
- ) => TemplateResult;
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 {FocusEvent} event
235
+ * @param {boolean} focused
236
236
  * @protected
237
237
  * @override
238
238
  */
239
- _onFocusout(event) {
239
+ _setFocused(focused) {
240
240
  // Disable combo-box logic that updates selectedItem
241
241
  // based on the overlay focused index on input blur
242
- this._ignoreCommitValue = true;
242
+ if (!focused) {
243
+ this._ignoreCommitValue = true;
244
+ }
243
245
 
244
- super._onFocusout(event);
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/multi-select-combo-box",
4
- "version": "24.2.0-alpha4",
4
+ "version": "24.2.0-alpha6",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/multi-select-combo-box",
4
- "version": "24.2.0-alpha4",
4
+ "version": "24.2.0-alpha6",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {