@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
|
@@ -6020,7 +6020,7 @@ let FHGridComponent = class FHGridComponent {
|
|
|
6020
6020
|
str_fields += ',';
|
|
6021
6021
|
if (p_col[j].getColDef().headerName == null)
|
|
6022
6022
|
str_fields += '[' + p_col[j].getColDef().field + ']';
|
|
6023
|
-
else if (p_col[j].getColDef().headerName ==
|
|
6023
|
+
else if (p_col[j].getColDef().headerName == '')
|
|
6024
6024
|
str_fields += '[' + p_col[j].getColDef().field + ']';
|
|
6025
6025
|
else
|
|
6026
6026
|
str_fields += '[' + p_col[j].getColDef().field + '] [' + p_col[j].getColDef().headerName + ']';
|
|
@@ -9668,7 +9668,6 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
|
|
|
9668
9668
|
chg() {
|
|
9669
9669
|
setTimeout(() => {
|
|
9670
9670
|
this.value = parseFloat(this.formattedAmount.split(".").join("").split(",").join("."));
|
|
9671
|
-
console.log('onChange ', this.value);
|
|
9672
9671
|
this.onChange(this.value);
|
|
9673
9672
|
}, 50);
|
|
9674
9673
|
}
|
|
@@ -9683,7 +9682,6 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
|
|
|
9683
9682
|
if (typeof (value) == 'string') {
|
|
9684
9683
|
value = parseFloat(value.split(".").join("").split(",").join("."));
|
|
9685
9684
|
}
|
|
9686
|
-
console.log('value ', value);
|
|
9687
9685
|
this.value = value;
|
|
9688
9686
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
9689
9687
|
//}
|
|
@@ -9713,13 +9711,10 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
|
|
|
9713
9711
|
}
|
|
9714
9712
|
}
|
|
9715
9713
|
transform(value, fractionSize = 2) {
|
|
9716
|
-
console.log('b', typeof (value));
|
|
9717
9714
|
if (typeof (value) == 'string') {
|
|
9718
9715
|
value = parseFloat(value.split(".").join("").split(",").join("."));
|
|
9719
9716
|
}
|
|
9720
|
-
console.log('a', typeof (value));
|
|
9721
9717
|
let [integer, fraction = ""] = (value || "").toString().split(".");
|
|
9722
|
-
console.log('transform ', value);
|
|
9723
9718
|
fraction =
|
|
9724
9719
|
fractionSize > 0
|
|
9725
9720
|
? "," + (fraction + "000000").substring(0, fractionSize)
|
|
@@ -9727,7 +9722,6 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
|
|
|
9727
9722
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
|
|
9728
9723
|
if (integer == "")
|
|
9729
9724
|
integer = "0";
|
|
9730
|
-
console.log('transform end ', integer + fraction);
|
|
9731
9725
|
return integer + fraction;
|
|
9732
9726
|
}
|
|
9733
9727
|
removeCurrencyPipeFormat(element) {
|
|
@@ -9817,10 +9811,8 @@ FHCurrencyFieldComponent = __decorate([
|
|
|
9817
9811
|
(focusout)="chg()"
|
|
9818
9812
|
[style.color]="getStyle_color()"
|
|
9819
9813
|
(keydown)="kd($event)"
|
|
9820
|
-
|
|
9821
9814
|
(click)="click_select_allf($event)"
|
|
9822
9815
|
(focus)="removeCurrencyPipeFormat($event); select_allf($event)"
|
|
9823
|
-
|
|
9824
9816
|
/>
|
|
9825
9817
|
</mat-form-field>
|
|
9826
9818
|
<mat-form-field
|