@webitel/ui-sdk 3.0.0 → 3.0.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": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -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
  >
@@ -72,6 +72,10 @@ export default {
72
72
  name: 'wt-input',
73
73
  mixins: [validationMixin],
74
74
  props: {
75
+ value: {
76
+ type: [String, Number],
77
+ default: '',
78
+ },
75
79
  /**
76
80
  * Current input modelValue (`v-model`)
77
81
  */
@@ -155,7 +159,7 @@ export default {
155
159
  description: 'Object with props, passed down to wt-label as props',
156
160
  },
157
161
  },
158
- emits: ['update:modelValue'],
162
+ emits: ['update:modelValue', 'input'],
159
163
  data: () => ({
160
164
  inputType: '',
161
165
  isPasswordVisible: false,
@@ -203,6 +207,7 @@ export default {
203
207
  methods: {
204
208
  inputHandler(event) {
205
209
  this.$emit('update:modelValue', event.target.value.trim());
210
+ this.$emit('input', event.target.value.trim());
206
211
  },
207
212
 
208
213
  switchVisibilityPassword() {