@afeefa/vue-app 0.0.213 → 0.0.215

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.213
1
+ 0.0.215
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.213",
3
+ "version": "0.0.215",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -15,6 +15,7 @@
15
15
  dense
16
16
  outlined
17
17
  hide-details
18
+ :error-messages="error ? ['error'] : []"
18
19
  @wheel.prevent="onWheelHour"
19
20
  @focus="focusHour = true"
20
21
  @blur="updateHoursAndMinute"
@@ -49,6 +50,7 @@
49
50
  dense
50
51
  outlined
51
52
  hide-details
53
+ :error-messages="error ? ['error'] : []"
52
54
  @wheel.prevent="onWheelMinute"
53
55
  @focus="focusMinute = true"
54
56
  @blur="updateHoursAndMinute"
@@ -73,7 +75,7 @@ import formatHour from '@a-vue/utils/format-hour'
73
75
  import formatMinutes from '@a-vue/utils/format-minutes'
74
76
 
75
77
  @Component({
76
- props: ['value']
78
+ props: ['value', {error: false}]
77
79
  })
78
80
  export default class ATimePicker extends Vue {
79
81
  currentDate = null
@@ -91,14 +93,12 @@ export default class ATimePicker extends Vue {
91
93
 
92
94
  @Watch('value')
93
95
  valueChanged () {
94
- let date = new Date(this.value)
95
- if (this.currentHour) {
96
- date = moment(date).hours(this.currentHour).toDate()
97
- }
98
- if (this.currentMinutes) {
99
- date = moment(date).minutes(this.currentMinutes).toDate()
96
+ // filter out inner changes loop
97
+ if (this.value.getTime() === this.currentDate.getTime()) {
98
+ return
100
99
  }
101
- this.currentDate = date
100
+
101
+ this.currentDate = this.value
102
102
 
103
103
  this.initHourAndMinutes()
104
104
  }
@@ -216,12 +216,17 @@ export default class ATimePicker extends Vue {
216
216
  }
217
217
  }
218
218
 
219
+ ::v-deep() svg {
220
+ width: 28px;
221
+ height: 28px;
222
+ }
223
+
219
224
  .up {
220
- margin-bottom: -1px;
225
+ margin-bottom: -5px;
221
226
  }
222
227
 
223
228
  .down {
224
- margin-top: -3px;
229
+ margin-top: -7px;
225
230
  }
226
231
 
227
232
  .hourMinutesSeparator {
@@ -11,7 +11,7 @@
11
11
  />
12
12
 
13
13
  <a-time-picker
14
- v-if="time"
14
+ v-if="time && model[name]"
15
15
  ref="timePicker"
16
16
  v-model="model[name]"
17
17
  class="timePicker"