@bpost/bp-address-auto-complete-by-component 1.1.23 → 1.1.24
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/lib-address-autocomplete-by-component.component.mjs +40 -26
- package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs +39 -25
- package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs.map +1 -1
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs +39 -25
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5213,25 +5213,35 @@ class LibAddressAutocompleteByComponentComponent {
|
|
|
5213
5213
|
const box = this.selectedAddress?.hasOwnProperty('boxNumber');
|
|
5214
5214
|
this.quitPrefillMode();
|
|
5215
5215
|
if (event) {
|
|
5216
|
-
if (street == true) {
|
|
5217
|
-
this.
|
|
5216
|
+
if (street == true || this.autocompleteStreet.searchText.length > 0) {
|
|
5217
|
+
this.clearInputEventEmitter.emit(InputNameType.STREET);
|
|
5218
|
+
this.autocompleteStreet.searchText = '';
|
|
5218
5219
|
}
|
|
5219
|
-
if (house == true) {
|
|
5220
|
-
this.
|
|
5220
|
+
if (house == true || this.autocompleteStreetNb.searchText.length > 0) {
|
|
5221
|
+
this.clearInputEventEmitter.emit(InputNameType.STREET_NUMBER);
|
|
5222
|
+
this.autocompleteStreetNb.streetName = '';
|
|
5223
|
+
this.autocompleteStreetNb.searchText = '';
|
|
5221
5224
|
}
|
|
5222
|
-
if (box == true) {
|
|
5225
|
+
if (box == true || this.autocompleteBoxNb.searchText.length > 0) {
|
|
5223
5226
|
this.onClearInputEventEmitter(InputNameType.BOX_NUMBER);
|
|
5227
|
+
this.autocompleteBoxNb.searchText = '';
|
|
5228
|
+
this.autocompleteBoxNb.streetNumber = '';
|
|
5224
5229
|
}
|
|
5225
5230
|
}
|
|
5226
5231
|
if (!event) {
|
|
5227
|
-
if (street == true) {
|
|
5228
|
-
this.
|
|
5232
|
+
if (street == true || this.autocompleteStreet.searchText.length > 0) {
|
|
5233
|
+
this.clearInputEventEmitter.emit(InputNameType.STREET);
|
|
5234
|
+
this.autocompleteStreet.searchText = '';
|
|
5229
5235
|
}
|
|
5230
|
-
if (house == true) {
|
|
5231
|
-
this.
|
|
5236
|
+
if (house == true || this.autocompleteStreetNb.searchText.length > 0) {
|
|
5237
|
+
this.clearInputEventEmitter.emit(InputNameType.STREET_NUMBER);
|
|
5238
|
+
this.autocompleteStreetNb.streetName = '';
|
|
5239
|
+
this.autocompleteStreetNb.searchText = '';
|
|
5232
5240
|
}
|
|
5233
|
-
if (box == true) {
|
|
5241
|
+
if (box == true || this.autocompleteBoxNb.searchText.length > 0) {
|
|
5234
5242
|
this.onClearInputEventEmitter(InputNameType.BOX_NUMBER);
|
|
5243
|
+
this.autocompleteBoxNb.searchText = '';
|
|
5244
|
+
this.autocompleteBoxNb.streetNumber = '';
|
|
5235
5245
|
}
|
|
5236
5246
|
}
|
|
5237
5247
|
this.setAddress(null, 4);
|
|
@@ -5242,24 +5252,28 @@ class LibAddressAutocompleteByComponentComponent {
|
|
|
5242
5252
|
const box = this.selectedAddress?.hasOwnProperty('boxNumber');
|
|
5243
5253
|
this.quitPrefillMode();
|
|
5244
5254
|
if (event) {
|
|
5245
|
-
if (house == true) {
|
|
5246
|
-
this.
|
|
5255
|
+
if (house == true || this.autocompleteStreetNb.searchText.length > 0) {
|
|
5256
|
+
this.clearInputEventEmitter.emit(InputNameType.STREET_NUMBER);
|
|
5257
|
+
this.autocompleteStreetNb.searchText = '';
|
|
5258
|
+
this.autocompleteStreetNb.searchText = '';
|
|
5247
5259
|
}
|
|
5248
|
-
|
|
5249
|
-
if (box == true) {
|
|
5260
|
+
if (box == true || this.autocompleteBoxNb.searchText.length > 0) {
|
|
5250
5261
|
this.onClearInputEventEmitter(InputNameType.BOX_NUMBER);
|
|
5262
|
+
this.autocompleteBoxNb.searchText = '';
|
|
5263
|
+
this.autocompleteBoxNb.streetNumber = '';
|
|
5251
5264
|
}
|
|
5252
|
-
// this.onClearInputEventEmitter(InputNameType.BOX_NUMBER);
|
|
5253
5265
|
}
|
|
5254
5266
|
if (!event) {
|
|
5255
|
-
if (house == true) {
|
|
5256
|
-
this.
|
|
5267
|
+
if (house == true || this.autocompleteStreetNb.searchText.length > 0) {
|
|
5268
|
+
this.clearInputEventEmitter.emit(InputNameType.STREET_NUMBER);
|
|
5269
|
+
this.autocompleteStreetNb.searchText = '';
|
|
5270
|
+
this.autocompleteStreetNb.searchText = '';
|
|
5257
5271
|
}
|
|
5258
|
-
|
|
5259
|
-
if (box == true) {
|
|
5272
|
+
if (box == true || this.autocompleteBoxNb.searchText.length > 0) {
|
|
5260
5273
|
this.onClearInputEventEmitter(InputNameType.BOX_NUMBER);
|
|
5274
|
+
this.autocompleteBoxNb.searchText = '';
|
|
5275
|
+
this.autocompleteBoxNb.streetNumber = '';
|
|
5261
5276
|
}
|
|
5262
|
-
// this.onClearInputEventEmitter(InputNameType.BOX_NUMBER);
|
|
5263
5277
|
}
|
|
5264
5278
|
this.autocompleteStreetNb.addressIsComplete = false;
|
|
5265
5279
|
this.autocompleteStreetNb.streetName = '';
|
|
@@ -5270,13 +5284,13 @@ class LibAddressAutocompleteByComponentComponent {
|
|
|
5270
5284
|
const box = this.selectedAddress?.hasOwnProperty('boxNumber');
|
|
5271
5285
|
this.streetNumber = '';
|
|
5272
5286
|
this.quitPrefillMode();
|
|
5273
|
-
if (event) {
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
}
|
|
5287
|
+
if (event && (box == true || this.autocompleteBoxNb.searchText.length > 0)) {
|
|
5288
|
+
this.onClearInputEventEmitter(InputNameType.BOX_NUMBER);
|
|
5289
|
+
this.autocompleteBoxNb.searchText = '';
|
|
5277
5290
|
}
|
|
5278
|
-
if (!event && box == true) {
|
|
5291
|
+
if (!event && (box == true || this.autocompleteBoxNb.searchText.length > 0)) {
|
|
5279
5292
|
this.onClearInputEventEmitter(InputNameType.BOX_NUMBER);
|
|
5293
|
+
this.autocompleteBoxNb.searchText = '';
|
|
5280
5294
|
}
|
|
5281
5295
|
this.autocompleteBoxNb.addressIsComplete = false;
|
|
5282
5296
|
this.autocompleteBoxNb.streetNumber = '';
|