@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-alpha3",
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-alpha3",
38
- "@vaadin/item": "23.1.0-alpha3",
39
- "@vaadin/vaadin-list-mixin": "23.1.0-alpha3",
40
- "@vaadin/vaadin-lumo-styles": "23.1.0-alpha3",
41
- "@vaadin/vaadin-material-styles": "23.1.0-alpha3",
42
- "@vaadin/vaadin-themable-mixin": "23.1.0-alpha3"
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": "8c9e64e8dfa158dd52a9bf6da351ff038c88ca85"
49
+ "gitHead": "f11f9245a0b5e6bf912725a501c27c24b74e7c8d"
50
50
  }
@@ -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
 
@@ -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 == 1) {
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
- overflow ? this.setAttribute('overflow', overflow.trim()) : this.removeAttribute('overflow');
260
+ if (overflow) {
261
+ this.setAttribute('overflow', overflow.trim());
262
+ } else {
263
+ this.removeAttribute('overflow');
264
+ }
261
265
  }
262
266
  }
263
267
 
@@ -231,5 +231,5 @@ registerStyles(
231
231
  transform-origin: 0% 50%;
232
232
  }
233
233
  `,
234
- { moduleId: 'lumo-tab' }
234
+ { moduleId: 'lumo-tab' },
235
235
  );
@@ -247,5 +247,5 @@ registerStyles(
247
247
  --_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, transparent, #000 2em);
248
248
  }
249
249
  `,
250
- { moduleId: 'lumo-tabs' }
250
+ { moduleId: 'lumo-tabs' },
251
251
  );
@@ -139,5 +139,5 @@ registerStyles(
139
139
  box-shadow: inset -2px 0 0 0 var(--material-primary-color);
140
140
  }
141
141
  `,
142
- { moduleId: 'material-tab' }
142
+ { moduleId: 'material-tab' },
143
143
  );
@@ -87,5 +87,5 @@ registerStyles(
87
87
  content: var(--material-icons-chevron-right);
88
88
  }
89
89
  `,
90
- { moduleId: 'material-tabs' }
90
+ { moduleId: 'material-tabs' },
91
91
  );