@vaadin/overlay 24.1.14 → 24.1.15
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 +7 -7
- package/src/vaadin-overlay.js +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/overlay",
|
|
3
|
-
"version": "24.1.
|
|
3
|
+
"version": "24.1.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/a11y-base": "~24.1.
|
|
40
|
-
"@vaadin/component-base": "~24.1.
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "~24.1.
|
|
42
|
-
"@vaadin/vaadin-material-styles": "~24.1.
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "~24.1.
|
|
39
|
+
"@vaadin/a11y-base": "~24.1.15",
|
|
40
|
+
"@vaadin/component-base": "~24.1.15",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "~24.1.15",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "~24.1.15",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "~24.1.15"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"lit": "^2.0.0",
|
|
49
49
|
"sinon": "^13.0.2"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "9cf98ac30128388bee2710410afe01a6b725b0aa"
|
|
52
52
|
}
|
package/src/vaadin-overlay.js
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';
|
|
7
7
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
8
|
-
import { getClosestFocusable } from '@vaadin/a11y-base/src/focus-utils.js';
|
|
9
8
|
import { isIOS } from '@vaadin/component-base/src/browser-utils.js';
|
|
10
9
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
11
10
|
import { processTemplates } from '@vaadin/component-base/src/templates.js';
|
|
@@ -295,10 +294,6 @@ class Overlay extends OverlayFocusMixin(ThemableMixin(DirMixin(PolymerElement)))
|
|
|
295
294
|
this.addEventListener('click', () => {});
|
|
296
295
|
this.$.backdrop.addEventListener('click', () => {});
|
|
297
296
|
|
|
298
|
-
this.addEventListener('mousedown', (e) => {
|
|
299
|
-
this._onMouseDown(e);
|
|
300
|
-
});
|
|
301
|
-
|
|
302
297
|
processTemplates(this);
|
|
303
298
|
}
|
|
304
299
|
|
|
@@ -708,16 +703,6 @@ class Overlay extends OverlayFocusMixin(ThemableMixin(DirMixin(PolymerElement)))
|
|
|
708
703
|
this.__zIndex = zIndex || parseFloat(getComputedStyle(this).zIndex);
|
|
709
704
|
}
|
|
710
705
|
|
|
711
|
-
/** @private */
|
|
712
|
-
_onMouseDown(event) {
|
|
713
|
-
const target = event.target;
|
|
714
|
-
const focusable = getClosestFocusable(target.focusElement || target);
|
|
715
|
-
if (focusable) {
|
|
716
|
-
event.preventDefault();
|
|
717
|
-
focusable.focus();
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
|
|
721
706
|
/**
|
|
722
707
|
* @event vaadin-overlay-open
|
|
723
708
|
* Fired after the overlay is opened.
|