@webitel/ui-sdk 2.1.0 → 2.1.1

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.0",
3
+ "version": "2.1.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -119,11 +119,14 @@ export default {
119
119
  methods: {
120
120
  tag(searchQuery, id) {
121
121
  this.$emit('tag', searchQuery, id);
122
+
123
+ const tag = this.trackBy ? {
124
+ [this.optionLabel || 'name']: searchQuery,
125
+ [this.trackBy]: id || searchQuery,
126
+ } : searchQuery;
127
+
128
+ this.options.unshift(tag);
122
129
  if (!this.manualTagging) {
123
- const tag = this.trackBy ? {
124
- [this.optionLabel || 'name']: searchQuery,
125
- [this.trackBy]: id || searchQuery,
126
- } : searchQuery;
127
130
  const value = [...this.value, tag];
128
131
  this.input(value);
129
132
  }
@@ -31,6 +31,7 @@
31
31
 
32
32
 
33
33
  .multiselect__tags {
34
+ padding: calc(var(--spacing-xs) - 1px); // borders
34
35
  color: var(--form-input-color);
35
36
  border: var(--select-tags-border);
36
37
  border-color: var(--form-border-color);
@@ -61,6 +62,7 @@
61
62
  @extend %wt-placeholder;
62
63
  overflow: hidden;
63
64
  max-width: 100%;
65
+ display: block;
64
66
 
65
67
  // text overflow 3 dots
66
68
  white-space: nowrap;
@@ -60,6 +60,7 @@ export default {
60
60
  priority: 'Priority',
61
61
  variables: 'Variable | Variables',
62
62
  type: 'Type',
63
+ tag: 'Tag | Tags',
63
64
  },
64
65
  // date-related texts
65
66
  date: {
@@ -58,6 +58,7 @@ export default {
58
58
  priority: 'Приоритет',
59
59
  variables: 'Переменная | Переменные',
60
60
  type: 'Тип',
61
+ tag: 'Тег | Теги',
61
62
  },
62
63
  // date-related texts
63
64
  date: {
@@ -58,6 +58,7 @@ export default {
58
58
  priority: 'Приорітет',
59
59
  variables: 'Змінна | Змінні',
60
60
  type: 'Тип',
61
+ tag: 'Тег | Теги',
61
62
  },
62
63
  // date-related texts
63
64
  date: {