@hmcts/ccpay-web-component 5.0.2-beta98 → 5.0.2-beta99
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-ccpay-web-component.umd.js +6 -3
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/contact-details/contact-details.component.js +7 -4
- package/esm5/lib/components/contact-details/contact-details.component.js +7 -4
- package/fesm2015/hmcts-ccpay-web-component.js +6 -3
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +6 -3
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -3067,7 +3067,7 @@ var ContactDetailsComponent = /** @class */ (function () {
|
|
|
3067
3067
|
this.postCodeForm = this.formBuilder.group({
|
|
3068
3068
|
postcode: new FormControl('', Validators.compose([
|
|
3069
3069
|
Validators.required,
|
|
3070
|
-
Validators.pattern('^([A-
|
|
3070
|
+
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3071
3071
|
]))
|
|
3072
3072
|
});
|
|
3073
3073
|
this.manualAddressForm = this.formBuilder.group({
|
|
@@ -3087,7 +3087,7 @@ var ContactDetailsComponent = /** @class */ (function () {
|
|
|
3087
3087
|
])),
|
|
3088
3088
|
mpostcode: new FormControl('', Validators.compose([
|
|
3089
3089
|
Validators.required,
|
|
3090
|
-
Validators.pattern('^([A-
|
|
3090
|
+
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3091
3091
|
])),
|
|
3092
3092
|
country: new FormControl('', Validators.compose([
|
|
3093
3093
|
Validators.required
|
|
@@ -3271,7 +3271,10 @@ var ContactDetailsComponent = /** @class */ (function () {
|
|
|
3271
3271
|
*/
|
|
3272
3272
|
function (refundsNotification) {
|
|
3273
3273
|
_this.addressPostcodeList = refundsNotification['data']['results'];
|
|
3274
|
-
_this.isShowPickAddress = refundsNotification['data']['
|
|
3274
|
+
_this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
3275
|
+
if (!_this.isShowPickAddress) {
|
|
3276
|
+
_this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3277
|
+
}
|
|
3275
3278
|
})),
|
|
3276
3279
|
(/**
|
|
3277
3280
|
* @param {?} error
|