@webitel/ui-sdk 3.2.157 → 3.2.159

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.2.157",
3
+ "version": "3.2.159",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -111,12 +111,15 @@ const badgeColorVar = computed(() => {
111
111
  %wt-avatar-typo-sm {
112
112
  font-size: 12px;
113
113
  }
114
+
114
115
  %wt-avatar-typo-lg {
115
116
  font-size: 20px;
116
117
  }
118
+
117
119
  %wt-avatar-typo-2xl {
118
120
  font-size: 36px;
119
121
  }
122
+
120
123
  %wt-avatar-typo-3xl {
121
124
  font-size: 48px;
122
125
  }
@@ -127,7 +130,6 @@ const badgeColorVar = computed(() => {
127
130
  height: var(--avatar-size);
128
131
  user-select: none;
129
132
  border-radius: 50%;
130
- overflow: hidden;
131
133
 
132
134
  &__letters {
133
135
  height: 100%;
@@ -135,6 +137,7 @@ const badgeColorVar = computed(() => {
135
137
  align-items: center;
136
138
  justify-content: center;
137
139
  color: var(--avatar-font-color);
140
+ border-radius: 50%;
138
141
  }
139
142
 
140
143
  &__img {
@@ -63,6 +63,11 @@ export default {
63
63
  searchHasNext: true,
64
64
  }),
65
65
  computed: {
66
+ selectOptionLabel() {
67
+ // trackBy === null means that options are not objects but primitives
68
+ if (this.trackBy === null) return null;
69
+ return this.optionLabel || this.defaultOptionLabel;
70
+ },
66
71
  isApiMode() {
67
72
  return !!this.searchMethod;
68
73
  },
@@ -24,7 +24,7 @@
24
24
  :allow-empty="allowEmpty"
25
25
  :disabled="disabled"
26
26
  :internal-search="!searchMethod"
27
- :label="trackBy ? optionLabel : null"
27
+ :label="selectOptionLabel"
28
28
  :limit="1"
29
29
  :loading="false"
30
30
  :multiple="multiple"
@@ -23,7 +23,7 @@
23
23
  :close-on-select="false"
24
24
  :disabled="disabled"
25
25
  :internal-search="!searchMethod"
26
- :label="trackBy ? optionLabel : null"
26
+ :label="selectOptionLabel"
27
27
  :loading="false"
28
28
  :options="selectOptions"
29
29
  :placeholder="placeholder || label"