@salla.sa/twilight-components 2.11.19 → 2.11.20

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.
@@ -20785,6 +20785,7 @@ const SallaFileUpload = class {
20785
20785
  this.instantUpload = true;
20786
20786
  }
20787
20787
  if (!this.url && this.profileImage) {
20788
+ this.accept = 'image/png,image/jpeg,image/jpg';
20788
20789
  this.url = salla.url.api('profile/update');
20789
20790
  this.instantUpload = true;
20790
20791
  this.host.hasAttribute('name') || (this.name = 'avatar');
@@ -20905,7 +20906,6 @@ const SallaFileUpload = class {
20905
20906
  } }, index.h("input", { type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept })));
20906
20907
  }
20907
20908
  componentDidLoad() {
20908
- console.log(this.accept);
20909
20909
  let files = this.getFiles();
20910
20910
  this.filepond = filepond.create(this.fileUploader, {
20911
20911
  name: this.payloadName || this.name,
@@ -118,6 +118,7 @@ export class SallaFileUpload {
118
118
  this.instantUpload = true;
119
119
  }
120
120
  if (!this.url && this.profileImage) {
121
+ this.accept = 'image/png,image/jpeg,image/jpg';
121
122
  this.url = salla.url.api('profile/update');
122
123
  this.instantUpload = true;
123
124
  this.host.hasAttribute('name') || (this.name = 'avatar');
@@ -239,7 +240,6 @@ export class SallaFileUpload {
239
240
  h("input", { type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept })));
240
241
  }
241
242
  componentDidLoad() {
242
- console.log(this.accept);
243
243
  let files = this.getFiles();
244
244
  this.filepond = FilePond.create(this.fileUploader, {
245
245
  name: this.payloadName || this.name,
@@ -15219,6 +15219,7 @@ const SallaFileUpload = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
15219
15219
  this.instantUpload = true;
15220
15220
  }
15221
15221
  if (!this.url && this.profileImage) {
15222
+ this.accept = 'image/png,image/jpeg,image/jpg';
15222
15223
  this.url = salla.url.api('profile/update');
15223
15224
  this.instantUpload = true;
15224
15225
  this.host.hasAttribute('name') || (this.name = 'avatar');
@@ -15339,7 +15340,6 @@ const SallaFileUpload = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
15339
15340
  } }, h("input", { type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept })));
15340
15341
  }
15341
15342
  componentDidLoad() {
15342
- console.log(this.accept);
15343
15343
  let files = this.getFiles();
15344
15344
  this.filepond = filepond.create(this.fileUploader, {
15345
15345
  name: this.payloadName || this.name,
@@ -20781,6 +20781,7 @@ const SallaFileUpload = class {
20781
20781
  this.instantUpload = true;
20782
20782
  }
20783
20783
  if (!this.url && this.profileImage) {
20784
+ this.accept = 'image/png,image/jpeg,image/jpg';
20784
20785
  this.url = salla.url.api('profile/update');
20785
20786
  this.instantUpload = true;
20786
20787
  this.host.hasAttribute('name') || (this.name = 'avatar');
@@ -20901,7 +20902,6 @@ const SallaFileUpload = class {
20901
20902
  } }, h("input", { type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept })));
20902
20903
  }
20903
20904
  componentDidLoad() {
20904
- console.log(this.accept);
20905
20905
  let files = this.getFiles();
20906
20906
  this.filepond = filepond.create(this.fileUploader, {
20907
20907
  name: this.payloadName || this.name,