@fluxhub/fluxhub-lib 1.0.313 → 1.0.315

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.
@@ -3046,15 +3046,17 @@
3046
3046
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3047
3047
  */
3048
3048
  var FHUploadPanelComponent = /** @class */ (function () {
3049
- function FHUploadPanelComponent(_appservice, _dataService, toastr, dialog, auth_s) {
3049
+ function FHUploadPanelComponent(_appservice, _dataService, toastr, dialog, auth_s, uti) {
3050
3050
  this._appservice = _appservice;
3051
3051
  this._dataService = _dataService;
3052
3052
  this.toastr = toastr;
3053
3053
  this.dialog = dialog;
3054
3054
  this.auth_s = auth_s;
3055
+ this.uti = uti;
3055
3056
  this.enabled = true;
3056
3057
  this.label = '';
3057
3058
  this.sovrascrivi_path = '';
3059
+ this.ruolo_supervisore = '[ZZZ_DIS_CC]';
3058
3060
  this.access_control = false;
3059
3061
  this.change = new i0.EventEmitter();
3060
3062
  this.App = '';
@@ -3223,7 +3225,7 @@
3223
3225
  if ('3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT|AMR|ANI|APK|APP|APPLESCRIPT|ASAX|ASC|ASCX|ASF|ASH|ASHX|ASMX|ASP|ASPX|ASX|AU|AUP|AVI|AXD|AZE|BAK|BASH|BAT|BIN|BLANK|BMP|BOWERRC|BPG|BROWSER|BZ2|C|CAB|CAD|CAF|CAL|CD|CER|CFG|CFM|CFML|CGI|CLASS|CMD|CODEKIT|COFFEE|COFFEELINTIGNORE|COM|COMPILE|CONF|CONFIG|CPP|CPTX|CR2|CRDOWNLOAD|CRT|CRYPT|CS|CSH|CSON|CSPROJ|CSS|CSV|CUE|DAT|DB|DBF|DEB|DGN|DIST|DIZ|DLL|DMG|DNG|DOC|DOCB|DOCM|DOCX|DOT|DOTM|DOTX|DOWNLOAD|DPJ|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FF2|WPS|WSF|XAML|XCF|XLM|XLS|XLSM|XLSX|XLT|XLTM|XLTX|XML|XPI|XPS|XRB|XSD|XSL|XSPF|XZ|YAML|YML|Z|ZIP|ZSH'.indexOf(arrf[arrf.length - 1].toLocaleUpperCase()) != -1)
3224
3226
  iconf = arrf[arrf.length - 1].toLocaleLowerCase();
3225
3227
  _this.arr_g[i].icon = iconf + '.svg';
3226
- _this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user;
3228
+ _this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
3227
3229
  if (_this.arr_g[i].Filename.indexOf(".jpg") != -1 || _this.arr_g[i].Filename.indexOf(".gif") != -1 || _this.arr_g[i].Filename.indexOf(".png") != -1) {
3228
3230
  _this.arr_g[i].type = "IMG";
3229
3231
  _this.arr_g[i].image_original = [_this.arr_g[i].url];
@@ -3257,13 +3259,15 @@
3257
3259
  { type: QueryService },
3258
3260
  { type: i3.ToastrService },
3259
3261
  { type: material.MatDialog },
3260
- { type: AuthenticationService }
3262
+ { type: AuthenticationService },
3263
+ { type: UtilityService }
3261
3264
  ];
3262
3265
  };
3263
3266
  FHUploadPanelComponent.propDecorators = {
3264
3267
  enabled: [{ type: i0.Input }],
3265
3268
  label: [{ type: i0.Input }],
3266
3269
  sovrascrivi_path: [{ type: i0.Input }],
3270
+ ruolo_supervisore: [{ type: i0.Input }],
3267
3271
  access_control: [{ type: i0.Input }],
3268
3272
  change: [{ type: i0.Output }],
3269
3273
  upc: [{ type: i0.ViewChild, args: ['upc',] }]
@@ -16632,6 +16636,7 @@
16632
16636
  if (this.app_s.getState().wkf_obj != null)
16633
16637
  if (this.app_s.getState().wkf_obj.codice_app == this.m_cod_documento) {
16634
16638
  this.restore_state_wkf();
16639
+ this.init_grid();
16635
16640
  return;
16636
16641
  }
16637
16642
  this.user_idp = this.app_s.user;
@@ -17196,12 +17201,12 @@
17196
17201
  this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
17197
17202
  /** @type {?} */
17198
17203
  var sp = "";
17199
- for (var i_2 = 0; i_2 < arrAutori.length; i_2++)
17200
- if (arrAutori[i_2].nc != null)
17201
- if (sp.indexOf(arrAutori[i_2].nc) == -1) {
17204
+ for (var i = 0; i < arrAutori.length; i++)
17205
+ if (arrAutori[i].nc != null)
17206
+ if (sp.indexOf(arrAutori[i].nc) == -1) {
17202
17207
  if (sp != '')
17203
17208
  sp = sp + ';';
17204
- sp = sp + arrAutori[i_2].nc;
17209
+ sp = sp + arrAutori[i].nc;
17205
17210
  }
17206
17211
  this.app_s.getState().wkf_doc_info.utenti = "";
17207
17212
  if (this.nlevel.livello < 900)
@@ -17384,14 +17389,14 @@
17384
17389
  }
17385
17390
  /** @type {?} */
17386
17391
  var ccan = "$$";
17387
- for (var i_3 = 0; i_3 < this.livs.length; i_3++) {
17388
- if (this.livs[i_3].livello == this.clevel.livello && this.livs[i_3].idp == this.app_s.user) {
17392
+ for (var i_2 = 0; i_2 < this.livs.length; i_2++) {
17393
+ if (this.livs[i_2].livello == this.clevel.livello && this.livs[i_2].idp == this.app_s.user) {
17389
17394
  if (ccan != "$$") {
17390
17395
  ccan = "$$";
17391
17396
  break;
17392
17397
  }
17393
17398
  else
17394
- ccan = this.livs[i_3].gruppo_parallelo;
17399
+ ccan = this.livs[i_2].gruppo_parallelo;
17395
17400
  }
17396
17401
  }
17397
17402
  /** @type {?} */
@@ -17402,7 +17407,7 @@
17402
17407
  a = new Array(this.m_autori, "", this.m_liv, this.m_statox, this.m_autori_paralleli, this.m_obj.assegnati_paralleli, this.getLvlDescri(String(this.m_liv), this.m_statox), this.getUsersList(this.m_autori, this.m_obj.assegnati_paralleli), this.user_idp, this.getTitle(), this.getDescri(), this.id_applicativo, this.id_documento, ccan);
17403
17408
  /** @type {?} */
17404
17409
  var t = new Array();
17405
- for (var i_4 = 0; i_4 < a.length; i_4++)
17410
+ for (var i_3 = 0; i_3 < a.length; i_3++)
17406
17411
  t.push('string');
17407
17412
  this.m_crea_att = 1;
17408
17413
  if (this.m_liv >= 900)
@@ -17532,11 +17537,11 @@
17532
17537
  if (data.result_msg == "OK") {
17533
17538
  /** @type {?} */
17534
17539
  var lista_p = _this.user_idp;
17535
- for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
17536
- if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
17537
- console.log('username:', data.result_data[i_5].username);
17540
+ for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
17541
+ if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
17542
+ console.log('username:', data.result_data[i_4].username);
17538
17543
  lista_p += ',';
17539
- lista_p += data.result_data[i_5].username;
17544
+ lista_p += data.result_data[i_4].username;
17540
17545
  }
17541
17546
  console.log('lista_p ', lista_p);
17542
17547
  _this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
@@ -17557,11 +17562,11 @@
17557
17562
  if (data.result_msg == "OK") {
17558
17563
  /** @type {?} */
17559
17564
  var lista_p = _this.user_idp;
17560
- for (var i_6 = 0; i_6 < data.result_data.length; i_6++)
17561
- if (lista_p.indexOf(data.result_data[i_6].username) == -1) {
17562
- console.log('username:', data.result_data[i_6].username);
17565
+ for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
17566
+ if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
17567
+ console.log('username:', data.result_data[i_5].username);
17563
17568
  lista_p += ',';
17564
- lista_p += data.result_data[i_6].username;
17569
+ lista_p += data.result_data[i_5].username;
17565
17570
  }
17566
17571
  _this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
17567
17572
  }