@webitel/ui-sdk 3.0.0 → 3.0.2
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 +1 -1
- package/dist/img/sprite/role.svg +3 -0
- package/dist/img/sprite/user.svg +3 -0
- package/dist/ui-sdk.common.js +24 -14
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +24 -14
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-input/wt-input.vue +11 -2
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
:min="numberMin"
|
|
31
31
|
:placeholder="placeholder || label"
|
|
32
32
|
:type="inputType"
|
|
33
|
-
:value="modelValue"
|
|
33
|
+
:value="value || modelValue"
|
|
34
34
|
class="wt-input__input"
|
|
35
35
|
@input="inputHandler"
|
|
36
36
|
>
|
|
@@ -68,10 +68,18 @@
|
|
|
68
68
|
<script>
|
|
69
69
|
import validationMixin from '../../../mixins/validationMixin/validationMixin';
|
|
70
70
|
|
|
71
|
+
/*
|
|
72
|
+
* IMPORTANT: WT-INPUT SHOULD SUPPORT VUE 3 AND VUE 2 V-MODEL INTERFACES SO THAT THERE'S
|
|
73
|
+
* TWO PROPS: VALUE AND MODELVALUE, AND 2 EVENTS: @UPDATE:MODELVALUE AND @INPUT
|
|
74
|
+
* */
|
|
71
75
|
export default {
|
|
72
76
|
name: 'wt-input',
|
|
73
77
|
mixins: [validationMixin],
|
|
74
78
|
props: {
|
|
79
|
+
value: {
|
|
80
|
+
type: [String, Number],
|
|
81
|
+
default: '',
|
|
82
|
+
},
|
|
75
83
|
/**
|
|
76
84
|
* Current input modelValue (`v-model`)
|
|
77
85
|
*/
|
|
@@ -155,7 +163,7 @@ export default {
|
|
|
155
163
|
description: 'Object with props, passed down to wt-label as props',
|
|
156
164
|
},
|
|
157
165
|
},
|
|
158
|
-
emits: ['update:modelValue'],
|
|
166
|
+
emits: ['update:modelValue', 'input'],
|
|
159
167
|
data: () => ({
|
|
160
168
|
inputType: '',
|
|
161
169
|
isPasswordVisible: false,
|
|
@@ -203,6 +211,7 @@ export default {
|
|
|
203
211
|
methods: {
|
|
204
212
|
inputHandler(event) {
|
|
205
213
|
this.$emit('update:modelValue', event.target.value.trim());
|
|
214
|
+
this.$emit('input', event.target.value.trim());
|
|
206
215
|
},
|
|
207
216
|
|
|
208
217
|
switchVisibilityPassword() {
|