@vaadin/upload 25.0.1 → 25.0.3
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 +11 -10
- package/src/styles/vaadin-upload-base-styles.d.ts +1 -1
- package/src/styles/vaadin-upload-base-styles.js +1 -1
- package/src/styles/vaadin-upload-file-base-styles.d.ts +1 -1
- package/src/styles/vaadin-upload-file-base-styles.js +20 -12
- package/src/styles/vaadin-upload-file-list-base-styles.d.ts +1 -1
- package/src/styles/vaadin-upload-file-list-base-styles.js +1 -1
- package/src/styles/vaadin-upload-icon-base-styles.d.ts +1 -1
- package/src/styles/vaadin-upload-icon-base-styles.js +1 -1
- package/src/vaadin-upload-file-list-mixin.js +1 -1
- package/src/vaadin-upload-file-list.js +1 -1
- package/src/vaadin-upload-file-mixin.d.ts +1 -1
- package/src/vaadin-upload-file-mixin.js +1 -1
- package/src/vaadin-upload-file.d.ts +1 -1
- package/src/vaadin-upload-file.js +1 -1
- package/src/vaadin-upload-icon.js +1 -1
- package/src/vaadin-upload-icons.js +1 -1
- package/src/vaadin-upload-mixin.d.ts +1 -1
- package/src/vaadin-upload-mixin.js +2 -2
- package/src/vaadin-upload.d.ts +1 -1
- package/src/vaadin-upload.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/upload",
|
|
3
|
-
"version": "25.0.
|
|
3
|
+
"version": "25.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,23 +34,24 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/a11y-base": "~25.0.
|
|
38
|
-
"@vaadin/button": "~25.0.
|
|
39
|
-
"@vaadin/component-base": "~25.0.
|
|
40
|
-
"@vaadin/progress-bar": "~25.0.
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "~25.0.
|
|
37
|
+
"@vaadin/a11y-base": "~25.0.3",
|
|
38
|
+
"@vaadin/button": "~25.0.3",
|
|
39
|
+
"@vaadin/component-base": "~25.0.3",
|
|
40
|
+
"@vaadin/progress-bar": "~25.0.3",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "~25.0.3",
|
|
42
42
|
"lit": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vaadin/
|
|
46
|
-
"@vaadin/
|
|
45
|
+
"@vaadin/aura": "~25.0.3",
|
|
46
|
+
"@vaadin/chai-plugins": "~25.0.3",
|
|
47
|
+
"@vaadin/test-runner-commands": "~25.0.3",
|
|
47
48
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
48
|
-
"@vaadin/vaadin-lumo-styles": "~25.0.
|
|
49
|
+
"@vaadin/vaadin-lumo-styles": "~25.0.3",
|
|
49
50
|
"sinon": "^21.0.0"
|
|
50
51
|
},
|
|
51
52
|
"web-types": [
|
|
52
53
|
"web-types.json",
|
|
53
54
|
"web-types.lit.json"
|
|
54
55
|
],
|
|
55
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a4b57a083b721045770f1f3700edd699872cd7fb"
|
|
56
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/component-base/src/styles/style-props.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/component-base/src/styles/style-props.js';
|
|
@@ -8,7 +8,7 @@ import { css } from 'lit';
|
|
|
8
8
|
|
|
9
9
|
export const uploadFileStyles = css`
|
|
10
10
|
:host {
|
|
11
|
-
align-items:
|
|
11
|
+
align-items: baseline;
|
|
12
12
|
display: grid;
|
|
13
13
|
gap: var(--vaadin-upload-file-gap, var(--vaadin-gap-s));
|
|
14
14
|
grid-template-columns: var(--vaadin-icon-size, 1lh) minmax(0, 1fr) auto;
|
|
@@ -32,8 +32,9 @@ export const uploadFileStyles = css`
|
|
|
32
32
|
|
|
33
33
|
[part='done-icon']::before,
|
|
34
34
|
[part='warning-icon']::before {
|
|
35
|
-
content: '';
|
|
36
|
-
display: inline-
|
|
35
|
+
content: '\\2003' / '';
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
37
38
|
flex: none;
|
|
38
39
|
height: var(--vaadin-icon-size, 1lh);
|
|
39
40
|
width: var(--vaadin-icon-size, 1lh);
|
|
@@ -82,19 +83,25 @@ export const uploadFileStyles = css`
|
|
|
82
83
|
line-height: var(--vaadin-upload-file-error-line-height, inherit);
|
|
83
84
|
}
|
|
84
85
|
|
|
86
|
+
[part='commands'] {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: var(--vaadin-gap-xs);
|
|
90
|
+
height: var(--vaadin-icon-size, 1lh);
|
|
91
|
+
align-self: center;
|
|
92
|
+
}
|
|
93
|
+
|
|
85
94
|
button {
|
|
86
95
|
background: var(--vaadin-upload-file-button-background, transparent);
|
|
87
|
-
border: var(--vaadin-upload-file-button-border-width,
|
|
88
|
-
var(--vaadin-upload-file-button-border-color,
|
|
96
|
+
border: var(--vaadin-upload-file-button-border-width, 0) solid
|
|
97
|
+
var(--vaadin-upload-file-button-border-color, var(--vaadin-border-color-secondary));
|
|
89
98
|
border-radius: var(--vaadin-upload-file-button-border-radius, var(--vaadin-radius-m));
|
|
90
99
|
color: var(--vaadin-upload-file-button-text-color, var(--vaadin-text-color));
|
|
91
100
|
cursor: var(--vaadin-clickable-cursor);
|
|
92
101
|
flex-shrink: 0;
|
|
93
102
|
font: inherit;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
var(--vaadin-padding-block-container) var(--vaadin-padding-inline-container)
|
|
97
|
-
);
|
|
103
|
+
/* Ensure minimum click target (WCAG) */
|
|
104
|
+
padding: var(--vaadin-upload-file-button-padding, max(0px, (24px - var(--vaadin-icon-size, 1lh)) / 2));
|
|
98
105
|
}
|
|
99
106
|
|
|
100
107
|
button:focus-visible {
|
|
@@ -105,8 +112,9 @@ export const uploadFileStyles = css`
|
|
|
105
112
|
[part='retry-button']::before,
|
|
106
113
|
[part='remove-button']::before {
|
|
107
114
|
background: currentColor;
|
|
108
|
-
content: '';
|
|
109
|
-
display:
|
|
115
|
+
content: '\\2003' / '';
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
110
118
|
height: var(--vaadin-icon-size, 1lh);
|
|
111
119
|
width: var(--vaadin-icon-size, 1lh);
|
|
112
120
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/component-base/src/styles/style-props.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/component-base/src/styles/style-props.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { FocusMixin } from '@vaadin/a11y-base/src/focus-mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/progress-bar/src/vaadin-progress-bar.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import type { Constructor } from '@open-wc/dedupe-mixin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { announce } from '@vaadin/a11y-base/src/announce.js';
|
|
@@ -9,7 +9,7 @@ import { isTouch } from '@vaadin/component-base/src/browser-utils.js';
|
|
|
9
9
|
import { I18nMixin } from '@vaadin/component-base/src/i18n-mixin.js';
|
|
10
10
|
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
|
|
11
11
|
|
|
12
|
-
const DEFAULT_I18N = {
|
|
12
|
+
export const DEFAULT_I18N = {
|
|
13
13
|
dropFiles: {
|
|
14
14
|
one: 'Drop file here',
|
|
15
15
|
many: 'Drop files here',
|
package/src/vaadin-upload.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2016 -
|
|
3
|
+
* Copyright (c) 2016 - 2026 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
package/src/vaadin-upload.js
CHANGED
package/web-types.json
CHANGED