@vaadin/popover 25.2.5 → 25.2.6

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.2.5",
3
+ "version": "25.2.6",
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.2.5",
41
- "@vaadin/component-base": "~25.2.5",
42
- "@vaadin/lit-renderer": "~25.2.5",
43
- "@vaadin/overlay": "~25.2.5",
44
- "@vaadin/vaadin-themable-mixin": "~25.2.5",
40
+ "@vaadin/a11y-base": "~25.2.6",
41
+ "@vaadin/component-base": "~25.2.6",
42
+ "@vaadin/lit-renderer": "~25.2.6",
43
+ "@vaadin/overlay": "~25.2.6",
44
+ "@vaadin/vaadin-themable-mixin": "~25.2.6",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vaadin/aura": "~25.2.5",
49
- "@vaadin/chai-plugins": "~25.2.5",
50
- "@vaadin/test-runner-commands": "~25.2.5",
48
+ "@vaadin/aura": "~25.2.6",
49
+ "@vaadin/chai-plugins": "~25.2.6",
50
+ "@vaadin/test-runner-commands": "~25.2.6",
51
51
  "@vaadin/testing-helpers": "^2.0.0",
52
- "@vaadin/vaadin-lumo-styles": "~25.2.5",
52
+ "@vaadin/vaadin-lumo-styles": "~25.2.6",
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": "bfaf51d71619f34c0b00b326e6426f1cd9f7b2f5"
60
+ "gitHead": "c352225ff025e6163c5e290d6028a42003696441"
61
61
  }
@@ -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.2.5",
4
+ "version": "25.2.6",
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.2.5",
4
+ "version": "25.2.6",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {