@itfin/components 1.2.131 → 1.2.134

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": "@itfin/components",
3
- "version": "1.2.131",
3
+ "version": "1.2.134",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -53,7 +53,6 @@ class itfModal extends Vue {
53
53
  @Prop({ type: Boolean, default: false }) closable
54
54
  @Prop({ type: Boolean, default: false }) closeIcon
55
55
  @Prop({ type: Boolean, default: false }) persistent
56
- @Prop({ type: Boolean, default: false }) slider
57
56
  @Prop({ type: Boolean, default: false }) escClose
58
57
  @Prop({ type: Function, default: null }) onEscClose;
59
58
  @Prop({ type: Boolean, default: true }) appendToBody;
@@ -117,7 +117,7 @@ class itfMoneyField extends Vue {
117
117
  }
118
118
 
119
119
  get maskedValue() {
120
- return this.value ? this.value.toString() : '';
120
+ return (this.value !== null && typeof this.value !== 'undefined') ? this.value.toString() : '';
121
121
  }
122
122
 
123
123
  isInvalid() {
@@ -157,7 +157,7 @@ class itfMoneyField extends Vue {
157
157
  }
158
158
 
159
159
  setValue (val) {
160
- if (!isNumeric(val)) {
160
+ if (!isNumeric(val) || (val || '').toString().match(/\..*0$/)) { // що не видаляло останній нуль вкінці
161
161
  return;
162
162
  }
163
163
  this.$emit('input', stringToNumber((val || '').toString().replace(/,/g, '')));