@fluxhub/fluxhub-lib 1.0.283 → 1.0.287
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 +31 -26
- 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/esm2015/lib/auth_guard.js +8 -16
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +16 -3
- package/esm5/lib/auth_guard.js +8 -16
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +25 -12
- package/fesm2015/fluxhub-fluxhub-lib.js +23 -18
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +32 -27
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
34
34
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
35
35
|
import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, 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';
|
|
36
36
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
37
|
-
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input,
|
|
37
|
+
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, Output, EventEmitter, forwardRef, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
38
38
|
import { Http } from '@angular/http';
|
|
39
39
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
40
40
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -15259,14 +15259,26 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15259
15259
|
}));
|
|
15260
15260
|
}
|
|
15261
15261
|
/** @type {?} */
|
|
15262
|
+
var ccan = "$$";
|
|
15263
|
+
for (var i_2 = 0; i_2 < this.livs.length; i_2++) {
|
|
15264
|
+
if (this.livs[i_2].livello == this.clevel.livello && this.livs[i_2].idp == this.app_s.user) {
|
|
15265
|
+
if (ccan != "$$") {
|
|
15266
|
+
ccan = "$$";
|
|
15267
|
+
break;
|
|
15268
|
+
}
|
|
15269
|
+
else
|
|
15270
|
+
ccan = this.livs[i_2].gruppo_parallelo;
|
|
15271
|
+
}
|
|
15272
|
+
}
|
|
15273
|
+
/** @type {?} */
|
|
15262
15274
|
var a;
|
|
15263
15275
|
if (!this.app_info.documento_pubblico)
|
|
15264
|
-
a = new Array(this.m_autori, this.m_lettori, 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);
|
|
15276
|
+
a = new Array(this.m_autori, this.m_lettori, 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);
|
|
15265
15277
|
else
|
|
15266
|
-
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);
|
|
15278
|
+
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);
|
|
15267
15279
|
/** @type {?} */
|
|
15268
15280
|
var t = new Array();
|
|
15269
|
-
for (var
|
|
15281
|
+
for (var i_3 = 0; i_3 < a.length; i_3++)
|
|
15270
15282
|
t.push('string');
|
|
15271
15283
|
this.m_crea_att = 1;
|
|
15272
15284
|
if (this.m_liv >= 900)
|
|
@@ -15279,6 +15291,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15279
15291
|
if (this.nlevel != null)
|
|
15280
15292
|
if (this.nlevel.descri_livello != null)
|
|
15281
15293
|
this.m_oper = this.m_oper + " -> " + this.nlevel.descri_livello;
|
|
15294
|
+
console.log('ccan ', ccan);
|
|
15282
15295
|
/** @type {?} */
|
|
15283
15296
|
var p = new QParam();
|
|
15284
15297
|
p.sql = "doWKF";
|
|
@@ -15399,11 +15412,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15399
15412
|
if (data.result_msg == "OK") {
|
|
15400
15413
|
/** @type {?} */
|
|
15401
15414
|
var lista_p = _this.user_idp;
|
|
15402
|
-
for (var
|
|
15403
|
-
if (lista_p.indexOf(data.result_data[
|
|
15404
|
-
console.log('username:', data.result_data[
|
|
15415
|
+
for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
|
|
15416
|
+
if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
|
|
15417
|
+
console.log('username:', data.result_data[i_4].username);
|
|
15405
15418
|
lista_p += ',';
|
|
15406
|
-
lista_p += data.result_data[
|
|
15419
|
+
lista_p += data.result_data[i_4].username;
|
|
15407
15420
|
}
|
|
15408
15421
|
console.log('lista_p ', lista_p);
|
|
15409
15422
|
_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);
|
|
@@ -15425,11 +15438,11 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
15425
15438
|
if (data.result_msg == "OK") {
|
|
15426
15439
|
/** @type {?} */
|
|
15427
15440
|
var lista_p = _this.user_idp;
|
|
15428
|
-
for (var
|
|
15429
|
-
if (lista_p.indexOf(data.result_data[
|
|
15430
|
-
console.log('username:', data.result_data[
|
|
15441
|
+
for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
|
|
15442
|
+
if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
|
|
15443
|
+
console.log('username:', data.result_data[i_5].username);
|
|
15431
15444
|
lista_p += ',';
|
|
15432
|
-
lista_p += data.result_data[
|
|
15445
|
+
lista_p += data.result_data[i_5].username;
|
|
15433
15446
|
}
|
|
15434
15447
|
_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);
|
|
15435
15448
|
}
|
|
@@ -18015,29 +18028,23 @@ var FHGuard = /** @class */ (function () {
|
|
|
18015
18028
|
function (next, state) {
|
|
18016
18029
|
var _this = this;
|
|
18017
18030
|
this.routingDestination = next.url[0].path;
|
|
18018
|
-
console.log('qui1');
|
|
18019
18031
|
if (this.routingDestination == '')
|
|
18020
18032
|
return true;
|
|
18021
18033
|
if (this.routingDestination == 'login' || this.routingDestination == 'rp' || this.routingDestination == 'pr' || this.routingDestination == '/')
|
|
18022
18034
|
return true;
|
|
18023
|
-
console.log('qui2');
|
|
18024
18035
|
if (this.auth.checkCredentials()) {
|
|
18025
|
-
console.log('qui3');
|
|
18026
18036
|
if (this.routingDestination == 'home')
|
|
18027
18037
|
return true;
|
|
18028
18038
|
//console.log('canActivate 1');
|
|
18029
18039
|
if (this.app_s.user_isadmin != null)
|
|
18030
18040
|
if (this.app_s.user_isadmin == "1")
|
|
18031
18041
|
return true;
|
|
18032
|
-
console.log('qui4');
|
|
18033
18042
|
return new Promise((/**
|
|
18034
18043
|
* @param {?} resolve
|
|
18035
18044
|
* @return {?}
|
|
18036
18045
|
*/
|
|
18037
18046
|
function (resolve) {
|
|
18038
|
-
console.log('qui5');
|
|
18039
18047
|
if (_this.arr_accessi != null) {
|
|
18040
|
-
console.log('qui6');
|
|
18041
18048
|
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
18042
18049
|
if (_this.arr_accessi[i].type == 'M')
|
|
18043
18050
|
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
@@ -18051,7 +18058,6 @@ var FHGuard = /** @class */ (function () {
|
|
|
18051
18058
|
resolve(false);
|
|
18052
18059
|
return;
|
|
18053
18060
|
}
|
|
18054
|
-
console.log('qui7');
|
|
18055
18061
|
//console.log('canActivate 5');
|
|
18056
18062
|
/** @type {?} */
|
|
18057
18063
|
var p = new QParam();
|
|
@@ -18067,16 +18073,18 @@ var FHGuard = /** @class */ (function () {
|
|
|
18067
18073
|
if (data != null)
|
|
18068
18074
|
if (data.result_msg == "OK")
|
|
18069
18075
|
if (data.result_data.length > 0) {
|
|
18070
|
-
console.log('qui8');
|
|
18071
18076
|
//console.log('canActivate 6');
|
|
18072
18077
|
_this.appService.user_roles = data.result_data[0].roles;
|
|
18073
18078
|
if (_this.appService.user_roles.length > 0)
|
|
18074
18079
|
_this.appService.user_roles = _this.appService.user_roles.substr(1);
|
|
18075
18080
|
_this.appService.user_isadmin = data.result_data[0].isadmin;
|
|
18076
18081
|
_this.appService.user = data.result_data[0].username;
|
|
18082
|
+
console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
|
|
18077
18083
|
if (_this.app_s.user_isadmin != null)
|
|
18078
|
-
if (_this.app_s.user_isadmin == "1")
|
|
18079
|
-
|
|
18084
|
+
if (_this.app_s.user_isadmin == "1") {
|
|
18085
|
+
resolve(true);
|
|
18086
|
+
return;
|
|
18087
|
+
}
|
|
18080
18088
|
/** @type {?} */
|
|
18081
18089
|
var p_1 = new QParam();
|
|
18082
18090
|
p_1.sql = "SELECT_APPS_USER_ALL";
|
|
@@ -18089,10 +18097,9 @@ var FHGuard = /** @class */ (function () {
|
|
|
18089
18097
|
* @return {?}
|
|
18090
18098
|
*/
|
|
18091
18099
|
function (data) {
|
|
18092
|
-
console.log('qui9');
|
|
18093
18100
|
_this.arr_accessi = data.result_data;
|
|
18094
18101
|
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
18095
|
-
|
|
18102
|
+
console.log('[' + _this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + _this.routingDestination.split('/')[0] + ']');
|
|
18096
18103
|
if (_this.arr_accessi[i].type == 'M') {
|
|
18097
18104
|
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
18098
18105
|
resolve(true);
|
|
@@ -18110,6 +18117,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
18110
18117
|
else {
|
|
18111
18118
|
_this.toast.error("ACCESS DENIED [0X0002]");
|
|
18112
18119
|
_this.slimLoadingBarService.complete();
|
|
18120
|
+
resolve(false);
|
|
18113
18121
|
return false;
|
|
18114
18122
|
}
|
|
18115
18123
|
}));
|
|
@@ -18117,7 +18125,6 @@ var FHGuard = /** @class */ (function () {
|
|
|
18117
18125
|
else {
|
|
18118
18126
|
/** @type {?} */
|
|
18119
18127
|
var p_2 = new QParam();
|
|
18120
|
-
console.log('qui10');
|
|
18121
18128
|
p_2.sql = "SELECT_APPS_USER_ALL";
|
|
18122
18129
|
_this.appService.getState().app_enabled = new Array();
|
|
18123
18130
|
p_2.types = ['string'];
|
|
@@ -18130,9 +18137,7 @@ var FHGuard = /** @class */ (function () {
|
|
|
18130
18137
|
function (data) {
|
|
18131
18138
|
//console.log('canActivate 9');
|
|
18132
18139
|
_this.arr_accessi = data.result_data;
|
|
18133
|
-
console.log('qui11');
|
|
18134
18140
|
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
18135
|
-
console.log('qui12');
|
|
18136
18141
|
//console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
|
|
18137
18142
|
if (_this.arr_accessi[i].type == 'M') {
|
|
18138
18143
|
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|