@vaadin/tabs 24.0.0-alpha8 → 24.0.0-beta1
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-tabs.js +26 -25
- 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/tabs",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-beta1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/component-base": "24.0.0-
|
|
40
|
-
"@vaadin/item": "24.0.0-
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "24.0.0-
|
|
42
|
-
"@vaadin/vaadin-material-styles": "24.0.0-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "24.0.0-
|
|
39
|
+
"@vaadin/component-base": "24.0.0-beta1",
|
|
40
|
+
"@vaadin/item": "24.0.0-beta1",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "24.0.0-beta1",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "24.0.0-beta1",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "24.0.0-beta1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
47
|
-
"@vaadin/testing-helpers": "^0.
|
|
47
|
+
"@vaadin/testing-helpers": "^0.4.0",
|
|
48
48
|
"sinon": "^13.0.2"
|
|
49
49
|
},
|
|
50
50
|
"web-types": [
|
|
51
51
|
"web-types.json",
|
|
52
52
|
"web-types.lit.json"
|
|
53
53
|
],
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "c5b48921a62482746df8e46994b37e1490fec27e"
|
|
55
55
|
}
|
package/src/vaadin-tabs.js
CHANGED
|
@@ -110,11 +110,11 @@ class Tabs extends ResizeMixin(ElementMixin(ListMixin(ThemableMixin(PolymerEleme
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
[part='back-button']::after {
|
|
113
|
-
content: '
|
|
113
|
+
content: '\\25C0';
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
[part='forward-button']::after {
|
|
117
|
-
content: '
|
|
117
|
+
content: '\\25B6';
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
:host([orientation='vertical']) [part='back-button'],
|
|
@@ -125,11 +125,11 @@ class Tabs extends ResizeMixin(ElementMixin(ListMixin(ThemableMixin(PolymerEleme
|
|
|
125
125
|
/* RTL specific styles */
|
|
126
126
|
|
|
127
127
|
:host([dir='rtl']) [part='back-button']::after {
|
|
128
|
-
content: '
|
|
128
|
+
content: '\\25B6';
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
:host([dir='rtl']) [part='forward-button']::after {
|
|
132
|
-
content: '
|
|
132
|
+
content: '\\25C0';
|
|
133
133
|
}
|
|
134
134
|
</style>
|
|
135
135
|
<div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
|
|
@@ -179,6 +179,28 @@ class Tabs extends ResizeMixin(ElementMixin(ListMixin(ThemableMixin(PolymerEleme
|
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
/**
|
|
183
|
+
* @return {number}
|
|
184
|
+
* @protected
|
|
185
|
+
*/
|
|
186
|
+
get _scrollOffset() {
|
|
187
|
+
return this._vertical ? this._scrollerElement.offsetHeight : this._scrollerElement.offsetWidth;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @return {!HTMLElement}
|
|
192
|
+
* @protected
|
|
193
|
+
* @override
|
|
194
|
+
*/
|
|
195
|
+
get _scrollerElement() {
|
|
196
|
+
return this.$.scroll;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/** @private */
|
|
200
|
+
get __direction() {
|
|
201
|
+
return !this._vertical && this.__isRTL ? 1 : -1;
|
|
202
|
+
}
|
|
203
|
+
|
|
182
204
|
/** @protected */
|
|
183
205
|
ready() {
|
|
184
206
|
super.ready();
|
|
@@ -222,27 +244,6 @@ class Tabs extends ResizeMixin(ElementMixin(ListMixin(ThemableMixin(PolymerEleme
|
|
|
222
244
|
this._scroll(this.__direction * this._scrollOffset);
|
|
223
245
|
}
|
|
224
246
|
|
|
225
|
-
/**
|
|
226
|
-
* @return {number}
|
|
227
|
-
* @protected
|
|
228
|
-
*/
|
|
229
|
-
get _scrollOffset() {
|
|
230
|
-
return this._vertical ? this._scrollerElement.offsetHeight : this._scrollerElement.offsetWidth;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* @return {!HTMLElement}
|
|
235
|
-
* @protected
|
|
236
|
-
*/
|
|
237
|
-
get _scrollerElement() {
|
|
238
|
-
return this.$.scroll;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/** @private */
|
|
242
|
-
get __direction() {
|
|
243
|
-
return !this._vertical && this.__isRTL ? 1 : -1;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
247
|
/** @private */
|
|
247
248
|
_updateOverflow() {
|
|
248
249
|
const scrollPosition = this._vertical
|
package/web-types.json
CHANGED