@vaadin/master-detail-layout 25.2.0-alpha10 → 25.2.0-alpha12
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.2.0-
|
|
3
|
+
"version": "25.2.0-alpha12",
|
|
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.2.0-
|
|
38
|
-
"@vaadin/component-base": "25.2.0-
|
|
39
|
-
"@vaadin/vaadin-themable-mixin": "25.2.0-
|
|
37
|
+
"@vaadin/a11y-base": "25.2.0-alpha12",
|
|
38
|
+
"@vaadin/component-base": "25.2.0-alpha12",
|
|
39
|
+
"@vaadin/vaadin-themable-mixin": "25.2.0-alpha12",
|
|
40
40
|
"lit": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@vaadin/aura": "25.2.0-
|
|
44
|
-
"@vaadin/chai-plugins": "25.2.0-
|
|
43
|
+
"@vaadin/aura": "25.2.0-alpha12",
|
|
44
|
+
"@vaadin/chai-plugins": "25.2.0-alpha12",
|
|
45
45
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
46
|
-
"@vaadin/vaadin-lumo-styles": "25.2.0-
|
|
46
|
+
"@vaadin/vaadin-lumo-styles": "25.2.0-alpha12",
|
|
47
47
|
"sinon": "^21.0.2"
|
|
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": "ae1e4373aec3653d63a45b6be18eee36f4b245a1"
|
|
55
55
|
}
|
|
@@ -183,13 +183,11 @@ export const masterDetailLayoutStyles = css`
|
|
|
183
183
|
|
|
184
184
|
#detailPlaceholder {
|
|
185
185
|
z-index: 1;
|
|
186
|
-
|
|
187
|
-
pointer-events: none;
|
|
186
|
+
visibility: hidden;
|
|
188
187
|
}
|
|
189
188
|
|
|
190
189
|
:host([has-detail-placeholder]:not([has-detail], [overlay])) #detailPlaceholder {
|
|
191
|
-
|
|
192
|
-
pointer-events: auto;
|
|
190
|
+
visibility: visible;
|
|
193
191
|
}
|
|
194
192
|
|
|
195
193
|
:is(#detail, #detailPlaceholder, #detailOutgoing) {
|
|
@@ -90,8 +90,6 @@ import {
|
|
|
90
90
|
*
|
|
91
91
|
* @customElement vaadin-master-detail-layout
|
|
92
92
|
* @extends HTMLElement
|
|
93
|
-
* @mixes ThemableMixin
|
|
94
|
-
* @mixes ElementMixin
|
|
95
93
|
*/
|
|
96
94
|
class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElement))) {
|
|
97
95
|
static get is() {
|
|
@@ -614,10 +612,15 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
|
|
|
614
612
|
await updateSlot();
|
|
615
613
|
|
|
616
614
|
const progress = getCurrentAnimationProgress(this.$.detail);
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
615
|
+
|
|
616
|
+
if (this.hasAttribute('overlay')) {
|
|
617
|
+
await Promise.all([
|
|
618
|
+
animateIn(this.$.detail, ['slide'], progress),
|
|
619
|
+
animateIn(this.$.backdrop, ['fade'], progress),
|
|
620
|
+
]);
|
|
621
|
+
} else {
|
|
622
|
+
await animateIn(this.$.detail, ['slide', 'fade'], progress);
|
|
623
|
+
}
|
|
621
624
|
}
|
|
622
625
|
|
|
623
626
|
/** @private */
|
|
@@ -632,10 +635,12 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
|
|
|
632
635
|
|
|
633
636
|
await updateSlot();
|
|
634
637
|
|
|
638
|
+
const isOverlay = this.hasAttribute('overlay');
|
|
635
639
|
const progress = getCurrentAnimationProgress(this.$.detail);
|
|
640
|
+
|
|
636
641
|
await Promise.all([
|
|
637
|
-
animateIn(this.$.detail, ['
|
|
638
|
-
animateOut(this.$.detailOutgoing, ['
|
|
642
|
+
animateIn(this.$.detail, isOverlay ? ['slide'] : ['slide', 'fade'], progress),
|
|
643
|
+
animateOut(this.$.detailOutgoing, isOverlay ? ['slide'] : ['slide', 'fade'], progress),
|
|
639
644
|
]);
|
|
640
645
|
} finally {
|
|
641
646
|
// Skip removal if the slot was reassigned during the transition.
|
|
@@ -649,10 +654,15 @@ class MasterDetailLayout extends ElementMixin(ThemableMixin(PolylitMixin(LitElem
|
|
|
649
654
|
/** @private */
|
|
650
655
|
async __removeTransition(updateSlot) {
|
|
651
656
|
const progress = getCurrentAnimationProgress(this.$.detail);
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
657
|
+
|
|
658
|
+
if (this.hasAttribute('overlay')) {
|
|
659
|
+
await Promise.all([
|
|
660
|
+
animateOut(this.$.detail, ['slide'], progress),
|
|
661
|
+
animateOut(this.$.backdrop, ['fade'], progress),
|
|
662
|
+
]);
|
|
663
|
+
} else {
|
|
664
|
+
await animateOut(this.$.detail, ['slide', 'fade'], progress);
|
|
665
|
+
}
|
|
656
666
|
|
|
657
667
|
await updateSlot();
|
|
658
668
|
}
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED