@vaadin/tabsheet 24.8.5 → 24.9.0-alpha1
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 -10
- package/src/vaadin-tabsheet.js +4 -0
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/vaadin-lit-tabsheet-scroller.js +0 -21
- package/src/vaadin-lit-tabsheet.js +0 -79
- package/theme/lumo/vaadin-lit-tabsheet.d.ts +0 -4
- package/theme/lumo/vaadin-lit-tabsheet.js +0 -4
- package/theme/material/vaadin-lit-tabsheet.d.ts +0 -4
- package/theme/material/vaadin-lit-tabsheet.js +0 -4
- package/vaadin-lit-tabsheet.d.ts +0 -1
- package/vaadin-lit-tabsheet.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/tabsheet",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.9.0-alpha1",
|
|
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": "
|
|
41
|
-
"@vaadin/scroller": "
|
|
42
|
-
"@vaadin/tabs": "
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
44
|
-
"@vaadin/vaadin-material-styles": "
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
40
|
+
"@vaadin/component-base": "24.9.0-alpha1",
|
|
41
|
+
"@vaadin/scroller": "24.9.0-alpha1",
|
|
42
|
+
"@vaadin/tabs": "24.9.0-alpha1",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "24.9.0-alpha1",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "24.9.0-alpha1",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "24.9.0-alpha1",
|
|
46
46
|
"lit": "^3.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@vaadin/chai-plugins": "
|
|
50
|
-
"@vaadin/test-runner-commands": "
|
|
49
|
+
"@vaadin/chai-plugins": "24.9.0-alpha1",
|
|
50
|
+
"@vaadin/test-runner-commands": "24.9.0-alpha1",
|
|
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": "
|
|
58
|
+
"gitHead": "cc13d59f0e3cd1a3b0c19c1a900a5308446fe7ac"
|
|
59
59
|
}
|
package/src/vaadin-tabsheet.js
CHANGED
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -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 };
|
package/vaadin-lit-tabsheet.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-tabsheet.js';
|
package/vaadin-lit-tabsheet.js
DELETED