@vaadin/tabs 23.1.0-alpha3 → 23.1.0-beta2
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/tabs",
|
|
3
|
-
"version": "23.1.0-
|
|
3
|
+
"version": "23.1.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@polymer/polymer": "^3.0.0",
|
|
37
|
-
"@vaadin/component-base": "23.1.0-
|
|
38
|
-
"@vaadin/item": "23.1.0-
|
|
39
|
-
"@vaadin/vaadin-list-mixin": "23.1.0-
|
|
40
|
-
"@vaadin/vaadin-lumo-styles": "23.1.0-
|
|
41
|
-
"@vaadin/vaadin-material-styles": "23.1.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "23.1.0-
|
|
37
|
+
"@vaadin/component-base": "23.1.0-beta2",
|
|
38
|
+
"@vaadin/item": "23.1.0-beta2",
|
|
39
|
+
"@vaadin/vaadin-list-mixin": "23.1.0-beta2",
|
|
40
|
+
"@vaadin/vaadin-lumo-styles": "23.1.0-beta2",
|
|
41
|
+
"@vaadin/vaadin-material-styles": "23.1.0-beta2",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "23.1.0-beta2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@esm-bundle/chai": "^4.3.4",
|
|
46
46
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
47
47
|
"sinon": "^13.0.2"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "f11f9245a0b5e6bf912725a501c27c24b74e7c8d"
|
|
50
50
|
}
|
package/src/vaadin-tabs.d.ts
CHANGED
|
@@ -76,13 +76,13 @@ declare class Tabs extends ResizeMixin(ElementMixin(ListMixin(ThemableMixin(HTML
|
|
|
76
76
|
addEventListener<K extends keyof TabsEventMap>(
|
|
77
77
|
type: K,
|
|
78
78
|
listener: (this: Tabs, ev: TabsEventMap[K]) => void,
|
|
79
|
-
options?: boolean | AddEventListenerOptions
|
|
79
|
+
options?: boolean | AddEventListenerOptions,
|
|
80
80
|
): void;
|
|
81
81
|
|
|
82
82
|
removeEventListener<K extends keyof TabsEventMap>(
|
|
83
83
|
type: K,
|
|
84
84
|
listener: (this: Tabs, ev: TabsEventMap[K]) => void,
|
|
85
|
-
options?: boolean | EventListenerOptions
|
|
85
|
+
options?: boolean | EventListenerOptions,
|
|
86
86
|
): void;
|
|
87
87
|
}
|
|
88
88
|
|
package/src/vaadin-tabs.js
CHANGED
|
@@ -153,7 +153,7 @@ class Tabs extends ResizeMixin(ElementMixin(ListMixin(ThemableMixin(PolymerEleme
|
|
|
153
153
|
*/
|
|
154
154
|
orientation: {
|
|
155
155
|
value: 'horizontal',
|
|
156
|
-
type: String
|
|
156
|
+
type: String,
|
|
157
157
|
},
|
|
158
158
|
|
|
159
159
|
/**
|
|
@@ -161,8 +161,8 @@ class Tabs extends ResizeMixin(ElementMixin(ListMixin(ThemableMixin(PolymerEleme
|
|
|
161
161
|
*/
|
|
162
162
|
selected: {
|
|
163
163
|
value: 0,
|
|
164
|
-
type: Number
|
|
165
|
-
}
|
|
164
|
+
type: Number,
|
|
165
|
+
},
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -251,13 +251,17 @@ class Tabs extends ResizeMixin(ElementMixin(ListMixin(ThemableMixin(PolymerEleme
|
|
|
251
251
|
let overflow = scrollPosition > 0 ? 'start' : '';
|
|
252
252
|
overflow += scrollPosition + this._scrollOffset < scrollSize ? ' end' : '';
|
|
253
253
|
|
|
254
|
-
if (this.__direction
|
|
254
|
+
if (this.__direction === 1) {
|
|
255
255
|
overflow = overflow.replace(/start|end/gi, (matched) => {
|
|
256
256
|
return matched === 'start' ? 'end' : 'start';
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
if (overflow) {
|
|
261
|
+
this.setAttribute('overflow', overflow.trim());
|
|
262
|
+
} else {
|
|
263
|
+
this.removeAttribute('overflow');
|
|
264
|
+
}
|
|
261
265
|
}
|
|
262
266
|
}
|
|
263
267
|
|