@csmart/ngc-smart-victim 1.14.9 → 1.14.10-ng

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.
@@ -658,44 +658,28 @@ class PhoneMaskDirective {
658
658
  }
659
659
  onInputChange(event, backspace) {
660
660
  if (event) {
661
- console.log('appPhoneMask');
662
- console.log(event);
663
661
  let newVal = event.replace(/\D/g, '');
664
- console.log('newVal');
665
- console.log(newVal);
666
662
  if (backspace && newVal.length <= 6) {
667
663
  newVal = newVal.substring(0, newVal.length - 1);
668
- console.log('newVal 1');
669
- console.log(newVal);
670
664
  }
671
665
  if (newVal.length === 0) {
672
666
  newVal = '';
673
- console.log('newVal 2');
674
- console.log(newVal);
675
667
  }
676
668
  else if (newVal.length <= 3) {
677
669
  newVal = newVal.replace(/^(\d{0,3})/, '($1)');
678
- console.log('newVal 3');
679
- console.log(newVal);
680
670
  }
681
671
  else if (newVal.length <= 6) {
682
672
  newVal = newVal.replace(/^(\d{0,3})(\d{0,3})/, '($1) $2');
683
- console.log('newVal 4');
684
- console.log(newVal);
685
673
  }
686
674
  else if (newVal.length <= 10) {
687
675
  newVal = newVal.replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/, '($1) $2-$3');
688
- console.log('newVal 5');
689
- console.log(newVal);
690
676
  }
691
677
  else {
692
678
  newVal = newVal.substring(0, 10);
693
679
  newVal = newVal.replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/, '($1) $2-$3');
694
- console.log('newVal 6');
695
- console.log(newVal);
696
680
  }
697
681
  this.ngControl.valueAccessor.writeValue(newVal);
698
- console.log('newVal 7');
682
+ console.log('newVal');
699
683
  console.log(newVal);
700
684
  }
701
685
  }
@@ -983,7 +967,6 @@ class SmartVictimDetailComponent {
983
967
  this.victimForm.reset();
984
968
  }
985
969
  ngOnInit() {
986
- console.log('on init 11/8/23');
987
970
  console.log('show offenderId');
988
971
  console.log(this.offenderId);
989
972
  console.log('show staffId');
@@ -1241,7 +1224,6 @@ class SmartVictimDetailComponent {
1241
1224
  }
1242
1225
  //#region "save victim"
1243
1226
  saveVictim() {
1244
- console.log('save vitem 11/7/23');
1245
1227
  //guardian phone logic
1246
1228
  if (!this.victimForm.value.guardianNoPhoneFlag) {
1247
1229
  if (this.victimForm.value.guardianHomePhone) {
@@ -1318,9 +1300,13 @@ class SmartVictimDetailComponent {
1318
1300
  }
1319
1301
  if (this.victimForm.value.homePhone) {
1320
1302
  this.victimForm.value.homePhone = this.victimForm.value.homePhone.replace(/[()\s-]/g, '');
1303
+ console.log('this.victimForm.value.homePhone 1');
1304
+ console.log(this.victimForm.value.homePhone);
1321
1305
  }
1322
1306
  else {
1323
1307
  this.victimForm.value.homePhone = null;
1308
+ console.log('this.victimForm.value.homePhone 2');
1309
+ console.log(this.victimForm.value.homePhone);
1324
1310
  }
1325
1311
  if (this.victimForm.value.workPhone) {
1326
1312
  this.victimForm.value.workPhone = this.victimForm.value.workPhone.replace(/[()\s-]/g, '');