@vaadin/side-nav
Advanced tools
Comparing version 24.4.0-alpha16 to 24.4.0-alpha17
{ | ||
"name": "@vaadin/side-nav", | ||
"version": "24.4.0-alpha16", | ||
"version": "24.4.0-alpha17", | ||
"publishConfig": { | ||
@@ -38,7 +38,7 @@ "access": "public" | ||
"@open-wc/dedupe-mixin": "^1.3.0", | ||
"@vaadin/a11y-base": "24.4.0-alpha16", | ||
"@vaadin/component-base": "24.4.0-alpha16", | ||
"@vaadin/vaadin-lumo-styles": "24.4.0-alpha16", | ||
"@vaadin/vaadin-material-styles": "24.4.0-alpha16", | ||
"@vaadin/vaadin-themable-mixin": "24.4.0-alpha16", | ||
"@vaadin/a11y-base": "24.4.0-alpha17", | ||
"@vaadin/component-base": "24.4.0-alpha17", | ||
"@vaadin/vaadin-lumo-styles": "24.4.0-alpha17", | ||
"@vaadin/vaadin-material-styles": "24.4.0-alpha17", | ||
"@vaadin/vaadin-themable-mixin": "24.4.0-alpha17", | ||
"lit": "^3.0.0" | ||
@@ -56,3 +56,3 @@ }, | ||
], | ||
"gitHead": "2d797855c2b3a3828ee7b0d90aeb227b56c32e76" | ||
"gitHead": "eb6b4dac66be1c0ddc77757bed5f84a6d355e5cf" | ||
} |
@@ -8,3 +8,2 @@ # @vaadin/side-nav | ||
[![npm version](https://badgen.net/npm/v/@vaadin/vaadin-side-nav)](https://www.npmjs.com/package/@vaadin/vaadin-side-nav) | ||
[![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC) | ||
@@ -11,0 +10,0 @@ ```html |
@@ -265,2 +265,3 @@ /** | ||
if (this.current) { | ||
this.__expandParentItems(); | ||
this.expanded = this._items.length > 0; | ||
@@ -271,2 +272,16 @@ } | ||
/** @private */ | ||
__expandParentItems() { | ||
const parentItem = this.__getParentItem(); | ||
if (parentItem) { | ||
parentItem.__expandParentItems(); | ||
} | ||
this.expanded = true; | ||
} | ||
/** @private */ | ||
__getParentItem() { | ||
return this.parentElement instanceof SideNavItem ? this.parentElement : null; | ||
} | ||
/** @private */ | ||
__isCurrent() { | ||
@@ -273,0 +288,0 @@ if (this.path == null) { |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/side-nav", | ||
"version": "24.4.0-alpha16", | ||
"version": "24.4.0-alpha17", | ||
"description-markup": "markdown", | ||
@@ -6,0 +6,0 @@ "contributions": { |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/side-nav", | ||
"version": "24.4.0-alpha16", | ||
"version": "24.4.0-alpha17", | ||
"description-markup": "markdown", | ||
@@ -6,0 +6,0 @@ "framework": "lit", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83585
1896
81
+ Added@vaadin/a11y-base@24.4.0-alpha17(transitive)
+ Added@vaadin/component-base@24.4.0-alpha17(transitive)
+ Added@vaadin/icon@24.4.0-alpha17(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.4.0-alpha17(transitive)
+ Added@vaadin/vaadin-material-styles@24.4.0-alpha17(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.4.0-alpha17(transitive)
- Removed@vaadin/a11y-base@24.4.0-alpha16(transitive)
- Removed@vaadin/component-base@24.4.0-alpha16(transitive)
- Removed@vaadin/icon@24.4.0-alpha16(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.4.0-alpha16(transitive)
- Removed@vaadin/vaadin-material-styles@24.4.0-alpha16(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.4.0-alpha16(transitive)