@bpost/bp-address-auto-complete-by-component 1.1.21 → 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.
- package/VERSION.md +6 -0
- package/esm2020/lib/lib-address-autocomplete-by-component.component.mjs +58 -83
- package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs +51 -98
- package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs.map +1 -1
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs +51 -98
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs.map +1 -1
- package/lib/lib-address-autocomplete-by-component.component.d.ts +2 -5
- package/package.json +1 -1
- package/esm2020/lib/services/nis9.service.mjs +0 -26
- package/lib/services/nis9.service.d.ts +0 -12
|
@@ -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;
|
|
@@ -92,9 +90,8 @@ export declare class LibAddressAutocompleteByComponentComponent implements OnIni
|
|
|
92
90
|
isReadonly: boolean;
|
|
93
91
|
nis9InResponse: boolean;
|
|
94
92
|
businessNameInResponse: boolean;
|
|
95
|
-
nis9ServiceURL: string;
|
|
96
93
|
isComponentReady: boolean;
|
|
97
|
-
constructor(
|
|
94
|
+
constructor(httpService: HttpService);
|
|
98
95
|
ngOnInit(): void;
|
|
99
96
|
isValidData(str: string): boolean;
|
|
100
97
|
ngOnDestroy(): void;
|
|
@@ -141,5 +138,5 @@ export declare class LibAddressAutocompleteByComponentComponent implements OnIni
|
|
|
141
138
|
onBoxNumberPrefillEvent_new(event: PrefillEvent): void;
|
|
142
139
|
onBoxNumberPrefillEvent(event: PrefillEvent): void;
|
|
143
140
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibAddressAutocompleteByComponentComponent, never>;
|
|
144
|
-
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";
|
|
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>;
|
|
145
142
|
}
|
package/package.json
CHANGED
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmlzOS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGliLWFkZHJlc3MtYXV0b2NvbXBsZXRlLWJ5LWNvbXBvbmVudC9zcmMvbGliL3NlcnZpY2VzL25pczkuc2VydmljZS50cyJ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pcmNsZT9sbmc9NC4zNjA1Mzc1NzI1NDE5NDgmbGF0PTUwLjg0MDYzNTgyODA2MDM3JnJhZGl1cz0wLjAwMVxyXG4gICAgcHJpdmF0ZSBuaXM5U2VydmljZVVSTD0nJztcclxuICAgIFxyXG4gICAgY29uc3RydWN0b3IocHJpdmF0ZSBodHRwQ2xpZW50OiBIdHRwQ2xpZW50KSB7IH1cclxuICAgICAgXHJcbiAgICBzZXROaXM5U2VydmljZVVSTChuaXM5U2VydmljZVVSTDogc3RyaW5nKSB7XHJcbiAgICAgICAgdGhpcy5uaXM5U2VydmljZVVSTD1uaXM5U2VydmljZVVSTDtcclxuICAgIH1cclxuXHJcbiAgICBkZXRlcm1pbmVOaXM5RGF0YShsb25naXR1ZGUsIGxhdGl0dWRlKTogT2JzZXJ2YWJsZTxhbnk+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
|
-
}
|