@vaadin/tabsheet 24.0.0-alpha5 → 24.0.0-alpha7

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/tabsheet",
3
- "version": "24.0.0-alpha5",
3
+ "version": "24.0.0-alpha7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,13 +36,13 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "24.0.0-alpha5",
40
- "@vaadin/field-base": "24.0.0-alpha5",
41
- "@vaadin/scroller": "24.0.0-alpha5",
42
- "@vaadin/tabs": "24.0.0-alpha5",
43
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha5",
44
- "@vaadin/vaadin-material-styles": "24.0.0-alpha5",
45
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha5"
39
+ "@vaadin/component-base": "24.0.0-alpha7",
40
+ "@vaadin/field-base": "24.0.0-alpha7",
41
+ "@vaadin/scroller": "24.0.0-alpha7",
42
+ "@vaadin/tabs": "24.0.0-alpha7",
43
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha7",
44
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha7",
45
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha7"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@esm-bundle/chai": "^4.3.4",
@@ -53,5 +53,5 @@
53
53
  "web-types.json",
54
54
  "web-types.lit.json"
55
55
  ],
56
- "gitHead": "fc0b1721eda9e39cb289b239e440fc9e29573a31"
56
+ "gitHead": "aeb4535336813636736759e0a5de148b26bfc3b6"
57
57
  }
@@ -45,6 +45,7 @@ class TabsSlotController extends SlotController {
45
45
  tabs.addEventListener('selected-changed', this.__tabsSelectedChangedListener);
46
46
  this.host.__tabs = tabs;
47
47
  this.host.stateTarget = tabs;
48
+ this.__tabsItemsChangedListener();
48
49
  }
49
50
 
50
51
  teardownNode(tabs) {
@@ -242,7 +243,7 @@ class TabSheet extends ControllerMixin(DelegateStateMixin(ElementMixin(ThemableM
242
243
  const panel = panels.find((panel) => panel.getAttribute('tab') === tabItem.id);
243
244
  if (panel) {
244
245
  panel.role = 'tabpanel';
245
- panel.id = panel.id || `tabsheet-panel-${generateUniqueId()}`;
246
+ panel.id ||= `tabsheet-panel-${generateUniqueId()}`;
246
247
  panel.setAttribute('aria-labelledby', tabItem.id);
247
248
 
248
249
  tabItem.setAttribute('aria-controls', panel.id);
package/web-types.json CHANGED
@@ -1,65 +1,11 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tabsheet",
4
- "version": "24.0.0-alpha5",
4
+ "version": "24.0.0-alpha7",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
- "elements": [
9
- {
10
- "name": "vaadin-tabsheet",
11
- "description": "`<vaadin-tabsheet>` is a Web Component for organizing and grouping content\ninto scrollable panels. The panels can be switched between by using tabs.\n\n```\n <vaadin-tabsheet>\n <div slot=\"prefix\">Prefix</div>\n <div slot=\"suffix\">Suffix</div>\n\n <vaadin-tabs slot=\"tabs\">\n <vaadin-tab id=\"tab-1\">Tab 1</vaadin-tab>\n <vaadin-tab id=\"tab-2\">Tab 2</vaadin-tab>\n <vaadin-tab id=\"tab-3\">Tab 3</vaadin-tab>\n </vaadin-tabs>\n\n <div tab=\"tab-1\">Panel 1</div>\n <div tab=\"tab-2\">Panel 2</div>\n <div tab=\"tab-3\">Panel 3</div>\n </vaadin-tabsheet>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n--------- | ---------------\n`tabs-container` | The container for the slotted prefix, tabs and suffix\n`content` | The container for the slotted panels\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`loading` | Set when a tab without associated content is selected\n`overflow` | Set to `top`, `bottom`, `start`, `end`, all of them, or none.\n\nSee [Styling Components](hhttps://vaadin.com/docs/latest/components/ds-resources/customization/styling-components) documentation.",
12
- "attributes": [
13
- {
14
- "name": "selected",
15
- "description": "The index of the selected tab.",
16
- "value": {
17
- "type": [
18
- "number",
19
- "null",
20
- "undefined"
21
- ]
22
- }
23
- },
24
- {
25
- "name": "theme",
26
- "description": "The theme variants to apply to the component.",
27
- "value": {
28
- "type": [
29
- "string",
30
- "null",
31
- "undefined"
32
- ]
33
- }
34
- }
35
- ],
36
- "js": {
37
- "properties": [
38
- {
39
- "name": "selected",
40
- "description": "The index of the selected tab.",
41
- "value": {
42
- "type": [
43
- "number",
44
- "null",
45
- "undefined"
46
- ]
47
- }
48
- }
49
- ],
50
- "events": [
51
- {
52
- "name": "items-changed",
53
- "description": "Fired when the `items` property changes."
54
- },
55
- {
56
- "name": "selected-changed",
57
- "description": "Fired when the `selected` property changes."
58
- }
59
- ]
60
- }
61
- }
62
- ]
8
+ "elements": []
63
9
  }
64
10
  }
65
11
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tabsheet",
4
- "version": "24.0.0-alpha5",
4
+ "version": "24.0.0-alpha7",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -13,36 +13,7 @@
13
13
  },
14
14
  "contributions": {
15
15
  "html": {
16
- "elements": [
17
- {
18
- "name": "vaadin-tabsheet",
19
- "description": "`<vaadin-tabsheet>` is a Web Component for organizing and grouping content\ninto scrollable panels. The panels can be switched between by using tabs.\n\n```\n <vaadin-tabsheet>\n <div slot=\"prefix\">Prefix</div>\n <div slot=\"suffix\">Suffix</div>\n\n <vaadin-tabs slot=\"tabs\">\n <vaadin-tab id=\"tab-1\">Tab 1</vaadin-tab>\n <vaadin-tab id=\"tab-2\">Tab 2</vaadin-tab>\n <vaadin-tab id=\"tab-3\">Tab 3</vaadin-tab>\n </vaadin-tabs>\n\n <div tab=\"tab-1\">Panel 1</div>\n <div tab=\"tab-2\">Panel 2</div>\n <div tab=\"tab-3\">Panel 3</div>\n </vaadin-tabsheet>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n--------- | ---------------\n`tabs-container` | The container for the slotted prefix, tabs and suffix\n`content` | The container for the slotted panels\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`loading` | Set when a tab without associated content is selected\n`overflow` | Set to `top`, `bottom`, `start`, `end`, all of them, or none.\n\nSee [Styling Components](hhttps://vaadin.com/docs/latest/components/ds-resources/customization/styling-components) documentation.",
20
- "extension": true,
21
- "attributes": [
22
- {
23
- "name": ".selected",
24
- "description": "The index of the selected tab.",
25
- "value": {
26
- "kind": "expression"
27
- }
28
- },
29
- {
30
- "name": "@items-changed",
31
- "description": "Fired when the `items` property changes.",
32
- "value": {
33
- "kind": "expression"
34
- }
35
- },
36
- {
37
- "name": "@selected-changed",
38
- "description": "Fired when the `selected` property changes.",
39
- "value": {
40
- "kind": "expression"
41
- }
42
- }
43
- ]
44
- }
45
- ]
16
+ "elements": []
46
17
  }
47
18
  }
48
19
  }