@vaadin/overlay 24.8.0-beta1 → 24.8.0
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": "24.8.0
|
|
3
|
+
"version": "24.8.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
40
|
"@polymer/polymer": "^3.0.0",
|
|
41
|
-
"@vaadin/a11y-base": "24.8.0
|
|
42
|
-
"@vaadin/component-base": "24.8.0
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "24.8.0
|
|
44
|
-
"@vaadin/vaadin-material-styles": "24.8.0
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "24.8.0
|
|
41
|
+
"@vaadin/a11y-base": "^24.8.0",
|
|
42
|
+
"@vaadin/component-base": "^24.8.0",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "^24.8.0",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "^24.8.0",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "^24.8.0",
|
|
46
46
|
"lit": "^3.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@vaadin/chai-plugins": "24.8.0
|
|
50
|
-
"@vaadin/test-runner-commands": "24.8.0
|
|
49
|
+
"@vaadin/chai-plugins": "^24.8.0",
|
|
50
|
+
"@vaadin/test-runner-commands": "^24.8.0",
|
|
51
51
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
52
52
|
"sinon": "^18.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "2665af61706d16ce398ce55817b70c7bb1ac8b81"
|
|
55
55
|
}
|
|
@@ -23,10 +23,14 @@ const getOverlayInstances = () => getAttachedInstances().filter((el) => el.$.ove
|
|
|
23
23
|
/**
|
|
24
24
|
* Returns true if the overlay is the last one in the opened overlays stack.
|
|
25
25
|
* @param {HTMLElement} overlay
|
|
26
|
+
* @param {function(HTMLElement): boolean} filter
|
|
26
27
|
* @return {boolean}
|
|
27
28
|
* @protected
|
|
28
29
|
*/
|
|
29
|
-
export const isLastOverlay = (overlay) =>
|
|
30
|
+
export const isLastOverlay = (overlay, filter = (_overlay) => true) => {
|
|
31
|
+
const filteredOverlays = getOverlayInstances().filter(filter);
|
|
32
|
+
return overlay === filteredOverlays.pop();
|
|
33
|
+
};
|
|
30
34
|
|
|
31
35
|
const overlayMap = new WeakMap();
|
|
32
36
|
|