@afeefa/vue-app 0.0.229 → 0.0.231

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.229
1
+ 0.0.231
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.229",
3
+ "version": "0.0.231",
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-checkbox
3
3
  ref="checkbox"
4
+ class="a-checkbox"
4
5
  v-bind="$attrs"
5
6
  :inputValue="$attrs.value"
6
7
  @change="$emit('input', $event || false)"
7
- />
8
+ >
9
+ <template #label>
10
+ <slot />
11
+ </template>
12
+ </v-checkbox>
8
13
  </template>
9
14
 
10
15
 
@@ -39,5 +44,9 @@ export default class ACheckbox extends Vue {
39
44
  .v-input--checkbox {
40
45
  margin: 0;
41
46
  padding: 0;
47
+
48
+ ::v-deep() .v-input__slot {
49
+ align-items: flex-start;
50
+ }
42
51
  }
43
52
  </style>
@@ -210,6 +210,11 @@ export default class ListView extends Mixins(ListViewMixin) {
210
210
  return this.selectedModels.includes(model)
211
211
  }
212
212
 
213
+ deselectAll () {
214
+ this.selectedModels = []
215
+ this.$emit('update:selectedModels', this.selectedModels)
216
+ }
217
+
213
218
  selectModel (model) {
214
219
  if (!this.isSelected(model)) {
215
220
  this.selectedModels.push(model)
@@ -220,8 +225,7 @@ export default class ListView extends Mixins(ListViewMixin) {
220
225
  }
221
226
 
222
227
  _listLoaded () {
223
- this.selectedModels = []
224
- this.$emit('update:selectedModels', this.selectedModels)
228
+ this.deselectAll()
225
229
  }
226
230
 
227
231
  @Watch('isLoading')