@vaadin/upload 24.0.0-alpha2 → 24.0.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/upload",
3
- "version": "24.0.0-alpha2",
3
+ "version": "24.0.0-alpha3",
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-alpha2",
40
- "@vaadin/component-base": "24.0.0-alpha2",
41
- "@vaadin/progress-bar": "24.0.0-alpha2",
42
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha2",
43
- "@vaadin/vaadin-material-styles": "24.0.0-alpha2",
44
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha2"
39
+ "@vaadin/button": "24.0.0-alpha3",
40
+ "@vaadin/component-base": "24.0.0-alpha3",
41
+ "@vaadin/progress-bar": "24.0.0-alpha3",
42
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha3",
43
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha3",
44
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha3"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@esm-bundle/chai": "^4.3.4",
48
- "@vaadin/form-layout": "24.0.0-alpha2",
48
+ "@vaadin/form-layout": "24.0.0-alpha3",
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": "0c16c01a6807e629a84f5a982793afecc1a7ced0"
56
+ "gitHead": "7a013a3c5a56abd61dd4f7773c6ec77c3541bdf2"
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
- this,
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.
@@ -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
- this,
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
- this,
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
- this,
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', () => document.createElement('vaadin-upload-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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/upload",
4
- "version": "24.0.0-alpha2",
4
+ "version": "24.0.0-alpha3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/upload",
4
- "version": "24.0.0-alpha2",
4
+ "version": "24.0.0-alpha3",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {