@fluxhub/fluxhub-lib 10.0.62 → 10.0.64

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.
@@ -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
  ];
@@ -4189,6 +4192,8 @@
4189
4192
  }
4190
4193
  _this.ref_allegato();
4191
4194
  });
4195
+ if (this.ruolo_supervisore != "[ZZZ_DIS_CC]")
4196
+ this.access_control = true;
4192
4197
  };
4193
4198
  FHUploadPanelComponent.prototype.init = function (p_app, p_k, p_tipo, programma_da_eseguire) {
4194
4199
  if (p_tipo === void 0) { p_tipo = ""; }
@@ -11905,6 +11910,7 @@
11905
11910
  this.respingi_button = false;
11906
11911
  this.procedi_button = true;
11907
11912
  this.force_save = false;
11913
+ this.admin_role = '[ZZZ_DIS_CC]';
11908
11914
  this.button_clicked = new i0.EventEmitter();
11909
11915
  }
11910
11916
  wkf_header_bar.prototype.back = function () {
@@ -11940,7 +11946,7 @@
11940
11946
  wkf_header_bar.prototype.open_upload = function () {
11941
11947
  this.button_clicked.emit('open_upload');
11942
11948
  if (this.dt_agg != null)
11943
- this.dt_agg.open_upload();
11949
+ this.dt_agg.open_upload(this.admin_role);
11944
11950
  };
11945
11951
  wkf_header_bar.prototype.open_wkf = function () {
11946
11952
  this.button_clicked.emit('open_wkf');
@@ -11965,6 +11971,7 @@
11965
11971
  respingi_button: [{ type: i0.Input }],
11966
11972
  procedi_button: [{ type: i0.Input }],
11967
11973
  force_save: [{ type: i0.Input }],
11974
+ admin_role: [{ type: i0.Input }],
11968
11975
  button_clicked: [{ type: i0.Output }]
11969
11976
  };
11970
11977
 
@@ -16023,12 +16030,13 @@
16023
16030
  _this.r_count();
16024
16031
  });
16025
16032
  };
16026
- dati_aggiuntivi.prototype.open_upload = function (sovra_path) {
16033
+ dati_aggiuntivi.prototype.open_upload = function (sovra_path, admin_role) {
16027
16034
  var _this = this;
16028
16035
  if (sovra_path === void 0) { sovra_path = ""; }
16036
+ if (admin_role === void 0) { admin_role = "[ZZZ_DIS_CC]"; }
16029
16037
  var dialogRef = this.m_dialog.open(win_uploads, {
16030
16038
  disableClose: true,
16031
- width: "90%",
16039
+ width: "90%", data: { admin_role: admin_role }
16032
16040
  });
16033
16041
  setTimeout(function () {
16034
16042
  dialogRef.componentInstance.sovrascrivi_path = sovra_path;