@bpost/bp-address-auto-complete-by-component 1.1.2 → 1.1.3
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 +30 -0
- package/bpost-bp-address-auto-complete-by-component.d.ts +1 -11
- package/esm2020/bpost-bp-address-auto-complete-by-component.mjs +5 -0
- package/esm2020/lib/box-number/box-number.component.mjs +800 -0
- package/esm2020/lib/enum/address-level.enum.mjs +8 -0
- package/esm2020/lib/enum/index.mjs +7 -0
- package/esm2020/lib/enum/input-name.enum.mjs +8 -0
- package/esm2020/lib/enum/source-type.enum.mjs +5 -0
- package/esm2020/lib/enum/suggestion-level-type.enum.mjs +8 -0
- package/esm2020/lib/enum/validation-message-option-type.enum.mjs +6 -0
- package/esm2020/lib/enum/validation-message-type.enum.mjs +7 -0
- package/esm2020/lib/lib-address-autocomplete-by-component.component.mjs +1233 -0
- package/esm2020/lib/lib-address-autocomplete-by-component.module.mjs +65 -0
- package/esm2020/lib/lib-address-autocomplete-by-component.service.mjs +14 -0
- package/esm2020/lib/locality/locality.component.mjs +747 -0
- package/{esm2015/lib/model/Locality.js → esm2020/lib/model/Box.mjs} +2 -2
- package/esm2020/lib/model/Locality.mjs +30 -0
- package/esm2020/lib/model/Street.mjs +30 -0
- package/esm2020/lib/model/query-parameters.model.mjs +21 -0
- package/esm2020/lib/services/adress.service.mjs +64 -0
- package/esm2020/lib/services/http.service.mjs +57 -0
- package/esm2020/lib/services/locale.service.mjs +37 -0
- package/esm2020/lib/services/nis9.service.mjs +26 -0
- package/esm2020/lib/services/unicode.service.mjs +376 -0
- package/esm2020/lib/street/street.component.mjs +725 -0
- package/esm2020/lib/street-number/street-number.component.mjs +891 -0
- package/esm2020/lib/utils/constants.mjs +2 -0
- package/esm2020/lib/utils/domhandler.mjs +47 -0
- package/esm2020/lib/utils/highlight-suggestion.pipe.mjs +62 -0
- package/{esm5/lib/utils/prefill-data.js → esm2020/lib/utils/prefill-data.mjs} +5 -7
- package/esm2020/lib/utils/prefilled-parameters.mjs +23 -0
- package/esm2020/lib/utils/preflll.event.mjs +7 -0
- package/esm2020/lib/utils/visible-suggestion.directive.mjs +39 -0
- package/esm2020/public-api.mjs +9 -0
- package/fesm2015/{bpost-bp-address-auto-complete-by-component.js → bpost-bp-address-auto-complete-by-component.mjs} +833 -811
- package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs.map +1 -0
- package/{fesm5/bpost-bp-address-auto-complete-by-component.js → fesm2020/bpost-bp-address-auto-complete-by-component.mjs} +1768 -1951
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs.map +1 -0
- package/lib/box-number/box-number.component.d.ts +6 -0
- package/lib/enum/index.d.ts +3 -0
- package/lib/enum/suggestion-level-type.enum.d.ts +5 -0
- package/lib/lib-address-autocomplete-by-component.component.d.ts +7 -0
- package/lib/lib-address-autocomplete-by-component.module.d.ts +15 -0
- package/lib/lib-address-autocomplete-by-component.service.d.ts +3 -0
- package/lib/locality/locality.component.d.ts +3 -0
- package/lib/services/adress.service.d.ts +3 -0
- package/lib/services/http.service.d.ts +5 -0
- package/lib/services/locale.service.d.ts +3 -0
- package/lib/services/nis9.service.d.ts +3 -0
- package/lib/services/unicode.service.d.ts +3 -0
- package/lib/street/street.component.d.ts +3 -0
- package/lib/street-number/street-number.component.d.ts +6 -1
- package/lib/utils/constants.d.ts +1 -0
- package/lib/utils/highlight-suggestion.pipe.d.ts +3 -0
- package/lib/utils/visible-suggestion.directive.d.ts +3 -0
- package/package.json +23 -13
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/.editorconfig +0 -0
- package/tutorial/tutorial/aacwidget-tutorial/README.md +27 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/angular.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/browserslist +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/e2e/protractor.conf.js +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/e2e/src/app.e2e-spec.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/e2e/src/app.po.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/e2e/tsconfig.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/karma.conf.js +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/package-lock.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/package.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app-routing.module.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app.component.html +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app.component.scss +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app.component.spec.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app.component.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app.module.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/widget-full/widget-full.component.html +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/widget-full/widget-full.component.scss +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/widget-full/widget-full.component.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/widget-simple/widget-simple.component.html +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/widget-simple/widget-simple.component.scss +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/widget-simple/widget-simple.component.spec.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/widget-simple/widget-simple.component.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/assets/.gitkeep +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/assets/aacwidget/i18n/de.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/assets/aacwidget/i18n/en.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/assets/aacwidget/i18n/fr.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/assets/aacwidget/i18n/nl.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/assets/aacwidget/scss/aacwidget-custom.scss +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/assets/aacwidget/scss/aacwidget-default.scss +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/environments/environment.prod.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/environments/environment.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/favicon.ico +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/index.html +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/main.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/polyfills.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/styles.scss +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/test.ts +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/tsconfig.app.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/tsconfig.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/tsconfig.spec.json +0 -0
- package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/tslint.json +0 -0
- package/tutorial/{tutorial-videos.txt → tutorial/tutorial-videos.txt} +0 -0
- package/bpost-bp-address-auto-complete-by-component.metadata.json +0 -1
- package/bundles/bpost-bp-address-auto-complete-by-component.umd.js +0 -5691
- package/bundles/bpost-bp-address-auto-complete-by-component.umd.js.map +0 -1
- package/bundles/bpost-bp-address-auto-complete-by-component.umd.min.js +0 -16
- package/bundles/bpost-bp-address-auto-complete-by-component.umd.min.js.map +0 -1
- package/esm2015/bpost-bp-address-auto-complete-by-component.js +0 -16
- package/esm2015/lib/box-number/box-number.component.js +0 -811
- package/esm2015/lib/enum/address-level.enum.js +0 -8
- package/esm2015/lib/enum/index.js +0 -4
- package/esm2015/lib/enum/input-name.enum.js +0 -8
- package/esm2015/lib/enum/source-type.enum.js +0 -5
- package/esm2015/lib/enum/validation-message-option-type.enum.js +0 -6
- package/esm2015/lib/enum/validation-message-type.enum.js +0 -7
- package/esm2015/lib/lib-address-autocomplete-by-component.component.js +0 -1169
- package/esm2015/lib/lib-address-autocomplete-by-component.module.js +0 -42
- package/esm2015/lib/lib-address-autocomplete-by-component.service.js +0 -14
- package/esm2015/lib/locality/locality.component.js +0 -769
- package/esm2015/lib/model/Box.js +0 -30
- package/esm2015/lib/model/Street.js +0 -30
- package/esm2015/lib/model/query-parameters.model.js +0 -21
- package/esm2015/lib/services/adress.service.js +0 -68
- package/esm2015/lib/services/http.service.js +0 -53
- package/esm2015/lib/services/locale.service.js +0 -39
- package/esm2015/lib/services/nis9.service.js +0 -30
- package/esm2015/lib/services/unicode.service.js +0 -376
- package/esm2015/lib/street/street.component.js +0 -749
- package/esm2015/lib/street-number/street-number.component.js +0 -900
- package/esm2015/lib/utils/domhandler.js +0 -47
- package/esm2015/lib/utils/highlight-suggestion.pipe.js +0 -63
- package/esm2015/lib/utils/prefill-data.js +0 -24
- package/esm2015/lib/utils/prefilled-parameters.js +0 -23
- package/esm2015/lib/utils/preflll.event.js +0 -7
- package/esm2015/lib/utils/visible-suggestion.directive.js +0 -42
- package/esm2015/public-api.js +0 -9
- package/esm5/bpost-bp-address-auto-complete-by-component.js +0 -16
- package/esm5/lib/box-number/box-number.component.js +0 -831
- package/esm5/lib/enum/address-level.enum.js +0 -8
- package/esm5/lib/enum/index.js +0 -4
- package/esm5/lib/enum/input-name.enum.js +0 -8
- package/esm5/lib/enum/source-type.enum.js +0 -5
- package/esm5/lib/enum/validation-message-option-type.enum.js +0 -6
- package/esm5/lib/enum/validation-message-type.enum.js +0 -7
- package/esm5/lib/lib-address-autocomplete-by-component.component.js +0 -1185
- package/esm5/lib/lib-address-autocomplete-by-component.module.js +0 -45
- package/esm5/lib/lib-address-autocomplete-by-component.service.js +0 -16
- package/esm5/lib/locality/locality.component.js +0 -825
- package/esm5/lib/model/Box.js +0 -35
- package/esm5/lib/model/Locality.js +0 -35
- package/esm5/lib/model/Street.js +0 -35
- package/esm5/lib/model/query-parameters.model.js +0 -23
- package/esm5/lib/services/adress.service.js +0 -72
- package/esm5/lib/services/http.service.js +0 -55
- package/esm5/lib/services/locale.service.js +0 -40
- package/esm5/lib/services/nis9.service.js +0 -31
- package/esm5/lib/services/unicode.service.js +0 -379
- package/esm5/lib/street/street.component.js +0 -794
- package/esm5/lib/street-number/street-number.component.js +0 -920
- package/esm5/lib/utils/domhandler.js +0 -51
- package/esm5/lib/utils/highlight-suggestion.pipe.js +0 -75
- package/esm5/lib/utils/prefilled-parameters.js +0 -25
- package/esm5/lib/utils/preflll.event.js +0 -9
- package/esm5/lib/utils/visible-suggestion.directive.js +0 -43
- package/esm5/public-api.js +0 -9
- package/fesm2015/bpost-bp-address-auto-complete-by-component.js.map +0 -1
- package/fesm5/bpost-bp-address-auto-complete-by-component.js.map +0 -1
|
@@ -9,6 +9,8 @@ import { QueryParameters } from '../model/query-parameters.model';
|
|
|
9
9
|
import { PrefillData } from '../utils/prefill-data';
|
|
10
10
|
import { SourceType } from '../enum/source-type.enum';
|
|
11
11
|
import { PrefillEvent } from '../utils/preflll.event';
|
|
12
|
+
import { SuggestionLevelType } from '../enum/suggestion-level-type.enum';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
12
14
|
export declare class BoxNumberComponent implements OnInit, AfterViewChecked, OnChanges, OnDestroy {
|
|
13
15
|
private addressService;
|
|
14
16
|
private localeService;
|
|
@@ -35,6 +37,7 @@ export declare class BoxNumberComponent implements OnInit, AfterViewChecked, OnC
|
|
|
35
37
|
messageOption: string;
|
|
36
38
|
µ: any;
|
|
37
39
|
isReadonly: boolean;
|
|
40
|
+
suggestionLevel: SuggestionLevelType;
|
|
38
41
|
messageChanged: EventEmitter<{
|
|
39
42
|
messageType: ValidationMessageType;
|
|
40
43
|
translatedMessage: string;
|
|
@@ -46,6 +49,7 @@ export declare class BoxNumberComponent implements OnInit, AfterViewChecked, OnC
|
|
|
46
49
|
emptyResponseEvent: EventEmitter<any>;
|
|
47
50
|
clearInputEventEmitter: EventEmitter<string>;
|
|
48
51
|
prefillEventEmitter: EventEmitter<PrefillEvent>;
|
|
52
|
+
boxNumberChanged: EventEmitter<string>;
|
|
49
53
|
searchText: string;
|
|
50
54
|
addressIsValidated: boolean;
|
|
51
55
|
suggestionValidationMessage: string;
|
|
@@ -134,4 +138,6 @@ export declare class BoxNumberComponent implements OnInit, AfterViewChecked, OnC
|
|
|
134
138
|
showAddressNotFoundMessage(): void;
|
|
135
139
|
isDisabled(): boolean;
|
|
136
140
|
onInputClick(): void;
|
|
141
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BoxNumberComponent, never>;
|
|
142
|
+
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"; "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"; }, never, never>;
|
|
137
143
|
}
|
package/lib/enum/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { PrefillData } from './utils/prefill-data';
|
|
|
6
6
|
import { PrefillEvent } from './utils/preflll.event';
|
|
7
7
|
import { HttpService } from './services/http.service';
|
|
8
8
|
import { Nis9Service } from './services/nis9.service';
|
|
9
|
+
import { SuggestionLevelType } from './enum/suggestion-level-type.enum';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
9
11
|
export declare class LibAddressAutocompleteByComponentComponent implements OnInit, OnDestroy, OnChanges {
|
|
10
12
|
private nis9Service;
|
|
11
13
|
private httpService;
|
|
@@ -57,6 +59,7 @@ export declare class LibAddressAutocompleteByComponentComponent implements OnIni
|
|
|
57
59
|
visibleSuggestionBoxNbCount: number;
|
|
58
60
|
sortCriteriaBoxNb: string;
|
|
59
61
|
boxNumberPrefillData: PrefillData;
|
|
62
|
+
suggestionLevel: SuggestionLevelType;
|
|
60
63
|
boxNumber: string;
|
|
61
64
|
completeAddress: string;
|
|
62
65
|
emittedAddress: any;
|
|
@@ -106,6 +109,8 @@ export declare class LibAddressAutocompleteByComponentComponent implements OnIni
|
|
|
106
109
|
enterPrefillMode(): void;
|
|
107
110
|
quitPrefillMode(): void;
|
|
108
111
|
setAddress(address: any, level?: number): void;
|
|
112
|
+
setAddressStreetNumber(streetNumber: string): void;
|
|
113
|
+
setAddressBoxNumber(boxNumber: string): void;
|
|
109
114
|
setLanguage(lang: string): void;
|
|
110
115
|
setValidationMessage(/*message: string*/ message: {
|
|
111
116
|
messageType: ValidationMessageType;
|
|
@@ -123,4 +128,6 @@ export declare class LibAddressAutocompleteByComponentComponent implements OnIni
|
|
|
123
128
|
onStreetPrefillEvent(event: PrefillEvent): void;
|
|
124
129
|
onStreetNumberPrefillEvent(event: PrefillEvent): void;
|
|
125
130
|
onBoxNumberPrefillEvent(event: PrefillEvent): void;
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibAddressAutocompleteByComponentComponent, never>;
|
|
132
|
+
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"; "suggestionLevel": "suggestionLevel"; "apiKey": "apiKey"; "isReadonly": "isReadonly"; "nis9InResponse": "nis9InResponse"; "nis9ServiceURL": "nis9ServiceURL"; }, { "addressCompleteEventEmitter": "addressCompleteEventEmitter"; "validationMessageEventEmitter": "validationMessageEventEmitter"; "clearInputEventEmitter": "clearInputEventEmitter"; }, never, never>;
|
|
126
133
|
}
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./utils/highlight-suggestion.pipe";
|
|
3
|
+
import * as i2 from "./utils/visible-suggestion.directive";
|
|
4
|
+
import * as i3 from "./lib-address-autocomplete-by-component.component";
|
|
5
|
+
import * as i4 from "./locality/locality.component";
|
|
6
|
+
import * as i5 from "./street/street.component";
|
|
7
|
+
import * as i6 from "./street-number/street-number.component";
|
|
8
|
+
import * as i7 from "./box-number/box-number.component";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@angular/common/http";
|
|
11
|
+
import * as i10 from "@angular/forms";
|
|
12
|
+
import * as i11 from "@ngx-translate/core";
|
|
1
13
|
export declare class LibAddressAutocompleteByComponentModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibAddressAutocompleteByComponentModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LibAddressAutocompleteByComponentModule, [typeof i1.HighlightSuggestionPipe, typeof i2.VisibleSuggestionDirective, typeof i3.LibAddressAutocompleteByComponentComponent, typeof i4.LocalityComponent, typeof i5.StreetComponent, typeof i6.StreetNumberComponent, typeof i7.BoxNumberComponent], [typeof i8.CommonModule, typeof i9.HttpClientModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.TranslateModule], [typeof i3.LibAddressAutocompleteByComponentComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LibAddressAutocompleteByComponentModule>;
|
|
2
17
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare class LibAddressAutocompleteByComponentService {
|
|
2
3
|
constructor();
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibAddressAutocompleteByComponentService, never>;
|
|
5
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LibAddressAutocompleteByComponentService>;
|
|
3
6
|
}
|
|
@@ -9,6 +9,7 @@ import { UnicodeService } from '../services/unicode.service';
|
|
|
9
9
|
import { SourceType } from '../enum/source-type.enum';
|
|
10
10
|
import { PrefillData } from '../utils/prefill-data';
|
|
11
11
|
import { PrefillEvent } from '../utils/preflll.event';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
12
13
|
export declare class LocalityComponent implements OnInit, OnChanges, OnDestroy, AfterViewChecked {
|
|
13
14
|
private addressService;
|
|
14
15
|
private localeService;
|
|
@@ -116,4 +117,6 @@ export declare class LocalityComponent implements OnInit, OnChanges, OnDestroy,
|
|
|
116
117
|
selectFirstInListOfSuggesions(): void;
|
|
117
118
|
setSearchText(value: any): void;
|
|
118
119
|
setSearchTextBasedOnArrowSelection(newVal: any, oldVal: any): void;
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalityComponent, never>;
|
|
121
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocalityComponent, "bp-locality", never, { "labelResourceKey": "labelResourceKey"; "messageOption": "messageOption"; "maxSuggesionCount": "maxSuggesionCount"; "visibleSuggestionCount": "visibleSuggestionCount"; "sortCriteria": "sortCriteria"; "baseUrl": "baseUrl"; "inputText": "inputText"; "prefillData": "prefillData"; "showDebugMessageToConsole": "showDebugMessageToConsole"; "inputLang": "inputLang"; "isReadonly": "isReadonly"; }, { "messageChanged": "messageChanged"; "addressChanged": "addressChanged"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "textChangeEvent": "textChangeEvent"; "clearInputEventEmitter": "clearInputEventEmitter"; "prefillEventEmitter": "prefillEventEmitter"; }, never, never>;
|
|
119
122
|
}
|
|
@@ -5,6 +5,7 @@ import { QueryParameters } from '../model/query-parameters.model';
|
|
|
5
5
|
import { Locality } from '../model/Locality';
|
|
6
6
|
import { Street } from '../model/Street';
|
|
7
7
|
import { Box } from '../model/Box';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class AddressService {
|
|
9
10
|
private httpService;
|
|
10
11
|
private domain;
|
|
@@ -20,4 +21,6 @@ export declare class AddressService {
|
|
|
20
21
|
getBox(baseUrl: string, locality: string, postalcode: string, params: QueryParameters): Observable<Box>;
|
|
21
22
|
private handleGetBox;
|
|
22
23
|
handleError(error: HttpErrorResponse): Observable<never>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddressService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AddressService>;
|
|
23
26
|
}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class HttpService {
|
|
4
5
|
private httpClient;
|
|
5
6
|
private openConnections;
|
|
7
|
+
private showDebugMessageToConsole;
|
|
6
8
|
constructor(httpClient: HttpClient);
|
|
7
9
|
private apiKey;
|
|
8
10
|
setApiKey(apiKey: string): void;
|
|
11
|
+
setShowDebugMessageToConsole(showDebugMessageToConsole: boolean): void;
|
|
9
12
|
getHttpHeaders(): HttpHeaders;
|
|
10
13
|
get(url: string, options?: any): Observable<any>;
|
|
11
14
|
private request;
|
|
12
15
|
private handleResponse;
|
|
13
16
|
private handleError;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
|
|
14
19
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class LocaleService {
|
|
3
4
|
inputLanguageEvent: BehaviorSubject<string>;
|
|
4
5
|
currentLang: import("rxjs").Observable<string>;
|
|
@@ -8,4 +9,6 @@ export declare class LocaleService {
|
|
|
8
9
|
isLocaleFrench(): boolean;
|
|
9
10
|
isLocaleGerman(): boolean;
|
|
10
11
|
private isPreferredLocale;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocaleService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocaleService>;
|
|
11
14
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from "@angular/common/http";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class Nis9Service {
|
|
4
5
|
private httpClient;
|
|
5
6
|
private nis9ServiceURL;
|
|
6
7
|
constructor(httpClient: HttpClient);
|
|
7
8
|
setNis9ServiceURL(nis9ServiceURL: string): void;
|
|
8
9
|
determineNis9Data(longitude: any, latitude: any): Observable<any>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Nis9Service, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Nis9Service>;
|
|
9
12
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class UnicodeService implements OnDestroy {
|
|
3
4
|
private defaultDiacriticsRemovalMap;
|
|
4
5
|
private diacriticsMap;
|
|
5
6
|
constructor();
|
|
6
7
|
removeDiacritics(str: any): any;
|
|
7
8
|
ngOnDestroy(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnicodeService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UnicodeService>;
|
|
8
11
|
}
|
|
@@ -8,6 +8,7 @@ import { QueryParameters } from '../model/query-parameters.model';
|
|
|
8
8
|
import { PrefillData } from '../utils/prefill-data';
|
|
9
9
|
import { SourceType } from '../enum/source-type.enum';
|
|
10
10
|
import { PrefillEvent } from '../utils/preflll.event';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class StreetComponent implements OnInit, AfterViewChecked, OnChanges, OnDestroy {
|
|
12
13
|
private addressService;
|
|
13
14
|
private localeService;
|
|
@@ -124,4 +125,6 @@ export declare class StreetComponent implements OnInit, AfterViewChecked, OnChan
|
|
|
124
125
|
showAddressNotFoundMessage(): void;
|
|
125
126
|
isDisabled(): boolean;
|
|
126
127
|
onInputClick(): void;
|
|
128
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StreetComponent, never>;
|
|
129
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StreetComponent, "bp-street", never, { "labelResourceKey": "labelResourceKey"; "maxSuggesionCount": "maxSuggesionCount"; "visibleSuggesionCount": "visibleSuggesionCount"; "sortCriteria": "sortCriteria"; "baseUrl": "baseUrl"; "prefillData": "prefillData"; "showDebugMessageToConsole": "showDebugMessageToConsole"; "postalCode": "postalCode"; "locality": "locality"; "inputText": "inputText"; "messageOption": "messageOption"; "inputLang": "inputLang"; "isReadonly": "isReadonly"; }, { "messageChanged": "messageChanged"; "addressChanged": "addressChanged"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "textChangeEvent": "textChangeEvent"; "clearInputEventEmitter": "clearInputEventEmitter"; "prefillEventEmitter": "prefillEventEmitter"; }, never, never>;
|
|
127
130
|
}
|
|
@@ -9,6 +9,8 @@ import { QueryParameters } from '../model/query-parameters.model';
|
|
|
9
9
|
import { PrefillData } from '../utils/prefill-data';
|
|
10
10
|
import { SourceType } from '../enum/source-type.enum';
|
|
11
11
|
import { PrefillEvent } from '../utils/preflll.event';
|
|
12
|
+
import { SuggestionLevelType } from '../enum/suggestion-level-type.enum';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
12
14
|
export declare class StreetNumberComponent implements OnInit, AfterViewChecked, OnChanges, OnDestroy {
|
|
13
15
|
private addressService;
|
|
14
16
|
private localeService;
|
|
@@ -34,6 +36,7 @@ export declare class StreetNumberComponent implements OnInit, AfterViewChecked,
|
|
|
34
36
|
messageOption: string;
|
|
35
37
|
inputText: string;
|
|
36
38
|
isReadonly: boolean;
|
|
39
|
+
suggestionLevel: SuggestionLevelType;
|
|
37
40
|
messageChanged: EventEmitter<{
|
|
38
41
|
messageType: ValidationMessageType;
|
|
39
42
|
translatedMessage: string;
|
|
@@ -45,6 +48,7 @@ export declare class StreetNumberComponent implements OnInit, AfterViewChecked,
|
|
|
45
48
|
emptyResponseEvent: EventEmitter<any>;
|
|
46
49
|
clearInputEventEmitter: EventEmitter<string>;
|
|
47
50
|
prefillEventEmitter: EventEmitter<PrefillEvent>;
|
|
51
|
+
streetNumberChanged: EventEmitter<string>;
|
|
48
52
|
searchText: string;
|
|
49
53
|
addressIsValidated: boolean;
|
|
50
54
|
addressIsComplete: boolean;
|
|
@@ -111,7 +115,6 @@ export declare class StreetNumberComponent implements OnInit, AfterViewChecked,
|
|
|
111
115
|
clickSuggestion(event: any, suggestion?: any): void;
|
|
112
116
|
modifySelectedAddress(suggestion: object): any;
|
|
113
117
|
setSelectedAddress(suggestion: any): void;
|
|
114
|
-
clearSelectedAddress(): void;
|
|
115
118
|
emitTranslatedValidationMessage(validationMessageType: ValidationMessageType, options?: string[]): void;
|
|
116
119
|
notifyAddressIsValidated(): void;
|
|
117
120
|
checkKeyDown(event: any): void;
|
|
@@ -135,4 +138,6 @@ export declare class StreetNumberComponent implements OnInit, AfterViewChecked,
|
|
|
135
138
|
showAddressNotFoundMessage(): void;
|
|
136
139
|
isDisabled(): boolean;
|
|
137
140
|
onInputClick(): void;
|
|
141
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StreetNumberComponent, never>;
|
|
142
|
+
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"; "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"; }, never, never>;
|
|
138
143
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LIB_VERSION = "1.1.3";
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class HighlightSuggestionPipe implements PipeTransform {
|
|
4
5
|
private sanitizer;
|
|
5
6
|
constructor(sanitizer: DomSanitizer);
|
|
6
7
|
transform(value: any, args?: any): any;
|
|
7
8
|
private transformForArray;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightSuggestionPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HighlightSuggestionPipe, "highlightSuggestion">;
|
|
8
11
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementRef, AfterViewChecked, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class VisibleSuggestionDirective implements AfterViewChecked {
|
|
3
4
|
private el;
|
|
4
5
|
private renderer;
|
|
@@ -6,4 +7,6 @@ export declare class VisibleSuggestionDirective implements AfterViewChecked {
|
|
|
6
7
|
constructor(el: ElementRef, renderer: Renderer2);
|
|
7
8
|
ngAfterViewChecked(): void;
|
|
8
9
|
showHeight(parent: HTMLElement, count: number): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisibleSuggestionDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<VisibleSuggestionDirective, "[appVisibleSuggestion]", never, { "appVisibleSuggestion": "appVisibleSuggestion"; }, {}, never>;
|
|
9
12
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpost/bp-address-auto-complete-by-component",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
5
|
+
"@angular/common": "^13.2.0",
|
|
6
|
+
"@angular/core": "^13.2.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"tslib": "^
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"fesm5": "fesm5/bpost-bp-address-auto-complete-by-component.js",
|
|
17
|
-
"fesm2015": "fesm2015/bpost-bp-address-auto-complete-by-component.js",
|
|
11
|
+
"module": "fesm2015/bpost-bp-address-auto-complete-by-component.mjs",
|
|
12
|
+
"es2020": "fesm2020/bpost-bp-address-auto-complete-by-component.mjs",
|
|
13
|
+
"esm2020": "esm2020/bpost-bp-address-auto-complete-by-component.mjs",
|
|
14
|
+
"fesm2020": "fesm2020/bpost-bp-address-auto-complete-by-component.mjs",
|
|
15
|
+
"fesm2015": "fesm2015/bpost-bp-address-auto-complete-by-component.mjs",
|
|
18
16
|
"typings": "bpost-bp-address-auto-complete-by-component.d.ts",
|
|
19
|
-
"
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./bpost-bp-address-auto-complete-by-component.d.ts",
|
|
23
|
+
"esm2020": "./esm2020/bpost-bp-address-auto-complete-by-component.mjs",
|
|
24
|
+
"es2020": "./fesm2020/bpost-bp-address-auto-complete-by-component.mjs",
|
|
25
|
+
"es2015": "./fesm2015/bpost-bp-address-auto-complete-by-component.mjs",
|
|
26
|
+
"node": "./fesm2015/bpost-bp-address-auto-complete-by-component.mjs",
|
|
27
|
+
"default": "./fesm2020/bpost-bp-address-auto-complete-by-component.mjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
20
30
|
"sideEffects": false
|
|
21
|
-
}
|
|
31
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# AacwidgetDemo
|
|
2
|
+
|
|
3
|
+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.7.
|
|
4
|
+
|
|
5
|
+
## Development server
|
|
6
|
+
|
|
7
|
+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
|
8
|
+
|
|
9
|
+
## Code scaffolding
|
|
10
|
+
|
|
11
|
+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
|
|
12
|
+
|
|
13
|
+
## Build
|
|
14
|
+
|
|
15
|
+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
|
|
16
|
+
|
|
17
|
+
## Running unit tests
|
|
18
|
+
|
|
19
|
+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
20
|
+
|
|
21
|
+
## Running end-to-end tests
|
|
22
|
+
|
|
23
|
+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
|
|
24
|
+
|
|
25
|
+
## Further help
|
|
26
|
+
|
|
27
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app-routing.module.ts
RENAMED
|
File without changes
|
package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app.component.html
RENAMED
|
File without changes
|
package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app.component.scss
RENAMED
|
File without changes
|
package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app.component.spec.ts
RENAMED
|
File without changes
|
package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/app/app.component.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/tutorial/{aacwidget-tutorial → tutorial/aacwidget-tutorial}/src/environments/environment.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|