@fluxhub/fluxhub-lib 9.0.43 → 9.0.45

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.
@@ -1063,7 +1063,10 @@
1063
1063
  NumericEditorComponent.prototype.agInit = function (params) {
1064
1064
  var _this = this;
1065
1065
  this.params = params;
1066
- this.value = this.params.value;
1066
+ if (typeof (this.value) == "string")
1067
+ this.value = this.params.value;
1068
+ else
1069
+ this.value = this.uti_s.format_currency(this.params.value);
1067
1070
  // console.log('numeric editore: agInit');
1068
1071
  // only start edit if key pressed is a number, not a letter
1069
1072
  // this.input.element.nativeElement.select();
@@ -1085,11 +1088,14 @@
1085
1088
  // console.log('numeric editore: getValue ['+String(this.value)+']');
1086
1089
  if (String(this.value) == '')
1087
1090
  return 0;
1091
+ var appov = 0;
1088
1092
  if (typeof (this.value) == "string") {
1089
- //this.value=parseFloat(this.value.split(',').join('.'));
1093
+ appov = parseFloat(this.value.split('.').join('').split(',').join('.'));
1090
1094
  }
1091
- if (this.value != null)
1092
- return parseFloat(this.value.split('.').join('').split(',').join('.'));
1095
+ else
1096
+ appov = this.value;
1097
+ if (appov != null)
1098
+ return appov;
1093
1099
  else
1094
1100
  return 0;
1095
1101
  };
@@ -1099,7 +1105,10 @@
1099
1105
  // will reject the number if it greater than 1,000,000
1100
1106
  // not very practical, but demonstrates the method.
1101
1107
  NumericEditorComponent.prototype.isCancelAfterEnd = function () {
1102
- return parseFloat(this.value.split('.').join('').split(',').join('.')) > 1000000;
1108
+ if (typeof (this.value) == "string")
1109
+ return parseFloat(this.value.split('.').join('').split(',').join('.')) > 1000000;
1110
+ else
1111
+ return false;
1103
1112
  };
1104
1113
  ;
1105
1114
  NumericEditorComponent.prototype.onKeyDown = function (event) {