@vaadin/progress-bar 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 +8 -11
- package/src/styles/vaadin-progress-bar-base-styles.js +13 -3
- package/src/vaadin-progress-bar.d.ts +3 -3
- package/src/vaadin-progress-bar.js +4 -4
- package/vaadin-progress-bar.js +1 -1
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
- package/src/styles/vaadin-progress-bar-core-styles.d.ts +0 -8
- package/src/styles/vaadin-progress-bar-core-styles.js +0 -43
- package/theme/lumo/vaadin-progress-bar-styles.d.ts +0 -4
- package/theme/lumo/vaadin-progress-bar-styles.js +0 -276
- package/theme/lumo/vaadin-progress-bar.d.ts +0 -2
- package/theme/lumo/vaadin-progress-bar.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/progress-bar",
|
|
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",
|
|
@@ -38,19 +35,19 @@
|
|
|
38
35
|
],
|
|
39
36
|
"dependencies": {
|
|
40
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
41
|
-
"@vaadin/component-base": "25.0.0-
|
|
42
|
-
"@vaadin/vaadin-
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha9",
|
|
38
|
+
"@vaadin/component-base": "25.0.0-beta1",
|
|
39
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-beta1",
|
|
44
40
|
"lit": "^3.0.0"
|
|
45
41
|
},
|
|
46
42
|
"devDependencies": {
|
|
47
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
48
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
49
|
-
"@vaadin/testing-helpers": "^2.0.0"
|
|
43
|
+
"@vaadin/chai-plugins": "25.0.0-beta1",
|
|
44
|
+
"@vaadin/test-runner-commands": "25.0.0-beta1",
|
|
45
|
+
"@vaadin/testing-helpers": "^2.0.0",
|
|
46
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-beta1"
|
|
50
47
|
},
|
|
51
48
|
"web-types": [
|
|
52
49
|
"web-types.json",
|
|
53
50
|
"web-types.lit.json"
|
|
54
51
|
],
|
|
55
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "1d20cf54e582d1f2e209126d4586f8b4c01c50e0"
|
|
56
53
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 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 progressBarStyles = css`
|
|
@@ -26,14 +26,14 @@ export const progressBarStyles = css`
|
|
|
26
26
|
background: var(--vaadin-progress-bar-background, var(--vaadin-background-container));
|
|
27
27
|
border-radius: var(--vaadin-progress-bar-border-radius, var(--vaadin-radius-m));
|
|
28
28
|
border: var(--vaadin-progress-bar-border-width, 1px) solid
|
|
29
|
-
var(--vaadin-progress-bar-border-color, var(--vaadin-border-color));
|
|
29
|
+
var(--vaadin-progress-bar-border-color, var(--vaadin-border-color-secondary));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
[part='value'] {
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
height: 100%;
|
|
35
35
|
width: calc(var(--vaadin-progress-value) * 100%);
|
|
36
|
-
background: var(--vaadin-progress-bar-value-background, var(--vaadin-border-color
|
|
36
|
+
background: var(--vaadin-progress-bar-value-background, var(--vaadin-border-color));
|
|
37
37
|
border-radius: calc(
|
|
38
38
|
var(--vaadin-progress-bar-border-radius, var(--vaadin-radius-m)) - var(
|
|
39
39
|
--vaadin-progress-bar-border-width,
|
|
@@ -97,4 +97,14 @@ export const progressBarStyles = css`
|
|
|
97
97
|
animation: indeterminate-reduced 2s linear infinite alternate;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
+
|
|
101
|
+
@media (forced-colors: active) {
|
|
102
|
+
[part='bar'] {
|
|
103
|
+
border-width: max(1px, var(--vaadin-progress-bar-border-width));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[part='value'] {
|
|
107
|
+
background: CanvasText !important;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
100
110
|
`;
|
|
@@ -34,9 +34,9 @@ import { ProgressMixin } from './vaadin-progress-mixin.js';
|
|
|
34
34
|
*
|
|
35
35
|
* The following state attributes are available for styling:
|
|
36
36
|
*
|
|
37
|
-
* Attribute | Description
|
|
38
|
-
*
|
|
39
|
-
* `indeterminate` | Set to an indeterminate progress bar
|
|
37
|
+
* Attribute | Description
|
|
38
|
+
* ----------------|-------------------------------------
|
|
39
|
+
* `indeterminate` | Set to an indeterminate progress bar
|
|
40
40
|
*/
|
|
41
41
|
declare class ProgressBar extends ProgressMixin(ThemableMixin(ElementMixin(HTMLElement))) {}
|
|
42
42
|
|
|
@@ -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 { progressBarStyles } from './styles/vaadin-progress-bar-
|
|
12
|
+
import { progressBarStyles } from './styles/vaadin-progress-bar-base-styles.js';
|
|
13
13
|
import { ProgressMixin } from './vaadin-progress-mixin.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -39,9 +39,9 @@ import { ProgressMixin } from './vaadin-progress-mixin.js';
|
|
|
39
39
|
*
|
|
40
40
|
* The following state attributes are available for styling:
|
|
41
41
|
*
|
|
42
|
-
* Attribute | Description
|
|
43
|
-
*
|
|
44
|
-
* `indeterminate` | Set to an indeterminate progress bar
|
|
42
|
+
* Attribute | Description
|
|
43
|
+
* ----------------|-------------------------------------
|
|
44
|
+
* `indeterminate` | Set to an indeterminate progress bar
|
|
45
45
|
*
|
|
46
46
|
* @customElement
|
|
47
47
|
* @extends HTMLElement
|
package/vaadin-progress-bar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './src/vaadin-progress-bar.js';
|
|
2
2
|
export * from './src/vaadin-progress-bar.js';
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/progress-bar",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-beta1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-progress-bar",
|
|
11
|
-
"description": "`<vaadin-progress-bar>` is a Web Component for progress bars.\n\n```html\n<vaadin-progress-bar min=\"0\" max=\"1\" value=\"0.5\">\n</vaadin-progress-bar>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`bar` | Progress-bar's background\n`value` | Progress-bar's foreground\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nThe following custom properties are available:\n\nCustom property | Description | Default\n----------------|-------------|-------------\n`--vaadin-progress-value` | current progress value (between 0 and 1) | 0\n\nThe following state attributes are available for styling:\n\nAttribute | Description
|
|
11
|
+
"description": "`<vaadin-progress-bar>` is a Web Component for progress bars.\n\n```html\n<vaadin-progress-bar min=\"0\" max=\"1\" value=\"0.5\">\n</vaadin-progress-bar>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`bar` | Progress-bar's background\n`value` | Progress-bar's foreground\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nThe following custom properties are available:\n\nCustom property | Description | Default\n----------------|-------------|-------------\n`--vaadin-progress-value` | current progress value (between 0 and 1) | 0\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n----------------|-------------------------------------\n`indeterminate` | Set to an indeterminate progress bar",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "value",
|
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/progress-bar",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-beta1",
|
|
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-progress-bar",
|
|
19
|
-
"description": "`<vaadin-progress-bar>` is a Web Component for progress bars.\n\n```html\n<vaadin-progress-bar min=\"0\" max=\"1\" value=\"0.5\">\n</vaadin-progress-bar>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`bar` | Progress-bar's background\n`value` | Progress-bar's foreground\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nThe following custom properties are available:\n\nCustom property | Description | Default\n----------------|-------------|-------------\n`--vaadin-progress-value` | current progress value (between 0 and 1) | 0\n\nThe following state attributes are available for styling:\n\nAttribute | Description
|
|
19
|
+
"description": "`<vaadin-progress-bar>` is a Web Component for progress bars.\n\n```html\n<vaadin-progress-bar min=\"0\" max=\"1\" value=\"0.5\">\n</vaadin-progress-bar>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`bar` | Progress-bar's background\n`value` | Progress-bar's foreground\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\nThe following custom properties are available:\n\nCustom property | Description | Default\n----------------|-------------|-------------\n`--vaadin-progress-value` | current progress value (between 0 and 1) | 0\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n----------------|-------------------------------------\n`indeterminate` | Set to an indeterminate progress bar",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2017 - 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 progressBarStyles = css`
|
|
9
|
-
:host {
|
|
10
|
-
display: block;
|
|
11
|
-
width: 100%; /* prevent collapsing inside non-stretching column flex */
|
|
12
|
-
height: 8px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:host([hidden]) {
|
|
16
|
-
display: none !important;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[part='bar'] {
|
|
20
|
-
height: 100%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
[part='value'] {
|
|
24
|
-
height: 100%;
|
|
25
|
-
transform-origin: 0 50%;
|
|
26
|
-
transform: scaleX(var(--vaadin-progress-value));
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:host([dir='rtl']) [part='value'] {
|
|
30
|
-
transform-origin: 100% 50%;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@media (forced-colors: active) {
|
|
34
|
-
[part='bar'] {
|
|
35
|
-
outline: 1px solid;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
[part='value'] {
|
|
39
|
-
background-color: AccentColor !important;
|
|
40
|
-
forced-color-adjust: none;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
`;
|
|
@@ -1,276 +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-progress-bar',
|
|
9
|
-
css`
|
|
10
|
-
:host {
|
|
11
|
-
height: calc(var(--lumo-size-l) / 10);
|
|
12
|
-
margin: var(--lumo-space-s) 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
[part='bar'] {
|
|
16
|
-
border-radius: var(--lumo-border-radius-m);
|
|
17
|
-
background-color: var(--lumo-contrast-10pct);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
[part='value'] {
|
|
21
|
-
border-radius: var(--lumo-border-radius-m);
|
|
22
|
-
background-color: var(--lumo-primary-color);
|
|
23
|
-
/* Use width instead of transform to preserve border radius */
|
|
24
|
-
transform: none;
|
|
25
|
-
width: calc(var(--vaadin-progress-value) * 100%);
|
|
26
|
-
will-change: width;
|
|
27
|
-
transition: 0.1s width linear;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* Indeterminate mode */
|
|
31
|
-
:host([indeterminate]) [part='value'] {
|
|
32
|
-
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
33
|
-
to right,
|
|
34
|
-
var(--lumo-primary-color-10pct) 10%,
|
|
35
|
-
var(--lumo-primary-color)
|
|
36
|
-
);
|
|
37
|
-
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
38
|
-
to left,
|
|
39
|
-
var(--lumo-primary-color-10pct) 10%,
|
|
40
|
-
var(--lumo-primary-color)
|
|
41
|
-
);
|
|
42
|
-
width: 100%;
|
|
43
|
-
background-color: transparent !important;
|
|
44
|
-
background-image: var(--lumo-progress-indeterminate-progress-bar-background);
|
|
45
|
-
opacity: 0.75;
|
|
46
|
-
will-change: transform;
|
|
47
|
-
animation: vaadin-progress-indeterminate 1.6s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@keyframes vaadin-progress-indeterminate {
|
|
51
|
-
0% {
|
|
52
|
-
transform: scaleX(0.015);
|
|
53
|
-
transform-origin: 0% 0%;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
25% {
|
|
57
|
-
transform: scaleX(0.4);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
50% {
|
|
61
|
-
transform: scaleX(0.015);
|
|
62
|
-
transform-origin: 100% 0%;
|
|
63
|
-
background-image: var(--lumo-progress-indeterminate-progress-bar-background);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
50.1% {
|
|
67
|
-
transform: scaleX(0.015);
|
|
68
|
-
transform-origin: 100% 0%;
|
|
69
|
-
background-image: var(--lumo-progress-indeterminate-progress-bar-background-reverse);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
75% {
|
|
73
|
-
transform: scaleX(0.4);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
100% {
|
|
77
|
-
transform: scaleX(0.015);
|
|
78
|
-
transform-origin: 0% 0%;
|
|
79
|
-
background-image: var(--lumo-progress-indeterminate-progress-bar-background-reverse);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
:host(:not([aria-valuenow])) [part='value']::before,
|
|
84
|
-
:host([indeterminate]) [part='value']::before {
|
|
85
|
-
content: '';
|
|
86
|
-
display: block;
|
|
87
|
-
width: 100%;
|
|
88
|
-
height: 100%;
|
|
89
|
-
border-radius: inherit;
|
|
90
|
-
background-color: var(--lumo-primary-color);
|
|
91
|
-
will-change: opacity;
|
|
92
|
-
animation: vaadin-progress-pulse3 1.6s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@keyframes vaadin-progress-pulse3 {
|
|
96
|
-
0% {
|
|
97
|
-
opacity: 1;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
10% {
|
|
101
|
-
opacity: 0;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
40% {
|
|
105
|
-
opacity: 0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
50% {
|
|
109
|
-
opacity: 1;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
50.1% {
|
|
113
|
-
opacity: 1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
60% {
|
|
117
|
-
opacity: 0;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
90% {
|
|
121
|
-
opacity: 0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
100% {
|
|
125
|
-
opacity: 1;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* Contrast color */
|
|
130
|
-
:host([theme~='contrast']) [part='value'],
|
|
131
|
-
:host([theme~='contrast']) [part='value']::before {
|
|
132
|
-
background-color: var(--lumo-contrast-80pct);
|
|
133
|
-
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
134
|
-
to right,
|
|
135
|
-
var(--lumo-contrast-5pct) 10%,
|
|
136
|
-
var(--lumo-contrast-80pct)
|
|
137
|
-
);
|
|
138
|
-
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
139
|
-
to left,
|
|
140
|
-
var(--lumo-contrast-5pct) 10%,
|
|
141
|
-
var(--lumo-contrast-60pct)
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/* Error color */
|
|
146
|
-
:host([theme~='error']) [part='value'],
|
|
147
|
-
:host([theme~='error']) [part='value']::before {
|
|
148
|
-
background-color: var(--lumo-error-color);
|
|
149
|
-
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
150
|
-
to right,
|
|
151
|
-
var(--lumo-error-color-10pct) 10%,
|
|
152
|
-
var(--lumo-error-color)
|
|
153
|
-
);
|
|
154
|
-
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
155
|
-
to left,
|
|
156
|
-
var(--lumo-error-color-10pct) 10%,
|
|
157
|
-
var(--lumo-error-color)
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* Primary color */
|
|
162
|
-
:host([theme~='success']) [part='value'],
|
|
163
|
-
:host([theme~='success']) [part='value']::before {
|
|
164
|
-
background-color: var(--lumo-success-color);
|
|
165
|
-
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
166
|
-
to right,
|
|
167
|
-
var(--lumo-success-color-10pct) 10%,
|
|
168
|
-
var(--lumo-success-color)
|
|
169
|
-
);
|
|
170
|
-
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
171
|
-
to left,
|
|
172
|
-
var(--lumo-success-color-10pct) 10%,
|
|
173
|
-
var(--lumo-success-color)
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/* RTL specific styles */
|
|
178
|
-
:host([indeterminate][dir='rtl']) [part='value'] {
|
|
179
|
-
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
180
|
-
to left,
|
|
181
|
-
var(--lumo-primary-color-10pct) 10%,
|
|
182
|
-
var(--lumo-primary-color)
|
|
183
|
-
);
|
|
184
|
-
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
185
|
-
to right,
|
|
186
|
-
var(--lumo-primary-color-10pct) 10%,
|
|
187
|
-
var(--lumo-primary-color)
|
|
188
|
-
);
|
|
189
|
-
animation: vaadin-progress-indeterminate-rtl 1.6s infinite cubic-bezier(0.355, 0.045, 0.645, 1);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
:host(:not([aria-valuenow])[dir='rtl']) [part='value']::before,
|
|
193
|
-
:host([indeterminate][dir='rtl']) [part='value']::before {
|
|
194
|
-
animation: vaadin-progress-pulse3 1.6s infinite cubic-bezier(0.355, 0.045, 0.645, 1);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@keyframes vaadin-progress-indeterminate-rtl {
|
|
198
|
-
0% {
|
|
199
|
-
transform: scaleX(0.015);
|
|
200
|
-
transform-origin: 100% 0%;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
25% {
|
|
204
|
-
transform: scaleX(0.4);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
50% {
|
|
208
|
-
transform: scaleX(0.015);
|
|
209
|
-
transform-origin: 0% 0%;
|
|
210
|
-
background-image: var(--lumo-progress-indeterminate-progress-bar-background);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
50.1% {
|
|
214
|
-
transform: scaleX(0.015);
|
|
215
|
-
transform-origin: 0% 0%;
|
|
216
|
-
background-image: var(--lumo-progress-indeterminate-progress-bar-background-reverse);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
75% {
|
|
220
|
-
transform: scaleX(0.4);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
100% {
|
|
224
|
-
transform: scaleX(0.015);
|
|
225
|
-
transform-origin: 100% 0%;
|
|
226
|
-
background-image: var(--lumo-progress-indeterminate-progress-bar-background-reverse);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/* Contrast color */
|
|
231
|
-
:host([theme~='contrast'][dir='rtl']) [part='value'],
|
|
232
|
-
:host([theme~='contrast'][dir='rtl']) [part='value']::before {
|
|
233
|
-
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
234
|
-
to left,
|
|
235
|
-
var(--lumo-contrast-5pct) 10%,
|
|
236
|
-
var(--lumo-contrast-80pct)
|
|
237
|
-
);
|
|
238
|
-
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
239
|
-
to right,
|
|
240
|
-
var(--lumo-contrast-5pct) 10%,
|
|
241
|
-
var(--lumo-contrast-60pct)
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/* Error color */
|
|
246
|
-
:host([theme~='error'][dir='rtl']) [part='value'],
|
|
247
|
-
:host([theme~='error'][dir='rtl']) [part='value']::before {
|
|
248
|
-
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
249
|
-
to left,
|
|
250
|
-
var(--lumo-error-color-10pct) 10%,
|
|
251
|
-
var(--lumo-error-color)
|
|
252
|
-
);
|
|
253
|
-
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
254
|
-
to right,
|
|
255
|
-
var(--lumo-error-color-10pct) 10%,
|
|
256
|
-
var(--lumo-error-color)
|
|
257
|
-
);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/* Primary color */
|
|
261
|
-
:host([theme~='success'][dir='rtl']) [part='value'],
|
|
262
|
-
:host([theme~='success'][dir='rtl']) [part='value']::before {
|
|
263
|
-
--lumo-progress-indeterminate-progress-bar-background: linear-gradient(
|
|
264
|
-
to left,
|
|
265
|
-
var(--lumo-success-color-10pct) 10%,
|
|
266
|
-
var(--lumo-success-color)
|
|
267
|
-
);
|
|
268
|
-
--lumo-progress-indeterminate-progress-bar-background-reverse: linear-gradient(
|
|
269
|
-
to right,
|
|
270
|
-
var(--lumo-success-color-10pct) 10%,
|
|
271
|
-
var(--lumo-success-color)
|
|
272
|
-
);
|
|
273
|
-
}
|
|
274
|
-
`,
|
|
275
|
-
{ moduleId: 'lumo-progress-bar' },
|
|
276
|
-
);
|