@webitel/ui-sdk 3.1.36 → 3.1.38
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/dist/ui-sdk.common.js +8898 -8907
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +8898 -8907
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +6 -5
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-datepicker/wt-datepicker.vue +2 -11
- package/src/locale/i18n.js +1 -1
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</wt-label>
|
|
12
12
|
<vue-datepicker
|
|
13
13
|
ref="datepicker"
|
|
14
|
-
:locale="locale"
|
|
14
|
+
:locale="$i18n.locale === 'ua' ? 'uk' : $i18n.locale"
|
|
15
15
|
:model-value="+value"
|
|
16
16
|
:placeholder="label || placeholder"
|
|
17
17
|
class="wt-datepicker__datepicker"
|
|
@@ -84,8 +84,7 @@
|
|
|
84
84
|
<script setup>
|
|
85
85
|
import VueDatepicker from '@vuepic/vue-datepicker';
|
|
86
86
|
import '@vuepic/vue-datepicker/dist/main.css';
|
|
87
|
-
import {
|
|
88
|
-
import { useI18n } from 'vue-i18n';
|
|
87
|
+
import { ref } from 'vue';
|
|
89
88
|
|
|
90
89
|
const props = defineProps({
|
|
91
90
|
mode: {
|
|
@@ -126,17 +125,9 @@ const props = defineProps({
|
|
|
126
125
|
});
|
|
127
126
|
const emit = defineEmits(['input']);
|
|
128
127
|
|
|
129
|
-
const i18n = useI18n();
|
|
130
|
-
|
|
131
128
|
const isOpened = ref(false);
|
|
132
129
|
const datepicker = ref(null); // template ref
|
|
133
130
|
|
|
134
|
-
const locale = computed(() => {
|
|
135
|
-
const { locale } = i18n;
|
|
136
|
-
if (locale === 'ua') return 'uk';
|
|
137
|
-
return locale;
|
|
138
|
-
});
|
|
139
|
-
|
|
140
131
|
const isDateTime = props.mode === 'datetime';
|
|
141
132
|
</script>
|
|
142
133
|
|