@bpost/bp-address-auto-complete-by-component 1.1.6 → 1.1.8

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