@vaadin/app-layout 24.8.0-alpha8 → 24.8.0-beta1
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 +10 -10
- package/src/vaadin-app-layout-mixin.js +11 -10
- package/src/vaadin-drawer-toggle.js +1 -1
- package/src/vaadin-lit-drawer-toggle.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/vaadin-lit-app-layout.d.ts +0 -1
- package/src/vaadin-lit-drawer-toggle.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/app-layout",
|
|
3
|
-
"version": "24.8.0-
|
|
3
|
+
"version": "24.8.0-beta1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/a11y-base": "24.8.0-
|
|
41
|
-
"@vaadin/button": "24.8.0-
|
|
42
|
-
"@vaadin/component-base": "24.8.0-
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "24.8.0-
|
|
44
|
-
"@vaadin/vaadin-material-styles": "24.8.0-
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "24.8.0-
|
|
40
|
+
"@vaadin/a11y-base": "24.8.0-beta1",
|
|
41
|
+
"@vaadin/button": "24.8.0-beta1",
|
|
42
|
+
"@vaadin/component-base": "24.8.0-beta1",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "24.8.0-beta1",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "24.8.0-beta1",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "24.8.0-beta1",
|
|
46
46
|
"lit": "^3.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@vaadin/chai-plugins": "24.8.0-
|
|
50
|
-
"@vaadin/test-runner-commands": "24.8.0-
|
|
49
|
+
"@vaadin/chai-plugins": "24.8.0-beta1",
|
|
50
|
+
"@vaadin/test-runner-commands": "24.8.0-beta1",
|
|
51
51
|
"@vaadin/testing-helpers": "^1.1.0",
|
|
52
52
|
"sinon": "^18.0.0"
|
|
53
53
|
},
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "57ce3a90de99e49049312b0ba4041d3e7542e9d8"
|
|
59
59
|
}
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* Copyright (c) 2018 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import { afterNextRender, beforeNextRender } from '@polymer/polymer/lib/utils/render-status.js';
|
|
7
6
|
import { AriaModalController } from '@vaadin/a11y-base/src/aria-modal-controller.js';
|
|
8
7
|
import { FocusTrapController } from '@vaadin/a11y-base/src/focus-trap-controller.js';
|
|
8
|
+
import { animationFrame } from '@vaadin/component-base/src/async.js';
|
|
9
|
+
import { Debouncer } from '@vaadin/component-base/src/debounce.js';
|
|
9
10
|
import { I18nMixin } from '@vaadin/component-base/src/i18n-mixin.js';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -144,7 +145,9 @@ export const AppLayoutMixin = (superclass) =>
|
|
|
144
145
|
window.addEventListener('resize', this.__boundResizeListener);
|
|
145
146
|
this.addEventListener('drawer-toggle-click', this.__drawerToggleClickListener);
|
|
146
147
|
|
|
147
|
-
|
|
148
|
+
requestAnimationFrame(() => {
|
|
149
|
+
this._updateOffsetSize();
|
|
150
|
+
});
|
|
148
151
|
|
|
149
152
|
this._updateTouchOptimizedMode();
|
|
150
153
|
this._updateDrawerSize();
|
|
@@ -163,6 +166,7 @@ export const AppLayoutMixin = (superclass) =>
|
|
|
163
166
|
});
|
|
164
167
|
this._navbarSizeObserver.observe(this.$.navbarTop);
|
|
165
168
|
this._navbarSizeObserver.observe(this.$.navbarBottom);
|
|
169
|
+
this._navbarSizeObserver.observe(this.$.drawer);
|
|
166
170
|
|
|
167
171
|
window.addEventListener('close-overlay-drawer', this.__closeOverlayDrawerListener);
|
|
168
172
|
window.addEventListener('keydown', this.__onDrawerKeyDown);
|
|
@@ -255,12 +259,6 @@ export const AppLayoutMixin = (superclass) =>
|
|
|
255
259
|
this.__updateDrawerAriaAttributes();
|
|
256
260
|
}
|
|
257
261
|
|
|
258
|
-
/** @protected */
|
|
259
|
-
_afterFirstRender() {
|
|
260
|
-
this._blockAnimationUntilAfterNextRender();
|
|
261
|
-
this._updateOffsetSize();
|
|
262
|
-
}
|
|
263
|
-
|
|
264
262
|
/** @private */
|
|
265
263
|
_drawerToggleClick(e) {
|
|
266
264
|
e.stopPropagation();
|
|
@@ -508,8 +506,11 @@ export const AppLayoutMixin = (superclass) =>
|
|
|
508
506
|
/** @protected */
|
|
509
507
|
_blockAnimationUntilAfterNextRender() {
|
|
510
508
|
this.setAttribute('no-anim', '');
|
|
511
|
-
|
|
512
|
-
|
|
509
|
+
|
|
510
|
+
this.__debounceAnimation = Debouncer.debounce(this.__debounceAnimation, animationFrame, () => {
|
|
511
|
+
setTimeout(() => {
|
|
512
|
+
this.removeAttribute('no-anim');
|
|
513
|
+
});
|
|
513
514
|
});
|
|
514
515
|
}
|
|
515
516
|
|
|
@@ -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, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
7
|
-
import { buttonStyles } from '@vaadin/button/src/vaadin-button-
|
|
7
|
+
import { buttonStyles } from '@vaadin/button/src/vaadin-button-core-styles.js';
|
|
8
8
|
import { ButtonMixin } from '@vaadin/button/src/vaadin-button-mixin.js';
|
|
9
9
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
10
10
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
@@ -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 } from 'lit';
|
|
7
|
-
import { buttonStyles } from '@vaadin/button/src/vaadin-button-
|
|
7
|
+
import { buttonStyles } from '@vaadin/button/src/vaadin-button-core-styles.js';
|
|
8
8
|
import { ButtonMixin } from '@vaadin/button/src/vaadin-button-mixin.js';
|
|
9
9
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
10
10
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './vaadin-app-layout.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './vaadin-drawer-toggle.js';
|