@awes-io/ui 2.65.1 → 2.67.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 +34 -0
- package/assets/css/components/_index.css +2 -0
- package/assets/css/components/alert.css +14 -1
- package/assets/css/components/refresh-wrapper.css +9 -0
- package/assets/css/components/switch-field.css +6 -0
- package/assets/css/components/text-field.css +2 -0
- package/assets/css/components/tooltip.css +6 -6
- package/components/1_atoms/AwCheckbox.vue +5 -2
- package/components/1_atoms/AwRefreshWrapper.vue +151 -0
- package/components/2_molecules/AwAlert.vue +27 -1
- package/components/2_molecules/AwSelectObject.vue +49 -19
- package/components/2_molecules/_AwSelectFakeInput.vue +1 -1
- package/components/3_organisms/AwTable/AwTableBuilder.vue +13 -3
- package/directives/tooltip.js +11 -5
- package/nuxt/index.js +2 -5
- package/package.json +5 -15
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,40 @@
|
|
|
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.67.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.66.0...@awes-io/ui@2.67.0) (2023-08-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add new props and page for aw alert ([be268b2](https://github.com/awes-io/client/commit/be268b219ee68c726092cd63458048b1b958fa5e))
|
|
12
|
+
* add partical for checkbox and new type for value ([77b77ef](https://github.com/awes-io/client/commit/77b77effc25faf8e3663df475fe1f08af932db3e))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [2.66.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.65.1...@awes-io/ui@2.66.0) (2023-08-22)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add group and disable for select object ([756348a](https://github.com/awes-io/client/commit/756348a0a3f49e4a60cec7e112046ebccea29682))
|
|
24
|
+
* add group and disable for select object ([e252ddb](https://github.com/awes-io/client/commit/e252ddb6b29f366eec82ffd0631e2ebd69453bee))
|
|
25
|
+
* add refresh wrapper in table builder ([2727c01](https://github.com/awes-io/client/commit/2727c017b6d3ce0d05bd469181fa6bbc256f44d6))
|
|
26
|
+
* add refresh wrapper in table builder ([5e2d058](https://github.com/awes-io/client/commit/5e2d058e6f1adb80c469bb75be70e1bf1ce1d49f))
|
|
27
|
+
* change din on template for select object items ([bb7ba13](https://github.com/awes-io/client/commit/bb7ba130aebc2c27d0aa9f61de3b9f9c9db16266))
|
|
28
|
+
* change logic for clear events in refresh wrapper ([67f6c4c](https://github.com/awes-io/client/commit/67f6c4c1f4f552e25a21d717ff3fb4b2e8ebb64d))
|
|
29
|
+
* change styles and add arrow for tooltip ([6e4f495](https://github.com/awes-io/client/commit/6e4f495ecf6331e894bb600182487daf64a71e7a))
|
|
30
|
+
* remove all place with postcss-color-function ([a53bd65](https://github.com/awes-io/client/commit/a53bd6572d6ac4f2fc8ebfb55522e642a78bf494))
|
|
31
|
+
* remove plugins for update nuxt ([b230f4b](https://github.com/awes-io/client/commit/b230f4becab4af6befbb9a92a7dd8dcdf5872961))
|
|
32
|
+
* replace method for remove refresh wrapper events ([e63d9df](https://github.com/awes-io/client/commit/e63d9dfd58108668ac324dce32cfb52e37fbdfbe))
|
|
33
|
+
* replace style for fake input disable in text field css ([29f3d5f](https://github.com/awes-io/client/commit/29f3d5f8c4cf66e56beee686dd6d94b332cfffdd))
|
|
34
|
+
* unused modules removed ([09334f1](https://github.com/awes-io/client/commit/09334f1677a837df5eac8c4063e4a55941fde40e))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
6
40
|
## [2.65.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.65.0...@awes-io/ui@2.65.1) (2023-07-06)
|
|
7
41
|
|
|
8
42
|
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
padding: theme('spacing.4', 1rem);
|
|
5
5
|
border-radius: theme('borderRadius.md', 0.25rem);
|
|
6
|
-
border: 1px solid var(--
|
|
6
|
+
border: 1px solid var(--aw-alert-border);
|
|
7
|
+
background: var(--aw-alert-bg);
|
|
7
8
|
|
|
8
9
|
&__icon {
|
|
9
10
|
padding-right: theme('spacing.4', 1rem);
|
|
@@ -11,6 +12,14 @@
|
|
|
11
12
|
line-height: 0.75em;
|
|
12
13
|
}
|
|
13
14
|
|
|
15
|
+
.aw-description {
|
|
16
|
+
color: var(--aw-alert-on-color);
|
|
17
|
+
|
|
18
|
+
a {
|
|
19
|
+
color: var(--aw-alert-on-color);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
14
23
|
&__title {
|
|
15
24
|
display: flex;
|
|
16
25
|
margin: 0;
|
|
@@ -28,6 +37,10 @@
|
|
|
28
37
|
margin-top: theme('spacing.4', 1rem);
|
|
29
38
|
margin-left: theme('spacing.4', 1rem);
|
|
30
39
|
}
|
|
40
|
+
|
|
41
|
+
.aw-icon, a {
|
|
42
|
+
color: var(--aw-alert-on-color);
|
|
43
|
+
}
|
|
31
44
|
}
|
|
32
45
|
}
|
|
33
46
|
|
|
@@ -44,6 +44,12 @@
|
|
|
44
44
|
&:checked {
|
|
45
45
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
&--partical {
|
|
49
|
+
&:checked {
|
|
50
|
+
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.33089 10.8334H16.6667C16.8877 10.8334 17.0997 10.7456 17.256 10.5893C17.4123 10.4331 17.5001 10.2211 17.5001 10.0001C17.5001 9.77907 17.4123 9.56711 17.256 9.41083C17.0997 9.25455 16.8877 9.16675 16.6667 9.16675H3.33089C3.10988 9.16675 2.89792 9.25455 2.74164 9.41083C2.58536 9.56711 2.49756 9.77907 2.49756 10.0001C2.49756 10.2211 2.58536 10.4331 2.74164 10.5893C2.89792 10.7456 3.10988 10.8334 3.33089 10.8334Z'/%3e%3c/svg%3e");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.aw-tooltip {
|
|
2
|
-
padding:
|
|
2
|
+
padding: 1rem;
|
|
3
3
|
font-size: theme('fontSize.xs', 0.75rem);
|
|
4
4
|
line-height: theme('leading.5', 1.25rem);
|
|
5
|
-
border-radius:
|
|
6
|
-
background-color:
|
|
5
|
+
border-radius: 0.625rem;
|
|
6
|
+
background-color: var(--c-mono-200);
|
|
7
7
|
color: var(--c-surface);
|
|
8
8
|
display: none;
|
|
9
|
-
max-width:
|
|
9
|
+
max-width: min(14.625rem, calc(100vw - 2rem));
|
|
10
10
|
|
|
11
11
|
&[data-visible] {
|
|
12
12
|
display: block;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
pointer-events: none;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
& > [data-popper-arrow] {
|
|
22
22
|
background-clip: content-box;
|
|
23
23
|
padding: 4px;
|
|
24
24
|
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
|
|
52
52
|
&[data-popper-placement^='right'] > [data-popper-arrow] {
|
|
53
53
|
left: -4px;
|
|
54
|
-
}
|
|
54
|
+
}
|
|
55
55
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
>
|
|
12
12
|
<input
|
|
13
13
|
class="aw-switch-field__element"
|
|
14
|
+
:class="{ 'aw-switch-field__element--partical': partical }"
|
|
14
15
|
type="checkbox"
|
|
15
16
|
v-bind="{ value, checked: isChecked, ...skipAttr, ...$attrs }"
|
|
16
17
|
:id="id || defaultId"
|
|
@@ -52,9 +53,11 @@ export default {
|
|
|
52
53
|
},
|
|
53
54
|
|
|
54
55
|
checked: {
|
|
55
|
-
type: [Array, Boolean, Number],
|
|
56
|
+
type: [Array, Object, Boolean, Number],
|
|
56
57
|
default: false
|
|
57
|
-
}
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
partical: Boolean
|
|
58
61
|
},
|
|
59
62
|
|
|
60
63
|
computed: {
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="refreshLoader" class="aw-refresh-wrapper">
|
|
3
|
+
<slot name="before" />
|
|
4
|
+
|
|
5
|
+
<div
|
|
6
|
+
v-if="distance"
|
|
7
|
+
class="aw-refresh-wrapper__loader"
|
|
8
|
+
:style="{
|
|
9
|
+
height: `${distance}px`
|
|
10
|
+
}"
|
|
11
|
+
>
|
|
12
|
+
<svg
|
|
13
|
+
:style="touchRotateIconStyle"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
width="24"
|
|
16
|
+
height="24"
|
|
17
|
+
viewBox="0 0 512 512"
|
|
18
|
+
>
|
|
19
|
+
<path
|
|
20
|
+
d="M484 28l-53 53A247 247 0 008 256a248 248 0 00414 184c5-5 6-12 1-17l-20-20c-5-5-12-5-17-1a196 196 0 118-285l-54 55c-7 7-2 20 9 20h143c7 0 12-5 12-12V37c0-11-13-16-20-9z"
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<slot />
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
const MAX_DISTANCE = Math.max(200, window.innerHeight / 1.75)
|
|
31
|
+
const MIN_DISTANCE = 75
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
name: 'AwRefreshWrapper',
|
|
35
|
+
|
|
36
|
+
props: {
|
|
37
|
+
loading: Boolean
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
data: () => ({
|
|
41
|
+
startY: 0,
|
|
42
|
+
distance: 0
|
|
43
|
+
}),
|
|
44
|
+
|
|
45
|
+
computed: {
|
|
46
|
+
touchRotateIconStyle() {
|
|
47
|
+
return !this.loading && this.distance > 0
|
|
48
|
+
? `transform: rotate(${this.distance}deg)`
|
|
49
|
+
: ''
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
mounted() {
|
|
54
|
+
this.$refs.refreshLoader.addEventListener(
|
|
55
|
+
'touchmove',
|
|
56
|
+
this.onTouchStartMove,
|
|
57
|
+
{ passive: false }
|
|
58
|
+
)
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
beforeDestroy() {
|
|
62
|
+
this.removeListeners()
|
|
63
|
+
|
|
64
|
+
this.$refs.refreshLoader.removeEventListener(
|
|
65
|
+
'touchmove',
|
|
66
|
+
this.onTouchStartMove,
|
|
67
|
+
{ passive: false }
|
|
68
|
+
)
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
methods: {
|
|
72
|
+
removeListeners() {
|
|
73
|
+
this.$refs.refreshLoader.removeEventListener(
|
|
74
|
+
'touchmove',
|
|
75
|
+
this.onTouchMove,
|
|
76
|
+
{ capture: true, passive: false }
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
this.$refs.refreshLoader.removeEventListener(
|
|
80
|
+
'touchend',
|
|
81
|
+
this.onTouchEnd,
|
|
82
|
+
{ capture: true, passive: false }
|
|
83
|
+
)
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
onTouchStartMove(e) {
|
|
87
|
+
if (
|
|
88
|
+
!this.loading &&
|
|
89
|
+
e.touches.length === 1 &&
|
|
90
|
+
document.scrollingElement.scrollTop === 0
|
|
91
|
+
) {
|
|
92
|
+
this.startY = e.touches[0].pageY
|
|
93
|
+
|
|
94
|
+
this.$refs.refreshLoader.addEventListener(
|
|
95
|
+
'touchmove',
|
|
96
|
+
this.onTouchMove,
|
|
97
|
+
{ capture: true, passive: false }
|
|
98
|
+
)
|
|
99
|
+
this.$refs.refreshLoader.addEventListener(
|
|
100
|
+
'touchend',
|
|
101
|
+
this.onTouchEnd,
|
|
102
|
+
{ capture: true, passive: false }
|
|
103
|
+
)
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
onTouchMove(e) {
|
|
108
|
+
if (document.scrollingElement.scrollTop !== 0) {
|
|
109
|
+
this.distance = 0
|
|
110
|
+
|
|
111
|
+
this.removeListeners()
|
|
112
|
+
|
|
113
|
+
return
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const diff = e.touches[0].pageY - this.startY
|
|
117
|
+
|
|
118
|
+
if (diff < 0) {
|
|
119
|
+
this.onTouchEnd()
|
|
120
|
+
return
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
try {
|
|
124
|
+
if (e.cancelable) {
|
|
125
|
+
e.preventDefault()
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
e.stopPropagation()
|
|
129
|
+
} catch (e) {
|
|
130
|
+
console.log(e)
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
this.distance = Math.max(0, Math.min(MAX_DISTANCE, diff))
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
onTouchEnd() {
|
|
137
|
+
this.removeListeners()
|
|
138
|
+
|
|
139
|
+
if (this.distance && this.distance >= MIN_DISTANCE) {
|
|
140
|
+
if (typeof window.navigator.vibrate === 'function') {
|
|
141
|
+
window.navigator.vibrate(200)
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
this.$emit('refresh')
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
this.distance = 0
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="aw-alert">
|
|
2
|
+
<div class="aw-alert" :style="styleVariables">
|
|
3
3
|
<AwDescription tag="div" class="aw-alert__title">
|
|
4
4
|
<span v-if="icon || $scopedSlots.icon" class="aw-alert__icon">
|
|
5
5
|
<slot name="icon">
|
|
@@ -31,6 +31,16 @@ export default {
|
|
|
31
31
|
default: ''
|
|
32
32
|
},
|
|
33
33
|
|
|
34
|
+
color: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: ''
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
onColor: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ''
|
|
42
|
+
},
|
|
43
|
+
|
|
34
44
|
iconColor: {
|
|
35
45
|
type: String,
|
|
36
46
|
default: ''
|
|
@@ -40,6 +50,22 @@ export default {
|
|
|
40
50
|
type: String,
|
|
41
51
|
default: ''
|
|
42
52
|
}
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
computed: {
|
|
56
|
+
styleVariables() {
|
|
57
|
+
return {
|
|
58
|
+
'--aw-alert-bg': this.color
|
|
59
|
+
? `var(--c-${this.color})`
|
|
60
|
+
: 'current',
|
|
61
|
+
'--aw-alert-border': this.onColor
|
|
62
|
+
? `var(--c-${this.onColor})`
|
|
63
|
+
: 'var(--c-mono-800)',
|
|
64
|
+
'--aw-alert-on-color': this.onColor
|
|
65
|
+
? `var(--c-${this.onColor})`
|
|
66
|
+
: 'current'
|
|
67
|
+
}
|
|
68
|
+
}
|
|
43
69
|
}
|
|
44
70
|
}
|
|
45
71
|
</script>
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
:clearable="clearable && !_isEmpty"
|
|
35
35
|
:is-opened="isOpened"
|
|
36
36
|
:caret="isCaretVisible"
|
|
37
|
+
:disabled="disabled"
|
|
37
38
|
:class="{
|
|
38
39
|
'is-filled': searchable && isOpened,
|
|
39
40
|
'not-searchable': !searchable
|
|
@@ -76,6 +77,7 @@
|
|
|
76
77
|
:clearable="clearable && !_isEmpty"
|
|
77
78
|
:is-opened="isOpened"
|
|
78
79
|
:caret="isCaretVisible"
|
|
80
|
+
:disabled="disabled"
|
|
79
81
|
:class="{
|
|
80
82
|
'is-filled': searchable && isOpened,
|
|
81
83
|
'not-searchable': !searchable
|
|
@@ -179,35 +181,52 @@
|
|
|
179
181
|
|
|
180
182
|
<!-- options list -->
|
|
181
183
|
<template v-if="optionsList.length">
|
|
182
|
-
<
|
|
184
|
+
<template
|
|
183
185
|
v-for="({
|
|
184
186
|
optionLabel,
|
|
185
187
|
optionValue,
|
|
188
|
+
optionGroup,
|
|
186
189
|
index,
|
|
187
190
|
active,
|
|
188
191
|
disabled
|
|
189
192
|
},
|
|
190
193
|
i) in optionsList"
|
|
191
|
-
:key="`${optionLabel}-${index}`"
|
|
192
|
-
:active="active"
|
|
193
|
-
:data-select-index="index"
|
|
194
|
-
:data-selected="active ? '' : null"
|
|
195
|
-
:data-value="optionValue"
|
|
196
|
-
:disabled="disabled"
|
|
197
|
-
tabindex="-1"
|
|
198
|
-
data-arrow-focus
|
|
199
194
|
>
|
|
200
|
-
<
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
195
|
+
<div
|
|
196
|
+
v-if="
|
|
197
|
+
groupBy &&
|
|
198
|
+
(index === 0 ||
|
|
199
|
+
optionGroup !==
|
|
200
|
+
optionsList[index - 1].optionGroup)
|
|
201
|
+
"
|
|
202
|
+
class="font-bold p-4"
|
|
203
|
+
:key="`group-${optionGroup}-${index}`"
|
|
204
|
+
>
|
|
205
|
+
{{ optionGroup }}
|
|
206
|
+
</div>
|
|
207
|
+
|
|
208
|
+
<AwDropdownButton
|
|
209
|
+
:active="active"
|
|
210
|
+
:data-select-index="index"
|
|
211
|
+
:data-selected="active ? '' : null"
|
|
212
|
+
:data-value="optionValue"
|
|
213
|
+
:disabled="disabled"
|
|
214
|
+
tabindex="-1"
|
|
215
|
+
data-arrow-focus
|
|
216
|
+
:key="`btn-${optionLabel}-${index}`"
|
|
207
217
|
>
|
|
208
|
-
<
|
|
209
|
-
|
|
210
|
-
|
|
218
|
+
<slot
|
|
219
|
+
name="option-label"
|
|
220
|
+
v-bind="{
|
|
221
|
+
...optionsList[i],
|
|
222
|
+
searchPhrase,
|
|
223
|
+
highlightSearch
|
|
224
|
+
}"
|
|
225
|
+
>
|
|
226
|
+
<span v-html="highlightSearch(optionLabel)" />
|
|
227
|
+
</slot>
|
|
228
|
+
</AwDropdownButton>
|
|
229
|
+
</template>
|
|
211
230
|
</template>
|
|
212
231
|
|
|
213
232
|
<!-- not found -->
|
|
@@ -298,6 +317,11 @@ export default {
|
|
|
298
317
|
default: ''
|
|
299
318
|
},
|
|
300
319
|
|
|
320
|
+
groupBy: {
|
|
321
|
+
type: String,
|
|
322
|
+
default: ''
|
|
323
|
+
},
|
|
324
|
+
|
|
301
325
|
searchable: {
|
|
302
326
|
type: Boolean,
|
|
303
327
|
default: true
|
|
@@ -421,6 +445,10 @@ export default {
|
|
|
421
445
|
return this.trackBy ? path(this.trackBy) : returnSelf
|
|
422
446
|
},
|
|
423
447
|
|
|
448
|
+
_getGroup() {
|
|
449
|
+
return this.groupBy ? path(this.groupBy) : returnSelf
|
|
450
|
+
},
|
|
451
|
+
|
|
424
452
|
_valueKey() {
|
|
425
453
|
return this._getValue(this.value)
|
|
426
454
|
},
|
|
@@ -435,6 +463,7 @@ export default {
|
|
|
435
463
|
if (inRange && matchSearch) {
|
|
436
464
|
const optionLabel = this._getLabel(option)
|
|
437
465
|
const optionValue = this._getValue(option)
|
|
466
|
+
const optionGroup = this._getGroup(option)
|
|
438
467
|
const active = this._isActive(optionValue)
|
|
439
468
|
const disabled = this.optionDisabled(option)
|
|
440
469
|
|
|
@@ -442,6 +471,7 @@ export default {
|
|
|
442
471
|
option,
|
|
443
472
|
optionLabel,
|
|
444
473
|
optionValue,
|
|
474
|
+
optionGroup,
|
|
445
475
|
index,
|
|
446
476
|
active,
|
|
447
477
|
disabled
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<AwRefreshWrapper
|
|
3
|
+
class="aw-table-builder relative"
|
|
4
|
+
:loading="collection.loading"
|
|
5
|
+
@refresh="fetch"
|
|
6
|
+
>
|
|
7
|
+
<template #before>
|
|
8
|
+
<slot name="before-refresh" />
|
|
9
|
+
</template>
|
|
10
|
+
|
|
3
11
|
<div v-if="isEmpty && !collection.loading">
|
|
4
12
|
<!-- The empty container. Will be shown if the data (without filters) is empty. Your can compleatly overwrite the block. -->
|
|
5
13
|
<slot v-if="!isWatchParamsPresent" name="empty-container">
|
|
@@ -55,7 +63,9 @@
|
|
|
55
63
|
<slot name="empty-filter-title">
|
|
56
64
|
<!-- Text: "There are no data to show" -->
|
|
57
65
|
<div class="text-mono-400 mb-4">
|
|
58
|
-
{{
|
|
66
|
+
{{
|
|
67
|
+
$t('No results were found for your request')
|
|
68
|
+
}}
|
|
59
69
|
</div>
|
|
60
70
|
</slot>
|
|
61
71
|
|
|
@@ -175,7 +185,7 @@
|
|
|
175
185
|
</AwChip>
|
|
176
186
|
</slot>
|
|
177
187
|
</div>
|
|
178
|
-
</
|
|
188
|
+
</AwRefreshWrapper>
|
|
179
189
|
</template>
|
|
180
190
|
|
|
181
191
|
<script>
|
package/directives/tooltip.js
CHANGED
|
@@ -12,10 +12,16 @@ function showTooltip() {
|
|
|
12
12
|
tooltip.setAttribute('data-visible', '')
|
|
13
13
|
|
|
14
14
|
const modifiers = [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
{
|
|
16
|
+
name: 'arrow',
|
|
17
|
+
options: { padding: 6 }
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'flip',
|
|
21
|
+
options: {
|
|
22
|
+
fallbackPlacements: ['top', 'right', 'bottom', 'left']
|
|
23
|
+
}
|
|
24
|
+
},
|
|
19
25
|
{
|
|
20
26
|
name: 'preventOverflow',
|
|
21
27
|
options: {
|
|
@@ -74,7 +80,7 @@ function toggleEvents(el, on = false, $events = EVENTS) {
|
|
|
74
80
|
function _updateTooltipContent(tooltip, content) {
|
|
75
81
|
tooltip.__content__ = content
|
|
76
82
|
|
|
77
|
-
tooltip.innerHTML = content
|
|
83
|
+
tooltip.innerHTML = content + '<span data-popper-arrow></span>'
|
|
78
84
|
|
|
79
85
|
return tooltip
|
|
80
86
|
}
|
package/nuxt/index.js
CHANGED
|
@@ -131,7 +131,8 @@ async function AwesIoUi() {
|
|
|
131
131
|
const _locale = locale.code || locale
|
|
132
132
|
const file = getDayjsLang(_locale)
|
|
133
133
|
|
|
134
|
-
localesMap[_locale] =
|
|
134
|
+
localesMap[_locale] =
|
|
135
|
+
getDayjsLocaleNameFromFile(file) || DEFAULT_DAYJS_LOCALE
|
|
135
136
|
|
|
136
137
|
return file ? acc.concat(file) : acc
|
|
137
138
|
},
|
|
@@ -229,7 +230,6 @@ async function AwesIoUi() {
|
|
|
229
230
|
resolve(__dirname, '..', 'assets', 'css', 'main.css')
|
|
230
231
|
)
|
|
231
232
|
|
|
232
|
-
postcss.preset.stage = 1
|
|
233
233
|
postcss.plugins = postcss.plugins || {}
|
|
234
234
|
|
|
235
235
|
postcss.plugins = mergeDeepRight(
|
|
@@ -245,9 +245,6 @@ async function AwesIoUi() {
|
|
|
245
245
|
)
|
|
246
246
|
|
|
247
247
|
postcss.plugins.tailwindcss = tailwindConfig
|
|
248
|
-
|
|
249
|
-
// include last
|
|
250
|
-
postcss['postcss-color-function'] = {}
|
|
251
248
|
})
|
|
252
249
|
|
|
253
250
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.67.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -43,9 +43,7 @@
|
|
|
43
43
|
"build": "rimraf dist && yarn build-icons && cross-env NODE_ENV=production rollup -c ./build/rollup.config.js",
|
|
44
44
|
"build-icons": "node build/icons/font.js && node build/icons/json.js",
|
|
45
45
|
"dev": "rimraf dist && yarn build-icons && rollup -wc ./build/rollup.config.js",
|
|
46
|
-
"dev-nuxt": "yarn build-icons && nuxt"
|
|
47
|
-
"test": "jest",
|
|
48
|
-
"test:watch": "jest -w"
|
|
46
|
+
"dev-nuxt": "yarn build-icons && nuxt"
|
|
49
47
|
},
|
|
50
48
|
"dependencies": {
|
|
51
49
|
"@casl/ability": "^4.1.6",
|
|
@@ -68,7 +66,6 @@
|
|
|
68
66
|
"libphonenumber-js": "^1.9.43",
|
|
69
67
|
"loadjs": "^3.6.1",
|
|
70
68
|
"marked": "^0.7.0",
|
|
71
|
-
"postcss-color-function": "^4.1.0",
|
|
72
69
|
"postcss-each": "^0.10.0",
|
|
73
70
|
"postcss-easings": "^2.0.0",
|
|
74
71
|
"prismjs": "^1.17.1",
|
|
@@ -82,7 +79,6 @@
|
|
|
82
79
|
"@babel/preset-env": "^7.5.5",
|
|
83
80
|
"@nuxtjs/eslint-config": "^2.0.0",
|
|
84
81
|
"@nuxtjs/eslint-module": "^1.1.0",
|
|
85
|
-
"@vue/test-utils": "^1.0.0-beta.29",
|
|
86
82
|
"autoprefixer": "^9.6.1",
|
|
87
83
|
"babel-core": "7.0.0-bridge.0",
|
|
88
84
|
"babel-eslint": "^10.0.3",
|
|
@@ -94,10 +90,7 @@
|
|
|
94
90
|
"eslint-config-prettier": "^6.9.0",
|
|
95
91
|
"eslint-plugin-nuxt": "^0.5.0",
|
|
96
92
|
"eslint-plugin-prettier": "^3.1.2",
|
|
97
|
-
"
|
|
98
|
-
"jest-serializer-vue": "^2.0.2",
|
|
99
|
-
"jest-transform-stub": "^2.0.0",
|
|
100
|
-
"nuxt": "^2.11.0",
|
|
93
|
+
"nuxt": "^2.17.1",
|
|
101
94
|
"nuxt-i18n": "^6.4.1",
|
|
102
95
|
"postcss-calc": "^7.0.1",
|
|
103
96
|
"postcss-custom-properties": "^9.0.2",
|
|
@@ -117,10 +110,7 @@
|
|
|
117
110
|
"rollup-plugin-postcss": "^2.0.3",
|
|
118
111
|
"rollup-plugin-terser": "^5.1.1",
|
|
119
112
|
"rollup-plugin-visualizer": "^2.6.0",
|
|
120
|
-
"rollup-plugin-vue": "^5.0.1"
|
|
121
|
-
"vue-jest": "^3.0.4",
|
|
122
|
-
"vue-template-compiler": "^2.6.10",
|
|
123
|
-
"webfonts-generator": "^0.4.0"
|
|
113
|
+
"rollup-plugin-vue": "^5.0.1"
|
|
124
114
|
},
|
|
125
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "7cd4ca56900a7c32fcab1516ee346528ec9eb9fe"
|
|
126
116
|
}
|