@vaadin/overlay
Advanced tools
Comparing version 24.6.0-rc1 to 24.7.0-alpha1
{ | ||
"name": "@vaadin/overlay", | ||
"version": "24.6.0-rc1", | ||
"version": "24.7.0-alpha1", | ||
"publishConfig": { | ||
@@ -39,15 +39,15 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "24.6.0-rc1", | ||
"@vaadin/component-base": "24.6.0-rc1", | ||
"@vaadin/vaadin-lumo-styles": "24.6.0-rc1", | ||
"@vaadin/vaadin-material-styles": "24.6.0-rc1", | ||
"@vaadin/vaadin-themable-mixin": "24.6.0-rc1", | ||
"@vaadin/a11y-base": "24.7.0-alpha1", | ||
"@vaadin/component-base": "24.7.0-alpha1", | ||
"@vaadin/vaadin-lumo-styles": "24.7.0-alpha1", | ||
"@vaadin/vaadin-material-styles": "24.7.0-alpha1", | ||
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha1", | ||
"lit": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "24.6.0-rc1", | ||
"@vaadin/chai-plugins": "24.7.0-alpha1", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
"sinon": "^18.0.0" | ||
}, | ||
"gitHead": "d62ba309e3286777ad3ea7e015d50a2c4976bb42" | ||
"gitHead": "04be941c9a7b659871c97f31b9cc3ffd7528087b" | ||
} |
@@ -17,2 +17,9 @@ /** | ||
/** | ||
* Returns all attached overlay instances excluding notification container, | ||
* which only needs to be in the stack for zIndex but not pointer-events. | ||
* @private | ||
*/ | ||
const getOverlayInstances = () => getAttachedInstances().filter((el) => el.$.overlay); | ||
/** | ||
* Returns true if the overlay is the last one in the opened overlays stack. | ||
@@ -23,3 +30,3 @@ * @param {HTMLElement} overlay | ||
*/ | ||
export const isLastOverlay = (overlay) => overlay === getAttachedInstances().pop(); | ||
export const isLastOverlay = (overlay) => overlay === getOverlayInstances().pop(); | ||
@@ -73,4 +80,4 @@ /** | ||
// Disable pointer events in other attached overlays | ||
getAttachedInstances().forEach((el) => { | ||
if (el !== this && el.$.overlay) { | ||
getOverlayInstances().forEach((el) => { | ||
if (el !== this) { | ||
el.$.overlay.style.pointerEvents = 'none'; | ||
@@ -90,3 +97,3 @@ } | ||
// Restore pointer events in the previous overlay(s) | ||
const instances = getAttachedInstances(); | ||
const instances = getOverlayInstances(); | ||
@@ -100,5 +107,3 @@ let el; | ||
} | ||
if (el.$.overlay) { | ||
el.$.overlay.style.removeProperty('pointer-events'); | ||
} | ||
el.$.overlay.style.removeProperty('pointer-events'); | ||
if (!el.modeless) { | ||
@@ -105,0 +110,0 @@ // Stop after the last modal |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74457
1662
+ Added@vaadin/a11y-base@24.7.0-alpha1(transitive)
+ Added@vaadin/component-base@24.7.0-alpha1(transitive)
+ Added@vaadin/icon@24.7.0-alpha1(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.7.0-alpha1(transitive)
+ Added@vaadin/vaadin-material-styles@24.7.0-alpha1(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.7.0-alpha1(transitive)
- Removed@vaadin/a11y-base@24.6.0-rc1(transitive)
- Removed@vaadin/component-base@24.6.0-rc1(transitive)
- Removed@vaadin/icon@24.6.0-rc1(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.6.0-rc1(transitive)
- Removed@vaadin/vaadin-material-styles@24.6.0-rc1(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.6.0-rc1(transitive)