@vaadin/app-layout 24.8.0-alpha15 → 24.8.0-alpha17

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": "24.8.0-alpha15",
3
+ "version": "24.8.0-alpha17",
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-alpha15",
41
- "@vaadin/button": "24.8.0-alpha15",
42
- "@vaadin/component-base": "24.8.0-alpha15",
43
- "@vaadin/vaadin-lumo-styles": "24.8.0-alpha15",
44
- "@vaadin/vaadin-material-styles": "24.8.0-alpha15",
45
- "@vaadin/vaadin-themable-mixin": "24.8.0-alpha15",
40
+ "@vaadin/a11y-base": "24.8.0-alpha17",
41
+ "@vaadin/button": "24.8.0-alpha17",
42
+ "@vaadin/component-base": "24.8.0-alpha17",
43
+ "@vaadin/vaadin-lumo-styles": "24.8.0-alpha17",
44
+ "@vaadin/vaadin-material-styles": "24.8.0-alpha17",
45
+ "@vaadin/vaadin-themable-mixin": "24.8.0-alpha17",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "24.8.0-alpha15",
50
- "@vaadin/test-runner-commands": "24.8.0-alpha15",
49
+ "@vaadin/chai-plugins": "24.8.0-alpha17",
50
+ "@vaadin/test-runner-commands": "24.8.0-alpha17",
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": "d2d0d1bb5efa3a439e568c1693d2fee3cc18fc67"
58
+ "gitHead": "bf06d4d774049e0d19a3f008273864df15e085f6"
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
- beforeNextRender(this, this._afterFirstRender);
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
- afterNextRender(this, () => {
512
- this.removeAttribute('no-anim');
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/app-layout",
4
- "version": "24.8.0-alpha15",
4
+ "version": "24.8.0-alpha17",
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": "24.8.0-alpha15",
4
+ "version": "24.8.0-alpha17",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {