@vaadin/vaadin-upload 21.0.0 → 21.0.4
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/vaadin-upload",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.4",
|
|
4
4
|
"description": "Web Component for uploading files with drag and drop support",
|
|
5
5
|
"main": "vaadin-upload.js",
|
|
6
6
|
"module": "vaadin-upload.js",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@polymer/polymer": "^3.0.0",
|
|
29
|
-
"@vaadin/vaadin-button": "^21.0.
|
|
30
|
-
"@vaadin/vaadin-element-mixin": "^21.0.
|
|
31
|
-
"@vaadin/vaadin-lumo-styles": "^21.0.
|
|
32
|
-
"@vaadin/vaadin-material-styles": "^21.0.
|
|
33
|
-
"@vaadin/vaadin-progress-bar": "^21.0.
|
|
34
|
-
"@vaadin/vaadin-themable-mixin": "^21.0.
|
|
29
|
+
"@vaadin/vaadin-button": "^21.0.4",
|
|
30
|
+
"@vaadin/vaadin-element-mixin": "^21.0.4",
|
|
31
|
+
"@vaadin/vaadin-lumo-styles": "^21.0.4",
|
|
32
|
+
"@vaadin/vaadin-material-styles": "^21.0.4",
|
|
33
|
+
"@vaadin/vaadin-progress-bar": "^21.0.4",
|
|
34
|
+
"@vaadin/vaadin-themable-mixin": "^21.0.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@esm-bundle/chai": "^4.1.5",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "5bcf4893e594a60701c723f5c9157ad6ac694baf"
|
|
45
45
|
}
|
package/src/vaadin-upload.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ import { UploadEventMap, UploadFile, UploadI18n, UploadMethod } from './interfac
|
|
|
32
32
|
* `nodrop` | Set when drag and drop is disabled (e. g., on touch devices) | `:host`
|
|
33
33
|
* `dragover` | A file is being dragged over the element | `:host`
|
|
34
34
|
* `dragover-valid` | A dragged file is valid with `maxFiles` and `accept` criteria | `:host`
|
|
35
|
+
* `max-files-reached` | The maximum number of files that the user is allowed to add to the upload has been reached | `:host`
|
|
35
36
|
*
|
|
36
37
|
* See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
|
|
37
38
|
*
|
package/src/vaadin-upload.js
CHANGED
|
@@ -40,6 +40,7 @@ import './vaadin-upload-file.js';
|
|
|
40
40
|
* `nodrop` | Set when drag and drop is disabled (e. g., on touch devices) | `:host`
|
|
41
41
|
* `dragover` | A file is being dragged over the element | `:host`
|
|
42
42
|
* `dragover-valid` | A dragged file is valid with `maxFiles` and `accept` criteria | `:host`
|
|
43
|
+
* `max-files-reached` | The maximum number of files that the user is allowed to add to the upload has been reached | `:host`
|
|
43
44
|
*
|
|
44
45
|
* See [Styling Components](https://vaadin.com/docs/latest/ds/customization/styling-components) documentation.
|
|
45
46
|
*
|
|
@@ -118,7 +119,7 @@ class UploadElement extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
static get version() {
|
|
121
|
-
return '21.0.
|
|
122
|
+
return '21.0.4';
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
static get properties() {
|
|
@@ -246,6 +247,7 @@ class UploadElement extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
246
247
|
value: false,
|
|
247
248
|
notify: true,
|
|
248
249
|
readOnly: true,
|
|
250
|
+
reflectToAttribute: true,
|
|
249
251
|
computed: '_maxFilesAdded(maxFiles, files.length)'
|
|
250
252
|
},
|
|
251
253
|
|