@vaadin/popover 25.3.0-alpha5 → 25.3.0-alpha7

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/popover",
3
- "version": "25.3.0-alpha5",
3
+ "version": "25.3.0-alpha7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,19 +37,19 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
- "@vaadin/a11y-base": "25.3.0-alpha5",
41
- "@vaadin/component-base": "25.3.0-alpha5",
42
- "@vaadin/lit-renderer": "25.3.0-alpha5",
43
- "@vaadin/overlay": "25.3.0-alpha5",
44
- "@vaadin/vaadin-themable-mixin": "25.3.0-alpha5",
40
+ "@vaadin/a11y-base": "25.3.0-alpha7",
41
+ "@vaadin/component-base": "25.3.0-alpha7",
42
+ "@vaadin/lit-renderer": "25.3.0-alpha7",
43
+ "@vaadin/overlay": "25.3.0-alpha7",
44
+ "@vaadin/vaadin-themable-mixin": "25.3.0-alpha7",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vaadin/aura": "25.3.0-alpha5",
49
- "@vaadin/chai-plugins": "25.3.0-alpha5",
50
- "@vaadin/test-runner-commands": "25.3.0-alpha5",
48
+ "@vaadin/aura": "25.3.0-alpha7",
49
+ "@vaadin/chai-plugins": "25.3.0-alpha7",
50
+ "@vaadin/test-runner-commands": "25.3.0-alpha7",
51
51
  "@vaadin/testing-helpers": "^2.0.0",
52
- "@vaadin/vaadin-lumo-styles": "25.3.0-alpha5",
52
+ "@vaadin/vaadin-lumo-styles": "25.3.0-alpha7",
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": "0be2142cd8b95a562d58735033f947f7109103ab"
60
+ "gitHead": "ae7b9823df5598faebd7a482993029ee489c35ae"
61
61
  }
@@ -78,11 +78,11 @@ class PopoverOverlay extends PopoverOverlayMixin(
78
78
  }
79
79
 
80
80
  /**
81
- * Override method from OverlayFocusMixin to use owner as focus trap root
81
+ * Override method from OverlayFocusMixin to use owner as focus root
82
82
  * @protected
83
83
  * @override
84
84
  */
85
- get _focusTrapRoot() {
85
+ get _focusRoot() {
86
86
  return this.owner;
87
87
  }
88
88
 
@@ -12,8 +12,9 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
12
12
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
13
13
  import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
14
14
  import {
15
- hasOnlyNestedOverlays,
15
+ getOverlaysOnTop,
16
16
  isLastOverlay as isLastOverlayBase,
17
+ isNestedOverlay,
17
18
  } from '@vaadin/overlay/src/vaadin-overlay-stack-mixin.js';
18
19
  import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
19
20
  import { PopoverFocusController } from './vaadin-popover-focus-controller.js';
@@ -158,6 +159,14 @@ const isLastOverlay = (overlay) => {
158
159
  return isLastOverlayBase(overlay, filter);
159
160
  };
160
161
 
162
+ /**
163
+ * Returns true if all the overlays shown on top of the given overlay are nested inside it.
164
+ * @param {HTMLElement} overlay
165
+ * @return {boolean}
166
+ * @protected
167
+ */
168
+ const hasOnlyNestedOverlays = (overlay) => getOverlaysOnTop(overlay).every((el) => isNestedOverlay(overlay, el));
169
+
161
170
  /**
162
171
  * `<vaadin-popover>` is a Web Component for creating overlays
163
172
  * that are positioned next to specified DOM element (target).
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/popover",
4
- "version": "25.3.0-alpha5",
4
+ "version": "25.3.0-alpha7",
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/popover",
4
- "version": "25.3.0-alpha5",
4
+ "version": "25.3.0-alpha7",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {