@umbraco-ui/uui-file-dropzone 1.6.0-rc.0 → 1.6.0-rc.2

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/lib/index.js CHANGED
@@ -44,6 +44,7 @@ let UUIFileDropzoneElement = class extends LabelMixin("", LitElement) {
44
44
  super();
45
45
  this._acceptedFileExtensions = [];
46
46
  this._acceptedMimeTypes = [];
47
+ this._accept = "";
47
48
  this.multiple = false;
48
49
  this.addEventListener("dragenter", this._onDragEnter, false);
49
50
  this.addEventListener("dragleave", this._onDragLeave, false);
@@ -68,6 +69,12 @@ let UUIFileDropzoneElement = class extends LabelMixin("", LitElement) {
68
69
  this._acceptedMimeTypes = [];
69
70
  this._acceptedFileExtensions = [];
70
71
  }
72
+ const old = this._accept;
73
+ this._accept = value;
74
+ this.requestUpdate("accept", old);
75
+ }
76
+ get accept() {
77
+ return this._accept;
71
78
  }
72
79
  /**
73
80
  * Opens the native file picker to select a file.
@@ -11,6 +11,7 @@ export declare class UUIFileDropzoneElement extends UUIFileDropzoneElement_base
11
11
  private _dropzone;
12
12
  private _acceptedFileExtensions;
13
13
  private _acceptedMimeTypes;
14
+ private _accept;
14
15
  /**
15
16
  * Comma-separated list of accepted mime types or file extensions (denoted with a `.`).
16
17
  * If this is left empty, it will allow all types.
@@ -23,6 +24,7 @@ export declare class UUIFileDropzoneElement extends UUIFileDropzoneElement_base
23
24
  * ]
24
25
  */
25
26
  set accept(value: string);
27
+ get accept(): string;
26
28
  /**
27
29
  * Allows for multiple files to be selected.
28
30
  * @type {boolean}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-file-dropzone",
3
- "version": "1.6.0-rc.0",
3
+ "version": "1.6.0-rc.2",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,8 +30,8 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "1.6.0-rc.0",
34
- "@umbraco-ui/uui-symbol-file-dropzone": "1.6.0-rc.0"
33
+ "@umbraco-ui/uui-base": "1.6.0-rc.2",
34
+ "@umbraco-ui/uui-symbol-file-dropzone": "1.6.0-rc.2"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "homepage": "https://uui.umbraco.com/?path=/story/uui-file-dropzone",
45
- "gitHead": "04709c32cb81b058bdf7976b69533e5b793c49ab"
45
+ "gitHead": "5d4eefce4744802ab5bc40055b1a3136f0afc520"
46
46
  }