@bpost/bp-address-auto-complete-by-component 1.1.7 → 1.1.9

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