@awes-io/ui 2.87.0 → 2.89.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 +30 -0
- package/assets/css/components/_index.css +3 -2
- package/assets/css/components/action-button.css +12 -1
- package/assets/css/components/alert.css +6 -9
- package/assets/css/components/button.css +255 -163
- package/assets/css/components/context-menu.css +0 -43
- package/assets/css/components/image-upload.css +81 -0
- package/assets/css/components/label.css +12 -1
- package/assets/css/components/list.css +23 -0
- package/assets/css/components/mobile-menu-item.css +1 -1
- package/assets/css/components/mobile-menu.css +1 -1
- package/assets/css/components/modal-buttons.css +17 -0
- package/assets/css/components/modal.css +37 -56
- package/assets/css/components/nav.css +1 -0
- package/assets/css/components/page-header.css +17 -1
- package/assets/css/components/page-headline.css +0 -56
- package/assets/css/components/page-menu-buttons.css +16 -17
- package/assets/css/components/page-modal.css +1 -1
- package/assets/css/components/tab-nav.css +2 -2
- package/assets/css/components/table.css +2 -2
- package/assets/css/components/tags.css +12 -8
- package/assets/css/components/user-menu.css +1 -1
- package/assets/css/typography.css +50 -7
- package/assets/js/icons/mono.js +94 -2
- package/assets/js/icons/multicolor.js +6 -6
- package/assets/js/styles.js +26 -20
- package/assets/js/url.js +3 -0
- package/components/1_atoms/AwActionIcon.vue +1 -1
- package/components/1_atoms/AwDock.vue +2 -2
- package/components/1_atoms/AwIcon/AwIcon.vue +40 -16
- package/components/1_atoms/AwIcon/AwIconSystemMono.vue +12 -6
- package/components/1_atoms/AwLabel.vue +23 -37
- package/components/1_atoms/AwLink.vue +16 -1
- package/components/1_atoms/AwList.vue +27 -0
- package/components/1_atoms/AwSwitcher.vue +2 -2
- package/components/1_atoms/AwTag.vue +54 -0
- package/components/2_molecules/AwActionButton.vue +7 -1
- package/components/2_molecules/AwButton.vue +116 -51
- package/components/2_molecules/AwSelect.vue +51 -39
- package/components/2_molecules/_AwSelectFakeInput.vue +10 -6
- package/components/2_molecules/_AwSelectInput.vue +10 -6
- package/components/3_organisms/AwAddressBlock.vue +2 -3
- package/components/3_organisms/AwCalendar/_AwCalendarNav.vue +6 -2
- package/components/3_organisms/AwCodeSnippet.vue +1 -2
- package/components/3_organisms/AwContextMenu.vue +8 -10
- package/components/3_organisms/AwCropper.vue +13 -11
- package/components/3_organisms/AwDate.vue +3 -1
- package/components/3_organisms/AwImageUpload.vue +267 -0
- package/components/3_organisms/AwModal.vue +7 -6
- package/components/3_organisms/AwModalButtons.vue +129 -0
- package/components/3_organisms/AwPagination.vue +32 -24
- package/components/3_organisms/AwPassword.vue +10 -4
- package/components/3_organisms/AwPreviewCard.vue +73 -0
- package/components/3_organisms/AwSearch.vue +0 -1
- package/components/3_organisms/AwTags.vue +5 -7
- package/components/3_organisms/AwTel.vue +1 -1
- package/components/3_organisms/AwUploaderFiles.vue +1 -1
- package/components/4_pages/AwPageMenuButtons.vue +27 -10
- package/components/4_pages/AwPageSingle.vue +8 -4
- package/components/4_pages/_AwPageHeader.vue +1 -1
- package/components/4_pages/_AwPageHeadline.vue +7 -6
- package/components/5_layouts/_AwHeaderNotification.vue +4 -2
- package/components/5_layouts/_AwMobileMenu.vue +22 -25
- package/components/5_layouts/_AwNoty.vue +12 -23
- package/components/5_layouts/_AwUserMenu.vue +20 -9
- package/components/_config.js +9 -0
- package/nuxt/index.js +10 -1
- package/package.json +4 -3
- package/assets/css/components/button-fixed.css +0 -84
- package/assets/css/components/square-icon-button.css +0 -69
- package/components/2_molecules/AwSquareIconButton.vue +0 -52
- package/components/4_pages/_AwButtonFixed.vue +0 -58
|
@@ -147,11 +147,11 @@ export default {
|
|
|
147
147
|
},
|
|
148
148
|
|
|
149
149
|
_onIcon() {
|
|
150
|
-
return this.icon || (this.size === 'lg' ? 'on' : 'check
|
|
150
|
+
return this.icon || (this.size === 'lg' ? 'on' : 'check')
|
|
151
151
|
},
|
|
152
152
|
|
|
153
153
|
_offIcon() {
|
|
154
|
-
return this.icon || (this.size === 'lg' ? 'off' : '
|
|
154
|
+
return this.icon || (this.size === 'lg' ? 'off' : 'close')
|
|
155
155
|
},
|
|
156
156
|
|
|
157
157
|
onSystemIcon() {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Component :is="tag" :style="tagStyle" class="aw-tag">
|
|
3
|
+
<AwIcon v-if="icon" :name="icon" size="16" />
|
|
4
|
+
{{ text }}
|
|
5
|
+
</Component>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import { toColor, toOnColor, isCustomColor } from '@AwUtils/styles'
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
name: 'AwTag',
|
|
13
|
+
|
|
14
|
+
props: {
|
|
15
|
+
tag: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'span'
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
color: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: 'mono-100'
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
onColor: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ''
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
text: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
computed: {
|
|
37
|
+
tagStyle() {
|
|
38
|
+
if (isCustomColor(this.color)) {
|
|
39
|
+
return {
|
|
40
|
+
'--tag-bg-color': toOnColor(this.color),
|
|
41
|
+
'--tag-color': 'var(--c-on-overlay)'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return {
|
|
46
|
+
'--tag-bg-color': toColor(this.color),
|
|
47
|
+
'--tag-color': this.onColor
|
|
48
|
+
? toOnColor(this.onColor)
|
|
49
|
+
: toOnColor(this.color)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
</script>
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
:on-color="iconOnColor"
|
|
22
22
|
:size="iconSize"
|
|
23
23
|
/>
|
|
24
|
+
<span v-else class="aw-action-button__icon-empty"></span>
|
|
24
25
|
</slot>
|
|
25
26
|
|
|
26
27
|
<span class="aw-action-button__text">
|
|
@@ -34,7 +35,12 @@
|
|
|
34
35
|
</AwDescription>
|
|
35
36
|
</span>
|
|
36
37
|
|
|
37
|
-
<AwActionIcon
|
|
38
|
+
<AwActionIcon
|
|
39
|
+
v-if="iconRight"
|
|
40
|
+
:icon="iconRight"
|
|
41
|
+
size="sm"
|
|
42
|
+
:color="modifiers.includes('outline') ? 'mono-800' : 'mono-900'"
|
|
43
|
+
/>
|
|
38
44
|
|
|
39
45
|
<AwDescription
|
|
40
46
|
v-if="subdescription"
|
|
@@ -2,12 +2,68 @@
|
|
|
2
2
|
<component
|
|
3
3
|
:is="_linkComponent"
|
|
4
4
|
class="aw-button"
|
|
5
|
-
:class="[
|
|
5
|
+
:class="[
|
|
6
|
+
{
|
|
7
|
+
'aw-button--size-xs': size === 'xs',
|
|
8
|
+
'aw-button--size-sm': size === 'sm',
|
|
9
|
+
'aw-button--size-md': size === 'md',
|
|
10
|
+
'aw-button--size-lg': size === 'lg',
|
|
11
|
+
'aw-button--theme-solid': theme === 'solid',
|
|
12
|
+
'aw-button--theme-outline': theme === 'outline',
|
|
13
|
+
'aw-button--theme-icon': theme === 'icon',
|
|
14
|
+
'aw-button--color-accent': color === 'accent',
|
|
15
|
+
'aw-button--color-error': color === 'error',
|
|
16
|
+
'aw-button--color-mono': color === 'mono',
|
|
17
|
+
'aw-button--color-dark': color === 'dark',
|
|
18
|
+
'aw-button--loading': loading,
|
|
19
|
+
'aw-button--locked': locked,
|
|
20
|
+
'aw-button--with-text': isTextVisible,
|
|
21
|
+
'aw-button--auto-width': autoWidth,
|
|
22
|
+
'aw-button--icon-highlighted': isHighlightedIcon,
|
|
23
|
+
'aw-animated-icon-parent': !isDisabled && isAnimatedIcon
|
|
24
|
+
},
|
|
25
|
+
isCustomTheme ? `aw-button--theme-${theme}` : '',
|
|
26
|
+
isCustomColor ? `aw-button--color-${color}` : ''
|
|
27
|
+
]"
|
|
6
28
|
:disabled="isDisabled"
|
|
7
29
|
:aria-label="$attrs['aria-label'] || text || null"
|
|
8
30
|
v-bind="_linkAttrs"
|
|
9
31
|
v-on="$listeners"
|
|
10
32
|
>
|
|
33
|
+
<span
|
|
34
|
+
v-if="isIconPresent || isHighlightedIcon"
|
|
35
|
+
class="aw-button__icon-wrapper aw-button__icon-wrapper--left"
|
|
36
|
+
:class="{
|
|
37
|
+
'aw-button__icon-wrapper--highlighted':
|
|
38
|
+
isIconPresent && isHighlightedIcon,
|
|
39
|
+
'aw-button__icon-wrapper--placeholder':
|
|
40
|
+
!isIconPresent && isHighlightedIcon
|
|
41
|
+
}"
|
|
42
|
+
>
|
|
43
|
+
<slot name="icon" v-bind="{ icon }">
|
|
44
|
+
<AwIcon v-if="isIconPresent" :name="icon" />
|
|
45
|
+
</slot>
|
|
46
|
+
</span>
|
|
47
|
+
|
|
48
|
+
<slot v-if="!hideText" :text="text">
|
|
49
|
+
{{ text }}
|
|
50
|
+
</slot>
|
|
51
|
+
|
|
52
|
+
<span
|
|
53
|
+
v-if="isIconRightPresent || isHighlightedIcon"
|
|
54
|
+
class="aw-button__icon-wrapper aw-button__icon-wrapper--right"
|
|
55
|
+
:class="{
|
|
56
|
+
'aw-button__icon-wrapper--highlighted':
|
|
57
|
+
isIconRightPresent && isHighlightedIcon,
|
|
58
|
+
'aw-button__icon-wrapper--placeholder':
|
|
59
|
+
!isIconRightPresent && isHighlightedIcon
|
|
60
|
+
}"
|
|
61
|
+
>
|
|
62
|
+
<slot name="icon-right" v-bind="{ iconRight }">
|
|
63
|
+
<AwIcon v-if="isIconRightPresent" :name="iconRight" />
|
|
64
|
+
</slot>
|
|
65
|
+
</span>
|
|
66
|
+
|
|
11
67
|
<AwIconSystemColor
|
|
12
68
|
v-if="loading"
|
|
13
69
|
class="aw-button__loader"
|
|
@@ -20,37 +76,9 @@
|
|
|
20
76
|
v-tooltip="lockedTooltip"
|
|
21
77
|
>
|
|
22
78
|
<span>
|
|
23
|
-
<AwIconSystemMono name="lock" />
|
|
79
|
+
<AwIconSystemMono name="lock" class="fill-current" />
|
|
24
80
|
</span>
|
|
25
81
|
</span>
|
|
26
|
-
|
|
27
|
-
<template v-else>
|
|
28
|
-
<slot name="icon" v-bind="{ icon }">
|
|
29
|
-
<AwIcon
|
|
30
|
-
v-if="icon"
|
|
31
|
-
class="aw-button__icon-left"
|
|
32
|
-
:class="{ 'mr-2': text }"
|
|
33
|
-
:name="icon"
|
|
34
|
-
:size="16"
|
|
35
|
-
/>
|
|
36
|
-
</slot>
|
|
37
|
-
|
|
38
|
-
<slot v-if="!hideText">
|
|
39
|
-
<span class="aw-button__text">
|
|
40
|
-
{{ text }}
|
|
41
|
-
</span>
|
|
42
|
-
</slot>
|
|
43
|
-
|
|
44
|
-
<slot name="iconRight" v-bind="{ iconRight }">
|
|
45
|
-
<AwIcon
|
|
46
|
-
v-if="iconRight"
|
|
47
|
-
class="aw-button__icon-right"
|
|
48
|
-
:class="{ 'ml-2': text }"
|
|
49
|
-
:name="iconRight"
|
|
50
|
-
:size="16"
|
|
51
|
-
/>
|
|
52
|
-
</slot>
|
|
53
|
-
</template>
|
|
54
82
|
</component>
|
|
55
83
|
</template>
|
|
56
84
|
|
|
@@ -58,6 +86,11 @@
|
|
|
58
86
|
import AwLink from '@AwAtoms/AwLink.vue'
|
|
59
87
|
import { AwButton as _config } from '@AwConfig'
|
|
60
88
|
import { conf } from '@AwUtils/component'
|
|
89
|
+
import { ICONS as ANIMATED_ICONS } from '@AwUtils/icons/animated'
|
|
90
|
+
|
|
91
|
+
export const BUTTON_THEMES = ['solid', 'outline', 'icon']
|
|
92
|
+
|
|
93
|
+
export const BUTTON_COLORS = ['accens', 'error', 'mono', 'dark']
|
|
61
94
|
|
|
62
95
|
export default {
|
|
63
96
|
name: 'AwButton',
|
|
@@ -109,12 +142,6 @@ export default {
|
|
|
109
142
|
default: false
|
|
110
143
|
},
|
|
111
144
|
|
|
112
|
-
// CSS class for content wrapper
|
|
113
|
-
contentClass: {
|
|
114
|
-
type: String,
|
|
115
|
-
default: ''
|
|
116
|
-
},
|
|
117
|
-
|
|
118
145
|
// Show lock icon and disable button
|
|
119
146
|
locked: Boolean,
|
|
120
147
|
|
|
@@ -124,24 +151,14 @@ export default {
|
|
|
124
151
|
default: ''
|
|
125
152
|
},
|
|
126
153
|
|
|
127
|
-
hideText: Boolean
|
|
154
|
+
hideText: Boolean,
|
|
155
|
+
|
|
156
|
+
autoWidth: Boolean,
|
|
157
|
+
|
|
158
|
+
highlightIcon: Boolean
|
|
128
159
|
},
|
|
129
160
|
|
|
130
161
|
computed: {
|
|
131
|
-
classes() {
|
|
132
|
-
return [
|
|
133
|
-
{
|
|
134
|
-
'aw-button--size-sm': this.size === 'sm',
|
|
135
|
-
'aw-button--size-md': this.size === 'md',
|
|
136
|
-
'aw-button--size-lg': this.size === 'lg',
|
|
137
|
-
'aw-button--loading': this.loading,
|
|
138
|
-
'aw-button--square': this.hideText
|
|
139
|
-
},
|
|
140
|
-
`aw-button--color-${this.color || 'green'}`,
|
|
141
|
-
`aw-button--theme-${this.theme || 'solid'}`
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
|
|
145
162
|
isDisabled() {
|
|
146
163
|
return (
|
|
147
164
|
this.$attrs.disabled === true ||
|
|
@@ -149,6 +166,54 @@ export default {
|
|
|
149
166
|
this.loading ||
|
|
150
167
|
this.locked
|
|
151
168
|
)
|
|
169
|
+
},
|
|
170
|
+
|
|
171
|
+
isTextVisible() {
|
|
172
|
+
return (
|
|
173
|
+
!this.hideText &&
|
|
174
|
+
Boolean(
|
|
175
|
+
this.text ||
|
|
176
|
+
this.$scopedSlots.default ||
|
|
177
|
+
this.$slots.default
|
|
178
|
+
)
|
|
179
|
+
)
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
isIconPresent() {
|
|
183
|
+
return Boolean(
|
|
184
|
+
this.icon || this.$scopedSlots.icon || this.$slots.icon
|
|
185
|
+
)
|
|
186
|
+
},
|
|
187
|
+
|
|
188
|
+
isIconRightPresent() {
|
|
189
|
+
return Boolean(
|
|
190
|
+
this.iconRight ||
|
|
191
|
+
this.$scopedSlots['icon-right'] ||
|
|
192
|
+
this.$slots['icon-right']
|
|
193
|
+
)
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
isHighlightedIcon() {
|
|
197
|
+
return (
|
|
198
|
+
this.highlightIcon &&
|
|
199
|
+
this.isTextVisible &&
|
|
200
|
+
this.theme === 'solid' &&
|
|
201
|
+
this.size === 'lg'
|
|
202
|
+
)
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
isAnimatedIcon() {
|
|
206
|
+
return Boolean(
|
|
207
|
+
ANIMATED_ICONS[this.icon] || ANIMATED_ICONS[this.iconRight]
|
|
208
|
+
)
|
|
209
|
+
},
|
|
210
|
+
|
|
211
|
+
isCustomTheme() {
|
|
212
|
+
return !BUTTON_THEMES.includes(this.theme)
|
|
213
|
+
},
|
|
214
|
+
|
|
215
|
+
isCustomColor() {
|
|
216
|
+
return !BUTTON_COLORS.includes(this.color)
|
|
152
217
|
}
|
|
153
218
|
},
|
|
154
219
|
|
|
@@ -72,7 +72,9 @@
|
|
|
72
72
|
theme="icon"
|
|
73
73
|
type="button"
|
|
74
74
|
>
|
|
75
|
-
<
|
|
75
|
+
<template #icon>
|
|
76
|
+
<AwIconSystemMono name="close" />
|
|
77
|
+
</template>
|
|
76
78
|
</AwButton>
|
|
77
79
|
<AwButton
|
|
78
80
|
tabindex="-1"
|
|
@@ -82,24 +84,26 @@
|
|
|
82
84
|
:size="$attrs.size || 'md'"
|
|
83
85
|
@click="searchable ? toggleDropdown() : null"
|
|
84
86
|
>
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
87
|
+
<template #icon>
|
|
88
|
+
<AwIconSystemColor
|
|
89
|
+
v-if="isLoading"
|
|
90
|
+
key="loader"
|
|
91
|
+
name="spinner"
|
|
92
|
+
class="h-5 w-5"
|
|
93
|
+
/>
|
|
94
|
+
|
|
95
|
+
<AwIconSystemMono
|
|
96
|
+
v-if="
|
|
97
|
+
!isLoading &&
|
|
98
|
+
optionsList.length &&
|
|
99
|
+
_isEditingOptions
|
|
100
|
+
"
|
|
101
|
+
key="arrow"
|
|
102
|
+
name="triangle"
|
|
103
|
+
class="transition-200"
|
|
104
|
+
:class="{ 'rotate-180': isOpened }"
|
|
105
|
+
/>
|
|
106
|
+
</template>
|
|
103
107
|
</AwButton>
|
|
104
108
|
</template>
|
|
105
109
|
</AwInput>
|
|
@@ -139,9 +143,13 @@
|
|
|
139
143
|
theme="icon"
|
|
140
144
|
@click="_onAddClick"
|
|
141
145
|
>
|
|
142
|
-
<
|
|
143
|
-
|
|
144
|
-
|
|
146
|
+
<template #icon
|
|
147
|
+
><slot name="create-icon">
|
|
148
|
+
<AwIconSystemMono
|
|
149
|
+
name="plus-circle"
|
|
150
|
+
size="20"
|
|
151
|
+
/> </slot
|
|
152
|
+
></template>
|
|
145
153
|
</AwButton>
|
|
146
154
|
|
|
147
155
|
<AwButton
|
|
@@ -150,7 +158,9 @@
|
|
|
150
158
|
@click="_onClearClick"
|
|
151
159
|
theme="icon"
|
|
152
160
|
>
|
|
153
|
-
<
|
|
161
|
+
<template #icon>
|
|
162
|
+
<AwIconSystemMono name="close" />
|
|
163
|
+
</template>
|
|
154
164
|
</AwButton>
|
|
155
165
|
<AwButton
|
|
156
166
|
tabindex="-1"
|
|
@@ -159,22 +169,24 @@
|
|
|
159
169
|
class="h-full"
|
|
160
170
|
@click="searchable ? toggleDropdown() : null"
|
|
161
171
|
>
|
|
162
|
-
<
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
172
|
+
<template #icon>
|
|
173
|
+
<AwIconSystemColor
|
|
174
|
+
v-if="isLoading"
|
|
175
|
+
key="loader"
|
|
176
|
+
name="spinner"
|
|
177
|
+
class="h-5 w-5"
|
|
178
|
+
/>
|
|
179
|
+
<AwIconSystemMono
|
|
180
|
+
v-if="
|
|
181
|
+
!isLoading &&
|
|
182
|
+
optionsList.length &&
|
|
183
|
+
_isEditingOptions
|
|
184
|
+
"
|
|
185
|
+
key="arrow"
|
|
186
|
+
name="triangle"
|
|
187
|
+
rotate="180"
|
|
188
|
+
/>
|
|
189
|
+
</template>
|
|
178
190
|
</AwButton>
|
|
179
191
|
</template>
|
|
180
192
|
</AwInput>
|
|
@@ -56,7 +56,9 @@
|
|
|
56
56
|
theme="icon"
|
|
57
57
|
class="h-full"
|
|
58
58
|
>
|
|
59
|
-
<
|
|
59
|
+
<template #icon>
|
|
60
|
+
<AwIconSystemMono name="close" />
|
|
61
|
+
</template>
|
|
60
62
|
</AwButton>
|
|
61
63
|
|
|
62
64
|
<slot name="caret" :is-opened="isOpened">
|
|
@@ -69,11 +71,13 @@
|
|
|
69
71
|
class="h-full"
|
|
70
72
|
@click="$emit('caret')"
|
|
71
73
|
>
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
<template #icon>
|
|
75
|
+
<AwIconSystemMono
|
|
76
|
+
name="triangle"
|
|
77
|
+
class="transition-200"
|
|
78
|
+
:class="{ 'rotate-180': isOpened }"
|
|
79
|
+
/>
|
|
80
|
+
</template>
|
|
77
81
|
</AwButton>
|
|
78
82
|
</slot>
|
|
79
83
|
</slot>
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
theme="icon"
|
|
21
21
|
class="h-full"
|
|
22
22
|
>
|
|
23
|
-
<
|
|
23
|
+
<template #icon>
|
|
24
|
+
<AwIconSystemMono name="close" />
|
|
25
|
+
</template>
|
|
24
26
|
</AwButton>
|
|
25
27
|
|
|
26
28
|
<slot name="caret" :is-opened="isOpened">
|
|
@@ -33,11 +35,13 @@
|
|
|
33
35
|
class="h-full"
|
|
34
36
|
@click="$emit('caret')"
|
|
35
37
|
>
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
<template #icon>
|
|
39
|
+
<AwIconSystemMono
|
|
40
|
+
name="triangle"
|
|
41
|
+
class="transition-200"
|
|
42
|
+
:class="{ 'rotate-180': isOpened }"
|
|
43
|
+
/>
|
|
44
|
+
</template>
|
|
41
45
|
</AwButton>
|
|
42
46
|
</slot>
|
|
43
47
|
</template>
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
<!-- Address info -->
|
|
16
16
|
<AwAccordionFold :show="hasAddress">
|
|
17
17
|
<div class="flex justify-end relative w-full">
|
|
18
|
-
<
|
|
18
|
+
<AwButton
|
|
19
|
+
color="mono-light"
|
|
19
20
|
icon="edit"
|
|
20
21
|
class="edit-button"
|
|
21
22
|
@click="openModal(null)"
|
|
@@ -188,7 +189,6 @@
|
|
|
188
189
|
<script>
|
|
189
190
|
import { clone } from 'rambdax'
|
|
190
191
|
import { makePreventableEventMock } from '@AwUtils/events'
|
|
191
|
-
import AwSquareIconButton from '../2_molecules/AwSquareIconButton.vue'
|
|
192
192
|
|
|
193
193
|
const BASE = {
|
|
194
194
|
description: null,
|
|
@@ -212,7 +212,6 @@ const BASE = {
|
|
|
212
212
|
|
|
213
213
|
export default {
|
|
214
214
|
name: 'AwAddressBlock',
|
|
215
|
-
components: { AwSquareIconButton },
|
|
216
215
|
|
|
217
216
|
props: {
|
|
218
217
|
model: {
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
:disabled="disabledPrev"
|
|
7
7
|
@click.stop="$emit('click:prev')"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
9
|
+
<template #icon>
|
|
10
|
+
<AwIconSystemMono name="angle" />
|
|
11
|
+
</template>
|
|
10
12
|
</AwButton>
|
|
11
13
|
<div
|
|
12
14
|
class="aw-calendar__nav-title"
|
|
@@ -29,7 +31,9 @@
|
|
|
29
31
|
:disabled="disabledNext"
|
|
30
32
|
@click.stop="$emit('click:next')"
|
|
31
33
|
>
|
|
32
|
-
<
|
|
34
|
+
<template #icon>
|
|
35
|
+
<AwIconSystemMono name="angle" rotate="180" />
|
|
36
|
+
</template>
|
|
33
37
|
</AwButton>
|
|
34
38
|
</div>
|
|
35
39
|
</template>
|
|
@@ -30,6 +30,11 @@ export default {
|
|
|
30
30
|
hideText: {
|
|
31
31
|
type: Boolean,
|
|
32
32
|
default: null
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
color: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: 'mono'
|
|
33
38
|
}
|
|
34
39
|
},
|
|
35
40
|
|
|
@@ -80,13 +85,12 @@ export default {
|
|
|
80
85
|
|
|
81
86
|
const button = h('AwButton', {
|
|
82
87
|
props: {
|
|
83
|
-
|
|
84
|
-
color: 'mono',
|
|
88
|
+
color: this.color,
|
|
85
89
|
text: this.hideText ? '' : this.text,
|
|
86
90
|
hideText: this.hideText === null ? !this.text : this.hideText
|
|
87
91
|
},
|
|
88
|
-
staticClass:
|
|
89
|
-
class:
|
|
92
|
+
staticClass: 'aw-context-menu__button',
|
|
93
|
+
class: [this.buttonClass],
|
|
90
94
|
attrs: {
|
|
91
95
|
'data-arrow-focus': ''
|
|
92
96
|
},
|
|
@@ -99,12 +103,6 @@ export default {
|
|
|
99
103
|
props: {
|
|
100
104
|
name: 'more',
|
|
101
105
|
rotate: this.vertical ? 90 : null
|
|
102
|
-
},
|
|
103
|
-
class: {
|
|
104
|
-
'mr-2':
|
|
105
|
-
this.hideText === null
|
|
106
|
-
? this.text
|
|
107
|
-
: !this.hideText
|
|
108
106
|
}
|
|
109
107
|
})
|
|
110
108
|
}
|
|
@@ -17,17 +17,19 @@
|
|
|
17
17
|
color="default"
|
|
18
18
|
@click="rotate"
|
|
19
19
|
>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
<template #icon>
|
|
21
|
+
<svg
|
|
22
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
viewBox="0 0 512 512"
|
|
24
|
+
width="20"
|
|
25
|
+
height="20"
|
|
26
|
+
class="fill-current"
|
|
27
|
+
>
|
|
28
|
+
<path
|
|
29
|
+
d="M256.5 8c66.2.1 126.4 26.2 170.8 68.7L463 41a24 24 0 0141 17v134a24 24 0 01-24 24H346a24 24 0 01-17-41l41.7-41.7a168 168 0 10-4 249.2 12 12 0 0116.3.5l39.7 39.7a12 12 0 01-.5 17.4A248 248 0 11256.5 8z"
|
|
30
|
+
/>
|
|
31
|
+
</svg>
|
|
32
|
+
</template>
|
|
31
33
|
</AwButton>
|
|
32
34
|
</div>
|
|
33
35
|
|