@vaadin/split-layout 25.0.0-alpha9 → 25.0.0-beta2
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 +8 -11
- package/src/styles/vaadin-split-layout-base-styles.js +3 -3
- package/src/vaadin-split-layout.js +7 -1
- package/vaadin-split-layout.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/styles/vaadin-split-layout-core-styles.d.ts +0 -8
- package/src/styles/vaadin-split-layout-core-styles.js +0 -63
- package/theme/lumo/vaadin-split-layout-styles.d.ts +0 -4
- package/theme/lumo/vaadin-split-layout-styles.js +0 -91
- package/theme/lumo/vaadin-split-layout.d.ts +0 -2
- package/theme/lumo/vaadin-split-layout.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/split-layout",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-beta2",
|
|
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,20 +34,20 @@
|
|
|
37
34
|
],
|
|
38
35
|
"dependencies": {
|
|
39
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/component-base": "25.0.0-
|
|
41
|
-
"@vaadin/vaadin-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha9",
|
|
37
|
+
"@vaadin/component-base": "25.0.0-beta2",
|
|
38
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-beta2",
|
|
43
39
|
"lit": "^3.0.0"
|
|
44
40
|
},
|
|
45
41
|
"devDependencies": {
|
|
46
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
47
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
42
|
+
"@vaadin/chai-plugins": "25.0.0-beta2",
|
|
43
|
+
"@vaadin/test-runner-commands": "25.0.0-beta2",
|
|
48
44
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
49
|
-
"
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-beta2",
|
|
46
|
+
"sinon": "^21.0.0"
|
|
50
47
|
},
|
|
51
48
|
"web-types": [
|
|
52
49
|
"web-types.json",
|
|
53
50
|
"web-types.lit.json"
|
|
54
51
|
],
|
|
55
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "e078f8371ae266f05c7ca1ec25686cc489c83f24"
|
|
56
53
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2016 - 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
8
|
|
|
9
9
|
export const splitLayoutStyles = css`
|
|
@@ -62,13 +62,13 @@ export const splitLayoutStyles = css`
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
[part='handle'] {
|
|
65
|
-
background: var(--vaadin-split-layout-handle-background, var(--vaadin-color-
|
|
65
|
+
background: var(--vaadin-split-layout-handle-background, var(--vaadin-text-color-secondary));
|
|
66
66
|
border-radius: var(--vaadin-radius-m);
|
|
67
67
|
flex: none;
|
|
68
68
|
width: var(--_handle-size);
|
|
69
69
|
height: var(--_handle-target-size);
|
|
70
70
|
max-height: 50%;
|
|
71
|
-
position:
|
|
71
|
+
position: absolute;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
:host([orientation='vertical']) [part='handle'] {
|
|
@@ -9,7 +9,7 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
|
9
9
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
10
|
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
11
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
import { splitLayoutStyles } from './styles/vaadin-split-layout-
|
|
12
|
+
import { splitLayoutStyles } from './styles/vaadin-split-layout-base-styles.js';
|
|
13
13
|
import { SplitLayoutMixin } from './vaadin-split-layout-mixin.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -165,6 +165,12 @@ class SplitLayout extends SplitLayoutMixin(ElementMixin(ThemableMixin(PolylitMix
|
|
|
165
165
|
return splitLayoutStyles;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
static get lumoInjector() {
|
|
169
|
+
return {
|
|
170
|
+
includeBaseStyles: true,
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
168
174
|
/** @protected */
|
|
169
175
|
render() {
|
|
170
176
|
return html`
|
package/vaadin-split-layout.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './src/vaadin-split-layout.js';
|
|
2
2
|
export * from './src/vaadin-split-layout.js';
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2016 - 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 splitLayoutStyles = css`
|
|
9
|
-
:host {
|
|
10
|
-
display: flex;
|
|
11
|
-
overflow: hidden !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host([hidden]) {
|
|
15
|
-
display: none !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([orientation='vertical']) {
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host ::slotted(*) {
|
|
23
|
-
flex: 1 1 auto;
|
|
24
|
-
overflow: auto;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
[part='splitter'] {
|
|
28
|
-
flex: none;
|
|
29
|
-
position: relative;
|
|
30
|
-
z-index: 1;
|
|
31
|
-
overflow: visible;
|
|
32
|
-
min-width: 8px;
|
|
33
|
-
min-height: 8px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:host(:not([orientation='vertical'])) > [part='splitter'] {
|
|
37
|
-
cursor: ew-resize;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host([orientation='vertical']) > [part='splitter'] {
|
|
41
|
-
cursor: ns-resize;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[part='handle'] {
|
|
45
|
-
width: 40px;
|
|
46
|
-
height: 40px;
|
|
47
|
-
position: absolute;
|
|
48
|
-
top: 50%;
|
|
49
|
-
left: 50%;
|
|
50
|
-
transform: translate3d(-50%, -50%, 0);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@media (forced-colors: active) {
|
|
54
|
-
[part~='splitter'] {
|
|
55
|
-
outline: 1px solid;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
[part~='handle']::after {
|
|
59
|
-
background-color: AccentColor !important;
|
|
60
|
-
forced-color-adjust: none;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import '@vaadin/vaadin-lumo-styles/color.js';
|
|
2
|
-
import '@vaadin/vaadin-lumo-styles/sizing.js';
|
|
3
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
4
|
-
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
5
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
6
|
-
|
|
7
|
-
registerStyles(
|
|
8
|
-
'vaadin-split-layout',
|
|
9
|
-
css`
|
|
10
|
-
[part='splitter'] {
|
|
11
|
-
min-width: var(--lumo-space-s);
|
|
12
|
-
min-height: var(--lumo-space-s);
|
|
13
|
-
background-color: var(--lumo-contrast-5pct);
|
|
14
|
-
transition: 0.1s background-color;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
[part='handle'] {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
width: var(--lumo-size-m);
|
|
22
|
-
height: var(--lumo-size-m);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
[part='handle']::after {
|
|
26
|
-
content: '';
|
|
27
|
-
display: block;
|
|
28
|
-
--_handle-size: 4px;
|
|
29
|
-
width: var(--_handle-size);
|
|
30
|
-
height: 100%;
|
|
31
|
-
max-width: 100%;
|
|
32
|
-
max-height: 100%;
|
|
33
|
-
border-radius: var(--lumo-border-radius-s);
|
|
34
|
-
background-color: var(--lumo-contrast-30pct);
|
|
35
|
-
transition:
|
|
36
|
-
0.1s opacity,
|
|
37
|
-
0.1s background-color;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host([orientation='vertical']) [part='handle']::after {
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: var(--_handle-size);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Hover style */
|
|
46
|
-
@media (any-hover: hover) {
|
|
47
|
-
[part='splitter']:hover [part='handle']::after {
|
|
48
|
-
background-color: var(--lumo-contrast-40pct);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Active style */
|
|
53
|
-
[part='splitter']:active [part='handle']::after {
|
|
54
|
-
background-color: var(--lumo-contrast-50pct);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Small/minimal */
|
|
58
|
-
:host([theme~='small']) > [part='splitter'] {
|
|
59
|
-
border-left: 1px solid var(--lumo-contrast-10pct);
|
|
60
|
-
border-top: 1px solid var(--lumo-contrast-10pct);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter'] {
|
|
64
|
-
min-width: 0;
|
|
65
|
-
min-height: 0;
|
|
66
|
-
background-color: transparent;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter']::after {
|
|
70
|
-
content: '';
|
|
71
|
-
position: absolute;
|
|
72
|
-
inset: -4px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter'] > [part='handle'] {
|
|
76
|
-
left: calc(50% - 0.5px);
|
|
77
|
-
top: calc(50% - 0.5px);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter'] > [part='handle']::after {
|
|
81
|
-
opacity: 0;
|
|
82
|
-
--_handle-size: 5px;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter']:hover > [part='handle']::after,
|
|
86
|
-
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter']:active > [part='handle']::after {
|
|
87
|
-
opacity: 1;
|
|
88
|
-
}
|
|
89
|
-
`,
|
|
90
|
-
{ moduleId: 'lumo-split-layout' },
|
|
91
|
-
);
|