@dile/ui 2.17.1 → 2.18.0
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.
|
@@ -186,6 +186,10 @@ export class DileDropFile extends DileEmmitChange(LitElement) {
|
|
|
186
186
|
if(this.allowedExtensions.length === 0) {
|
|
187
187
|
return true;
|
|
188
188
|
}
|
|
189
|
+
// If wildcard '*' is present, allow any extension
|
|
190
|
+
if(this.allowedExtensions.includes('*')) {
|
|
191
|
+
return true;
|
|
192
|
+
}
|
|
189
193
|
const extension = fileName.split('.').pop().toLowerCase();
|
|
190
194
|
if(this.allowedExtensions.includes(extension)) {
|
|
191
195
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0",
|
|
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": "94879cea5e40ec66f9e18d617dd58334318ea35d"
|
|
30
30
|
}
|