@awes-io/ui 2.106.2 → 2.107.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,23 @@
|
|
|
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.107.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.106.2...@awes-io/ui@2.107.0) (2024-07-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* aw-switcher icon fix ([f7e2ecc](https://github.com/awes-io/client/commit/f7e2eccac106a57aede82414fb585924507f913e))
|
|
12
|
+
* fix z-index in modal buttons ([337685a](https://github.com/awes-io/client/commit/337685ad88961d93ed1acc2f0610c9c18be90ea7))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* aw-money input uses text and inputmode ([6bf5f9a](https://github.com/awes-io/client/commit/6bf5f9aede9bbc8f8b3fae065f2cbc0f6ea07406))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [2.106.2](https://github.com/awes-io/client/compare/@awes-io/ui@2.106.1...@awes-io/ui@2.106.2) (2024-07-04)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -43,9 +43,8 @@
|
|
|
43
43
|
@mousedown="_onPointerDown"
|
|
44
44
|
@touchstart="_onPointerDown"
|
|
45
45
|
>
|
|
46
|
-
<template v-if="_isIcon && !iconPlaceIn">
|
|
47
|
-
<
|
|
48
|
-
:is="onSystemIcon ? 'AwIconSystemMono' : 'AwIcon'"
|
|
46
|
+
<template v-if="_isIcon && !iconPlaceIn && _onIcon">
|
|
47
|
+
<AwIcon
|
|
49
48
|
:name="_onIcon"
|
|
50
49
|
:size="iconSize"
|
|
51
50
|
class="aw-switch-field__switch-icon aw-switch-field__switch-icon--on"
|
|
@@ -60,23 +59,19 @@
|
|
|
60
59
|
aria-hidden="true"
|
|
61
60
|
>
|
|
62
61
|
<slot name="toggler-icon">
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
:name="isChecked ? _onIcon : _offIcon"
|
|
72
|
-
/>
|
|
73
|
-
</template>
|
|
62
|
+
<AwIcon
|
|
63
|
+
v-if="
|
|
64
|
+
_isIcon &&
|
|
65
|
+
iconPlaceIn &&
|
|
66
|
+
(_onIcon || (!isChecked && _offIcon))
|
|
67
|
+
"
|
|
68
|
+
:name="isChecked ? _onIcon : _offIcon"
|
|
69
|
+
/>
|
|
74
70
|
</slot>
|
|
75
71
|
</span>
|
|
76
72
|
|
|
77
|
-
<template v-if="_isIcon && !iconPlaceIn">
|
|
78
|
-
<
|
|
79
|
-
:is="offSystemIcon ? 'AwIconSystemMono' : 'AwIcon'"
|
|
73
|
+
<template v-if="_isIcon && !iconPlaceIn && _offIcon">
|
|
74
|
+
<AwIcon
|
|
80
75
|
:name="_offIcon"
|
|
81
76
|
:size="iconSize"
|
|
82
77
|
class="aw-switch-field__switch-icon aw-switch-field__switch-icon--off"
|
|
@@ -89,7 +84,6 @@
|
|
|
89
84
|
|
|
90
85
|
<script>
|
|
91
86
|
import AwCheckbox from '@AwAtoms/AwCheckbox.vue'
|
|
92
|
-
import ICONS from '@AwUtils/icons/mono'
|
|
93
87
|
|
|
94
88
|
const THRESHOLD = 5 // pixels
|
|
95
89
|
|
|
@@ -119,7 +113,12 @@ export default {
|
|
|
119
113
|
|
|
120
114
|
icon: {
|
|
121
115
|
type: String,
|
|
122
|
-
default:
|
|
116
|
+
default: ''
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
offIcon: {
|
|
120
|
+
type: String,
|
|
121
|
+
default: ''
|
|
123
122
|
},
|
|
124
123
|
|
|
125
124
|
iconColor: {
|
|
@@ -151,15 +150,7 @@ export default {
|
|
|
151
150
|
},
|
|
152
151
|
|
|
153
152
|
_offIcon() {
|
|
154
|
-
return this.icon
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
onSystemIcon() {
|
|
158
|
-
return !!ICONS[this._onIcon]
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
offSystemIcon() {
|
|
162
|
-
return !!ICONS[this._offIcon]
|
|
153
|
+
return this.offIcon || this.icon
|
|
163
154
|
},
|
|
164
155
|
|
|
165
156
|
iconSize() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.107.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": "0b77fd4870688104b834fb60e538ee4e10e3b0ae"
|
|
118
118
|
}
|