@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.
- package/VERSION.md +197 -0
- package/esm2022/lib/box-number/box-number.component.mjs +939 -0
- package/esm2022/lib/lib-address-autocomplete-by-component.component.mjs +1432 -0
- package/esm2022/lib/lib-address-autocomplete-by-component.module.mjs +45 -0
- package/esm2022/lib/lib-address-autocomplete-by-component.service.mjs +17 -0
- package/esm2022/lib/locality/locality.component.mjs +832 -0
- package/esm2022/lib/model/Box.mjs +35 -0
- package/esm2022/lib/model/Locality.mjs +35 -0
- package/esm2022/lib/model/Street.mjs +35 -0
- package/esm2022/lib/model/query-parameters.model.mjs +23 -0
- package/esm2022/lib/services/adress.service.mjs +69 -0
- package/esm2022/lib/services/http.service.mjs +61 -0
- package/esm2022/lib/services/locale.service.mjs +39 -0
- package/esm2022/lib/services/nis9.service.mjs +28 -0
- package/esm2022/lib/services/unicode.service.mjs +380 -0
- package/esm2022/lib/street/street.component.mjs +809 -0
- package/esm2022/lib/street-number/street-number.component.mjs +1026 -0
- package/{esm2020 → esm2022}/lib/utils/constants.mjs +2 -2
- package/esm2022/lib/utils/domhandler.mjs +51 -0
- package/esm2022/lib/utils/highlight-suggestion.pipe.mjs +76 -0
- package/esm2022/lib/utils/prefill-data.mjs +26 -0
- package/esm2022/lib/utils/prefilled-parameters.mjs +25 -0
- package/esm2022/lib/utils/preflll.event.mjs +9 -0
- package/esm2022/lib/utils/visible-suggestion.directive.mjs +41 -0
- package/{fesm2015 → fesm2022}/bpost-bp-address-auto-complete-by-component.mjs +1623 -1255
- package/fesm2022/bpost-bp-address-auto-complete-by-component.mjs.map +1 -0
- package/install-and-start-demo.bat +11 -0
- package/lib/box-number/box-number.component.d.ts +5 -1
- package/lib/lib-address-autocomplete-by-component.component.d.ts +8 -1
- package/lib/lib-address-autocomplete-by-component.module.d.ts +0 -15
- package/lib/locality/locality.component.d.ts +5 -1
- package/lib/street/street.component.d.ts +5 -1
- package/lib/street-number/street-number.component.d.ts +5 -1
- package/package.json +7 -13
- package/resources/assets/aacwidget/i18n/de.json +62 -0
- package/resources/assets/aacwidget/i18n/en.json +62 -0
- package/resources/assets/aacwidget/i18n/fr.json +62 -0
- package/resources/assets/aacwidget/i18n/nl.json +62 -0
- package/resources/assets/aacwidget/scss/aacwidget-custom.scss +81 -0
- package/resources/assets/aacwidget/scss/aacwidget-default.scss +424 -0
- package/tutorial/aacwidget-tutorial/.editorconfig +16 -0
- package/tutorial/aacwidget-tutorial/angular.json +128 -0
- package/tutorial/aacwidget-tutorial/browserslist +13 -0
- package/tutorial/aacwidget-tutorial/e2e/protractor.conf.js +32 -0
- package/tutorial/aacwidget-tutorial/e2e/src/app.e2e-spec.ts +23 -0
- package/tutorial/aacwidget-tutorial/e2e/src/app.po.ts +11 -0
- package/tutorial/aacwidget-tutorial/e2e/tsconfig.json +13 -0
- package/tutorial/aacwidget-tutorial/karma.conf.js +32 -0
- package/tutorial/aacwidget-tutorial/package-lock.json +13314 -0
- package/tutorial/aacwidget-tutorial/src/app/app-routing.module.ts +18 -0
- package/tutorial/aacwidget-tutorial/src/app/app.component.html +6 -0
- package/tutorial/aacwidget-tutorial/src/app/app.component.scss +0 -0
- package/tutorial/aacwidget-tutorial/src/app/app.component.spec.ts +35 -0
- package/tutorial/aacwidget-tutorial/src/app/app.component.ts +28 -0
- package/tutorial/aacwidget-tutorial/src/app/app.module.ts +47 -0
- package/tutorial/aacwidget-tutorial/src/app/widget-full/widget-full.component.html +57 -0
- package/tutorial/aacwidget-tutorial/src/app/widget-full/widget-full.component.scss +0 -0
- package/tutorial/aacwidget-tutorial/src/app/widget-full/widget-full.component.ts +160 -0
- package/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.html +20 -0
- package/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.scss +0 -0
- package/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.spec.ts +25 -0
- package/tutorial/aacwidget-tutorial/src/app/widget-simple/widget-simple.component.ts +49 -0
- package/tutorial/aacwidget-tutorial/src/assets/.gitkeep +0 -0
- package/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/de.json +62 -0
- package/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/en.json +62 -0
- package/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/fr.json +62 -0
- package/tutorial/aacwidget-tutorial/src/assets/aacwidget/i18n/nl.json +62 -0
- package/tutorial/aacwidget-tutorial/src/assets/aacwidget/scss/aacwidget-custom.scss +81 -0
- package/tutorial/aacwidget-tutorial/src/assets/aacwidget/scss/aacwidget-default.scss +424 -0
- package/tutorial/aacwidget-tutorial/src/environments/environment.prod.ts +3 -0
- package/tutorial/aacwidget-tutorial/src/environments/environment.ts +16 -0
- package/tutorial/aacwidget-tutorial/src/favicon.ico +0 -0
- package/tutorial/aacwidget-tutorial/src/index.html +45 -0
- package/tutorial/aacwidget-tutorial/src/main.ts +12 -0
- package/tutorial/aacwidget-tutorial/src/polyfills.ts +63 -0
- package/tutorial/aacwidget-tutorial/src/styles.scss +4 -0
- package/tutorial/aacwidget-tutorial/src/test.ts +25 -0
- package/tutorial/aacwidget-tutorial/tsconfig.app.json +15 -0
- package/tutorial/aacwidget-tutorial/tsconfig.json +23 -0
- package/tutorial/aacwidget-tutorial/tsconfig.spec.json +18 -0
- package/tutorial/aacwidget-tutorial/tslint.json +148 -0
- package/tutorial/tutorial-videos.txt +41 -0
- package/esm2020/lib/box-number/box-number.component.mjs +0 -873
- package/esm2020/lib/lib-address-autocomplete-by-component.component.mjs +0 -1383
- package/esm2020/lib/lib-address-autocomplete-by-component.module.mjs +0 -65
- package/esm2020/lib/lib-address-autocomplete-by-component.service.mjs +0 -14
- package/esm2020/lib/locality/locality.component.mjs +0 -747
- package/esm2020/lib/model/Box.mjs +0 -30
- package/esm2020/lib/model/Locality.mjs +0 -30
- package/esm2020/lib/model/Street.mjs +0 -30
- package/esm2020/lib/model/query-parameters.model.mjs +0 -21
- package/esm2020/lib/services/adress.service.mjs +0 -64
- package/esm2020/lib/services/http.service.mjs +0 -57
- package/esm2020/lib/services/locale.service.mjs +0 -37
- package/esm2020/lib/services/nis9.service.mjs +0 -26
- package/esm2020/lib/services/unicode.service.mjs +0 -376
- package/esm2020/lib/street/street.component.mjs +0 -735
- package/esm2020/lib/street-number/street-number.component.mjs +0 -967
- package/esm2020/lib/utils/domhandler.mjs +0 -47
- package/esm2020/lib/utils/highlight-suggestion.pipe.mjs +0 -62
- package/esm2020/lib/utils/prefill-data.mjs +0 -24
- package/esm2020/lib/utils/prefilled-parameters.mjs +0 -23
- package/esm2020/lib/utils/preflll.event.mjs +0 -7
- package/esm2020/lib/utils/visible-suggestion.directive.mjs +0 -39
- package/fesm2015/bpost-bp-address-auto-complete-by-component.mjs.map +0 -1
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs +0 -5592
- package/fesm2020/bpost-bp-address-auto-complete-by-component.mjs.map +0 -1
- /package/{esm2020 → esm2022}/bpost-bp-address-auto-complete-by-component.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/enum/address-level.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/enum/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/enum/input-name.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/enum/source-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/enum/suggestion-level-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/enum/validation-message-option-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/enum/validation-message-type.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{bpost-bp-address-auto-complete-by-component.d.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"common": {
|
|
3
|
+
"message": {
|
|
4
|
+
"address-not-found": "Het adres werd niet herkend.",
|
|
5
|
+
"address-validated": "Het adres werd gevalideerd.",
|
|
6
|
+
"service-unavailable": "Er kon geen verbinding gemaakt worden. Probeer later opnieuw."
|
|
7
|
+
},
|
|
8
|
+
"label": {
|
|
9
|
+
"boxNumber": "postbus",
|
|
10
|
+
"streetNumber": "huisnummer",
|
|
11
|
+
"municipalityName": "gemeente",
|
|
12
|
+
"postalCode": "postcode",
|
|
13
|
+
"streetName": "straatnaam"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"locality": {
|
|
17
|
+
"placeholder": {
|
|
18
|
+
"input-placeholder": "Voer een postal code / deelgemeente in ..."
|
|
19
|
+
},
|
|
20
|
+
"suggestion": {
|
|
21
|
+
"message": {
|
|
22
|
+
"subl": "<em>{{sub}}</em> is een deelgemeente van <em>{{principal}}</em>"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"street": {
|
|
27
|
+
"placeholder": {
|
|
28
|
+
"input-placeholder": "Voer een straat naam in ..."
|
|
29
|
+
},
|
|
30
|
+
"suggestion": {
|
|
31
|
+
"message": {
|
|
32
|
+
"subl": "<em>{{sub}}</em> is een deelgemeente van <em>{{principal}}</em>"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"streetNumber": {
|
|
37
|
+
"placeholder": {
|
|
38
|
+
"input-placeholder": "Voer een straat nummer in ..."
|
|
39
|
+
},
|
|
40
|
+
"suggestion": {
|
|
41
|
+
"message": {
|
|
42
|
+
"subl": "<em>{{sub}}</em> is een deelgemeente van <em>{{principal}}</em>"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"message": {
|
|
46
|
+
"not-in-list": "Het straat nummer staat niet in de lijst"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"boxNumber": {
|
|
50
|
+
"placeholder": {
|
|
51
|
+
"input-placeholder": "Voer een bus nummer in ..."
|
|
52
|
+
},
|
|
53
|
+
"suggestion": {
|
|
54
|
+
"message": {
|
|
55
|
+
"subl": "<em>{{sub}}</em> is een deelgemeente van <em>{{principal}}</em>"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"message": {
|
|
59
|
+
"not-in-list": "Het bus nummer staat niet in de lijst"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// ///////////////////////////////////////////////////////
|
|
2
|
+
|
|
3
|
+
@media screen and (min-width: 641px) {
|
|
4
|
+
|
|
5
|
+
.aacwidget-address-container {
|
|
6
|
+
|
|
7
|
+
margin-bottom: 30px;
|
|
8
|
+
|
|
9
|
+
.aacwidget-address-locality {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.aacwidget-address-street {
|
|
13
|
+
position: absolute;
|
|
14
|
+
width: 40%;
|
|
15
|
+
.bpaac-input-width {
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.aacwidget-address-streetnumber {
|
|
21
|
+
position: absolute;
|
|
22
|
+
left: 45%;
|
|
23
|
+
width: 20%;
|
|
24
|
+
.bpaac-input-width {
|
|
25
|
+
width: 90%;
|
|
26
|
+
}
|
|
27
|
+
.streetNbChekmark {
|
|
28
|
+
position: relative;
|
|
29
|
+
left: 5px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.aacwidget-address-boxnumber {
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: 70%;
|
|
36
|
+
.bpaac-input-width {
|
|
37
|
+
width: 80%;
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
.boxNbChekmark {
|
|
41
|
+
position: relative;
|
|
42
|
+
left: 5px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media screen and (max-width: 640px) {
|
|
49
|
+
.aacwidget-address-container {
|
|
50
|
+
|
|
51
|
+
margin-bottom: 20px;
|
|
52
|
+
|
|
53
|
+
.aacwidget-address-locality {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.aacwidget-address-street {
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.aacwidget-address-streetnumber {
|
|
60
|
+
.bpaac-input-width {
|
|
61
|
+
width: 90%;
|
|
62
|
+
}
|
|
63
|
+
.streetNbChekmark {
|
|
64
|
+
position: relative;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.aacwidget-address-boxnumber {
|
|
69
|
+
.bpaac-input-width {
|
|
70
|
+
width: 90%;
|
|
71
|
+
position: relative;
|
|
72
|
+
}
|
|
73
|
+
.boxNbChekmark {
|
|
74
|
+
position: relative;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
/* You can add global styles to this file, and also import other style files */
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// ----------------------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
.divider-right {
|
|
9
|
+
border-right: 1px solid #bce8f1;
|
|
10
|
+
height: 40px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.padding-6 {
|
|
14
|
+
padding-left: 6px !important;
|
|
15
|
+
padding-right: 6px !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.justify-word {
|
|
19
|
+
word-break: break-all;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.bpaac-form-control
|
|
23
|
+
{
|
|
24
|
+
margin-bottom: 6px;
|
|
25
|
+
margin-left: 6px;
|
|
26
|
+
}
|
|
27
|
+
.bpaac-panel-title{
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
}
|
|
30
|
+
.bpaac-lb-sm {
|
|
31
|
+
font-weight: normal;
|
|
32
|
+
}
|
|
33
|
+
.bpaac-panel-heading {
|
|
34
|
+
padding: 7px 10px;
|
|
35
|
+
background-color: rgb(202, 233, 220);
|
|
36
|
+
background-color: #d9edf7;
|
|
37
|
+
border-color: #bce8f1;
|
|
38
|
+
}
|
|
39
|
+
.bpaac-btn {
|
|
40
|
+
margin-bottom: 6px;
|
|
41
|
+
margin-left: 6px;
|
|
42
|
+
}
|
|
43
|
+
.dropdown-menu bpaac-help-option{
|
|
44
|
+
align-self: right;
|
|
45
|
+
}
|
|
46
|
+
.bpaac-suggestion-char-highlight{
|
|
47
|
+
font-weight: bold;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.bpaac-option-highlight {
|
|
51
|
+
background: #dddddd;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.bpaac-button{
|
|
55
|
+
left: 0;
|
|
56
|
+
border: 0 solid transparent;
|
|
57
|
+
border-bottom-left-radius: 0;
|
|
58
|
+
border-top-left-radius: 0;
|
|
59
|
+
position: relative;
|
|
60
|
+
height: 26px;
|
|
61
|
+
background-color:#4285f4;
|
|
62
|
+
margin: 0;
|
|
63
|
+
outline: none;
|
|
64
|
+
padding: 0 0;
|
|
65
|
+
width: 35px;
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
-webkit-box-shadow: none;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAA30lEQVR4nI2RMU7DQBBFvy1hcQHTxkI0S8kVUiBxKg4RxQUnMD0Fd4AG6KgcKkRHUBQrxUszi8ZrL+JLXzv6s0+7mhEg8wJogR4Y7GyBxt35dSyugW/mtbX+BFw46B64BCogAJ2DmxRcW7Ob+5KD2xTsrREyYLB+7/MCGCRV5oOmqiQN5tMYlpI+rb6YgXy+8WEp6cHq2wwY88dRatPaugEF4CSZKsDV3B5vgJ/MHqNegToFBZwDd8AHsAfegZW99GLwG3CWgn+5dvAzoDIzkFRfkpaSniTtJKkA/smOdQRp67ytYRSzEQAAAABJRU5ErkJggg==');
|
|
70
|
+
background-repeat: no-repeat;
|
|
71
|
+
background-position: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
.bpaac-button:active{
|
|
77
|
+
border: 0 solid transparent;
|
|
78
|
+
-webkit-box-shadow: inset 0 2px 0 rgba(0,0,0,.15);
|
|
79
|
+
box-shadow: inset 0 2px 0 rgba(0,0,0,.15);
|
|
80
|
+
background-color: #3c78dc;
|
|
81
|
+
background-color: -webkit-linear-gradient(top,#3c7ae4,#3f76d3);
|
|
82
|
+
background-color: linear-gradient(to bottom,#3c7ae4,#3f76d3);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.bpaac-validated-icon{
|
|
86
|
+
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAxklEQVR4nI3QP0vCURTG8Y++B8GGnFobJGiRQNzc2hvcnXsJDc3OEbS49hpaGpx1EhQJGoQaLKjI/gydC9cfP6UHznDP+T7cc56KTVVxgBoeMbdDfSzwk9UYp2XwdQEs1nkOn+0Al1jhC81kuI/hdwGeooGjeF8lwwvecYIe1phgL+aXYRglwzIMrXh3/aVUwSD78S4ZbqPxik70qrFCvuJFMhzjM5pvEcKwAD+hnifVw8eWpJ7RVqJD3OAhbprFDftl8L/1C3gjSNJmHs5CAAAAAElFTkSuQmCC')
|
|
87
|
+
no-repeat;
|
|
88
|
+
background-size: 14px 14px;
|
|
89
|
+
display: inline-block;
|
|
90
|
+
width: 14px;
|
|
91
|
+
height: 14px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
//////////////////////////////////////////////////////////////////////////////
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
.bpaac-dropdown{
|
|
98
|
+
/* width : 400px; */
|
|
99
|
+
position:relative;
|
|
100
|
+
height:26px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.bpaac-search-bar {
|
|
104
|
+
position: relative;
|
|
105
|
+
min-height: 20px;
|
|
106
|
+
height:26px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.bpaac-input-width{
|
|
110
|
+
position:relative;
|
|
111
|
+
width: calc(100% - 5px);
|
|
112
|
+
float:left;
|
|
113
|
+
background-color:white;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.bpaac-input {
|
|
117
|
+
width: 100%;
|
|
118
|
+
position: relative;
|
|
119
|
+
top: 0;
|
|
120
|
+
left: 0;
|
|
121
|
+
z-index: 5;
|
|
122
|
+
padding-left: 5px;
|
|
123
|
+
padding-right:0px;
|
|
124
|
+
line-height: 20px;
|
|
125
|
+
-webkit-border-radius: 6px;
|
|
126
|
+
-moz-border-radius: 6px;
|
|
127
|
+
border-radius: 6px;
|
|
128
|
+
background-color:transparent;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.bpaac-clear {
|
|
132
|
+
position: absolute;
|
|
133
|
+
right: 5px;
|
|
134
|
+
top:6px;
|
|
135
|
+
z-index: 12;
|
|
136
|
+
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAvklEQVR4nJ2SsQ2DQAxFXxBSGspskCbTpKSiQaDUGYE5UBANFWWmScMWFESKEEU+ku8OGtz4/L+/fbZ8qqqKIxYdUnnCOzABL4NHiifxgTABeuAMFEqO5QvhvfIc4Qh0pmAOfORX65QXfPUBtCa+mncrfnPGWeSAa4PweU8YAbXXae1ce7lOUOPOZDvn4gNhAmQGb4Eb7swZO1tNgS/QACXwk2+Ep5itxqbiG7hYkv9CSuDp4cHJjWxbgB++1QVY2ijORRI4QQAAAABJRU5ErkJggg==')
|
|
137
|
+
no-repeat;
|
|
138
|
+
background-size: 14px 14px;
|
|
139
|
+
display: inline-block;
|
|
140
|
+
width: 14px;
|
|
141
|
+
height: 14px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.bpaac-clear:hover {
|
|
145
|
+
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAY0lEQVR4nMWRSwrAMAhEHyHLnq0nlJwsB3GXbqYg+SyaQvtAxFEYE+FPTsABA5K0pNrVHzjUbIoCZOVbc80NWBhqQO1qW62aOocYJaw/JU+cqvQl245bb3z1q1t3jM5P9A+5ALYeN4B2Qo/zAAAAAElFTkSuQmCC')
|
|
146
|
+
no-repeat;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
#bpaac-street-typeahead{
|
|
150
|
+
width: calc(100% - 5px);
|
|
151
|
+
position: absolute;
|
|
152
|
+
top: 0;
|
|
153
|
+
left: 0;
|
|
154
|
+
background: transparent;
|
|
155
|
+
z-index: 1;
|
|
156
|
+
padding-left: 5px;
|
|
157
|
+
padding-right:0px;
|
|
158
|
+
line-height: 20px;
|
|
159
|
+
-webkit-border-radius: 6px;
|
|
160
|
+
-moz-border-radius: 6px;
|
|
161
|
+
border-radius: 6px;
|
|
162
|
+
-webkit-text-fill-color: silver;
|
|
163
|
+
color: silver
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.bpaac-dropdown-menu-container{
|
|
167
|
+
position: relative;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.bpaac-dropdown-menu{
|
|
171
|
+
position: absolute;
|
|
172
|
+
top: 100%;
|
|
173
|
+
left: 0;
|
|
174
|
+
z-index: 1000;
|
|
175
|
+
float: left;
|
|
176
|
+
min-width: 160px;
|
|
177
|
+
margin: 2px 0 0;
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
text-align: left;
|
|
180
|
+
background-color: #fff;
|
|
181
|
+
/* border: 1px solid #ccc; */
|
|
182
|
+
border: 1px solid rgba(0, 0, 0, .15);
|
|
183
|
+
border-radius: 4px;
|
|
184
|
+
box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
|
|
185
|
+
padding: 5px 0 0 0;
|
|
186
|
+
overflow-x: auto;
|
|
187
|
+
width: 100%;
|
|
188
|
+
max-height: 300px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.bpaac-dropdown-menu li:active,
|
|
192
|
+
.bpaac-dropdown-menu li.active {
|
|
193
|
+
color: #20a28e;
|
|
194
|
+
background: #dddddd;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.bpaac-dropdown-menu li.validatedSuggestion {
|
|
198
|
+
color: #20a28e;
|
|
199
|
+
background: #7e86dd;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.bpaac-dropdown-menu:focus{
|
|
203
|
+
outline:none;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.bpaac-dropdown-menu ul{
|
|
207
|
+
padding-bottom: 0;
|
|
208
|
+
padding-left: 0;
|
|
209
|
+
padding-top: 0;
|
|
210
|
+
margin: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.bpaac-dropdown-menu li {
|
|
214
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
215
|
+
color: #333333;
|
|
216
|
+
font-weight: 400;
|
|
217
|
+
padding: 4px 10px;
|
|
218
|
+
font-size: 1em;
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
border-bottom: 1px solid #dddddd;
|
|
221
|
+
}
|
|
222
|
+
.bpaac-dropdown-menu li:hover {
|
|
223
|
+
background: #dddddd;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.checkmark {
|
|
227
|
+
position: absolute;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.checkmark:before {
|
|
231
|
+
content: " ";
|
|
232
|
+
display: block;
|
|
233
|
+
border: solid 0.8em #39ad39;
|
|
234
|
+
border-radius: 0.8em;
|
|
235
|
+
height: 0;
|
|
236
|
+
width: 0;
|
|
237
|
+
position: absolute;
|
|
238
|
+
top: 40%;
|
|
239
|
+
left: 2px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.checkmark:after {
|
|
243
|
+
content: " ";
|
|
244
|
+
display: block;
|
|
245
|
+
width: 9px;
|
|
246
|
+
height: 12px;
|
|
247
|
+
border: solid #fff;
|
|
248
|
+
border-width: 0 0.2em 0.2em 0;
|
|
249
|
+
position: absolute;
|
|
250
|
+
left: 8px;
|
|
251
|
+
/* top: 39%; */
|
|
252
|
+
margin-top: 4px;
|
|
253
|
+
-webkit-transform: rotate(45deg);
|
|
254
|
+
-moz-transform: rotate(45deg);
|
|
255
|
+
-o-transform: rotate(45deg);
|
|
256
|
+
transform: rotate(45deg);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// locality
|
|
260
|
+
#bpaac-locality-typeahead{
|
|
261
|
+
width: calc(100% - 5px);
|
|
262
|
+
position: absolute;
|
|
263
|
+
top: 0;
|
|
264
|
+
left: 0;
|
|
265
|
+
background: transparent;
|
|
266
|
+
z-index: 1;
|
|
267
|
+
padding-left: 5px;
|
|
268
|
+
padding-right:0px;
|
|
269
|
+
line-height: 20px;
|
|
270
|
+
-webkit-border-radius: 6px;
|
|
271
|
+
-moz-border-radius: 6px;
|
|
272
|
+
border-radius: 6px;
|
|
273
|
+
-webkit-text-fill-color: silver;
|
|
274
|
+
color: silver
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/*
|
|
278
|
+
#bpaac-locality-typeahead {
|
|
279
|
+
visibility: hidden;
|
|
280
|
+
}
|
|
281
|
+
*/
|
|
282
|
+
|
|
283
|
+
#bpaac-locality-typeahead{
|
|
284
|
+
width: calc(100% - 5px);
|
|
285
|
+
position: absolute;
|
|
286
|
+
top: 0;
|
|
287
|
+
left: 0;
|
|
288
|
+
background: transparent;
|
|
289
|
+
z-index: 1;
|
|
290
|
+
padding-left: 5px;
|
|
291
|
+
padding-right:0px;
|
|
292
|
+
line-height: 20px;
|
|
293
|
+
-webkit-border-radius: 6px;
|
|
294
|
+
-moz-border-radius: 6px;
|
|
295
|
+
border-radius: 6px;
|
|
296
|
+
-webkit-text-fill-color: silver;
|
|
297
|
+
color: silver
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
// STREET
|
|
303
|
+
#bpaac-street-typeahead{
|
|
304
|
+
width: calc(100% - 5px);
|
|
305
|
+
position: absolute;
|
|
306
|
+
top: 0;
|
|
307
|
+
left: 0;
|
|
308
|
+
background: transparent;
|
|
309
|
+
z-index: 1;
|
|
310
|
+
padding-left: 5px;
|
|
311
|
+
padding-right:0px;
|
|
312
|
+
line-height: 20px;
|
|
313
|
+
-webkit-border-radius: 6px;
|
|
314
|
+
-moz-border-radius: 6px;
|
|
315
|
+
border-radius: 6px;
|
|
316
|
+
-webkit-text-fill-color: silver;
|
|
317
|
+
color: silver
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/*
|
|
321
|
+
#bpaac-street-typeahead {
|
|
322
|
+
visibility: hidden;
|
|
323
|
+
}
|
|
324
|
+
*/
|
|
325
|
+
|
|
326
|
+
#bpaac-street-typeahead{
|
|
327
|
+
width: calc(100% - 5px);
|
|
328
|
+
position: absolute;
|
|
329
|
+
top: 0;
|
|
330
|
+
left: 0;
|
|
331
|
+
background: transparent;
|
|
332
|
+
z-index: 1;
|
|
333
|
+
padding-left: 5px;
|
|
334
|
+
padding-right:0px;
|
|
335
|
+
line-height: 20px;
|
|
336
|
+
-webkit-border-radius: 6px;
|
|
337
|
+
-moz-border-radius: 6px;
|
|
338
|
+
border-radius: 6px;
|
|
339
|
+
-webkit-text-fill-color: silver;
|
|
340
|
+
color: silver
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// STREET NUMBER
|
|
344
|
+
#bpaac-streetNb-typeahead{
|
|
345
|
+
width: calc(100% - 30px);
|
|
346
|
+
position: absolute;
|
|
347
|
+
top: 0;
|
|
348
|
+
left: 0;
|
|
349
|
+
background: transparent;
|
|
350
|
+
z-index: 1;
|
|
351
|
+
padding-left: 5px;
|
|
352
|
+
padding-right:0px;
|
|
353
|
+
line-height: 20px;
|
|
354
|
+
-webkit-border-radius: 6px;
|
|
355
|
+
-moz-border-radius: 6px;
|
|
356
|
+
border-radius: 6px;
|
|
357
|
+
-webkit-text-fill-color: silver;
|
|
358
|
+
color: silver
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/*
|
|
362
|
+
#bpaac-streetNb-typeahead {
|
|
363
|
+
visibility: hidden;
|
|
364
|
+
}
|
|
365
|
+
*/
|
|
366
|
+
|
|
367
|
+
#bpaac-streetNb-typeahead{
|
|
368
|
+
width: calc(100% - 30px);
|
|
369
|
+
position: absolute;
|
|
370
|
+
top: 0;
|
|
371
|
+
left: 0;
|
|
372
|
+
background: transparent;
|
|
373
|
+
z-index: 1;
|
|
374
|
+
padding-left: 5px;
|
|
375
|
+
padding-right:0px;
|
|
376
|
+
line-height: 20px;
|
|
377
|
+
-webkit-border-radius: 6px;
|
|
378
|
+
-moz-border-radius: 6px;
|
|
379
|
+
border-radius: 6px;
|
|
380
|
+
-webkit-text-fill-color: silver;
|
|
381
|
+
color: silver
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
// BOX NUMBER
|
|
386
|
+
#bpaac-boxNb-typeahead{
|
|
387
|
+
width: calc(100% - 30px);
|
|
388
|
+
position: absolute;
|
|
389
|
+
top: 0;
|
|
390
|
+
left: 0;
|
|
391
|
+
background: transparent;
|
|
392
|
+
z-index: 1;
|
|
393
|
+
padding-left: 5px;
|
|
394
|
+
padding-right:0px;
|
|
395
|
+
line-height: 20px;
|
|
396
|
+
-webkit-border-radius: 6px;
|
|
397
|
+
-moz-border-radius: 6px;
|
|
398
|
+
border-radius: 6px;
|
|
399
|
+
-webkit-text-fill-color: silver;
|
|
400
|
+
color: silver
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/*
|
|
404
|
+
#bpaac-boxNb-typeahead {
|
|
405
|
+
visibility: hidden;
|
|
406
|
+
}
|
|
407
|
+
*/
|
|
408
|
+
|
|
409
|
+
#bpaac-boxNb-typeahead{
|
|
410
|
+
width: calc(100% - 30px);
|
|
411
|
+
position: absolute;
|
|
412
|
+
top: 0;
|
|
413
|
+
left: 0;
|
|
414
|
+
background: transparent;
|
|
415
|
+
z-index: 1;
|
|
416
|
+
padding-left: 5px;
|
|
417
|
+
padding-right:0px;
|
|
418
|
+
line-height: 20px;
|
|
419
|
+
-webkit-border-radius: 6px;
|
|
420
|
+
-moz-border-radius: 6px;
|
|
421
|
+
border-radius: 6px;
|
|
422
|
+
-webkit-text-fill-color: silver;
|
|
423
|
+
color: silver
|
|
424
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// This file can be replaced during build by using the `fileReplacements` array.
|
|
2
|
+
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
3
|
+
// The list of file replacements can be found in `angular.json`.
|
|
4
|
+
|
|
5
|
+
export const environment = {
|
|
6
|
+
production: false
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* For easier debugging in development mode, you can import the following file
|
|
11
|
+
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
|
12
|
+
*
|
|
13
|
+
* This import should be commented out in production mode because it will have a negative impact
|
|
14
|
+
* on performance if an error is thrown.
|
|
15
|
+
*/
|
|
16
|
+
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
|
Binary file
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>AacwidgetDemo</title>
|
|
6
|
+
<base href="/">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
+
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
function insertScript(filename) {
|
|
12
|
+
var head = document.getElementsByTagName('head')[0];
|
|
13
|
+
var script = document.createElement('script');
|
|
14
|
+
script.src = filename;
|
|
15
|
+
script.type = 'text/javascript';
|
|
16
|
+
head.appendChild(script);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Internet Explorer 9-11
|
|
20
|
+
var isIE = /*@cc_on!@*/false || !!document.documentMode;
|
|
21
|
+
// Edge 20+
|
|
22
|
+
var isEdge = !isIE && !!window.StyleMedia;
|
|
23
|
+
|
|
24
|
+
console.log('is this IE ?', isIE);
|
|
25
|
+
// Internet Explorer 6-11
|
|
26
|
+
// var isIE = /*@cc_on!@*/false || !!document.documentMode;
|
|
27
|
+
if(isIE === true || isEdge === true /*|| isFirefox===true*/) {
|
|
28
|
+
//var filename = "./assets/js/custom-elements.min.js";
|
|
29
|
+
var filename = "https://cdnjs.cloudflare.com/ajax/libs/custom-elements/1.3.0/custom-elements.min.js";
|
|
30
|
+
insertScript(filename);
|
|
31
|
+
filename = "https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js";
|
|
32
|
+
insertScript(filename);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if(isIE === false /*&& isFirefox===false*/) {
|
|
36
|
+
var filename = "https://unpkg.com/@webcomponents/webcomponentsjs@2.0.3/custom-elements-es5-adapter.js";
|
|
37
|
+
insertScript(filename);
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
</head>
|
|
42
|
+
<body>
|
|
43
|
+
<app-root></app-root>
|
|
44
|
+
</body>
|
|
45
|
+
</html>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { enableProdMode } from '@angular/core';
|
|
2
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
|
+
|
|
4
|
+
import { AppModule } from './app/app.module';
|
|
5
|
+
import { environment } from './environments/environment';
|
|
6
|
+
|
|
7
|
+
if (environment.production) {
|
|
8
|
+
enableProdMode();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
platformBrowserDynamic().bootstrapModule(AppModule)
|
|
12
|
+
.catch(err => console.error(err));
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
3
|
+
* You can add your own extra polyfills to this file.
|
|
4
|
+
*
|
|
5
|
+
* This file is divided into 2 sections:
|
|
6
|
+
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
7
|
+
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
8
|
+
* file.
|
|
9
|
+
*
|
|
10
|
+
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
11
|
+
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
12
|
+
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
13
|
+
*
|
|
14
|
+
* Learn more in https://angular.io/guide/browser-support
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/***************************************************************************************************
|
|
18
|
+
* BROWSER POLYFILLS
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
22
|
+
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Web Animations `@angular/platform-browser/animations`
|
|
26
|
+
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
|
27
|
+
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
|
28
|
+
*/
|
|
29
|
+
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* By default, zone.js will patch all possible macroTask and DomEvents
|
|
33
|
+
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
|
34
|
+
* because those flags need to be set before `zone.js` being loaded, and webpack
|
|
35
|
+
* will put import in the top of bundle, so user need to create a separate file
|
|
36
|
+
* in this directory (for example: zone-flags.ts), and put the following flags
|
|
37
|
+
* into that file, and then add the following code before importing zone.js.
|
|
38
|
+
* import './zone-flags';
|
|
39
|
+
*
|
|
40
|
+
* The flags allowed in zone-flags.ts are listed here.
|
|
41
|
+
*
|
|
42
|
+
* The following flags will work for all browsers.
|
|
43
|
+
*
|
|
44
|
+
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|
45
|
+
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|
46
|
+
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|
47
|
+
*
|
|
48
|
+
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
|
49
|
+
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
|
50
|
+
*
|
|
51
|
+
* (window as any).__Zone_enable_cross_context_check = true;
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/***************************************************************************************************
|
|
56
|
+
* Zone JS is required by default for Angular itself.
|
|
57
|
+
*/
|
|
58
|
+
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/***************************************************************************************************
|
|
62
|
+
* APPLICATION IMPORTS
|
|
63
|
+
*/
|