@bpost/bp-address-auto-complete-by-component 1.1.9 → 1.1.11
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/README.md +1 -1
- package/VERSION.md +209 -0
- package/esm2020/lib/lib-address-autocomplete-by-component.component.mjs +2 -2
- package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs +1 -1
- package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs.map +1 -1
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs +1 -1
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs.map +1 -1
- package/install-and-start-demo.bat +11 -0
- package/package.json +1 -1
- package/tutorial/tutorial/aacwidget-tutorial/.editorconfig +16 -0
- package/tutorial/tutorial/aacwidget-tutorial/README.md +27 -0
- package/tutorial/tutorial/aacwidget-tutorial/angular.json +128 -0
- package/tutorial/tutorial/aacwidget-tutorial/browserslist +13 -0
- package/tutorial/tutorial/aacwidget-tutorial/e2e/protractor.conf.js +32 -0
- package/tutorial/tutorial/aacwidget-tutorial/e2e/src/app.e2e-spec.ts +23 -0
- package/tutorial/tutorial/aacwidget-tutorial/e2e/src/app.po.ts +11 -0
- package/tutorial/tutorial/aacwidget-tutorial/e2e/tsconfig.json +13 -0
- package/tutorial/tutorial/aacwidget-tutorial/karma.conf.js +32 -0
- package/tutorial/tutorial/aacwidget-tutorial/package-lock.json +13314 -0
- package/tutorial/tutorial/aacwidget-tutorial/package.json +49 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/app-routing.module.ts +18 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/app.component.html +6 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/app.component.scss +0 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/app.component.spec.ts +35 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/app.component.ts +28 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/app.module.ts +47 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/widget-full/widget-full.component.html +57 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/widget-full/widget-full.component.scss +0 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/widget-full/widget-full.component.ts +160 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.html +20 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.scss +0 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.spec.ts +25 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.ts +49 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/assets/.gitkeep +0 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/de.json +62 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/en.json +62 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/fr.json +62 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/nl.json +62 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/assets/aacwidget/scss/aacwidget-custom.scss +81 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/assets/aacwidget/scss/aacwidget-default.scss +424 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/environments/environment.prod.ts +3 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/environments/environment.ts +16 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/favicon.ico +0 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/index.html +45 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/main.ts +12 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/polyfills.ts +63 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/styles.scss +4 -0
- package/tutorial/tutorial/aacwidget-tutorial/src/test.ts +25 -0
- package/tutorial/tutorial/aacwidget-tutorial/tsconfig.app.json +15 -0
- package/tutorial/tutorial/aacwidget-tutorial/tsconfig.json +23 -0
- package/tutorial/tutorial/aacwidget-tutorial/tsconfig.spec.json +18 -0
- package/tutorial/tutorial/aacwidget-tutorial/tslint.json +148 -0
- package/tutorial/tutorial/tutorial-videos.txt +41 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LibAddressAutocompleteByComponent
|
|
2
2
|
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
4
|
|
|
5
5
|
Here under, we provide for ome basic information.
|
|
6
6
|
But this version of the library is also shipped with a tutorial where you can find some code and some videos.
|
package/VERSION.md
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# bp-address-auto-complete-by-component Version
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
+
|
|
5
|
+
This is a pure angular library and can be imported as a module inside an angular (version>=7) application.
|
|
6
|
+
This library is not suited for a pure javascript application.
|
|
7
|
+
For any pure JS application, another version of this component exists in our repository.
|
|
8
|
+
|
|
9
|
+
## Version 1.1.11
|
|
10
|
+
Changing numberOfExceptions to switch to no validation by backend when autocomplete api is down.
|
|
11
|
+
|
|
12
|
+
## Version 1.1.10
|
|
13
|
+
Changing numberOfExceptions to switch to no validation by backend.
|
|
14
|
+
|
|
15
|
+
## Version 1.1.9
|
|
16
|
+
Correcting small bug in Allow No Validation by backend when autocomplete api is down.
|
|
17
|
+
|
|
18
|
+
## Version 1.1.8
|
|
19
|
+
Correcting technical issue in Allow No Validation by backend when autocomplete api is down.
|
|
20
|
+
|
|
21
|
+
## Version 1.1.7
|
|
22
|
+
Feature to Allow No Validation by backend when autocomplete api is down.
|
|
23
|
+
|
|
24
|
+
## Version 1.1.6
|
|
25
|
+
Correcting small bug showing or not the streetnumber.
|
|
26
|
+
|
|
27
|
+
## Version 1.1.5
|
|
28
|
+
Correcting some bugs discovered in the way the suggestionLevel parameter was working.
|
|
29
|
+
|
|
30
|
+
## Version 1.1.4
|
|
31
|
+
This version has been skipped for technical reason.
|
|
32
|
+
|
|
33
|
+
## Version 1.1.3
|
|
34
|
+
Introducing a new parameter: suggestionLevel.
|
|
35
|
+
That parameter only has effect on the streetNumber and boxNumber fields.
|
|
36
|
+
It allows for the suggestion dropdown to be shown or not.
|
|
37
|
+
By default, its value is 2, meaning the suggestion dropdown will ne displayed for the two fields.
|
|
38
|
+
The possible value are:
|
|
39
|
+
2: display the suggestion dropdown for both streetNumber and boxNumber
|
|
40
|
+
1: only display the suggestion dropdown for the streetnumber field
|
|
41
|
+
0: do not show the suggestion dropdown for both the streetnumber and boxnumber fields.
|
|
42
|
+
|
|
43
|
+
You should be able to import the 'SuggestionLevelType' from the library.
|
|
44
|
+
|
|
45
|
+
export enum SuggestionLevelType {
|
|
46
|
+
// this only applies for streetNumber and boxNumber
|
|
47
|
+
None,
|
|
48
|
+
StreetNumber,
|
|
49
|
+
StreetAndBoxNumber
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## Version 1.1.2
|
|
54
|
+
correcting prefilling bug
|
|
55
|
+
|
|
56
|
+
## Version 1.1.1
|
|
57
|
+
correcting a small bug
|
|
58
|
+
|
|
59
|
+
## Version 1.1.0
|
|
60
|
+
Correction of small bug.
|
|
61
|
+
Add a customer demo application.
|
|
62
|
+
Just copy it somewhere.
|
|
63
|
+
Initialize the packages, running 'npm i'.
|
|
64
|
+
Start the demo running'ng serve -o', enjoy.
|
|
65
|
+
|
|
66
|
+
## Version 1.0.30
|
|
67
|
+
Adding two features:
|
|
68
|
+
- set the component readonly dynamically
|
|
69
|
+
- ask to get the nis9 data in response
|
|
70
|
+
|
|
71
|
+
To achieve that, we have added 2 new attributes (optional) for the widget.
|
|
72
|
+
|
|
73
|
+
- isReadonly: a boolean telling all the fields in the widget are r/o
|
|
74
|
+
- nis9InResponse: a boolean telling to add the nis9 data in the response if found.
|
|
75
|
+
|
|
76
|
+
In that case, a new field is added in the response.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
An exemple of the tag:
|
|
80
|
+
|
|
81
|
+
<bp-lib-address-autocomplete-by-component
|
|
82
|
+
|
|
83
|
+
[isReadonly]="readonly"
|
|
84
|
+
[nis9InResponse]="nis9InResponse"
|
|
85
|
+
[defaultLang]="defaultLanguage"
|
|
86
|
+
[inputLang]="selectedLanguage"
|
|
87
|
+
|
|
88
|
+
[showDebugMessageToConsole]="showDebugMessageToConsole"
|
|
89
|
+
|
|
90
|
+
(addressCompleteEventEmitter)="onAddressComplete($event)"
|
|
91
|
+
(clearInputEventEmitter)="onClearInputEventMessage($event)"
|
|
92
|
+
(validationMessageEventEmitter)="onAddressValidationMessage($event)"></bp-lib-address-autocomplete-by-component>
|
|
93
|
+
|
|
94
|
+
And if the nis9 data has been found, it is added in the address message, like this:
|
|
95
|
+
|
|
96
|
+
{
|
|
97
|
+
detectedLanguage: "fr"
|
|
98
|
+
houseNumber: "107"
|
|
99
|
+
isComplete: true
|
|
100
|
+
isCompleteNotificationDone: true
|
|
101
|
+
latitude: 50.710406
|
|
102
|
+
localityName: "WAVRE"
|
|
103
|
+
longitude: 4.629168
|
|
104
|
+
municipalityName: "WAVRE"
|
|
105
|
+
nis9: "25112A21-"
|
|
106
|
+
postalCode: "1300"
|
|
107
|
+
searchBarString: "107"
|
|
108
|
+
streetName: "AVENUE DES HUIT BONNIERS"
|
|
109
|
+
string: "107"
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
## Version 1.0.29
|
|
113
|
+
Updating url endpoint and adding security keys
|
|
114
|
+
|
|
115
|
+
## Version 1.0.28
|
|
116
|
+
Optimizing address search when prefilling: keeping best suggestion when
|
|
117
|
+
match found on both municipality name and locality name.
|
|
118
|
+
|
|
119
|
+
## Version 1.0.27
|
|
120
|
+
Correcting box number sort
|
|
121
|
+
|
|
122
|
+
## Version 1.0.26
|
|
123
|
+
Correcting box number sort
|
|
124
|
+
## Version 1.0.25
|
|
125
|
+
Correcting box number sort
|
|
126
|
+
## Version 1.0.24
|
|
127
|
+
Correcting box number sort
|
|
128
|
+
|
|
129
|
+
## Version 1.0.23
|
|
130
|
+
Logging parameters changes to the console if message log is enabled.
|
|
131
|
+
|
|
132
|
+
## Version 1.0.22
|
|
133
|
+
Correction: Sorting on Street and box number
|
|
134
|
+
|
|
135
|
+
## Version 1.0.21
|
|
136
|
+
Correction: clear input with or without focus.
|
|
137
|
+
|
|
138
|
+
## Version 1.0.20
|
|
139
|
+
Correction: prefilling error detection on locality level.
|
|
140
|
+
|
|
141
|
+
## Version 1.0.19
|
|
142
|
+
Suggestion match not working if data is '.'.
|
|
143
|
+
Need to escape the value from '.' to '\\.' to make the regep working
|
|
144
|
+
|
|
145
|
+
## Version 1.0.18
|
|
146
|
+
Correcting bug when 'not-in-list' option is 'on' and no match found
|
|
147
|
+
|
|
148
|
+
## Version 1.0.17
|
|
149
|
+
Prefill support multi lang
|
|
150
|
+
|
|
151
|
+
## Version 1.0.16
|
|
152
|
+
Correcting prefilling
|
|
153
|
+
|
|
154
|
+
## Version 1.0.15
|
|
155
|
+
When prefilling, indicates the wrong field (no match only) in red
|
|
156
|
+
|
|
157
|
+
## Version 1.0.14
|
|
158
|
+
Correcting prefilling
|
|
159
|
+
|
|
160
|
+
## Version 1.0.13
|
|
161
|
+
Correcting typeahead when prefilling and suggestion list
|
|
162
|
+
|
|
163
|
+
## Version 1.0.12
|
|
164
|
+
Adding a parameter to hide/show log message to the console
|
|
165
|
+
showDebugMessageToConsole, with value: true/false
|
|
166
|
+
|
|
167
|
+
## Version 1.0.11
|
|
168
|
+
Correcting prefill: use localityNames when available
|
|
169
|
+
|
|
170
|
+
## Version 1.0.10
|
|
171
|
+
Correction some bugs of verion 1.0.9.
|
|
172
|
+
Adding prefill 'not-in-list' support
|
|
173
|
+
|
|
174
|
+
## Version 1.0.9
|
|
175
|
+
Adding an option, for when prefilling, avoid suggestions drop when a field got the focus.
|
|
176
|
+
Auto validate an address on prefilling
|
|
177
|
+
Correction of some typos in the html (ids definitions)
|
|
178
|
+
Prefilling is no more supporting the 'unstructured' address.
|
|
179
|
+
(use version 1.0.10 instead !)
|
|
180
|
+
|
|
181
|
+
## Version 1.0.8
|
|
182
|
+
Enable the library to support Module Lazy Loading
|
|
183
|
+
|
|
184
|
+
## Version 1.0.7
|
|
185
|
+
The documentation in updated ! (finally!)
|
|
186
|
+
And added a tutorial with free videos !
|
|
187
|
+
|
|
188
|
+
## Version 1.0.6
|
|
189
|
+
Fixing some little bugs, like typos, missing translations in DE
|
|
190
|
+
|
|
191
|
+
## Version 1.0.5
|
|
192
|
+
Full refactoring
|
|
193
|
+
|
|
194
|
+
## Version 1.0.4
|
|
195
|
+
Correcting some bugs and resources.
|
|
196
|
+
|
|
197
|
+
## Version 1.0.3
|
|
198
|
+
First working version of the widget.
|
|
199
|
+
It has been refactored and rewritten using angular 9.
|
|
200
|
+
But the documentation is still not up2date.
|
|
201
|
+
|
|
202
|
+
## Version 1.0.1, 1.0.2
|
|
203
|
+
These are bad version and should not be used !
|
|
204
|
+
|
|
205
|
+
## Version 1.0.0 - 15/04/2020
|
|
206
|
+
First version of the component.
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|