@vaadin/overlay 25.0.0-alpha2 → 25.0.0-alpha4
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 -10
- package/src/vaadin-overlay-stack-mixin.js +5 -1
- package/src/vaadin-overlay.js +1 -1
- package/src/vaadin-overlay-styles.js +0 -6
- /package/src/{vaadin-overlay-base-styles.js → styles/vaadin-overlay-base-styles.js} +0 -0
- /package/src/{vaadin-overlay-core-styles.js → styles/vaadin-overlay-core-styles.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/overlay",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
-
"!src/*-base-styles.d.ts",
|
|
25
|
-
"!src/*-base-styles.js",
|
|
24
|
+
"!src/styles/*-base-styles.d.ts",
|
|
25
|
+
"!src/styles/*-base-styles.js",
|
|
26
26
|
"theme",
|
|
27
27
|
"vaadin-*.d.ts",
|
|
28
28
|
"vaadin-*.js"
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
40
|
-
"@vaadin/component-base": "25.0.0-
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
39
|
+
"@vaadin/a11y-base": "25.0.0-alpha4",
|
|
40
|
+
"@vaadin/component-base": "25.0.0-alpha4",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha4",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha4",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
47
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
46
|
+
"@vaadin/chai-plugins": "25.0.0-alpha4",
|
|
47
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha4",
|
|
48
48
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
49
49
|
"sinon": "^18.0.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "ce4421f0daf26027b863b91787a474e4cc264344"
|
|
52
52
|
}
|
|
@@ -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
|
|
package/src/vaadin-overlay.js
CHANGED
|
@@ -8,8 +8,8 @@ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
|
8
8
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
9
9
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
10
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
|
+
import { overlayStyles } from './styles/vaadin-overlay-core-styles.js';
|
|
11
12
|
import { OverlayMixin } from './vaadin-overlay-mixin.js';
|
|
12
|
-
import { overlayStyles } from './vaadin-overlay-styles.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* `<vaadin-overlay>` is a Web Component for creating overlays. The content of the overlay
|
|
File without changes
|
|
File without changes
|