@webitel/ui-sdk 24.2.57 → 24.2.59
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/dist/img/sprite/index.js +0 -2
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.mjs +2697 -2696
- package/dist/ui-sdk.umd.js +9 -9
- package/package.json +1 -1
- package/src/components/wt-input/wt-input.vue +6 -2
- package/src/components/wt-tags-input/wt-tags-input.vue +2 -1
- package/dist/img/sprite/elevenlabs.svg +0 -5
- package/dist/img/sprite/microsoft.svg +0 -7
package/package.json
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
|
|
74
74
|
<script setup>
|
|
75
75
|
import {
|
|
76
|
-
ref, computed, useSlots, onMounted,
|
|
76
|
+
ref, computed, useSlots, onMounted, toRefs,
|
|
77
77
|
} from 'vue';
|
|
78
78
|
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
79
79
|
|
|
@@ -180,11 +180,15 @@ const props = defineProps({
|
|
|
180
180
|
const emit = defineEmits(['update:modelValue', 'input', 'keyup']);
|
|
181
181
|
|
|
182
182
|
const slots = useSlots();
|
|
183
|
+
|
|
184
|
+
// https://stackoverflow.com/questions/72408463/use-props-in-composables-vue3
|
|
185
|
+
const { v, customValidators } = toRefs(props);
|
|
186
|
+
|
|
183
187
|
const {
|
|
184
188
|
isValidation,
|
|
185
189
|
invalid,
|
|
186
190
|
validationText,
|
|
187
|
-
} = useValidation({ v
|
|
191
|
+
} = useValidation({ v, customValidators });
|
|
188
192
|
|
|
189
193
|
// toggles password <-> text at showPassword
|
|
190
194
|
const inputType = ref('');
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
:label="selectOptionLabel"
|
|
32
32
|
:loading="false"
|
|
33
33
|
:model-value="selectValue"
|
|
34
|
+
:multiple="multiple"
|
|
34
35
|
:options="selectOptions"
|
|
35
36
|
:placeholder="placeholder || label"
|
|
36
37
|
:taggable="taggable"
|
|
37
38
|
:track-by="trackBy"
|
|
38
39
|
class="wt-tags-input__select"
|
|
39
|
-
multiple
|
|
40
40
|
v-bind="$attrs"
|
|
41
41
|
v-on="listeners"
|
|
42
42
|
>
|
|
@@ -138,6 +138,7 @@ export default {
|
|
|
138
138
|
emits: ['input', 'tag', 'search-change', 'closed'],
|
|
139
139
|
data: () => ({
|
|
140
140
|
defaultOptionLabel: 'label',
|
|
141
|
+
multiple: true,
|
|
141
142
|
}),
|
|
142
143
|
methods: {
|
|
143
144
|
getTagOptionLabel({ optionLabel, option }) {
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect width="24" height="24" fill="#F6F7F9"/>
|
|
3
|
-
<rect x="2" y="2" width="9" height="9" fill="#EE4F2B"/>
|
|
4
|
-
<rect x="13" y="2" width="9" height="9" fill="#84BE1F"/>
|
|
5
|
-
<rect x="2" y="13" width="9" height="9" fill="#2BA8EE"/>
|
|
6
|
-
<rect x="13" y="13" width="9" height="9" fill="#FCBB28"/>
|
|
7
|
-
</svg>
|