@vaadin/combo-box 23.2.0-dev.48e5e3967 → 23.2.0-rc1
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 +20 -14
- package/src/lit/renderer-directives.d.ts +3 -3
- package/src/vaadin-combo-box-data-provider-mixin.d.ts +3 -3
- package/src/vaadin-combo-box-data-provider-mixin.js +5 -2
- package/src/vaadin-combo-box-light.d.ts +19 -10
- package/src/vaadin-combo-box-light.js +40 -7
- package/src/vaadin-combo-box-mixin.d.ts +8 -19
- package/src/vaadin-combo-box-mixin.js +37 -37
- package/src/vaadin-combo-box.d.ts +30 -20
- package/src/vaadin-combo-box.js +1 -1
- package/theme/lumo/vaadin-combo-box-dropdown-styles.js +4 -33
- package/theme/material/vaadin-combo-box-dropdown-styles.js +3 -89
- package/web-types.json +1054 -0
- package/web-types.lit.json +496 -0
|
@@ -2,6 +2,7 @@ import '@vaadin/vaadin-lumo-styles/color.js';
|
|
|
2
2
|
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
3
3
|
import '@vaadin/vaadin-lumo-styles/style.js';
|
|
4
4
|
import '@vaadin/vaadin-overlay/theme/lumo/vaadin-overlay.js';
|
|
5
|
+
import { loader } from '@vaadin/vaadin-lumo-styles/mixins/loader.js';
|
|
5
6
|
import { menuOverlayCore } from '@vaadin/vaadin-lumo-styles/mixins/menu-overlay.js';
|
|
6
7
|
import { overlay } from '@vaadin/vaadin-lumo-styles/mixins/overlay.js';
|
|
7
8
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
@@ -36,10 +37,7 @@ const comboBoxOverlay = css`
|
|
|
36
37
|
margin-bottom: var(--lumo-space-xs);
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
box-sizing: border-box;
|
|
41
|
-
width: var(--lumo-icon-size-s);
|
|
42
|
-
height: var(--lumo-icon-size-s);
|
|
40
|
+
[part~='loader'] {
|
|
43
41
|
position: absolute;
|
|
44
42
|
z-index: 1;
|
|
45
43
|
left: var(--lumo-space-s);
|
|
@@ -48,38 +46,11 @@ const comboBoxOverlay = css`
|
|
|
48
46
|
margin-left: auto;
|
|
49
47
|
margin-inline-start: auto;
|
|
50
48
|
margin-inline-end: 0;
|
|
51
|
-
border: 2px solid transparent;
|
|
52
|
-
border-color: var(--lumo-primary-color-50pct) var(--lumo-primary-color-50pct) var(--lumo-primary-color)
|
|
53
|
-
var(--lumo-primary-color);
|
|
54
|
-
border-radius: calc(0.5 * var(--lumo-icon-size-s));
|
|
55
|
-
opacity: 0;
|
|
56
|
-
animation: 1s linear infinite lumo-combo-box-loader-rotate, 0.3s 0.1s lumo-combo-box-loader-fade-in both;
|
|
57
|
-
pointer-events: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@keyframes lumo-combo-box-loader-fade-in {
|
|
61
|
-
0% {
|
|
62
|
-
opacity: 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
100% {
|
|
66
|
-
opacity: 1;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@keyframes lumo-combo-box-loader-rotate {
|
|
71
|
-
0% {
|
|
72
|
-
transform: rotate(0deg);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
100% {
|
|
76
|
-
transform: rotate(360deg);
|
|
77
|
-
}
|
|
78
49
|
}
|
|
79
50
|
|
|
80
51
|
/* RTL specific styles */
|
|
81
52
|
|
|
82
|
-
:host([
|
|
53
|
+
:host([dir='rtl']) [part~='loader'] {
|
|
83
54
|
left: auto;
|
|
84
55
|
margin-left: 0;
|
|
85
56
|
margin-right: auto;
|
|
@@ -88,6 +59,6 @@ const comboBoxOverlay = css`
|
|
|
88
59
|
}
|
|
89
60
|
`;
|
|
90
61
|
|
|
91
|
-
registerStyles('vaadin-combo-box-overlay', [overlay, menuOverlayCore, comboBoxOverlay], {
|
|
62
|
+
registerStyles('vaadin-combo-box-overlay', [overlay, menuOverlayCore, comboBoxOverlay, loader], {
|
|
92
63
|
moduleId: 'lumo-combo-box-overlay',
|
|
93
64
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '@vaadin/vaadin-material-styles/color.js';
|
|
2
2
|
import '@vaadin/vaadin-overlay/theme/material/vaadin-overlay.js';
|
|
3
|
+
import { loader } from '@vaadin/vaadin-material-styles/mixins/loader.js';
|
|
3
4
|
import { menuOverlay } from '@vaadin/vaadin-material-styles/mixins/menu-overlay.js';
|
|
4
5
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
5
6
|
|
|
@@ -21,102 +22,15 @@ const comboBoxOverlay = css`
|
|
|
21
22
|
padding: 0;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
height: 2px;
|
|
25
|
+
[part~='loader'] {
|
|
26
26
|
position: absolute;
|
|
27
27
|
z-index: 1;
|
|
28
28
|
top: -2px;
|
|
29
29
|
left: 0;
|
|
30
30
|
right: 0;
|
|
31
|
-
background: var(--material-background-color)
|
|
32
|
-
linear-gradient(
|
|
33
|
-
90deg,
|
|
34
|
-
transparent 0%,
|
|
35
|
-
transparent 20%,
|
|
36
|
-
var(--material-primary-color) 20%,
|
|
37
|
-
var(--material-primary-color) 40%,
|
|
38
|
-
transparent 40%,
|
|
39
|
-
transparent 60%,
|
|
40
|
-
var(--material-primary-color) 60%,
|
|
41
|
-
var(--material-primary-color) 80%,
|
|
42
|
-
transparent 80%,
|
|
43
|
-
transparent 100%
|
|
44
|
-
)
|
|
45
|
-
0 0 / 400% 100% repeat-x;
|
|
46
|
-
opacity: 0;
|
|
47
|
-
animation: 3s linear infinite material-combo-box-loader-progress, 0.3s 0.1s both material-combo-box-loader-fade-in;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
[part='loader']::before {
|
|
51
|
-
content: '';
|
|
52
|
-
display: block;
|
|
53
|
-
height: 100%;
|
|
54
|
-
opacity: 0.16;
|
|
55
|
-
background: var(--material-primary-color);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@keyframes material-combo-box-loader-fade-in {
|
|
59
|
-
0% {
|
|
60
|
-
opacity: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
100% {
|
|
64
|
-
opacity: 1;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@keyframes material-combo-box-loader-progress {
|
|
69
|
-
0% {
|
|
70
|
-
background-position: 0 0;
|
|
71
|
-
background-size: 300% 100%;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
33% {
|
|
75
|
-
background-position: -100% 0;
|
|
76
|
-
background-size: 400% 100%;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
67% {
|
|
80
|
-
background-position: -200% 0;
|
|
81
|
-
background-size: 250% 100%;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
100% {
|
|
85
|
-
background-position: -300% 0;
|
|
86
|
-
background-size: 300% 100%;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* RTL specific styles */
|
|
91
|
-
|
|
92
|
-
@keyframes material-combo-box-loader-progress-rtl {
|
|
93
|
-
0% {
|
|
94
|
-
background-position: 100% 0;
|
|
95
|
-
background-size: 300% 100%;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
33% {
|
|
99
|
-
background-position: 200% 0;
|
|
100
|
-
background-size: 400% 100%;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
67% {
|
|
104
|
-
background-position: 300% 0;
|
|
105
|
-
background-size: 250% 100%;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
100% {
|
|
109
|
-
background-position: 400% 0;
|
|
110
|
-
background-size: 300% 100%;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
:host([loading][dir='rtl']) [part='loader'] {
|
|
115
|
-
animation: 3s linear infinite material-combo-box-loader-progress-rtl,
|
|
116
|
-
0.3s 0.1s both material-combo-box-loader-fade-in;
|
|
117
31
|
}
|
|
118
32
|
`;
|
|
119
33
|
|
|
120
|
-
registerStyles('vaadin-combo-box-overlay', [menuOverlay, comboBoxOverlay], {
|
|
34
|
+
registerStyles('vaadin-combo-box-overlay', [menuOverlay, comboBoxOverlay, loader], {
|
|
121
35
|
moduleId: 'material-combo-box-overlay',
|
|
122
36
|
});
|