@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
|
@@ -37,7 +37,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
37
37
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
38
38
|
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';
|
|
39
39
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
40
|
-
import { Injectable,
|
|
40
|
+
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
41
41
|
import { Http } from '@angular/http';
|
|
42
42
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
43
43
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -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|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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',] }]
|
|
@@ -5864,6 +5868,7 @@ wkfapp = /** @class */ (function () {
|
|
|
5864
5868
|
if (this.app_s.getState().wkf_obj != null)
|
|
5865
5869
|
if (this.app_s.getState().wkf_obj.codice_app == this.m_cod_documento) {
|
|
5866
5870
|
this.restore_state_wkf();
|
|
5871
|
+
this.init_grid();
|
|
5867
5872
|
return;
|
|
5868
5873
|
}
|
|
5869
5874
|
this.user_idp = this.app_s.user;
|
|
@@ -15564,12 +15569,12 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15564
15569
|
this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
|
|
15565
15570
|
/** @type {?} */
|
|
15566
15571
|
var sp = "";
|
|
15567
|
-
for (var
|
|
15568
|
-
if (arrAutori[
|
|
15569
|
-
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) {
|
|
15570
15575
|
if (sp != '')
|
|
15571
15576
|
sp = sp + ';';
|
|
15572
|
-
sp = sp + arrAutori[
|
|
15577
|
+
sp = sp + arrAutori[i].nc;
|
|
15573
15578
|
}
|
|
15574
15579
|
this.app_s.getState().wkf_doc_info.utenti = "";
|
|
15575
15580
|
if (this.nlevel.livello < 900)
|
|
@@ -15757,14 +15762,14 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15757
15762
|
}
|
|
15758
15763
|
/** @type {?} */
|
|
15759
15764
|
var ccan = "$$";
|
|
15760
|
-
for (var
|
|
15761
|
-
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) {
|
|
15762
15767
|
if (ccan != "$$") {
|
|
15763
15768
|
ccan = "$$";
|
|
15764
15769
|
break;
|
|
15765
15770
|
}
|
|
15766
15771
|
else
|
|
15767
|
-
ccan = this.livs[
|
|
15772
|
+
ccan = this.livs[i_2].gruppo_parallelo;
|
|
15768
15773
|
}
|
|
15769
15774
|
}
|
|
15770
15775
|
/** @type {?} */
|
|
@@ -15775,7 +15780,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15775
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);
|
|
15776
15781
|
/** @type {?} */
|
|
15777
15782
|
var t = new Array();
|
|
15778
|
-
for (var
|
|
15783
|
+
for (var i_3 = 0; i_3 < a.length; i_3++)
|
|
15779
15784
|
t.push('string');
|
|
15780
15785
|
this.m_crea_att = 1;
|
|
15781
15786
|
if (this.m_liv >= 900)
|
|
@@ -15909,11 +15914,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15909
15914
|
if (data.result_msg == "OK") {
|
|
15910
15915
|
/** @type {?} */
|
|
15911
15916
|
var lista_p = _this.user_idp;
|
|
15912
|
-
for (var
|
|
15913
|
-
if (lista_p.indexOf(data.result_data[
|
|
15914
|
-
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);
|
|
15915
15920
|
lista_p += ',';
|
|
15916
|
-
lista_p += data.result_data[
|
|
15921
|
+
lista_p += data.result_data[i_4].username;
|
|
15917
15922
|
}
|
|
15918
15923
|
console.log('lista_p ', lista_p);
|
|
15919
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);
|
|
@@ -15935,11 +15940,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15935
15940
|
if (data.result_msg == "OK") {
|
|
15936
15941
|
/** @type {?} */
|
|
15937
15942
|
var lista_p = _this.user_idp;
|
|
15938
|
-
for (var
|
|
15939
|
-
if (lista_p.indexOf(data.result_data[
|
|
15940
|
-
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);
|
|
15941
15946
|
lista_p += ',';
|
|
15942
|
-
lista_p += data.result_data[
|
|
15947
|
+
lista_p += data.result_data[i_5].username;
|
|
15943
15948
|
}
|
|
15944
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);
|
|
15945
15950
|
}
|