@vaadin/tabsheet 24.2.0-alpha5 → 24.2.0-alpha6
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.js +2 -2
- 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.2.0-
|
|
3
|
+
"version": "24.2.0-alpha6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/component-base": "24.2.0-
|
|
40
|
-
"@vaadin/scroller": "24.2.0-
|
|
41
|
-
"@vaadin/tabs": "24.2.0-
|
|
42
|
-
"@vaadin/vaadin-lumo-styles": "24.2.0-
|
|
43
|
-
"@vaadin/vaadin-material-styles": "24.2.0-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "24.2.0-
|
|
39
|
+
"@vaadin/component-base": "24.2.0-alpha6",
|
|
40
|
+
"@vaadin/scroller": "24.2.0-alpha6",
|
|
41
|
+
"@vaadin/tabs": "24.2.0-alpha6",
|
|
42
|
+
"@vaadin/vaadin-lumo-styles": "24.2.0-alpha6",
|
|
43
|
+
"@vaadin/vaadin-material-styles": "24.2.0-alpha6",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "24.2.0-alpha6"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"web-types.json",
|
|
53
53
|
"web-types.lit.json"
|
|
54
54
|
],
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "3ef6e6cd66919b3ef7637e42916e4c54656beb51"
|
|
56
56
|
}
|
package/src/vaadin-tabsheet.js
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import './vaadin-tabsheet-scroller.js';
|
|
7
|
-
import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
|
|
8
7
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
9
8
|
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
|
|
10
9
|
import { DelegateStateMixin } from '@vaadin/component-base/src/delegate-state-mixin.js';
|
|
11
10
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
12
11
|
import { OverflowController } from '@vaadin/component-base/src/overflow-controller.js';
|
|
13
12
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
13
|
+
import { SlotObserver } from '@vaadin/component-base/src/slot-observer.js';
|
|
14
14
|
import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
|
|
15
15
|
import { Tabs } from '@vaadin/tabs/src/vaadin-tabs.js';
|
|
16
16
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
@@ -222,7 +222,7 @@ class TabSheet extends ControllerMixin(DelegateStateMixin(ElementMixin(ThemableM
|
|
|
222
222
|
|
|
223
223
|
// Observe the panels slot for nodes. Set the assigned element nodes as the __panels array.
|
|
224
224
|
const panelSlot = this.shadowRoot.querySelector('#panel-slot');
|
|
225
|
-
this.__panelsObserver = new
|
|
225
|
+
this.__panelsObserver = new SlotObserver(panelSlot, () => {
|
|
226
226
|
this.__panels = Array.from(panelSlot.assignedNodes({ flatten: true })).filter(
|
|
227
227
|
(node) => node.nodeType === Node.ELEMENT_NODE,
|
|
228
228
|
);
|
package/web-types.json
CHANGED