@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 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="postal_code"
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.city = obj.locality
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
@@ -160,6 +160,7 @@ export const AwAddressBlock = {
160
160
  street: 'Straße',
161
161
  apt: 'Wohnung, Suite usw. (optional)',
162
162
  city: 'Stadt',
163
+ region: 'Bundesland',
163
164
  postal_code: 'PLZ',
164
165
  country: 'Land',
165
166
  modal: {
package/lang/en.js CHANGED
@@ -181,6 +181,7 @@ export const AwAddressBlock = {
181
181
  street: 'Street',
182
182
  apt: 'Apt, suite, etc (optional)',
183
183
  city: 'City',
184
+ region: 'Region / State',
184
185
  postal_code: 'ZIP code',
185
186
  country: 'Country',
186
187
  modal: {
package/lang/ru.js CHANGED
@@ -165,6 +165,7 @@ export const AwAddressBlock = {
165
165
  street: 'Улица, дом',
166
166
  apt: 'Кв., офис (не обязательно)',
167
167
  city: 'Город',
168
+ region: 'Регион',
168
169
  postal_code: 'Почтовый код',
169
170
  country: 'Страна',
170
171
  modal: {
package/lang/uk.js CHANGED
@@ -161,6 +161,7 @@ export const AwAddressBlock = {
161
161
  street: 'Вулиця, будинок',
162
162
  apt: "Кв., офіс (не обов'язково)",
163
163
  city: 'Місто',
164
+ region: 'Область',
164
165
  postal_code: 'Поштовий код',
165
166
  country: 'Країна',
166
167
  modal: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.47.3",
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": "8893c573987e8a2a7dc86cc75423b148a6428405"
126
+ "gitHead": "3cb0d3e77033606ec2de981858a7280b55448215"
127
127
  }