@bpost/bp-address-auto-complete-by-component 1.0.29 → 1.1.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.
Files changed (35) hide show
  1. package/VERSION.md +60 -0
  2. package/bpost-bp-address-auto-complete-by-component.d.ts +3 -2
  3. package/bpost-bp-address-auto-complete-by-component.metadata.json +1 -1
  4. package/bundles/bpost-bp-address-auto-complete-by-component.umd.js +172 -14
  5. package/bundles/bpost-bp-address-auto-complete-by-component.umd.js.map +1 -1
  6. package/bundles/bpost-bp-address-auto-complete-by-component.umd.min.js +1 -1
  7. package/bundles/bpost-bp-address-auto-complete-by-component.umd.min.js.map +1 -1
  8. package/esm2015/bpost-bp-address-auto-complete-by-component.js +4 -3
  9. package/esm2015/lib/box-number/box-number.component.js +6 -2
  10. package/esm2015/lib/lib-address-autocomplete-by-component.component.js +122 -9
  11. package/esm2015/lib/locality/locality.component.js +6 -2
  12. package/esm2015/lib/services/adress.service.js +4 -1
  13. package/esm2015/lib/services/nis9.service.js +30 -0
  14. package/esm2015/lib/street/street.component.js +6 -2
  15. package/esm2015/lib/street-number/street-number.component.js +6 -2
  16. package/esm5/bpost-bp-address-auto-complete-by-component.js +4 -3
  17. package/esm5/lib/box-number/box-number.component.js +6 -2
  18. package/esm5/lib/lib-address-autocomplete-by-component.component.js +123 -9
  19. package/esm5/lib/locality/locality.component.js +6 -2
  20. package/esm5/lib/services/adress.service.js +4 -1
  21. package/esm5/lib/services/nis9.service.js +31 -0
  22. package/esm5/lib/street/street.component.js +6 -2
  23. package/esm5/lib/street-number/street-number.component.js +6 -2
  24. package/fesm2015/bpost-bp-address-auto-complete-by-component.js +168 -13
  25. package/fesm2015/bpost-bp-address-auto-complete-by-component.js.map +1 -1
  26. package/fesm5/bpost-bp-address-auto-complete-by-component.js +170 -13
  27. package/fesm5/bpost-bp-address-auto-complete-by-component.js.map +1 -1
  28. package/lib/box-number/box-number.component.d.ts +2 -0
  29. package/lib/lib-address-autocomplete-by-component.component.d.ts +13 -1
  30. package/lib/locality/locality.component.d.ts +1 -0
  31. package/lib/services/adress.service.d.ts +2 -0
  32. package/lib/services/nis9.service.d.ts +9 -0
  33. package/lib/street/street.component.d.ts +1 -0
  34. package/lib/street-number/street-number.component.d.ts +1 -0
  35. package/package.json +1 -1
@@ -218,6 +218,9 @@ var AddressService = /** @class */ (function () {
218
218
  this.domain = 'http://10.194.73.9:8080';
219
219
  this.localityURL = this.domain + '/AddressAutoComplete/autocomplete/locality?IncludeGeographicalSanction=true';
220
220
  this.log = true;
221
+ this.nis9InResponse = false;
222
+ // https://bgs.bpost.be/set-selection-circle?lng=4.360537572541948&lat=50.84063582806037&radius=0.001
223
+ this.nis9ServiceURL = '';
221
224
  }
222
225
  AddressService.prototype.getLocality = function (baseUrl, params) {
223
226
  var _this = this;
@@ -766,6 +769,7 @@ var LocalityComponent = /** @class */ (function () {
766
769
  this.visibleSuggestionCount = 5;
767
770
  this.sortCriteria = '';
768
771
  this.showDebugMessageToConsole = true;
772
+ this.isReadonly = false;
769
773
  this.messageChanged = new EventEmitter();
770
774
  this.addressChanged = new EventEmitter();
771
775
  this.focusEvent = new EventEmitter();
@@ -1527,6 +1531,9 @@ var LocalityComponent = /** @class */ (function () {
1527
1531
  __decorate([
1528
1532
  Input()
1529
1533
  ], LocalityComponent.prototype, "inputLang", null);
1534
+ __decorate([
1535
+ Input()
1536
+ ], LocalityComponent.prototype, "isReadonly", void 0);
1530
1537
  __decorate([
1531
1538
  Output()
1532
1539
  ], LocalityComponent.prototype, "messageChanged", void 0);
@@ -1551,7 +1558,7 @@ var LocalityComponent = /** @class */ (function () {
1551
1558
  LocalityComponent = __decorate([
1552
1559
  Component({
1553
1560
  selector: 'bp-locality',
1554
- template: "<span *ngIf=\"labelResourceKey\">{{ labelResourceKey | translate}}</span>\n<div class=\"bpaac-dropdown\">\n <div class=\"bpaac-search-bar\">\n <div class=\"bpaac-input-width\">\n \n <input type=\"text\" #localitySearchInput class=\"bpaac-input\" \n (keydown)=\"checkKeyDown($event)\" (input)=\"onInputChange()\"\n [style.color]=\" getTextColor() \"\n [(ngModel)]=\"searchText\" id=\"localityInputField\" [attr.placeholder]=\"placeHolderText\" autocomplete=\"off\"\n (blur)=\"onBlur($event)\" (focus)=\"onFocus()\" (click)=\"onInputClick()\"/>\n <div id=\"bpaac-clear-locality-button\" \n *ngIf=\"mayShowClearButton()\"\n (click)=\"clearInput(true)\" class=\"bpaac-clear\">\n </div>\n </div>\n <!--<div ng-transclude></div>-->\n <input id=\"bpaac-locality-typeahead\" type=\"text\" disabled autocomplete=\"off\" [(ngModel)]=\"bpTypeAhead\" />\n </div>\n <div [hidden]=\"collapseDropdown\" class=\"bpaac-dropdown-menu-container\" *ngIf=\"suggestions && suggestions.length>0\">\n <div #localityList [appVisibleSuggestion]=\"visibleSuggestionCount\" id=\"bpaac-locality-dropdown\" \n class=\"bpaac-dropdown-menu\">\n <ul role=\"listbox\" id=\"bpaac-locality-suggestionsList\" class=\"list-unstyled\">\n <li role=\"option\" \n *ngFor=\"let option of suggestions; let idx = index\" \n [ngClass]=\"{'active':(selectedIndex==idx)}\" (mousedown)=\"clickSuggestion($event, option)\"\n (mouseenter)=\"selectedIndex=idx\" (mouseleave)=\"selectedIndex=-1\">\n <span *ngIf=\"option\" [innerHtml]=\"option.string | highlightSuggestion : wordList\"></span> \n <span *ngIf=\"messageOption === 'P' && option.messages\"> ({{option.municipalityName}})</span><br />\n <ng-container *ngIf=\"messageOption === 'Y'\">\n <span *ngFor=\"let message of option.messages\" \n class=\"bpaac-suggestion-message\"\n [innerHtml]=\"message.translatedMessage\"></span> \n </ng-container>\n </li>\n </ul>\n </div>\n </div>\n</div>",
1561
+ template: "<span *ngIf=\"labelResourceKey\">{{ labelResourceKey | translate}}</span>\n<div class=\"bpaac-dropdown\">\n <div class=\"bpaac-search-bar\">\n <div class=\"bpaac-input-width\">\n \n <input type=\"text\" #localitySearchInput class=\"bpaac-input\" \n [readonly]=\"isReadonly\"\n (keydown)=\"checkKeyDown($event)\" (input)=\"onInputChange()\"\n [style.color]=\" getTextColor() \"\n [(ngModel)]=\"searchText\" id=\"localityInputField\" [attr.placeholder]=\"placeHolderText\" autocomplete=\"off\"\n (blur)=\"onBlur($event)\" (focus)=\"onFocus()\" (click)=\"onInputClick()\"/>\n <div id=\"bpaac-clear-locality-button\" \n *ngIf=\"mayShowClearButton()\"\n (click)=\"clearInput(true)\" class=\"bpaac-clear\">\n </div>\n </div>\n <!--<div ng-transclude></div>-->\n <input id=\"bpaac-locality-typeahead\" type=\"text\" disabled autocomplete=\"off\" [(ngModel)]=\"bpTypeAhead\" />\n </div>\n <div [hidden]=\"collapseDropdown\" class=\"bpaac-dropdown-menu-container\" *ngIf=\"suggestions && suggestions.length>0\">\n <div #localityList [appVisibleSuggestion]=\"visibleSuggestionCount\" id=\"bpaac-locality-dropdown\" \n class=\"bpaac-dropdown-menu\">\n <ul role=\"listbox\" id=\"bpaac-locality-suggestionsList\" class=\"list-unstyled\">\n <li role=\"option\" \n *ngFor=\"let option of suggestions; let idx = index\" \n [ngClass]=\"{'active':(selectedIndex==idx)}\" (mousedown)=\"clickSuggestion($event, option)\"\n (mouseenter)=\"selectedIndex=idx\" (mouseleave)=\"selectedIndex=-1\">\n <span *ngIf=\"option\" [innerHtml]=\"option.string | highlightSuggestion : wordList\"></span> \n <span *ngIf=\"messageOption === 'P' && option.messages\"> ({{option.municipalityName}})</span><br />\n <ng-container *ngIf=\"messageOption === 'Y'\">\n <span *ngFor=\"let message of option.messages\" \n class=\"bpaac-suggestion-message\"\n [innerHtml]=\"message.translatedMessage\"></span> \n </ng-container>\n </li>\n </ul>\n </div>\n </div>\n</div>",
1555
1562
  styles: [""]
1556
1563
  })
1557
1564
  ], LocalityComponent);
@@ -1574,6 +1581,7 @@ var StreetComponent = /** @class */ (function () {
1574
1581
  this.sortCriteria = '';
1575
1582
  this.showDebugMessageToConsole = true;
1576
1583
  this.messageOption = 'Y';
1584
+ this.isReadonly = false;
1577
1585
  this.messageChanged = new EventEmitter();
1578
1586
  this.addressChanged = new EventEmitter();
1579
1587
  this.focusEvent = new EventEmitter();
@@ -2303,6 +2311,9 @@ var StreetComponent = /** @class */ (function () {
2303
2311
  __decorate([
2304
2312
  Input()
2305
2313
  ], StreetComponent.prototype, "inputLang", null);
2314
+ __decorate([
2315
+ Input()
2316
+ ], StreetComponent.prototype, "isReadonly", void 0);
2306
2317
  __decorate([
2307
2318
  Output()
2308
2319
  ], StreetComponent.prototype, "messageChanged", void 0);
@@ -2327,7 +2338,7 @@ var StreetComponent = /** @class */ (function () {
2327
2338
  StreetComponent = __decorate([
2328
2339
  Component({
2329
2340
  selector: 'bp-street',
2330
- template: "<span *ngIf=\"labelResourceKey\">{{ labelResourceKey | translate}}</span>\n<div class=\"bpaac-dropdown\">\n <div class=\"bpaac-search-bar\">\n <div class=\"bpaac-input-width\">\n <!-- [disabled]=\"isDisabled()\" -->\n <input type=\"text\" #streetSearchInput class=\"bpaac-input\" \n [style.background-color]=\"!isParamsComplete() ? 'lightgrey' : ''\" \n [style.color]=\" getTextColor() \"\n [disabled]=\"!locality || locality.trim().length === 0\" (keydown)=\"checkKeyDown($event)\" \n (input)=\"onInputChange()\" (click)=\"onInputClick()\"\n [(ngModel)]=\"searchText\" id=\"streetInputField\" [attr.placeholder]=\"placeHolderText\" autocomplete=\"off\"\n (blur)=\"onBlur($event)\" (focus)=\"onFocus()\" />\n <div id=\"bpaac-clear-street-button\" *ngIf=\"mayShowClearButton()\" (click)=\"clearInput(true)\" class=\"bpaac-clear\">\n </div>\n </div>\n <!--<div ng-transclude></div>-->\n <input id=\"bpaac-street-typeahead\" type=\"text\" disabled autocomplete=\"off\" [(ngModel)]=\"bpTypeAhead\" />\n </div>\n <div [hidden]=\"collapseDropdown\" class=\"bpaac-dropdown-menu-container\" *ngIf=\"suggestions && suggestions.length>0\">\n <div #streetList [appVisibleSuggestion]=\"visibleSuggesionCount\" id=\"bpaac-street-dropdown\" class=\"bpaac-dropdown-menu\">\n <ul role=\"listbox\" id=\"bpaac-street-suggestionsList\" class=\"list-unstyled\">\n <li role=\"option\" *ngFor=\"let option of suggestions; let idx = index\" [ngClass]=\"{'active':(selectedIndex==idx)}\" (mousedown)=\"clickSuggestion($event, option)\"\n (mouseenter)=\"selectedIndex=idx\" (mouseleave)=\"selectedIndex=-1\">\n <span *ngIf=\"option\" [innerHtml]=\"option.string | highlightSuggestion : wordList\"></span>\n </li>\n </ul>\n </div>\n </div>\n</div>\n",
2341
+ template: "<span *ngIf=\"labelResourceKey\">{{ labelResourceKey | translate}}</span>\n<div class=\"bpaac-dropdown\">\n <div class=\"bpaac-search-bar\">\n <div class=\"bpaac-input-width\">\n <!-- [disabled]=\"isDisabled()\" -->\n <input type=\"text\" #streetSearchInput class=\"bpaac-input\" \n [readonly]=\"isReadonly\"\n [style.background-color]=\"!isParamsComplete() ? 'lightgrey' : ''\" \n [style.color]=\" getTextColor() \"\n [disabled]=\"!locality || locality.trim().length === 0\" (keydown)=\"checkKeyDown($event)\" \n (input)=\"onInputChange()\" (click)=\"onInputClick()\"\n [(ngModel)]=\"searchText\" id=\"streetInputField\" [attr.placeholder]=\"placeHolderText\" autocomplete=\"off\"\n (blur)=\"onBlur($event)\" (focus)=\"onFocus()\" />\n <div id=\"bpaac-clear-street-button\" *ngIf=\"mayShowClearButton()\" (click)=\"clearInput(true)\" class=\"bpaac-clear\">\n </div>\n </div>\n <!--<div ng-transclude></div>-->\n <input id=\"bpaac-street-typeahead\" type=\"text\" disabled autocomplete=\"off\" [(ngModel)]=\"bpTypeAhead\" />\n </div>\n <div [hidden]=\"collapseDropdown\" class=\"bpaac-dropdown-menu-container\" *ngIf=\"suggestions && suggestions.length>0\">\n <div #streetList [appVisibleSuggestion]=\"visibleSuggesionCount\" id=\"bpaac-street-dropdown\" class=\"bpaac-dropdown-menu\">\n <ul role=\"listbox\" id=\"bpaac-street-suggestionsList\" class=\"list-unstyled\">\n <li role=\"option\" *ngFor=\"let option of suggestions; let idx = index\" [ngClass]=\"{'active':(selectedIndex==idx)}\" (mousedown)=\"clickSuggestion($event, option)\"\n (mouseenter)=\"selectedIndex=idx\" (mouseleave)=\"selectedIndex=-1\">\n <span *ngIf=\"option\" [innerHtml]=\"option.string | highlightSuggestion : wordList\"></span>\n </li>\n </ul>\n </div>\n </div>\n</div>\n",
2331
2342
  styles: [""]
2332
2343
  })
2333
2344
  ], StreetComponent);
@@ -2346,6 +2357,7 @@ var StreetNumberComponent = /** @class */ (function () {
2346
2357
  this.visibleSuggesionCount = 5;
2347
2358
  this.sortCriteria = '';
2348
2359
  this.messageOption = 'Y';
2360
+ this.isReadonly = false;
2349
2361
  this.messageChanged = new EventEmitter();
2350
2362
  this.addressChanged = new EventEmitter();
2351
2363
  this.focusEvent = new EventEmitter();
@@ -3202,6 +3214,9 @@ var StreetNumberComponent = /** @class */ (function () {
3202
3214
  __decorate([
3203
3215
  Input()
3204
3216
  ], StreetNumberComponent.prototype, "inputText", void 0);
3217
+ __decorate([
3218
+ Input()
3219
+ ], StreetNumberComponent.prototype, "isReadonly", void 0);
3205
3220
  __decorate([
3206
3221
  Output()
3207
3222
  ], StreetNumberComponent.prototype, "messageChanged", void 0);
@@ -3229,7 +3244,7 @@ var StreetNumberComponent = /** @class */ (function () {
3229
3244
  StreetNumberComponent = __decorate([
3230
3245
  Component({
3231
3246
  selector: 'bp-street-number',
3232
- template: "<span *ngIf=\"labelResourceKey\">{{ labelResourceKey | translate}}</span>\n<div class=\"bpaac-dropdown\">\n <div class=\"bpaac-search-bar\">\n <div class=\"bpaac-input-width\">\n <!-- [disabled]=\"isDisabled()\" -->\n <input type=\"text\" #streetNumberSearchInput class=\"bpaac-input\" \n [style.background-color]=\"!isParamsComplete() ? 'lightgrey' : ''\" \n [style.color]=\" getTextColor() \"\n [disabled]=\"!streetName || streetName.trim().length === 0\" (keydown)=\"checkKeyDown($event)\" \n (input)=\"onInputChange()\" (click)=\"onInputClick()\"\n [(ngModel)]=\"searchText\" id=\"streetNumberInputField\" \n [attr.title]=\"placeHolderText\" \n [attr.placeholder]=\"placeHolderText\" autocomplete=\"off\"\n (blur)=\"onBlur($event)\" (focus)=\"onFocus()\" />\n <div id=\"bpaac-clear-streetNb-button\" *ngIf=\"mayShowClearButton()\" \n (click)=\"onClearStreetNumberInput(true)\" class=\"bpaac-clear\">\n </div>\n </div>\n <!--<div ng-transclude></div>-->\n <input id=\"bpaac-streetNb-typeahead\" type=\"text\" disabled autocomplete=\"off\" [(ngModel)]=\"bpTypeAhead\" />\n <!-- <span>addressIsComplete: {{ addressIsComplete }}. </span>\n <span>addressIsValidated: {{ addressIsValidated }}. </span> -->\n <span *ngIf=\"addressIsComplete\" class=\"streetNbChekmark\"><span class=\"checkmark\"></span></span>\n </div>\n <div [hidden]=\"collapseDropdown\" class=\"bpaac-dropdown-menu-container\" *ngIf=\"suggestions && suggestions.length>0\">\n <div #streetNumberList [appVisibleSuggestion]=\"visibleSuggesionCount\" \n id=\"bpaac-streetnumber-dropdown\" class=\"bpaac-dropdown-menu\">\n <ul role=\"listbox\" id=\"bpaac-streetNb-suggestionsList\" class=\"list-unstyled\">\n <li role=\"option\" *ngFor=\"let option of suggestions; let idx = index\" [ngClass]=\"{'active':(selectedIndex==idx)}\" (mousedown)=\"clickSuggestion($event, option)\"\n (mouseenter)=\"selectedIndex=idx\" (mouseleave)=\"selectedIndex=-1\">\n <span *ngIf=\"option\" [innerHtml]=\"option['not-in-list'] ? emptyResponseText : option.string | highlightSuggestion : wordList\"></span>\n </li>\n </ul>\n </div>\n </div>\n</div>",
3247
+ template: "<span *ngIf=\"labelResourceKey\">{{ labelResourceKey | translate}}</span>\n<div class=\"bpaac-dropdown\">\n <div class=\"bpaac-search-bar\">\n <div class=\"bpaac-input-width\">\n <!-- [disabled]=\"isDisabled()\" -->\n <input type=\"text\" #streetNumberSearchInput class=\"bpaac-input\" \n [readonly]=\"isReadonly\"\n [style.background-color]=\"!isParamsComplete() ? 'lightgrey' : ''\" \n [style.color]=\" getTextColor() \"\n [disabled]=\"!streetName || streetName.trim().length === 0\" (keydown)=\"checkKeyDown($event)\" \n (input)=\"onInputChange()\" (click)=\"onInputClick()\"\n [(ngModel)]=\"searchText\" id=\"streetNumberInputField\" \n [attr.title]=\"placeHolderText\" \n [attr.placeholder]=\"placeHolderText\" autocomplete=\"off\"\n (blur)=\"onBlur($event)\" (focus)=\"onFocus()\" />\n <div id=\"bpaac-clear-streetNb-button\" *ngIf=\"mayShowClearButton()\" \n (click)=\"onClearStreetNumberInput(true)\" class=\"bpaac-clear\">\n </div>\n </div>\n <!--<div ng-transclude></div>-->\n <input id=\"bpaac-streetNb-typeahead\" type=\"text\" disabled autocomplete=\"off\" [(ngModel)]=\"bpTypeAhead\" />\n <!-- <span>addressIsComplete: {{ addressIsComplete }}. </span>\n <span>addressIsValidated: {{ addressIsValidated }}. </span> -->\n <span *ngIf=\"addressIsComplete\" class=\"streetNbChekmark\"><span class=\"checkmark\"></span></span>\n </div>\n <div [hidden]=\"collapseDropdown\" class=\"bpaac-dropdown-menu-container\" *ngIf=\"suggestions && suggestions.length>0\">\n <div #streetNumberList [appVisibleSuggestion]=\"visibleSuggesionCount\" \n id=\"bpaac-streetnumber-dropdown\" class=\"bpaac-dropdown-menu\">\n <ul role=\"listbox\" id=\"bpaac-streetNb-suggestionsList\" class=\"list-unstyled\">\n <li role=\"option\" *ngFor=\"let option of suggestions; let idx = index\" [ngClass]=\"{'active':(selectedIndex==idx)}\" (mousedown)=\"clickSuggestion($event, option)\"\n (mouseenter)=\"selectedIndex=idx\" (mouseleave)=\"selectedIndex=-1\">\n <span *ngIf=\"option\" [innerHtml]=\"option['not-in-list'] ? emptyResponseText : option.string | highlightSuggestion : wordList\"></span>\n </li>\n </ul>\n </div>\n </div>\n</div>",
3233
3248
  styles: [""]
3234
3249
  })
3235
3250
  ], StreetNumberComponent);
@@ -3248,6 +3263,7 @@ var BoxNumberComponent = /** @class */ (function () {
3248
3263
  this.visibleSuggesionCount = 5;
3249
3264
  this.sortCriteria = '';
3250
3265
  this.messageOption = 'Y';
3266
+ this.isReadonly = false;
3251
3267
  this.messageChanged = new EventEmitter();
3252
3268
  this.addressChanged = new EventEmitter();
3253
3269
  this.focusEvent = new EventEmitter();
@@ -4015,6 +4031,9 @@ var BoxNumberComponent = /** @class */ (function () {
4015
4031
  __decorate([
4016
4032
  Input()
4017
4033
  ], BoxNumberComponent.prototype, "messageOption", void 0);
4034
+ __decorate([
4035
+ Input()
4036
+ ], BoxNumberComponent.prototype, "isReadonly", void 0);
4018
4037
  __decorate([
4019
4038
  Output()
4020
4039
  ], BoxNumberComponent.prototype, "messageChanged", void 0);
@@ -4042,7 +4061,7 @@ var BoxNumberComponent = /** @class */ (function () {
4042
4061
  BoxNumberComponent = __decorate([
4043
4062
  Component({
4044
4063
  selector: 'bp-box-number',
4045
- template: "<span *ngIf=\"labelResourceKey\">{{ labelResourceKey | translate}}</span>\n<div class=\"bpaac-dropdown\">\n <div class=\"bpaac-search-bar\">\n <div class=\"bpaac-input-width\">\n <!-- [disabled]=\"isDisabled()\" -->\n <input type=\"text\" #boxNumberSearchInput class=\"bpaac-input\" \n [style.background-color]=\"!isParamsComplete() ? 'lightgrey' : ''\" \n [style.color]=\" getTextColor() \"\n [disabled]=\"!streetNumber || streetNumber.trim().length === 0\" (keydown)=\"checkKeyDown($event)\" \n (input)=\"onInputChange()\" (click)=\"onInputClick()\"\n [(ngModel)]=\"searchText\" id=\"boxNumberInputField\" [attr.title]=\"placeHolderText\" [attr.placeholder]=\"placeHolderText\" autocomplete=\"off\"\n (blur)=\"onBlur($event)\" (focus)=\"onFocus()\" />\n <div id=\"bpaac-clear-boxNb-button\" *ngIf=\"mayShowClearButton()\" (click)=\"clearInput(true)\" class=\"bpaac-clear\">\n </div>\n </div>\n <!--<div ng-transclude></div>-->\n <input id=\"bpaac-boxNb-typeahead\" type=\"text\" disabled autocomplete=\"off\" [(ngModel)]=\"bpTypeAhead\" />\n <span *ngIf=\"addressIsValidated\" class=\"boxNbChekmark\"><span class=\"checkmark\"></span></span>\n </div>\n <div [hidden]=\"collapseDropdown\" class=\"bpaac-dropdown-menu-container\" *ngIf=\"suggestions && suggestions.length>0\">\n <div #boxNumberList [appVisibleSuggestion]=\"visibleSuggesionCount\" id=\"bpaac-box-dropdown\" class=\"bpaac-dropdown-menu\">\n <ul role=\"listbox\" id=\"bpaac-boxNb-suggestionsList\" class=\"list-unstyled\">\n <li role=\"option\" *ngFor=\"let option of suggestions; let idx = index\" [ngClass]=\"{'active':(selectedIndex==idx)}\" \n (mousedown)=\"clickSuggestion($event, option)\"\n (mouseenter)=\"selectedIndex=idx\" (mouseleave)=\"selectedIndex=-1\">\n <span *ngIf=\"option\" [innerHtml]=\"option['not-in-list'] ? emptyResponseText : option.string | highlightSuggestion : wordList\"></span>\n </li>\n </ul>\n </div>\n </div>\n</div>\n",
4064
+ template: "<span *ngIf=\"labelResourceKey\">{{ labelResourceKey | translate}}</span>\n<div class=\"bpaac-dropdown\">\n <div class=\"bpaac-search-bar\">\n <div class=\"bpaac-input-width\">\n <!-- [disabled]=\"isDisabled()\" -->\n <input type=\"text\" #boxNumberSearchInput class=\"bpaac-input\" \n [readonly]=\"isReadonly\"\n [style.background-color]=\"!isParamsComplete() ? 'lightgrey' : ''\" \n [style.color]=\" getTextColor() \"\n [disabled]=\"!streetNumber || streetNumber.trim().length === 0\" (keydown)=\"checkKeyDown($event)\" \n (input)=\"onInputChange()\" (click)=\"onInputClick()\"\n [(ngModel)]=\"searchText\" id=\"boxNumberInputField\" [attr.title]=\"placeHolderText\" [attr.placeholder]=\"placeHolderText\" autocomplete=\"off\"\n (blur)=\"onBlur($event)\" (focus)=\"onFocus()\" />\n <div id=\"bpaac-clear-boxNb-button\" *ngIf=\"mayShowClearButton()\" (click)=\"clearInput(true)\" class=\"bpaac-clear\">\n </div>\n </div>\n <!--<div ng-transclude></div>-->\n <input id=\"bpaac-boxNb-typeahead\" type=\"text\" disabled autocomplete=\"off\" [(ngModel)]=\"bpTypeAhead\" />\n <span *ngIf=\"addressIsValidated\" class=\"boxNbChekmark\"><span class=\"checkmark\"></span></span>\n </div>\n <div [hidden]=\"collapseDropdown\" class=\"bpaac-dropdown-menu-container\" *ngIf=\"suggestions && suggestions.length>0\">\n <div #boxNumberList [appVisibleSuggestion]=\"visibleSuggesionCount\" id=\"bpaac-box-dropdown\" class=\"bpaac-dropdown-menu\">\n <ul role=\"listbox\" id=\"bpaac-boxNb-suggestionsList\" class=\"list-unstyled\">\n <li role=\"option\" *ngFor=\"let option of suggestions; let idx = index\" [ngClass]=\"{'active':(selectedIndex==idx)}\" \n (mousedown)=\"clickSuggestion($event, option)\"\n (mouseenter)=\"selectedIndex=idx\" (mouseleave)=\"selectedIndex=-1\">\n <span *ngIf=\"option\" [innerHtml]=\"option['not-in-list'] ? emptyResponseText : option.string | highlightSuggestion : wordList\"></span>\n </li>\n </ul>\n </div>\n </div>\n</div>\n",
4046
4065
  styles: [""]
4047
4066
  })
4048
4067
  ], BoxNumberComponent);
@@ -4074,11 +4093,42 @@ var PrefillData // extends PrefilledParameters
4074
4093
  return PrefillData;
4075
4094
  }());
4076
4095
 
4096
+ var Nis9Service = /** @class */ (function () {
4097
+ function Nis9Service(httpClient) {
4098
+ this.httpClient = httpClient;
4099
+ // https://bgs.bpost.be/set-selection-circle?lng=4.360537572541948&lat=50.84063582806037&radius=0.001
4100
+ this.nis9ServiceURL = '';
4101
+ }
4102
+ Nis9Service.prototype.setNis9ServiceURL = function (nis9ServiceURL) {
4103
+ this.nis9ServiceURL = nis9ServiceURL;
4104
+ };
4105
+ Nis9Service.prototype.determineNis9Data = function (longitude, latitude) {
4106
+ var apiUrl = "https://bgs.bpost.be/set-selection-circle?lng=" + longitude + "&lat=" + latitude + "&radius=0.001";
4107
+ return this.httpClient.get(apiUrl);
4108
+ };
4109
+ Nis9Service.ctorParameters = function () { return [
4110
+ { type: HttpClient }
4111
+ ]; };
4112
+ Nis9Service.ɵprov = ɵɵdefineInjectable({ factory: function Nis9Service_Factory() { return new Nis9Service(ɵɵinject(HttpClient)); }, token: Nis9Service, providedIn: "root" });
4113
+ Nis9Service = __decorate([
4114
+ Injectable({
4115
+ providedIn: 'root'
4116
+ })
4117
+ ], Nis9Service);
4118
+ return Nis9Service;
4119
+ }());
4120
+
4077
4121
  var LibAddressAutocompleteByComponentComponent = /** @class */ (function () {
4078
- function LibAddressAutocompleteByComponentComponent(httpService) {
4122
+ function LibAddressAutocompleteByComponentComponent(nis9Service, httpService) {
4123
+ this.nis9Service = nis9Service;
4079
4124
  this.httpService = httpService;
4080
4125
  this.selectedLanguage = null;
4081
4126
  this.baseUrl = "https://api.mailops.bpost.cloud/roa-info/externalMailingAddressProofingRest/autocomplete/";
4127
+ this.defaultApiKey = 'cyRkKOD73O1DOdgcDLLnsaOiDh6OyOkt3BBT5JU1';
4128
+ this.usedLocalityUrl = this.baseUrl + 'locality';
4129
+ this.usedStreetUrl = this.baseUrl + 'street';
4130
+ this.usedStreetNumberUrl = this.baseUrl + 'streetNumber';
4131
+ this.usedBoxNumberUrl = this.baseUrl + 'boxNumber';
4082
4132
  this.showDebugMessageToConsole = false;
4083
4133
  this.notInListAllowed = true;
4084
4134
  this.messageOption = 'Y';
@@ -4114,7 +4164,13 @@ var LibAddressAutocompleteByComponentComponent = /** @class */ (function () {
4114
4164
  this.clearInputEventEmitter = new EventEmitter();
4115
4165
  this.processingPrefillData = false;
4116
4166
  // Pass the API key as a property of the library !
4117
- this.apiKey = 'cyRkKOD73O1DOdgcDLLnsaOiDh6OyOkt3BBT5JU1';
4167
+ this.apiKey = this.defaultApiKey;
4168
+ // set the widget as readonly and add NIS9 query parameter
4169
+ this.isReadonly = false;
4170
+ this.nis9InResponse = false;
4171
+ // https://bgs.bpost.be/set-selection-circle?lng=4.360537572541948&lat=50.84063582806037&radius=0.001
4172
+ this.nis9ServiceURL = '';
4173
+ this.isComponentReady = false;
4118
4174
  }
4119
4175
  Object.defineProperty(LibAddressAutocompleteByComponentComponent.prototype, "inputLang", {
4120
4176
  // @ts-ignore
@@ -4141,10 +4197,25 @@ var LibAddressAutocompleteByComponentComponent = /** @class */ (function () {
4141
4197
  configurable: true
4142
4198
  });
4143
4199
  LibAddressAutocompleteByComponentComponent.prototype.ngOnInit = function () {
4144
- this.httpService.setApiKey(this.apiKey);
4200
+ //console.warn('lib - ngOnInit');
4201
+ this.nis9Service.setNis9ServiceURL(this.nis9ServiceURL);
4202
+ var apiKey = this.isValidData(this.apiKey) ? this.apiKey : this.defaultApiKey;
4203
+ this.httpService.setApiKey(apiKey);
4204
+ if (this.isValidData(this.localityUrl))
4205
+ this.usedLocalityUrl = this.localityUrl;
4206
+ if (this.isValidData(this.streetUrl))
4207
+ this.usedStreetUrl = this.streetUrl;
4208
+ if (this.isValidData(this.streetNumberUrl))
4209
+ this.usedStreetNumberUrl = this.streetNumberUrl;
4210
+ if (this.isValidData(this.boxNumberUrl))
4211
+ this.usedBoxNumberUrl = this.boxNumberUrl;
4145
4212
  if (this.addressParams) {
4146
4213
  this.prefillData = this.addressParams;
4147
4214
  }
4215
+ this.isComponentReady = true;
4216
+ };
4217
+ LibAddressAutocompleteByComponentComponent.prototype.isValidData = function (str) {
4218
+ return str !== undefined && str !== null && str.length > 0;
4148
4219
  };
4149
4220
  LibAddressAutocompleteByComponentComponent.prototype.ngOnDestroy = function () {
4150
4221
  if (this.subscription) {
@@ -4158,9 +4229,40 @@ var LibAddressAutocompleteByComponentComponent = /** @class */ (function () {
4158
4229
  if (this.showDebugMessageToConsole) {
4159
4230
  this.displayParametersChangesToConsole(changes);
4160
4231
  }
4232
+ /*
4161
4233
  if (changes.hasOwnProperty('apiKey') && !changes.apiKey.firstChange) {
4162
- this.httpService.setApiKey(this.apiKey);
4234
+ const apiKey = this.apiKey!==null && this.apiKey!==undefined && this.apiKey.length>0
4235
+ ? this.apiKey
4236
+ : this.defaultApiKey;
4237
+ this.httpService.setApiKey( apiKey );
4238
+ }
4239
+
4240
+ if (changes.hasOwnProperty('localityUrl') && !changes.localityUrl.firstChange) {
4241
+ const localityUrl = this.localityUrl!==null && this.localityUrl!==undefined && this.localityUrl.length>0
4242
+ ? this.localityUrl
4243
+ : this.baseUrl + 'locality';
4244
+ this.usedLocalityUrl=localityUrl;
4245
+ console.log('ngOnChanges - localityUrl: ', localityUrl);
4246
+ }
4247
+ if (changes.hasOwnProperty('streetUrl') && !changes.streetUrl.firstChange) {
4248
+ const streetUrl = this.streetUrl!==null && this.streetUrl!==undefined && this.streetUrl.length>0
4249
+ ? this.streetUrl
4250
+ : this.baseUrl + 'street';
4251
+ this.streetUrl=streetUrl;
4252
+ }
4253
+ if (changes.hasOwnProperty('streetNumberUrl') && !changes.streetNumberUrl.firstChange) {
4254
+ const streetNumberUrl = this.streetNumberUrl!==null && this.streetNumberUrl!==undefined && this.streetNumberUrl.length>0
4255
+ ? this.streetNumberUrl
4256
+ : this.baseUrl + 'streetNumber';
4257
+ this.streetNumberUrl=streetNumberUrl;
4258
+ }
4259
+ if (changes.hasOwnProperty('boxNumberUrl') && !changes.boxNumberUrl.firstChange) {
4260
+ const boxNumberUrl = this.boxNumberUrl!==null && this.boxNumberUrl!==undefined && this.boxNumberUrl.length>0
4261
+ ? this.boxNumberUrl
4262
+ : this.baseUrl + 'boxNumber';
4263
+ this.boxNumberUrl=boxNumberUrl;
4163
4264
  }
4265
+ */
4164
4266
  if (changes.hasOwnProperty('addressParams') && !changes.addressParams.firstChange) {
4165
4267
  // if (changes.hasOwnProperty('addressParams')) {
4166
4268
  this.processingPrefillData = true;
@@ -4353,10 +4455,45 @@ var LibAddressAutocompleteByComponentComponent = /** @class */ (function () {
4353
4455
  return prefix;
4354
4456
  };
4355
4457
  LibAddressAutocompleteByComponentComponent.prototype.notifyAddressComplete = function () {
4458
+ var _this = this;
4356
4459
  // console.log('notify for address complete');
4357
- this.addressCompleteEventEmitter.emit(this.selectedAddress);
4358
- this.emittedAddress = this.selectedAddress;
4359
- this.updatePostalCodeLocality(this.emittedAddress);
4460
+ if (this.showDebugMessageToConsole) {
4461
+ console.log('notifyAddressComplete', this.selectedAddress, 'nis9InResponse:' + this.nis9InResponse, typeof this.nis9InResponse);
4462
+ }
4463
+ if ((this.nis9InResponse === true || '' + this.nis9InResponse === 'true')
4464
+ && this.selectedAddress !== undefined && this.selectedAddress !== null
4465
+ && this.selectedAddress.hasOwnProperty('latitude') && this.selectedAddress.hasOwnProperty('longitude')) {
4466
+ var latitude = this.selectedAddress.latitude;
4467
+ var longitude = this.selectedAddress.longitude;
4468
+ if (this.showDebugMessageToConsole)
4469
+ console.log('calling nis9 service to get nis9 data (1):', longitude, latitude);
4470
+ this.nis9Service.determineNis9Data(longitude, latitude)
4471
+ .subscribe(function (data) {
4472
+ console.log('nis DATA:', data);
4473
+ /*
4474
+ nis DATA:
4475
+ {Status: 'success', data: Array(1)}
4476
+ Status: "success"
4477
+ data: ['25112A21-']
4478
+ */
4479
+ if (data !== undefined && data !== null && data.hasOwnProperty('Status') && data.Status === 'success') {
4480
+ var nis9Data = data.data;
4481
+ if (Array.isArray(nis9Data) && nis9Data.length === 1) {
4482
+ _this.selectedAddress.nis9 = nis9Data[0];
4483
+ }
4484
+ }
4485
+ _this.addressCompleteEventEmitter.emit(_this.selectedAddress);
4486
+ _this.emittedAddress = _this.selectedAddress;
4487
+ _this.updatePostalCodeLocality(_this.emittedAddress);
4488
+ });
4489
+ }
4490
+ else {
4491
+ if (this.showDebugMessageToConsole)
4492
+ console.log('NOT calling nis9 service to get nis9 data (1)');
4493
+ this.addressCompleteEventEmitter.emit(this.selectedAddress);
4494
+ this.emittedAddress = this.selectedAddress;
4495
+ this.updatePostalCodeLocality(this.emittedAddress);
4496
+ }
4360
4497
  };
4361
4498
  LibAddressAutocompleteByComponentComponent.prototype.onClearInputEventEmitter = function (event) {
4362
4499
  if (this.showDebugMessageToConsole) {
@@ -4473,6 +4610,16 @@ var LibAddressAutocompleteByComponentComponent = /** @class */ (function () {
4473
4610
  }
4474
4611
  this.clearInputEventEmitter.emit(event);
4475
4612
  if (this.emittedAddress !== null) {
4613
+ if (nextAddress !== undefined && nextAddress !== null && nextAddress.hasOwnProperty('latitude') && nextAddress.hasOwnProperty('longitude')) {
4614
+ var latitude = nextAddress.latitude;
4615
+ var longitude = nextAddress.longitude;
4616
+ if (this.showDebugMessageToConsole)
4617
+ console.log('calling nis9 service to get nis9 data (2)', longitude, latitude);
4618
+ }
4619
+ else {
4620
+ if (this.showDebugMessageToConsole)
4621
+ console.log('NOT calling nis9 service to get nis9 data (2)');
4622
+ }
4476
4623
  this.addressCompleteEventEmitter.emit(nextAddress);
4477
4624
  this.emittedAddress = nextAddress;
4478
4625
  }
@@ -5022,6 +5169,7 @@ var LibAddressAutocompleteByComponentComponent = /** @class */ (function () {
5022
5169
  this.quitPrefillMode();
5023
5170
  };
5024
5171
  LibAddressAutocompleteByComponentComponent.ctorParameters = function () { return [
5172
+ { type: Nis9Service },
5025
5173
  { type: HttpService }
5026
5174
  ]; };
5027
5175
  __decorate([
@@ -5123,10 +5271,19 @@ var LibAddressAutocompleteByComponentComponent = /** @class */ (function () {
5123
5271
  __decorate([
5124
5272
  Input()
5125
5273
  ], LibAddressAutocompleteByComponentComponent.prototype, "apiKey", void 0);
5274
+ __decorate([
5275
+ Input()
5276
+ ], LibAddressAutocompleteByComponentComponent.prototype, "isReadonly", void 0);
5277
+ __decorate([
5278
+ Input()
5279
+ ], LibAddressAutocompleteByComponentComponent.prototype, "nis9InResponse", void 0);
5280
+ __decorate([
5281
+ Input()
5282
+ ], LibAddressAutocompleteByComponentComponent.prototype, "nis9ServiceURL", void 0);
5126
5283
  LibAddressAutocompleteByComponentComponent = __decorate([
5127
5284
  Component({
5128
5285
  selector: 'bp-lib-address-autocomplete-by-component',
5129
- template: "\r\n<div class=\"aacwidget-address-container\">\r\n\r\n <div class=\"bpaac-dropdown-validation\" *ngIf=\"validationMessageOptionType === 'SHOW' \">\r\n <div class=\"bpaac-validated-icon\" *ngIf=\"selectedAddress && validationMessage!==null && validationMessage.messageType!==null\"></div>\r\n <!-- {{ validationMessage | translate }} -->\r\n {{ validationMessage.translatedMessage }}\r\n </div>\r\n\r\n <!-- bp-aacwidget-autocomplete-locality -->\r\n <bp-locality class=\"aacwidget-address-locality\"\r\n [showDebugMessageToConsole]=\"showDebugMessageToConsole\"\r\n [baseUrl]=\"localityUrl\"\r\n [prefillData]=\"localityPrefillData\"\r\n [labelResourceKey]=\"'common.label.postalCode'\"\r\n [inputText]=\"postalCodeLocality\"\r\n [inputLang]=\"selectedLanguage\"\r\n [messageOption]=\"messageOption\"\r\n [sortCriteria]=\"sortCriteriaLocality\"\r\n [maxSuggesionCount]=\"maxSuggestionLocality\" \r\n [visibleSuggestionCount]=\"visibleSuggestionLocalityCount\"\r\n (addressChanged)=\"setAddress($event, 4)\"\r\n (messageChanged)=\"setValidationMessage($event)\"\r\n (focusEvent)=\"changeMinLevel($event)\" \r\n (textChangeEvent)=\"resetLocality($event)\"\r\n (clearInputEventEmitter)=\"onClearInputEventEmitter($event)\"\r\n (prefillEventEmitter)=\"onLocalityPrefillEvent($event)\"></bp-locality>\r\n\r\n <bp-street class=\"aacwidget-address-street\"\r\n [showDebugMessageToConsole]=\"showDebugMessageToConsole\"\r\n [baseUrl]=\"streetUrl\"\r\n [prefillData]=\"streetPrefillData\"\r\n [labelResourceKey]=\"'common.label.streetName'\"\r\n [inputText]=\"streetNameInput\"\r\n [inputLang]=\"selectedLanguage\"\r\n [messageOption]=\"messageOption\"\r\n [postalCode]=\"postalCode\"\r\n [locality]=\"locality\"\r\n [sortCriteria]=\"sortCriteriaStreet\" \r\n [maxSuggesionCount]=\"maxSuggestionStreet\"\r\n [visibleSuggesionCount]=\"visibleSuggestionStreetCount\"\r\n (addressChanged)=\"setAddress($event, 3)\"\r\n (messageChanged)=\"setValidationMessage($event)\"\r\n (focusEvent)=\"changeMinLevel($event)\"\r\n (textChangeEvent)=\"resetStreet($event)\"\r\n (clearInputEventEmitter)=\"onClearInputEventEmitter($event)\"\r\n (prefillEventEmitter)=\"onStreetPrefillEvent($event)\"></bp-street>\r\n\r\n <bp-street-number class=\"aacwidget-address-streetnumber\"\r\n [showDebugMessageToConsole]=\"showDebugMessageToConsole\"\r\n [baseUrl]=\"streetNumberUrl\"\r\n [selectedAddress]=\"streetAddress\"\r\n [prefillData]=\"streetNumberPrefillData\"\r\n [labelResourceKey]=\"'common.label.streetNumber'\"\r\n [inputText]=\"streetNumberInput\"\r\n [inputLang]=\"selectedLanguage\"\r\n [messageOption]=\"messageOption\"\r\n [postalCode]=\"postalCode\" \r\n [locality]=\"locality\" \r\n [streetName]=\"street\"\r\n [sortCriteria]=\"sortCriteriaStreetNb\"\r\n [maxSuggesionCount]=\"maxSuggestionStreetNb\" \r\n [visibleSuggesionCount]=\"visibleSuggestionStreetNbCount\"\r\n [notInListAllowed]=\"notInListAllowed\"\r\n (addressChanged)=\"setAddress($event, 2)\"\r\n (messageChanged)=\"setValidationMessage($event)\"\r\n (focusEvent)=\"changeMinLevel($event)\"\r\n (textChangeEvent)=\"resetStreetNumber($event, false)\"\r\n (clearInputEventEmitter)=\"onClearInputEventEmitter($event)\"\r\n (prefillEventEmitter)=\"onStreetNumberPrefillEvent($event)\"></bp-street-number>\r\n\r\n <bp-box-number class=\"aacwidget-address-boxnumber\"\r\n [showDebugMessageToConsole]=\"showDebugMessageToConsole\"\r\n [baseUrl]=\"boxNumberUrl\"\r\n [selectedAddress]=\"streetNumberAddress\"\r\n [prefillData]=\"boxNumberPrefillData\"\r\n [labelResourceKey]=\"'common.label.boxNumber'\"\r\n [inputLang]=\"selectedLanguage\"\r\n [messageOption]=\"messageOption\"\r\n [postalCode]=\"postalCode\" \r\n [locality]=\"locality\" \r\n [streetName]=\"street\" \r\n [streetNumber]=\"streetNumber\"\r\n [sortCriteria]=\"sortCriteriaBoxNb\" \r\n [maxSuggesionCount]=\"maxSuggestionBoxNb\"\r\n [visibleSuggesionCount]=\"visibleSuggestionBoxNbCount\"\r\n [notInListAllowed]=\"notInListAllowed\"\r\n (messageChanged)=\"setValidationMessage($event)\"\r\n (addressChanged)=\"setAddress($event, 1)\" \r\n (focusEvent)=\"changeMinLevel($event)\"\r\n (textChangeEvent)=\"resetBoxNumber($event, false)\"\r\n (clearInputEventEmitter)=\"onClearInputEventEmitter($event)\"\r\n (prefillEventEmitter)=\"onBoxNumberPrefillEvent($event)\"></bp-box-number>\r\n</div>",
5286
+ template: "\r\n<div class=\"aacwidget-address-container\">\r\n\r\n <div class=\"bpaac-dropdown-validation\" *ngIf=\"validationMessageOptionType === 'SHOW' \">\r\n <div class=\"bpaac-validated-icon\" *ngIf=\"selectedAddress && validationMessage!==null && validationMessage.messageType!==null\"></div>\r\n <!-- {{ validationMessage | translate }} -->\r\n {{ validationMessage.translatedMessage }}\r\n </div>\r\n\r\n <!-- bp-aacwidget-autocomplete-locality -->\r\n <bp-locality class=\"aacwidget-address-locality\" *ngIf=\"isComponentReady\"\r\n [isReadonly]=\"isReadonly\"\r\n [showDebugMessageToConsole]=\"showDebugMessageToConsole\"\r\n [baseUrl]=\"usedLocalityUrl\"\r\n [prefillData]=\"localityPrefillData\"\r\n [labelResourceKey]=\"'common.label.postalCode'\"\r\n [inputText]=\"postalCodeLocality\"\r\n [inputLang]=\"selectedLanguage\"\r\n [messageOption]=\"messageOption\"\r\n [sortCriteria]=\"sortCriteriaLocality\"\r\n [maxSuggesionCount]=\"maxSuggestionLocality\" \r\n [visibleSuggestionCount]=\"visibleSuggestionLocalityCount\"\r\n (addressChanged)=\"setAddress($event, 4)\"\r\n (messageChanged)=\"setValidationMessage($event)\"\r\n (focusEvent)=\"changeMinLevel($event)\" \r\n (textChangeEvent)=\"resetLocality($event)\"\r\n (clearInputEventEmitter)=\"onClearInputEventEmitter($event)\"\r\n (prefillEventEmitter)=\"onLocalityPrefillEvent($event)\"></bp-locality>\r\n\r\n <bp-street class=\"aacwidget-address-street\"\r\n [isReadonly]=\"isReadonly\"\r\n [showDebugMessageToConsole]=\"showDebugMessageToConsole\"\r\n [baseUrl]=\"usedStreetUrl\"\r\n [prefillData]=\"streetPrefillData\"\r\n [labelResourceKey]=\"'common.label.streetName'\"\r\n [inputText]=\"streetNameInput\"\r\n [inputLang]=\"selectedLanguage\"\r\n [messageOption]=\"messageOption\"\r\n [postalCode]=\"postalCode\"\r\n [locality]=\"locality\"\r\n [sortCriteria]=\"sortCriteriaStreet\" \r\n [maxSuggesionCount]=\"maxSuggestionStreet\"\r\n [visibleSuggesionCount]=\"visibleSuggestionStreetCount\"\r\n (addressChanged)=\"setAddress($event, 3)\"\r\n (messageChanged)=\"setValidationMessage($event)\"\r\n (focusEvent)=\"changeMinLevel($event)\"\r\n (textChangeEvent)=\"resetStreet($event)\"\r\n (clearInputEventEmitter)=\"onClearInputEventEmitter($event)\"\r\n (prefillEventEmitter)=\"onStreetPrefillEvent($event)\"></bp-street>\r\n\r\n <bp-street-number class=\"aacwidget-address-streetnumber\"\r\n [isReadonly]=\"isReadonly\"\r\n [showDebugMessageToConsole]=\"showDebugMessageToConsole\"\r\n [baseUrl]=\"usedStreetNumberUrl\"\r\n [selectedAddress]=\"streetAddress\"\r\n [prefillData]=\"streetNumberPrefillData\"\r\n [labelResourceKey]=\"'common.label.streetNumber'\"\r\n [inputText]=\"streetNumberInput\"\r\n [inputLang]=\"selectedLanguage\"\r\n [messageOption]=\"messageOption\"\r\n [postalCode]=\"postalCode\" \r\n [locality]=\"locality\" \r\n [streetName]=\"street\"\r\n [sortCriteria]=\"sortCriteriaStreetNb\"\r\n [maxSuggesionCount]=\"maxSuggestionStreetNb\" \r\n [visibleSuggesionCount]=\"visibleSuggestionStreetNbCount\"\r\n [notInListAllowed]=\"notInListAllowed\"\r\n (addressChanged)=\"setAddress($event, 2)\"\r\n (messageChanged)=\"setValidationMessage($event)\"\r\n (focusEvent)=\"changeMinLevel($event)\"\r\n (textChangeEvent)=\"resetStreetNumber($event, false)\"\r\n (clearInputEventEmitter)=\"onClearInputEventEmitter($event)\"\r\n (prefillEventEmitter)=\"onStreetNumberPrefillEvent($event)\"></bp-street-number>\r\n\r\n <bp-box-number class=\"aacwidget-address-boxnumber\"\r\n [isReadonly]=\"isReadonly\"\r\n [showDebugMessageToConsole]=\"showDebugMessageToConsole\"\r\n [baseUrl]=\"usedBoxNumberUrl\"\r\n [selectedAddress]=\"streetNumberAddress\"\r\n [prefillData]=\"boxNumberPrefillData\"\r\n [labelResourceKey]=\"'common.label.boxNumber'\"\r\n [inputLang]=\"selectedLanguage\"\r\n [messageOption]=\"messageOption\"\r\n [postalCode]=\"postalCode\" \r\n [locality]=\"locality\" \r\n [streetName]=\"street\" \r\n [streetNumber]=\"streetNumber\"\r\n [sortCriteria]=\"sortCriteriaBoxNb\" \r\n [maxSuggesionCount]=\"maxSuggestionBoxNb\"\r\n [visibleSuggesionCount]=\"visibleSuggestionBoxNbCount\"\r\n [notInListAllowed]=\"notInListAllowed\"\r\n (messageChanged)=\"setValidationMessage($event)\"\r\n (addressChanged)=\"setAddress($event, 1)\" \r\n (focusEvent)=\"changeMinLevel($event)\"\r\n (textChangeEvent)=\"resetBoxNumber($event, false)\"\r\n (clearInputEventEmitter)=\"onClearInputEventEmitter($event)\"\r\n (prefillEventEmitter)=\"onBoxNumberPrefillEvent($event)\"></bp-box-number>\r\n</div>",
5130
5287
  styles: [""]
5131
5288
  })
5132
5289
  ], LibAddressAutocompleteByComponentComponent);
@@ -5305,5 +5462,5 @@ var PrefilledParameters = /** @class */ (function () {
5305
5462
  * Generated bundle index. Do not edit.
5306
5463
  */
5307
5464
 
5308
- export { ADDRESSLEVEL, LibAddressAutocompleteByComponentComponent, LibAddressAutocompleteByComponentModule, LibAddressAutocompleteByComponentService, PrefilledParameters, ValidationMessageOptionType, ValidationMessageType, LocalityComponent as ɵa, AddressService as ɵb, HttpService as ɵc, LocaleService as ɵd, UnicodeService as ɵe, StreetComponent as ɵf, StreetNumberComponent as ɵg, BoxNumberComponent as ɵh, HighlightSuggestionPipe as ɵi, VisibleSuggestionDirective as ɵj };
5465
+ export { ADDRESSLEVEL, LibAddressAutocompleteByComponentComponent, LibAddressAutocompleteByComponentModule, LibAddressAutocompleteByComponentService, PrefilledParameters, ValidationMessageOptionType, ValidationMessageType, LocalityComponent as ɵa, AddressService as ɵb, HttpService as ɵc, LocaleService as ɵd, UnicodeService as ɵe, StreetComponent as ɵf, StreetNumberComponent as ɵg, BoxNumberComponent as ɵh, Nis9Service as ɵi, HighlightSuggestionPipe as ɵj, VisibleSuggestionDirective as ɵk };
5309
5466
  //# sourceMappingURL=bpost-bp-address-auto-complete-by-component.js.map