@fluxhub/fluxhub-lib 1.0.295 → 1.0.297
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 +26 -18
- 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/win_riassegna_select_user.html +4 -4
- package/docs/coverage.html +1 -1
- package/docs/guards/FHGuard.html +1 -17
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/auth_guard.js +19 -19
- package/esm2015/lib/wkf_engine/win_riassegna_select_user.js +4 -4
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +9 -4
- package/esm5/lib/auth_guard.js +19 -18
- package/esm5/lib/wkf_engine/win_riassegna_select_user.js +2 -2
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +9 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +29 -22
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +27 -19
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/auth_guard.d.ts +2 -3
- 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,
|
|
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';
|
|
@@ -4822,13 +4822,13 @@ win_riassegna_select_user.decorators = [
|
|
|
4822
4822
|
<mat-toolbar>{{title}}
|
|
4823
4823
|
</mat-toolbar>
|
|
4824
4824
|
|
|
4825
|
-
<div mat-dialog-content style="min-width:700px">
|
|
4825
|
+
<div mat-dialog-content style="min-width:700px" fxLayout="column">
|
|
4826
4826
|
|
|
4827
|
-
<div style="
|
|
4827
|
+
<div style="min-width:370px;">
|
|
4828
4828
|
<FHPickUsers #up [users_list]="arrAutori" [vis_buttons]="false"></FHPickUsers>
|
|
4829
4829
|
</div>
|
|
4830
4830
|
<br><br><br>
|
|
4831
|
-
|
|
4831
|
+
<br><br>
|
|
4832
4832
|
<mat-form-field [hidden]="commento_hidden" >
|
|
4833
4833
|
<textarea matInput placeholder="Commento {{nota_commento}}" [(ngModel)]="nota"
|
|
4834
4834
|
rows="6"></textarea>
|
|
@@ -15051,7 +15051,7 @@ class dati_aggiuntivi {
|
|
|
15051
15051
|
*/
|
|
15052
15052
|
open_wkf() {
|
|
15053
15053
|
/** @type {?} */
|
|
15054
|
-
let dialogRef = this.m_dialog.open(win_log, { 'disableClose': true });
|
|
15054
|
+
let dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "90%" });
|
|
15055
15055
|
dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
|
|
15056
15056
|
dialogRef.componentInstance.lettori = this.m_obj.lettori;
|
|
15057
15057
|
dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
|
|
@@ -15071,7 +15071,7 @@ class dati_aggiuntivi {
|
|
|
15071
15071
|
*/
|
|
15072
15072
|
open_commenti() {
|
|
15073
15073
|
/** @type {?} */
|
|
15074
|
-
let dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true });
|
|
15074
|
+
let dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
|
|
15075
15075
|
dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
|
|
15076
15076
|
dialogRef.componentInstance.lettori = this.m_obj.lettori;
|
|
15077
15077
|
dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
|
|
@@ -15091,7 +15091,7 @@ class dati_aggiuntivi {
|
|
|
15091
15091
|
*/
|
|
15092
15092
|
open_upload() {
|
|
15093
15093
|
/** @type {?} */
|
|
15094
|
-
let dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true });
|
|
15094
|
+
let dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true, width: "90%" });
|
|
15095
15095
|
dialogRef.afterClosed().subscribe((/**
|
|
15096
15096
|
* @param {?} result
|
|
15097
15097
|
* @return {?}
|
|
@@ -15151,6 +15151,11 @@ class dati_aggiuntivi {
|
|
|
15151
15151
|
p.types.push(arr[i].types);
|
|
15152
15152
|
p.names.push(arr[i].names);
|
|
15153
15153
|
if (arr[i].values != null) {
|
|
15154
|
+
if (arr[i].types[i] == 'boolean')
|
|
15155
|
+
if (arr[i].values[i])
|
|
15156
|
+
p.values.push('1');
|
|
15157
|
+
else
|
|
15158
|
+
p.values.push('0');
|
|
15154
15159
|
if (arr[i].types == 'int')
|
|
15155
15160
|
if (isNaN(arr[i].values))
|
|
15156
15161
|
p.values.push('0');
|
|
@@ -17298,16 +17303,14 @@ class FHGuard {
|
|
|
17298
17303
|
* @param {?} router
|
|
17299
17304
|
* @param {?} toast
|
|
17300
17305
|
* @param {?} querys
|
|
17301
|
-
* @param {?} appService
|
|
17302
17306
|
* @param {?} slimLoadingBarService
|
|
17303
17307
|
* @param {?} app_s
|
|
17304
17308
|
*/
|
|
17305
|
-
constructor(http, auth, router, toast, querys,
|
|
17309
|
+
constructor(http, auth, router, toast, querys, slimLoadingBarService, app_s) {
|
|
17306
17310
|
this.http = http;
|
|
17307
17311
|
this.auth = auth;
|
|
17308
17312
|
this.toast = toast;
|
|
17309
17313
|
this.querys = querys;
|
|
17310
|
-
this.appService = appService;
|
|
17311
17314
|
this.slimLoadingBarService = slimLoadingBarService;
|
|
17312
17315
|
this.app_s = app_s;
|
|
17313
17316
|
this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT;
|
|
@@ -17357,7 +17360,7 @@ class FHGuard {
|
|
|
17357
17360
|
p.sql = "SELECT_USER_ACCESS_AUTH";
|
|
17358
17361
|
p.values = [];
|
|
17359
17362
|
p.types = [];
|
|
17360
|
-
if (this.
|
|
17363
|
+
if (this.app_s.user == null) {
|
|
17361
17364
|
this.querys.doQuery(p).subscribe((/**
|
|
17362
17365
|
* @param {?} data
|
|
17363
17366
|
* @return {?}
|
|
@@ -17367,11 +17370,11 @@ class FHGuard {
|
|
|
17367
17370
|
if (data.result_msg == "OK")
|
|
17368
17371
|
if (data.result_data.length > 0) {
|
|
17369
17372
|
//console.log('canActivate 6');
|
|
17370
|
-
this.
|
|
17371
|
-
if (this.
|
|
17372
|
-
this.
|
|
17373
|
-
this.
|
|
17374
|
-
this.
|
|
17373
|
+
this.app_s.user_roles = data.result_data[0].roles;
|
|
17374
|
+
if (this.app_s.user_roles.length > 0)
|
|
17375
|
+
this.app_s.user_roles = this.app_s.user_roles.substr(1);
|
|
17376
|
+
this.app_s.user_isadmin = data.result_data[0].isadmin;
|
|
17377
|
+
this.app_s.user = data.result_data[0].username;
|
|
17375
17378
|
console.log('this.app_s.user_isadmin ', this.app_s.user_isadmin);
|
|
17376
17379
|
if (this.app_s.user_isadmin != null)
|
|
17377
17380
|
if (this.app_s.user_isadmin == "1") {
|
|
@@ -17381,9 +17384,9 @@ class FHGuard {
|
|
|
17381
17384
|
/** @type {?} */
|
|
17382
17385
|
let p = new QParam();
|
|
17383
17386
|
p.sql = "SELECT_APPS_USER_ALL";
|
|
17384
|
-
this.
|
|
17387
|
+
this.app_s.getState().app_enabled = new Array();
|
|
17385
17388
|
p.types = ['string'];
|
|
17386
|
-
p.values = [this.
|
|
17389
|
+
p.values = [this.app_s.user];
|
|
17387
17390
|
//console.log('canActivate 8');
|
|
17388
17391
|
this.querys.doQuery(p).subscribe((/**
|
|
17389
17392
|
* @param {?} data
|
|
@@ -17418,10 +17421,15 @@ class FHGuard {
|
|
|
17418
17421
|
else {
|
|
17419
17422
|
/** @type {?} */
|
|
17420
17423
|
let p = new QParam();
|
|
17424
|
+
if (this.app_s.user_isadmin != null)
|
|
17425
|
+
if (this.app_s.user_isadmin == "1") {
|
|
17426
|
+
resolve(true);
|
|
17427
|
+
return;
|
|
17428
|
+
}
|
|
17421
17429
|
p.sql = "SELECT_APPS_USER_ALL";
|
|
17422
|
-
this.
|
|
17430
|
+
this.app_s.getState().app_enabled = new Array();
|
|
17423
17431
|
p.types = ['string'];
|
|
17424
|
-
p.values = [this.
|
|
17432
|
+
p.values = [this.app_s.user];
|
|
17425
17433
|
//console.log('canActivate 8');
|
|
17426
17434
|
this.querys.doQuery(p).subscribe((/**
|
|
17427
17435
|
* @param {?} data
|
|
@@ -17440,7 +17448,7 @@ class FHGuard {
|
|
|
17440
17448
|
}
|
|
17441
17449
|
}
|
|
17442
17450
|
//console.log('canActivate 11');
|
|
17443
|
-
this.toast.error("ACCESS DENIED [
|
|
17451
|
+
this.toast.error("ACCESS DENIED [0X0005]");
|
|
17444
17452
|
resolve(false);
|
|
17445
17453
|
this.slimLoadingBarService.complete();
|
|
17446
17454
|
return;
|
|
@@ -17466,7 +17474,6 @@ FHGuard.ctorParameters = () => [
|
|
|
17466
17474
|
{ type: Router },
|
|
17467
17475
|
{ type: ToastrService },
|
|
17468
17476
|
{ type: QueryService },
|
|
17469
|
-
{ type: AppService },
|
|
17470
17477
|
{ type: SlimLoadingBarService },
|
|
17471
17478
|
{ type: AppService }
|
|
17472
17479
|
];
|