@fluxhub/fluxhub-lib 1.0.314 → 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 +23 -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/wkfdatiaggiuntivi.js +12 -12
- package/esm5/lib/controls/fhuploadpanel.js +16 -4
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +17 -17
- package/fesm2015/fluxhub-fluxhub-lib.js +15 -10
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +23 -19
- 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
|
@@ -3712,15 +3712,17 @@ var AuthenticationService = /** @class */ (function () {
|
|
|
3712
3712
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3713
3713
|
*/
|
|
3714
3714
|
var FHUploadPanelComponent = /** @class */ (function () {
|
|
3715
|
-
function FHUploadPanelComponent(_appservice, _dataService, toastr, dialog, auth_s) {
|
|
3715
|
+
function FHUploadPanelComponent(_appservice, _dataService, toastr, dialog, auth_s, uti) {
|
|
3716
3716
|
this._appservice = _appservice;
|
|
3717
3717
|
this._dataService = _dataService;
|
|
3718
3718
|
this.toastr = toastr;
|
|
3719
3719
|
this.dialog = dialog;
|
|
3720
3720
|
this.auth_s = auth_s;
|
|
3721
|
+
this.uti = uti;
|
|
3721
3722
|
this.enabled = true;
|
|
3722
3723
|
this.label = '';
|
|
3723
3724
|
this.sovrascrivi_path = '';
|
|
3725
|
+
this.ruolo_supervisore = '[ZZZ_DIS_CC]';
|
|
3724
3726
|
this.access_control = false;
|
|
3725
3727
|
this.change = new EventEmitter();
|
|
3726
3728
|
this.App = '';
|
|
@@ -3889,7 +3891,7 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3889
3891
|
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)
|
|
3890
3892
|
iconf = arrf[arrf.length - 1].toLocaleLowerCase();
|
|
3891
3893
|
_this.arr_g[i].icon = iconf + '.svg';
|
|
3892
|
-
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user;
|
|
3894
|
+
_this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
|
|
3893
3895
|
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) {
|
|
3894
3896
|
_this.arr_g[i].type = "IMG";
|
|
3895
3897
|
_this.arr_g[i].image_original = [_this.arr_g[i].url];
|
|
@@ -3922,12 +3924,14 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3922
3924
|
{ type: QueryService },
|
|
3923
3925
|
{ type: ToastrService },
|
|
3924
3926
|
{ type: MatDialog },
|
|
3925
|
-
{ type: AuthenticationService }
|
|
3927
|
+
{ type: AuthenticationService },
|
|
3928
|
+
{ type: UtilityService }
|
|
3926
3929
|
]; };
|
|
3927
3930
|
FHUploadPanelComponent.propDecorators = {
|
|
3928
3931
|
enabled: [{ type: Input }],
|
|
3929
3932
|
label: [{ type: Input }],
|
|
3930
3933
|
sovrascrivi_path: [{ type: Input }],
|
|
3934
|
+
ruolo_supervisore: [{ type: Input }],
|
|
3931
3935
|
access_control: [{ type: Input }],
|
|
3932
3936
|
change: [{ type: Output }],
|
|
3933
3937
|
upc: [{ type: ViewChild, args: ['upc',] }]
|
|
@@ -15565,12 +15569,12 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15565
15569
|
this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
|
|
15566
15570
|
/** @type {?} */
|
|
15567
15571
|
var sp = "";
|
|
15568
|
-
for (var
|
|
15569
|
-
if (arrAutori[
|
|
15570
|
-
if (sp.indexOf(arrAutori[
|
|
15572
|
+
for (var i = 0; i < arrAutori.length; i++)
|
|
15573
|
+
if (arrAutori[i].nc != null)
|
|
15574
|
+
if (sp.indexOf(arrAutori[i].nc) == -1) {
|
|
15571
15575
|
if (sp != '')
|
|
15572
15576
|
sp = sp + ';';
|
|
15573
|
-
sp = sp + arrAutori[
|
|
15577
|
+
sp = sp + arrAutori[i].nc;
|
|
15574
15578
|
}
|
|
15575
15579
|
this.app_s.getState().wkf_doc_info.utenti = "";
|
|
15576
15580
|
if (this.nlevel.livello < 900)
|
|
@@ -15758,14 +15762,14 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15758
15762
|
}
|
|
15759
15763
|
/** @type {?} */
|
|
15760
15764
|
var ccan = "$$";
|
|
15761
|
-
for (var
|
|
15762
|
-
if (this.livs[
|
|
15765
|
+
for (var i_2 = 0; i_2 < this.livs.length; i_2++) {
|
|
15766
|
+
if (this.livs[i_2].livello == this.clevel.livello && this.livs[i_2].idp == this.app_s.user) {
|
|
15763
15767
|
if (ccan != "$$") {
|
|
15764
15768
|
ccan = "$$";
|
|
15765
15769
|
break;
|
|
15766
15770
|
}
|
|
15767
15771
|
else
|
|
15768
|
-
ccan = this.livs[
|
|
15772
|
+
ccan = this.livs[i_2].gruppo_parallelo;
|
|
15769
15773
|
}
|
|
15770
15774
|
}
|
|
15771
15775
|
/** @type {?} */
|
|
@@ -15776,7 +15780,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15776
15780
|
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);
|
|
15777
15781
|
/** @type {?} */
|
|
15778
15782
|
var t = new Array();
|
|
15779
|
-
for (var
|
|
15783
|
+
for (var i_3 = 0; i_3 < a.length; i_3++)
|
|
15780
15784
|
t.push('string');
|
|
15781
15785
|
this.m_crea_att = 1;
|
|
15782
15786
|
if (this.m_liv >= 900)
|
|
@@ -15910,11 +15914,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15910
15914
|
if (data.result_msg == "OK") {
|
|
15911
15915
|
/** @type {?} */
|
|
15912
15916
|
var lista_p = _this.user_idp;
|
|
15913
|
-
for (var
|
|
15914
|
-
if (lista_p.indexOf(data.result_data[
|
|
15915
|
-
console.log('username:', data.result_data[
|
|
15917
|
+
for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
|
|
15918
|
+
if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
|
|
15919
|
+
console.log('username:', data.result_data[i_4].username);
|
|
15916
15920
|
lista_p += ',';
|
|
15917
|
-
lista_p += data.result_data[
|
|
15921
|
+
lista_p += data.result_data[i_4].username;
|
|
15918
15922
|
}
|
|
15919
15923
|
console.log('lista_p ', lista_p);
|
|
15920
15924
|
_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);
|
|
@@ -15936,11 +15940,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15936
15940
|
if (data.result_msg == "OK") {
|
|
15937
15941
|
/** @type {?} */
|
|
15938
15942
|
var lista_p = _this.user_idp;
|
|
15939
|
-
for (var
|
|
15940
|
-
if (lista_p.indexOf(data.result_data[
|
|
15941
|
-
console.log('username:', data.result_data[
|
|
15943
|
+
for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
|
|
15944
|
+
if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
|
|
15945
|
+
console.log('username:', data.result_data[i_5].username);
|
|
15942
15946
|
lista_p += ',';
|
|
15943
|
-
lista_p += data.result_data[
|
|
15947
|
+
lista_p += data.result_data[i_5].username;
|
|
15944
15948
|
}
|
|
15945
15949
|
_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);
|
|
15946
15950
|
}
|