@vaadin/upload 22.0.0-rc1 → 22.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/upload",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/button": "22.0.
|
|
37
|
-
"@vaadin/component-base": "22.0.
|
|
38
|
-
"@vaadin/progress-bar": "22.0.
|
|
39
|
-
"@vaadin/vaadin-lumo-styles": "22.0.
|
|
40
|
-
"@vaadin/vaadin-material-styles": "22.0.
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "22.0.
|
|
36
|
+
"@vaadin/button": "^22.0.3",
|
|
37
|
+
"@vaadin/component-base": "^22.0.3",
|
|
38
|
+
"@vaadin/progress-bar": "^22.0.3",
|
|
39
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.3",
|
|
40
|
+
"@vaadin/vaadin-material-styles": "^22.0.3",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@esm-bundle/chai": "^4.3.4",
|
|
45
|
-
"@vaadin/form-layout": "22.0.
|
|
45
|
+
"@vaadin/form-layout": "^22.0.3",
|
|
46
46
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
47
47
|
"sinon": "^9.2.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "935ad1ea65a79b0f9ecb10d767689479b36c4e07"
|
|
50
50
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2016 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
const $_documentContainer = document.createElement('template');
|
package/src/vaadin-upload.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2016 - 2022 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2016 - 2022 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 '@polymer/polymer/lib/elements/dom-repeat.js';
|
|
@@ -95,7 +95,7 @@ class Upload extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
95
95
|
</vaadin-button>
|
|
96
96
|
</slot>
|
|
97
97
|
</div>
|
|
98
|
-
<div part="drop-label" hidden$="[[nodrop]]" id="dropLabelContainer">
|
|
98
|
+
<div part="drop-label" hidden$="[[nodrop]]" id="dropLabelContainer" aria-hidden="true">
|
|
99
99
|
<slot name="drop-label-icon">
|
|
100
100
|
<div part="drop-label-icon"></div>
|
|
101
101
|
</slot>
|
|
@@ -823,7 +823,7 @@ class Upload extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
823
823
|
// cancelling the following synthetic click. See also:
|
|
824
824
|
// https://github.com/Polymer/polymer/issues/5289
|
|
825
825
|
this.__resetMouseCanceller();
|
|
826
|
-
this._onAddFilesClick();
|
|
826
|
+
this._onAddFilesClick(e);
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
/** @private */
|
|
@@ -832,11 +832,12 @@ class Upload extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
832
832
|
}
|
|
833
833
|
|
|
834
834
|
/** @private */
|
|
835
|
-
_onAddFilesClick() {
|
|
835
|
+
_onAddFilesClick(e) {
|
|
836
836
|
if (this.maxFilesReached) {
|
|
837
837
|
return;
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
+
e.stopPropagation();
|
|
840
841
|
this.$.fileInput.value = '';
|
|
841
842
|
this.$.fileInput.click();
|
|
842
843
|
}
|