@bpost/bp-address-auto-complete-by-component 1.1.20 → 1.1.22

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.
@@ -41,6 +41,8 @@ export declare class BoxNumberComponent implements OnInit, AfterViewChecked, OnC
41
41
  µ: any;
42
42
  isReadonly: boolean;
43
43
  suggestionLevel: SuggestionLevelType;
44
+ nis9InResponse: boolean;
45
+ businessNameInResponse: boolean;
44
46
  messageChanged: EventEmitter<{
45
47
  messageType: ValidationMessageType;
46
48
  translatedMessage: string;
@@ -147,5 +149,5 @@ export declare class BoxNumberComponent implements OnInit, AfterViewChecked, OnC
147
149
  isDisabled(): boolean;
148
150
  onInputClick(): void;
149
151
  static ɵfac: i0.ɵɵFactoryDeclaration<BoxNumberComponent, never>;
150
- static ɵcmp: i0.ɵɵComponentDeclaration<BoxNumberComponent, "bp-box-number", never, { "prefillData": "prefillData"; "showDebugMessageToConsole": "showDebugMessageToConsole"; "labelResourceKey": "labelResourceKey"; "maxSuggesionCount": "maxSuggesionCount"; "visibleSuggesionCount": "visibleSuggesionCount"; "sortCriteria": "sortCriteria"; "baseUrl": "baseUrl"; "addressParams": "addressParams"; "postalCode": "postalCode"; "locality": "locality"; "streetName": "streetName"; "streetNumber": "streetNumber"; "selectedAddress": "selectedAddress"; "notInListAllowed": "notInListAllowed"; "allowNoValidation": "allowNoValidation"; "validatedByBackend": "validatedByBackend"; "numberOfExceptions": "numberOfExceptions"; "inputLang": "inputLang"; "messageOption": "messageOption"; "isReadonly": "isReadonly"; "suggestionLevel": "suggestionLevel"; }, { "messageChanged": "messageChanged"; "addressChanged": "addressChanged"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "textChangeEvent": "textChangeEvent"; "emptyResponseEvent": "emptyResponseEvent"; "clearInputEventEmitter": "clearInputEventEmitter"; "prefillEventEmitter": "prefillEventEmitter"; "boxNumberChanged": "boxNumberChanged"; "numberOfExceptionsEmitter": "numberOfExceptionsEmitter"; }, never, never>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<BoxNumberComponent, "bp-box-number", never, { "prefillData": "prefillData"; "showDebugMessageToConsole": "showDebugMessageToConsole"; "labelResourceKey": "labelResourceKey"; "maxSuggesionCount": "maxSuggesionCount"; "visibleSuggesionCount": "visibleSuggesionCount"; "sortCriteria": "sortCriteria"; "baseUrl": "baseUrl"; "addressParams": "addressParams"; "postalCode": "postalCode"; "locality": "locality"; "streetName": "streetName"; "streetNumber": "streetNumber"; "selectedAddress": "selectedAddress"; "notInListAllowed": "notInListAllowed"; "allowNoValidation": "allowNoValidation"; "validatedByBackend": "validatedByBackend"; "numberOfExceptions": "numberOfExceptions"; "inputLang": "inputLang"; "messageOption": "messageOption"; "isReadonly": "isReadonly"; "suggestionLevel": "suggestionLevel"; "nis9InResponse": "nis9InResponse"; "businessNameInResponse": "businessNameInResponse"; }, { "messageChanged": "messageChanged"; "addressChanged": "addressChanged"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "textChangeEvent": "textChangeEvent"; "emptyResponseEvent": "emptyResponseEvent"; "clearInputEventEmitter": "clearInputEventEmitter"; "prefillEventEmitter": "prefillEventEmitter"; "boxNumberChanged": "boxNumberChanged"; "numberOfExceptionsEmitter": "numberOfExceptionsEmitter"; }, never, never>;
151
153
  }
@@ -5,11 +5,9 @@ import { ValidationMessageType } from './enum/validation-message-type.enum';
5
5
  import { PrefillData } from './utils/prefill-data';
6
6
  import { PrefillEvent } from './utils/preflll.event';
7
7
  import { HttpService } from './services/http.service';
8
- import { Nis9Service } from './services/nis9.service';
9
8
  import { SuggestionLevelType } from './enum/suggestion-level-type.enum';
10
9
  import * as i0 from "@angular/core";
11
10
  export declare class LibAddressAutocompleteByComponentComponent implements OnInit, OnDestroy, OnChanges {
12
- private nis9Service;
13
11
  private httpService;
14
12
  autocompleteLocality: any;
15
13
  autocompleteStreet: any;
@@ -59,7 +57,7 @@ export declare class LibAddressAutocompleteByComponentComponent implements OnIni
59
57
  visibleSuggestionBoxNbCount: number;
60
58
  sortCriteriaBoxNb: string;
61
59
  allowNoValidation: boolean;
62
- validatedByBackend: boolean;
60
+ validatedByBackend: true;
63
61
  numberOfExceptions: number;
64
62
  boxNumberPrefillData: PrefillData;
65
63
  suggestionLevel: SuggestionLevelType;
@@ -91,9 +89,9 @@ export declare class LibAddressAutocompleteByComponentComponent implements OnIni
91
89
  apiKey: string;
92
90
  isReadonly: boolean;
93
91
  nis9InResponse: boolean;
94
- nis9ServiceURL: string;
92
+ businessNameInResponse: boolean;
95
93
  isComponentReady: boolean;
96
- constructor(nis9Service: Nis9Service, httpService: HttpService);
94
+ constructor(httpService: HttpService);
97
95
  ngOnInit(): void;
98
96
  isValidData(str: string): boolean;
99
97
  ngOnDestroy(): void;
@@ -140,5 +138,5 @@ export declare class LibAddressAutocompleteByComponentComponent implements OnIni
140
138
  onBoxNumberPrefillEvent_new(event: PrefillEvent): void;
141
139
  onBoxNumberPrefillEvent(event: PrefillEvent): void;
142
140
  static ɵfac: i0.ɵɵFactoryDeclaration<LibAddressAutocompleteByComponentComponent, never>;
143
- static ɵcmp: i0.ɵɵComponentDeclaration<LibAddressAutocompleteByComponentComponent, "bp-lib-address-autocomplete-by-component", never, { "inputLang": "inputLang"; "clearInput": "clearInput"; "validationMessageOption": "validationMessageOption"; "defaultLang": "defaultLang"; "showDebugMessageToConsole": "showDebugMessageToConsole"; "minLevel": "minLevel"; "notInListAllowed": "notInListAllowed"; "addressParams": "addressParams"; "messageOption": "messageOption"; "localityUrl": "localityUrl"; "maxSuggestionLocality": "maxSuggestionLocality"; "visibleSuggestionLocalityCount": "visibleSuggestionLocalityCount"; "sortCriteriaLocality": "sortCriteriaLocality"; "streetUrl": "streetUrl"; "maxSuggestionStreet": "maxSuggestionStreet"; "visibleSuggestionStreetCount": "visibleSuggestionStreetCount"; "sortCriteriaStreet": "sortCriteriaStreet"; "streetNumberUrl": "streetNumberUrl"; "maxSuggestionStreetNb": "maxSuggestionStreetNb"; "visibleSuggestionStreetNbCount": "visibleSuggestionStreetNbCount"; "sortCriteriaStreetNb": "sortCriteriaStreetNb"; "boxNumberUrl": "boxNumberUrl"; "maxSuggestionBoxNb": "maxSuggestionBoxNb"; "visibleSuggestionBoxNbCount": "visibleSuggestionBoxNbCount"; "sortCriteriaBoxNb": "sortCriteriaBoxNb"; "allowNoValidation": "allowNoValidation"; "validatedByBackend": "validatedByBackend"; "numberOfExceptions": "numberOfExceptions"; "suggestionLevel": "suggestionLevel"; "apiKey": "apiKey"; "isReadonly": "isReadonly"; "nis9InResponse": "nis9InResponse"; "nis9ServiceURL": "nis9ServiceURL"; }, { "addressCompleteEventEmitter": "addressCompleteEventEmitter"; "validationMessageEventEmitter": "validationMessageEventEmitter"; "clearInputEventEmitter": "clearInputEventEmitter"; "validatedByBackendEventEmitter": "validatedByBackendEventEmitter"; "numberOfExceptionsEventEmitter": "numberOfExceptionsEventEmitter"; }, never, never>;
141
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibAddressAutocompleteByComponentComponent, "bp-lib-address-autocomplete-by-component", never, { "inputLang": "inputLang"; "clearInput": "clearInput"; "validationMessageOption": "validationMessageOption"; "defaultLang": "defaultLang"; "showDebugMessageToConsole": "showDebugMessageToConsole"; "minLevel": "minLevel"; "notInListAllowed": "notInListAllowed"; "addressParams": "addressParams"; "messageOption": "messageOption"; "localityUrl": "localityUrl"; "maxSuggestionLocality": "maxSuggestionLocality"; "visibleSuggestionLocalityCount": "visibleSuggestionLocalityCount"; "sortCriteriaLocality": "sortCriteriaLocality"; "streetUrl": "streetUrl"; "maxSuggestionStreet": "maxSuggestionStreet"; "visibleSuggestionStreetCount": "visibleSuggestionStreetCount"; "sortCriteriaStreet": "sortCriteriaStreet"; "streetNumberUrl": "streetNumberUrl"; "maxSuggestionStreetNb": "maxSuggestionStreetNb"; "visibleSuggestionStreetNbCount": "visibleSuggestionStreetNbCount"; "sortCriteriaStreetNb": "sortCriteriaStreetNb"; "boxNumberUrl": "boxNumberUrl"; "maxSuggestionBoxNb": "maxSuggestionBoxNb"; "visibleSuggestionBoxNbCount": "visibleSuggestionBoxNbCount"; "sortCriteriaBoxNb": "sortCriteriaBoxNb"; "allowNoValidation": "allowNoValidation"; "validatedByBackend": "validatedByBackend"; "numberOfExceptions": "numberOfExceptions"; "suggestionLevel": "suggestionLevel"; "apiKey": "apiKey"; "isReadonly": "isReadonly"; "nis9InResponse": "nis9InResponse"; "businessNameInResponse": "businessNameInResponse"; }, { "addressCompleteEventEmitter": "addressCompleteEventEmitter"; "validationMessageEventEmitter": "validationMessageEventEmitter"; "clearInputEventEmitter": "clearInputEventEmitter"; "validatedByBackendEventEmitter": "validatedByBackendEventEmitter"; "numberOfExceptionsEventEmitter": "numberOfExceptionsEventEmitter"; }, never, never>;
144
142
  }
@@ -11,10 +11,14 @@ export declare class QueryParameters {
11
11
  sortByStreetName: boolean;
12
12
  sortByStreetNumber: boolean;
13
13
  sortByBoxNumber: boolean;
14
+ includeNisCode: boolean;
15
+ includeBusinessName: boolean;
14
16
  constructor(init?: Partial<QueryParameters>);
15
17
  sortByPostalCode(enable: boolean): void;
16
18
  sortByLocalityname(enable: boolean): void;
17
19
  sortByStreet(enable: boolean): void;
18
20
  sortByStreetNb(enable: boolean): void;
19
21
  sortByBox(enable: boolean): void;
22
+ setIncludeNisCode(enable: boolean): void;
23
+ setIncludeBusinessName(enable: boolean): void;
20
24
  }
@@ -35,6 +35,8 @@ export declare class StreetNumberComponent implements OnInit, AfterViewChecked,
35
35
  allowNoValidation: boolean;
36
36
  validatedByBackend: boolean;
37
37
  numberOfExceptions: number;
38
+ nis9InResponse: boolean;
39
+ businessNameInResponse: boolean;
38
40
  set inputLang(val: string);
39
41
  messageOption: string;
40
42
  inputText: string;
@@ -147,5 +149,5 @@ export declare class StreetNumberComponent implements OnInit, AfterViewChecked,
147
149
  isDisabled(): boolean;
148
150
  onInputClick(): void;
149
151
  static ɵfac: i0.ɵɵFactoryDeclaration<StreetNumberComponent, never>;
150
- static ɵcmp: i0.ɵɵComponentDeclaration<StreetNumberComponent, "bp-street-number", never, { "prefillData": "prefillData"; "showDebugMessageToConsole": "showDebugMessageToConsole"; "labelResourceKey": "labelResourceKey"; "maxSuggesionCount": "maxSuggesionCount"; "visibleSuggesionCount": "visibleSuggesionCount"; "sortCriteria": "sortCriteria"; "baseUrl": "baseUrl"; "addressParams": "addressParams"; "postalCode": "postalCode"; "locality": "locality"; "streetName": "streetName"; "notInListAllowed": "notInListAllowed"; "selectedAddress": "selectedAddress"; "allowNoValidation": "allowNoValidation"; "validatedByBackend": "validatedByBackend"; "numberOfExceptions": "numberOfExceptions"; "inputLang": "inputLang"; "messageOption": "messageOption"; "inputText": "inputText"; "isReadonly": "isReadonly"; "suggestionLevel": "suggestionLevel"; }, { "messageChanged": "messageChanged"; "addressChanged": "addressChanged"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "textChangeEvent": "textChangeEvent"; "emptyResponseEvent": "emptyResponseEvent"; "clearInputEventEmitter": "clearInputEventEmitter"; "prefillEventEmitter": "prefillEventEmitter"; "streetNumberChanged": "streetNumberChanged"; "numberOfExceptionsEmitter": "numberOfExceptionsEmitter"; }, never, never>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<StreetNumberComponent, "bp-street-number", never, { "prefillData": "prefillData"; "showDebugMessageToConsole": "showDebugMessageToConsole"; "labelResourceKey": "labelResourceKey"; "maxSuggesionCount": "maxSuggesionCount"; "visibleSuggesionCount": "visibleSuggesionCount"; "sortCriteria": "sortCriteria"; "baseUrl": "baseUrl"; "addressParams": "addressParams"; "postalCode": "postalCode"; "locality": "locality"; "streetName": "streetName"; "notInListAllowed": "notInListAllowed"; "selectedAddress": "selectedAddress"; "allowNoValidation": "allowNoValidation"; "validatedByBackend": "validatedByBackend"; "numberOfExceptions": "numberOfExceptions"; "nis9InResponse": "nis9InResponse"; "businessNameInResponse": "businessNameInResponse"; "inputLang": "inputLang"; "messageOption": "messageOption"; "inputText": "inputText"; "isReadonly": "isReadonly"; "suggestionLevel": "suggestionLevel"; }, { "messageChanged": "messageChanged"; "addressChanged": "addressChanged"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "textChangeEvent": "textChangeEvent"; "emptyResponseEvent": "emptyResponseEvent"; "clearInputEventEmitter": "clearInputEventEmitter"; "prefillEventEmitter": "prefillEventEmitter"; "streetNumberChanged": "streetNumberChanged"; "numberOfExceptionsEmitter": "numberOfExceptionsEmitter"; }, never, never>;
151
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpost/bp-address-auto-complete-by-component",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.2.0",
6
6
  "@angular/core": "^13.2.0"
@@ -1,26 +0,0 @@
1
- import { Injectable } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common/http";
4
- export class Nis9Service {
5
- constructor(httpClient) {
6
- this.httpClient = httpClient;
7
- // https://bgs.bpost.be/set-selection-circle?lng=4.360537572541948&lat=50.84063582806037&radius=0.001
8
- this.nis9ServiceURL = '';
9
- }
10
- setNis9ServiceURL(nis9ServiceURL) {
11
- this.nis9ServiceURL = nis9ServiceURL;
12
- }
13
- determineNis9Data(longitude, latitude) {
14
- const apiUrl = `https://bgs.bpost.be/set-selection-circle?lng=${longitude}&lat=${latitude}&radius=0.001`;
15
- return this.httpClient.get(apiUrl);
16
- }
17
- }
18
- Nis9Service.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: Nis9Service, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
19
- Nis9Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: Nis9Service, providedIn: 'root' });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: Nis9Service, decorators: [{
21
- type: Injectable,
22
- args: [{
23
- providedIn: 'root'
24
- }]
25
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmlzOS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGliLWFkZHJlc3MtYXV0b2NvbXBsZXRlLWJ5LWNvbXBvbmVudC9zcmMvbGliL3NlcnZpY2VzL25pczkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFPM0MsTUFBTSxPQUFPLFdBQVc7SUFLcEIsWUFBb0IsVUFBc0I7UUFBdEIsZUFBVSxHQUFWLFVBQVUsQ0FBWTtRQUgxQyxxR0FBcUc7UUFDN0YsbUJBQWMsR0FBQyxFQUFFLENBQUM7SUFFb0IsQ0FBQztJQUUvQyxpQkFBaUIsQ0FBQyxjQUFzQjtRQUNwQyxJQUFJLENBQUMsY0FBYyxHQUFDLGNBQWMsQ0FBQztJQUN2QyxDQUFDO0lBRUQsaUJBQWlCLENBQUMsU0FBUyxFQUFFLFFBQVE7UUFFakMsTUFBTSxNQUFNLEdBQUMsaURBQWlELFNBQVMsUUFBUSxRQUFRLGVBQWUsQ0FBQztRQUN2RyxPQUFPLElBQUksQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFPLE1BQU0sQ0FBRSxDQUFDO0lBQzlDLENBQUM7O3dHQWZRLFdBQVc7NEdBQVgsV0FBVyxjQUZSLE1BQU07MkZBRVQsV0FBVztrQkFIdkIsVUFBVTttQkFBQztvQkFDUixVQUFVLEVBQUUsTUFBTTtpQkFDckIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBIdHRwQ2xpZW50IH0gZnJvbSBcIkBhbmd1bGFyL2NvbW1vbi9odHRwXCI7XHJcbmltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xyXG5pbXBvcnQgeyBPYnNlcnZhYmxlIH0gZnJvbSBcInJ4anNcIjtcclxuXHJcblxyXG5ASW5qZWN0YWJsZSh7XHJcbiAgICBwcm92aWRlZEluOiAncm9vdCdcclxufSlcclxuZXhwb3J0IGNsYXNzIE5pczlTZXJ2aWNlIHtcclxuXHJcbiAgICAvLyBodHRwczovL2Jncy5icG9zdC5iZS9zZXQtc2VsZWN0aW9uLWNpcmNsZT9sbmc9NC4zNjA1Mzc1NzI1NDE5NDgmbGF0PTUwLjg0MDYzNTgyODA2MDM3JnJhZGl1cz0wLjAwMVxyXG4gICAgcHJpdmF0ZSBuaXM5U2VydmljZVVSTD0nJztcclxuICAgIFxyXG4gICAgY29uc3RydWN0b3IocHJpdmF0ZSBodHRwQ2xpZW50OiBIdHRwQ2xpZW50KSB7IH1cclxuICAgICAgXHJcbiAgICBzZXROaXM5U2VydmljZVVSTChuaXM5U2VydmljZVVSTDogc3RyaW5nKSB7XHJcbiAgICAgICAgdGhpcy5uaXM5U2VydmljZVVSTD1uaXM5U2VydmljZVVSTDtcclxuICAgIH1cclxuXHJcbiAgICBkZXRlcm1pbmVOaXM5RGF0YShsb25naXR1ZGUsIGxhdGl0dWRlKTogT2JzZXJ2YWJsZTxhbnk+XHJcbiAgICB7XHJcbiAgICAgICAgY29uc3QgYXBpVXJsPWBodHRwczovL2Jncy5icG9zdC5iZS9zZXQtc2VsZWN0aW9uLWNpcmNsZT9sbmc9JHtsb25naXR1ZGV9JmxhdD0ke2xhdGl0dWRlfSZyYWRpdXM9MC4wMDFgO1xyXG4gICAgICAgIHJldHVybiB0aGlzLmh0dHBDbGllbnQuZ2V0PGFueT4oIGFwaVVybCApO1xyXG4gICAgfVxyXG59Il19
@@ -1,12 +0,0 @@
1
- import { HttpClient } from "@angular/common/http";
2
- import { Observable } from "rxjs";
3
- import * as i0 from "@angular/core";
4
- export declare class Nis9Service {
5
- private httpClient;
6
- private nis9ServiceURL;
7
- constructor(httpClient: HttpClient);
8
- setNis9ServiceURL(nis9ServiceURL: string): void;
9
- determineNis9Data(longitude: any, latitude: any): Observable<any>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<Nis9Service, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<Nis9Service>;
12
- }