@fluxhub/fluxhub-lib 10.0.31 → 10.0.33
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 +19 -19
- 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 +14 -12
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +4 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +16 -12
- 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/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();
|
|
@@ -6648,7 +6648,15 @@
|
|
|
6648
6648
|
});
|
|
6649
6649
|
};
|
|
6650
6650
|
FHComboboxComponent.prototype.add_option = function (o) {
|
|
6651
|
-
|
|
6651
|
+
var b_found = false;
|
|
6652
|
+
this.myData.map(function (v) {
|
|
6653
|
+
if (v.descrizione_valore == o.descrizione_valore || v.valore == o.valore)
|
|
6654
|
+
b_found = true;
|
|
6655
|
+
});
|
|
6656
|
+
if (!b_found) {
|
|
6657
|
+
// console.log('Inserisco ',o);
|
|
6658
|
+
this.myData.push(o);
|
|
6659
|
+
} //else console.log('Esiste già ',o);
|
|
6652
6660
|
};
|
|
6653
6661
|
FHComboboxComponent.prototype.resetD = function (o) {
|
|
6654
6662
|
this.myData = o;
|
|
@@ -6689,7 +6697,7 @@
|
|
|
6689
6697
|
}
|
|
6690
6698
|
}
|
|
6691
6699
|
if (!b_found)
|
|
6692
|
-
this.
|
|
6700
|
+
this.add_option({ valore: desc_val, descrizione_valore: desc_val });
|
|
6693
6701
|
this.selval = desc_val;
|
|
6694
6702
|
this.descri_val = desc_val;
|
|
6695
6703
|
}
|
|
@@ -6754,7 +6762,7 @@
|
|
|
6754
6762
|
}
|
|
6755
6763
|
}
|
|
6756
6764
|
if (!b_found)
|
|
6757
|
-
this.
|
|
6765
|
+
this.add_option({ valore: desc_val, descrizione_valore: desc_val });
|
|
6758
6766
|
this.selval = desc_val;
|
|
6759
6767
|
this.descri_val = desc_val;
|
|
6760
6768
|
}
|
|
@@ -6805,22 +6813,12 @@
|
|
|
6805
6813
|
FHComboboxComponent.prototype.set_options = function (s) {
|
|
6806
6814
|
this.myData = new Array();
|
|
6807
6815
|
var a = s.split("$");
|
|
6808
|
-
var
|
|
6809
|
-
o = new Object();
|
|
6810
|
-
av = a[i].split("|");
|
|
6816
|
+
for (var i = 0; i < a.length; i++) {
|
|
6817
|
+
var o = new Object();
|
|
6818
|
+
var av = a[i].split("|");
|
|
6811
6819
|
o.valore = av[1];
|
|
6812
6820
|
o.descrizione_valore = av[0];
|
|
6813
|
-
|
|
6814
|
-
this_1.myData.map(function (v) {
|
|
6815
|
-
if (v.descrizione_valore == o.descrizione_valore || v.valore == o.valore)
|
|
6816
|
-
b_found = true;
|
|
6817
|
-
});
|
|
6818
|
-
if (!b_found)
|
|
6819
|
-
this_1.myData.push(o);
|
|
6820
|
-
};
|
|
6821
|
-
var this_1 = this, o, av;
|
|
6822
|
-
for (var i = 0; i < a.length; i++) {
|
|
6823
|
-
_loop_1(i);
|
|
6821
|
+
this.add_option(o);
|
|
6824
6822
|
}
|
|
6825
6823
|
this.setByValue(this.valDef);
|
|
6826
6824
|
if (this.getValue() == "-1")
|
|
@@ -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
|
|