@vaadin/overlay 25.0.1 → 25.1.0-alpha1

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/overlay",
3
- "version": "25.0.1",
3
+ "version": "25.1.0-alpha1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,17 +33,17 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@open-wc/dedupe-mixin": "^1.3.0",
36
- "@vaadin/a11y-base": "~25.0.1",
37
- "@vaadin/component-base": "~25.0.1",
38
- "@vaadin/vaadin-themable-mixin": "~25.0.1",
36
+ "@vaadin/a11y-base": "25.1.0-alpha1",
37
+ "@vaadin/component-base": "25.1.0-alpha1",
38
+ "@vaadin/vaadin-themable-mixin": "25.1.0-alpha1",
39
39
  "lit": "^3.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@vaadin/chai-plugins": "~25.0.1",
43
- "@vaadin/test-runner-commands": "~25.0.1",
42
+ "@vaadin/chai-plugins": "25.1.0-alpha1",
43
+ "@vaadin/test-runner-commands": "25.1.0-alpha1",
44
44
  "@vaadin/testing-helpers": "^2.0.0",
45
- "@vaadin/vaadin-lumo-styles": "~25.0.1",
45
+ "@vaadin/vaadin-lumo-styles": "25.1.0-alpha1",
46
46
  "sinon": "^21.0.0"
47
47
  },
48
- "gitHead": "ced28c07a8abee586510349b312452c8a555fd10"
48
+ "gitHead": "c789cdd350bcd74b280268a83f5475ad7f2f65e1"
49
49
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import '@vaadin/component-base/src/styles/style-props.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { FocusRestorationController } from '@vaadin/a11y-base/src/focus-restoration-controller.js';
7
7
  import { FocusTrapController } from '@vaadin/a11y-base/src/focus-trap-controller.js';
8
- import { getDeepActiveElement, isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';
8
+ import { getDeepActiveElement, isElementHidden, isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';
9
9
 
10
10
  /**
11
11
  * @polymerMixin
@@ -111,7 +111,7 @@ export const OverlayFocusMixin = (superClass) =>
111
111
  * @protected
112
112
  */
113
113
  _trapFocus() {
114
- if (this.focusTrap) {
114
+ if (this.focusTrap && !isElementHidden(this._focusTrapRoot)) {
115
115
  this.__focusTrapController.trapFocus(this._focusTrapRoot);
116
116
  }
117
117
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { isIOS } from '@vaadin/component-base/src/browser-utils.js';
@@ -148,6 +148,11 @@ export const OverlayMixin = (superClass) =>
148
148
  this.$.overlay.focus();
149
149
  }
150
150
  });
151
+
152
+ this.addEventListener('animationcancel', () => {
153
+ this._flushAnimation('opening');
154
+ this._flushAnimation('closing');
155
+ });
151
156
  }
152
157
 
153
158
  /** @protected */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { getAncestorRootNodes } from '@vaadin/component-base/src/dom-utils.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import type { Constructor } from '@open-wc/dedupe-mixin';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2024 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2024 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2024 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2024 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2017 - 2025 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2026 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { html, LitElement } from 'lit';