@hmcts/rpx-xui-common-lib 1.9.0-address-non-postcode → 1.9.0-address-non-postcode-2
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/bundles/hmcts-rpx-xui-common-lib.umd.js +2 -8
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/components/write-address/write-address.component.js +2 -3
- package/esm2015/lib/components/write-address-inputs/write-address-inputs.component.js +2 -7
- package/fesm2015/hmcts-rpx-xui-common-lib.js +2 -8
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/lib/components/write-address/write-address.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4850,6 +4850,7 @@
|
|
|
4850
4850
|
|
|
4851
4851
|
var WriteAddressFieldComponent = /** @class */ (function () {
|
|
4852
4852
|
function WriteAddressFieldComponent(addressesService) {
|
|
4853
|
+
this.addressesService = addressesService;
|
|
4853
4854
|
this.internationalMode = false;
|
|
4854
4855
|
this.submissionAttempted = false;
|
|
4855
4856
|
this.postcodeOptionSelected = new i0.EventEmitter();
|
|
@@ -4868,7 +4869,6 @@
|
|
|
4868
4869
|
this.addressChosen = false;
|
|
4869
4870
|
this.missingPostcode = false;
|
|
4870
4871
|
this.optionErrorMessage = exports.AddressMessageEnum.NO_OPTION_SELECTED;
|
|
4871
|
-
this.addressesService = addressesService;
|
|
4872
4872
|
}
|
|
4873
4873
|
WriteAddressFieldComponent.prototype.ngOnInit = function () {
|
|
4874
4874
|
if (!this.formGroup.get('address')) {
|
|
@@ -4903,7 +4903,6 @@
|
|
|
4903
4903
|
_this.addressOptions.unshift(new AddressOption(undefined, _this.defaultLabel(_this.addressOptions.length)));
|
|
4904
4904
|
});
|
|
4905
4905
|
this.addressFormGroup.get('addressList').setValue(undefined);
|
|
4906
|
-
// this.refocusElement();
|
|
4907
4906
|
}
|
|
4908
4907
|
};
|
|
4909
4908
|
WriteAddressFieldComponent.prototype.blankAddress = function () {
|
|
@@ -5000,12 +4999,7 @@
|
|
|
5000
4999
|
WriteAddressInputsComponent.prototype.ngOnChanges = function () {
|
|
5001
5000
|
var addressGroup = this.formGroup.get('address');
|
|
5002
5001
|
// if there is an issue with the formgroup, ensure error styling is displayed
|
|
5003
|
-
|
|
5004
|
-
this.errorsPresent = false;
|
|
5005
|
-
}
|
|
5006
|
-
else {
|
|
5007
|
-
this.errorsPresent = true;
|
|
5008
|
-
}
|
|
5002
|
+
this.errorsPresent = !addressGroup.valid;
|
|
5009
5003
|
};
|
|
5010
5004
|
return WriteAddressInputsComponent;
|
|
5011
5005
|
}());
|