@fluxhub/fluxhub-lib 9.0.38 → 9.0.40

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.
@@ -2925,6 +2925,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
2925
2925
  this.ruolo_supervisore = '[ZZZ_DIS_CC]';
2926
2926
  this.access_control = false;
2927
2927
  this.show_images = true;
2928
+ this.can_delete_owner = true;
2928
2929
  this.b_initt = false;
2929
2930
  this.change = new EventEmitter();
2930
2931
  this.call_upload = new EventEmitter();
@@ -3136,7 +3137,21 @@ var FHUploadPanelComponent = /** @class */ (function () {
3136
3137
  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)
3137
3138
  iconf = arrf[arrf.length - 1].toLocaleLowerCase();
3138
3139
  _this.arr_g[i].icon = iconf + '.svg';
3139
- _this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
3140
+ if (_this.can_delete_owner) {
3141
+ _this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
3142
+ if ('[ZZZ_DIS_CC]' == _this.ruolo_supervisore)
3143
+ _this.arr_g[i].can_delete_m = _this.arr_g[i].idp;
3144
+ else
3145
+ _this.arr_g[i].can_delete_m = _this.arr_g[i].idp + ",[" + _this.ruolo_supervisore + "]";
3146
+ }
3147
+ else {
3148
+ _this.arr_g[i].can_delete = !_this.access_control || _this.uti.hasRole(_this.ruolo_supervisore);
3149
+ if ('[ZZZ_DIS_CC]' == _this.ruolo_supervisore)
3150
+ _this.arr_g[i].can_delete_m = '';
3151
+ else
3152
+ _this.arr_g[i].can_delete_m = "[" + _this.ruolo_supervisore + "]";
3153
+ }
3154
+ _this.arr_g[i].can_edit = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
3140
3155
  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) && _this.show_images) {
3141
3156
  _this.arr_g[i].type = "IMG";
3142
3157
  _this.arr_g[i].image_original = [_this.arr_g[i].url];
@@ -3187,6 +3202,10 @@ var FHUploadPanelComponent = /** @class */ (function () {
3187
3202
  Input(),
3188
3203
  __metadata("design:type", Boolean)
3189
3204
  ], FHUploadPanelComponent.prototype, "show_images", void 0);
3205
+ __decorate([
3206
+ Input(),
3207
+ __metadata("design:type", Boolean)
3208
+ ], FHUploadPanelComponent.prototype, "can_delete_owner", void 0);
3190
3209
  __decorate([
3191
3210
  Output(),
3192
3211
  __metadata("design:type", EventEmitter)
@@ -3201,7 +3220,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
3201
3220
  ], FHUploadPanelComponent.prototype, "upc", void 0);
3202
3221
  FHUploadPanelComponent = __decorate([
3203
3222
  Component({
3204
- selector: 'FHUploadPanel', template: "\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label!=''\">{{label}}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUpload [single]=\"b_False\" [lista_allegati]=\"arr_g\" (change)=\"ref_allegato()\" (call_upload)=\"call_up($event)\" #upc></FHUpload>\n </div>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"!image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:20%\">Tipo</th>\n\n <th style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 15px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n\n\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_delete\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">Tipo</th>\n <th style=\"width:40%\" ></th>\n\n\n <th style=\"width:10%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 15px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_delete\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_delete\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.nc\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"b_mobile\">\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 15px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">{{app.Filename}}<br><br>\n <button style=\"background-color: #F5F5F5\" (click)=\"download_all(app)\" mat-flat-button>DOWNLOAD</button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div *ngIf=\"!b_ini && b_initt\" style=\"color:#ff0000\"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>\n\n ",
3223
+ selector: 'FHUploadPanel', template: "\n <div fxLayout=\"column\">\n <h3 *ngIf=\"label!=''\">{{label}}</h3>\n <div fxLayout=\"column\">\n <div [hidden]=\"!enabled\">\n <FHUpload [single]=\"b_False\" [lista_allegati]=\"arr_g\" (change)=\"ref_allegato()\" (call_upload)=\"call_up($event)\" #upc></FHUpload>\n </div>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"!image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n <th style=\"width:40%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:20%\">Tipo</th>\n\n <th style=\"width:40px\" class=\"actions\"></th>\n <th style=\"width:30%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 15px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_edit\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_edit\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n\n\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_edit\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_edit\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.can_delete_m\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"image_type && !b_mobile\">\n <thead>\n <tr class=\"header\">\n <th style=\"width:40px\"></th>\n <th style=\"width:50%\">Nome</th>\n <th style=\"width:60px;text-align:center\">Dim.</th>\n\n <th style=\"width:20%\">Descrizione</th>\n <th *ngIf=\"multi_list\" style=\"width:10%\">Tipo</th>\n <th style=\"width:40%\" ></th>\n\n\n <th style=\"width:10%\" >Utente</th>\n <th style=\"width:240px;text-align:center\">Data</th>\n <th style=\"width:40px\" class=\"actions\"></th>\n <th *ngIf=\"enabled\" style=\"width:40px\" class=\"actions\"></th>\n </tr>\n </thead>\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 15px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n\n <td>{{app.Filename}}</td>\n <td style=\"text-align:center\">{{app.Filesize}}</td>\n <td>\n <div fxLayout=\"row\">\n <div *ngIf=\"enabled\">\n <a mat-icon-button matTooltip=\"Modifica Descrizione\" *ngIf=\"app.can_edit\" (click)=\"edit_descri(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Descrizione consentita solo a: '+app.nc\" *ngIf=\"!app.can_edit\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n </div>\n <div [innerHTML]=\"app.descrizione_vis\" style=\"width:100%\">\n </div>\n </div></td>\n <td *ngIf=\"multi_list\">\n <div fxLayout=\"row\">\n <a mat-icon-button matTooltip=\"Modifica Tipo\" *ngIf=\"app.can_edit\" (click)=\"edit_tipo(app)\">\n <mat-icon>edit</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Modifica Tipologia consentita solo a: '+app.nc\" *ngIf=\"!app.can_edit\" [disabled]=\"true\" >\n <mat-icon>edit</mat-icon>\n </a>\n\n <div [innerHTML]=\"app.tipo\" style=\"width:100%\">\n </div>\n </div></td>\n\n <td style=\"min-width:400px;min-height: 400px\" *ngIf=\"app.type=='IMG'\">\n <fh-image-viewer [u]=\"app\"></fh-image-viewer>\n\n </td>\n <td *ngIf=\"app.type!='IMG'\">\n\n </td>\n <td>{{app.nc}}</td>\n <td style=\"text-align:center\">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td style=\"text-align:center\">\n <button mat-icon-button matTooltip=\"Download File\" (click)=\"download_all(app)\">\n <mat-icon>cloud_download</mat-icon>\n </button>\n </td>\n\n <td *ngIf=\"enabled\" style=\"text-align:center\">\n <a mat-icon-button matTooltip=\"Elimina File\" *ngIf=\"app.can_delete\" (click)=\"delete(app)\">\n <mat-icon>delete</mat-icon>\n </a>\n\n <a mat-icon-button [matTooltip]=\"'Cancellazione consentita solo a: '+app.can_delete_m\" *ngIf=\"!app.can_delete\" [disabled]=\"true\" >\n <mat-icon>delete</mat-icon>\n </a>\n\n </td>\n\n </tr>\n </tbody>\n </table>\n <table width=\"98%\" class=\"fh_table\" *ngIf=\"b_mobile\">\n <tbody>\n\n <tr *ngFor=\"let app of arr_g;let odd=odd; let even=even;\" style=\"font-size: 15px;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"text-align:center;vertical-align: middle;width:36px;height:36px;\">\n <div style=\"text-align:center;vertical-align: middle;width:28px;height:28px;\">\n <img src=\"assets/icons/square-o/{{app.icon}}\" style=\"width:28px;height:28px;\"></div> </td>\n <td *ngIf=\"b_mobile\" style=\"text-align:center\">{{app.Filename}}<br><br>\n <button style=\"background-color: #F5F5F5\" (click)=\"download_all(app)\" mat-flat-button>DOWNLOAD</button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div *ngIf=\"!b_ini && b_initt\" style=\"color:#ff0000\"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>\n\n ",
3205
3224
  styles: ["\n\n\n\n "]
3206
3225
  }),
3207
3226
  __metadata("design:paramtypes", [AppService, QueryService, ToastrService, MatDialog, AuthenticationService, UtilityService])
@@ -10862,7 +10881,7 @@ var FHGridToolBarComponent = /** @class */ (function () {
10862
10881
  ], FHGridToolBarComponent.prototype, "command", void 0);
10863
10882
  FHGridToolBarComponent = __decorate([
10864
10883
  Component({
10865
- selector: 'FHGridToolBar', template: "\n <div *ngIf=\"type=='WKF_NO_EDIT'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxFlex=\"100\" fxLayoutAlign=\"end center\" style=\"background-color: #CC0000\">\n\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n\n\n <button mat-flat-button color=\"warn\" mat-button fxHide fxShow.gt-sm [matMenuTriggerFor]=\"gest_menu\" *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin || toolbar_wkfapp?.is_PowerUser\"><mat-icon>label_important</mat-icon>&nbsp;&nbsp;&nbsp;{{'Gestione' | translate}}</button>\n <mat-menu #gest_menu=\"matMenu\" >\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"annulla_richiesta()\"> {{'ANNULLA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"recupera_richiesta()\"> {{'RECUPERA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"riassegna_richiesta()\" *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin\"> {{'RIASSEGNA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"sostituisci_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'SOSTITUISCI UTENTE' | translate}} </button>\n\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"test_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'TEST UTENTE' | translate}} </button>\n\n </mat-menu>\n <button mat-flat-button (click)=\"annulla_imp()\" *ngIf=\"toolbar_wkfapp?.imp!=''\"> {{toolbar_wkfapp?.imp}} </button>\n <div *ngFor=\"let app of custom_commands\" > &nbsp;&nbsp;<button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>&nbsp;{{app.label | translate}}</button>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='WKF'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxLayoutAlign=\"end center\" style=\"width: 100%;background-color: maroon\">\n\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n\n <button mat-flat-button (click)=\"insert_doc()\" *ngIf=\"toolbar_wkfapp?.is_Ins\" color=\"accent\"><mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{'INSERISCI' | translate}}</button>&nbsp;&nbsp;&nbsp;\n\n <button mat-flat-button color=\"warn\" mat-button fxHide fxShow.gt-sm [matMenuTriggerFor]=\"gest_menu\" *ngIf=\"toolbar_wkfapp?.is_Supervisor\">{{'Gestione' | translate}}</button>\n <mat-menu #gest_menu=\"matMenu\" >\n <button mat-menu-item (click)=\"annulla_richiesta()\"> {{'ANNULLA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"recupera_richiesta()\"> {{'RECUPERA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"riassegna_richiesta()\"> {{'RIASSEGNA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"sostituisci_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'SOSTITUISCI UTENTE' | translate}} </button>\n\n <button mat-menu-item (click)=\"test_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'TEST UTENTE' | translate}} </button>\n\n </mat-menu>\n <button mat-flat-button (click)=\"annulla_imp()\" *ngIf=\"toolbar_wkfapp?.imp!=null && toolbar_wkfapp?.imp!=''\"> {{toolbar_wkfapp?.imp}} </button>\n <div *ngFor=\"let app of custom_commands\" >\n &nbsp;&nbsp;<button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>&nbsp;{{app.label | translate}}</button>\n\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='INSERT_DELETE'\" fxLayoutGap=\"3px\" fxLayout=\"row\">\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"new_doc()\" color=\"primary\">\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{'INSERISCI' | translate}}\n </button>\n\n <button mat-flat-button (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;{{'ELIMINA' | translate}}\n </button>\n <div *ngFor=\"let app of custom_commands\" ><button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>{{app.label | translate}}</button>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='CUSTOM'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n\n <div *ngFor=\"let app of custom_commands\" ><button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>{{app.label | translate}}</button>\n </div>\n </div>\n\n ",
10884
+ selector: 'FHGridToolBar', template: "\n <div *ngIf=\"type=='WKF_NO_EDIT'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxFlex=\"100\" fxLayoutAlign=\"end center\" style=\"background-color: #CC0000\">\n\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n\n\n <button mat-flat-button color=\"warn\" mat-button fxHide fxShow.gt-sm [matMenuTriggerFor]=\"gest_menu\" *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin || toolbar_wkfapp?.is_PowerUser\"><mat-icon>label_important</mat-icon>&nbsp;&nbsp;&nbsp;{{'Gestione' | translate}}</button>\n <mat-menu #gest_menu=\"matMenu\" >\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"annulla_richiesta()\"> {{'ANNULLA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"recupera_richiesta()\"> {{'RECUPERA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"riassegna_richiesta()\" *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin\"> {{'RIASSEGNA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"sostituisci_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'SOSTITUISCI UTENTE' | translate}} </button>\n\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"test_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'TEST UTENTE' | translate}} </button>\n\n </mat-menu>\n <button mat-flat-button (click)=\"annulla_imp()\" *ngIf=\"toolbar_wkfapp?.imp!=''\"> {{toolbar_wkfapp?.imp}} </button>\n <div *ngFor=\"let app of custom_commands\" > &nbsp;&nbsp;<button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>&nbsp;{{app.label | translate}}</button>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='WKF'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxLayoutAlign=\"end center\" style=\"width: 100%;background-color: maroon\">\n\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n\n <button mat-flat-button (click)=\"insert_doc()\" *ngIf=\"toolbar_wkfapp?.is_Ins\" color=\"accent\"><mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{'INSERISCI' | translate}}</button>&nbsp;&nbsp;&nbsp;\n\n <button mat-flat-button color=\"warn\" mat-button fxHide fxShow.gt-sm [matMenuTriggerFor]=\"gest_menu\" *ngIf=\"toolbar_wkfapp?.is_Supervisor\">{{'Gestione' | translate}}</button>\n <mat-menu #gest_menu=\"matMenu\" >\n <button mat-menu-item (click)=\"annulla_richiesta()\"> {{'ANNULLA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"recupera_richiesta()\"> {{'RECUPERA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"riassegna_richiesta()\"> {{'RIASSEGNA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"sostituisci_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'SOSTITUISCI UTENTE' | translate}} </button>\n\n <button mat-menu-item (click)=\"test_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'TEST UTENTE' | translate}} </button>\n\n </mat-menu>\n <button mat-flat-button (click)=\"annulla_imp()\" *ngIf=\"toolbar_wkfapp?.imp!=null && toolbar_wkfapp?.imp!=''\"> {{toolbar_wkfapp?.imp}} </button>\n <div *ngFor=\"let app of custom_commands\" >\n &nbsp;&nbsp;<button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>&nbsp;{{app.label | translate}}</button>\n\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='INSERT_DELETE' || type=='INSERT'\" fxLayoutGap=\"3px\" fxLayout=\"row\">\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"new_doc()\" color=\"primary\">\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{'INSERISCI' | translate}}\n </button>\n\n <button *ngIf=\"type=='INSERT_DELETE'\" mat-flat-button (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;{{'ELIMINA' | translate}}\n </button>\n <div *ngFor=\"let app of custom_commands\" ><button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>{{app.label | translate}}</button>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='CUSTOM'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n\n <div *ngFor=\"let app of custom_commands\" ><button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>{{app.label | translate}}</button>\n </div>\n </div>\n\n ",
10866
10885
  styles: ["\n\n "]
10867
10886
  })
10868
10887
  ], FHGridToolBarComponent);