@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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +24 -19
- 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/docs/components/FHUploadPanelComponent.html +37 -1
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhuploadpanel.js +17 -4
- package/esm2015/lib/wkf_engine/wkfapp.js +2 -1
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +12 -12
- package/esm5/lib/controls/fhuploadpanel.js +16 -4
- package/esm5/lib/wkf_engine/wkfapp.js +2 -1
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +17 -17
- package/fesm2015/fluxhub-fluxhub-lib.js +16 -10
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +25 -20
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuploadpanel.d.ts +4 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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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|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',] }]
|
|
@@ -5573,6 +5578,7 @@ class wkfapp {
|
|
|
5573
5578
|
if (this.app_s.getState().wkf_obj != null)
|
|
5574
5579
|
if (this.app_s.getState().wkf_obj.codice_app == this.m_cod_documento) {
|
|
5575
5580
|
this.restore_state_wkf();
|
|
5581
|
+
this.init_grid();
|
|
5576
5582
|
return;
|
|
5577
5583
|
}
|
|
5578
5584
|
this.user_idp = this.app_s.user;
|
|
@@ -14742,7 +14748,7 @@ class dati_aggiuntivi {
|
|
|
14742
14748
|
return;
|
|
14743
14749
|
}
|
|
14744
14750
|
/** @type {?} */
|
|
14745
|
-
|
|
14751
|
+
let liv = result;
|
|
14746
14752
|
if (result.descri_livello == "Prosegui a step successivo") {
|
|
14747
14753
|
this.calcolanextandjump();
|
|
14748
14754
|
return;
|
|
@@ -14834,7 +14840,7 @@ class dati_aggiuntivi {
|
|
|
14834
14840
|
*/
|
|
14835
14841
|
doJump() {
|
|
14836
14842
|
/** @type {?} */
|
|
14837
|
-
|
|
14843
|
+
let lettori = this.user_idp.toUpperCase();
|
|
14838
14844
|
if (this.nlevel == null) {
|
|
14839
14845
|
this.alert("problema di configurazione passaggio avanti dal livello " + (this.clevel.descri_livello) + " non attivato comunicare al CED", 1);
|
|
14840
14846
|
return;
|
|
@@ -14843,20 +14849,20 @@ class dati_aggiuntivi {
|
|
|
14843
14849
|
let arrAutori = new Array();
|
|
14844
14850
|
if (this.clevel.gruppo_parallelo == "") {
|
|
14845
14851
|
console.log('senza gp ', this.clevel.gruppo_parallelo + " " + this.nlevel.livello);
|
|
14846
|
-
for (
|
|
14852
|
+
for (let i = 0; i < this.livs.length; i++)
|
|
14847
14853
|
if (this.livs[i].livello == this.nlevel.livello && this.livs[i].notifica == 0)
|
|
14848
14854
|
arrAutori.push(this.livs[i]);
|
|
14849
14855
|
console.log('arrAutori ', arrAutori);
|
|
14850
14856
|
}
|
|
14851
14857
|
else {
|
|
14852
14858
|
/** @type {?} */
|
|
14853
|
-
|
|
14859
|
+
let b_canale = false;
|
|
14854
14860
|
console.log('con gp ', this.clevel.gruppo_parallelo);
|
|
14855
|
-
for (
|
|
14861
|
+
for (let i = 0; i < this.livs.length; i++)
|
|
14856
14862
|
if (this.livs[i].livello == this.nlevel.livello && this.livs[i].gruppo_parallelo != "")
|
|
14857
14863
|
b_canale = true;
|
|
14858
14864
|
console.log('canale: ' + this.clevel.gruppo_parallelo);
|
|
14859
|
-
for (
|
|
14865
|
+
for (let i = 0; i < this.livs.length; i++)
|
|
14860
14866
|
if (this.livs[i].livello == this.nlevel.livello && this.livs[i].notifica == 0) {
|
|
14861
14867
|
console.log('canale: ' + this.clevel.gruppo_parallelo + ' ' + this.livs[i].gruppo_parallelo);
|
|
14862
14868
|
if (this.clevel.gruppo_parallelo == this.livs[i].gruppo_parallelo || !b_canale) {
|