@vaadin/tabsheet 24.6.0-alpha4 → 24.6.0-alpha5
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 +13 -9
- package/src/vaadin-tabsheet-mixin.js +20 -6
- package/src/vaadin-tabsheet.js +1 -0
- 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.6.0-
|
|
3
|
+
"version": "24.6.0-alpha5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
+
"!src/vaadin-lit-tabsheet-scroller.js",
|
|
25
|
+
"!src/vaadin-lit-tabsheet.d.ts",
|
|
26
|
+
"!src/vaadin-lit-tabsheet.js",
|
|
24
27
|
"theme",
|
|
25
28
|
"vaadin-*.d.ts",
|
|
26
29
|
"vaadin-*.js",
|
|
@@ -37,15 +40,16 @@
|
|
|
37
40
|
"dependencies": {
|
|
38
41
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
42
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/component-base": "24.6.0-
|
|
41
|
-
"@vaadin/scroller": "24.6.0-
|
|
42
|
-
"@vaadin/tabs": "24.6.0-
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "24.6.0-
|
|
44
|
-
"@vaadin/vaadin-material-styles": "24.6.0-
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "24.6.0-
|
|
43
|
+
"@vaadin/component-base": "24.6.0-alpha5",
|
|
44
|
+
"@vaadin/scroller": "24.6.0-alpha5",
|
|
45
|
+
"@vaadin/tabs": "24.6.0-alpha5",
|
|
46
|
+
"@vaadin/vaadin-lumo-styles": "24.6.0-alpha5",
|
|
47
|
+
"@vaadin/vaadin-material-styles": "24.6.0-alpha5",
|
|
48
|
+
"@vaadin/vaadin-themable-mixin": "24.6.0-alpha5",
|
|
49
|
+
"lit": "^3.0.0"
|
|
46
50
|
},
|
|
47
51
|
"devDependencies": {
|
|
48
|
-
"@vaadin/chai-plugins": "24.6.0-
|
|
52
|
+
"@vaadin/chai-plugins": "24.6.0-alpha5",
|
|
49
53
|
"@vaadin/testing-helpers": "^1.0.0",
|
|
50
54
|
"sinon": "^18.0.0"
|
|
51
55
|
},
|
|
@@ -53,5 +57,5 @@
|
|
|
53
57
|
"web-types.json",
|
|
54
58
|
"web-types.lit.json"
|
|
55
59
|
],
|
|
56
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "cbfa46fe276f254dcaa99a622710d56df7f0a539"
|
|
57
61
|
}
|
|
@@ -123,12 +123,7 @@ export const TabSheetMixin = (superClass) =>
|
|
|
123
123
|
|
|
124
124
|
/** @override */
|
|
125
125
|
static get delegateProps() {
|
|
126
|
-
return ['selected'];
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/** @override */
|
|
130
|
-
static get delegateAttrs() {
|
|
131
|
-
return ['theme'];
|
|
126
|
+
return ['selected', '_theme'];
|
|
132
127
|
}
|
|
133
128
|
|
|
134
129
|
/** @protected */
|
|
@@ -171,6 +166,25 @@ export const TabSheetMixin = (superClass) =>
|
|
|
171
166
|
});
|
|
172
167
|
}
|
|
173
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Override method from `DelegateStateMixin` to set delegate `theme`
|
|
171
|
+
* using attribute instead of property (needed for the Lit version).
|
|
172
|
+
* @protected
|
|
173
|
+
* @override
|
|
174
|
+
*/
|
|
175
|
+
_delegateProperty(name, value) {
|
|
176
|
+
if (!this.stateTarget) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (name === '_theme') {
|
|
181
|
+
this._delegateAttribute('theme', value);
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
super._delegateProperty(name, value);
|
|
186
|
+
}
|
|
187
|
+
|
|
174
188
|
/**
|
|
175
189
|
* An observer which applies the necessary roles and ARIA attributes
|
|
176
190
|
* to associate the tab elements with the panels.
|
package/src/vaadin-tabsheet.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
+
import '@vaadin/tabs/src/vaadin-tabs.js';
|
|
6
7
|
import './vaadin-tabsheet-scroller.js';
|
|
7
8
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
8
9
|
import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
|
package/web-types.json
CHANGED