@afeefa/vue-app 0.0.88 → 0.0.89

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.88
1
+ 0.0.89
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -77,7 +77,8 @@ export default class AAutocomplete extends Vue {
77
77
  }
78
78
 
79
79
  get validationRules () {
80
- return (this.validator && this.validator.getRules()) || []
80
+ const label = this.$attrs.label
81
+ return (this.validator && this.validator.getRules(label)) || []
81
82
  }
82
83
 
83
84
  get value () {
@@ -27,7 +27,7 @@
27
27
  <slot name="after-form-fields" />
28
28
 
29
29
  <a-row
30
- class="mt-8 mb-1 pb-1 gap-2"
30
+ class="mt-8 gap-2"
31
31
  right
32
32
  >
33
33
  <v-btn
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <div class="listView">
3
- <div class="filters">
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 v-else-if="!isLoading">
70
- Nichts gefunden. <a
71
- href=""
72
- @click.prevent="resetFilters()"
73
- >Filter zurücksetzen</a>
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: ['rowAttributes', 'rowClasses', 'rowListeners']
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']