@webitel/ui-sdk 2.1.12 → 2.1.14

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.1.12",
3
+ "version": "2.1.14",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -125,6 +125,15 @@ export default {
125
125
  [this.trackBy]: id || searchQuery,
126
126
  } : searchQuery;
127
127
 
128
+ const isTagExist = (newTag) => {
129
+ if (typeof newTag === 'string') {
130
+ return this.options.some((elem) => elem === newTag);
131
+ }
132
+ return this.options.some((elem) => elem[this.trackBy] === newTag[this.trackBy]);
133
+ }
134
+
135
+ if (isTagExist(tag)) return;
136
+
128
137
  this.options.unshift(tag);
129
138
  if (!this.manualTagging) {
130
139
  const value = [...this.value, tag];
@@ -64,6 +64,7 @@ export default {
64
64
  output: 'Output | Outputs',
65
65
  values: 'Value | Values',
66
66
  keys: 'Key | Keys',
67
+ duration: 'Duration',
67
68
  },
68
69
  // date-related texts
69
70
  date: {
@@ -62,6 +62,7 @@ export default {
62
62
  output: 'Выход | Выходы',
63
63
  values: 'Значение | Значения',
64
64
  keys: 'Ключ | Ключи',
65
+ duration: 'Длительность',
65
66
  },
66
67
  // date-related texts
67
68
  date: {
@@ -62,6 +62,7 @@ export default {
62
62
  output: 'Вихід | Виходи',
63
63
  values: 'Значення | Значення',
64
64
  keys: 'Ключ | Ключі',
65
+ duration: 'Тривалість',
65
66
  },
66
67
  // date-related texts
67
68
  date: {