@vaadin/tabsheet
Advanced tools
Comparing version 24.5.0-alpha10 to 24.5.0-alpha11
{ | ||
"name": "@vaadin/tabsheet", | ||
"version": "24.5.0-alpha10", | ||
"version": "24.5.0-alpha11", | ||
"publishConfig": { | ||
@@ -40,11 +40,11 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "24.5.0-alpha10", | ||
"@vaadin/scroller": "24.5.0-alpha10", | ||
"@vaadin/tabs": "24.5.0-alpha10", | ||
"@vaadin/vaadin-lumo-styles": "24.5.0-alpha10", | ||
"@vaadin/vaadin-material-styles": "24.5.0-alpha10", | ||
"@vaadin/vaadin-themable-mixin": "24.5.0-alpha10" | ||
"@vaadin/component-base": "24.5.0-alpha11", | ||
"@vaadin/scroller": "24.5.0-alpha11", | ||
"@vaadin/tabs": "24.5.0-alpha11", | ||
"@vaadin/vaadin-lumo-styles": "24.5.0-alpha11", | ||
"@vaadin/vaadin-material-styles": "24.5.0-alpha11", | ||
"@vaadin/vaadin-themable-mixin": "24.5.0-alpha11" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "24.5.0-alpha10", | ||
"@vaadin/chai-plugins": "24.5.0-alpha11", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
@@ -57,3 +57,3 @@ "sinon": "^18.0.0" | ||
], | ||
"gitHead": "6f9c37308031af872a98017bfab4de89aeacda51" | ||
"gitHead": "8426cea2803a10db518fc85752eeea4c5c755687" | ||
} |
@@ -144,3 +144,24 @@ /** | ||
const panelSlot = this.shadowRoot.querySelector('#panel-slot'); | ||
this.__panelsObserver = new SlotObserver(panelSlot, () => { | ||
this.__panelsObserver = new SlotObserver(panelSlot, ({ addedNodes, removedNodes }) => { | ||
if (addedNodes.length) { | ||
addedNodes.forEach((node) => { | ||
// Preserve custom hidden attribute to not override it. | ||
if (node.nodeType === Node.ELEMENT_NODE && node.hidden) { | ||
node.__customHidden = true; | ||
} | ||
}); | ||
} | ||
if (removedNodes.length) { | ||
removedNodes.forEach((node) => { | ||
// Clear hidden attribute when removing node from the default slot, | ||
// e.g. when changing its slot to `prefix` or `suffix` dynamically. | ||
if (node.nodeType === Node.ELEMENT_NODE && node.hidden) { | ||
if (node.__customHidden) { | ||
delete node.__customHidden; | ||
} else { | ||
node.hidden = false; | ||
} | ||
} | ||
}); | ||
} | ||
this.__panels = Array.from( | ||
@@ -147,0 +168,0 @@ panelSlot.assignedNodes({ |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/tabsheet", | ||
"version": "24.5.0-alpha10", | ||
"version": "24.5.0-alpha11", | ||
"description-markup": "markdown", | ||
@@ -6,0 +6,0 @@ "contributions": { |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/tabsheet", | ||
"version": "24.5.0-alpha10", | ||
"version": "24.5.0-alpha11", | ||
"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
39185
671
+ Added@vaadin/a11y-base@24.5.0-alpha11(transitive)
+ Added@vaadin/component-base@24.5.0-alpha11(transitive)
+ Added@vaadin/icon@24.5.0-alpha11(transitive)
+ Added@vaadin/item@24.5.0-alpha11(transitive)
+ Added@vaadin/scroller@24.5.0-alpha11(transitive)
+ Added@vaadin/tabs@24.5.0-alpha11(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.5.0-alpha11(transitive)
+ Added@vaadin/vaadin-material-styles@24.5.0-alpha11(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.5.0-alpha11(transitive)
- Removed@vaadin/a11y-base@24.5.0-alpha10(transitive)
- Removed@vaadin/component-base@24.5.0-alpha10(transitive)
- Removed@vaadin/icon@24.5.0-alpha10(transitive)
- Removed@vaadin/item@24.5.0-alpha10(transitive)
- Removed@vaadin/scroller@24.5.0-alpha10(transitive)
- Removed@vaadin/tabs@24.5.0-alpha10(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.5.0-alpha10(transitive)
- Removed@vaadin/vaadin-material-styles@24.5.0-alpha10(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.5.0-alpha10(transitive)
Updated@vaadin/tabs@24.5.0-alpha11