@vaadin/tabsheet 24.4.6 → 24.4.7
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 +8 -8
- package/src/vaadin-tabsheet-mixin.js +22 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/tabsheet",
|
|
3
|
-
"version": "24.4.
|
|
3
|
+
"version": "24.4.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/component-base": "~24.4.
|
|
41
|
-
"@vaadin/scroller": "~24.4.
|
|
42
|
-
"@vaadin/tabs": "~24.4.
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "~24.4.
|
|
44
|
-
"@vaadin/vaadin-material-styles": "~24.4.
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "~24.4.
|
|
40
|
+
"@vaadin/component-base": "~24.4.7",
|
|
41
|
+
"@vaadin/scroller": "~24.4.7",
|
|
42
|
+
"@vaadin/tabs": "~24.4.7",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "~24.4.7",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "~24.4.7",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "~24.4.7"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"web-types.json",
|
|
54
54
|
"web-types.lit.json"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "5889e3cbcb0ad8fb29f18d3e04417ad78eff24d2"
|
|
57
57
|
}
|
|
@@ -141,7 +141,28 @@ export const TabSheetMixin = (superClass) =>
|
|
|
141
141
|
|
|
142
142
|
// Observe the panels slot for nodes. Set the assigned element nodes as the __panels array.
|
|
143
143
|
const panelSlot = this.shadowRoot.querySelector('#panel-slot');
|
|
144
|
-
this.__panelsObserver = new SlotObserver(panelSlot, () => {
|
|
144
|
+
this.__panelsObserver = new SlotObserver(panelSlot, ({ addedNodes, removedNodes }) => {
|
|
145
|
+
if (addedNodes.length) {
|
|
146
|
+
addedNodes.forEach((node) => {
|
|
147
|
+
// Preserve custom hidden attribute to not override it.
|
|
148
|
+
if (node.nodeType === Node.ELEMENT_NODE && node.hidden) {
|
|
149
|
+
node.__customHidden = true;
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
if (removedNodes.length) {
|
|
154
|
+
removedNodes.forEach((node) => {
|
|
155
|
+
// Clear hidden attribute when removing node from the default slot,
|
|
156
|
+
// e.g. when changing its slot to `prefix` or `suffix` dynamically.
|
|
157
|
+
if (node.nodeType === Node.ELEMENT_NODE && node.hidden) {
|
|
158
|
+
if (node.__customHidden) {
|
|
159
|
+
delete node.__customHidden;
|
|
160
|
+
} else {
|
|
161
|
+
node.hidden = false;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
}
|
|
145
166
|
this.__panels = Array.from(
|
|
146
167
|
panelSlot.assignedNodes({
|
|
147
168
|
flatten: true,
|
package/web-types.json
CHANGED