@vaadin/upload 23.3.21 → 23.3.22
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 +9 -9
- package/web-types.json +10 -182
- package/web-types.lit.json +9 -58
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/upload",
|
|
3
|
-
"version": "23.3.
|
|
3
|
+
"version": "23.3.22",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/button": "~23.3.
|
|
40
|
-
"@vaadin/component-base": "~23.3.
|
|
41
|
-
"@vaadin/progress-bar": "~23.3.
|
|
42
|
-
"@vaadin/vaadin-lumo-styles": "~23.3.
|
|
43
|
-
"@vaadin/vaadin-material-styles": "~23.3.
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "~23.3.
|
|
39
|
+
"@vaadin/button": "~23.3.22",
|
|
40
|
+
"@vaadin/component-base": "~23.3.22",
|
|
41
|
+
"@vaadin/progress-bar": "~23.3.22",
|
|
42
|
+
"@vaadin/vaadin-lumo-styles": "~23.3.22",
|
|
43
|
+
"@vaadin/vaadin-material-styles": "~23.3.22",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "~23.3.22"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
48
|
-
"@vaadin/form-layout": "~23.3.
|
|
48
|
+
"@vaadin/form-layout": "~23.3.22",
|
|
49
49
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
50
50
|
"sinon": "^13.0.2"
|
|
51
51
|
},
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"web-types.json",
|
|
54
54
|
"web-types.lit.json"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "88ff9ce571e2cb894223e9a8f275c1bd8fd51e3e"
|
|
57
57
|
}
|
package/web-types.json
CHANGED
|
@@ -1,103 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/upload",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "23.3.22",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-upload-file",
|
|
11
|
-
"description": "`<vaadin-upload-file>` element represents a file in the file list of `<vaadin-upload>`.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-----------------|-------------\n`row` | File container\n`info` | Container for file status icon, file name, status and error messages\n`done-icon` | File done status icon\n`warning-icon` | File warning status icon\n`meta` | Container for file name, status and error messages\n`name` | File name\n`error` | Error message, shown when error happens\n`status` | Status message\n`commands` | Container for file command buttons\n`start-button` | Start file upload button\n`retry-button` | Retry file upload button\n`remove-button` | Remove file button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|-------------\n`focus-ring` | Set when the element is focused using the keyboard.\n`focused` | Set when the element is focused.\n`error` | An error has happened during uploading.\n`indeterminate` | Uploading is in progress, but the progress value is unknown.\n`uploading` | Uploading is in progress.\n`complete` | Uploading has finished successfully.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
11
|
+
"description": "`<vaadin-upload-file>` element represents a file in the file list of `<vaadin-upload>`.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-----------------|-------------\n`row` | File container\n`info` | Container for file status icon, file name, status and error messages\n`done-icon` | File done status icon\n`warning-icon` | File warning status icon\n`meta` | Container for file name, status and error messages\n`name` | File name\n`error` | Error message, shown when error happens\n`status` | Status message\n`commands` | Container for file command buttons\n`start-button` | Start file upload button\n`retry-button` | Retry file upload button\n`remove-button` | Remove file button\n`progress` | Progress bar\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|-------------\n`focus-ring` | Set when the element is focused using the keyboard.\n`focused` | Set when the element is focused.\n`error` | An error has happened during uploading.\n`indeterminate` | Uploading is in progress, but the progress value is unknown.\n`uploading` | Uploading is in progress.\n`complete` | Uploading has finished successfully.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
|
-
{
|
|
14
|
-
"name": "complete",
|
|
15
|
-
"description": "True if uploading is completed, false otherwise.",
|
|
16
|
-
"value": {
|
|
17
|
-
"type": [
|
|
18
|
-
"boolean",
|
|
19
|
-
"null",
|
|
20
|
-
"undefined"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "error-message",
|
|
26
|
-
"description": "Error message returned by the server, if any.",
|
|
27
|
-
"value": {
|
|
28
|
-
"type": [
|
|
29
|
-
"string",
|
|
30
|
-
"null",
|
|
31
|
-
"undefined"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "file-name",
|
|
37
|
-
"description": "Name of the uploading file.",
|
|
38
|
-
"value": {
|
|
39
|
-
"type": [
|
|
40
|
-
"string",
|
|
41
|
-
"null",
|
|
42
|
-
"undefined"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "held",
|
|
48
|
-
"description": "True if uploading is not started, false otherwise.",
|
|
49
|
-
"value": {
|
|
50
|
-
"type": [
|
|
51
|
-
"boolean",
|
|
52
|
-
"null",
|
|
53
|
-
"undefined"
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "indeterminate",
|
|
59
|
-
"description": "True if remaining time is unknown, false otherwise.",
|
|
60
|
-
"value": {
|
|
61
|
-
"type": [
|
|
62
|
-
"boolean",
|
|
63
|
-
"null",
|
|
64
|
-
"undefined"
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "progress",
|
|
70
|
-
"description": "Number representing the uploading progress.",
|
|
71
|
-
"value": {
|
|
72
|
-
"type": [
|
|
73
|
-
"number",
|
|
74
|
-
"null",
|
|
75
|
-
"undefined"
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"name": "status",
|
|
81
|
-
"description": "Uploading status.",
|
|
82
|
-
"value": {
|
|
83
|
-
"type": [
|
|
84
|
-
"string",
|
|
85
|
-
"null",
|
|
86
|
-
"undefined"
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "uploading",
|
|
92
|
-
"description": "True if uploading is in progress, false otherwise.",
|
|
93
|
-
"value": {
|
|
94
|
-
"type": [
|
|
95
|
-
"boolean",
|
|
96
|
-
"null",
|
|
97
|
-
"undefined"
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
13
|
{
|
|
102
14
|
"name": "theme",
|
|
103
15
|
"description": "The theme variants to apply to the component.",
|
|
@@ -112,31 +24,9 @@
|
|
|
112
24
|
],
|
|
113
25
|
"js": {
|
|
114
26
|
"properties": [
|
|
115
|
-
{
|
|
116
|
-
"name": "complete",
|
|
117
|
-
"description": "True if uploading is completed, false otherwise.",
|
|
118
|
-
"value": {
|
|
119
|
-
"type": [
|
|
120
|
-
"boolean",
|
|
121
|
-
"null",
|
|
122
|
-
"undefined"
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "errorMessage",
|
|
128
|
-
"description": "Error message returned by the server, if any.",
|
|
129
|
-
"value": {
|
|
130
|
-
"type": [
|
|
131
|
-
"string",
|
|
132
|
-
"null",
|
|
133
|
-
"undefined"
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
27
|
{
|
|
138
28
|
"name": "file",
|
|
139
|
-
"description": "
|
|
29
|
+
"description": "",
|
|
140
30
|
"value": {
|
|
141
31
|
"type": [
|
|
142
32
|
"Object",
|
|
@@ -145,42 +35,9 @@
|
|
|
145
35
|
]
|
|
146
36
|
}
|
|
147
37
|
},
|
|
148
|
-
{
|
|
149
|
-
"name": "fileName",
|
|
150
|
-
"description": "Name of the uploading file.",
|
|
151
|
-
"value": {
|
|
152
|
-
"type": [
|
|
153
|
-
"string",
|
|
154
|
-
"null",
|
|
155
|
-
"undefined"
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"name": "held",
|
|
161
|
-
"description": "True if uploading is not started, false otherwise.",
|
|
162
|
-
"value": {
|
|
163
|
-
"type": [
|
|
164
|
-
"boolean",
|
|
165
|
-
"null",
|
|
166
|
-
"undefined"
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"name": "indeterminate",
|
|
172
|
-
"description": "True if remaining time is unknown, false otherwise.",
|
|
173
|
-
"value": {
|
|
174
|
-
"type": [
|
|
175
|
-
"boolean",
|
|
176
|
-
"null",
|
|
177
|
-
"undefined"
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
38
|
{
|
|
182
39
|
"name": "i18n",
|
|
183
|
-
"description": "
|
|
40
|
+
"description": "",
|
|
184
41
|
"value": {
|
|
185
42
|
"type": [
|
|
186
43
|
"Object",
|
|
@@ -188,45 +45,16 @@
|
|
|
188
45
|
"undefined"
|
|
189
46
|
]
|
|
190
47
|
}
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"name": "progress",
|
|
194
|
-
"description": "Number representing the uploading progress.",
|
|
195
|
-
"value": {
|
|
196
|
-
"type": [
|
|
197
|
-
"number",
|
|
198
|
-
"null",
|
|
199
|
-
"undefined"
|
|
200
|
-
]
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"name": "status",
|
|
205
|
-
"description": "Uploading status.",
|
|
206
|
-
"value": {
|
|
207
|
-
"type": [
|
|
208
|
-
"string",
|
|
209
|
-
"null",
|
|
210
|
-
"undefined"
|
|
211
|
-
]
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"name": "uploading",
|
|
216
|
-
"description": "True if uploading is in progress, false otherwise.",
|
|
217
|
-
"value": {
|
|
218
|
-
"type": [
|
|
219
|
-
"boolean",
|
|
220
|
-
"null",
|
|
221
|
-
"undefined"
|
|
222
|
-
]
|
|
223
|
-
}
|
|
224
48
|
}
|
|
225
49
|
],
|
|
226
50
|
"events": [
|
|
227
51
|
{
|
|
228
52
|
"name": "file-abort",
|
|
229
|
-
"description": "Fired when abort button is pressed. It is listened by `vaadin-upload` which\nwill abort the upload in progress,
|
|
53
|
+
"description": "Fired when abort button is pressed. It is listened by `vaadin-upload` which\nwill abort the upload in progress, but will not remove the file from the list\nto allow the animation to hide the element to be run."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "file-remove",
|
|
57
|
+
"description": "Fired after the animation to hide the element has finished. It is listened\nby `vaadin-upload` which will actually remove the file from the upload\nfile list."
|
|
230
58
|
},
|
|
231
59
|
{
|
|
232
60
|
"name": "file-retry",
|
|
@@ -241,7 +69,7 @@
|
|
|
241
69
|
},
|
|
242
70
|
{
|
|
243
71
|
"name": "vaadin-upload",
|
|
244
|
-
"description": "`<vaadin-upload>` is a Web Component for uploading multiple files with drag and drop support.\n\nExample:\n\n```\n<vaadin-upload></vaadin-upload>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name
|
|
72
|
+
"description": "`<vaadin-upload>` is a Web Component for uploading multiple files with drag and drop support.\n\nExample:\n\n```\n<vaadin-upload></vaadin-upload>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---|---\n`primary-buttons` | Upload container\n`upload-button` | Upload button\n`drop-label` | Label for drop indicator\n`drop-label-icon` | Icon for drop indicator\n`file-list` | File list container\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n---|---|---\n`nodrop` | Set when drag and drop is disabled (e. g., on touch devices) | `:host`\n`dragover` | A file is being dragged over the element | `:host`\n`dragover-valid` | A dragged file is valid with `maxFiles` and `accept` criteria | `:host`\n`max-files-reached` | The maximum number of files that the user is allowed to add to the upload has been reached | `:host`\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
|
|
245
73
|
"attributes": [
|
|
246
74
|
{
|
|
247
75
|
"name": "nodrop",
|
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/upload",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "23.3.22",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -16,82 +16,33 @@
|
|
|
16
16
|
"elements": [
|
|
17
17
|
{
|
|
18
18
|
"name": "vaadin-upload-file",
|
|
19
|
-
"description": "`<vaadin-upload-file>` element represents a file in the file list of `<vaadin-upload>`.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-----------------|-------------\n`row` | File container\n`info` | Container for file status icon, file name, status and error messages\n`done-icon` | File done status icon\n`warning-icon` | File warning status icon\n`meta` | Container for file name, status and error messages\n`name` | File name\n`error` | Error message, shown when error happens\n`status` | Status message\n`commands` | Container for file command buttons\n`start-button` | Start file upload button\n`retry-button` | Retry file upload button\n`remove-button` | Remove file button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|-------------\n`focus-ring` | Set when the element is focused using the keyboard.\n`focused` | Set when the element is focused.\n`error` | An error has happened during uploading.\n`indeterminate` | Uploading is in progress, but the progress value is unknown.\n`uploading` | Uploading is in progress.\n`complete` | Uploading has finished successfully.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
19
|
+
"description": "`<vaadin-upload-file>` element represents a file in the file list of `<vaadin-upload>`.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n-----------------|-------------\n`row` | File container\n`info` | Container for file status icon, file name, status and error messages\n`done-icon` | File done status icon\n`warning-icon` | File warning status icon\n`meta` | Container for file name, status and error messages\n`name` | File name\n`error` | Error message, shown when error happens\n`status` | Status message\n`commands` | Container for file command buttons\n`start-button` | Start file upload button\n`retry-button` | Retry file upload button\n`remove-button` | Remove file button\n`progress` | Progress bar\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n-----------------|-------------\n`focus-ring` | Set when the element is focused using the keyboard.\n`focused` | Set when the element is focused.\n`error` | An error has happened during uploading.\n`indeterminate` | Uploading is in progress, but the progress value is unknown.\n`uploading` | Uploading is in progress.\n`complete` | Uploading has finished successfully.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
|
-
{
|
|
23
|
-
"name": "?complete",
|
|
24
|
-
"description": "True if uploading is completed, false otherwise.",
|
|
25
|
-
"value": {
|
|
26
|
-
"kind": "expression"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "?held",
|
|
31
|
-
"description": "True if uploading is not started, false otherwise.",
|
|
32
|
-
"value": {
|
|
33
|
-
"kind": "expression"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "?indeterminate",
|
|
38
|
-
"description": "True if remaining time is unknown, false otherwise.",
|
|
39
|
-
"value": {
|
|
40
|
-
"kind": "expression"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "?uploading",
|
|
45
|
-
"description": "True if uploading is in progress, false otherwise.",
|
|
46
|
-
"value": {
|
|
47
|
-
"kind": "expression"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": ".errorMessage",
|
|
52
|
-
"description": "Error message returned by the server, if any.",
|
|
53
|
-
"value": {
|
|
54
|
-
"kind": "expression"
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
22
|
{
|
|
58
23
|
"name": ".file",
|
|
59
|
-
"description": "
|
|
60
|
-
"value": {
|
|
61
|
-
"kind": "expression"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": ".fileName",
|
|
66
|
-
"description": "Name of the uploading file.",
|
|
24
|
+
"description": "",
|
|
67
25
|
"value": {
|
|
68
26
|
"kind": "expression"
|
|
69
27
|
}
|
|
70
28
|
},
|
|
71
29
|
{
|
|
72
30
|
"name": ".i18n",
|
|
73
|
-
"description": "
|
|
31
|
+
"description": "",
|
|
74
32
|
"value": {
|
|
75
33
|
"kind": "expression"
|
|
76
34
|
}
|
|
77
35
|
},
|
|
78
36
|
{
|
|
79
|
-
"name": "
|
|
80
|
-
"description": "
|
|
81
|
-
"value": {
|
|
82
|
-
"kind": "expression"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"name": ".status",
|
|
87
|
-
"description": "Uploading status.",
|
|
37
|
+
"name": "@file-abort",
|
|
38
|
+
"description": "Fired when abort button is pressed. It is listened by `vaadin-upload` which\nwill abort the upload in progress, but will not remove the file from the list\nto allow the animation to hide the element to be run.",
|
|
88
39
|
"value": {
|
|
89
40
|
"kind": "expression"
|
|
90
41
|
}
|
|
91
42
|
},
|
|
92
43
|
{
|
|
93
|
-
"name": "@file-
|
|
94
|
-
"description": "Fired
|
|
44
|
+
"name": "@file-remove",
|
|
45
|
+
"description": "Fired after the animation to hide the element has finished. It is listened\nby `vaadin-upload` which will actually remove the file from the upload\nfile list.",
|
|
95
46
|
"value": {
|
|
96
47
|
"kind": "expression"
|
|
97
48
|
}
|
|
@@ -114,7 +65,7 @@
|
|
|
114
65
|
},
|
|
115
66
|
{
|
|
116
67
|
"name": "vaadin-upload",
|
|
117
|
-
"description": "`<vaadin-upload>` is a Web Component for uploading multiple files with drag and drop support.\n\nExample:\n\n```\n<vaadin-upload></vaadin-upload>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name
|
|
68
|
+
"description": "`<vaadin-upload>` is a Web Component for uploading multiple files with drag and drop support.\n\nExample:\n\n```\n<vaadin-upload></vaadin-upload>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---|---\n`primary-buttons` | Upload container\n`upload-button` | Upload button\n`drop-label` | Label for drop indicator\n`drop-label-icon` | Icon for drop indicator\n`file-list` | File list container\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n---|---|---\n`nodrop` | Set when drag and drop is disabled (e. g., on touch devices) | `:host`\n`dragover` | A file is being dragged over the element | `:host`\n`dragover-valid` | A dragged file is valid with `maxFiles` and `accept` criteria | `:host`\n`max-files-reached` | The maximum number of files that the user is allowed to add to the upload has been reached | `:host`\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
|
|
118
69
|
"extension": true,
|
|
119
70
|
"attributes": [
|
|
120
71
|
{
|