@fluxhub/fluxhub-lib 9.0.11 → 9.0.13
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 -20
- 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/fhconfirm.js +1 -3
- package/esm2015/lib/controls/fhcurrencyfield.js +9 -3
- package/esm2015/lib/controls/fhgrid.js +7 -17
- package/esm2015/lib/services/utility.service.js +2 -2
- package/esm5/lib/controls/fhconfirm.js +2 -2
- package/esm5/lib/controls/fhcurrencyfield.js +9 -3
- package/esm5/lib/controls/fhgrid.js +7 -17
- package/esm5/lib/services/utility.service.js +2 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +15 -21
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +16 -20
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -404,7 +404,7 @@ var UtilityService = /** @class */ (function () {
|
|
|
404
404
|
UtilityService_1 = UtilityService;
|
|
405
405
|
UtilityService.prototype.set_home_title = function (s) {
|
|
406
406
|
var _this = this;
|
|
407
|
-
setTimeout(function () { _this.app_s.getState().topnavTitle = s; },
|
|
407
|
+
setTimeout(function () { console.log('set_title->', s); _this.app_s.getState().topnavTitle = s; }, 100);
|
|
408
408
|
};
|
|
409
409
|
UtilityService.prototype.check_value_combo = function (obj_value, combo_value) {
|
|
410
410
|
if (combo_value != null)
|
|
@@ -1569,7 +1569,7 @@ var FHConfirmComponent = /** @class */ (function () {
|
|
|
1569
1569
|
]; };
|
|
1570
1570
|
FHConfirmComponent = __decorate([
|
|
1571
1571
|
Component({
|
|
1572
|
-
template: "\n
|
|
1572
|
+
template: "\n\n <h1 mat-dialog-title>{{title}}</h1>\n <div mat-dialog-content style=\"font-size:12px\">{{msg}}</div>\n <div mat-dialog-actions>\n <button mat-button (click)=\"dialogRef.close(true)\" color=\"primary\">{{confirm_mgs}}</button>\n <button mat-button (click)=\"dialogRef.close(false)\" color=\"warn\">{{annulla_mgs}}</button>\n </div>\n ",
|
|
1573
1573
|
styles: ["\n "]
|
|
1574
1574
|
}),
|
|
1575
1575
|
__metadata("design:paramtypes", [MatDialogRef, AppService])
|
|
@@ -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) {
|
|
@@ -8085,7 +8078,10 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8085
8078
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
|
|
8086
8079
|
if (integer == '')
|
|
8087
8080
|
integer = '0';
|
|
8088
|
-
|
|
8081
|
+
if (fractionSize > 0)
|
|
8082
|
+
return integer + fraction;
|
|
8083
|
+
else
|
|
8084
|
+
return integer;
|
|
8089
8085
|
};
|
|
8090
8086
|
FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
|
|
8091
8087
|
try {
|