@vaadin/tabsheet 23.3.3 → 24.0.0-alpha10

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": "23.3.3",
3
+ "version": "24.0.0-alpha10",
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": "~23.3.3",
40
- "@vaadin/field-base": "~23.3.3",
41
- "@vaadin/scroller": "~23.3.3",
42
- "@vaadin/tabs": "~23.3.3",
43
- "@vaadin/vaadin-lumo-styles": "~23.3.3",
44
- "@vaadin/vaadin-material-styles": "~23.3.3",
45
- "@vaadin/vaadin-themable-mixin": "~23.3.3"
39
+ "@vaadin/component-base": "24.0.0-alpha10",
40
+ "@vaadin/scroller": "24.0.0-alpha10",
41
+ "@vaadin/tabs": "24.0.0-alpha10",
42
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha10",
43
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha10",
44
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha10"
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": "1529ed623e053d28a3c1c66af55ebe402743ddd0"
55
+ "gitHead": "2e04534d8b47bcd216f89b5f849bafef1a73b174"
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
 
@@ -196,6 +196,10 @@ class TabSheet extends ControllerMixin(DelegateStateMixin(ElementMixin(ThemableM
196
196
  };
197
197
  }
198
198
 
199
+ static get observers() {
200
+ return ['__itemsOrPanelsChanged(items, __panels)', '__selectedTabItemChanged(selected, items, __panels)'];
201
+ }
202
+
199
203
  /** @override */
200
204
  static get delegateProps() {
201
205
  return ['selected'];
@@ -225,10 +229,6 @@ class TabSheet extends ControllerMixin(DelegateStateMixin(ElementMixin(ThemableM
225
229
  });
226
230
  }
227
231
 
228
- static get observers() {
229
- return ['__itemsOrPanelsChanged(items, __panels)', '__selectedTabItemChanged(selected, items, __panels)'];
230
- }
231
-
232
232
  /**
233
233
  * An observer which applies the necessary roles and ARIA attributes
234
234
  * to associate the tab elements with the panels.
@@ -243,7 +243,9 @@ class TabSheet extends ControllerMixin(DelegateStateMixin(ElementMixin(ThemableM
243
243
  const panel = panels.find((panel) => panel.getAttribute('tab') === tabItem.id);
244
244
  if (panel) {
245
245
  panel.role = 'tabpanel';
246
- panel.id = panel.id || `tabsheet-panel-${generateUniqueId()}`;
246
+ if (!panel.id) {
247
+ panel.id = `tabsheet-panel-${generateUniqueId()}`;
248
+ }
247
249
  panel.setAttribute('aria-labelledby', tabItem.id);
248
250
 
249
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": "23.3.3",
4
+ "version": "24.0.0-alpha10",
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": "23.3.3",
4
+ "version": "24.0.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {