@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
|
@@ -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
|
|
933
|
+
if (typeof (this.value) == "string")
|
|
934
|
+
this.value = this.params.value;
|
|
935
|
+
else
|
|
936
|
+
this.value = '' + 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
|
-
|
|
960
|
+
appov = parseFloat(this.value.split('.').join('').split(',').join('.'));
|
|
957
961
|
}
|
|
958
|
-
|
|
959
|
-
|
|
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
|
-
|
|
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) {
|