@vaadin/date-picker 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/date-picker",
3
- "version": "25.2.10",
3
+ "version": "25.2.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,21 +35,21 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "~25.2.10",
39
- "@vaadin/button": "~25.2.10",
40
- "@vaadin/component-base": "~25.2.10",
41
- "@vaadin/field-base": "~25.2.10",
42
- "@vaadin/input-container": "~25.2.10",
43
- "@vaadin/overlay": "~25.2.10",
44
- "@vaadin/vaadin-themable-mixin": "~25.2.10",
38
+ "@vaadin/a11y-base": "~25.2.12",
39
+ "@vaadin/button": "~25.2.12",
40
+ "@vaadin/component-base": "~25.2.12",
41
+ "@vaadin/field-base": "~25.2.12",
42
+ "@vaadin/input-container": "~25.2.12",
43
+ "@vaadin/overlay": "~25.2.12",
44
+ "@vaadin/vaadin-themable-mixin": "~25.2.12",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vaadin/aura": "~25.2.10",
49
- "@vaadin/chai-plugins": "~25.2.10",
50
- "@vaadin/test-runner-commands": "~25.2.10",
48
+ "@vaadin/aura": "~25.2.12",
49
+ "@vaadin/chai-plugins": "~25.2.12",
50
+ "@vaadin/test-runner-commands": "~25.2.12",
51
51
  "@vaadin/testing-helpers": "^2.0.0",
52
- "@vaadin/vaadin-lumo-styles": "~25.2.10",
52
+ "@vaadin/vaadin-lumo-styles": "~25.2.12",
53
53
  "sinon": "^22.0.0"
54
54
  },
55
55
  "customElements": "custom-elements.json",
@@ -57,5 +57,5 @@
57
57
  "web-types.json",
58
58
  "web-types.lit.json"
59
59
  ],
60
- "gitHead": "7715101508f7e689bd77354322fb80b3d7ad402d"
60
+ "gitHead": "7261133c2bc1c781f5b00037d896bac5443a4e00"
61
61
  }
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { hideOthers } from '@vaadin/a11y-base/src/aria-hidden.js';
7
7
  import { DelegateFocusMixin } from '@vaadin/a11y-base/src/delegate-focus-mixin.js';
8
- import { isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';
8
+ import { isElementFocused, isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';
9
9
  import { KeyboardMixin } from '@vaadin/a11y-base/src/keyboard-mixin.js';
10
10
  import { isIOS } from '@vaadin/component-base/src/browser-utils.js';
11
11
  import { I18nMixin } from '@vaadin/component-base/src/i18n-mixin.js';
@@ -989,6 +989,12 @@ export const DatePickerMixin = (subclass) =>
989
989
  if (!this.value && !this._keyboardActive) {
990
990
  this._requestValidation();
991
991
  }
992
+
993
+ // Focusout events while closing arrive with `opened` still true and keep the focused state.
994
+ // Clear it here unless focus was restored to the input, as at a wide viewport or on Esc.
995
+ if (!this.inputElement || !isElementFocused(this.inputElement)) {
996
+ this._setFocused(false);
997
+ }
992
998
  }
993
999
 
994
1000
  /** @private */
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/date-picker",
4
- "version": "25.2.10",
4
+ "version": "25.2.12",
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/date-picker",
4
- "version": "25.2.10",
4
+ "version": "25.2.12",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {