@afeefa/vue-app 0.0.135 → 0.0.136

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.135
1
+ 0.0.136
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.135",
3
+ "version": "0.0.136",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -75,7 +75,7 @@ export default class ADatePicker extends Mixins(ComponentWidthMixin, UsesPositio
75
75
  }
76
76
 
77
77
  get clearable () {
78
- if (this.validator && this.validator.param('null') === false) {
78
+ if (this.validator && this.validator.getParam('filled')) {
79
79
  return false
80
80
  }
81
81
  return true
@@ -235,7 +235,7 @@ export default class ARichTextArea extends Vue {
235
235
  if (!this.validator) {
236
236
  return false
237
237
  }
238
- return this.validator.getParams().max || false
238
+ return this.validator.getParam('max') || false
239
239
  }
240
240
 
241
241
  get currentValueStripped () {
@@ -31,7 +31,7 @@ export default class ATextArea extends Vue {
31
31
  if (!this.validator) {
32
32
  return false
33
33
  }
34
- return this.validator.getParams().max || false
34
+ return this.validator.getParam('max') || false
35
35
  }
36
36
  }
37
37
  </script>
@@ -121,6 +121,10 @@ export default class ATextField extends Mixins(ComponentWidthMixin) {
121
121
  } else {
122
122
  value = this.internalValue.match(/^-?\d*(\.\d+)?$/) ? parseFloat(this.internalValue) : NaN
123
123
  }
124
+ } else {
125
+ if (!value) {
126
+ value = this.emptyValue
127
+ }
124
128
  }
125
129
  return value
126
130
  }
@@ -64,7 +64,7 @@ export class FormFieldMixin extends Vue {
64
64
 
65
65
  const options = []
66
66
 
67
- if (!this.validator || !this.validator.getParams().filled) {
67
+ if (!this.validator || !this.validator.getParam('filled')) {
68
68
  options.push({
69
69
  itemText: 'Keine Auswahl',
70
70
  itemValue: null
@@ -252,6 +252,7 @@ export default class App extends Vue {
252
252
  width: 100%;
253
253
  left: 0;
254
254
  top: 0;
255
+ height:40px;
255
256
  padding: .2rem 1.1rem;
256
257
  background-color: white;
257
258
  }