@webitel/ui-sdk 25.4.7 → 25.4.9
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 +1261 -1248
- package/dist/ui-sdk.umd.cjs +13 -13
- package/package.json +2 -2
- package/src/components/transitions/wt-transition.vue +8 -5
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.04.
|
|
3
|
+
"version": "25.04.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@vuelidate/validators": "^2.0.4",
|
|
115
115
|
"@vuepic/vue-datepicker": "^4.5.1",
|
|
116
116
|
"@vueuse/components": "^11.2.0",
|
|
117
|
-
"@webitel/styleguide": "^24.12.
|
|
117
|
+
"@webitel/styleguide": "^24.12.25",
|
|
118
118
|
"autosize": "^6.0.1",
|
|
119
119
|
"axios": "^1.7.7",
|
|
120
120
|
"clipboard-copy": "^4.0.1",
|
|
@@ -26,7 +26,7 @@ const props = defineProps({
|
|
|
26
26
|
},
|
|
27
27
|
duration: {
|
|
28
28
|
type: String,
|
|
29
|
-
default: '
|
|
29
|
+
default: 'fast',
|
|
30
30
|
},
|
|
31
31
|
});
|
|
32
32
|
</script>
|
|
@@ -43,11 +43,14 @@ const props = defineProps({
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.wt-transition {
|
|
46
|
-
&--
|
|
47
|
-
transition-duration:
|
|
46
|
+
&--fast {
|
|
47
|
+
transition-duration: var(--transition-fast);
|
|
48
48
|
}
|
|
49
|
-
&--
|
|
50
|
-
transition-duration:
|
|
49
|
+
&--normal {
|
|
50
|
+
transition-duration: var(--transition-normal);
|
|
51
|
+
}
|
|
52
|
+
&--slow {
|
|
53
|
+
transition-duration: var(--transition-slow);
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
</style>
|
|
@@ -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
|
|