@vaadin/tabsheet 24.0.0-alpha6 → 24.0.0-alpha8

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-alpha6",
3
+ "version": "24.0.0-alpha8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,13 +36,12 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "24.0.0-alpha6",
40
- "@vaadin/field-base": "24.0.0-alpha6",
41
- "@vaadin/scroller": "24.0.0-alpha6",
42
- "@vaadin/tabs": "24.0.0-alpha6",
43
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha6",
44
- "@vaadin/vaadin-material-styles": "24.0.0-alpha6",
45
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha6"
39
+ "@vaadin/component-base": "24.0.0-alpha8",
40
+ "@vaadin/scroller": "24.0.0-alpha8",
41
+ "@vaadin/tabs": "24.0.0-alpha8",
42
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha8",
43
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha8",
44
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha8"
46
45
  },
47
46
  "devDependencies": {
48
47
  "@esm-bundle/chai": "^4.3.4",
@@ -53,5 +52,5 @@
53
52
  "web-types.json",
54
53
  "web-types.lit.json"
55
54
  ],
56
- "gitHead": "0004ac92b6e5f415b5fa949e0582d1d11e527b1f"
55
+ "gitHead": "476752249bb12295c500980d98a3256ad3b22b73"
57
56
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2022 Vaadin Ltd.
3
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { Scroller } from '@vaadin/scroller/src/vaadin-scroller.js';
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2022 Vaadin Ltd.
3
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { PolymerElement } from '@polymer/polymer/polymer-element.js';
7
7
  import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
8
+ import { DelegateStateMixin } from '@vaadin/component-base/src/delegate-state-mixin.js';
8
9
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
9
- import { DelegateStateMixin } from '@vaadin/field-base/src/delegate-state-mixin.js';
10
10
  import type { Tab } from '@vaadin/tabs/src/vaadin-tab.js';
11
11
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
12
12
 
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2022 Vaadin Ltd.
3
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import './vaadin-tabsheet-scroller.js';
7
7
  import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
8
8
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
9
9
  import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
10
+ import { DelegateStateMixin } from '@vaadin/component-base/src/delegate-state-mixin.js';
10
11
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
12
  import { OverflowController } from '@vaadin/component-base/src/overflow-controller.js';
12
13
  import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
13
14
  import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
14
- import { DelegateStateMixin } from '@vaadin/field-base/src/delegate-state-mixin.js';
15
15
  import { Tabs } from '@vaadin/tabs/src/vaadin-tabs.js';
16
16
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
17
17
 
@@ -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,9 @@ 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
+ if (!panel.id) {
247
+ panel.id = `tabsheet-panel-${generateUniqueId()}`;
248
+ }
246
249
  panel.setAttribute('aria-labelledby', tabItem.id);
247
250
 
248
251
  tabItem.setAttribute('aria-controls', panel.id);
package/web-types.json CHANGED
@@ -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-alpha6",
4
+ "version": "24.0.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -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-alpha6",
4
+ "version": "24.0.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {