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

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 (117) hide show
  1. package/VERSION.md +197 -0
  2. package/esm2022/lib/box-number/box-number.component.mjs +939 -0
  3. package/esm2022/lib/lib-address-autocomplete-by-component.component.mjs +1432 -0
  4. package/esm2022/lib/lib-address-autocomplete-by-component.module.mjs +45 -0
  5. package/esm2022/lib/lib-address-autocomplete-by-component.service.mjs +17 -0
  6. package/esm2022/lib/locality/locality.component.mjs +832 -0
  7. package/esm2022/lib/model/Box.mjs +35 -0
  8. package/esm2022/lib/model/Locality.mjs +35 -0
  9. package/esm2022/lib/model/Street.mjs +35 -0
  10. package/esm2022/lib/model/query-parameters.model.mjs +23 -0
  11. package/esm2022/lib/services/adress.service.mjs +69 -0
  12. package/esm2022/lib/services/http.service.mjs +61 -0
  13. package/esm2022/lib/services/locale.service.mjs +39 -0
  14. package/esm2022/lib/services/nis9.service.mjs +28 -0
  15. package/esm2022/lib/services/unicode.service.mjs +380 -0
  16. package/esm2022/lib/street/street.component.mjs +809 -0
  17. package/esm2022/lib/street-number/street-number.component.mjs +1026 -0
  18. package/{esm2020 → esm2022}/lib/utils/constants.mjs +2 -2
  19. package/esm2022/lib/utils/domhandler.mjs +51 -0
  20. package/esm2022/lib/utils/highlight-suggestion.pipe.mjs +76 -0
  21. package/esm2022/lib/utils/prefill-data.mjs +26 -0
  22. package/esm2022/lib/utils/prefilled-parameters.mjs +25 -0
  23. package/esm2022/lib/utils/preflll.event.mjs +9 -0
  24. package/esm2022/lib/utils/visible-suggestion.directive.mjs +41 -0
  25. package/{fesm2015 → fesm2022}/bpost-bp-address-auto-complete-by-component.mjs +1623 -1255
  26. package/fesm2022/bpost-bp-address-auto-complete-by-component.mjs.map +1 -0
  27. package/install-and-start-demo.bat +11 -0
  28. package/lib/box-number/box-number.component.d.ts +5 -1
  29. package/lib/lib-address-autocomplete-by-component.component.d.ts +8 -1
  30. package/lib/lib-address-autocomplete-by-component.module.d.ts +0 -15
  31. package/lib/locality/locality.component.d.ts +5 -1
  32. package/lib/street/street.component.d.ts +5 -1
  33. package/lib/street-number/street-number.component.d.ts +5 -1
  34. package/package.json +7 -13
  35. package/resources/assets/aacwidget/i18n/de.json +62 -0
  36. package/resources/assets/aacwidget/i18n/en.json +62 -0
  37. package/resources/assets/aacwidget/i18n/fr.json +62 -0
  38. package/resources/assets/aacwidget/i18n/nl.json +62 -0
  39. package/resources/assets/aacwidget/scss/aacwidget-custom.scss +81 -0
  40. package/resources/assets/aacwidget/scss/aacwidget-default.scss +424 -0
  41. package/tutorial/aacwidget-tutorial/.editorconfig +16 -0
  42. package/tutorial/aacwidget-tutorial/angular.json +128 -0
  43. package/tutorial/aacwidget-tutorial/browserslist +13 -0
  44. package/tutorial/aacwidget-tutorial/e2e/protractor.conf.js +32 -0
  45. package/tutorial/aacwidget-tutorial/e2e/src/app.e2e-spec.ts +23 -0
  46. package/tutorial/aacwidget-tutorial/e2e/src/app.po.ts +11 -0
  47. package/tutorial/aacwidget-tutorial/e2e/tsconfig.json +13 -0
  48. package/tutorial/aacwidget-tutorial/karma.conf.js +32 -0
  49. package/tutorial/aacwidget-tutorial/package-lock.json +13314 -0
  50. package/tutorial/aacwidget-tutorial/src/app/app-routing.module.ts +18 -0
  51. package/tutorial/aacwidget-tutorial/src/app/app.component.html +6 -0
  52. package/tutorial/aacwidget-tutorial/src/app/app.component.scss +0 -0
  53. package/tutorial/aacwidget-tutorial/src/app/app.component.spec.ts +35 -0
  54. package/tutorial/aacwidget-tutorial/src/app/app.component.ts +28 -0
  55. package/tutorial/aacwidget-tutorial/src/app/app.module.ts +47 -0
  56. package/tutorial/aacwidget-tutorial/src/app/widget-full/widget-full.component.html +57 -0
  57. package/tutorial/aacwidget-tutorial/src/app/widget-full/widget-full.component.scss +0 -0
  58. package/tutorial/aacwidget-tutorial/src/app/widget-full/widget-full.component.ts +160 -0
  59. package/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.html +20 -0
  60. package/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.scss +0 -0
  61. package/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.spec.ts +25 -0
  62. package/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.ts +49 -0
  63. package/tutorial/aacwidget-tutorial/src/assets/.gitkeep +0 -0
  64. package/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/de.json +62 -0
  65. package/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/en.json +62 -0
  66. package/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/fr.json +62 -0
  67. package/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/nl.json +62 -0
  68. package/tutorial/aacwidget-tutorial/src/assets/aacwidget/scss/aacwidget-custom.scss +81 -0
  69. package/tutorial/aacwidget-tutorial/src/assets/aacwidget/scss/aacwidget-default.scss +424 -0
  70. package/tutorial/aacwidget-tutorial/src/environments/environment.prod.ts +3 -0
  71. package/tutorial/aacwidget-tutorial/src/environments/environment.ts +16 -0
  72. package/tutorial/aacwidget-tutorial/src/favicon.ico +0 -0
  73. package/tutorial/aacwidget-tutorial/src/index.html +45 -0
  74. package/tutorial/aacwidget-tutorial/src/main.ts +12 -0
  75. package/tutorial/aacwidget-tutorial/src/polyfills.ts +63 -0
  76. package/tutorial/aacwidget-tutorial/src/styles.scss +4 -0
  77. package/tutorial/aacwidget-tutorial/src/test.ts +25 -0
  78. package/tutorial/aacwidget-tutorial/tsconfig.app.json +15 -0
  79. package/tutorial/aacwidget-tutorial/tsconfig.json +23 -0
  80. package/tutorial/aacwidget-tutorial/tsconfig.spec.json +18 -0
  81. package/tutorial/aacwidget-tutorial/tslint.json +148 -0
  82. package/tutorial/tutorial-videos.txt +41 -0
  83. package/esm2020/lib/box-number/box-number.component.mjs +0 -873
  84. package/esm2020/lib/lib-address-autocomplete-by-component.component.mjs +0 -1383
  85. package/esm2020/lib/lib-address-autocomplete-by-component.module.mjs +0 -65
  86. package/esm2020/lib/lib-address-autocomplete-by-component.service.mjs +0 -14
  87. package/esm2020/lib/locality/locality.component.mjs +0 -747
  88. package/esm2020/lib/model/Box.mjs +0 -30
  89. package/esm2020/lib/model/Locality.mjs +0 -30
  90. package/esm2020/lib/model/Street.mjs +0 -30
  91. package/esm2020/lib/model/query-parameters.model.mjs +0 -21
  92. package/esm2020/lib/services/adress.service.mjs +0 -64
  93. package/esm2020/lib/services/http.service.mjs +0 -57
  94. package/esm2020/lib/services/locale.service.mjs +0 -37
  95. package/esm2020/lib/services/nis9.service.mjs +0 -26
  96. package/esm2020/lib/services/unicode.service.mjs +0 -376
  97. package/esm2020/lib/street/street.component.mjs +0 -735
  98. package/esm2020/lib/street-number/street-number.component.mjs +0 -967
  99. package/esm2020/lib/utils/domhandler.mjs +0 -47
  100. package/esm2020/lib/utils/highlight-suggestion.pipe.mjs +0 -62
  101. package/esm2020/lib/utils/prefill-data.mjs +0 -24
  102. package/esm2020/lib/utils/prefilled-parameters.mjs +0 -23
  103. package/esm2020/lib/utils/preflll.event.mjs +0 -7
  104. package/esm2020/lib/utils/visible-suggestion.directive.mjs +0 -39
  105. package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs.map +0 -1
  106. package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs +0 -5592
  107. package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs.map +0 -1
  108. /package/{esm2020 → esm2022}/bpost-bp-address-auto-complete-by-component.mjs +0 -0
  109. /package/{esm2020 → esm2022}/lib/enum/address-level.enum.mjs +0 -0
  110. /package/{esm2020 → esm2022}/lib/enum/index.mjs +0 -0
  111. /package/{esm2020 → esm2022}/lib/enum/input-name.enum.mjs +0 -0
  112. /package/{esm2020 → esm2022}/lib/enum/source-type.enum.mjs +0 -0
  113. /package/{esm2020 → esm2022}/lib/enum/suggestion-level-type.enum.mjs +0 -0
  114. /package/{esm2020 → esm2022}/lib/enum/validation-message-option-type.enum.mjs +0 -0
  115. /package/{esm2020 → esm2022}/lib/enum/validation-message-type.enum.mjs +0 -0
  116. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  117. /package/{bpost-bp-address-auto-complete-by-component.d.ts → index.d.ts} +0 -0
@@ -0,0 +1,4 @@
1
+ /* You can add global styles to this file, and also import other style files */
2
+
3
+ @import 'assets/aacwidget/scss/aacwidget-default.scss';
4
+ @import 'assets/aacwidget/scss/aacwidget-custom.scss';
@@ -0,0 +1,25 @@
1
+ // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
+
3
+ import 'zone.js/dist/zone-testing';
4
+ import { getTestBed } from '@angular/core/testing';
5
+ import {
6
+ BrowserDynamicTestingModule,
7
+ platformBrowserDynamicTesting
8
+ } from '@angular/platform-browser-dynamic/testing';
9
+
10
+ declare const require: {
11
+ context(path: string, deep?: boolean, filter?: RegExp): {
12
+ keys(): string[];
13
+ <T>(id: string): T;
14
+ };
15
+ };
16
+
17
+ // First, initialize the Angular testing environment.
18
+ getTestBed().initTestEnvironment(
19
+ BrowserDynamicTestingModule,
20
+ platformBrowserDynamicTesting()
21
+ );
22
+ // Then we find all the tests.
23
+ const context = require.context('./', true, /\.spec\.ts$/);
24
+ // And load the modules.
25
+ context.keys().map(context);
@@ -0,0 +1,15 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/app",
5
+ "types": [],
6
+ "target": "es5",
7
+ },
8
+ "files": [
9
+ "src/main.ts",
10
+ "src/polyfills.ts"
11
+ ],
12
+ "include": [
13
+ "src/**/*.d.ts"
14
+ ]
15
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "compileOnSave": false,
3
+ "compilerOptions": {
4
+ "baseUrl": "./",
5
+ "outDir": "./dist/out-tsc",
6
+ "sourceMap": true,
7
+ "declaration": false,
8
+ "downlevelIteration": true,
9
+ "experimentalDecorators": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "node",
12
+ "importHelpers": true,
13
+ "target": "es2015",
14
+ "lib": [
15
+ "es2018",
16
+ "dom"
17
+ ]
18
+ },
19
+ "angularCompilerOptions": {
20
+ "fullTemplateTypeCheck": true,
21
+ "strictInjectionParameters": true
22
+ }
23
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/spec",
5
+ "types": [
6
+ "jasmine",
7
+ "node"
8
+ ]
9
+ },
10
+ "files": [
11
+ "src/test.ts",
12
+ "src/polyfills.ts"
13
+ ],
14
+ "include": [
15
+ "src/**/*.spec.ts",
16
+ "src/**/*.d.ts"
17
+ ]
18
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "extends": "tslint:recommended",
3
+ "rules": {
4
+ "align": {
5
+ "options": [
6
+ "parameters",
7
+ "statements"
8
+ ]
9
+ },
10
+ "array-type": false,
11
+ "arrow-return-shorthand": true,
12
+ "curly": true,
13
+ "deprecation": {
14
+ "severity": "warning"
15
+ },
16
+ "component-class-suffix": true,
17
+ "contextual-lifecycle": true,
18
+ "directive-class-suffix": true,
19
+ "directive-selector": [
20
+ true,
21
+ "attribute",
22
+ "app",
23
+ "camelCase"
24
+ ],
25
+ "component-selector": [
26
+ true,
27
+ "element",
28
+ "app",
29
+ "kebab-case"
30
+ ],
31
+ "eofline": true,
32
+ "import-blacklist": [
33
+ true,
34
+ "rxjs/Rx"
35
+ ],
36
+ "import-spacing": true,
37
+ "indent": {
38
+ "options": [
39
+ "spaces"
40
+ ]
41
+ },
42
+ "max-classes-per-file": false,
43
+ "max-line-length": [
44
+ true,
45
+ 140
46
+ ],
47
+ "member-ordering": [
48
+ true,
49
+ {
50
+ "order": [
51
+ "static-field",
52
+ "instance-field",
53
+ "static-method",
54
+ "instance-method"
55
+ ]
56
+ }
57
+ ],
58
+ "no-console": [
59
+ true,
60
+ "debug",
61
+ "info",
62
+ "time",
63
+ "timeEnd",
64
+ "trace"
65
+ ],
66
+ "no-empty": false,
67
+ "no-inferrable-types": [
68
+ true,
69
+ "ignore-params"
70
+ ],
71
+ "no-non-null-assertion": true,
72
+ "no-redundant-jsdoc": true,
73
+ "no-switch-case-fall-through": true,
74
+ "no-var-requires": false,
75
+ "object-literal-key-quotes": [
76
+ true,
77
+ "as-needed"
78
+ ],
79
+ "quotemark": [
80
+ true,
81
+ "single"
82
+ ],
83
+ "semicolon": {
84
+ "options": [
85
+ "always"
86
+ ]
87
+ },
88
+ "space-before-function-paren": {
89
+ "options": {
90
+ "anonymous": "never",
91
+ "asyncArrow": "always",
92
+ "constructor": "never",
93
+ "method": "never",
94
+ "named": "never"
95
+ }
96
+ },
97
+ "typedef-whitespace": {
98
+ "options": [
99
+ {
100
+ "call-signature": "nospace",
101
+ "index-signature": "nospace",
102
+ "parameter": "nospace",
103
+ "property-declaration": "nospace",
104
+ "variable-declaration": "nospace"
105
+ },
106
+ {
107
+ "call-signature": "onespace",
108
+ "index-signature": "onespace",
109
+ "parameter": "onespace",
110
+ "property-declaration": "onespace",
111
+ "variable-declaration": "onespace"
112
+ }
113
+ ]
114
+ },
115
+ "variable-name": {
116
+ "options": [
117
+ "ban-keywords",
118
+ "check-format",
119
+ "allow-pascal-case"
120
+ ]
121
+ },
122
+ "whitespace": {
123
+ "options": [
124
+ "check-branch",
125
+ "check-decl",
126
+ "check-operator",
127
+ "check-separator",
128
+ "check-type",
129
+ "check-typecast"
130
+ ]
131
+ },
132
+ "no-conflicting-lifecycle": true,
133
+ "no-host-metadata-property": true,
134
+ "no-input-rename": true,
135
+ "no-inputs-metadata-property": true,
136
+ "no-output-native": true,
137
+ "no-output-on-prefix": true,
138
+ "no-output-rename": true,
139
+ "no-outputs-metadata-property": true,
140
+ "template-banana-in-box": true,
141
+ "template-no-negated-async": true,
142
+ "use-lifecycle-interface": true,
143
+ "use-pipe-transform-interface": true
144
+ },
145
+ "rulesDirectory": [
146
+ "codelyzer"
147
+ ]
148
+ }
@@ -0,0 +1,41 @@
1
+ bpost aacwidget - address autocomplete component
2
+
3
+ session 1:
4
+ Setup-default-angular-application
5
+ https://youtu.be/rRIlDn--mT8
6
+
7
+ session 2:
8
+ Integrating-the-widget-in-a-component
9
+ https://youtu.be/_GN1hodWiwA
10
+
11
+ session 3:
12
+ Styling-and-i18n-setup
13
+ https://youtu.be/5hZBwTmZZW0
14
+
15
+ session 4:
16
+ Events-and-static-language-setup
17
+ https://youtu.be/6h934ROzTdY
18
+
19
+ session 5:
20
+ Using-multiple-languages-dynamically
21
+ https://youtu.be/q5LeQoh19Zk
22
+
23
+ session 6:
24
+ Custumize-part-1
25
+ https://youtu.be/unz90iuN5oQ
26
+
27
+ session 7:
28
+ Custumize-part-2
29
+ https://youtu.be/jt4pUK3B0RM
30
+
31
+ session 8:
32
+ Using-IE
33
+ https://youtu.be/dqD5iyvyawU
34
+
35
+ Session 9:
36
+ The not in list feature
37
+ https://youtu.be/UPnb8GzZEO4
38
+
39
+ session 10:
40
+ Pre-filling the widget
41
+ https://youtu.be/0BiJ4zUiH7o