@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
@@ -1,11 +0,0 @@
1
- call rmdir demo /Q /S
2
- call mkdir demo
3
- cd demo
4
- call npm init -y
5
- call npm i @bpost/bp-address-auto-complete-by-component-demo-application --save
6
- call xcopy .\node_modules\@bpost\bp-address-auto-complete-by-component-demo-application\*.* . /S /Y
7
- call npm i
8
- echo call ./node_modules/.bin/ng serve --port 4210 -o > run-demo.bat
9
- call run-demo.bat
10
-
11
-
@@ -1,16 +0,0 @@
1
- # Editor configuration, see https://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- charset = utf-8
6
- indent_style = space
7
- indent_size = 2
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
10
-
11
- [*.ts]
12
- quote_type = single
13
-
14
- [*.md]
15
- max_line_length = off
16
- trim_trailing_whitespace = false
@@ -1,128 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
- "version": 1,
4
- "newProjectRoot": "projects",
5
- "projects": {
6
- "aacwidget-demo": {
7
- "projectType": "application",
8
- "schematics": {
9
- "@schematics/angular:component": {
10
- "style": "scss"
11
- }
12
- },
13
- "root": "",
14
- "sourceRoot": "src",
15
- "prefix": "app",
16
- "architect": {
17
- "build": {
18
- "builder": "@angular-devkit/build-angular:browser",
19
- "options": {
20
- "outputPath": "dist/aacwidget-demo",
21
- "index": "src/index.html",
22
- "main": "src/main.ts",
23
- "polyfills": "src/polyfills.ts",
24
- "tsConfig": "tsconfig.app.json",
25
- "aot": true,
26
- "assets": [
27
- "src/favicon.ico",
28
- "src/assets"
29
- ],
30
- "styles": [
31
- "src/styles.scss"
32
- ],
33
- "scripts": []
34
- },
35
- "configurations": {
36
- "production": {
37
- "fileReplacements": [
38
- {
39
- "replace": "src/environments/environment.ts",
40
- "with": "src/environments/environment.prod.ts"
41
- }
42
- ],
43
- "optimization": true,
44
- "outputHashing": "all",
45
- "sourceMap": false,
46
- "extractCss": true,
47
- "namedChunks": false,
48
- "extractLicenses": true,
49
- "vendorChunk": false,
50
- "buildOptimizer": true,
51
- "budgets": [
52
- {
53
- "type": "initial",
54
- "maximumWarning": "2mb",
55
- "maximumError": "5mb"
56
- },
57
- {
58
- "type": "anyComponentStyle",
59
- "maximumWarning": "6kb",
60
- "maximumError": "10kb"
61
- }
62
- ]
63
- }
64
- }
65
- },
66
- "serve": {
67
- "builder": "@angular-devkit/build-angular:dev-server",
68
- "options": {
69
- "browserTarget": "aacwidget-demo:build"
70
- },
71
- "configurations": {
72
- "production": {
73
- "browserTarget": "aacwidget-demo:build:production"
74
- }
75
- }
76
- },
77
- "extract-i18n": {
78
- "builder": "@angular-devkit/build-angular:extract-i18n",
79
- "options": {
80
- "browserTarget": "aacwidget-demo:build"
81
- }
82
- },
83
- "test": {
84
- "builder": "@angular-devkit/build-angular:karma",
85
- "options": {
86
- "main": "src/test.ts",
87
- "polyfills": "src/polyfills.ts",
88
- "tsConfig": "tsconfig.spec.json",
89
- "karmaConfig": "karma.conf.js",
90
- "assets": [
91
- "src/favicon.ico",
92
- "src/assets"
93
- ],
94
- "styles": [
95
- "src/styles.scss"
96
- ],
97
- "scripts": []
98
- }
99
- },
100
- "lint": {
101
- "builder": "@angular-devkit/build-angular:tslint",
102
- "options": {
103
- "tsConfig": [
104
- "tsconfig.app.json",
105
- "tsconfig.spec.json",
106
- "e2e/tsconfig.json"
107
- ],
108
- "exclude": [
109
- "**/node_modules/**"
110
- ]
111
- }
112
- },
113
- "e2e": {
114
- "builder": "@angular-devkit/build-angular:protractor",
115
- "options": {
116
- "protractorConfig": "e2e/protractor.conf.js",
117
- "devServerTarget": "aacwidget-demo:serve"
118
- },
119
- "configurations": {
120
- "production": {
121
- "devServerTarget": "aacwidget-demo:serve:production"
122
- }
123
- }
124
- }
125
- }
126
- }},
127
- "defaultProject": "aacwidget-demo"
128
- }
@@ -1,13 +0,0 @@
1
- # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2
- # For additional information regarding the format and rule options, please see:
3
- # https://github.com/browserslist/browserslist#queries
4
-
5
- # You can see what browsers were selected by your queries by running:
6
- # npx browserslist
7
-
8
- > 0.5%
9
- last 2 versions
10
- Firefox ESR
11
- not dead
12
- # not IE 9-11 # For IE 9-11 support, remove 'not'.
13
- IE 9-11
@@ -1,32 +0,0 @@
1
- // @ts-check
2
- // Protractor configuration file, see link for more information
3
- // https://github.com/angular/protractor/blob/master/lib/config.ts
4
-
5
- const { SpecReporter } = require('jasmine-spec-reporter');
6
-
7
- /**
8
- * @type { import("protractor").Config }
9
- */
10
- exports.config = {
11
- allScriptsTimeout: 11000,
12
- specs: [
13
- './src/**/*.e2e-spec.ts'
14
- ],
15
- capabilities: {
16
- browserName: 'chrome'
17
- },
18
- directConnect: true,
19
- baseUrl: 'http://localhost:4200/',
20
- framework: 'jasmine',
21
- jasmineNodeOpts: {
22
- showColors: true,
23
- defaultTimeoutInterval: 30000,
24
- print: function() {}
25
- },
26
- onPrepare() {
27
- require('ts-node').register({
28
- project: require('path').join(__dirname, './tsconfig.json')
29
- });
30
- jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
31
- }
32
- };
@@ -1,23 +0,0 @@
1
- import { AppPage } from './app.po';
2
- import { browser, logging } from 'protractor';
3
-
4
- describe('workspace-project App', () => {
5
- let page: AppPage;
6
-
7
- beforeEach(() => {
8
- page = new AppPage();
9
- });
10
-
11
- it('should display welcome message', () => {
12
- page.navigateTo();
13
- expect(page.getTitleText()).toEqual('aacwidget-demo app is running!');
14
- });
15
-
16
- afterEach(async () => {
17
- // Assert that there are no errors emitted from the browser
18
- const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19
- expect(logs).not.toContain(jasmine.objectContaining({
20
- level: logging.Level.SEVERE,
21
- } as logging.Entry));
22
- });
23
- });
@@ -1,11 +0,0 @@
1
- import { browser, by, element } from 'protractor';
2
-
3
- export class AppPage {
4
- navigateTo(): Promise<unknown> {
5
- return browser.get(browser.baseUrl) as Promise<unknown>;
6
- }
7
-
8
- getTitleText(): Promise<string> {
9
- return element(by.css('app-root .content span')).getText() as Promise<string>;
10
- }
11
- }
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../out-tsc/e2e",
5
- "module": "commonjs",
6
- "target": "es5",
7
- "types": [
8
- "jasmine",
9
- "jasminewd2",
10
- "node"
11
- ]
12
- }
13
- }
@@ -1,32 +0,0 @@
1
- // Karma configuration file, see link for more information
2
- // https://karma-runner.github.io/1.0/config/configuration-file.html
3
-
4
- module.exports = function (config) {
5
- config.set({
6
- basePath: '',
7
- frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
- plugins: [
9
- require('karma-jasmine'),
10
- require('karma-chrome-launcher'),
11
- require('karma-jasmine-html-reporter'),
12
- require('karma-coverage-istanbul-reporter'),
13
- require('@angular-devkit/build-angular/plugins/karma')
14
- ],
15
- client: {
16
- clearContext: false // leave Jasmine Spec Runner output visible in browser
17
- },
18
- coverageIstanbulReporter: {
19
- dir: require('path').join(__dirname, './coverage/aacwidget-demo'),
20
- reports: ['html', 'lcovonly', 'text-summary'],
21
- fixWebpackSourcePaths: true
22
- },
23
- reporters: ['progress', 'kjhtml'],
24
- port: 9876,
25
- colors: true,
26
- logLevel: config.LOG_INFO,
27
- autoWatch: true,
28
- browsers: ['Chrome'],
29
- singleRun: false,
30
- restartOnFileChange: true
31
- });
32
- };