@webitel/ui-sdk 3.1.37 → 3.1.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "3.1.37",
3
+ "version": "3.1.39",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -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 { computed, ref } from 'vue';
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 } = { locale: 'ua' };
136
- if (locale === 'ua') return 'uk';
137
- return locale;
138
- });
139
-
140
131
  const isDateTime = props.mode === 'datetime';
141
132
  </script>
142
133
 
@@ -13,7 +13,7 @@ const messages = {
13
13
 
14
14
  // eslint-disable-next-line new-cap
15
15
  export default new createI18n({
16
- legacy: false,
16
+ // legacy: false,
17
17
  locale: 'en',
18
18
  fallbackLocale: 'en',
19
19
  messages,
@@ -3,7 +3,7 @@
3
3
  :value="filterSchema.value"
4
4
  :label="label"
5
5
  mode="datetime"
6
- @change="handleChange"
6
+ @input="handleChange"
7
7
  ></wt-datepicker>
8
8
  </template>
9
9