@awes-io/ui 2.72.0 → 2.73.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/assets/css/components/calendar.css +1 -1
- package/assets/css/components/mobile-menu-item.css +4 -6
- package/assets/css/components/mobile-menu-nav.css +1 -1
- package/assets/css/components/mobile-menu.css +1 -1
- package/assets/css/components/switch-field.css +1 -1
- package/assets/css/components/table.css +2 -2
- package/assets/css/components/tooltip.css +7 -0
- package/assets/css/components/user-menu.css +10 -1
- package/assets/js/icons/mono.js +1 -1
- package/components/5_layouts/AwLayoutProvider.vue +1 -1
- package/components/5_layouts/_AwMobileMenuItem.vue +1 -0
- package/components/5_layouts/_AwMobileMenuNav.vue +8 -2
- package/components/5_layouts/_AwNavItem.vue +11 -2
- package/components/5_layouts/_AwUserMenu.vue +5 -1
- 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.73.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.72.0...@awes-io/ui@2.73.0) (2023-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* change styles in components ([603d7a8](https://github.com/awes-io/client/commit/603d7a8ed86e548446afe5b656821ed0e34c528c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.72.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.71.1...@awes-io/ui@2.72.0) (2023-09-19)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
align-items: center;
|
|
6
6
|
width: 100%;
|
|
7
|
+
padding: 1.5rem;
|
|
7
8
|
|
|
8
9
|
&:hover,
|
|
9
10
|
&:focus {
|
|
@@ -17,11 +18,9 @@
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
&__icon-bg {
|
|
20
|
-
margin-left: 1.25rem;
|
|
21
|
-
margin-right: -1rem;
|
|
22
|
-
padding: 0.1875rem;
|
|
23
21
|
border-radius: 0.3125rem;
|
|
24
22
|
line-height: 1;
|
|
23
|
+
flex: none;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
/* &__icon {} */
|
|
@@ -30,8 +29,7 @@
|
|
|
30
29
|
display: flex;
|
|
31
30
|
flex-direction: column;
|
|
32
31
|
justify-content: center;
|
|
33
|
-
|
|
34
|
-
padding: 0.5rem 0.5rem 0.5rem 1.875rem;
|
|
32
|
+
padding: 0 1rem;
|
|
35
33
|
flex-grow: 1;
|
|
36
34
|
}
|
|
37
35
|
|
|
@@ -42,7 +40,7 @@
|
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
&__arrow {
|
|
45
|
-
margin: 0.75rem 1.875rem 0.75rem 0;
|
|
46
43
|
color: var(--c-on-surface);
|
|
44
|
+
flex: none;
|
|
47
45
|
}
|
|
48
46
|
}
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
|
|
145
145
|
&--mobile {
|
|
146
146
|
display: block;
|
|
147
|
-
padding:
|
|
147
|
+
padding: 1.5rem;
|
|
148
148
|
|
|
149
149
|
&:hover {
|
|
150
150
|
background: inherit;
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
&--mobile {
|
|
158
158
|
display: flex;
|
|
159
159
|
justify-content: space-between;
|
|
160
|
-
padding:
|
|
160
|
+
padding: 0.5rem 0;
|
|
161
161
|
|
|
162
162
|
&:nth-of-type(2n + 1) {
|
|
163
163
|
background: none;
|
|
@@ -81,16 +81,20 @@
|
|
|
81
81
|
&__nav-item {
|
|
82
82
|
@apply bg-surface;
|
|
83
83
|
padding: 1rem;
|
|
84
|
-
display:
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
85
86
|
width: 100%;
|
|
86
87
|
|
|
87
88
|
font-size: 1rem;
|
|
88
89
|
line-height: 1.3125rem;
|
|
89
90
|
font-weight: 400;
|
|
90
91
|
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
|
|
91
94
|
svg {
|
|
92
95
|
width: 1.5rem;
|
|
93
96
|
height: 1.5rem;
|
|
97
|
+
flex: none;
|
|
94
98
|
}
|
|
95
99
|
|
|
96
100
|
&:focus {
|
|
@@ -102,5 +106,10 @@
|
|
|
102
106
|
&--active {
|
|
103
107
|
background-color: var(--c-mono-900);
|
|
104
108
|
}
|
|
109
|
+
|
|
110
|
+
&-text {
|
|
111
|
+
text-overflow: ellipsis;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
}
|
|
105
114
|
}
|
|
106
115
|
}
|
package/assets/js/icons/mono.js
CHANGED
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
'M1 10a2 2 0 114 0 2 2 0 01-4 0zm7 0a2 2 0 114 0 2 2 0 01-4 0zm7 0a2 2 0 114 0 2 2 0 01-4 0z',
|
|
25
25
|
triangle: 'M5 7h10l-5 5z',
|
|
26
26
|
external:
|
|
27
|
-
'
|
|
27
|
+
'M17.5 1.7h-5a.8.8 0 1 0 0 1.6h3l-7 7a.8.8 0 1 0 1.3 1.1l6.9-6.9v3a.8.8 0 1 0 1.6 0v-5a.8.8 0 0 0-.8-.8Z M15.8 8.8a.8.8 0 0 0-.8.9v6a1 1 0 0 1-1 1H4.4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5.2a.8.8 0 1 0 0-1.7H4.4A2.7 2.7 0 0 0 1.7 6v9.6a2.7 2.7 0 0 0 2.7 2.7H14a2.7 2.7 0 0 0 2.7-2.7v-6a.8.8 0 0 0-.9-.8Z',
|
|
28
28
|
edit:
|
|
29
29
|
'M11.7 5.34l2.85 2.86-7.2 7.24-2.85-2.86 7.2-7.24zm5.01-.7l-1.27-1.27c-.49-.5-1.28-.5-1.78 0l-1.21 1.22 2.85 2.86 1.41-1.42c.39-.38.39-1 0-1.38zM3.01 16.6c-.05.24.16.45.39.4l3.17-.78-2.84-2.86L3 16.6z',
|
|
30
30
|
'info-circle':
|
|
@@ -229,7 +229,7 @@ export default {
|
|
|
229
229
|
|
|
230
230
|
return acc.concat({
|
|
231
231
|
...pick(
|
|
232
|
-
'icon,iconBg,iconActive,class,expanded,target,rel,listeners,abstract,key,badge,back,isDivide',
|
|
232
|
+
'icon,iconBg,iconActive,class,expanded,target,rel,listeners,abstract,key,badge,back,isDivide,arrow',
|
|
233
233
|
props
|
|
234
234
|
),
|
|
235
235
|
text,
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
]"
|
|
26
26
|
:href="_getChildrenCount(item) ? null : item.href"
|
|
27
|
-
:arrow="
|
|
27
|
+
:arrow="checkShowArrow(item)"
|
|
28
28
|
:active="isActive(item)"
|
|
29
29
|
v-on="
|
|
30
30
|
_getChildrenCount(item)
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</template>
|
|
49
49
|
|
|
50
50
|
<script>
|
|
51
|
-
import { viewOr, lensProp } from 'rambdax'
|
|
51
|
+
import { viewOr, lensProp, isNil } from 'rambdax'
|
|
52
52
|
import AwMobileMenuItem from '@AwLayouts/_AwMobileMenuItem.vue'
|
|
53
53
|
|
|
54
54
|
export default {
|
|
@@ -92,6 +92,12 @@ export default {
|
|
|
92
92
|
return item.children ? item.children.length : 0
|
|
93
93
|
},
|
|
94
94
|
|
|
95
|
+
checkShowArrow(item) {
|
|
96
|
+
return isNil(item.arrow)
|
|
97
|
+
? !!(item.href || this._getChildrenCount(item))
|
|
98
|
+
: item.arrow
|
|
99
|
+
},
|
|
100
|
+
|
|
95
101
|
isActive(item) {
|
|
96
102
|
return this._getChildrenCount(item)
|
|
97
103
|
? item.children.some((child) =>
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Component :is="_linkComponent" v-bind="_linkAttrs" v-on="$listeners">
|
|
3
3
|
<slot />
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
<AwIconSystemMono
|
|
6
|
+
v-if="_linkExternal && !hideExternalIcon"
|
|
7
|
+
name="external"
|
|
8
|
+
class="ml-1"
|
|
9
|
+
/>
|
|
5
10
|
</Component>
|
|
6
11
|
</template>
|
|
7
12
|
|
|
@@ -11,6 +16,10 @@ import linkMixin from '@AwMixins/link'
|
|
|
11
16
|
export default {
|
|
12
17
|
name: 'AwNavItem',
|
|
13
18
|
|
|
14
|
-
mixins: [linkMixin]
|
|
19
|
+
mixins: [linkMixin],
|
|
20
|
+
|
|
21
|
+
props: {
|
|
22
|
+
hideExternalIcon: Boolean
|
|
23
|
+
}
|
|
15
24
|
}
|
|
16
25
|
</script>
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
]"
|
|
72
72
|
class="aw-user-menu__nav-item"
|
|
73
73
|
v-on="item.listeners || null"
|
|
74
|
+
hide-external-icon
|
|
74
75
|
>
|
|
75
76
|
<AwIcon
|
|
76
77
|
v-if="item.icon"
|
|
@@ -78,7 +79,10 @@
|
|
|
78
79
|
class="mr-2"
|
|
79
80
|
/>
|
|
80
81
|
|
|
81
|
-
<span
|
|
82
|
+
<span
|
|
83
|
+
class="aw-user-menu__nav-item-text"
|
|
84
|
+
v-html="item.text"
|
|
85
|
+
/>
|
|
82
86
|
</AwNavItem>
|
|
83
87
|
</template>
|
|
84
88
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.73.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"rollup-plugin-visualizer": "^2.6.0",
|
|
113
113
|
"rollup-plugin-vue": "^5.0.1"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "7082e9cda8b1588e4a644c5d802a1819c982de83"
|
|
116
116
|
}
|