@vaadin/tabsheet 24.8.5 → 24.9.0-alpha2

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.8.5",
3
+ "version": "24.9.0-alpha2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,17 +37,17 @@
37
37
  "dependencies": {
38
38
  "@open-wc/dedupe-mixin": "^1.3.0",
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/component-base": "~24.8.5",
41
- "@vaadin/scroller": "~24.8.5",
42
- "@vaadin/tabs": "~24.8.5",
43
- "@vaadin/vaadin-lumo-styles": "~24.8.5",
44
- "@vaadin/vaadin-material-styles": "~24.8.5",
45
- "@vaadin/vaadin-themable-mixin": "~24.8.5",
40
+ "@vaadin/component-base": "24.9.0-alpha2",
41
+ "@vaadin/scroller": "24.9.0-alpha2",
42
+ "@vaadin/tabs": "24.9.0-alpha2",
43
+ "@vaadin/vaadin-lumo-styles": "24.9.0-alpha2",
44
+ "@vaadin/vaadin-material-styles": "24.9.0-alpha2",
45
+ "@vaadin/vaadin-themable-mixin": "24.9.0-alpha2",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/chai-plugins": "~24.8.5",
50
- "@vaadin/test-runner-commands": "~24.8.5",
49
+ "@vaadin/chai-plugins": "24.9.0-alpha2",
50
+ "@vaadin/test-runner-commands": "24.9.0-alpha2",
51
51
  "@vaadin/testing-helpers": "^1.1.0",
52
52
  "sinon": "^18.0.0"
53
53
  },
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "a519b0d2b1d09d1ddaa4ff6829819f8a2be30ad8"
58
+ "gitHead": "dd99dece1b54942ab0e421892b089e506822c5f5"
59
59
  }
@@ -86,6 +86,10 @@ class TabSheet extends TabSheetMixin(ThemableMixin(ElementMixin(ControllerMixin(
86
86
  min-width: 8em;
87
87
  }
88
88
 
89
+ ::slotted([hidden]) {
90
+ display: none !important;
91
+ }
92
+
89
93
  [part='content'] {
90
94
  position: relative;
91
95
  flex: 1;
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.8.5",
4
+ "version": "24.9.0-alpha2",
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.8.5",
4
+ "version": "24.9.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -1,21 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2022 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { defineCustomElement } from '@vaadin/component-base/src/define.js';
7
- import { Scroller } from '@vaadin/scroller/src/vaadin-lit-scroller.js';
8
-
9
- /**
10
- * An element used internally by `<vaadin-tabsheet>`. Not intended to be used separately.
11
- *
12
- * @extends Scroller
13
- * @private
14
- */
15
- class TabsheetScroller extends Scroller {
16
- static get is() {
17
- return 'vaadin-tabsheet-scroller';
18
- }
19
- }
20
-
21
- defineCustomElement(TabsheetScroller);
@@ -1,79 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2022 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import '@vaadin/tabs/src/vaadin-lit-tabs.js';
7
- import './vaadin-lit-tabsheet-scroller.js';
8
- import { css, html, LitElement } from 'lit';
9
- import { defineCustomElement } from '@vaadin/component-base/src/define.js';
10
- import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
12
- import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
13
- import { TabSheetMixin } from './vaadin-tabsheet-mixin.js';
14
-
15
- /**
16
- * LitElement based version of `<vaadin-tabsheet>` web component.
17
- *
18
- * ## Disclaimer
19
- *
20
- * This component is an experiment and not yet a part of Vaadin platform.
21
- * There is no ETA regarding specific Vaadin version where it'll land.
22
- * Feel free to try this code in your apps as per Apache 2.0 license.
23
- */
24
- class TabSheet extends TabSheetMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
25
- static get is() {
26
- return 'vaadin-tabsheet';
27
- }
28
-
29
- static get styles() {
30
- return css`
31
- :host {
32
- display: flex;
33
- flex-direction: column;
34
- }
35
-
36
- :host([hidden]) {
37
- display: none !important;
38
- }
39
-
40
- [part='tabs-container'] {
41
- position: relative;
42
- display: flex;
43
- align-items: center;
44
- }
45
-
46
- ::slotted([slot='tabs']) {
47
- flex: 1;
48
- align-self: stretch;
49
- min-width: 8em;
50
- }
51
-
52
- [part='content'] {
53
- position: relative;
54
- flex: 1;
55
- box-sizing: border-box;
56
- }
57
- `;
58
- }
59
-
60
- /** @protected */
61
- render() {
62
- return html`
63
- <div part="tabs-container">
64
- <slot name="prefix"></slot>
65
- <slot name="tabs"></slot>
66
- <slot name="suffix"></slot>
67
- </div>
68
-
69
- <vaadin-tabsheet-scroller part="content">
70
- <div part="loader"></div>
71
- <slot id="panel-slot"></slot>
72
- </vaadin-tabsheet-scroller>
73
- `;
74
- }
75
- }
76
-
77
- defineCustomElement(TabSheet);
78
-
79
- export { TabSheet };
@@ -1,4 +0,0 @@
1
- import '@vaadin/tabs/theme/lumo/vaadin-lit-tabs.js';
2
- import '@vaadin/scroller/theme/lumo/vaadin-lit-scroller.js';
3
- import './vaadin-tabsheet-styles.js';
4
- import '../../src/vaadin-lit-tabsheet.js';
@@ -1,4 +0,0 @@
1
- import '@vaadin/tabs/theme/lumo/vaadin-lit-tabs.js';
2
- import '@vaadin/scroller/theme/lumo/vaadin-lit-scroller.js';
3
- import './vaadin-tabsheet-styles.js';
4
- import '../../src/vaadin-lit-tabsheet.js';
@@ -1,4 +0,0 @@
1
- import '@vaadin/tabs/theme/material/vaadin-lit-tabs.js';
2
- import '@vaadin/scroller/theme/material/vaadin-lit-scroller.js';
3
- import './vaadin-tabsheet-styles.js';
4
- import '../../src/vaadin-lit-tabsheet.js';
@@ -1,4 +0,0 @@
1
- import '@vaadin/tabs/theme/material/vaadin-lit-tabs.js';
2
- import '@vaadin/scroller/theme/material/vaadin-lit-scroller.js';
3
- import './vaadin-tabsheet-styles.js';
4
- import '../../src/vaadin-lit-tabsheet.js';
@@ -1 +0,0 @@
1
- export * from './src/vaadin-tabsheet.js';
@@ -1,2 +0,0 @@
1
- import './theme/lumo/vaadin-lit-tabsheet.js';
2
- export * from './src/vaadin-lit-tabsheet.js';