@vaadin/app-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/app-layout",
3
- "version": "25.2.0-alpha10",
3
+ "version": "25.2.0-alpha12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,18 +35,18 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.2.0-alpha10",
39
- "@vaadin/button": "25.2.0-alpha10",
40
- "@vaadin/component-base": "25.2.0-alpha10",
41
- "@vaadin/vaadin-themable-mixin": "25.2.0-alpha10",
38
+ "@vaadin/a11y-base": "25.2.0-alpha12",
39
+ "@vaadin/button": "25.2.0-alpha12",
40
+ "@vaadin/component-base": "25.2.0-alpha12",
41
+ "@vaadin/vaadin-themable-mixin": "25.2.0-alpha12",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/aura": "25.2.0-alpha10",
46
- "@vaadin/chai-plugins": "25.2.0-alpha10",
47
- "@vaadin/test-runner-commands": "25.2.0-alpha10",
45
+ "@vaadin/aura": "25.2.0-alpha12",
46
+ "@vaadin/chai-plugins": "25.2.0-alpha12",
47
+ "@vaadin/test-runner-commands": "25.2.0-alpha12",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "25.2.0-alpha10",
49
+ "@vaadin/vaadin-lumo-styles": "25.2.0-alpha12",
50
50
  "sinon": "^21.0.2"
51
51
  },
52
52
  "customElements": "custom-elements.json",
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "1303b6a3eeecb44a9d26f2b53cb56d9e906febdf"
57
+ "gitHead": "ae1e4373aec3653d63a45b6be18eee36f4b245a1"
58
58
  }
@@ -12,7 +12,7 @@ export const appLayoutStyles = css`
12
12
  box-sizing: border-box;
13
13
  height: 100%;
14
14
  --vaadin-app-layout-transition-duration: 0s;
15
- transition: padding var(--vaadin-app-layout-transition-duration);
15
+ transition: padding var(--vaadin-app-layout-transition-duration) cubic-bezier(0.78, 0, 0.22, 1);
16
16
  --_vaadin-app-layout-drawer-width: var(--vaadin-app-layout-drawer-width, auto);
17
17
  --vaadin-app-layout-touch-optimized: false;
18
18
  --vaadin-app-layout-navbar-offset-top: var(--_vaadin-app-layout-navbar-offset-size);
@@ -30,7 +30,7 @@ export const appLayoutStyles = css`
30
30
 
31
31
  @media (prefers-reduced-motion: no-preference) {
32
32
  :host(:not([no-anim])) {
33
- --vaadin-app-layout-transition-duration: 200ms;
33
+ --vaadin-app-layout-transition-duration: 300ms;
34
34
  }
35
35
  }
36
36
 
@@ -71,7 +71,8 @@ export const appLayoutStyles = css`
71
71
  align-items: center;
72
72
  top: 0;
73
73
  inset-inline: 0;
74
- transition: inset-inline-start var(--vaadin-app-layout-transition-duration);
74
+ transition: inherit;
75
+ transition-property: inset-inline-start;
75
76
  padding-top: max(var(--vaadin-app-layout-navbar-padding-top, var(--vaadin-padding-s)), var(--safe-area-inset-top));
76
77
  padding-bottom: var(--vaadin-app-layout-navbar-padding-bottom, var(--vaadin-padding-s));
77
78
  padding-inline-start: max(
@@ -113,10 +114,9 @@ export const appLayoutStyles = css`
113
114
  top: var(--vaadin-app-layout-navbar-offset-top, 0);
114
115
  bottom: var(--vaadin-app-layout-navbar-offset-bottom, var(--vaadin-viewport-offset-bottom, 0));
115
116
  inset-inline: var(--vaadin-app-layout-navbar-offset-left, 0) auto;
116
- transition:
117
- transform var(--vaadin-app-layout-transition-duration),
118
- visibility var(--vaadin-app-layout-transition-duration);
119
- transform: translateX(-100%);
117
+ transition: inherit;
118
+ transition-property: transform, visibility;
119
+ transform: translateX(calc(-100% - 20px));
120
120
  max-width: 90%;
121
121
  width: var(--_vaadin-app-layout-drawer-width);
122
122
  box-sizing: border-box;
@@ -155,7 +155,7 @@ export const appLayoutStyles = css`
155
155
  position: fixed;
156
156
  inset: 0;
157
157
  pointer-events: none;
158
- transition: opacity var(--vaadin-app-layout-transition-duration);
158
+ transition: opacity var(--vaadin-app-layout-transition-duration) linear;
159
159
  -webkit-tap-highlight-color: transparent;
160
160
  }
161
161
 
@@ -177,7 +177,7 @@ export const appLayoutStyles = css`
177
177
  }
178
178
 
179
179
  :host([dir='rtl']) [part='drawer'] {
180
- transform: translateX(100%);
180
+ transform: translateX(calc(100% + 20px));
181
181
  }
182
182
 
183
183
  :host([dir='rtl'][drawer-opened]) [part='drawer'] {
@@ -18,12 +18,8 @@ const DEFAULT_I18N = {
18
18
  drawer: 'Drawer',
19
19
  };
20
20
 
21
- /**
22
- * @polymerMixin
23
- * @mixes I18nMixin
24
- */
25
21
  export const AppLayoutMixin = (superclass) =>
26
- class AppLayoutMixinClass extends I18nMixin(DEFAULT_I18N, superclass) {
22
+ class AppLayoutMixinClass extends I18nMixin(superclass) {
27
23
  static get properties() {
28
24
  return {
29
25
  /**
@@ -89,6 +85,10 @@ export const AppLayoutMixin = (superclass) =>
89
85
  return ['__i18nChanged(__effectiveI18n)'];
90
86
  }
91
87
 
88
+ static get defaultI18n() {
89
+ return DEFAULT_I18N;
90
+ }
91
+
92
92
  /**
93
93
  * Helper static method that dispatches a `close-overlay-drawer` event
94
94
  */
@@ -129,9 +129,6 @@ import { AppLayoutMixin } from './vaadin-app-layout-mixin.js';
129
129
  *
130
130
  * @customElement vaadin-app-layout
131
131
  * @extends HTMLElement
132
- * @mixes AppLayoutMixin
133
- * @mixes ElementMixin
134
- * @mixes ThemableMixin
135
132
  */
136
133
  class AppLayout extends AppLayoutMixin(ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
137
134
  static get is() {
@@ -57,9 +57,6 @@ import { drawerToggle } from './styles/vaadin-drawer-toggle-base-styles.js';
57
57
  *
58
58
  * @customElement vaadin-drawer-toggle
59
59
  * @extends HTMLElement
60
- * @mixes ButtonMixin
61
- * @mixes DirMixin
62
- * @mixes ThemableMixin
63
60
  */
64
61
  class DrawerToggle extends ButtonMixin(DirMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
65
62
  static get is() {
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/app-layout",
4
- "version": "25.2.0-alpha10",
4
+ "version": "25.2.0-alpha12",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/app-layout",
4
- "version": "25.2.0-alpha10",
4
+ "version": "25.2.0-alpha12",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {