@bpost/bp-address-auto-complete-by-component 1.1.14 → 1.1.15
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/VERSION.md +3 -0
- package/esm2020/lib/box-number/box-number.component.mjs +4 -1
- package/esm2020/lib/lib-address-autocomplete-by-component.component.mjs +2 -1
- package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs +4 -0
- package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs.map +1 -1
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs +4 -0
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3769,6 +3769,9 @@ class BoxNumberComponent {
|
|
|
3769
3769
|
if (!this.validatedByBackend) {
|
|
3770
3770
|
return (this.isValid(this.postalCode) || this.isValid(this.locality)) && this.isValid(this.streetName) && this.isValid(this.streetNumber);
|
|
3771
3771
|
}
|
|
3772
|
+
else if (this.suggestionLevel === SuggestionLevelType.None && this.prefillData) {
|
|
3773
|
+
return this.isValid(this.postalCode) && this.isValid(this.locality) && this.isValid(this.streetName) && this.isValid(this.streetNumber) && this.prefillData.parameters.boxNumber !== '';
|
|
3774
|
+
}
|
|
3772
3775
|
else {
|
|
3773
3776
|
return this.isValid(this.postalCode) && this.isValid(this.locality) && this.isValid(this.streetName) && this.isValid(this.streetNumber);
|
|
3774
3777
|
}
|
|
@@ -5339,6 +5342,7 @@ class LibAddressAutocompleteByComponentComponent {
|
|
|
5339
5342
|
}
|
|
5340
5343
|
this.streetNumberAddress = this.streetAddress;
|
|
5341
5344
|
this.selectedAddress = this.streetAddress;
|
|
5345
|
+
this.selectedAddress.houseNumber = streetNumber;
|
|
5342
5346
|
this.selectedAddress.streetNumber = streetNumber;
|
|
5343
5347
|
/*
|
|
5344
5348
|
this.streetNumber = streetNumber;
|