@dile/ui 2.1.22 → 2.1.24
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.
|
@@ -9,7 +9,9 @@ export class DileDropFile extends LitElement {
|
|
|
9
9
|
css`
|
|
10
10
|
* { box-sizing: border-box; }
|
|
11
11
|
:host {
|
|
12
|
+
display: block;
|
|
12
13
|
margin-bottom: 10px;
|
|
14
|
+
padding-bottom: 1px;
|
|
13
15
|
}
|
|
14
16
|
#dropZone {
|
|
15
17
|
width: 100%;
|
|
@@ -159,7 +161,6 @@ export class DileDropFile extends LitElement {
|
|
|
159
161
|
|
|
160
162
|
_processFile(files) {
|
|
161
163
|
if (files.length > 0) {
|
|
162
|
-
console.log("Mostramos el nombre del archivo",files);
|
|
163
164
|
this.fileName = files[0].name;
|
|
164
165
|
if(this._isValidExtension(this.fileName)) {
|
|
165
166
|
this.message = this.firstMessage || '';
|
|
@@ -200,7 +201,7 @@ export class DileDropFile extends LitElement {
|
|
|
200
201
|
this.fileInput.click();
|
|
201
202
|
}
|
|
202
203
|
|
|
203
|
-
|
|
204
|
+
clear() {
|
|
204
205
|
this.fileInput.value = "";
|
|
205
206
|
this.fileName = "";
|
|
206
207
|
}
|
|
@@ -210,11 +211,13 @@ export class DileDropFile extends LitElement {
|
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
get value() {
|
|
213
|
-
this.fileInput
|
|
214
|
+
if(this.fileInput) {
|
|
215
|
+
return this.fileInput.files[0];
|
|
216
|
+
}
|
|
214
217
|
}
|
|
215
218
|
|
|
216
219
|
set value(value) {
|
|
217
|
-
this.fileInput.value = value;
|
|
220
|
+
// this.fileInput.value = value;
|
|
218
221
|
}
|
|
219
|
-
|
|
222
|
+
|
|
220
223
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.24",
|
|
4
4
|
"description": "UI Core components from dile-components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "a4a717f1aa0deee5f86b7c74b53a9ccaee11552d"
|
|
30
30
|
}
|