@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.
@@ -930,7 +930,10 @@ var NumericEditorComponent = /** @class */ (function () {
930
930
  NumericEditorComponent.prototype.agInit = function (params) {
931
931
  var _this = this;
932
932
  this.params = params;
933
- this.value = this.params.value;
933
+ if (typeof (this.value) == "string")
934
+ this.value = this.params.value;
935
+ else
936
+ this.value = this.uti_s.format_currency(this.params.value);
934
937
  // console.log('numeric editore: agInit');
935
938
  // only start edit if key pressed is a number, not a letter
936
939
  // this.input.element.nativeElement.select();
@@ -952,11 +955,14 @@ var NumericEditorComponent = /** @class */ (function () {
952
955
  // console.log('numeric editore: getValue ['+String(this.value)+']');
953
956
  if (String(this.value) == '')
954
957
  return 0;
958
+ var appov = 0;
955
959
  if (typeof (this.value) == "string") {
956
- //this.value=parseFloat(this.value.split(',').join('.'));
960
+ appov = parseFloat(this.value.split('.').join('').split(',').join('.'));
957
961
  }
958
- if (this.value != null)
959
- return parseFloat(this.value.split('.').join('').split(',').join('.'));
962
+ else
963
+ appov = this.value;
964
+ if (appov != null)
965
+ return appov;
960
966
  else
961
967
  return 0;
962
968
  };
@@ -966,7 +972,10 @@ var NumericEditorComponent = /** @class */ (function () {
966
972
  // will reject the number if it greater than 1,000,000
967
973
  // not very practical, but demonstrates the method.
968
974
  NumericEditorComponent.prototype.isCancelAfterEnd = function () {
969
- return parseFloat(this.value.split('.').join('').split(',').join('.')) > 1000000;
975
+ if (typeof (this.value) == "string")
976
+ return parseFloat(this.value.split('.').join('').split(',').join('.')) > 1000000;
977
+ else
978
+ return false;
970
979
  };
971
980
  ;
972
981
  NumericEditorComponent.prototype.onKeyDown = function (event) {