@idsoftsource/initial-process 1.3.7 → 1.3.9

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.
@@ -2956,6 +2956,8 @@ class CertificationComponent {
2956
2956
  country: 'US'
2957
2957
  }); // reset form fields
2958
2958
  this.fileName = '';
2959
+ this.selectedDocumentId = null;
2960
+ this.selectedDocumentName = null;
2959
2961
  }
2960
2962
  // Called when user cancels form
2961
2963
  cancelForm() {
@@ -4450,6 +4452,8 @@ class LicensesComponent {
4450
4452
  country: 'US'
4451
4453
  }); // reset form fields
4452
4454
  this.fileName = '';
4455
+ this.selectedDocumentId = null;
4456
+ this.selectedDocumentName = null;
4453
4457
  }
4454
4458
  // Called when user cancels form
4455
4459
  cancelForm() {
@@ -29672,6 +29676,16 @@ class InitialProcessComponent {
29672
29676
  reader.readAsDataURL(this.fileDataUser);
29673
29677
  event.target.value = null;
29674
29678
  }
29679
+ uploadLogo(event) {
29680
+ this.isLogoRequired = false;
29681
+ this.fileDataLogo = event.currentTarget.files[0];
29682
+ console.log(this.fileDataLogo);
29683
+ this.logoName = this.fileDataLogo.name;
29684
+ const reader = new FileReader();
29685
+ reader.readAsDataURL(this.fileDataLogo);
29686
+ event.target.value = null;
29687
+ this.isneeded = false;
29688
+ }
29675
29689
  AddressChange(address) {
29676
29690
  var doorNumber = address.address_components.find((a) => { return a.types.includes("street_number"); })?.short_name;
29677
29691
  doorNumber = doorNumber ? doorNumber : '';
@@ -29927,16 +29941,6 @@ class InitialProcessComponent {
29927
29941
  form.get('phoneNumber')
29928
29942
  ?.setValue(formatted, { emitEvent: false });
29929
29943
  }
29930
- uploadLogo(event) {
29931
- this.isLogoRequired = false;
29932
- this.fileDataLogo = event.currentTarget.files[0];
29933
- console.log(this.fileDataLogo);
29934
- this.logoName = this.fileDataLogo.name;
29935
- const reader = new FileReader();
29936
- reader.readAsDataURL(this.fileDataLogo);
29937
- event.target.value = null;
29938
- this.isneeded = false;
29939
- }
29940
29944
  async saveAWSHeadShot() {
29941
29945
  if (this.user.headshotFileId) {
29942
29946
  this.saveAWSSignature();
@@ -29946,8 +29950,7 @@ class InitialProcessComponent {
29946
29950
  return;
29947
29951
  try {
29948
29952
  const fileExtension = this.fileDataUser.type.split('/')[1] || this.fileDataUser.type.split('/')[0];
29949
- const fileName = Date.now().toString(36) + Math.random().toString(36).substr(2);
29950
- +'.' + fileExtension;
29953
+ const fileName = new uuid().newId() + '.' + fileExtension;
29951
29954
  const path = `User/${this.userId}/Profile/`;
29952
29955
  const key = path + fileName;
29953
29956
  const uploaded = await this.fileService.uploadImageAsync(this.fileDataUser, {