@vaadin/upload 24.2.0-alpha8 → 24.2.0-beta1

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.2.0-alpha8",
3
+ "version": "24.2.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,23 +42,23 @@
42
42
  "dependencies": {
43
43
  "@open-wc/dedupe-mixin": "^1.3.0",
44
44
  "@polymer/polymer": "^3.0.0",
45
- "@vaadin/a11y-base": "24.2.0-alpha8",
46
- "@vaadin/button": "24.2.0-alpha8",
47
- "@vaadin/component-base": "24.2.0-alpha8",
48
- "@vaadin/progress-bar": "24.2.0-alpha8",
49
- "@vaadin/vaadin-lumo-styles": "24.2.0-alpha8",
50
- "@vaadin/vaadin-material-styles": "24.2.0-alpha8",
51
- "@vaadin/vaadin-themable-mixin": "24.2.0-alpha8",
45
+ "@vaadin/a11y-base": "24.2.0-beta1",
46
+ "@vaadin/button": "24.2.0-beta1",
47
+ "@vaadin/component-base": "24.2.0-beta1",
48
+ "@vaadin/progress-bar": "24.2.0-beta1",
49
+ "@vaadin/vaadin-lumo-styles": "24.2.0-beta1",
50
+ "@vaadin/vaadin-material-styles": "24.2.0-beta1",
51
+ "@vaadin/vaadin-themable-mixin": "24.2.0-beta1",
52
52
  "lit": "^2.0.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@esm-bundle/chai": "^4.3.4",
56
- "@vaadin/testing-helpers": "^0.4.3",
56
+ "@vaadin/testing-helpers": "^0.5.0",
57
57
  "sinon": "^13.0.2"
58
58
  },
59
59
  "web-types": [
60
60
  "web-types.json",
61
61
  "web-types.lit.json"
62
62
  ],
63
- "gitHead": "2c024e8fd462d178430418f76a61f498fb549998"
63
+ "gitHead": "67c8eef57d1c59e7476e29adaf003cf4548878f2"
64
64
  }
@@ -5,12 +5,14 @@
5
5
  */
6
6
  import './vaadin-upload-file.js';
7
7
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
8
+ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
9
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
9
10
  import { UploadFileListMixin } from './vaadin-upload-file-list-mixin.js';
10
11
 
11
12
  /**
12
13
  * An element used internally by `<vaadin-upload>`. Not intended to be used separately.
13
14
  *
15
+ * @customElement
14
16
  * @extends HTMLElement
15
17
  * @mixes ThemableMixin
16
18
  * @mixes UploadFileListMixin
@@ -45,6 +47,6 @@ class UploadFileList extends UploadFileListMixin(ThemableMixin(PolymerElement))
45
47
  }
46
48
  }
47
49
 
48
- customElements.define(UploadFileList.is, UploadFileList);
50
+ defineCustomElement(UploadFileList);
49
51
 
50
52
  export { UploadFileList };
@@ -7,6 +7,7 @@ import '@vaadin/progress-bar/src/vaadin-progress-bar.js';
7
7
  import './vaadin-upload-icons.js';
8
8
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
9
9
  import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
10
+ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
10
11
  import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11
12
  import { UploadFileMixin } from './vaadin-upload-file-mixin.js';
12
13
  import { uploadFileStyles } from './vaadin-upload-file-styles.js';
@@ -48,6 +49,7 @@ registerStyles('vaadin-upload-file', uploadFileStyles, { moduleId: 'vaadin-uploa
48
49
  *
49
50
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
50
51
  *
52
+ * @customElement
51
53
  * @extends HTMLElement
52
54
  * @mixes ControllerMixin
53
55
  * @mixes UploadFileMixin
@@ -133,6 +135,6 @@ class UploadFile extends UploadFileMixin(ThemableMixin(ControllerMixin(PolymerEl
133
135
  */
134
136
  }
135
137
 
136
- customElements.define(UploadFile.is, UploadFile);
138
+ defineCustomElement(UploadFile);
137
139
 
138
140
  export { UploadFile };
@@ -4,11 +4,13 @@
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
7
+ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
7
8
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
8
9
 
9
10
  /**
10
11
  * An element used internally by `<vaadin-upload>`. Not intended to be used separately.
11
12
  *
13
+ * @customElement
12
14
  * @extends HTMLElement
13
15
  * @private
14
16
  */
@@ -32,6 +34,6 @@ class UploadIcon extends ThemableMixin(PolymerElement) {
32
34
  }
33
35
  }
34
36
 
35
- customElements.define(UploadIcon.is, UploadIcon);
37
+ defineCustomElement(UploadIcon);
36
38
 
37
39
  export { UploadIcon };
@@ -185,7 +185,6 @@ export const UploadMixin = (superClass) =>
185
185
  notify: true,
186
186
  readOnly: true,
187
187
  reflectToAttribute: true,
188
- sync: true,
189
188
  },
190
189
 
191
190
  /**
@@ -9,6 +9,7 @@ import './vaadin-upload-icons.js';
9
9
  import './vaadin-upload-file-list.js';
10
10
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
11
11
  import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
12
+ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
12
13
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
13
14
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
14
15
  import { UploadMixin } from './vaadin-upload-mixin.js';
@@ -55,6 +56,7 @@ import { UploadMixin } from './vaadin-upload-mixin.js';
55
56
  * @fires {CustomEvent} upload-retry - Fired when retry upload is requested.
56
57
  * @fires {CustomEvent} upload-abort - Fired when upload abort is requested.
57
58
  *
59
+ * @customElement
58
60
  * @extends HTMLElement
59
61
  * @mixes ControllerMixin
60
62
  * @mixes ThemableMixin
@@ -212,6 +214,6 @@ class Upload extends UploadMixin(ElementMixin(ThemableMixin(ControllerMixin(Poly
212
214
  */
213
215
  }
214
216
 
215
- customElements.define(Upload.is, Upload);
217
+ defineCustomElement(Upload);
216
218
 
217
219
  export { Upload };
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.2.0-alpha8",
4
+ "version": "24.2.0-beta1",
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.2.0-alpha8",
4
+ "version": "24.2.0-beta1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {