@fluxhub/fluxhub-lib 9.0.43 → 9.0.44
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/bundles/fluxhub-fluxhub-lib.umd.js +14 -5
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/grid_editors/numeric-editor.component.js +15 -6
- package/esm5/lib/controls/grid_editors/numeric-editor.component.js +15 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +14 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +14 -5
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -1063,7 +1063,10 @@
|
|
|
1063
1063
|
NumericEditorComponent.prototype.agInit = function (params) {
|
|
1064
1064
|
var _this = this;
|
|
1065
1065
|
this.params = params;
|
|
1066
|
-
this.value
|
|
1066
|
+
if (typeof (this.value) == "string")
|
|
1067
|
+
this.value = this.params.value;
|
|
1068
|
+
else
|
|
1069
|
+
this.value = '' + 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
|
-
|
|
1093
|
+
appov = parseFloat(this.value.split('.').join('').split(',').join('.'));
|
|
1090
1094
|
}
|
|
1091
|
-
|
|
1092
|
-
|
|
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
|
-
|
|
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) {
|