@fluxhub/fluxhub-lib 10.0.32 → 10.0.34
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 +24 -9
- 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/fhcheckbox.js +1 -1
- package/esm2015/lib/controls/fhcombobox.js +4 -6
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +4 -2
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +20 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +25 -10
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/wkf_header_bar.d.ts +1 -0
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +2 -0
- package/package.json +1 -1
|
@@ -6585,7 +6585,7 @@
|
|
|
6585
6585
|
this.smtr.nativeElement.focus();
|
|
6586
6586
|
};
|
|
6587
6587
|
FHComboboxComponent.prototype.reset = function () {
|
|
6588
|
-
console.log("reset");
|
|
6588
|
+
//console.log("reset");
|
|
6589
6589
|
this.selval = "-1";
|
|
6590
6590
|
this.valDef = "-1";
|
|
6591
6591
|
this.myData = new Array();
|
|
@@ -6654,11 +6654,9 @@
|
|
|
6654
6654
|
b_found = true;
|
|
6655
6655
|
});
|
|
6656
6656
|
if (!b_found) {
|
|
6657
|
-
console.log('Inserisco ',
|
|
6657
|
+
// console.log('Inserisco ',o);
|
|
6658
6658
|
this.myData.push(o);
|
|
6659
|
-
}
|
|
6660
|
-
else
|
|
6661
|
-
console.log('Esiste già ', o);
|
|
6659
|
+
} //else console.log('Esiste già ',o);
|
|
6662
6660
|
};
|
|
6663
6661
|
FHComboboxComponent.prototype.resetD = function (o) {
|
|
6664
6662
|
this.myData = o;
|
|
@@ -11879,6 +11877,7 @@
|
|
|
11879
11877
|
this.edit_button = false;
|
|
11880
11878
|
this.respingi_button = false;
|
|
11881
11879
|
this.procedi_button = true;
|
|
11880
|
+
this.force_save = false;
|
|
11882
11881
|
this.button_clicked = new i0.EventEmitter();
|
|
11883
11882
|
}
|
|
11884
11883
|
wkf_header_bar.prototype.back = function () {
|
|
@@ -11927,7 +11926,7 @@
|
|
|
11927
11926
|
wkf_header_bar.decorators = [
|
|
11928
11927
|
{ type: i0.Component, args: [{
|
|
11929
11928
|
selector: "wkf_header_bar",
|
|
11930
|
-
template: "\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"3px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n > \n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button
|
|
11929
|
+
template: "\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"3px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n > \n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n > \n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n > \n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\n </button>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n </div>\n \n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"3px\"\n >\n <div fxLayout=\"row\">\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n <mat-icon>info_outline</mat-icon> Info Doc</button\n > \n <button\n mat-flat-button\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon>Commenti</button\n > \n </div>\n <div fxLayout=\"row\">\n <button\n mat-flat-button\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon>Allegati</button\n > \n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div>\n </div>\n </div>\n "
|
|
11931
11930
|
},] }
|
|
11932
11931
|
];
|
|
11933
11932
|
wkf_header_bar.ctorParameters = function () { return [
|
|
@@ -11938,6 +11937,7 @@
|
|
|
11938
11937
|
edit_button: [{ type: i0.Input }],
|
|
11939
11938
|
respingi_button: [{ type: i0.Input }],
|
|
11940
11939
|
procedi_button: [{ type: i0.Input }],
|
|
11940
|
+
force_save: [{ type: i0.Input }],
|
|
11941
11941
|
button_clicked: [{ type: i0.Output }]
|
|
11942
11942
|
};
|
|
11943
11943
|
|
|
@@ -15865,6 +15865,11 @@
|
|
|
15865
15865
|
if (b_notif_av)
|
|
15866
15866
|
this.alert("Avanzamento effettuato", 0);
|
|
15867
15867
|
};
|
|
15868
|
+
dati_aggiuntivi.prototype.addOverrideLvlUser = function (lvlcfg) {
|
|
15869
|
+
if (this.override_livs == null)
|
|
15870
|
+
this.override_livs = [];
|
|
15871
|
+
this.override_livs.push(lvlcfg);
|
|
15872
|
+
};
|
|
15868
15873
|
dati_aggiuntivi.prototype.getLvlInfo = function (lvl) {
|
|
15869
15874
|
for (var i = 0; i < this.livs.length; i++)
|
|
15870
15875
|
if (lvl == this.livs[i].livello) {
|
|
@@ -16141,19 +16146,29 @@
|
|
|
16141
16146
|
};
|
|
16142
16147
|
dati_aggiuntivi.prototype.ok_load_document = function (o) {
|
|
16143
16148
|
var _this = this;
|
|
16144
|
-
this.m_obj = JSON.parse(JSON.stringify(o));
|
|
16149
|
+
this.m_obj = (JSON.parse(JSON.stringify(o)));
|
|
16145
16150
|
this.edit_b(false);
|
|
16146
16151
|
this.save_to_app_state();
|
|
16147
16152
|
var p = new QParam();
|
|
16148
16153
|
p.sql = "SELECT_LIVELLI_DOC";
|
|
16149
|
-
p.types = [
|
|
16154
|
+
p.types = ['string', 'string'];
|
|
16150
16155
|
p.values = [this.id_applicativo, this.id_documento];
|
|
16151
16156
|
this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
16152
16157
|
if (data != null)
|
|
16153
16158
|
if (data.result_msg == "OK") {
|
|
16159
|
+
if (_this.override_livs != null)
|
|
16160
|
+
if (data.result_data != null)
|
|
16161
|
+
for (var y = 0; y < _this.override_livs.length; y++)
|
|
16162
|
+
for (var i = 0; i < data.result_data.length; i++)
|
|
16163
|
+
if (data.result_data[i].id_Applicativo != null)
|
|
16164
|
+
if (data.result_data[i].id_Applicativo == _this.override_livs[y].id_Applicativo) {
|
|
16165
|
+
data.result_data[i].idp = _this.override_livs[y].idp;
|
|
16166
|
+
data.result_data[i].gruppo_parallelo = _this.override_livs[y].gruppo_parallelo;
|
|
16167
|
+
data.result_data[i].nc = _this.override_livs[y].nc;
|
|
16168
|
+
}
|
|
16154
16169
|
_this.ok_livelli_doc(data.result_data);
|
|
16155
16170
|
}
|
|
16156
|
-
}
|
|
16171
|
+
});
|
|
16157
16172
|
};
|
|
16158
16173
|
dati_aggiuntivi.prototype.ok_livelli_doc = function (r) {
|
|
16159
16174
|
this.livs = r;
|