@vaadin/overlay 24.7.0-alpha1 → 24.7.0-alpha10
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 +10 -9
- package/src/vaadin-lit-overlay.d.ts +1 -1
- package/src/vaadin-lit-overlay.js +1 -1
- package/src/vaadin-overlay-focus-mixin.d.ts +1 -1
- package/src/vaadin-overlay-focus-mixin.js +1 -1
- package/src/vaadin-overlay-mixin.d.ts +1 -1
- package/src/vaadin-overlay-mixin.js +1 -1
- package/src/vaadin-overlay-position-mixin.d.ts +1 -1
- package/src/vaadin-overlay-position-mixin.js +1 -1
- package/src/vaadin-overlay-stack-mixin.d.ts +1 -1
- package/src/vaadin-overlay-stack-mixin.js +23 -1
- package/src/vaadin-overlay-styles.js +1 -1
- package/src/vaadin-overlay-utils.d.ts +1 -1
- package/src/vaadin-overlay-utils.js +1 -1
- package/src/vaadin-overlay.d.ts +1 -1
- package/src/vaadin-overlay.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/overlay",
|
|
3
|
-
"version": "24.7.0-
|
|
3
|
+
"version": "24.7.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,17 +36,18 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/a11y-base": "24.7.0-
|
|
40
|
-
"@vaadin/component-base": "24.7.0-
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "24.7.0-
|
|
42
|
-
"@vaadin/vaadin-material-styles": "24.7.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "24.7.0-
|
|
39
|
+
"@vaadin/a11y-base": "24.7.0-alpha10",
|
|
40
|
+
"@vaadin/component-base": "24.7.0-alpha10",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "24.7.0-alpha10",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "24.7.0-alpha10",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha10",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vaadin/chai-plugins": "24.7.0-
|
|
48
|
-
"@vaadin/
|
|
47
|
+
"@vaadin/chai-plugins": "24.7.0-alpha10",
|
|
48
|
+
"@vaadin/test-runner-commands": "24.7.0-alpha10",
|
|
49
|
+
"@vaadin/testing-helpers": "^1.1.0",
|
|
49
50
|
"sinon": "^18.0.0"
|
|
50
51
|
},
|
|
51
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "c0f8933df2a6a40648d3fb9cfbae6bbf86a8aa90"
|
|
52
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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 { AriaModalController } from '@vaadin/a11y-base/src/aria-modal-controller.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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 { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -28,6 +28,23 @@ const getOverlayInstances = () => getAttachedInstances().filter((el) => el.$.ove
|
|
|
28
28
|
*/
|
|
29
29
|
export const isLastOverlay = (overlay) => overlay === getOverlayInstances().pop();
|
|
30
30
|
|
|
31
|
+
const overlayMap = new WeakMap();
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Stores the reference to the nested overlay for given parent,
|
|
35
|
+
* or removes it when the nested overlay is null.
|
|
36
|
+
* @param {HTMLElement} parent
|
|
37
|
+
* @param {HTMLElement} nested
|
|
38
|
+
* @protected
|
|
39
|
+
*/
|
|
40
|
+
export const setNestedOverlay = (parent, nested) => {
|
|
41
|
+
if (nested != null) {
|
|
42
|
+
overlayMap.set(parent, nested);
|
|
43
|
+
} else {
|
|
44
|
+
overlayMap.delete(parent);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
31
48
|
/**
|
|
32
49
|
* @polymerMixin
|
|
33
50
|
*/
|
|
@@ -63,6 +80,11 @@ export const OverlayStackMixin = (superClass) =>
|
|
|
63
80
|
}
|
|
64
81
|
this.style.zIndex = zIndex;
|
|
65
82
|
this.__zIndex = zIndex || parseFloat(getComputedStyle(this).zIndex);
|
|
83
|
+
|
|
84
|
+
// If there is a nested overlay, call `bringToFront()` for it as well.
|
|
85
|
+
if (overlayMap.has(this)) {
|
|
86
|
+
overlayMap.get(this).bringToFront();
|
|
87
|
+
}
|
|
66
88
|
}
|
|
67
89
|
|
|
68
90
|
/** @protected */
|
package/src/vaadin-overlay.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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';
|
package/src/vaadin-overlay.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2017 -
|
|
3
|
+
* Copyright (c) 2017 - 2025 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, PolymerElement } from '@polymer/polymer/polymer-element.js';
|