@fluxhub/fluxhub-lib 1.0.314 → 1.0.316

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.
@@ -36,7 +36,7 @@ import { DomSanitizer } from '@angular/platform-browser';
36
36
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
37
37
  import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_FORMATS, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
38
38
  import { ActivatedRoute, Router } from '@angular/router';
39
- import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, Output, EventEmitter, ViewChild, forwardRef, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
39
+ import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
40
40
  import { Http } from '@angular/http';
41
41
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
42
42
  import { ToastrService } from 'ngx-toastr';
@@ -3347,16 +3347,19 @@ class FHUploadPanelComponent {
3347
3347
  * @param {?} toastr
3348
3348
  * @param {?} dialog
3349
3349
  * @param {?} auth_s
3350
+ * @param {?} uti
3350
3351
  */
3351
- constructor(_appservice, _dataService, toastr, dialog, auth_s) {
3352
+ constructor(_appservice, _dataService, toastr, dialog, auth_s, uti) {
3352
3353
  this._appservice = _appservice;
3353
3354
  this._dataService = _dataService;
3354
3355
  this.toastr = toastr;
3355
3356
  this.dialog = dialog;
3356
3357
  this.auth_s = auth_s;
3358
+ this.uti = uti;
3357
3359
  this.enabled = true;
3358
3360
  this.label = '';
3359
3361
  this.sovrascrivi_path = '';
3362
+ this.ruolo_supervisore = '[ZZZ_DIS_CC]';
3360
3363
  this.access_control = false;
3361
3364
  this.change = new EventEmitter();
3362
3365
  this.App = '';
@@ -3500,7 +3503,7 @@ class FHUploadPanelComponent {
3500
3503
  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|DS_STORE|DTD|DWG|DXF|EDITORCONFIG|EL|ENC|EOT|EPS|EPUB|ESLINTIGNORE|EXE|F4V|FAX|FB2|FLA|FLAC|FLV|FOLDER|GADGET|GDP|GEM|GIF|GITATTRIBUTES|GITIGNORE|GO|GPG|GZ|H|HANDLEBARS|HBS|HEIC|HS|HSL|HTM|HTML|IBOOKS|ICNS|ICO|ICS|IDX|IFF|IFO|IMAGE|IMG|IN|INDD|INF|INI|ISO|J2|JAR|JAVA|JPE|JPEG|JPG|JS|JSON|JSP|JSX|KEY|KF8|KMK|KSH|KUP|LESS|LEX|LICX|LISP|LIT|LNK|LOCK|LOG|LUA|M|M2V|M3U|M3U8|M4|M4A|M4R|M4V|MAP|MASTER|MC|MD|MDB|MDF|ME|MI|MID|MIDI|MK|MKV|MM|MO|MOBI|MOD|MOV|MP2|MP3|MP4|MPA|MPD|MPE|MPEG|MPG|MPGA|MPP|MPT|MSI|MSU|NEF|NES|NFO|NIX|NPMIGNORE|ODB|ODS|ODT|OGG|OGV|OST|OTF|OTT|OVA|OVF|P12|P7B|PAGES|PART|PCD|PDB|PDF|PEM|PFX|PGP|PH|PHAR|PHP|PKG|PL|PLIST|PM|PNG|PO|POM|POT|POTX|PPS|PPSX|PPT|PPTM|PPTX|PROP|PS|PS1|PSD|PSP|PST|PUB|PY|PYC|QT|RA|RAM|RAR|RAW|RB|RDF|RESX|RETRY|RM|ROM|RPM|RSA|RSS|RTF|RU|RUB|SASS|SCSS|SDF|SED|SH|SITEMAP|SKIN|SLDM|SLDX|SLN|SOL|SQL|SQLITE|STEP|STL|SVG|SWD|SWF|SWIFT|SYS|TAR|TCSH|TEX|TFIGNORE|TGA|TGZ|TIF|TIFF|TMP|TORRENT|TS|TSV|TTF|TWIG|TXT|UDF|VB|VBPROJ|VBS|VCD|VCS|VDI|VDX|VMDK|VOB|VSCODEIGNORE|VSD|VSS|VST|VSX|VTX|WAR|WAV|WBK|WEBINFO|WEBM|WEBP|WMA|WMF|WMV|WOFF|WOFF2|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)
3501
3504
  iconf = arrf[arrf.length - 1].toLocaleLowerCase();
3502
3505
  this.arr_g[i].icon = iconf + '.svg';
3503
- this.arr_g[i].can_delete = !this.access_control || this.arr_g[i].idp == this._appservice.user;
3506
+ this.arr_g[i].can_delete = !this.access_control || this.arr_g[i].idp == this._appservice.user || this.uti.hasRole(this.ruolo_supervisore);
3504
3507
  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) {
3505
3508
  this.arr_g[i].type = "IMG";
3506
3509
  this.arr_g[i].image_original = [this.arr_g[i].url];
@@ -3610,12 +3613,14 @@ FHUploadPanelComponent.ctorParameters = () => [
3610
3613
  { type: QueryService },
3611
3614
  { type: ToastrService },
3612
3615
  { type: MatDialog },
3613
- { type: AuthenticationService }
3616
+ { type: AuthenticationService },
3617
+ { type: UtilityService }
3614
3618
  ];
3615
3619
  FHUploadPanelComponent.propDecorators = {
3616
3620
  enabled: [{ type: Input }],
3617
3621
  label: [{ type: Input }],
3618
3622
  sovrascrivi_path: [{ type: Input }],
3623
+ ruolo_supervisore: [{ type: Input }],
3619
3624
  access_control: [{ type: Input }],
3620
3625
  change: [{ type: Output }],
3621
3626
  upc: [{ type: ViewChild, args: ['upc',] }]
@@ -14743,7 +14748,7 @@ class dati_aggiuntivi {
14743
14748
  return;
14744
14749
  }
14745
14750
  /** @type {?} */
14746
- var liv = result;
14751
+ let liv = result;
14747
14752
  if (result.descri_livello == "Prosegui a step successivo") {
14748
14753
  this.calcolanextandjump();
14749
14754
  return;
@@ -14835,7 +14840,7 @@ class dati_aggiuntivi {
14835
14840
  */
14836
14841
  doJump() {
14837
14842
  /** @type {?} */
14838
- var lettori = this.user_idp.toUpperCase();
14843
+ let lettori = this.user_idp.toUpperCase();
14839
14844
  if (this.nlevel == null) {
14840
14845
  this.alert("problema di configurazione passaggio avanti dal livello " + (this.clevel.descri_livello) + " non attivato comunicare al CED", 1);
14841
14846
  return;
@@ -14844,20 +14849,20 @@ class dati_aggiuntivi {
14844
14849
  let arrAutori = new Array();
14845
14850
  if (this.clevel.gruppo_parallelo == "") {
14846
14851
  console.log('senza gp ', this.clevel.gruppo_parallelo + " " + this.nlevel.livello);
14847
- for (var i = 0; i < this.livs.length; i++)
14852
+ for (let i = 0; i < this.livs.length; i++)
14848
14853
  if (this.livs[i].livello == this.nlevel.livello && this.livs[i].notifica == 0)
14849
14854
  arrAutori.push(this.livs[i]);
14850
14855
  console.log('arrAutori ', arrAutori);
14851
14856
  }
14852
14857
  else {
14853
14858
  /** @type {?} */
14854
- var b_canale = false;
14859
+ let b_canale = false;
14855
14860
  console.log('con gp ', this.clevel.gruppo_parallelo);
14856
- for (var i = 0; i < this.livs.length; i++)
14861
+ for (let i = 0; i < this.livs.length; i++)
14857
14862
  if (this.livs[i].livello == this.nlevel.livello && this.livs[i].gruppo_parallelo != "")
14858
14863
  b_canale = true;
14859
14864
  console.log('canale: ' + this.clevel.gruppo_parallelo);
14860
- for (var i = 0; i < this.livs.length; i++)
14865
+ for (let i = 0; i < this.livs.length; i++)
14861
14866
  if (this.livs[i].livello == this.nlevel.livello && this.livs[i].notifica == 0) {
14862
14867
  console.log('canale: ' + this.clevel.gruppo_parallelo + ' ' + this.livs[i].gruppo_parallelo);
14863
14868
  if (this.clevel.gruppo_parallelo == this.livs[i].gruppo_parallelo || !b_canale) {
@@ -15089,7 +15094,6 @@ class dati_aggiuntivi {
15089
15094
  if (this.nlevel != null)
15090
15095
  if (this.nlevel.descri_livello != null)
15091
15096
  this.m_oper = this.m_oper + " -> " + this.nlevel.descri_livello;
15092
- console.log('ccan ', ccan);
15093
15097
  /** @type {?} */
15094
15098
  let p = new QParam();
15095
15099
  p.sql = "doWKF";
@@ -15843,9 +15847,10 @@ class dati_aggiuntivi {
15843
15847
  /**
15844
15848
  * @param {?} lvlb
15845
15849
  * @param {?=} can
15850
+ * @param {?=} b_send_email
15846
15851
  * @return {?}
15847
15852
  */
15848
- setForceJump(lvlb, can = "") {
15853
+ setForceJump(lvlb, can = "", b_send_email = true) {
15849
15854
  /** @type {?} */
15850
15855
  let s = "";
15851
15856
  /** @type {?} */
@@ -15935,7 +15940,11 @@ class dati_aggiuntivi {
15935
15940
  err => {
15936
15941
  this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
15937
15942
  }));
15938
- this.goto_edit_doc();
15943
+ if (b_send_email) {
15944
+ this.sendEMail_ex(this.user_idp, s, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri(), 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, "");
15945
+ }
15946
+ else
15947
+ this.goto_edit_doc();
15939
15948
  return "OK";
15940
15949
  }
15941
15950
  /**