@afeefa/vue-app 0.0.169 → 0.0.171

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.169
1
+ 0.0.171
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.169",
3
+ "version": "0.0.171",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -33,3 +33,10 @@ export default class ACheckbox extends Vue {
33
33
  }
34
34
  }
35
35
  </script>
36
+
37
+
38
+ <style lang="scss" scoped>
39
+ .v-input--checkbox {
40
+ margin: 0;
41
+ }
42
+ </style>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- :class="['a-table-row', getFontSizeCssClass, {border: hasBorder, selected, disabled}]"
3
+ :class="['a-table-row', {border: hasBorder, small, tiny, selected, disabled}]"
4
4
  @click="$emit('click')"
5
5
  >
6
6
  <slot />
@@ -12,7 +12,7 @@
12
12
  import { Component, Vue } from '@a-vue'
13
13
 
14
14
  @Component({
15
- props: ['small', 'selected', 'disabled']
15
+ props: [{tiny: false, small: false}, 'selected', 'disabled']
16
16
  })
17
17
  export default class ATableRow extends Vue {
18
18
  $hasOptions = ['border']
@@ -31,12 +31,6 @@ export default class ATableRow extends Vue {
31
31
  get hasBorder () {
32
32
  return this.$has.border && this.table.$has.border
33
33
  }
34
-
35
- get getFontSizeCssClass () {
36
- if (this.small !== undefined) {
37
- return 'small'
38
- }
39
- }
40
34
  }
41
35
  </script>
42
36
 
@@ -102,6 +96,21 @@ export default class ATableRow extends Vue {
102
96
  }
103
97
  }
104
98
 
99
+ &.tiny {
100
+ font-size: .8rem;
101
+
102
+ &.border {
103
+ > * {
104
+ padding-top: .1rem;
105
+ padding-bottom: .1rem;
106
+ }
107
+ }
108
+
109
+ .textblock--tiny {
110
+ font-size: .7rem;
111
+ }
112
+ }
113
+
105
114
  .textblock--small {
106
115
  font-size: .9rem;
107
116
  line-height: .9;
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <a-text-field
3
+ ref="input"
3
4
  v-model="model[name]"
4
5
  :label="label || name"
5
6
  :validator="validator"
@@ -14,5 +15,8 @@ import { FormFieldMixin } from '../FormFieldMixin'
14
15
 
15
16
  @Component
16
17
  export default class FormFieldText extends Mixins(FormFieldMixin) {
18
+ setFocus () {
19
+ this.$refs.input.setFocus(true)
20
+ }
17
21
  }
18
22
  </script>