@vaadin/app-layout 24.8.0-alpha14 → 24.8.0-alpha16
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 +10 -10
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -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-alpha16",
|
|
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-alpha16",
|
|
41
|
+
"@vaadin/button": "24.8.0-alpha16",
|
|
42
|
+
"@vaadin/component-base": "24.8.0-alpha16",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "24.8.0-alpha16",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "24.8.0-alpha16",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "24.8.0-alpha16",
|
|
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-alpha16",
|
|
50
|
+
"@vaadin/test-runner-commands": "24.8.0-alpha16",
|
|
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": "ac26cb142cd3d6374423ca699677d47557399d47"
|
|
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();
|
|
@@ -255,12 +258,6 @@ export const AppLayoutMixin = (superclass) =>
|
|
|
255
258
|
this.__updateDrawerAriaAttributes();
|
|
256
259
|
}
|
|
257
260
|
|
|
258
|
-
/** @protected */
|
|
259
|
-
_afterFirstRender() {
|
|
260
|
-
this._blockAnimationUntilAfterNextRender();
|
|
261
|
-
this._updateOffsetSize();
|
|
262
|
-
}
|
|
263
|
-
|
|
264
261
|
/** @private */
|
|
265
262
|
_drawerToggleClick(e) {
|
|
266
263
|
e.stopPropagation();
|
|
@@ -508,8 +505,11 @@ export const AppLayoutMixin = (superclass) =>
|
|
|
508
505
|
/** @protected */
|
|
509
506
|
_blockAnimationUntilAfterNextRender() {
|
|
510
507
|
this.setAttribute('no-anim', '');
|
|
511
|
-
|
|
512
|
-
|
|
508
|
+
|
|
509
|
+
this.__debounceAnimation = Debouncer.debounce(this.__debounceAnimation, animationFrame, () => {
|
|
510
|
+
setTimeout(() => {
|
|
511
|
+
this.removeAttribute('no-anim');
|
|
512
|
+
});
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED