@vaadin/vaadin-overlay 23.1.0-beta1 → 23.1.0-beta2
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 +9 -9
- package/src/vaadin-overlay.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/vaadin-overlay",
|
|
3
|
-
"version": "23.1.0-
|
|
3
|
+
"version": "23.1.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@polymer/polymer": "^3.0.0",
|
|
38
|
-
"@vaadin/component-base": "23.1.0-
|
|
39
|
-
"@vaadin/vaadin-lumo-styles": "23.1.0-
|
|
40
|
-
"@vaadin/vaadin-material-styles": "23.1.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "23.1.0-
|
|
38
|
+
"@vaadin/component-base": "23.1.0-beta2",
|
|
39
|
+
"@vaadin/vaadin-lumo-styles": "23.1.0-beta2",
|
|
40
|
+
"@vaadin/vaadin-material-styles": "23.1.0-beta2",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "23.1.0-beta2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@esm-bundle/chai": "^4.3.4",
|
|
45
45
|
"@polymer/iron-overlay-behavior": "^3.0.0",
|
|
46
|
-
"@vaadin/button": "23.1.0-
|
|
47
|
-
"@vaadin/radio-group": "23.1.0-
|
|
46
|
+
"@vaadin/button": "23.1.0-beta2",
|
|
47
|
+
"@vaadin/radio-group": "23.1.0-beta2",
|
|
48
48
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
49
|
-
"@vaadin/text-field": "23.1.0-
|
|
49
|
+
"@vaadin/text-field": "23.1.0-beta2",
|
|
50
50
|
"lit": "^2.0.0",
|
|
51
51
|
"sinon": "^13.0.2"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "f11f9245a0b5e6bf912725a501c27c24b74e7c8d"
|
|
54
54
|
}
|
package/src/vaadin-overlay.js
CHANGED
|
@@ -413,10 +413,10 @@ class OverlayElement extends ThemableMixin(DirMixin(ControllerMixin(PolymerEleme
|
|
|
413
413
|
* fired before the `vaadin-overlay` will be closed. If canceled the closing of the overlay is canceled as well.
|
|
414
414
|
*/
|
|
415
415
|
close(sourceEvent) {
|
|
416
|
-
|
|
416
|
+
const evt = new CustomEvent('vaadin-overlay-close', {
|
|
417
417
|
bubbles: true,
|
|
418
418
|
cancelable: true,
|
|
419
|
-
detail: { sourceEvent
|
|
419
|
+
detail: { sourceEvent },
|
|
420
420
|
});
|
|
421
421
|
this.dispatchEvent(evt);
|
|
422
422
|
if (!evt.defaultPrevented) {
|
|
@@ -725,7 +725,7 @@ class OverlayElement extends ThemableMixin(DirMixin(ControllerMixin(PolymerEleme
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
/**
|
|
728
|
-
*
|
|
728
|
+
* Returns true if this is the last one in the opened overlays stack
|
|
729
729
|
* @return {boolean}
|
|
730
730
|
* @protected
|
|
731
731
|
*/
|
|
@@ -842,7 +842,7 @@ class OverlayElement extends ThemableMixin(DirMixin(ControllerMixin(PolymerEleme
|
|
|
842
842
|
|
|
843
843
|
if (!template._Templatizer) {
|
|
844
844
|
template._Templatizer = templatize(template, this, {
|
|
845
|
-
forwardHostProp
|
|
845
|
+
forwardHostProp(prop, value) {
|
|
846
846
|
if (this._instance) {
|
|
847
847
|
this._instance.forwardHostProp(prop, value);
|
|
848
848
|
}
|
|
@@ -937,7 +937,7 @@ class OverlayElement extends ThemableMixin(DirMixin(ControllerMixin(PolymerEleme
|
|
|
937
937
|
* @protected
|
|
938
938
|
*/
|
|
939
939
|
_getActiveElement() {
|
|
940
|
-
//
|
|
940
|
+
// Document.activeElement can be null
|
|
941
941
|
// https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement
|
|
942
942
|
let active = document.activeElement || document.body;
|
|
943
943
|
while (active.shadowRoot && active.shadowRoot.activeElement) {
|
|
@@ -957,7 +957,7 @@ class OverlayElement extends ThemableMixin(DirMixin(ControllerMixin(PolymerEleme
|
|
|
957
957
|
}
|
|
958
958
|
let n = node;
|
|
959
959
|
const doc = node.ownerDocument;
|
|
960
|
-
//
|
|
960
|
+
// Walk from node to `this` or `document`
|
|
961
961
|
while (n && n !== doc && n !== this) {
|
|
962
962
|
n = n.parentNode || n.host;
|
|
963
963
|
}
|