@vaadin/tabs 24.0.0-alpha9 → 24.0.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": "24.0.0-alpha9",
3
+ "version": "24.0.0-beta2",
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-alpha9",
40
- "@vaadin/item": "24.0.0-alpha9",
41
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha9",
42
- "@vaadin/vaadin-material-styles": "24.0.0-alpha9",
43
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha9"
39
+ "@vaadin/component-base": "24.0.0-beta2",
40
+ "@vaadin/item": "24.0.0-beta2",
41
+ "@vaadin/vaadin-lumo-styles": "24.0.0-beta2",
42
+ "@vaadin/vaadin-material-styles": "24.0.0-beta2",
43
+ "@vaadin/vaadin-themable-mixin": "24.0.0-beta2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
47
- "@vaadin/testing-helpers": "^0.3.2",
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": "cc3f747164041566b300bde4b105d2475649e93f"
54
+ "gitHead": "00086f1f6d487f042f189c9b9ecd7ba736960888"
55
55
  }
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tabs",
4
- "version": "24.0.0-alpha9",
4
+ "version": "24.0.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -59,6 +59,17 @@
59
59
  "name": "vaadin-tabs",
60
60
  "description": "`<vaadin-tabs>` is a Web Component for organizing and grouping content into sections.\n\n```\n <vaadin-tabs selected=\"4\">\n <vaadin-tab>Page 1</vaadin-tab>\n <vaadin-tab>Page 2</vaadin-tab>\n <vaadin-tab>Page 3</vaadin-tab>\n <vaadin-tab>Page 4</vaadin-tab>\n </vaadin-tabs>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------------|--------------------------------------\n`back-button` | Button for moving the scroll back\n`tabs` | The tabs container\n`forward-button` | Button for moving the scroll forward\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n-----------|-------------|------------\n`orientation` | Tabs disposition, valid values are `horizontal` and `vertical`. | :host\n`overflow` | It's set to `start`, `end`, none or both. | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
61
61
  "attributes": [
62
+ {
63
+ "name": "disabled",
64
+ "description": "If true, the user cannot interact with this element.\nWhen the element is disabled, the selected item is\nnot updated when `selected` property is changed.",
65
+ "value": {
66
+ "type": [
67
+ "boolean",
68
+ "null",
69
+ "undefined"
70
+ ]
71
+ }
72
+ },
62
73
  {
63
74
  "name": "selected",
64
75
  "description": "The index of the selected tab.",
@@ -93,6 +104,17 @@
93
104
  ],
94
105
  "js": {
95
106
  "properties": [
107
+ {
108
+ "name": "disabled",
109
+ "description": "If true, the user cannot interact with this element.\nWhen the element is disabled, the selected item is\nnot updated when `selected` property is changed.",
110
+ "value": {
111
+ "type": [
112
+ "boolean",
113
+ "null",
114
+ "undefined"
115
+ ]
116
+ }
117
+ },
96
118
  {
97
119
  "name": "selected",
98
120
  "description": "The index of the selected tab.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tabs",
4
- "version": "24.0.0-alpha9",
4
+ "version": "24.0.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -40,6 +40,13 @@
40
40
  "description": "`<vaadin-tabs>` is a Web Component for organizing and grouping content into sections.\n\n```\n <vaadin-tabs selected=\"4\">\n <vaadin-tab>Page 1</vaadin-tab>\n <vaadin-tab>Page 2</vaadin-tab>\n <vaadin-tab>Page 3</vaadin-tab>\n <vaadin-tab>Page 4</vaadin-tab>\n </vaadin-tabs>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n------------------|--------------------------------------\n`back-button` | Button for moving the scroll back\n`tabs` | The tabs container\n`forward-button` | Button for moving the scroll forward\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n-----------|-------------|------------\n`orientation` | Tabs disposition, valid values are `horizontal` and `vertical`. | :host\n`overflow` | It's set to `start`, `end`, none or both. | :host\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
41
41
  "extension": true,
42
42
  "attributes": [
43
+ {
44
+ "name": "?disabled",
45
+ "description": "If true, the user cannot interact with this element.\nWhen the element is disabled, the selected item is\nnot updated when `selected` property is changed.",
46
+ "value": {
47
+ "kind": "expression"
48
+ }
49
+ },
43
50
  {
44
51
  "name": ".selected",
45
52
  "description": "The index of the selected tab.",