@dile/ui 2.17.1 → 2.18.1

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;
@@ -45,9 +45,13 @@ export class DileOrderSwitch extends DileEmmitChange(LitElement) {
45
45
 
46
46
  render() {
47
47
  return html`
48
- <div @click=${this.toggle}>
49
- <dile-icon .icon="${switchLeftIcon}" class="${this.value}"></dile-icon>
50
- <span>
48
+ <div>
49
+ <dile-icon
50
+ .icon="${switchLeftIcon}"
51
+ class="${this.value}"
52
+ @click=${this.toggle}
53
+ ></dile-icon>
54
+ <span @click=${this.onlyChange}>
51
55
  ${this.label}
52
56
  </span>
53
57
  </div>
@@ -64,11 +68,12 @@ export class DileOrderSwitch extends DileEmmitChange(LitElement) {
64
68
  }
65
69
  }
66
70
 
71
+ onlyChange() {
72
+ console.log('this.onlyChange');
73
+ this.emmitChange();
74
+ }
75
+
67
76
  toggle() {
68
- if (this.value === "asc") {
69
- this.value = "desc";
70
- } else {
71
- this.value = "asc";
72
- }
77
+ this.value = this.value === "asc" ? "desc" : "asc";
73
78
  }
74
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/ui",
3
- "version": "2.17.1",
3
+ "version": "2.18.1",
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": "465b457fe94482e1db3ea69d2cfa7bf0713f3a11"
29
+ "gitHead": "261c6a1e8a357ab3c937d9d1155446d58edcd199"
30
30
  }