@fluxhub/fluxhub-lib 9.0.146 → 9.0.148
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 +84 -64
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhautocomplete.js +5 -1
- package/esm2015/lib/controls/fhgrid.js +1 -2
- package/esm2015/lib/controls/fhupload.js +7 -5
- package/esm2015/lib/controls/fhupload_s3.js +7 -5
- package/esm2015/lib/services/doquery.service.js +1 -3
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +23 -34
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +47 -22
- package/esm5/lib/controls/fhautocomplete.js +6 -1
- package/esm5/lib/controls/fhgrid.js +1 -2
- package/esm5/lib/controls/fhupload.js +7 -5
- package/esm5/lib/controls/fhupload_s3.js +7 -5
- package/esm5/lib/services/doquery.service.js +1 -3
- package/esm5/lib/wkf_engine/wkf_header_bar.js +23 -34
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +47 -22
- package/fesm2015/fluxhub-fluxhub-lib.js +84 -65
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +84 -64
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload.d.ts +1 -0
- package/lib/controls/fhupload_s3.d.ts +1 -0
- package/lib/wkf_engine/wkf_header_bar.d.ts +2 -1
- package/package.json +1 -1
|
@@ -796,8 +796,6 @@ var QueryService = /** @class */ (function () {
|
|
|
796
796
|
}
|
|
797
797
|
if (queryp.types[i] == "string")
|
|
798
798
|
queryp.values[i] = "" + queryp.values[i];
|
|
799
|
-
if (queryp.types[i] == "date")
|
|
800
|
-
queryp.values[i] = this.uti_s.sql_date(queryp.values[i]);
|
|
801
799
|
if (queryp.types[i] == "date") {
|
|
802
800
|
queryp.values[i] = this.uti_s.sql_date(queryp.values[i]);
|
|
803
801
|
if (queryp.values[i].split("0").join("") == "NaN-NaN-NaN")
|
|
@@ -1746,6 +1744,7 @@ var FHUploadS3Component = /** @class */ (function () {
|
|
|
1746
1744
|
maxFileSize: 500 * 1024 * 1024,
|
|
1747
1745
|
});
|
|
1748
1746
|
this.id_component = '';
|
|
1747
|
+
this.last_result = {};
|
|
1749
1748
|
this.id = null;
|
|
1750
1749
|
this.p_cod_doc = "";
|
|
1751
1750
|
this.p_section = "";
|
|
@@ -1764,12 +1763,13 @@ var FHUploadS3Component = /** @class */ (function () {
|
|
|
1764
1763
|
progressBar: true,
|
|
1765
1764
|
});
|
|
1766
1765
|
_this.ref_allegato();
|
|
1767
|
-
_this.
|
|
1766
|
+
_this.last_result = {
|
|
1768
1767
|
item: item,
|
|
1769
1768
|
response: response,
|
|
1770
1769
|
status: status,
|
|
1771
|
-
header: header
|
|
1772
|
-
}
|
|
1770
|
+
header: header
|
|
1771
|
+
};
|
|
1772
|
+
_this.change.emit(_this.last_result);
|
|
1773
1773
|
}
|
|
1774
1774
|
};
|
|
1775
1775
|
}
|
|
@@ -1845,7 +1845,7 @@ var FHUploadS3Component = /** @class */ (function () {
|
|
|
1845
1845
|
_this.uploader.setOptions(uo);
|
|
1846
1846
|
_this.uploader.onCompleteAll = function () {
|
|
1847
1847
|
_this.loading = false;
|
|
1848
|
-
_this.upload_ended.emit();
|
|
1848
|
+
_this.upload_ended.emit(_this.last_result);
|
|
1849
1849
|
if (_this.dialogRef != null)
|
|
1850
1850
|
if (_this.dialogRef.componentInstance != null) {
|
|
1851
1851
|
_this.dialogRef.componentInstance.update_progess(100);
|
|
@@ -3076,6 +3076,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3076
3076
|
this.b_edit_loaded = false;
|
|
3077
3077
|
this.tipo = "";
|
|
3078
3078
|
this.b_ini = false;
|
|
3079
|
+
this.last_result = {};
|
|
3079
3080
|
this.uploader = new FileUploader({
|
|
3080
3081
|
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT,
|
|
3081
3082
|
maxFileSize: 500 * 1024 * 1024,
|
|
@@ -3093,12 +3094,13 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3093
3094
|
progressBar: true,
|
|
3094
3095
|
});
|
|
3095
3096
|
_this.ref_allegato();
|
|
3096
|
-
_this.
|
|
3097
|
+
_this.last_result = {
|
|
3097
3098
|
item: item,
|
|
3098
3099
|
response: response,
|
|
3099
3100
|
status: status,
|
|
3100
|
-
header: header
|
|
3101
|
-
}
|
|
3101
|
+
header: header
|
|
3102
|
+
};
|
|
3103
|
+
_this.change.emit(_this.last_result);
|
|
3102
3104
|
}
|
|
3103
3105
|
};
|
|
3104
3106
|
}
|
|
@@ -3174,7 +3176,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
3174
3176
|
_this.uploader.setOptions(uo);
|
|
3175
3177
|
_this.uploader.onCompleteAll = function () {
|
|
3176
3178
|
_this.loading = false;
|
|
3177
|
-
_this.upload_ended.emit();
|
|
3179
|
+
_this.upload_ended.emit(_this.last_result);
|
|
3178
3180
|
if (_this.dialogRef != null)
|
|
3179
3181
|
if (_this.dialogRef.componentInstance != null) {
|
|
3180
3182
|
_this.dialogRef.componentInstance.update_progess(100);
|
|
@@ -6378,7 +6380,6 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6378
6380
|
};
|
|
6379
6381
|
FHGridComponent.prototype.calcola_filtro = function (obj_filtro, filter_v, key, add_end) {
|
|
6380
6382
|
if (add_end === void 0) { add_end = true; }
|
|
6381
|
-
console.log("obj_filtro ", obj_filtro);
|
|
6382
6383
|
var b_filter = false;
|
|
6383
6384
|
if (obj_filtro.type != null) {
|
|
6384
6385
|
if (obj_filtro.filter != null) {
|
|
@@ -8710,6 +8711,7 @@ var FHAutoCompleteComponent = /** @class */ (function () {
|
|
|
8710
8711
|
}
|
|
8711
8712
|
};
|
|
8712
8713
|
FHAutoCompleteComponent.prototype.setByValue = function (desc_val) {
|
|
8714
|
+
var _this = this;
|
|
8713
8715
|
this.valDef = desc_val;
|
|
8714
8716
|
this.selval = desc_val;
|
|
8715
8717
|
if (this.myData != null) {
|
|
@@ -8727,6 +8729,10 @@ var FHAutoCompleteComponent = /** @class */ (function () {
|
|
|
8727
8729
|
if (!b_found && this.only_from_list)
|
|
8728
8730
|
this.resetValue(false);
|
|
8729
8731
|
}
|
|
8732
|
+
else {
|
|
8733
|
+
setTimeout(function () { _this.setByValue(desc_val); }, 1000);
|
|
8734
|
+
return;
|
|
8735
|
+
}
|
|
8730
8736
|
if (!this.only_from_list) {
|
|
8731
8737
|
this.sItem = this.selval;
|
|
8732
8738
|
}
|
|
@@ -14035,6 +14041,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14035
14041
|
this.b_edit_before = this.b_edit;
|
|
14036
14042
|
this.edit_b(false);
|
|
14037
14043
|
var arr = this.getfieldvalues();
|
|
14044
|
+
// console.log('arr',arr);
|
|
14038
14045
|
var p = new QParam();
|
|
14039
14046
|
p.sql = "insert_aggiuntivi";
|
|
14040
14047
|
p.types = ["string", "string"];
|
|
@@ -14043,33 +14050,57 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
14043
14050
|
for (var i = 0; i < arr.length; i++) {
|
|
14044
14051
|
p.types.push(arr[i].types);
|
|
14045
14052
|
p.names.push(arr[i].names);
|
|
14046
|
-
if (arr[i].values
|
|
14053
|
+
if (arr[i].values == null) {
|
|
14054
|
+
console.log('NULL', arr[i].names, arr[i].values);
|
|
14055
|
+
arr[i].values = "dbnull";
|
|
14056
|
+
}
|
|
14057
|
+
else {
|
|
14058
|
+
console.log('NO NULL', arr[i].names, arr[i].values);
|
|
14047
14059
|
if (arr[i].types == "boolean")
|
|
14048
14060
|
if (arr[i].values)
|
|
14049
|
-
|
|
14050
|
-
else
|
|
14051
|
-
p.values.push("0");
|
|
14052
|
-
if (arr[i].types == "int")
|
|
14053
|
-
if (isNaN(arr[i].values))
|
|
14054
|
-
p.values.push("0");
|
|
14061
|
+
arr[i].values = "1";
|
|
14055
14062
|
else
|
|
14056
|
-
|
|
14063
|
+
arr[i].values = "0";
|
|
14064
|
+
if (arr[i].types == "int") {
|
|
14065
|
+
if (arr[i].values + "" == "")
|
|
14066
|
+
arr[i].values = "dbnull";
|
|
14067
|
+
else {
|
|
14068
|
+
if (isNaN(arr[i].values))
|
|
14069
|
+
arr[i].values = "0";
|
|
14070
|
+
else
|
|
14071
|
+
arr[i].values = "" + arr[i].values;
|
|
14072
|
+
}
|
|
14073
|
+
}
|
|
14057
14074
|
if (arr[i].types == "string")
|
|
14058
|
-
|
|
14059
|
-
if (arr[i].types == "date")
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14063
|
-
|
|
14064
|
-
|
|
14065
|
-
|
|
14066
|
-
|
|
14067
|
-
|
|
14068
|
-
|
|
14069
|
-
|
|
14070
|
-
|
|
14075
|
+
arr[i].values = "" + arr[i].values;
|
|
14076
|
+
if (arr[i].types == "date") {
|
|
14077
|
+
arr[i].values = this.uti_s.sql_date(arr[i].values);
|
|
14078
|
+
if (arr[i].values.split("0").join("") == "NaN-NaN-NaN")
|
|
14079
|
+
arr[i].values = "dbnull";
|
|
14080
|
+
}
|
|
14081
|
+
if (arr[i].types == "datetime") {
|
|
14082
|
+
console.log('typeof ', typeof (arr[i].values), arr[i].values);
|
|
14083
|
+
arr[i].values = this.uti_s.sql_date_time(arr[i].values);
|
|
14084
|
+
console.log('arr[i].values ', arr[i].values);
|
|
14085
|
+
if (arr[i].values.split("0").join("") == "NaN-NaN-NaN NaN:NaN")
|
|
14086
|
+
arr[i].values = "dbnull";
|
|
14087
|
+
}
|
|
14088
|
+
if (arr[i].types == "string" && arr[i].values == null)
|
|
14089
|
+
arr[i].values = "dbnull";
|
|
14090
|
+
if (arr[i].types == "decimal") {
|
|
14091
|
+
if (arr[i].values + "" == "")
|
|
14092
|
+
arr[i].values = "dbnull";
|
|
14093
|
+
else {
|
|
14094
|
+
if (isNaN(arr[i].values))
|
|
14095
|
+
arr[i].values = "0";
|
|
14096
|
+
else
|
|
14097
|
+
arr[i].values = "" + arr[i].values;
|
|
14098
|
+
}
|
|
14099
|
+
}
|
|
14071
14100
|
}
|
|
14101
|
+
p.values.push(arr[i].values);
|
|
14072
14102
|
}
|
|
14103
|
+
// console.log('p',p);
|
|
14073
14104
|
this.m_wkf.doQuery(p).subscribe(function (data) {
|
|
14074
14105
|
if (data != null)
|
|
14075
14106
|
if (data.result_msg == "OK") {
|
|
@@ -14748,39 +14779,24 @@ var wkf_header_bar = /** @class */ (function () {
|
|
|
14748
14779
|
this.edit_button = false;
|
|
14749
14780
|
this.respingi_button = false;
|
|
14750
14781
|
this.procedi_button = true;
|
|
14782
|
+
this.button_clicked = new EventEmitter();
|
|
14751
14783
|
}
|
|
14752
|
-
wkf_header_bar.prototype.back = function () {
|
|
14753
|
-
|
|
14754
|
-
|
|
14755
|
-
|
|
14756
|
-
wkf_header_bar.prototype.
|
|
14757
|
-
|
|
14758
|
-
|
|
14759
|
-
|
|
14760
|
-
wkf_header_bar.prototype.
|
|
14761
|
-
|
|
14762
|
-
|
|
14763
|
-
|
|
14764
|
-
wkf_header_bar.prototype.
|
|
14765
|
-
|
|
14766
|
-
|
|
14767
|
-
|
|
14768
|
-
wkf_header_bar.prototype.open_info = function () {
|
|
14769
|
-
if (this.dt_agg != null)
|
|
14770
|
-
this.dt_agg.open_info();
|
|
14771
|
-
};
|
|
14772
|
-
wkf_header_bar.prototype.open_commenti = function () {
|
|
14773
|
-
if (this.dt_agg != null)
|
|
14774
|
-
this.dt_agg.open_commenti();
|
|
14775
|
-
};
|
|
14776
|
-
wkf_header_bar.prototype.open_upload = function () {
|
|
14777
|
-
if (this.dt_agg != null)
|
|
14778
|
-
this.dt_agg.open_upload();
|
|
14779
|
-
};
|
|
14780
|
-
wkf_header_bar.prototype.open_wkf = function () {
|
|
14781
|
-
if (this.dt_agg != null)
|
|
14782
|
-
this.dt_agg.open_wkf();
|
|
14783
|
-
};
|
|
14784
|
+
wkf_header_bar.prototype.back = function () { this.button_clicked.emit('back'); if (this.dt_agg != null)
|
|
14785
|
+
this.dt_agg.back(this.edit_button); };
|
|
14786
|
+
wkf_header_bar.prototype.evt_salv = function () { this.button_clicked.emit('evt_salv'); if (this.dt_agg != null)
|
|
14787
|
+
this.dt_agg.evt_salv(); };
|
|
14788
|
+
wkf_header_bar.prototype.respingi = function () { this.button_clicked.emit('respingi'); if (this.dt_agg != null)
|
|
14789
|
+
this.dt_agg.respingi(); };
|
|
14790
|
+
wkf_header_bar.prototype.procedi = function () { this.button_clicked.emit('procedi'); if (this.dt_agg != null)
|
|
14791
|
+
this.dt_agg.procedi(); };
|
|
14792
|
+
wkf_header_bar.prototype.open_info = function () { this.button_clicked.emit('open_info'); if (this.dt_agg != null)
|
|
14793
|
+
this.dt_agg.open_info(); };
|
|
14794
|
+
wkf_header_bar.prototype.open_commenti = function () { this.button_clicked.emit('open_commenti'); if (this.dt_agg != null)
|
|
14795
|
+
this.dt_agg.open_commenti(); };
|
|
14796
|
+
wkf_header_bar.prototype.open_upload = function () { this.button_clicked.emit('open_upload'); if (this.dt_agg != null)
|
|
14797
|
+
this.dt_agg.open_upload(); };
|
|
14798
|
+
wkf_header_bar.prototype.open_wkf = function () { this.button_clicked.emit('open_wkf'); if (this.dt_agg != null)
|
|
14799
|
+
this.dt_agg.open_wkf(); };
|
|
14784
14800
|
wkf_header_bar.prototype.ngAfterViewInit = function () { };
|
|
14785
14801
|
wkf_header_bar.ctorParameters = function () { return [
|
|
14786
14802
|
{ type: AppService }
|
|
@@ -14801,6 +14817,10 @@ var wkf_header_bar = /** @class */ (function () {
|
|
|
14801
14817
|
Input(),
|
|
14802
14818
|
__metadata("design:type", Boolean)
|
|
14803
14819
|
], wkf_header_bar.prototype, "procedi_button", void 0);
|
|
14820
|
+
__decorate([
|
|
14821
|
+
Output(),
|
|
14822
|
+
__metadata("design:type", EventEmitter)
|
|
14823
|
+
], wkf_header_bar.prototype, "button_clicked", void 0);
|
|
14804
14824
|
wkf_header_bar = __decorate([
|
|
14805
14825
|
Component({
|
|
14806
14826
|
selector: "wkf_header_bar",
|