@afeefa/vue-app 0.0.88 → 0.0.90

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.
@@ -1 +1 @@
1
- 0.0.88
1
+ 0.0.90
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.90",
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,5 +1,5 @@
1
1
  <template>
2
- <div class="project-buttons gap-3">
2
+ <div>
3
3
  <slot />
4
4
  </div>
5
5
  </template>
@@ -8,11 +8,7 @@
8
8
  import { Component, Vue } from '@a-vue'
9
9
 
10
10
  @Component({
11
- props: {
12
- prepend: {
13
- type: Boolean
14
- }
15
- }
11
+ props: [{ prepend: false }]
16
12
  })
17
13
  export default class AppBarButton extends Vue {
18
14
  mounted () {
@@ -39,10 +35,3 @@ export default class AppBarButton extends Vue {
39
35
  }
40
36
  }
41
37
  </script>
42
-
43
- <style scoped>
44
- .project-buttons {
45
- display: flex;
46
- align-items: center;
47
- }
48
- </style>
@@ -4,12 +4,15 @@
4
4
  <v-btn
5
5
  :class="'a-btn-standard removeButton-' + dialogId"
6
6
  fab
7
- x-small
7
+ small
8
8
  :color="(hover ? 'red' : 'grey lighten-3')"
9
9
  :title="title"
10
10
  @click="remove"
11
11
  >
12
- <v-icon class="white--hover">
12
+ <v-icon
13
+ class="white--hover"
14
+ size="1.3rem"
15
+ >
13
16
  $trashCanIcon
14
17
  </v-icon>
15
18
  </v-btn>
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <div class="listView">
3
- <div class="filters">
3
+ <div
4
+ v-if="$has.filters"
5
+ class="filters"
6
+ >
4
7
  <slot
5
8
  name="filters"
6
9
  :filters="filters"
@@ -67,10 +70,16 @@
67
70
  </template>
68
71
 
69
72
  <div v-else-if="!isLoading">
70
- Nichts gefunden. <a
71
- href=""
72
- @click.prevent="resetFilters()"
73
- >Filter zurücksetzen</a>
73
+ <div v-if="$has.filters">
74
+ Nichts gefunden. <a
75
+ href=""
76
+ @click.prevent="resetFilters()"
77
+ >Filter zurücksetzen</a>
78
+ </div>
79
+
80
+ <div v-else>
81
+ Nichts gefunden.
82
+ </div>
74
83
  </div>
75
84
  </div>
76
85
  </template>
@@ -85,7 +94,7 @@ import { LoadingEvent } from '@a-vue/events'
85
94
  props: ['rowAttributes', 'rowClasses', 'rowListeners']
86
95
  })
87
96
  export default class ListView extends Mixins(ListViewMixin) {
88
- $hasOptions = ['icon']
97
+ $hasOptions = ['icon', 'filters']
89
98
 
90
99
  @Watch('isLoading')
91
100
  isLoadingChanged () {