@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
|
@@ -33,7 +33,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
33
33
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
34
34
|
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';
|
|
35
35
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
36
|
-
import { Injectable, Component, Directive, Inject, PLATFORM_ID,
|
|
36
|
+
import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
|
|
37
37
|
import { Http } from '@angular/http';
|
|
38
38
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
39
39
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -14675,11 +14675,23 @@ class dati_aggiuntivi {
|
|
|
14675
14675
|
}));
|
|
14676
14676
|
}
|
|
14677
14677
|
/** @type {?} */
|
|
14678
|
+
let ccan = "$$";
|
|
14679
|
+
for (let i = 0; i < this.livs.length; i++) {
|
|
14680
|
+
if (this.livs[i].livello == this.clevel.livello && this.livs[i].idp == this.app_s.user) {
|
|
14681
|
+
if (ccan != "$$") {
|
|
14682
|
+
ccan = "$$";
|
|
14683
|
+
break;
|
|
14684
|
+
}
|
|
14685
|
+
else
|
|
14686
|
+
ccan = this.livs[i].gruppo_parallelo;
|
|
14687
|
+
}
|
|
14688
|
+
}
|
|
14689
|
+
/** @type {?} */
|
|
14678
14690
|
let a;
|
|
14679
14691
|
if (!this.app_info.documento_pubblico)
|
|
14680
|
-
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);
|
|
14692
|
+
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);
|
|
14681
14693
|
else
|
|
14682
|
-
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);
|
|
14694
|
+
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);
|
|
14683
14695
|
/** @type {?} */
|
|
14684
14696
|
let t = new Array();
|
|
14685
14697
|
for (let i = 0; i < a.length; i++)
|
|
@@ -14695,6 +14707,7 @@ class dati_aggiuntivi {
|
|
|
14695
14707
|
if (this.nlevel != null)
|
|
14696
14708
|
if (this.nlevel.descri_livello != null)
|
|
14697
14709
|
this.m_oper = this.m_oper + " -> " + this.nlevel.descri_livello;
|
|
14710
|
+
console.log('ccan ', ccan);
|
|
14698
14711
|
/** @type {?} */
|
|
14699
14712
|
let p = new QParam();
|
|
14700
14713
|
p.sql = "doWKF";
|
|
@@ -17288,29 +17301,23 @@ class FHGuard {
|
|
|
17288
17301
|
*/
|
|
17289
17302
|
canActivate(next, state) {
|
|
17290
17303
|
this.routingDestination = next.url[0].path;
|
|
17291
|
-
console.log('qui1');
|
|
17292
17304
|
if (this.routingDestination == '')
|
|
17293
17305
|
return true;
|
|
17294
17306
|
if (this.routingDestination == 'login' || this.routingDestination == 'rp' || this.routingDestination == 'pr' || this.routingDestination == '/')
|
|
17295
17307
|
return true;
|
|
17296
|
-
console.log('qui2');
|
|
17297
17308
|
if (this.auth.checkCredentials()) {
|
|
17298
|
-
console.log('qui3');
|
|
17299
17309
|
if (this.routingDestination == 'home')
|
|
17300
17310
|
return true;
|
|
17301
17311
|
//console.log('canActivate 1');
|
|
17302
17312
|
if (this.app_s.user_isadmin != null)
|
|
17303
17313
|
if (this.app_s.user_isadmin == "1")
|
|
17304
17314
|
return true;
|
|
17305
|
-
console.log('qui4');
|
|
17306
17315
|
return new Promise((/**
|
|
17307
17316
|
* @param {?} resolve
|
|
17308
17317
|
* @return {?}
|
|
17309
17318
|
*/
|
|
17310
17319
|
(resolve) => {
|
|
17311
|
-
console.log('qui5');
|
|
17312
17320
|
if (this.arr_accessi != null) {
|
|
17313
|
-
console.log('qui6');
|
|
17314
17321
|
for (let i = 0; i < this.arr_accessi.length; i++) {
|
|
17315
17322
|
if (this.arr_accessi[i].type == 'M')
|
|
17316
17323
|
if ('[' + this.arr_accessi[i].url.split('/')[0] + ']' == '[' + this.routingDestination.split('/')[0] + ']') {
|
|
@@ -17324,7 +17331,6 @@ class FHGuard {
|
|
|
17324
17331
|
resolve(false);
|
|
17325
17332
|
return;
|
|
17326
17333
|
}
|
|
17327
|
-
console.log('qui7');
|
|
17328
17334
|
//console.log('canActivate 5');
|
|
17329
17335
|
/** @type {?} */
|
|
17330
17336
|
let p = new QParam();
|
|
@@ -17340,16 +17346,18 @@ class FHGuard {
|
|
|
17340
17346
|
if (data != null)
|
|
17341
17347
|
if (data.result_msg == "OK")
|
|
17342
17348
|
if (data.result_data.length > 0) {
|
|
17343
|
-
console.log('qui8');
|
|
17344
17349
|
//console.log('canActivate 6');
|
|
17345
17350
|
this.appService.user_roles = data.result_data[0].roles;
|
|
17346
17351
|
if (this.appService.user_roles.length > 0)
|
|
17347
17352
|
this.appService.user_roles = this.appService.user_roles.substr(1);
|
|
17348
17353
|
this.appService.user_isadmin = data.result_data[0].isadmin;
|
|
17349
17354
|
this.appService.user = data.result_data[0].username;
|
|
17355
|
+
console.log('this.app_s.user_isadmin ', this.app_s.user_isadmin);
|
|
17350
17356
|
if (this.app_s.user_isadmin != null)
|
|
17351
|
-
if (this.app_s.user_isadmin == "1")
|
|
17352
|
-
|
|
17357
|
+
if (this.app_s.user_isadmin == "1") {
|
|
17358
|
+
resolve(true);
|
|
17359
|
+
return;
|
|
17360
|
+
}
|
|
17353
17361
|
/** @type {?} */
|
|
17354
17362
|
let p = new QParam();
|
|
17355
17363
|
p.sql = "SELECT_APPS_USER_ALL";
|
|
@@ -17362,10 +17370,9 @@ class FHGuard {
|
|
|
17362
17370
|
* @return {?}
|
|
17363
17371
|
*/
|
|
17364
17372
|
data => {
|
|
17365
|
-
console.log('qui9');
|
|
17366
17373
|
this.arr_accessi = data.result_data;
|
|
17367
17374
|
for (let i = 0; i < this.arr_accessi.length; i++) {
|
|
17368
|
-
|
|
17375
|
+
console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
|
|
17369
17376
|
if (this.arr_accessi[i].type == 'M') {
|
|
17370
17377
|
if ('[' + this.arr_accessi[i].url.split('/')[0] + ']' == '[' + this.routingDestination.split('/')[0] + ']') {
|
|
17371
17378
|
resolve(true);
|
|
@@ -17383,6 +17390,7 @@ class FHGuard {
|
|
|
17383
17390
|
else {
|
|
17384
17391
|
this.toast.error("ACCESS DENIED [0X0002]");
|
|
17385
17392
|
this.slimLoadingBarService.complete();
|
|
17393
|
+
resolve(false);
|
|
17386
17394
|
return false;
|
|
17387
17395
|
}
|
|
17388
17396
|
}));
|
|
@@ -17390,7 +17398,6 @@ class FHGuard {
|
|
|
17390
17398
|
else {
|
|
17391
17399
|
/** @type {?} */
|
|
17392
17400
|
let p = new QParam();
|
|
17393
|
-
console.log('qui10');
|
|
17394
17401
|
p.sql = "SELECT_APPS_USER_ALL";
|
|
17395
17402
|
this.appService.getState().app_enabled = new Array();
|
|
17396
17403
|
p.types = ['string'];
|
|
@@ -17403,9 +17410,7 @@ class FHGuard {
|
|
|
17403
17410
|
data => {
|
|
17404
17411
|
//console.log('canActivate 9');
|
|
17405
17412
|
this.arr_accessi = data.result_data;
|
|
17406
|
-
console.log('qui11');
|
|
17407
17413
|
for (let i = 0; i < this.arr_accessi.length; i++) {
|
|
17408
|
-
console.log('qui12');
|
|
17409
17414
|
//console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
|
|
17410
17415
|
if (this.arr_accessi[i].type == 'M') {
|
|
17411
17416
|
if ('[' + this.arr_accessi[i].url.split('/')[0] + ']' == '[' + this.routingDestination.split('/')[0] + ']') {
|