@vaadin/upload 24.0.0-alpha2 → 24.0.0-alpha4
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/src/vaadin-upload-file.js +3 -6
- package/src/vaadin-upload.js +10 -19
- 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": "24.0.0-
|
|
3
|
+
"version": "24.0.0-alpha4",
|
|
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": "24.0.0-
|
|
40
|
-
"@vaadin/component-base": "24.0.0-
|
|
41
|
-
"@vaadin/progress-bar": "24.0.0-
|
|
42
|
-
"@vaadin/vaadin-lumo-styles": "24.0.0-
|
|
43
|
-
"@vaadin/vaadin-material-styles": "24.0.0-
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "24.0.0-
|
|
39
|
+
"@vaadin/button": "24.0.0-alpha4",
|
|
40
|
+
"@vaadin/component-base": "24.0.0-alpha4",
|
|
41
|
+
"@vaadin/progress-bar": "24.0.0-alpha4",
|
|
42
|
+
"@vaadin/vaadin-lumo-styles": "24.0.0-alpha4",
|
|
43
|
+
"@vaadin/vaadin-material-styles": "24.0.0-alpha4",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "24.0.0-alpha4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
48
|
-
"@vaadin/form-layout": "24.0.0-
|
|
48
|
+
"@vaadin/form-layout": "24.0.0-alpha4",
|
|
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": "66be46e82c4d0a673859fbc9bdb1581dd89f360c"
|
|
57
57
|
}
|
|
@@ -236,14 +236,11 @@ class UploadFile extends FocusMixin(ThemableMixin(ControllerMixin(PolymerElement
|
|
|
236
236
|
super.ready();
|
|
237
237
|
|
|
238
238
|
this.addController(
|
|
239
|
-
new SlotController(
|
|
240
|
-
|
|
241
|
-
'progress',
|
|
242
|
-
() => document.createElement('vaadin-progress-bar'),
|
|
243
|
-
(_, progress) => {
|
|
239
|
+
new SlotController(this, 'progress', 'vaadin-progress-bar', {
|
|
240
|
+
initializer: (progress) => {
|
|
244
241
|
this._progress = progress;
|
|
245
242
|
},
|
|
246
|
-
),
|
|
243
|
+
}),
|
|
247
244
|
);
|
|
248
245
|
|
|
249
246
|
// Handle moving focus to the button on Tab.
|
package/src/vaadin-upload.js
CHANGED
|
@@ -454,11 +454,8 @@ class Upload extends ElementMixin(ThemableMixin(ControllerMixin(PolymerElement))
|
|
|
454
454
|
this.addEventListener('upload-error', this._onUploadError.bind(this));
|
|
455
455
|
|
|
456
456
|
this.addController(
|
|
457
|
-
new SlotController(
|
|
458
|
-
|
|
459
|
-
'add-button',
|
|
460
|
-
() => document.createElement('vaadin-button'),
|
|
461
|
-
(_, button) => {
|
|
457
|
+
new SlotController(this, 'add-button', 'vaadin-button', {
|
|
458
|
+
initializer: (button) => {
|
|
462
459
|
button.addEventListener('touchend', (e) => {
|
|
463
460
|
this._onAddFilesTouchEnd(e);
|
|
464
461
|
});
|
|
@@ -467,32 +464,26 @@ class Upload extends ElementMixin(ThemableMixin(ControllerMixin(PolymerElement))
|
|
|
467
464
|
});
|
|
468
465
|
this._addButton = button;
|
|
469
466
|
},
|
|
470
|
-
),
|
|
467
|
+
}),
|
|
471
468
|
);
|
|
472
469
|
|
|
473
470
|
this.addController(
|
|
474
|
-
new SlotController(
|
|
475
|
-
|
|
476
|
-
'drop-label',
|
|
477
|
-
() => document.createElement('span'),
|
|
478
|
-
(_, label) => {
|
|
471
|
+
new SlotController(this, 'drop-label', 'span', {
|
|
472
|
+
initializer: (label) => {
|
|
479
473
|
this._dropLabel = label;
|
|
480
474
|
},
|
|
481
|
-
),
|
|
475
|
+
}),
|
|
482
476
|
);
|
|
483
477
|
|
|
484
478
|
this.addController(
|
|
485
|
-
new SlotController(
|
|
486
|
-
|
|
487
|
-
'file-list',
|
|
488
|
-
() => document.createElement('vaadin-upload-file-list'),
|
|
489
|
-
(_, list) => {
|
|
479
|
+
new SlotController(this, 'file-list', 'vaadin-upload-file-list', {
|
|
480
|
+
initializer: (list) => {
|
|
490
481
|
this._fileList = list;
|
|
491
482
|
},
|
|
492
|
-
),
|
|
483
|
+
}),
|
|
493
484
|
);
|
|
494
485
|
|
|
495
|
-
this.addController(new SlotController(this, 'drop-label-icon',
|
|
486
|
+
this.addController(new SlotController(this, 'drop-label-icon', 'vaadin-upload-icon'));
|
|
496
487
|
}
|
|
497
488
|
|
|
498
489
|
/** @private */
|
package/web-types.json
CHANGED