@ksremp/ngx-ksremp-app-lib 1.0.6 → 1.0.7

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.
Files changed (75) hide show
  1. package/esm2022/lib/annimations/app-animations.mjs +1 -1
  2. package/esm2022/lib/components/captcha/captcha.component.mjs +6 -6
  3. package/esm2022/lib/components/card/card.component.mjs +1 -1
  4. package/esm2022/lib/components/content/content.component.mjs +1 -1
  5. package/esm2022/lib/components/correspondence-download/correspondence-download.component.mjs +65 -20
  6. package/esm2022/lib/components/error/error.component.mjs +1 -1
  7. package/esm2022/lib/components/file-download/file-download.component.mjs +1 -1
  8. package/esm2022/lib/components/file-uploader/file-uploader.component.mjs +1 -1
  9. package/esm2022/lib/components/help/help.component.mjs +1 -1
  10. package/esm2022/lib/components/idle-detector/idle-detector.component.mjs +1 -1
  11. package/esm2022/lib/components/info/info.component.mjs +1 -1
  12. package/esm2022/lib/components/maintenance-detector/maintenance-detector.component.mjs +1 -1
  13. package/esm2022/lib/components/mask/mask.component.mjs +1 -1
  14. package/esm2022/lib/components/money-expect/money-expect.component.mjs +1 -1
  15. package/esm2022/lib/components/msg/msg.component.mjs +1 -1
  16. package/esm2022/lib/components/news/news.component.mjs +1 -1
  17. package/esm2022/lib/components/overlay-info/overlay-info.component.mjs +1 -1
  18. package/esm2022/lib/components/page/page.component.mjs +1 -1
  19. package/esm2022/lib/components/questionnaire/FbConstants.mjs +1 -1
  20. package/esm2022/lib/components/questionnaire/dynamic-form.component.mjs +94 -1
  21. package/esm2022/lib/components/questionnaire/question-base.mjs +1 -1
  22. package/esm2022/lib/components/questionnaire/question.service.mjs +1 -1
  23. package/esm2022/lib/components/read-more/read-more.component.mjs +6 -6
  24. package/esm2022/lib/components/select/select.component.mjs +1 -1
  25. package/esm2022/lib/components/ssn/ssn.component.mjs +1 -1
  26. package/esm2022/lib/components/test/test.component.mjs +1 -1
  27. package/esm2022/lib/directives/auto-focus/auto-focus.directive.mjs +1 -1
  28. package/esm2022/lib/directives/caps-lock.directive.mjs +1 -1
  29. package/esm2022/lib/directives/required-roles/required-roles.directive.mjs +1 -1
  30. package/esm2022/lib/enums/EmailStatusEnum.mjs +1 -1
  31. package/esm2022/lib/interceptors/error-interceptor/http-error-interceptor.mjs +1 -1
  32. package/esm2022/lib/models/ErrorModel.mjs +1 -1
  33. package/esm2022/lib/models/FileModel.mjs +1 -1
  34. package/esm2022/lib/models/NotificationModel.mjs +1 -1
  35. package/esm2022/lib/models/TrendModel.mjs +1 -1
  36. package/esm2022/lib/models/UserDetailsModel.mjs +1 -1
  37. package/esm2022/lib/models/claimant/ClaimantModel.mjs +1 -1
  38. package/esm2022/lib/models/claimant/JobResultsData.mjs +1 -1
  39. package/esm2022/lib/models/claimant/MatchingJobs.mjs +1 -1
  40. package/esm2022/lib/models/claimant/ResetPasswordModel.mjs +1 -1
  41. package/esm2022/lib/models/questionnaire/KeyValueModel.mjs +1 -1
  42. package/esm2022/lib/ngx-reusa-app-lib.component.mjs +5 -5
  43. package/esm2022/lib/ngx-reusa-app-lib.service.mjs +1 -1
  44. package/esm2022/lib/pages/common/accessibility-policy/accessibility-policy.page.mjs +1 -1
  45. package/esm2022/lib/pages/common/change-password/change-password.page.mjs +1 -1
  46. package/esm2022/lib/pages/common/landing2/landing2.component.mjs +1 -1
  47. package/esm2022/lib/pages/common/not-found/not-found.page.mjs +1 -1
  48. package/esm2022/lib/pages/common/privacy-disclaimer/privacy-disclaimer.page.mjs +1 -1
  49. package/esm2022/lib/pages/common/security-policy/security-policy.page.mjs +1 -1
  50. package/esm2022/lib/pages/common/unauthorized/unauthorized.page.mjs +1 -1
  51. package/esm2022/lib/pages/popovers/my-notifications/my-notifications.page.mjs +1 -1
  52. package/esm2022/lib/pages/popovers/my-profile/my-profile.page.mjs +1 -1
  53. package/esm2022/lib/pages/popovers/user-search/user-search.component.mjs +1 -1
  54. package/esm2022/lib/pipes/filter.pipe.mjs +1 -1
  55. package/esm2022/lib/pipes/mask/mask.email.pipe.mjs +1 -1
  56. package/esm2022/lib/pipes/proper-case/proper-case.pipe.mjs +1 -1
  57. package/esm2022/lib/pipes/trust-html/trust-html.pipe.mjs +1 -1
  58. package/esm2022/lib/services/base-service.mjs +1 -1
  59. package/esm2022/lib/services/captcha/captcha.service.mjs +1 -1
  60. package/esm2022/lib/services/chatbot/script.const.mjs +1 -1
  61. package/esm2022/lib/services/claimant/claimant.service.mjs +1 -1
  62. package/esm2022/lib/services/dms-service/dms.service.mjs +1 -1
  63. package/esm2022/lib/services/fpjs/fingerprint.service.mjs +1 -1
  64. package/esm2022/lib/services/google-analytics/google-analytics.service.mjs +1 -1
  65. package/esm2022/lib/services/idle/idle.service.mjs +1 -1
  66. package/esm2022/lib/services/maintenance/maintenance.service.mjs +1 -1
  67. package/esm2022/lib/services/notification/notification.service.mjs +1 -1
  68. package/esm2022/lib/services/tour/tour.service.mjs +1 -1
  69. package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs +171 -33
  70. package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs.map +1 -1
  71. package/lib/components/correspondence-download/correspondence-download.component.d.ts.map +1 -1
  72. package/lib/components/questionnaire/dynamic-form-question.component.d.ts +1 -1
  73. package/lib/components/questionnaire/dynamic-form.component.d.ts +7 -0
  74. package/lib/components/questionnaire/dynamic-form.component.d.ts.map +1 -1
  75. package/package.json +2 -2
@@ -156,10 +156,10 @@ class NgxReusaAppLibComponent {
156
156
  }
157
157
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgxReusaAppLibComponent, [{
158
158
  type: Component,
159
- args: [{ selector: 'app-ngx-reusa-app-lib', template: `
160
- <p>
161
- ngx-reusa-app-lib works!
162
- </p>
159
+ args: [{ selector: 'app-ngx-reusa-app-lib', template: `
160
+ <p>
161
+ ngx-reusa-app-lib works!
162
+ </p>
163
163
  ` }]
164
164
  }], () => [], null); })();
165
165
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NgxReusaAppLibComponent, { className: "NgxReusaAppLibComponent", filePath: "lib\\ngx-reusa-app-lib.component.ts", lineNumber: 13 }); })();
@@ -9293,27 +9293,72 @@ class CorrespondenceDownloadComponent {
9293
9293
  const mimeType = `${res['mimeType']}`;
9294
9294
  const fileName = res['fileName'];
9295
9295
  const isCapacitor = this.platform.is('capacitor');
9296
+ // if(isCapacitor){
9297
+ // await Filesystem.writeFile({
9298
+ // path: fileName,
9299
+ // data: base64,
9300
+ // directory: this.platform.is("ios") ? Directory.Documents : Directory.Data
9301
+ // });
9302
+ // // Get the proper URI for opening
9303
+ // const fileUriResult = await Filesystem.getUri({
9304
+ // directory: this.platform.is("ios") ? Directory.Documents : Directory.Data,
9305
+ // path: fileName
9306
+ // });
9307
+ // let fileOptions: FileOpenerOptions = {filePath: fileUriResult.uri};
9308
+ // FileOpener.open(fileOptions)
9309
+ // .then(res => {
9310
+ // console.error("opening file", res);
9311
+ // this.util.hideLoader()
9312
+ // }).catch(err => {
9313
+ // console.error("Error opening file", err) ;
9314
+ // this.log.log('Error opening file', err);
9315
+ // this.util.hideLoader();
9316
+ // });
9317
+ // }
9296
9318
  if (isCapacitor) {
9297
- await Filesystem.writeFile({
9298
- path: fileName,
9299
- data: base64,
9300
- directory: this.platform.is("ios") ? Directory.Documents : Directory.Data
9301
- });
9302
- // Get the proper URI for opening
9303
- const fileUriResult = await Filesystem.getUri({
9304
- directory: this.platform.is("ios") ? Directory.Documents : Directory.Data,
9305
- path: fileName
9306
- });
9307
- let fileOptions = { filePath: fileUriResult.uri };
9308
- FileOpener.open(fileOptions)
9309
- .then(res => {
9310
- console.error("opening file", res);
9311
- this.util.hideLoader();
9312
- }).catch(err => {
9313
- console.error("Error opening file", err);
9314
- this.log.log('Error opening file', err);
9319
+ const isIOS = this.platform.is('ios');
9320
+ const directory = isIOS ? Directory.Cache : Directory.Data;
9321
+ this.log.log('[IOS-DOWNLOAD] Target directory: ' + directory);
9322
+ this.log.log('[IOS-DOWNLOAD] File name: ' + fileName);
9323
+ try {
9324
+ // Step 1: Write file
9325
+ this.log.log('[IOS-DOWNLOAD] Writing file...');
9326
+ await Filesystem.writeFile({
9327
+ path: fileName,
9328
+ data: base64,
9329
+ directory: directory
9330
+ });
9331
+ this.log.log('[IOS-DOWNLOAD] File write successful');
9332
+ // Step 2: Get file URI
9333
+ this.log.log('[IOS-DOWNLOAD] Getting file URI...');
9334
+ const fileUriResult = await Filesystem.getUri({
9335
+ directory: directory,
9336
+ path: fileName
9337
+ });
9338
+ this.log.log('[IOS-DOWNLOAD] File URI obtained: ' + JSON.stringify(fileUriResult));
9339
+ // Step 3: Adjust path for iOS
9340
+ let filePath = fileUriResult.uri;
9341
+ if (isIOS) {
9342
+ filePath = filePath.replace('capacitor://localhost', 'file://');
9343
+ }
9344
+ this.log.log('[IOS-DOWNLOAD] Adjusted file path: ' + filePath);
9345
+ // Step 4: Open file
9346
+ const fileOptions = { filePath, contentType: mimeType };
9347
+ this.log.log('[IOS-DOWNLOAD] Attempting to open file with FileOpener...');
9348
+ FileOpener.open(fileOptions)
9349
+ .then(res => {
9350
+ this.log.log('[IOS-DOWNLOAD] File opened successfully: ' + JSON.stringify(res));
9351
+ this.util.hideLoader();
9352
+ })
9353
+ .catch(err => {
9354
+ this.log.log('[IOS-DOWNLOAD] Error opening file: ' + JSON.stringify(err));
9355
+ this.util.hideLoader();
9356
+ });
9357
+ }
9358
+ catch (err) {
9359
+ this.log.log('[IOS-DOWNLOAD] ERROR during file write or URI retrieval: ' + JSON.stringify(err));
9315
9360
  this.util.hideLoader();
9316
- });
9361
+ }
9317
9362
  }
9318
9363
  else {
9319
9364
  const linkSource = `data:${mimeType};base64,${base64}`;
@@ -9766,11 +9811,11 @@ class CaptchaComponent {
9766
9811
  }
9767
9812
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaptchaComponent, [{
9768
9813
  type: Component,
9769
- args: [{ selector: 'app-captcha', template: `<div class="app-captcha"></div>
9770
- <p style="color: var(--ion-color-danger);" *ngIf="showError" class="ion-padding-top">
9771
- <small>
9772
- Error loading captcha. <a href="#" (click)="loadCaptcha()">Reload</a>
9773
- </small>
9814
+ args: [{ selector: 'app-captcha', template: `<div class="app-captcha"></div>
9815
+ <p style="color: var(--ion-color-danger);" *ngIf="showError" class="ion-padding-top">
9816
+ <small>
9817
+ Error loading captcha. <a href="#" (click)="loadCaptcha()">Reload</a>
9818
+ </small>
9774
9819
  </p>`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{
9775
9820
  provide: NG_VALUE_ACCESSOR,
9776
9821
  useExisting: CaptchaComponent,
@@ -28049,6 +28094,11 @@ class DynamicFormComponent extends BasePage {
28049
28094
  this.routingNumberflag = true;
28050
28095
  this.accountNumberflg = true;
28051
28096
  this.reEnterAccountNumberflag = true;
28097
+ this.resZipcodeValidationflag = true;
28098
+ this.resZipcode = "";
28099
+ this.resCountry = "";
28100
+ this.mailZipcode = "";
28101
+ this.mailContry = "";
28052
28102
  this.storage.create().then(() => {
28053
28103
  console.log("Storage DB created successfully.");
28054
28104
  });
@@ -28653,6 +28703,25 @@ class DynamicFormComponent extends BasePage {
28653
28703
  const firstName = formGroup.getRawValue() && formGroup.getRawValue().firstName ? (formGroup.getRawValue().firstName).toLowerCase() : "";
28654
28704
  const lastName = formGroup.getRawValue() && formGroup.getRawValue().lastName ? (formGroup.getRawValue().lastName).toLowerCase() : "";
28655
28705
  const userId = formGroup.getRawValue() && formGroup.getRawValue().username ? (formGroup.getRawValue().username).toLowerCase() : "";
28706
+ //PGLP-4218
28707
+ if (formGroup.controls.resAddress != undefined) {
28708
+ this.resZipcode = formGroup.controls.resAddress && formGroup.controls.resAddress.value.zip ? (formGroup.controls.resAddress.value.zip) : formGroup.controls.resAddress.value.zip ? (formGroup.controls.resAddress.value.zip) : "";
28709
+ this.resCountry = formGroup.controls.resAddress && formGroup.controls.resAddress.value.country ? (formGroup.controls.resAddress.value.country) : formGroup.controls.resAddress.value.country ? (formGroup.controls.resAddress.value.country) : "";
28710
+ }
28711
+ //PGLP-4218
28712
+ if (this.resZipcode === "") {
28713
+ this.resZipcodeValidationflag = true;
28714
+ }
28715
+ else if (this.resCountry === "" || this.resCountry === "CA") {
28716
+ this.resZipcodeValidationflag = true;
28717
+ }
28718
+ else {
28719
+ this.resZipcodeValidationflag = true;
28720
+ this.resZipcodeValidationflag = this.isValidZipCode(this.resZipcode);
28721
+ }
28722
+ if (!this.resZipcodeValidationflag) {
28723
+ return;
28724
+ }
28656
28725
  if (password === "" && firstName === "" && lastName === "" && userId === "") {
28657
28726
  // PGLP-1750 in correct Routing NUmber
28658
28727
  if (formGroup.controls.paymethod == undefined && formGroup.controls.payMethod == undefined) {
@@ -28898,6 +28967,75 @@ class DynamicFormComponent extends BasePage {
28898
28967
  return true;
28899
28968
  }
28900
28969
  }
28970
+ isNumber(zipcode) {
28971
+ var reg = new RegExp("^[0-9]*$");
28972
+ return reg.test(zipcode);
28973
+ }
28974
+ isValidZipCode(zipcode) {
28975
+ if (zipcode != null && !this.isNumber(zipcode)) {
28976
+ if (localStorage.getItem("language") === "es") {
28977
+ const ZipCodeError = {
28978
+ "errorId": "",
28979
+ "timestamp": "",
28980
+ "msg": [
28981
+ "[El código postal debe contener solo números \t\t.\t\t]"
28982
+ ],
28983
+ "details": "uri=/questionnaire-service/questionnaire/screen-questionnaire",
28984
+ "error": null,
28985
+ "errorCode": "422"
28986
+ };
28987
+ this.onError.emit(ZipCodeError);
28988
+ return false;
28989
+ }
28990
+ else {
28991
+ const ZipCodeError = {
28992
+ "errorId": "",
28993
+ "timestamp": "",
28994
+ "msg": [
28995
+ "[Zip code should only have numbers \t\t.\t\t]"
28996
+ ],
28997
+ "details": "uri=/questionnaire-service/questionnaire/screen-questionnaire",
28998
+ "error": null,
28999
+ "errorCode": "422"
29000
+ };
29001
+ this.onError.emit(ZipCodeError);
29002
+ return false;
29003
+ }
29004
+ }
29005
+ else if (zipcode != null && (zipcode.length == 5 || zipcode.length == 9)) {
29006
+ return true;
29007
+ }
29008
+ else {
29009
+ if (localStorage.getItem("language") === "es") {
29010
+ const ZipCodeError = {
29011
+ "errorId": "",
29012
+ "timestamp": "",
29013
+ "msg": [
29014
+ "[El código postal debe ser de 5 o 9 dígitos \t\t.\t\t]"
29015
+ ],
29016
+ "details": "uri=/questionnaire-service/questionnaire/screen-questionnaire",
29017
+ "error": null,
29018
+ "errorCode": "422"
29019
+ };
29020
+ this.onError.emit(ZipCodeError);
29021
+ return false;
29022
+ }
29023
+ else {
29024
+ const ZipCodeError = {
29025
+ "errorId": "",
29026
+ "timestamp": "",
29027
+ "msg": [
29028
+ "[Zip code should be of 5 or 9 digits \t\t.\t\t]"
29029
+ ],
29030
+ "details": "uri=/questionnaire-service/questionnaire/screen-questionnaire",
29031
+ "error": null,
29032
+ "errorCode": "422"
29033
+ };
29034
+ this.onError.emit(ZipCodeError);
29035
+ return false;
29036
+ }
29037
+ }
29038
+ }
28901
29039
  isPasswordValid(firstName, lastName, userId, password) {
28902
29040
  const escapeRegExp = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
28903
29041
  const firstNameRegex = new RegExp(escapeRegExp(firstName), 'i');
@@ -32997,11 +33135,11 @@ class ReadMoreComponent {
32997
33135
  }
32998
33136
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadMoreComponent, [{
32999
33137
  type: Component,
33000
- args: [{ selector: 'app-read-more', template: `
33001
- <span [innerHtml]="value | trustHtml">
33002
- </span>
33003
- <a (click)="readMore(false)" class="link" *ngIf="!isCollapsed && !hideReadMore">...read more</a>
33004
- <a (click)="readMore(true)" class="link" *ngIf="isCollapsed && !hideReadMore">...read less</a>
33138
+ args: [{ selector: 'app-read-more', template: `
33139
+ <span [innerHtml]="value | trustHtml">
33140
+ </span>
33141
+ <a (click)="readMore(false)" class="link" *ngIf="!isCollapsed && !hideReadMore">...read more</a>
33142
+ <a (click)="readMore(true)" class="link" *ngIf="isCollapsed && !hideReadMore">...read less</a>
33005
33143
  `, styles: ["div.collapsed{height:250px;overflow:hidden}\n"] }]
33006
33144
  }], () => [], { isCollapsed: [{
33007
33145
  type: Input