taxtank-core 0.31.31 → 0.31.32
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/forms/address/address.form.mjs +4 -2
- package/esm2020/lib/validators/address-corelogic.validator.mjs +5 -4
- package/fesm2015/taxtank-core.mjs +7 -4
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +7 -4
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -20387,9 +20387,10 @@ function addressCorelogicValidator() {
|
|
|
20387
20387
|
if (locIdControl.enabled && locIdControl.hasError('required')) {
|
|
20388
20388
|
return { address: 'City, state or postal code not specified' };
|
|
20389
20389
|
}
|
|
20390
|
-
|
|
20391
|
-
|
|
20392
|
-
}
|
|
20390
|
+
// @TODO Artem why?
|
|
20391
|
+
// if (refIdControl.enabled && refIdControl.hasError('required')) {
|
|
20392
|
+
// return { address: 'Street number not specified' };
|
|
20393
|
+
// }
|
|
20393
20394
|
return null;
|
|
20394
20395
|
};
|
|
20395
20396
|
}
|
|
@@ -20408,7 +20409,9 @@ class AddressForm extends AbstractForm {
|
|
|
20408
20409
|
type: new UntypedFormControl(address?.type || AddressTypeEnum.STREET, Validators.required),
|
|
20409
20410
|
// corelogic fields (required for Australia and disabled for other countries)
|
|
20410
20411
|
corelogicLocId: new UntypedFormControl({ value: address?.corelogicLocId, disabled: true }, Validators.required),
|
|
20411
|
-
corelogicRefId: new UntypedFormControl({ value: address?.corelogicRefId, disabled: true }
|
|
20412
|
+
corelogicRefId: new UntypedFormControl({ value: address?.corelogicRefId, disabled: true }),
|
|
20413
|
+
// @TODO Artem why?
|
|
20414
|
+
// corelogicRefId: new UntypedFormControl({value: address?.corelogicRefId, disabled: true}, Validators.required),
|
|
20412
20415
|
// manual fields (using when address not found in corelogic)
|
|
20413
20416
|
unitNumber: new UntypedFormControl({ value: address?.unitNumber, disabled: true }),
|
|
20414
20417
|
address: new UntypedFormControl({ value: address?.address, disabled: true }, Validators.required),
|