@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
|
@@ -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|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)
|
|
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',] }]
|
|
@@ -17197,12 +17201,12 @@
|
|
|
17197
17201
|
this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
|
|
17198
17202
|
/** @type {?} */
|
|
17199
17203
|
var sp = "";
|
|
17200
|
-
for (var
|
|
17201
|
-
if (arrAutori[
|
|
17202
|
-
if (sp.indexOf(arrAutori[
|
|
17204
|
+
for (var i = 0; i < arrAutori.length; i++)
|
|
17205
|
+
if (arrAutori[i].nc != null)
|
|
17206
|
+
if (sp.indexOf(arrAutori[i].nc) == -1) {
|
|
17203
17207
|
if (sp != '')
|
|
17204
17208
|
sp = sp + ';';
|
|
17205
|
-
sp = sp + arrAutori[
|
|
17209
|
+
sp = sp + arrAutori[i].nc;
|
|
17206
17210
|
}
|
|
17207
17211
|
this.app_s.getState().wkf_doc_info.utenti = "";
|
|
17208
17212
|
if (this.nlevel.livello < 900)
|
|
@@ -17385,14 +17389,14 @@
|
|
|
17385
17389
|
}
|
|
17386
17390
|
/** @type {?} */
|
|
17387
17391
|
var ccan = "$$";
|
|
17388
|
-
for (var
|
|
17389
|
-
if (this.livs[
|
|
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) {
|
|
17390
17394
|
if (ccan != "$$") {
|
|
17391
17395
|
ccan = "$$";
|
|
17392
17396
|
break;
|
|
17393
17397
|
}
|
|
17394
17398
|
else
|
|
17395
|
-
ccan = this.livs[
|
|
17399
|
+
ccan = this.livs[i_2].gruppo_parallelo;
|
|
17396
17400
|
}
|
|
17397
17401
|
}
|
|
17398
17402
|
/** @type {?} */
|
|
@@ -17403,7 +17407,7 @@
|
|
|
17403
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);
|
|
17404
17408
|
/** @type {?} */
|
|
17405
17409
|
var t = new Array();
|
|
17406
|
-
for (var
|
|
17410
|
+
for (var i_3 = 0; i_3 < a.length; i_3++)
|
|
17407
17411
|
t.push('string');
|
|
17408
17412
|
this.m_crea_att = 1;
|
|
17409
17413
|
if (this.m_liv >= 900)
|
|
@@ -17533,11 +17537,11 @@
|
|
|
17533
17537
|
if (data.result_msg == "OK") {
|
|
17534
17538
|
/** @type {?} */
|
|
17535
17539
|
var lista_p = _this.user_idp;
|
|
17536
|
-
for (var
|
|
17537
|
-
if (lista_p.indexOf(data.result_data[
|
|
17538
|
-
console.log('username:', data.result_data[
|
|
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);
|
|
17539
17543
|
lista_p += ',';
|
|
17540
|
-
lista_p += data.result_data[
|
|
17544
|
+
lista_p += data.result_data[i_4].username;
|
|
17541
17545
|
}
|
|
17542
17546
|
console.log('lista_p ', lista_p);
|
|
17543
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);
|
|
@@ -17558,11 +17562,11 @@
|
|
|
17558
17562
|
if (data.result_msg == "OK") {
|
|
17559
17563
|
/** @type {?} */
|
|
17560
17564
|
var lista_p = _this.user_idp;
|
|
17561
|
-
for (var
|
|
17562
|
-
if (lista_p.indexOf(data.result_data[
|
|
17563
|
-
console.log('username:', data.result_data[
|
|
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);
|
|
17564
17568
|
lista_p += ',';
|
|
17565
|
-
lista_p += data.result_data[
|
|
17569
|
+
lista_p += data.result_data[i_5].username;
|
|
17566
17570
|
}
|
|
17567
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);
|
|
17568
17572
|
}
|