@vaadin/tabsheet
Advanced tools
Comparing version 24.4.6 to 24.4.7
{ | ||
"name": "@vaadin/tabsheet", | ||
"version": "24.4.6", | ||
"version": "24.4.7", | ||
"publishConfig": { | ||
@@ -40,8 +40,8 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "~24.4.6", | ||
"@vaadin/scroller": "~24.4.6", | ||
"@vaadin/tabs": "~24.4.6", | ||
"@vaadin/vaadin-lumo-styles": "~24.4.6", | ||
"@vaadin/vaadin-material-styles": "~24.4.6", | ||
"@vaadin/vaadin-themable-mixin": "~24.4.6" | ||
"@vaadin/component-base": "~24.4.7", | ||
"@vaadin/scroller": "~24.4.7", | ||
"@vaadin/tabs": "~24.4.7", | ||
"@vaadin/vaadin-lumo-styles": "~24.4.7", | ||
"@vaadin/vaadin-material-styles": "~24.4.7", | ||
"@vaadin/vaadin-themable-mixin": "~24.4.7" | ||
}, | ||
@@ -57,3 +57,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "46d3cdb72eb99d544c7bb86c3de95043b9e5857f" | ||
"gitHead": "5889e3cbcb0ad8fb29f18d3e04417ad78eff24d2" | ||
} |
@@ -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.4.6", | ||
"version": "24.4.7", | ||
"description-markup": "markdown", | ||
@@ -6,0 +6,0 @@ "contributions": { |
{ | ||
"$schema": "https://json.schemastore.org/web-types", | ||
"name": "@vaadin/tabsheet", | ||
"version": "24.4.6", | ||
"version": "24.4.7", | ||
"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
39045
668