@csmart/ngc-smart-victim 1.14.8 → 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.
- package/esm2020/lib/shared/directives/phone-mask.directive.mjs +3 -1
- package/esm2020/lib/smart-victim-detail/smart-victim-detail.component.mjs +5 -3
- package/fesm2015/csmart-ngc-smart-victim.mjs +6 -2
- package/fesm2015/csmart-ngc-smart-victim.mjs.map +1 -1
- package/fesm2020/csmart-ngc-smart-victim.mjs +6 -2
- package/fesm2020/csmart-ngc-smart-victim.mjs.map +1 -1
- package/package.json +1 -1
@@ -675,6 +675,8 @@ class PhoneMaskDirective {
|
|
675
675
|
newVal = newVal.replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/, '($1) $2-$3');
|
676
676
|
}
|
677
677
|
this.ngControl.valueAccessor.writeValue(newVal);
|
678
|
+
console.log('newVal');
|
679
|
+
console.log(newVal);
|
678
680
|
}
|
679
681
|
}
|
680
682
|
}
|
@@ -961,7 +963,6 @@ class SmartVictimDetailComponent {
|
|
961
963
|
this.victimForm.reset();
|
962
964
|
}
|
963
965
|
ngOnInit() {
|
964
|
-
console.log('on init 11/8/23');
|
965
966
|
console.log('show offenderId');
|
966
967
|
console.log(this.offenderId);
|
967
968
|
console.log('show staffId');
|
@@ -1219,7 +1220,6 @@ class SmartVictimDetailComponent {
|
|
1219
1220
|
}
|
1220
1221
|
//#region "save victim"
|
1221
1222
|
saveVictim() {
|
1222
|
-
console.log('save vitem 11/7/23');
|
1223
1223
|
//guardian phone logic
|
1224
1224
|
if (!this.victimForm.value.guardianNoPhoneFlag) {
|
1225
1225
|
if (this.victimForm.value.guardianHomePhone) {
|
@@ -1296,9 +1296,13 @@ class SmartVictimDetailComponent {
|
|
1296
1296
|
}
|
1297
1297
|
if (this.victimForm.value.homePhone) {
|
1298
1298
|
this.victimForm.value.homePhone = this.victimForm.value.homePhone.replace(/[()\s-]/g, '');
|
1299
|
+
console.log('this.victimForm.value.homePhone 1');
|
1300
|
+
console.log(this.victimForm.value.homePhone);
|
1299
1301
|
}
|
1300
1302
|
else {
|
1301
1303
|
this.victimForm.value.homePhone = null;
|
1304
|
+
console.log('this.victimForm.value.homePhone 2');
|
1305
|
+
console.log(this.victimForm.value.homePhone);
|
1302
1306
|
}
|
1303
1307
|
if (this.victimForm.value.workPhone) {
|
1304
1308
|
this.victimForm.value.workPhone = this.victimForm.value.workPhone.replace(/[()\s-]/g, '');
|