@vaadin/tabsheet 25.0.0-alpha9 → 25.0.0-beta1
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 +10 -13
- package/src/styles/vaadin-tabsheet-base-styles.js +11 -7
- package/src/vaadin-tabsheet-mixin.d.ts +1 -3
- package/src/vaadin-tabsheet-mixin.js +1 -3
- package/src/vaadin-tabsheet.js +1 -1
- package/vaadin-tabsheet.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/styles/vaadin-tabsheet-core-styles.d.ts +0 -8
- package/src/styles/vaadin-tabsheet-core-styles.js +0 -35
- package/theme/lumo/vaadin-tabsheet-styles.d.ts +0 -5
- package/theme/lumo/vaadin-tabsheet-styles.js +0 -49
- package/theme/lumo/vaadin-tabsheet.d.ts +0 -4
- package/theme/lumo/vaadin-tabsheet.js +0 -4
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-beta1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
-
"!src/styles/*-base-styles.d.ts",
|
|
25
|
-
"!src/styles/*-base-styles.js",
|
|
26
|
-
"theme",
|
|
27
24
|
"vaadin-*.d.ts",
|
|
28
25
|
"vaadin-*.js",
|
|
29
26
|
"web-types.json",
|
|
@@ -37,22 +34,22 @@
|
|
|
37
34
|
],
|
|
38
35
|
"dependencies": {
|
|
39
36
|
"@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-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha9",
|
|
37
|
+
"@vaadin/component-base": "25.0.0-beta1",
|
|
38
|
+
"@vaadin/scroller": "25.0.0-beta1",
|
|
39
|
+
"@vaadin/tabs": "25.0.0-beta1",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-beta1",
|
|
45
41
|
"lit": "^3.0.0"
|
|
46
42
|
},
|
|
47
43
|
"devDependencies": {
|
|
48
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
49
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
44
|
+
"@vaadin/chai-plugins": "25.0.0-beta1",
|
|
45
|
+
"@vaadin/test-runner-commands": "25.0.0-beta1",
|
|
50
46
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"
|
|
47
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-beta1",
|
|
48
|
+
"sinon": "^21.0.0"
|
|
52
49
|
},
|
|
53
50
|
"web-types": [
|
|
54
51
|
"web-types.json",
|
|
55
52
|
"web-types.lit.json"
|
|
56
53
|
],
|
|
57
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "1d20cf54e582d1f2e209126d4586f8b4c01c50e0"
|
|
58
55
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Copyright (c) 2022 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '@vaadin/component-base/src/style-props.js';
|
|
6
|
+
import '@vaadin/component-base/src/styles/style-props.js';
|
|
7
7
|
import { css } from 'lit';
|
|
8
|
-
import { loaderStyles } from '@vaadin/component-base/src/loader-styles.js';
|
|
8
|
+
import { loaderStyles } from '@vaadin/component-base/src/styles/loader-styles.js';
|
|
9
9
|
|
|
10
10
|
export const tabSheetStyles = [
|
|
11
11
|
loaderStyles,
|
|
@@ -14,7 +14,7 @@ export const tabSheetStyles = [
|
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
border: var(--vaadin-tabsheet-border-width, 1px) solid
|
|
17
|
-
var(--vaadin-tabsheet-border-color, var(--vaadin-border-color));
|
|
17
|
+
var(--vaadin-tabsheet-border-color, var(--vaadin-border-color-secondary));
|
|
18
18
|
border-radius: var(--vaadin-tabsheet-border-radius, var(--vaadin-radius-l));
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
}
|
|
@@ -27,8 +27,8 @@ export const tabSheetStyles = [
|
|
|
27
27
|
position: relative;
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
|
-
gap: var(--vaadin-tabsheet-gap, var(--vaadin-gap-
|
|
31
|
-
padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding));
|
|
30
|
+
gap: var(--vaadin-tabsheet-gap, var(--vaadin-gap-s));
|
|
31
|
+
padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding-m));
|
|
32
32
|
box-sizing: border-box;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -38,11 +38,15 @@ export const tabSheetStyles = [
|
|
|
38
38
|
min-width: 128px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
::slotted([hidden]) {
|
|
42
|
+
display: none !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
41
45
|
[part='content'] {
|
|
42
46
|
position: relative;
|
|
43
47
|
flex: 1;
|
|
44
48
|
box-sizing: border-box;
|
|
45
|
-
padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding));
|
|
49
|
+
padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding-l));
|
|
46
50
|
border-top: var(--vaadin-tabsheet-border-width, 1px) solid transparent;
|
|
47
51
|
margin-top: calc(var(--vaadin-tabsheet-border-width, 1px) * -1);
|
|
48
52
|
}
|
|
@@ -54,7 +58,7 @@ export const tabSheetStyles = [
|
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
[part='content'][overflow~='top'] {
|
|
57
|
-
border-top-color: var(--vaadin-tabsheet-border-color, var(--vaadin-border-color));
|
|
61
|
+
border-top-color: var(--vaadin-tabsheet-border-color, var(--vaadin-border-color-secondary));
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
:host([loading]) [part='content'] {
|
|
@@ -21,11 +21,9 @@ export declare class TabSheetMixinClass<Tab extends HTMLElement> {
|
|
|
21
21
|
selected: number | null | undefined;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* A read-only list of `<vaadin-tab>`s from which a selection can be made.
|
|
25
25
|
* It is populated from the elements passed inside the slotted
|
|
26
26
|
* `<vaadin-tabs>`, and updated dynamically when adding or removing items.
|
|
27
|
-
*
|
|
28
|
-
* Note: unlike `<vaadin-combo-box>`, this property is read-only.
|
|
29
27
|
*/
|
|
30
28
|
readonly items: Tab[] | undefined;
|
|
31
29
|
}
|
|
@@ -79,11 +79,9 @@ export const TabSheetMixin = (superClass) =>
|
|
|
79
79
|
static get properties() {
|
|
80
80
|
return {
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* A read-only list of `<vaadin-tab>`s from which a selection can be made.
|
|
83
83
|
* It is populated from the elements passed inside the slotted
|
|
84
84
|
* `<vaadin-tabs>`, and updated dynamically when adding or removing items.
|
|
85
|
-
*
|
|
86
|
-
* Note: unlike `<vaadin-combo-box>`, this property is read-only.
|
|
87
85
|
* @type {!Array<!Tab> | undefined}
|
|
88
86
|
*/
|
|
89
87
|
items: {
|
package/src/vaadin-tabsheet.js
CHANGED
|
@@ -11,7 +11,7 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
|
11
11
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
12
12
|
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
13
13
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
14
|
-
import { tabSheetStyles } from './styles/vaadin-tabsheet-
|
|
14
|
+
import { tabSheetStyles } from './styles/vaadin-tabsheet-base-styles.js';
|
|
15
15
|
import { TabSheetMixin } from './vaadin-tabsheet-mixin.js';
|
|
16
16
|
|
|
17
17
|
/**
|
package/vaadin-tabsheet.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './src/vaadin-tabsheet.js';
|
|
2
2
|
export * from './src/vaadin-tabsheet.js';
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1,35 +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 { css } from 'lit';
|
|
7
|
-
|
|
8
|
-
export const tabSheetStyles = css`
|
|
9
|
-
:host {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host([hidden]) {
|
|
15
|
-
display: none !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
[part='tabs-container'] {
|
|
19
|
-
position: relative;
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
::slotted([slot='tabs']) {
|
|
25
|
-
flex: 1;
|
|
26
|
-
align-self: stretch;
|
|
27
|
-
min-width: 8em;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
[part='content'] {
|
|
31
|
-
position: relative;
|
|
32
|
-
flex: 1;
|
|
33
|
-
box-sizing: border-box;
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import '@vaadin/vaadin-lumo-styles/color.js';
|
|
2
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
3
|
-
import '@vaadin/vaadin-lumo-styles/typography.js';
|
|
4
|
-
import { loader } from '@vaadin/vaadin-lumo-styles/mixins/loader.js';
|
|
5
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
6
|
-
|
|
7
|
-
const tabsheet = css`
|
|
8
|
-
:host {
|
|
9
|
-
font-size: var(--lumo-font-size-m);
|
|
10
|
-
line-height: var(--lumo-line-height-m);
|
|
11
|
-
font-family: var(--lumo-font-family);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host([theme~='bordered']) {
|
|
15
|
-
border: 1px solid var(--lumo-contrast-20pct);
|
|
16
|
-
border-radius: var(--lumo-border-radius-l);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[part='tabs-container'] {
|
|
20
|
-
box-shadow: inset 0 -1px 0 0 var(--lumo-contrast-10pct);
|
|
21
|
-
padding: var(--lumo-space-xs) var(--lumo-space-s);
|
|
22
|
-
gap: var(--lumo-space-s);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
::slotted([slot='tabs']) {
|
|
26
|
-
box-shadow: initial;
|
|
27
|
-
margin: calc(var(--lumo-space-xs) * -1) calc(var(--lumo-space-s) * -1);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
[part='content'] {
|
|
31
|
-
padding: var(--lumo-space-s) var(--lumo-space-m);
|
|
32
|
-
border-bottom-left-radius: inherit;
|
|
33
|
-
border-bottom-right-radius: inherit;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:host([loading]) [part='content'] {
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
:host([theme~='no-padding']) [part='content'] {
|
|
43
|
-
padding: 0 !important;
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
|
|
47
|
-
registerStyles('vaadin-tabsheet', [tabsheet, loader], { moduleId: 'lumo-tabsheet' });
|
|
48
|
-
|
|
49
|
-
export { tabsheet };
|