@vaadin/app-layout 25.3.0-alpha8 → 25.3.0-alpha9

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.3.0-alpha8",
3
+ "version": "25.3.0-alpha9",
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.3.0-alpha8",
39
- "@vaadin/button": "25.3.0-alpha8",
40
- "@vaadin/component-base": "25.3.0-alpha8",
41
- "@vaadin/vaadin-themable-mixin": "25.3.0-alpha8",
38
+ "@vaadin/a11y-base": "25.3.0-alpha9",
39
+ "@vaadin/button": "25.3.0-alpha9",
40
+ "@vaadin/component-base": "25.3.0-alpha9",
41
+ "@vaadin/vaadin-themable-mixin": "25.3.0-alpha9",
42
42
  "lit": "^3.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@vaadin/aura": "25.3.0-alpha8",
46
- "@vaadin/chai-plugins": "25.3.0-alpha8",
47
- "@vaadin/test-runner-commands": "25.3.0-alpha8",
45
+ "@vaadin/aura": "25.3.0-alpha9",
46
+ "@vaadin/chai-plugins": "25.3.0-alpha9",
47
+ "@vaadin/test-runner-commands": "25.3.0-alpha9",
48
48
  "@vaadin/testing-helpers": "^2.0.0",
49
- "@vaadin/vaadin-lumo-styles": "25.3.0-alpha8",
49
+ "@vaadin/vaadin-lumo-styles": "25.3.0-alpha9",
50
50
  "sinon": "^22.0.0"
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": "ccbb4aaffb63c745c6da0426b532d4d05e47af29"
57
+ "gitHead": "cb915ebde095ec5b94a87af93dd4530f51984c52"
58
58
  }
@@ -503,17 +503,11 @@ export const AppLayoutMixin = (superclass) =>
503
503
  });
504
504
  }
505
505
 
506
- if (this.$.navbarTop.querySelector('[name=navbar]').assignedNodes().length === 0) {
507
- this.$.navbarTop.setAttribute('hidden', '');
508
- } else {
509
- this.$.navbarTop.removeAttribute('hidden');
510
- }
506
+ const hasNavbar = this.$.navbarTop.querySelector('[name=navbar]').assignedNodes().length > 0;
507
+ this.$.navbarTop.toggleAttribute('hidden', !hasNavbar);
511
508
 
512
- if (this.$.navbarBottom.querySelector('[name=navbar-bottom]').assignedNodes().length === 0) {
513
- this.$.navbarBottom.setAttribute('hidden', '');
514
- } else {
515
- this.$.navbarBottom.removeAttribute('hidden');
516
- }
509
+ const hasNavbarBottom = this.$.navbarBottom.querySelector('[name=navbar-bottom]').assignedNodes().length > 0;
510
+ this.$.navbarBottom.toggleAttribute('hidden', !hasNavbarBottom);
517
511
  }
518
512
 
519
513
  /** @protected */
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.3.0-alpha8",
4
+ "version": "25.3.0-alpha9",
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.3.0-alpha8",
4
+ "version": "25.3.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {