@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "3.1.13",
3
+ "version": "3.1.15",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -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.$emit('update:modelValue', event.target.value.trim());
214
- this.$emit('input', event.target.value.trim());
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() {
@@ -23,7 +23,7 @@
23
23
  color="secondary"
24
24
  @click="secondaryAction"
25
25
  >
26
- {{ t('reusable.delete') }}
26
+ {{ secondaryText || t('reusable.close') }}
27
27
  </wt-button>
28
28
  </template>
29
29
  </wt-headline>