@fluxhub/fluxhub-lib 9.0.119 → 9.0.121
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 +2 -8
- 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/fhcurrencyfield.js +1 -9
- package/esm2015/lib/controls/fhgrid.js +2 -2
- package/esm5/lib/controls/fhcurrencyfield.js +2 -8
- package/esm5/lib/controls/fhgrid.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +1 -9
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +2 -8
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -5490,7 +5490,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
5490
5490
|
str_fields += ',';
|
|
5491
5491
|
if (p_col[j].getColDef().headerName == null)
|
|
5492
5492
|
str_fields += '[' + p_col[j].getColDef().field + ']';
|
|
5493
|
-
else if (p_col[j].getColDef().headerName ==
|
|
5493
|
+
else if (p_col[j].getColDef().headerName == '')
|
|
5494
5494
|
str_fields += '[' + p_col[j].getColDef().field + ']';
|
|
5495
5495
|
else
|
|
5496
5496
|
str_fields += '[' + p_col[j].getColDef().field + '] [' + p_col[j].getColDef().headerName + ']';
|
|
@@ -8749,7 +8749,6 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8749
8749
|
var _this = this;
|
|
8750
8750
|
setTimeout(function () {
|
|
8751
8751
|
_this.value = parseFloat(_this.formattedAmount.split(".").join("").split(",").join("."));
|
|
8752
|
-
console.log('onChange ', _this.value);
|
|
8753
8752
|
_this.onChange(_this.value);
|
|
8754
8753
|
}, 50);
|
|
8755
8754
|
};
|
|
@@ -8764,7 +8763,6 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8764
8763
|
if (typeof (value) == 'string') {
|
|
8765
8764
|
value = parseFloat(value.split(".").join("").split(",").join("."));
|
|
8766
8765
|
}
|
|
8767
|
-
console.log('value ', value);
|
|
8768
8766
|
this.value = value;
|
|
8769
8767
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8770
8768
|
//}
|
|
@@ -8796,13 +8794,10 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8796
8794
|
};
|
|
8797
8795
|
FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
|
|
8798
8796
|
if (fractionSize === void 0) { fractionSize = 2; }
|
|
8799
|
-
console.log('b', typeof (value));
|
|
8800
8797
|
if (typeof (value) == 'string') {
|
|
8801
8798
|
value = parseFloat(value.split(".").join("").split(",").join("."));
|
|
8802
8799
|
}
|
|
8803
|
-
console.log('a', typeof (value));
|
|
8804
8800
|
var _a = __read((value || "").toString().split("."), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
|
|
8805
|
-
console.log('transform ', value);
|
|
8806
8801
|
fraction =
|
|
8807
8802
|
fractionSize > 0
|
|
8808
8803
|
? "," + (fraction + "000000").substring(0, fractionSize)
|
|
@@ -8810,7 +8805,6 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8810
8805
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
|
|
8811
8806
|
if (integer == "")
|
|
8812
8807
|
integer = "0";
|
|
8813
|
-
console.log('transform end ', integer + fraction);
|
|
8814
8808
|
return integer + fraction;
|
|
8815
8809
|
};
|
|
8816
8810
|
FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
|
|
@@ -8884,7 +8878,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8884
8878
|
Component({
|
|
8885
8879
|
selector: "FHCurrencyField",
|
|
8886
8880
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
|
|
8887
|
-
template: "\n <mat-form-field\n [hidden]=\"!enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n #el\n matInput\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\n (focusout)=\"chg()\"\n [style.color]=\"getStyle_color()\"\n (keydown)=\"kd($event)\"\n
|
|
8881
|
+
template: "\n <mat-form-field\n [hidden]=\"!enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n #el\n matInput\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\n (focusout)=\"chg()\"\n [style.color]=\"getStyle_color()\"\n (keydown)=\"kd($event)\"\n (click)=\"click_select_allf($event)\"\n (focus)=\"removeCurrencyPipeFormat($event); select_allf($event)\"\n />\n </mat-form-field>\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n [style.color]=\"getStyle_color()\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"formattedAmount\"\n />\n </mat-form-field>\n ",
|
|
8888
8882
|
styles: [""]
|
|
8889
8883
|
}),
|
|
8890
8884
|
__metadata("design:paramtypes", [])
|