@vaadin/upload 25.3.0-alpha1 → 25.3.0-alpha3
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 -11
- package/src/vaadin-upload-file.js +7 -5
- package/src/vaadin-upload-manager.d.ts +1 -6
- 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.3.0-
|
|
3
|
+
"version": "25.3.0-alpha3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.3.0-
|
|
39
|
-
"@vaadin/button": "25.3.0-
|
|
40
|
-
"@vaadin/component-base": "25.3.0-
|
|
41
|
-
"@vaadin/progress-bar": "25.3.0-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.3.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.3.0-alpha3",
|
|
39
|
+
"@vaadin/button": "25.3.0-alpha3",
|
|
40
|
+
"@vaadin/component-base": "25.3.0-alpha3",
|
|
41
|
+
"@vaadin/progress-bar": "25.3.0-alpha3",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-alpha3",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/aura": "25.3.0-
|
|
47
|
-
"@vaadin/chai-plugins": "25.3.0-
|
|
48
|
-
"@vaadin/test-runner-commands": "25.3.0-
|
|
46
|
+
"@vaadin/aura": "25.3.0-alpha3",
|
|
47
|
+
"@vaadin/chai-plugins": "25.3.0-alpha3",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.3.0-alpha3",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "25.3.0-
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-alpha3",
|
|
51
51
|
"sinon": "^22.0.0"
|
|
52
52
|
},
|
|
53
53
|
"customElements": "custom-elements.json",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "ba0c4c55ea219eadd9aefe244f53e87803a066c8"
|
|
59
59
|
}
|
|
@@ -105,11 +105,13 @@ class UploadFile extends UploadFileMixin(ThemableMixin(PolylitMixin(LumoInjectio
|
|
|
105
105
|
return html`
|
|
106
106
|
<div part="loader" ?hidden="${!this.uploading}" aria-hidden="true"></div>
|
|
107
107
|
|
|
108
|
-
${
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
${
|
|
109
|
+
this.__thumbnail
|
|
110
|
+
? html`<div part="thumbnail">
|
|
111
|
+
<img src="${this.__thumbnail}" alt="${this.fileName}" />
|
|
112
|
+
</div>`
|
|
113
|
+
: nothing
|
|
114
|
+
}
|
|
113
115
|
|
|
114
116
|
<div part="done-icon" ?hidden="${!this.complete}" aria-hidden="true"></div>
|
|
115
117
|
<div part="warning-icon" ?hidden="${!this.errorMessage}" aria-hidden="true"></div>
|
|
@@ -10,12 +10,7 @@ export type UploadFormat = 'raw' | 'multipart';
|
|
|
10
10
|
export type FileRejectError = 'tooManyFiles' | 'fileIsTooBig' | 'incorrectFileType';
|
|
11
11
|
|
|
12
12
|
export type UploadErrorKey =
|
|
13
|
-
| '
|
|
14
|
-
| 'serverUnavailable'
|
|
15
|
-
| 'unexpectedServerError'
|
|
16
|
-
| 'forbidden'
|
|
17
|
-
| 'sendFailed'
|
|
18
|
-
| 'fileTooLarge';
|
|
13
|
+
'timeout' | 'serverUnavailable' | 'unexpectedServerError' | 'forbidden' | 'sendFailed' | 'fileTooLarge';
|
|
19
14
|
|
|
20
15
|
export interface UploadFile extends File {
|
|
21
16
|
uploadTarget: string;
|
package/web-types.json
CHANGED