@fluxhub/fluxhub-lib 9.0.12 → 9.0.14
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 +16 -18
- 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 +11 -3
- package/esm2015/lib/controls/fhgrid.js +7 -17
- package/esm5/lib/controls/fhcurrencyfield.js +11 -3
- package/esm5/lib/controls/fhgrid.js +7 -17
- package/fesm2015/fluxhub-fluxhub-lib.js +16 -18
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +16 -18
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -5823,22 +5823,12 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
5823
5823
|
});
|
|
5824
5824
|
var cmds = [];
|
|
5825
5825
|
var str_fields = "";
|
|
5826
|
-
var p_col = this.gridOptions.columnApi.
|
|
5827
|
-
for (var
|
|
5828
|
-
if (
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
if (this.columnDefs[i].headerName != '')
|
|
5833
|
-
for (var j = 0; j < p_col.length; j++) {
|
|
5834
|
-
if (this.columnDefs[i].field == p_col[j].colId) {
|
|
5835
|
-
if (!p_col[j].hide) {
|
|
5836
|
-
if (str_fields != '')
|
|
5837
|
-
str_fields += ',';
|
|
5838
|
-
str_fields += '[' + this.columnDefs[i].field + '] [' + this.columnDefs[i].headerName + ']';
|
|
5839
|
-
}
|
|
5840
|
-
}
|
|
5841
|
-
}
|
|
5826
|
+
var p_col = this.gridOptions.columnApi.getAllDisplayedColumns();
|
|
5827
|
+
for (var j = 0; j < p_col.length; j++) {
|
|
5828
|
+
if (str_fields != '')
|
|
5829
|
+
str_fields += ',';
|
|
5830
|
+
str_fields += '[' + p_col[j].getColDef().field + '] [' + p_col[j].getColDef().headerName + ']';
|
|
5831
|
+
}
|
|
5842
5832
|
if (this.fields.indexOf('DISTINCT') != -1)
|
|
5843
5833
|
str_fields = 'DISTINCT ' + str_fields;
|
|
5844
5834
|
cmds.push(this.officeService.operation("GB_XLS_APRI", "tpl_report.xlsx", "" + this.uiid_stampa + ".xlsx", this.xxopx++));
|
|
@@ -8038,7 +8028,9 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8038
8028
|
FHCurrencyFieldComponent.prototype.chg = function () {
|
|
8039
8029
|
var _this = this;
|
|
8040
8030
|
setTimeout(function () {
|
|
8031
|
+
console.log(' chg() -> ', _this.formattedAmount);
|
|
8041
8032
|
_this.value = parseFloat(_this.formattedAmount.split('.').join('').split(',').join('.'));
|
|
8033
|
+
console.log('fine chg value -> ', _this.value);
|
|
8042
8034
|
_this.onChange(_this.value);
|
|
8043
8035
|
}, 50);
|
|
8044
8036
|
};
|
|
@@ -8048,8 +8040,9 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8048
8040
|
// if (value !== this.innerValue) {
|
|
8049
8041
|
this.innerValue = value;
|
|
8050
8042
|
this.value = value;
|
|
8043
|
+
console.log(' writeValue() -> ', this.value);
|
|
8051
8044
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8052
|
-
|
|
8045
|
+
console.log('fine writeValue -> ', this.formattedAmount);
|
|
8053
8046
|
this.onChange(this.value);
|
|
8054
8047
|
};
|
|
8055
8048
|
FHCurrencyFieldComponent.prototype.registerOnChange = function (fn) {
|
|
@@ -8078,6 +8071,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8078
8071
|
};
|
|
8079
8072
|
FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
|
|
8080
8073
|
if (fractionSize === void 0) { fractionSize = 2; }
|
|
8074
|
+
console.log('ini trasform() -> ', value, fractionSize);
|
|
8081
8075
|
var _a = __read((value || "").toString().split('.'), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
|
|
8082
8076
|
fraction = fractionSize > 0
|
|
8083
8077
|
? ',' + (fraction + '000000').substring(0, fractionSize)
|
|
@@ -8085,7 +8079,11 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8085
8079
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
|
|
8086
8080
|
if (integer == '')
|
|
8087
8081
|
integer = '0';
|
|
8088
|
-
|
|
8082
|
+
console.log('fine transform() -> ', value, fractionSize);
|
|
8083
|
+
if (fractionSize > 0)
|
|
8084
|
+
return integer + fraction;
|
|
8085
|
+
else
|
|
8086
|
+
return integer;
|
|
8089
8087
|
};
|
|
8090
8088
|
FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
|
|
8091
8089
|
try {
|