@csmart/ngc-smart-victim 1.14.12 → 1.14.14
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 +4 -1
- package/esm2020/lib/smart-victim-detail/smart-victim-detail.component.mjs +2 -1
- package/esm2020/lib/smart-victim.model.mjs +1 -1
- package/fesm2015/csmart-ngc-smart-victim.mjs +4 -0
- package/fesm2015/csmart-ngc-smart-victim.mjs.map +1 -1
- package/fesm2020/csmart-ngc-smart-victim.mjs +4 -0
- package/fesm2020/csmart-ngc-smart-victim.mjs.map +1 -1
- package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +2 -1
- package/lib/smart-victim.model.d.ts +4 -4
- package/package.json +1 -1
|
@@ -674,6 +674,9 @@ class PhoneMaskDirective {
|
|
|
674
674
|
newVal = newVal.substring(0, 10);
|
|
675
675
|
newVal = newVal.replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/, '($1) $2-$3');
|
|
676
676
|
}
|
|
677
|
+
if (!newVal) {
|
|
678
|
+
newVal = null;
|
|
679
|
+
}
|
|
677
680
|
this.ngControl.valueAccessor.writeValue(newVal);
|
|
678
681
|
console.log('newVal');
|
|
679
682
|
console.log(newVal);
|
|
@@ -776,6 +779,7 @@ class SmartVictimDetailComponent {
|
|
|
776
779
|
zipCode: [],
|
|
777
780
|
psaCode: [],
|
|
778
781
|
};
|
|
782
|
+
this.homePhoneControl = new UntypedFormControl();
|
|
779
783
|
this.initForm();
|
|
780
784
|
}
|
|
781
785
|
initForm() {
|