@afeefa/vue-app 0.0.216 → 0.0.218

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.216
1
+ 0.0.218
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.216",
3
+ "version": "0.0.218",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -1,10 +1,15 @@
1
1
  <template>
2
2
  <v-icon
3
3
  :class="{button}"
4
+ :color="icon && icon.color"
4
5
  v-bind="$attrs"
5
6
  v-on="$listeners"
6
7
  >
7
- <slot />
8
+ <template v-if="icon">
9
+ {{ icon.icon }}
10
+ </template>
11
+
12
+ <slot v-else />
8
13
  </v-icon>
9
14
  </template>
10
15
 
@@ -13,7 +18,7 @@
13
18
  import { Component, Vue } from '@a-vue'
14
19
 
15
20
  @Component({
16
- props: [{button: false}]
21
+ props: ['icon', {button: false}]
17
22
  })
18
23
  export default class AIcon extends Vue {
19
24
  }
@@ -56,13 +56,15 @@ export default class ListFilterSelect extends Mixins(ListFilterMixin) {
56
56
  itemTitle: (this.itemTitle && this.itemTitle(model)) || model.name || model.title,
57
57
  itemValue
58
58
  }
59
- })
59
+ }),
60
+ ...this.getOptions(true)
60
61
  ]
61
62
  }
62
63
 
63
- getOptions () {
64
+ getOptions (prepend = false) {
64
65
  return [
65
66
  ...this.filter.options
67
+ .filter(o => !!o.prepend === prepend)
66
68
  .map(o => {
67
69
  return {
68
70
  itemTitle: o.title,