@awes-io/ui 2.145.3 → 2.145.5

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,28 @@
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.145.5](https://github.com/awes-io/client/compare/@awes-io/ui@2.145.4...@awes-io/ui@2.145.5) (2026-09-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui:** nav padding-top without max() nested in calc() (EW-704) ([ceea01e](https://github.com/awes-io/client/commit/ceea01efd585bf35a6b5338a7834070981a42d0a))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.145.4](https://github.com/awes-io/client/compare/@awes-io/ui@2.145.3...@awes-io/ui@2.145.4) (2026-09-16)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **ui:** save google address parts in company language (EW-593) ([53791c5](https://github.com/awes-io/client/commit/53791c5468388db4a71efce43e9a48a4af6c2196))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [2.145.3](https://github.com/awes-io/client/compare/@awes-io/ui@2.145.2...@awes-io/ui@2.145.3) (2026-09-16)
7
29
 
8
30
 
@@ -1,6 +1,6 @@
1
1
  .aw-nav {
2
2
  padding-top: 1.5rem;
3
- padding-top: calc(0.5rem + max(16px, calc(env(safe-area-inset-top) - 16px)));
3
+ padding-top: max(calc(0.5rem + 16px), calc(0.5rem + env(safe-area-inset-top) - 16px));
4
4
 
5
5
  &__wrapper {
6
6
  overflow-y: auto;
@@ -55,7 +55,12 @@ export default {
55
55
  },
56
56
 
57
57
  /* Make additional request to get timezone */
58
- timezone: Boolean
58
+ timezone: Boolean,
59
+
60
+ detailsLanguage: {
61
+ type: String,
62
+ default: ''
63
+ }
59
64
  },
60
65
 
61
66
  data() {
@@ -81,7 +86,10 @@ export default {
81
86
  this.placesService.getDetails(
82
87
  {
83
88
  placeId: place.place_id,
84
- sessionToken: this.sessionToken
89
+ sessionToken: this.sessionToken,
90
+ ...(this.detailsLanguage && {
91
+ language: this.detailsLanguage
92
+ })
85
93
  },
86
94
  (details) => {
87
95
  if (this.$refs.select) {
@@ -156,6 +164,7 @@ export default {
156
164
  this.autocomplete.getPlacePredictions(
157
165
  {
158
166
  ...this.queryOptions,
167
+ ...(this.gmLanguage && { language: this.gmLanguage }),
159
168
  sessionToken: this.sessionToken,
160
169
  input
161
170
  },
@@ -8,6 +8,7 @@
8
8
  :error="addressError"
9
9
  :gm-key="gmKey"
10
10
  :timezone="timezone"
11
+ :details-language="detailsLanguage"
11
12
  v-bind="$attrs"
12
13
  @input="setAddress"
13
14
  />
@@ -224,7 +225,12 @@ export default {
224
225
  required: true
225
226
  },
226
227
 
227
- timezone: Boolean
228
+ timezone: Boolean,
229
+
230
+ detailsLanguage: {
231
+ type: String,
232
+ default: ''
233
+ }
228
234
  },
229
235
 
230
236
  data() {
@@ -50,8 +50,12 @@ The `AwAddressBlock` component displays formatted address information in a reada
50
50
 
51
51
  | Name | Description | Type | Required | Default |
52
52
  |------|-------------|------|----------|---------|
53
- | address | Address object | `Object` | `true` | - |
54
- | showMapLink | Show "View on map" link | `Boolean` | `false` | `false` |
53
+ | model | vue-mc model with an `address` object | `Object` | `true` | - |
54
+ | gmKey | Google Maps API key | `String` | `true` | - |
55
+ | timezone | Fetch timezone for the selected place | `Boolean` | `false` | `false` |
56
+ | detailsLanguage | Language of the saved address parts, passed to `AwAddress`. Use the company language | `String` | `false` | `''` |
57
+
58
+ The suggestions dropdown follows `$i18n.locale`; every stored part, including the country name, follows `detailsLanguage`.
55
59
 
56
60
  ## Related Components
57
61
 
@@ -70,6 +70,9 @@ The `AwAddress` component is an address input field that integrates with Google
70
70
  | queryOptions | Google Places Autocomplete options | `Object` | `false` | `null` |
71
71
  | timezone | Fetch timezone information | `Boolean` | `false` | `false` |
72
72
  | label | Input label | `String` | `false` | `''` |
73
+ | gmKey | Google Maps API key | `String` | `true` | - |
74
+ | gmLanguage | Language of the suggestions dropdown (also used to load the Maps script) | `String` | `false` | `''` |
75
+ | detailsLanguage | Language Google returns `address_components` in (city, street, country name). Use the company language so the saved address does not depend on the UI language or the typed query | `String` | `false` | `''` |
73
76
 
74
77
  **Query Options:**
75
78
  See [Google Places Autocomplete Options](https://developers.google.com/maps/documentation/javascript/places-autocomplete#add_autocomplete) for all available options.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.145.3",
3
+ "version": "2.145.5",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -116,5 +116,5 @@
116
116
  "peerDependencies": {
117
117
  "nuxt": "^2.18.1"
118
118
  },
119
- "gitHead": "9e39015955093cf1106ee25a44a0ab1edd281eba"
119
+ "gitHead": "1e88a860384d1ad5ccfddf2ac57da1f554f3fbd4"
120
120
  }