@vaadin/master-detail-layout 25.3.0-alpha4 → 25.3.0-alpha5
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/master-detail-layout",
|
|
3
|
-
"version": "25.3.0-
|
|
3
|
+
"version": "25.3.0-alpha5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"web-component"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@vaadin/a11y-base": "25.3.0-
|
|
38
|
-
"@vaadin/component-base": "25.3.0-
|
|
39
|
-
"@vaadin/vaadin-themable-mixin": "25.3.0-
|
|
37
|
+
"@vaadin/a11y-base": "25.3.0-alpha5",
|
|
38
|
+
"@vaadin/component-base": "25.3.0-alpha5",
|
|
39
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-alpha5",
|
|
40
40
|
"lit": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@vaadin/aura": "25.3.0-
|
|
44
|
-
"@vaadin/chai-plugins": "25.3.0-
|
|
43
|
+
"@vaadin/aura": "25.3.0-alpha5",
|
|
44
|
+
"@vaadin/chai-plugins": "25.3.0-alpha5",
|
|
45
45
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
46
|
-
"@vaadin/vaadin-lumo-styles": "25.3.0-
|
|
46
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-alpha5",
|
|
47
47
|
"sinon": "^22.0.0"
|
|
48
48
|
},
|
|
49
49
|
"customElements": "custom-elements.json",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"web-types.json",
|
|
52
52
|
"web-types.lit.json"
|
|
53
53
|
],
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "0be2142cd8b95a562d58735033f947f7109103ab"
|
|
55
55
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html, LitElement, nothing } from 'lit';
|
|
7
|
-
import {
|
|
7
|
+
import { getTabbableElements, isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';
|
|
8
8
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
9
9
|
import { getClosestElement } from '@vaadin/component-base/src/dom-utils.js';
|
|
10
10
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
@@ -379,7 +379,7 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
|
|
|
379
379
|
|
|
380
380
|
const hasOverflow =
|
|
381
381
|
(hasDetail || hasDetailPlaceholder) && (this.forceOverlay || detectOverflow(hostSize, trackSizes));
|
|
382
|
-
const focusTarget = !hadDetail && hasDetail && hasOverflow ?
|
|
382
|
+
const focusTarget = !hadDetail && hasDetail && hasOverflow ? getTabbableElements(slottedDetail)[0] : null;
|
|
383
383
|
|
|
384
384
|
return {
|
|
385
385
|
hasMaster,
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED