@eturnity/eturnity_reusable_components 1.1.93 → 1.1.96

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": "@eturnity/eturnity_reusable_components",
3
- "version": "1.1.93",
3
+ "version": "1.1.96",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -267,6 +267,10 @@ export default {
267
267
  required: false,
268
268
  default: null,
269
269
  },
270
+ numberToStringEnabled: {
271
+ required: false,
272
+ default: true
273
+ }
270
274
  },
271
275
  methods: {
272
276
  onChangeHandler(event) {
@@ -338,19 +342,19 @@ export default {
338
342
  ? this.minNumber
339
343
  : ""
340
344
  if ((adjustedMinValue || adjustedMinValue === 0) && !this.isFocused) {
341
- let input = numberToString({
345
+ let input = this.numberToStringEnabled ? numberToString({
342
346
  value: adjustedMinValue,
343
347
  numberPrecision: this.numberPrecision,
344
- })
348
+ }) : adjustedMinValue
345
349
  let unit = this.showLinearUnitName ? "" : this.unitName
346
350
  return input + " " + unit
347
351
  } else if (!adjustedMinValue && adjustedMinValue !== 0) {
348
352
  return ""
349
353
  } else {
350
- return numberToString({
354
+ return this.numberToStringEnabled ? numberToString({
351
355
  value: adjustedMinValue,
352
356
  numberPrecision: this.numberPrecision,
353
- })
357
+ }) : adjustedMinValue
354
358
  }
355
359
  },
356
360
  },