@vaadin/master-detail-layout 25.2.7 → 25.3.0-alpha10
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/custom-elements.json
CHANGED
|
@@ -430,6 +430,13 @@
|
|
|
430
430
|
},
|
|
431
431
|
"description": "Size (in CSS length units) for the detail area when shown as an\noverlay. When not set, falls back to `detailSize`. Set to `100%`\nto make the detail cover the full layout.",
|
|
432
432
|
"fieldName": "overlaySize"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"type": {
|
|
436
|
+
"text": "string"
|
|
437
|
+
},
|
|
438
|
+
"description": "The theme variants to apply to the component.",
|
|
439
|
+
"name": "theme"
|
|
433
440
|
}
|
|
434
441
|
],
|
|
435
442
|
"mixins": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/master-detail-layout",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.3.0-alpha10",
|
|
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": "
|
|
38
|
-
"@vaadin/component-base": "
|
|
39
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
37
|
+
"@vaadin/a11y-base": "25.3.0-alpha10",
|
|
38
|
+
"@vaadin/component-base": "25.3.0-alpha10",
|
|
39
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-alpha10",
|
|
40
40
|
"lit": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@vaadin/aura": "
|
|
44
|
-
"@vaadin/chai-plugins": "
|
|
43
|
+
"@vaadin/aura": "25.3.0-alpha10",
|
|
44
|
+
"@vaadin/chai-plugins": "25.3.0-alpha10",
|
|
45
45
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
46
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
46
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-alpha10",
|
|
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": "f2833abdf9b613fa0d0ed216830e3f4de87b7dac"
|
|
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';
|
|
@@ -88,6 +88,7 @@ import {
|
|
|
88
88
|
* @fires {CustomEvent} backdrop-click - Fired when the user clicks the backdrop in the overlay mode.
|
|
89
89
|
* @fires {CustomEvent} detail-escape-press - Fired when the user presses Escape in the detail area.
|
|
90
90
|
*
|
|
91
|
+
* @attr {string} theme - The theme variants to apply to the component.
|
|
91
92
|
* @customElement vaadin-master-detail-layout
|
|
92
93
|
* @extends HTMLElement
|
|
93
94
|
*/
|
|
@@ -379,7 +380,7 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
|
|
|
379
380
|
|
|
380
381
|
const hasOverflow =
|
|
381
382
|
(hasDetail || hasDetailPlaceholder) && (this.forceOverlay || detectOverflow(hostSize, trackSizes));
|
|
382
|
-
const focusTarget = !hadDetail && hasDetail && hasOverflow ?
|
|
383
|
+
const focusTarget = !hadDetail && hasDetail && hasOverflow ? getTabbableElements(slottedDetail)[0] : null;
|
|
383
384
|
|
|
384
385
|
return {
|
|
385
386
|
hasMaster,
|
|
@@ -488,7 +489,11 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
|
|
|
488
489
|
}
|
|
489
490
|
|
|
490
491
|
/** @private */
|
|
491
|
-
__onBackdropClick() {
|
|
492
|
+
__onBackdropClick(event) {
|
|
493
|
+
if (event.defaultPrevented) {
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
|
|
492
497
|
this.dispatchEvent(new CustomEvent('backdrop-click'));
|
|
493
498
|
}
|
|
494
499
|
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/master-detail-layout",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.3.0-alpha10",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -96,9 +96,7 @@
|
|
|
96
96
|
"description": "The theme variants to apply to the component.",
|
|
97
97
|
"value": {
|
|
98
98
|
"type": [
|
|
99
|
-
"string"
|
|
100
|
-
"null",
|
|
101
|
-
"undefined"
|
|
99
|
+
"string"
|
|
102
100
|
]
|
|
103
101
|
}
|
|
104
102
|
}
|
package/web-types.lit.json
CHANGED