@webitel/ui-sdk 3.1.13 → 3.1.15
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/ui-sdk.common.js +23 -18
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +23 -18
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-input/wt-input.vue +8 -2
- package/src/components/organisms/wt-page-header/wt-page-header.vue +1 -1
package/package.json
CHANGED
|
@@ -162,6 +162,11 @@ export default {
|
|
|
162
162
|
type: Object,
|
|
163
163
|
description: 'Object with props, passed down to wt-label as props',
|
|
164
164
|
},
|
|
165
|
+
|
|
166
|
+
preventTrim: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
default: false,
|
|
169
|
+
},
|
|
165
170
|
},
|
|
166
171
|
emits: ['update:modelValue', 'input'],
|
|
167
172
|
data: () => ({
|
|
@@ -210,8 +215,9 @@ export default {
|
|
|
210
215
|
},
|
|
211
216
|
methods: {
|
|
212
217
|
inputHandler(event) {
|
|
213
|
-
this
|
|
214
|
-
this.$emit('
|
|
218
|
+
const value = this.preventTrim ? event.target.value : event.target.value.trim();
|
|
219
|
+
this.$emit('update:modelValue', value);
|
|
220
|
+
this.$emit('input', value);
|
|
215
221
|
},
|
|
216
222
|
|
|
217
223
|
switchVisibilityPassword() {
|