@fluxhub/fluxhub-lib 10.0.61 → 10.0.63
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 +11 -5
- 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/fhupload.js +3 -3
- package/esm2015/lib/wkf_engine/win_uploads.js +5 -1
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +4 -2
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +3 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +11 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/win_uploads.d.ts +1 -0
- package/lib/wkf_engine/wkf_header_bar.d.ts +1 -0
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2632,12 +2632,15 @@
|
|
|
2632
2632
|
this.App = "";
|
|
2633
2633
|
this.K = "";
|
|
2634
2634
|
this.title = "ALLEGATI";
|
|
2635
|
+
this.admin_role = '[ZZZ_DIS_CC]';
|
|
2635
2636
|
this.sovrascrivi_path = "";
|
|
2636
2637
|
if (data != null) {
|
|
2637
2638
|
if (data.App != null)
|
|
2638
2639
|
this.App = data.App;
|
|
2639
2640
|
if (data.K != null)
|
|
2640
2641
|
this.K = data.K;
|
|
2642
|
+
if (data.admin_role != null)
|
|
2643
|
+
this.admin_role = data.admin_role;
|
|
2641
2644
|
}
|
|
2642
2645
|
}
|
|
2643
2646
|
win_uploads.prototype.close = function () {
|
|
@@ -2663,7 +2666,7 @@
|
|
|
2663
2666
|
win_uploads.decorators = [
|
|
2664
2667
|
{ type: i0.Component, args: [{
|
|
2665
2668
|
selector: "wkf_win_upload",
|
|
2666
|
-
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n <mat-toolbar color=\"primary\" style=\"width:90%;\"\n ><div fxFlex=\"20\">{{ title }}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\"></div>\n </mat-toolbar>\n <mat-dialog-content style=\"font-size:12px\">\n <FHUploadPanel\n [enabled]=\"enabled\"\n #upc\n [access_control]=\"access_control\"\n [sovrascrivi_path]=\"sovrascrivi_path\"\n ></FHUploadPanel>\n </mat-dialog-content>\n <br /><br />\n <div style=\"width:100%;text-align:center;\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n CHIUDI\n </button>\n </div>\n ",
|
|
2669
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n <mat-toolbar color=\"primary\" style=\"width:90%;\"\n ><div fxFlex=\"20\">{{ title }}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\"></div>\n </mat-toolbar>\n <mat-dialog-content style=\"font-size:12px\">\n <FHUploadPanel\n [enabled]=\"enabled\"\n #upc\n [access_control]=\"access_control\"\n [sovrascrivi_path]=\"sovrascrivi_path\"\n [ruolo_supervisore]=\"admin_role\"\n ></FHUploadPanel>\n </mat-dialog-content>\n <br /><br />\n <div style=\"width:100%;text-align:center;\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n CHIUDI\n </button>\n </div>\n ",
|
|
2667
2670
|
styles: [""]
|
|
2668
2671
|
},] }
|
|
2669
2672
|
];
|
|
@@ -4652,7 +4655,7 @@
|
|
|
4652
4655
|
FHUploadComponent.decorators = [
|
|
4653
4656
|
{ type: i0.Component, args: [{
|
|
4654
4657
|
selector: "FHUpload",
|
|
4655
|
-
template: "\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div\n [hidden]=\"!(enabled && !loading)\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n >\n <div\n [hidden]=\"!multi_list\"\n style=\"width:380px\"\n fxLayoutAlign=\"start center\"\n >\n <FHComboBox\n [sql]=\"tipo\"\n #cmb_tipo\n [init_fill]=\"false\"\n label=\"Tipologia\"\n ></FHComboBox\n > \n </div>\n <mat-form-field\n [hidden]=\"!show_descri\"\n style=\"width: 100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }} {{ fixed_label }}</mat-label>\n <input\n matInput\n type=\"text\"\n name=\"descrizione\"\n [(ngModel)]=\"descrizione\"\n />\n </mat-form-field>\n \n <!-- <div\n style=\"width:140px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start start\"\n (click)=\"call_up()\"\n >\n <input\n type=\"file\"\n multiple\n ng2FileSelect\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ id_component }}\" style=\"width:210px\"\n ><svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"17\"\n viewBox=\"0 0 20 17\"\n >\n <path\n d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"\n /></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n -->\n <div class=\"my-drop-zone\" style=\"width:130px\" fxLayout=\"row\" [matTooltip]=\"hasBaseDropZoneOver ? lascia_il_file : trascina_il_file\" fxLayoutAlign=\"center start\">\n <label for=\"uploader-input\" ng2FileDrop style=\"font-weight:bold\"\n [ngClass]=\"{'over-drop-zone': hasBaseDropZoneOver}\" for=\"file-fh{{ id_component }}\"\n (onFileDrop)=\"onFileDrop($event)\"\n (fileOver)=\"fileOverBase($event)\" [uploader]=\"uploader\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <mat-icon>{{!hasBaseDropZoneOver?'backup':'thumb_up'}}</mat-icon>\n\n <span style=\"font-size: 14px\"> Upload</span></div></label></div>\n <input type=\"file\"\n ng2FileSelect #select_file\n [multiple]=\"false\"\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n (onFileSelected)=\"onFileDrop($event)\"\n id=\"uploader-input\" style=\"display:none\"/>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n \n <button\n mat-raised-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;font-weight:bold\" color=\"accent\"\n\n >\n {{ label_b }}</button\n > \n <button\n mat-raised-button\n *ngIf=\"id != null && allow_delete\"\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <label>{{ label }}:</label>\n <div *ngIf=\"label != descrizione\">{{ descrizione }}</div>\n <button\n mat-raised-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;background-color: #F5F5F5\"\n >\n {{ label_b }}\n </button>\n </div>\n ",
|
|
4658
|
+
template: "\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div\n [hidden]=\"!(enabled && !loading)\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n >\n <div\n [hidden]=\"!multi_list\"\n style=\"width:380px\"\n fxLayoutAlign=\"start center\"\n >\n <FHComboBox\n [sql]=\"tipo\"\n #cmb_tipo\n [init_fill]=\"false\"\n label=\"Tipologia\"\n ></FHComboBox\n > \n </div>\n <mat-form-field\n [hidden]=\"!show_descri\"\n style=\"width: 100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }} {{ fixed_label }}</mat-label>\n <input\n matInput\n type=\"text\"\n name=\"descrizione\"\n [(ngModel)]=\"descrizione\"\n />\n </mat-form-field>\n \n <!-- <div\n style=\"width:140px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start start\"\n (click)=\"call_up()\"\n >\n <input\n type=\"file\"\n multiple\n ng2FileSelect\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ id_component }}\" style=\"width:210px\"\n ><svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"17\"\n viewBox=\"0 0 20 17\"\n >\n <path\n d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"\n /></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n -->\n <div class=\"my-drop-zone\" style=\"width:130px\" fxLayout=\"row\" [matTooltip]=\"hasBaseDropZoneOver ? lascia_il_file : trascina_il_file\" fxLayoutAlign=\"center start\">\n <label for=\"uploader-input\" ng2FileDrop style=\"font-weight:bold\"\n [ngClass]=\"{'over-drop-zone': hasBaseDropZoneOver}\" for=\"file-fh{{ id_component }}\"\n (onFileDrop)=\"onFileDrop($event)\" (click)=\"call_up()\"\n (fileOver)=\"fileOverBase($event)\" [uploader]=\"uploader\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <mat-icon>{{!hasBaseDropZoneOver?'backup':'thumb_up'}}</mat-icon>\n\n <span style=\"font-size: 14px\"> Upload</span></div></label></div>\n <input type=\"file\"\n ng2FileSelect #select_file\n [multiple]=\"false\"\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\" (click)=\"call_up()\"\n (onFileSelected)=\"onFileDrop($event)\"\n id=\"uploader-input\" style=\"display:none\"/>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n \n <button\n mat-raised-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;font-weight:bold\" color=\"accent\"\n\n >\n {{ label_b }}</button\n > \n <button\n mat-raised-button\n *ngIf=\"id != null && allow_delete\"\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <label>{{ label }}:</label>\n <div *ngIf=\"label != descrizione\">{{ descrizione }}</div>\n <button\n mat-raised-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;background-color: #F5F5F5\"\n >\n {{ label_b }}\n </button>\n </div>\n ",
|
|
4656
4659
|
styles: ["\n .fileLabel{\n display: inline-block;\n padding: .7em .4em;\n font-size: 13px;\n color: #525252;\n background-color: #e6e6e6;\n margin: 0 .2em;\n border-radius: 5px;\n }\n",
|
|
4657
4660
|
"\n .my-drop-zone { border: dotted 3px lightgray;height:35px }\n\n", "\n .nv-file-over { border: dotted 3px red; } /* Default class applied to drop zones on over */\n ", "\n .another-file-over-class { border: dotted 3px green; }\n"]
|
|
4658
4661
|
},] }
|
|
@@ -11905,6 +11908,7 @@
|
|
|
11905
11908
|
this.respingi_button = false;
|
|
11906
11909
|
this.procedi_button = true;
|
|
11907
11910
|
this.force_save = false;
|
|
11911
|
+
this.admin_role = '[ZZZ_DIS_CC]';
|
|
11908
11912
|
this.button_clicked = new i0.EventEmitter();
|
|
11909
11913
|
}
|
|
11910
11914
|
wkf_header_bar.prototype.back = function () {
|
|
@@ -11940,7 +11944,7 @@
|
|
|
11940
11944
|
wkf_header_bar.prototype.open_upload = function () {
|
|
11941
11945
|
this.button_clicked.emit('open_upload');
|
|
11942
11946
|
if (this.dt_agg != null)
|
|
11943
|
-
this.dt_agg.open_upload();
|
|
11947
|
+
this.dt_agg.open_upload(this.admin_role);
|
|
11944
11948
|
};
|
|
11945
11949
|
wkf_header_bar.prototype.open_wkf = function () {
|
|
11946
11950
|
this.button_clicked.emit('open_wkf');
|
|
@@ -11965,6 +11969,7 @@
|
|
|
11965
11969
|
respingi_button: [{ type: i0.Input }],
|
|
11966
11970
|
procedi_button: [{ type: i0.Input }],
|
|
11967
11971
|
force_save: [{ type: i0.Input }],
|
|
11972
|
+
admin_role: [{ type: i0.Input }],
|
|
11968
11973
|
button_clicked: [{ type: i0.Output }]
|
|
11969
11974
|
};
|
|
11970
11975
|
|
|
@@ -16023,12 +16028,13 @@
|
|
|
16023
16028
|
_this.r_count();
|
|
16024
16029
|
});
|
|
16025
16030
|
};
|
|
16026
|
-
dati_aggiuntivi.prototype.open_upload = function (sovra_path) {
|
|
16031
|
+
dati_aggiuntivi.prototype.open_upload = function (sovra_path, admin_role) {
|
|
16027
16032
|
var _this = this;
|
|
16028
16033
|
if (sovra_path === void 0) { sovra_path = ""; }
|
|
16034
|
+
if (admin_role === void 0) { admin_role = "[ZZZ_DIS_CC]"; }
|
|
16029
16035
|
var dialogRef = this.m_dialog.open(win_uploads, {
|
|
16030
16036
|
disableClose: true,
|
|
16031
|
-
width: "90%",
|
|
16037
|
+
width: "90%", data: { admin_role: admin_role }
|
|
16032
16038
|
});
|
|
16033
16039
|
setTimeout(function () {
|
|
16034
16040
|
dialogRef.componentInstance.sovrascrivi_path = sovra_path;
|