@webitel/ui-sdk 25.4.7 → 25.4.8
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.
- package/CHANGELOG.md +6 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1259 -1246
- package/dist/ui-sdk.umd.cjs +13 -13
- package/package.json +1 -1
- package/src/components/wt-time-input/wt-time-input.vue +7 -1
- package/src/components/wt-timepicker/wt-timepicker.vue +13 -1
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
:value="value"
|
|
29
29
|
class="wt-time-input__input"
|
|
30
30
|
type="number"
|
|
31
|
-
|
|
31
|
+
v-on="listeners"
|
|
32
32
|
/>
|
|
33
33
|
</div>
|
|
34
34
|
<wt-input-info
|
|
@@ -106,6 +106,12 @@ export default {
|
|
|
106
106
|
showInfo() {
|
|
107
107
|
return this.isValidation && !this.hideInputInfo;
|
|
108
108
|
},
|
|
109
|
+
listeners() {
|
|
110
|
+
return {
|
|
111
|
+
...this.$listeners,
|
|
112
|
+
input: (event) => this.$emit('input', event.target.value),
|
|
113
|
+
};
|
|
114
|
+
},
|
|
109
115
|
},
|
|
110
116
|
};
|
|
111
117
|
</script>
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
:value="hour"
|
|
37
37
|
hide-input-info
|
|
38
38
|
@input="hour = $event"
|
|
39
|
+
@blur="onHoursBlurEvent"
|
|
39
40
|
/>
|
|
40
41
|
<wt-time-input
|
|
41
42
|
v-if="isMin"
|
|
@@ -225,7 +226,18 @@ export default {
|
|
|
225
226
|
},
|
|
226
227
|
},
|
|
227
228
|
|
|
228
|
-
methods: {
|
|
229
|
+
methods: {
|
|
230
|
+
onHoursBlurEvent() {
|
|
231
|
+
const newValue = this.dateMode
|
|
232
|
+
? new Date(this.value).setHours(this.hour)
|
|
233
|
+
: this.value - this.hour * SEC_IN_HOUR + this.hour * SEC_IN_HOUR;
|
|
234
|
+
|
|
235
|
+
this.$emit('input', 0);
|
|
236
|
+
this.$nextTick(() => {
|
|
237
|
+
this.$emit('input', newValue);
|
|
238
|
+
});
|
|
239
|
+
},
|
|
240
|
+
},
|
|
229
241
|
};
|
|
230
242
|
</script>
|
|
231
243
|
|