@idsoftsource/initial-process 1.0.9 → 1.1.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.
@@ -2516,11 +2516,11 @@ class CertificationComponent {
2516
2516
  }
2517
2517
  async ngOnInit() {
2518
2518
  this.certificateForm = this.fb.group({
2519
- number: ['', Validators.required],
2520
- issuedBy: ['', Validators.required],
2519
+ number: [''],
2520
+ issuedBy: [''],
2521
2521
  issuedState: [null],
2522
- issueDate: ['', Validators.required],
2523
- expiryDate: ['', Validators.required],
2522
+ issueDate: [''],
2523
+ expiryDate: [''],
2524
2524
  notes: [''],
2525
2525
  documentTypeId: [null],
2526
2526
  documentTypeName: [null]
@@ -2655,11 +2655,11 @@ class CertificationComponent {
2655
2655
  providerId: this.providerId,
2656
2656
  userId: this.userId,
2657
2657
  userName: this.userdata.userDetail.firstName + this.userdata.userDetail.lastName,
2658
- number: fullValue.number,
2659
- issuedState: fullValue.issuedState,
2658
+ number: fullValue.number ? fullValue.number : 0,
2659
+ issuedState: fullValue.issuedState ? fullValue.issuedState : null,
2660
2660
  issuedBy: fullValue.issuedBy,
2661
- issueDate: fullValue.issueDate.toISOString(),
2662
- expiryDate: fullValue.expiryDate.toISOString(),
2661
+ issueDate: fullValue.issueDate ? fullValue.issueDate.toISOString() : null,
2662
+ expiryDate: fullValue.expiryDate ? fullValue.expiryDate.toISOString() : null,
2663
2663
  notes: fullValue.notes,
2664
2664
  fileId: this.model?.fileId || null,
2665
2665
  fileUrl: this.cloudfrontUrl + this.model?.fileUrl || null,
@@ -2739,8 +2739,8 @@ class CertificationComponent {
2739
2739
  number: data.number,
2740
2740
  issuedBy: data.issuedBy,
2741
2741
  issuedState: data.issuedState,
2742
- issueDate: new Date(data.issueDate),
2743
- expiryDate: new Date(data.expiryDate),
2742
+ issueDate: data.issueDate ? new Date(data.issueDate) : null,
2743
+ expiryDate: data.expiryDate ? new Date(data.expiryDate) : null,
2744
2744
  notes: data.notes,
2745
2745
  });
2746
2746
  this.selectedDocumentId != data.documentTypeId;
@@ -3890,11 +3890,11 @@ class LicensesComponent {
3890
3890
  }
3891
3891
  async ngOnInit() {
3892
3892
  this.certificateForm = this.fb.group({
3893
- number: ['', Validators.required],
3894
- issuedBy: ['', Validators.required],
3893
+ number: [''],
3894
+ issuedBy: [''],
3895
3895
  issuedState: [null],
3896
- issueDate: ['', Validators.required],
3897
- expiryDate: ['', Validators.required],
3896
+ issueDate: [''],
3897
+ expiryDate: [''],
3898
3898
  notes: [''],
3899
3899
  documentTypeId: [null],
3900
3900
  documentTypeName: [null]
@@ -4025,11 +4025,11 @@ class LicensesComponent {
4025
4025
  providerId: this.providerId,
4026
4026
  userId: this.userId,
4027
4027
  userName: this.userdata.userDetail.firstName + this.userdata.userDetail.lastName,
4028
- number: fullValue.number,
4029
- issuedState: fullValue.issuedState,
4028
+ number: fullValue.number ? fullValue.number : 0,
4029
+ issuedState: fullValue.issuedState ? fullValue.issuedState : null,
4030
4030
  issuedBy: fullValue.issuedBy,
4031
- issueDate: fullValue.issueDate.toISOString(),
4032
- expiryDate: fullValue.expiryDate.toISOString(),
4031
+ issueDate: fullValue.issueDate ? fullValue.issueDate.toISOString() : null,
4032
+ expiryDate: fullValue.expiryDate ? fullValue.expiryDate.toISOString() : null,
4033
4033
  notes: fullValue.notes,
4034
4034
  fileId: this.model?.fileId || null,
4035
4035
  fileUrl: this.cloudfrontUrl + this.model?.fileUrl || null,
@@ -4109,8 +4109,8 @@ class LicensesComponent {
4109
4109
  number: data.number,
4110
4110
  issuedBy: data.issuedBy,
4111
4111
  issuedState: data.issuedState,
4112
- issueDate: new Date(data.issueDate),
4113
- expiryDate: new Date(data.expiryDate),
4112
+ issueDate: data.issueDate ? new Date(data.issueDate) : null,
4113
+ expiryDate: data.expiryDate ? new Date(data.expiryDate) : null,
4114
4114
  notes: data.notes,
4115
4115
  });
4116
4116
  this.selectedDocumentId = data.documentTypeId;
@@ -28823,6 +28823,7 @@ class InitialProcessComponent {
28823
28823
  userForm;
28824
28824
  fileData;
28825
28825
  fileDataUser;
28826
+ fileDataLogo;
28826
28827
  zipcodeMask = [/\d/, /\d/, /\d/, /\d/, /\d/];
28827
28828
  options = {
28828
28829
  componentRestrictions: {
@@ -29386,24 +29387,24 @@ class InitialProcessComponent {
29386
29387
  }
29387
29388
  }
29388
29389
  async saveAWSLogo() {
29389
- if (!this.fileDataUser)
29390
+ if (!this.fileDataLogo)
29390
29391
  return false;
29391
29392
  try {
29392
- const fileExtension = this.fileDataUser.type.split('/')[1] || this.fileDataUser.type.split('/')[0];
29393
+ const fileExtension = this.fileDataLogo.type.split('/')[1] || this.fileDataLogo.type.split('/')[0];
29393
29394
  const fileName = new uuid().newId() + '.' + fileExtension;
29394
29395
  // this.logoName = fileName;
29395
29396
  const path = `Provider/${this.userId}/Profile/`;
29396
29397
  const key = path + fileName;
29397
- const uploaded = await this.fileService.uploadImageAsync(this.fileDataUser, {
29398
+ const uploaded = await this.fileService.uploadImageAsync(this.fileDataLogo, {
29398
29399
  key,
29399
- contentType: this.fileDataUser.type,
29400
+ contentType: this.fileDataLogo.type,
29400
29401
  Expires: 300, // 5 mins or as required
29401
29402
  });
29402
29403
  if (uploaded?.publicUrl) {
29403
29404
  const fileModel = {
29404
- fileName: this.fileDataUser.name,
29405
- fileSize: this.fileDataUser.size,
29406
- fileType: this.fileDataUser.type,
29405
+ fileName: this.fileDataLogo.name,
29406
+ fileSize: this.fileDataLogo.size,
29407
+ fileType: this.fileDataLogo.type,
29407
29408
  fileLocation: uploaded.publicUrl,
29408
29409
  encrypted: true,
29409
29410
  publicUrl: uploaded.publicUrl,
@@ -29456,11 +29457,11 @@ class InitialProcessComponent {
29456
29457
  }
29457
29458
  uploadLogo(event) {
29458
29459
  this.isLogoRequired = false;
29459
- this.fileDataUser = event.currentTarget.files[0];
29460
- console.log(this.fileDataUser);
29461
- this.logoName = this.fileDataUser.name;
29460
+ this.fileDataLogo = event.currentTarget.files[0];
29461
+ console.log(this.fileDataLogo);
29462
+ this.logoName = this.fileDataLogo.name;
29462
29463
  const reader = new FileReader();
29463
- reader.readAsDataURL(this.fileDataUser);
29464
+ reader.readAsDataURL(this.fileDataLogo);
29464
29465
  event.target.value = null;
29465
29466
  }
29466
29467
  async saveAWSHeadShot() {
@@ -30651,11 +30652,11 @@ class VerifyEmailComponent {
30651
30652
  }
30652
30653
  }
30653
30654
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VerifyEmailComponent, deps: [{ token: LIBRARY_CONFIG }, { token: UserDetailService }, { token: i6.AuthLogoutService }, { token: i6.TokenService }, { token: i3$1.Router }], target: i0.ɵɵFactoryTarget.Component });
30654
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: VerifyEmailComponent, isStandalone: true, selector: "app-verify-email", ngImport: i0, template: "@if(pageLoader){\r\n<div class=\"align-content-center text-center\" style=\"height: 100vh;\">\r\n <loader [show]=\"true\"></loader>\r\n <div class=\"fs-5 fw-bolder\">Loading... Please wait !</div>\r\n</div>\r\n}@else{\r\n<div class=\"container d-flex justify-content-center align-items-center vh-100\">\r\n <div class=\"card shadow p-4 text-center\" style=\"max-width: 420px; width: 100%;\">\r\n \r\n <div class=\"icon mb-3 text-warning\" style=\"font-size: 60px;\">\r\n \u26A0\r\n </div>\r\n \r\n <h4 class=\"mb-3\">Email Not Verified</h4>\r\n \r\n <p class=\"text-muted\">\r\n Your email is not verified yet. Please check your inbox and click the verification link.\r\n <br><br>\r\n If you didn\u2019t receive the email, click the button below to resend the verification link.\r\n </p>\r\n \r\n <button class=\"btn btn-warning w-100 mt-3\" (click)=\"resendVerification()\" [disabled]=\"loading || cooldown > 0\">\r\n \r\n <!-- Normal -->\r\n <span *ngIf=\"!loading && cooldown === 0\">\r\n Resend Verification Email\r\n </span>\r\n \r\n <!-- Loading -->\r\n <span *ngIf=\"loading\">\r\n Sending...\r\n </span>\r\n \r\n <!-- Cooldown -->\r\n <span *ngIf=\"cooldown > 0 && !loading\">\r\n Retry in {{ cooldown }}s\r\n </span>\r\n \r\n </button>\r\n \r\n <div *ngIf=\"successMessage\" class=\"mt-3 text-success\">\r\n \u2705 Verification email sent! Please check your inbox.\r\n </div>\r\n \r\n <div *ngIf=\"errorMessage\" class=\"mt-3 text-danger\">\r\n \u274C Failed to resend email. Try again.\r\n </div>\r\n \r\n <!-- Optional logout -->\r\n <button class=\"btn btn-link mt-3\" (click)=\"logout()\">\r\n Logout\r\n </button>\r\n \r\n </div>\r\n</div>\r\n}\r\n ", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: LoaderModule }, { kind: "component", type: LoaderComponent, selector: "loader", inputs: ["show", "small"] }] });
30655
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: VerifyEmailComponent, isStandalone: true, selector: "app-verify-email", ngImport: i0, template: "@if(pageLoader){\r\n<div class=\"align-content-center text-center\" style=\"height: 100vh;\">\r\n <loader [show]=\"true\"></loader>\r\n <div class=\"fs-5 fw-bolder\">Loading... Please wait !</div>\r\n</div>\r\n}@else{\r\n<div class=\"container d-flex justify-content-center align-items-center vh-100\">\r\n <div class=\"card shadow p-4 text-center\" style=\"max-width: 420px; width: 100%;\">\r\n \r\n <div class=\"icon mb-3 text-warning\" style=\"font-size: 60px;\">\r\n \u26A0\r\n </div>\r\n \r\n <h4 class=\"mb-3\">Email Verification</h4>\r\n \r\n <p class=\"text-muted\">\r\n Please check your inbox and click the verification link.\r\n <br><br>\r\n If you didn\u2019t receive the email, click the button below to resend the verification link.\r\n </p>\r\n \r\n <button class=\"btn btn-warning w-100 mt-3\" (click)=\"resendVerification()\" [disabled]=\"loading || cooldown > 0\">\r\n \r\n <!-- Normal -->\r\n <span *ngIf=\"!loading && cooldown === 0\">\r\n Resend Verification Email\r\n </span>\r\n \r\n <!-- Loading -->\r\n <span *ngIf=\"loading\">\r\n Sending...\r\n </span>\r\n \r\n <!-- Cooldown -->\r\n <span *ngIf=\"cooldown > 0 && !loading\">\r\n Retry in {{ cooldown }}s\r\n </span>\r\n \r\n </button>\r\n \r\n <div *ngIf=\"successMessage\" class=\"mt-3 text-success\">\r\n \u2705 Verification email sent! Please check your inbox.\r\n </div>\r\n \r\n <div *ngIf=\"errorMessage\" class=\"mt-3 text-danger\">\r\n \u274C Failed to resend email. Try again.\r\n </div>\r\n \r\n <!-- Optional logout -->\r\n <button class=\"btn btn-link mt-3\" (click)=\"logout()\">\r\n Logout\r\n </button>\r\n \r\n </div>\r\n</div>\r\n}\r\n ", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: LoaderModule }, { kind: "component", type: LoaderComponent, selector: "loader", inputs: ["show", "small"] }] });
30655
30656
  }
30656
30657
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VerifyEmailComponent, decorators: [{
30657
30658
  type: Component,
30658
- args: [{ selector: 'app-verify-email', standalone: true, imports: [CommonModule, FormsModule, ReactiveFormsModule, LoaderModule], template: "@if(pageLoader){\r\n<div class=\"align-content-center text-center\" style=\"height: 100vh;\">\r\n <loader [show]=\"true\"></loader>\r\n <div class=\"fs-5 fw-bolder\">Loading... Please wait !</div>\r\n</div>\r\n}@else{\r\n<div class=\"container d-flex justify-content-center align-items-center vh-100\">\r\n <div class=\"card shadow p-4 text-center\" style=\"max-width: 420px; width: 100%;\">\r\n \r\n <div class=\"icon mb-3 text-warning\" style=\"font-size: 60px;\">\r\n \u26A0\r\n </div>\r\n \r\n <h4 class=\"mb-3\">Email Not Verified</h4>\r\n \r\n <p class=\"text-muted\">\r\n Your email is not verified yet. Please check your inbox and click the verification link.\r\n <br><br>\r\n If you didn\u2019t receive the email, click the button below to resend the verification link.\r\n </p>\r\n \r\n <button class=\"btn btn-warning w-100 mt-3\" (click)=\"resendVerification()\" [disabled]=\"loading || cooldown > 0\">\r\n \r\n <!-- Normal -->\r\n <span *ngIf=\"!loading && cooldown === 0\">\r\n Resend Verification Email\r\n </span>\r\n \r\n <!-- Loading -->\r\n <span *ngIf=\"loading\">\r\n Sending...\r\n </span>\r\n \r\n <!-- Cooldown -->\r\n <span *ngIf=\"cooldown > 0 && !loading\">\r\n Retry in {{ cooldown }}s\r\n </span>\r\n \r\n </button>\r\n \r\n <div *ngIf=\"successMessage\" class=\"mt-3 text-success\">\r\n \u2705 Verification email sent! Please check your inbox.\r\n </div>\r\n \r\n <div *ngIf=\"errorMessage\" class=\"mt-3 text-danger\">\r\n \u274C Failed to resend email. Try again.\r\n </div>\r\n \r\n <!-- Optional logout -->\r\n <button class=\"btn btn-link mt-3\" (click)=\"logout()\">\r\n Logout\r\n </button>\r\n \r\n </div>\r\n</div>\r\n}\r\n " }]
30659
+ args: [{ selector: 'app-verify-email', standalone: true, imports: [CommonModule, FormsModule, ReactiveFormsModule, LoaderModule], template: "@if(pageLoader){\r\n<div class=\"align-content-center text-center\" style=\"height: 100vh;\">\r\n <loader [show]=\"true\"></loader>\r\n <div class=\"fs-5 fw-bolder\">Loading... Please wait !</div>\r\n</div>\r\n}@else{\r\n<div class=\"container d-flex justify-content-center align-items-center vh-100\">\r\n <div class=\"card shadow p-4 text-center\" style=\"max-width: 420px; width: 100%;\">\r\n \r\n <div class=\"icon mb-3 text-warning\" style=\"font-size: 60px;\">\r\n \u26A0\r\n </div>\r\n \r\n <h4 class=\"mb-3\">Email Verification</h4>\r\n \r\n <p class=\"text-muted\">\r\n Please check your inbox and click the verification link.\r\n <br><br>\r\n If you didn\u2019t receive the email, click the button below to resend the verification link.\r\n </p>\r\n \r\n <button class=\"btn btn-warning w-100 mt-3\" (click)=\"resendVerification()\" [disabled]=\"loading || cooldown > 0\">\r\n \r\n <!-- Normal -->\r\n <span *ngIf=\"!loading && cooldown === 0\">\r\n Resend Verification Email\r\n </span>\r\n \r\n <!-- Loading -->\r\n <span *ngIf=\"loading\">\r\n Sending...\r\n </span>\r\n \r\n <!-- Cooldown -->\r\n <span *ngIf=\"cooldown > 0 && !loading\">\r\n Retry in {{ cooldown }}s\r\n </span>\r\n \r\n </button>\r\n \r\n <div *ngIf=\"successMessage\" class=\"mt-3 text-success\">\r\n \u2705 Verification email sent! Please check your inbox.\r\n </div>\r\n \r\n <div *ngIf=\"errorMessage\" class=\"mt-3 text-danger\">\r\n \u274C Failed to resend email. Try again.\r\n </div>\r\n \r\n <!-- Optional logout -->\r\n <button class=\"btn btn-link mt-3\" (click)=\"logout()\">\r\n Logout\r\n </button>\r\n \r\n </div>\r\n</div>\r\n}\r\n " }]
30659
30660
  }], ctorParameters: () => [{ type: undefined, decorators: [{
30660
30661
  type: Inject,
30661
30662
  args: [LIBRARY_CONFIG]