@vaadin/overlay 25.2.7 → 25.2.9
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": "25.2.
|
|
3
|
+
"version": "25.2.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/a11y-base": "~25.2.
|
|
38
|
-
"@vaadin/component-base": "~25.2.
|
|
39
|
-
"@vaadin/vaadin-themable-mixin": "~25.2.
|
|
37
|
+
"@vaadin/a11y-base": "~25.2.9",
|
|
38
|
+
"@vaadin/component-base": "~25.2.9",
|
|
39
|
+
"@vaadin/vaadin-themable-mixin": "~25.2.9",
|
|
40
40
|
"lit": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@vaadin/aura": "~25.2.
|
|
44
|
-
"@vaadin/chai-plugins": "~25.2.
|
|
45
|
-
"@vaadin/test-runner-commands": "~25.2.
|
|
43
|
+
"@vaadin/aura": "~25.2.9",
|
|
44
|
+
"@vaadin/chai-plugins": "~25.2.9",
|
|
45
|
+
"@vaadin/test-runner-commands": "~25.2.9",
|
|
46
46
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
47
|
-
"@vaadin/vaadin-lumo-styles": "~25.2.
|
|
47
|
+
"@vaadin/vaadin-lumo-styles": "~25.2.9",
|
|
48
48
|
"sinon": "^22.0.0"
|
|
49
49
|
},
|
|
50
50
|
"customElements": "custom-elements.json",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "233d7875d586aca82b9cd43f19616bd6a4e81631"
|
|
52
52
|
}
|
|
@@ -55,6 +55,11 @@ export const overlayStyles = css`
|
|
|
55
55
|
display: none !important;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
:host([suppressed]) [part='overlay'],
|
|
59
|
+
:host([suppressed]) ::slotted(*) {
|
|
60
|
+
pointer-events: none !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
58
63
|
[part='overlay'] {
|
|
59
64
|
color: var(--vaadin-overlay-text-color, var(--vaadin-text-color));
|
|
60
65
|
background: var(--vaadin-overlay-background, var(--vaadin-background-color));
|
|
@@ -479,7 +479,7 @@ export const OverlayMixin = (superClass) =>
|
|
|
479
479
|
_finishClosing() {
|
|
480
480
|
this._detachOverlay();
|
|
481
481
|
this._removeAttachedInstance();
|
|
482
|
-
this
|
|
482
|
+
this.toggleAttribute('suppressed', false);
|
|
483
483
|
setOverlayStateAttribute(this, 'closing', false);
|
|
484
484
|
this.dispatchEvent(new CustomEvent('vaadin-overlay-closed'));
|
|
485
485
|
}
|
|
@@ -557,6 +557,11 @@ export const OverlayMixin = (superClass) =>
|
|
|
557
557
|
|
|
558
558
|
if (this.opened && !evt.defaultPrevented) {
|
|
559
559
|
this.close(event);
|
|
560
|
+
|
|
561
|
+
// Only for modal overlays which make underlying content non-interactive.
|
|
562
|
+
if (!this.opened && !this.modeless) {
|
|
563
|
+
event.preventDefault();
|
|
564
|
+
}
|
|
560
565
|
}
|
|
561
566
|
}
|
|
562
567
|
|
|
@@ -106,10 +106,10 @@ export const OverlayStackMixin = (superClass) =>
|
|
|
106
106
|
document.body.style.pointerEvents = 'none';
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
//
|
|
109
|
+
// Suppress pointer events in other attached overlays
|
|
110
110
|
getAttachedInstances().forEach((el) => {
|
|
111
111
|
if (el !== this) {
|
|
112
|
-
el
|
|
112
|
+
el.toggleAttribute('suppressed', true);
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
}
|
|
@@ -122,7 +122,7 @@ export const OverlayStackMixin = (superClass) =>
|
|
|
122
122
|
delete this._previousDocumentPointerEvents;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
//
|
|
125
|
+
// Stop suppressing pointer events in the previous overlay(s)
|
|
126
126
|
const instances = getAttachedInstances();
|
|
127
127
|
|
|
128
128
|
let el;
|
|
@@ -132,7 +132,7 @@ export const OverlayStackMixin = (superClass) =>
|
|
|
132
132
|
// Skip the current instance
|
|
133
133
|
continue;
|
|
134
134
|
}
|
|
135
|
-
el
|
|
135
|
+
el.toggleAttribute('suppressed', false);
|
|
136
136
|
if (!el.modeless) {
|
|
137
137
|
// Stop after the last modal
|
|
138
138
|
break;
|