@awes-io/ui 2.132.1 → 2.133.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 +22 -0
- package/assets/css/components/birthday-picker.css +4 -0
- package/assets/css/components/label.css +2 -1
- package/components/1_atoms/AwLabel.vue +2 -7
- package/components/1_atoms/AwSlider.vue +5 -1
- package/components/3_organisms/AwAddress.vue +24 -5
- package/components/4_pages/AwPageSingle.vue +6 -0
- package/components/4_pages/_AwPageHeader.vue +9 -0
- package/package.json +2 -2
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.133.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.132.2...@awes-io/ui@2.133.0) (2025-08-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update component style ([2a43c73](https://github.com/awes-io/client/commit/2a43c73ece1cbb3b3becaa77e1d80dd61d5cd305))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.132.2](https://github.com/awes-io/client/compare/@awes-io/ui@2.132.1...@awes-io/ui@2.132.2) (2025-07-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **aw-address:** filter unused address components ([8aaf228](https://github.com/awes-io/client/commit/8aaf22813877f4f241ebae55f98309c4c0ff2429))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [2.132.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.132.0...@awes-io/ui@2.132.1) (2025-06-24)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="label" class="aw-label" :style="styleVariables">
|
|
3
|
-
<AwIcon
|
|
4
|
-
v-if="_icon"
|
|
5
|
-
:name="_icon"
|
|
6
|
-
size="10"
|
|
7
|
-
aria-hidden="true"
|
|
8
|
-
/>
|
|
3
|
+
<AwIcon v-if="_icon" :name="_icon" size="16" aria-hidden="true" />
|
|
9
4
|
|
|
10
5
|
<slot>{{ label }}</slot>
|
|
11
6
|
|
|
12
7
|
<AwIcon
|
|
13
8
|
v-if="iconSecond"
|
|
14
9
|
:name="iconSecond"
|
|
15
|
-
size="
|
|
10
|
+
size="16"
|
|
16
11
|
aria-hidden="true"
|
|
17
12
|
/>
|
|
18
13
|
</div>
|
|
@@ -67,7 +67,11 @@ export default {
|
|
|
67
67
|
|
|
68
68
|
shadowRightStyle() {
|
|
69
69
|
return {
|
|
70
|
-
opacity:
|
|
70
|
+
opacity:
|
|
71
|
+
this.scrollLeft >= this.maxScrollLeft - 4 ||
|
|
72
|
+
!this.maxScrollLeft
|
|
73
|
+
? '0'
|
|
74
|
+
: '1' // handle oerscroll with >=
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
},
|
|
@@ -28,6 +28,19 @@ import axios from 'axios'
|
|
|
28
28
|
import { pathOr, pick } from 'rambdax'
|
|
29
29
|
import gmMixin from '@AwMixins/google-maps'
|
|
30
30
|
|
|
31
|
+
const FILTER_TYPES = ['political', 'intersection']
|
|
32
|
+
const FILTER_PREFIXES = ['sublocality_level_']
|
|
33
|
+
|
|
34
|
+
const getType = (types) => {
|
|
35
|
+
return (
|
|
36
|
+
types.filter(
|
|
37
|
+
(type) =>
|
|
38
|
+
!FILTER_TYPES.includes(type) &&
|
|
39
|
+
!FILTER_PREFIXES.some((prefix) => type.startsWith(prefix))
|
|
40
|
+
)[0] || types[0]
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
|
|
31
44
|
export default {
|
|
32
45
|
name: 'AwAddress',
|
|
33
46
|
|
|
@@ -73,9 +86,11 @@ export default {
|
|
|
73
86
|
this.$refs.select.searchPhrase = ''
|
|
74
87
|
}
|
|
75
88
|
this._resetSearch()
|
|
76
|
-
this._formatAddressResponse(details, place).then(
|
|
77
|
-
|
|
78
|
-
|
|
89
|
+
this._formatAddressResponse(details, place).then(
|
|
90
|
+
(result) => {
|
|
91
|
+
this.$emit('input', result)
|
|
92
|
+
}
|
|
93
|
+
)
|
|
79
94
|
}
|
|
80
95
|
)
|
|
81
96
|
}
|
|
@@ -153,12 +168,16 @@ export default {
|
|
|
153
168
|
const response = {
|
|
154
169
|
description: details.formatted_address || place.description,
|
|
155
170
|
main: pathOr('', 'structured_formatting.main_text', place),
|
|
156
|
-
secondary: pathOr(
|
|
171
|
+
secondary: pathOr(
|
|
172
|
+
'',
|
|
173
|
+
'structured_formatting.secondary_text',
|
|
174
|
+
place
|
|
175
|
+
)
|
|
157
176
|
}
|
|
158
177
|
|
|
159
178
|
details.address_components.forEach(
|
|
160
179
|
({ long_name, short_name, types }) => {
|
|
161
|
-
const type = types
|
|
180
|
+
const type = getType(types)
|
|
162
181
|
|
|
163
182
|
response[type] = long_name
|
|
164
183
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
:progress="headerProgress"
|
|
12
12
|
primary
|
|
13
13
|
:title="_title"
|
|
14
|
+
:description="headerDescription"
|
|
14
15
|
:title-showable="!isDesktop"
|
|
15
16
|
:hide-menu="hideMenu"
|
|
16
17
|
:is-stuck="isHeaderStuck"
|
|
@@ -156,6 +157,11 @@ export default {
|
|
|
156
157
|
default: ''
|
|
157
158
|
},
|
|
158
159
|
|
|
160
|
+
headerDescription: {
|
|
161
|
+
type: String,
|
|
162
|
+
default: ''
|
|
163
|
+
},
|
|
164
|
+
|
|
159
165
|
desktopFrom: {
|
|
160
166
|
type: String,
|
|
161
167
|
default: 'lg'
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
}"
|
|
36
36
|
>
|
|
37
37
|
{{ title }}
|
|
38
|
+
|
|
39
|
+
<AwDescription v-if="description" class="font-normal block">
|
|
40
|
+
{{ description }}
|
|
41
|
+
</AwDescription>
|
|
38
42
|
</h1>
|
|
39
43
|
</slot>
|
|
40
44
|
|
|
@@ -74,6 +78,11 @@ export default {
|
|
|
74
78
|
default: ''
|
|
75
79
|
},
|
|
76
80
|
|
|
81
|
+
description: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: ''
|
|
84
|
+
},
|
|
85
|
+
|
|
77
86
|
container: {
|
|
78
87
|
type: String,
|
|
79
88
|
default: 'full'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.133.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"rollup-plugin-visualizer": "^2.6.0",
|
|
115
115
|
"rollup-plugin-vue": "^5.0.1"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "4852770e29844fc6738edbc29df6b3a76080f72d"
|
|
118
118
|
}
|