@afeefa/vue-app 0.0.117 → 0.0.118

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.117
1
+ 0.0.118
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.117",
3
+ "version": "0.0.118",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
+ :style="cwm_widthStyle + ' ' + displayStyle"
3
4
  :class="['a-row', directionClass, gapClass, classes]"
4
- :style="cwm_widthStyle"
5
5
  >
6
6
  <slot />
7
7
  </div>
@@ -14,7 +14,7 @@ import { ComponentWidthMixin } from './mixins/ComponentWidthMixin'
14
14
 
15
15
  @Component({
16
16
  props: [
17
- { vertical: false },
17
+ { vertical: false, inline: false },
18
18
  'gap'
19
19
  ]
20
20
  })
@@ -27,6 +27,10 @@ export default class ARow extends Mixins(ComponentWidthMixin) {
27
27
  return classes
28
28
  }
29
29
 
30
+ get displayStyle () {
31
+ return 'display: ' + (this.inline ? 'inline-flex' : 'flex') + ';'
32
+ }
33
+
30
34
  get gapClass () {
31
35
  if (this.gap) {
32
36
  return 'gap-' + this.gap
@@ -44,7 +48,6 @@ export default class ARow extends Mixins(ComponentWidthMixin) {
44
48
 
45
49
  <style scoped lang="scss">
46
50
  .a-row {
47
- display: flex;
48
51
  align-items: center;
49
52
 
50
53
  &.vertical {
@@ -62,10 +62,22 @@ export class FormFieldMixin extends Vue {
62
62
  .fromRequest(request)
63
63
  .load()
64
64
 
65
- return models.map(model => ({
66
- itemText: model.getTitle(),
67
- itemValue: model
68
- }))
65
+ const options = []
66
+
67
+ if (!this.validator || !this.validator.getParams().filled) {
68
+ options.push({
69
+ itemText: 'Keine Auswahl',
70
+ itemValue: null
71
+ })
72
+ }
73
+
74
+ return [
75
+ ...options,
76
+ ...models.map(model => ({
77
+ itemText: model.getTitle(),
78
+ itemValue: model
79
+ }))
80
+ ]
69
81
  }
70
82
 
71
83
  if (field.hasOptions()) {
@@ -63,7 +63,7 @@
63
63
  </div>
64
64
  </div>
65
65
 
66
- <a-context-menu>
66
+ <a-context-menu v-if="$has.settings">
67
67
  <a-context-menu-item
68
68
  :to="{name: 'settings', params: {accountId: account.id}}"
69
69
  >
@@ -144,6 +144,8 @@ import '../styles.scss'
144
144
  }
145
145
  })
146
146
  export default class App extends Vue {
147
+ $hasOptions = ['settings']
148
+
147
149
  drawer = true
148
150
  isLoading = false
149
151