@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
|
@@ -3770,6 +3770,9 @@ class BoxNumberComponent {
|
|
|
3770
3770
|
if (!this.validatedByBackend) {
|
|
3771
3771
|
return (this.isValid(this.postalCode) || this.isValid(this.locality)) && this.isValid(this.streetName) && this.isValid(this.streetNumber);
|
|
3772
3772
|
}
|
|
3773
|
+
else if (this.suggestionLevel === SuggestionLevelType.None && this.prefillData) {
|
|
3774
|
+
return this.isValid(this.postalCode) && this.isValid(this.locality) && this.isValid(this.streetName) && this.isValid(this.streetNumber) && this.prefillData.parameters.boxNumber !== '';
|
|
3775
|
+
}
|
|
3773
3776
|
else {
|
|
3774
3777
|
return this.isValid(this.postalCode) && this.isValid(this.locality) && this.isValid(this.streetName) && this.isValid(this.streetNumber);
|
|
3775
3778
|
}
|
|
@@ -5340,6 +5343,7 @@ class LibAddressAutocompleteByComponentComponent {
|
|
|
5340
5343
|
}
|
|
5341
5344
|
this.streetNumberAddress = this.streetAddress;
|
|
5342
5345
|
this.selectedAddress = this.streetAddress;
|
|
5346
|
+
this.selectedAddress.houseNumber = streetNumber;
|
|
5343
5347
|
this.selectedAddress.streetNumber = streetNumber;
|
|
5344
5348
|
/*
|
|
5345
5349
|
this.streetNumber = streetNumber;
|