@webitel/ui-sdk 2.0.16-10 → 2.0.16-13

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": "2.0.16-10",
3
+ "version": "2.0.16-13",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -39,7 +39,7 @@
39
39
  <!-- Slot that is used for all selected options (tags)-->
40
40
  <template slot="tag" slot-scope="{ option }">
41
41
  <span class="multiselect__custom-tag">
42
- {{ option[optionLabel] || option }}
42
+ {{ getOptionLabel({ option, optionLabel }) }}
43
43
  </span>
44
44
  </template>
45
45
 
@@ -141,7 +141,6 @@ export default {
141
141
 
142
142
  optionLabel: {
143
143
  type: String,
144
- default: 'name',
145
144
  },
146
145
 
147
146
  searchMethod: {
@@ -226,11 +225,14 @@ export default {
226
225
 
227
226
  methods: {
228
227
  getOptionLabel({ option, optionLabel }) {
228
+ const defaultOptionLabel = 'name';
229
+
230
+ if (optionLabel) return option[optionLabel];
229
231
  if (option.locale) {
230
232
  if (Array.isArray(option.locale)) return this.$tc(...option.locale);
231
233
  return this.$t(option.locale);
232
234
  }
233
- return option[optionLabel] || option;
235
+ return option[defaultOptionLabel] || option;
234
236
  },
235
237
  handleSearchChange(search) {
236
238
  if (!this.isApiMode) return;
@@ -39,6 +39,7 @@ export default {
39
39
  tts: 'Text-to-Speech',
40
40
  state: 'State',
41
41
  refresh: 'Refresh',
42
+ retry: 'Retry',
42
43
  },
43
44
  // yak zhe ya zaebalsya povtoriaty odni i ti sami slova!!!!
44
45
  vocabulary: {
@@ -39,6 +39,7 @@ export default {
39
39
  tts: 'Text-to-Speech',
40
40
  state: 'Состояние',
41
41
  refresh: 'Обновить',
42
+ retry: 'Повторить',
42
43
  },
43
44
  vocabulary: {
44
45
  language: 'Язык',
@@ -39,6 +39,7 @@ export default {
39
39
  tts: 'Text-to-Speech',
40
40
  state: 'Стан',
41
41
  refresh: 'Оновити',
42
+ retry: 'Повторити',
42
43
  },
43
44
  vocabulary: {
44
45
  language: 'Мова',