@vaadin/tabsheet 25.0.0-alpha6 → 25.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 +9 -9
- package/src/styles/vaadin-tabsheet-base-styles.js +51 -53
- package/src/vaadin-tabsheet.d.ts +13 -13
- package/src/vaadin-tabsheet.js +14 -14
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/tabsheet",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/component-base": "25.0.0-
|
|
41
|
-
"@vaadin/scroller": "25.0.0-
|
|
42
|
-
"@vaadin/tabs": "25.0.0-
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
40
|
+
"@vaadin/component-base": "25.0.0-alpha8",
|
|
41
|
+
"@vaadin/scroller": "25.0.0-alpha8",
|
|
42
|
+
"@vaadin/tabs": "25.0.0-alpha8",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha8",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha8",
|
|
45
45
|
"lit": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
49
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
48
|
+
"@vaadin/chai-plugins": "25.0.0-alpha8",
|
|
49
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha8",
|
|
50
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
51
|
"sinon": "^18.0.0"
|
|
52
52
|
},
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"web-types.json",
|
|
55
55
|
"web-types.lit.json"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "ebf53673d5f639d2b1b6f2b31f640f530643ee2f"
|
|
58
58
|
}
|
|
@@ -10,68 +10,66 @@ import { loaderStyles } from '@vaadin/component-base/src/loader-styles.js';
|
|
|
10
10
|
export const tabSheetStyles = [
|
|
11
11
|
loaderStyles,
|
|
12
12
|
css`
|
|
13
|
-
|
|
14
|
-
:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
13
|
+
:host {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
border: var(--vaadin-tabsheet-border-width, 1px) solid
|
|
17
|
+
var(--vaadin-tabsheet-border-color, var(--vaadin-border-color));
|
|
18
|
+
border-radius: var(--vaadin-tabsheet-border-radius, var(--vaadin-radius-l));
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
:host([hidden]) {
|
|
23
|
+
display: none !important;
|
|
24
|
+
}
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
[part='tabs-container'] {
|
|
27
|
+
position: relative;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: var(--vaadin-tabsheet-gap, var(--vaadin-gap-container-inline));
|
|
31
|
+
padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding));
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
}
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
::slotted([slot='tabs']) {
|
|
36
|
+
flex: 1;
|
|
37
|
+
align-self: stretch;
|
|
38
|
+
min-width: 128px;
|
|
39
|
+
}
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
[part='content'] {
|
|
42
|
+
position: relative;
|
|
43
|
+
flex: 1;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding));
|
|
46
|
+
border-top: var(--vaadin-tabsheet-border-width, 1px) solid transparent;
|
|
47
|
+
margin-top: calc(var(--vaadin-tabsheet-border-width, 1px) * -1);
|
|
48
|
+
}
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
[part='content'][focus-ring] {
|
|
51
|
+
border-bottom-left-radius: inherit;
|
|
52
|
+
border-bottom-right-radius: inherit;
|
|
53
|
+
outline-offset: calc(var(--vaadin-focus-ring-width) * -1);
|
|
54
|
+
}
|
|
56
55
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
[part='content'][overflow~='top'] {
|
|
57
|
+
border-top-color: var(--vaadin-tabsheet-border-color, var(--vaadin-border-color));
|
|
58
|
+
}
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
:host([loading]) [part='content'] {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
}
|
|
66
65
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
:host([theme~='no-border']) {
|
|
67
|
+
border: 0;
|
|
68
|
+
border-radius: 0;
|
|
69
|
+
}
|
|
71
70
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
71
|
+
:host([theme~='no-padding']) [part='content'] {
|
|
72
|
+
padding: 0;
|
|
75
73
|
}
|
|
76
74
|
`,
|
|
77
75
|
];
|
package/src/vaadin-tabsheet.d.ts
CHANGED
|
@@ -30,21 +30,21 @@ export interface TabSheetEventMap extends HTMLElementEventMap, TabSheetCustomEve
|
|
|
30
30
|
* `<vaadin-tabsheet>` is a Web Component for organizing and grouping content
|
|
31
31
|
* into scrollable panels. The panels can be switched between by using tabs.
|
|
32
32
|
*
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
33
|
+
* ```html
|
|
34
|
+
* <vaadin-tabsheet>
|
|
35
|
+
* <div slot="prefix">Prefix</div>
|
|
36
|
+
* <div slot="suffix">Suffix</div>
|
|
37
37
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
38
|
+
* <vaadin-tabs slot="tabs">
|
|
39
|
+
* <vaadin-tab id="tab-1">Tab 1</vaadin-tab>
|
|
40
|
+
* <vaadin-tab id="tab-2">Tab 2</vaadin-tab>
|
|
41
|
+
* <vaadin-tab id="tab-3">Tab 3</vaadin-tab>
|
|
42
|
+
* </vaadin-tabs>
|
|
43
43
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
44
|
+
* <div tab="tab-1">Panel 1</div>
|
|
45
|
+
* <div tab="tab-2">Panel 2</div>
|
|
46
|
+
* <div tab="tab-3">Panel 3</div>
|
|
47
|
+
* </vaadin-tabsheet>
|
|
48
48
|
* ```
|
|
49
49
|
*
|
|
50
50
|
* ### Styling
|
package/src/vaadin-tabsheet.js
CHANGED
|
@@ -18,21 +18,21 @@ import { TabSheetMixin } from './vaadin-tabsheet-mixin.js';
|
|
|
18
18
|
* `<vaadin-tabsheet>` is a Web Component for organizing and grouping content
|
|
19
19
|
* into scrollable panels. The panels can be switched between by using tabs.
|
|
20
20
|
*
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
21
|
+
* ```html
|
|
22
|
+
* <vaadin-tabsheet>
|
|
23
|
+
* <div slot="prefix">Prefix</div>
|
|
24
|
+
* <div slot="suffix">Suffix</div>
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
26
|
+
* <vaadin-tabs slot="tabs">
|
|
27
|
+
* <vaadin-tab id="tab-1">Tab 1</vaadin-tab>
|
|
28
|
+
* <vaadin-tab id="tab-2">Tab 2</vaadin-tab>
|
|
29
|
+
* <vaadin-tab id="tab-3">Tab 3</vaadin-tab>
|
|
30
|
+
* </vaadin-tabs>
|
|
31
31
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* <div tab="tab-1">Panel 1</div>
|
|
33
|
+
* <div tab="tab-2">Panel 2</div>
|
|
34
|
+
* <div tab="tab-3">Panel 3</div>
|
|
35
|
+
* </vaadin-tabsheet>
|
|
36
36
|
* ```
|
|
37
37
|
*
|
|
38
38
|
* ### Styling
|
|
@@ -62,7 +62,7 @@ import { TabSheetMixin } from './vaadin-tabsheet-mixin.js';
|
|
|
62
62
|
* @mixes ElementMixin
|
|
63
63
|
* @mixes ThemableMixin
|
|
64
64
|
*/
|
|
65
|
-
class TabSheet extends TabSheetMixin(ThemableMixin(ElementMixin(LumoInjectionMixin(
|
|
65
|
+
class TabSheet extends TabSheetMixin(ThemableMixin(ElementMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
|
|
66
66
|
static get is() {
|
|
67
67
|
return 'vaadin-tabsheet';
|
|
68
68
|
}
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/tabsheet",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha8",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
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
|
|
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```html\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](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "selected",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/tabsheet",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha8",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"elements": [
|
|
17
17
|
{
|
|
18
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
|
|
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```html\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](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|