@awes-io/ui 2.47.3 → 2.48.0
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/CHANGELOG.md +11 -0
- package/components/3_organisms/AwAddressBlock.vue +42 -2
- package/lang/de.js +1 -0
- package/lang/en.js +1 -0
- package/lang/ru.js +1 -0
- package/lang/uk.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.48.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.47.3...@awes-io/ui@2.48.0) (2022-05-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **aw-address-block:** region added ([018a113](https://github.com/awes-io/client/commit/018a113f7bd397df33042e87619e5e9b7f0f08df))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.47.3](https://github.com/awes-io/client/compare/@awes-io/ui@2.47.2...@awes-io/ui@2.47.3) (2022-04-26)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -57,6 +57,17 @@
|
|
|
57
57
|
/>
|
|
58
58
|
</AwInfo>
|
|
59
59
|
|
|
60
|
+
<AwInfo :label="$t('AwAddressBlock.region')">
|
|
61
|
+
<span v-if="model.address.region">
|
|
62
|
+
{{ model.address.region }}
|
|
63
|
+
</span>
|
|
64
|
+
<AwLink
|
|
65
|
+
v-else
|
|
66
|
+
:text="$t('AwAddressBlock.add')"
|
|
67
|
+
@click="openModal('region')"
|
|
68
|
+
/>
|
|
69
|
+
</AwInfo>
|
|
70
|
+
|
|
60
71
|
<AwInfo :label="$t('AwAddressBlock.postal_code')">
|
|
61
72
|
<span v-if="model.address.postal_code">
|
|
62
73
|
{{ model.address.postal_code }}
|
|
@@ -133,6 +144,13 @@
|
|
|
133
144
|
:error="model.errors['address.city']"
|
|
134
145
|
/>
|
|
135
146
|
|
|
147
|
+
<AwInput
|
|
148
|
+
ref="region"
|
|
149
|
+
v-model="address.region"
|
|
150
|
+
:label="$t('AwAddressBlock.region')"
|
|
151
|
+
:error="model.errors['address.region']"
|
|
152
|
+
/>
|
|
153
|
+
|
|
136
154
|
<AwInput
|
|
137
155
|
ref="postal_code"
|
|
138
156
|
v-model="address.postal_code"
|
|
@@ -141,7 +159,7 @@
|
|
|
141
159
|
/>
|
|
142
160
|
|
|
143
161
|
<AwInput
|
|
144
|
-
ref="
|
|
162
|
+
ref="country"
|
|
145
163
|
:value="model.address.meta.google_country_name"
|
|
146
164
|
:label="$t('AwAddressBlock.country')"
|
|
147
165
|
:error="model.errors['address.meta.google_country_name']"
|
|
@@ -181,6 +199,7 @@ const BASE = {
|
|
|
181
199
|
google_country_name: null
|
|
182
200
|
},
|
|
183
201
|
country_iso: null,
|
|
202
|
+
region: null,
|
|
184
203
|
city: null,
|
|
185
204
|
postal_code: null,
|
|
186
205
|
address_1: null,
|
|
@@ -279,7 +298,11 @@ export default {
|
|
|
279
298
|
|
|
280
299
|
address.meta.google_country_name = obj.country || 'Germany'
|
|
281
300
|
address.country_iso = obj.country_iso || 'DE'
|
|
282
|
-
address.
|
|
301
|
+
address.region = obj.administrative_area_level_1
|
|
302
|
+
address.city =
|
|
303
|
+
obj.locality ||
|
|
304
|
+
obj.postal_town ||
|
|
305
|
+
obj.administrative_area_level_2
|
|
283
306
|
address.postal_code = obj.postal_code
|
|
284
307
|
address.address_1 =
|
|
285
308
|
(obj.route ? `${obj.route} ` : '') + (obj.street_number || '')
|
|
@@ -289,6 +312,23 @@ export default {
|
|
|
289
312
|
}
|
|
290
313
|
address.timezone = obj.timezone
|
|
291
314
|
|
|
315
|
+
// additional info
|
|
316
|
+
if (obj.route) {
|
|
317
|
+
address.meta.street = obj.route
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (obj.street_number) {
|
|
321
|
+
address.meta.house = obj.street_number
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
if (obj.neighborhood) {
|
|
325
|
+
address.meta.neighborhood = obj.neighborhood
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if (obj.administrative_area_level_2) {
|
|
329
|
+
address.meta.county = obj.administrative_area_level_2
|
|
330
|
+
}
|
|
331
|
+
|
|
292
332
|
event.data = address
|
|
293
333
|
|
|
294
334
|
this.$emit('data', event)
|
package/lang/de.js
CHANGED
package/lang/en.js
CHANGED
package/lang/ru.js
CHANGED
package/lang/uk.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.48.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"vue-template-compiler": "^2.6.10",
|
|
124
124
|
"webfonts-generator": "^0.4.0"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "3cb0d3e77033606ec2de981858a7280b55448215"
|
|
127
127
|
}
|