@afeefa/vue-app 0.0.87 → 0.0.89
Sign up to get free protection for your applications and to get access to all the features.
- package/.afeefa/package/release/version.txt +1 -1
- package/package.json +1 -1
- package/src/components/AAutocomplete.vue +2 -1
- package/src/components/AModal.vue +2 -2
- package/src/components/ASearchSelect.vue +13 -7
- package/src/components/form/EditModal.vue +1 -1
- package/src-admin/components/detail/DetailProperty.vue +2 -3
- package/src-admin/components/list/ListView.vue +26 -7
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.89
|
package/package.json
CHANGED
@@ -77,7 +77,8 @@ export default class AAutocomplete extends Vue {
|
|
77
77
|
}
|
78
78
|
|
79
79
|
get validationRules () {
|
80
|
-
|
80
|
+
const label = this.$attrs.label
|
81
|
+
return (this.validator && this.validator.getRules(label)) || []
|
81
82
|
}
|
82
83
|
|
83
84
|
get value () {
|
@@ -5,7 +5,10 @@
|
|
5
5
|
style="width: max-content;"
|
6
6
|
@click="open"
|
7
7
|
>
|
8
|
-
<slot
|
8
|
+
<slot
|
9
|
+
v-if="!autoOpen"
|
10
|
+
name="activator"
|
11
|
+
>
|
9
12
|
<a-icon class="contextButton">
|
10
13
|
$dotsHorizontalIcon
|
11
14
|
</a-icon>
|
@@ -99,9 +102,10 @@ import { ComponentWidthMixin } from './mixins/ComponentWidthMixin'
|
|
99
102
|
'listAction',
|
100
103
|
'q',
|
101
104
|
'width',
|
102
|
-
'closeOnSelect',
|
103
105
|
'loadOnlyIfKeyword',
|
104
106
|
{
|
107
|
+
autoOpen: false,
|
108
|
+
closeOnSelect: true,
|
105
109
|
selectedItems: []
|
106
110
|
}
|
107
111
|
],
|
@@ -120,6 +124,12 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
120
124
|
filters = []
|
121
125
|
count = 0
|
122
126
|
|
127
|
+
mounted () {
|
128
|
+
if (this.autoOpen) {
|
129
|
+
this.open()
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
123
133
|
destroyed () {
|
124
134
|
this.close()
|
125
135
|
}
|
@@ -167,10 +177,6 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
167
177
|
return this.loadOnlyIfKeyword === undefined || this.loadOnlyIfKeyword
|
168
178
|
}
|
169
179
|
|
170
|
-
get _closeOnSelect () {
|
171
|
-
return this.closeOnSelect === undefined || this.closeOnSelect
|
172
|
-
}
|
173
|
-
|
174
180
|
positionize () {
|
175
181
|
const position = new PositionConfig()
|
176
182
|
.setAnchor(this, '.activator')
|
@@ -249,7 +255,7 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
249
255
|
|
250
256
|
selectHandler (model) {
|
251
257
|
return event => {
|
252
|
-
if (this.
|
258
|
+
if (this.closeOnSelect) {
|
253
259
|
this.close()
|
254
260
|
}
|
255
261
|
this.$emit('select', model, {
|
@@ -1,6 +1,9 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="listView">
|
3
|
-
<div
|
3
|
+
<div
|
4
|
+
v-if="filtersActivated"
|
5
|
+
class="filters"
|
6
|
+
>
|
4
7
|
<slot
|
5
8
|
name="filters"
|
6
9
|
:filters="filters"
|
@@ -66,11 +69,19 @@
|
|
66
69
|
</template>
|
67
70
|
</template>
|
68
71
|
|
69
|
-
<div
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
72
|
+
<div
|
73
|
+
v-else-if="!isLoading"
|
74
|
+
class="nothing-found"
|
75
|
+
>
|
76
|
+
<div v-if="filtersActivated">
|
77
|
+
Nichts gefunden. <a
|
78
|
+
href=""
|
79
|
+
@click.prevent="resetFilters()"
|
80
|
+
>Filter zurücksetzen</a>
|
81
|
+
</div>
|
82
|
+
<div v-else>
|
83
|
+
Nichts gefunden.
|
84
|
+
</div>
|
74
85
|
</div>
|
75
86
|
</div>
|
76
87
|
</template>
|
@@ -82,7 +93,15 @@ import { ListViewMixin } from '@a-vue/components/list/ListViewMixin'
|
|
82
93
|
import { LoadingEvent } from '@a-vue/events'
|
83
94
|
|
84
95
|
@Component({
|
85
|
-
props:
|
96
|
+
props: {
|
97
|
+
rowAttributes: {},
|
98
|
+
rowClasses: {},
|
99
|
+
rowListeners: {},
|
100
|
+
filtersActivated: {
|
101
|
+
type: Boolean,
|
102
|
+
default: true
|
103
|
+
}
|
104
|
+
}
|
86
105
|
})
|
87
106
|
export default class ListView extends Mixins(ListViewMixin) {
|
88
107
|
$hasOptions = ['icon']
|