@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.
@@ -11908,7 +11908,7 @@
11908
11908
  };
11909
11909
  win_riassegna_select_user.decorators = [
11910
11910
  { type: i0.Component, args: [{
11911
- template: "\n <mat-toolbar>{{title}}\n </mat-toolbar>\n\n <div mat-dialog-content style=\"min-width:700px\">\n\n <div style=\"height:370px;\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <br><br><br>\n\n <mat-form-field [hidden]=\"commento_hidden\" >\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [(ngModel)]=\"nota\"\n rows=\"6\"></textarea>\n\n </mat-form-field>\n\n \n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;\n <button mat-raised-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
11911
+ template: "\n <mat-toolbar>{{title}}\n </mat-toolbar>\n\n <div mat-dialog-content style=\"min-width:700px\" fxLayout=\"column\">\n\n <div style=\"min-width:370px;\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <br><br><br>\n <br><br>\n <mat-form-field [hidden]=\"commento_hidden\" >\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [(ngModel)]=\"nota\"\n rows=\"6\"></textarea>\n\n </mat-form-field>\n\n \n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;\n <button mat-raised-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
11912
11912
  }] }
11913
11913
  ];
11914
11914
  /** @nocollapse */
@@ -15225,12 +15225,11 @@
15225
15225
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15226
15226
  */
15227
15227
  var FHGuard = /** @class */ (function () {
15228
- function FHGuard(http$$1, auth, router, toast, querys, appService, slimLoadingBarService, app_s) {
15228
+ function FHGuard(http$$1, auth, router, toast, querys, slimLoadingBarService, app_s) {
15229
15229
  this.http = http$$1;
15230
15230
  this.auth = auth;
15231
15231
  this.toast = toast;
15232
15232
  this.querys = querys;
15233
- this.appService = appService;
15234
15233
  this.slimLoadingBarService = slimLoadingBarService;
15235
15234
  this.app_s = app_s;
15236
15235
  this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT;
@@ -15285,7 +15284,7 @@
15285
15284
  p.sql = "SELECT_USER_ACCESS_AUTH";
15286
15285
  p.values = [];
15287
15286
  p.types = [];
15288
- if (_this.appService.user == null) {
15287
+ if (_this.app_s.user == null) {
15289
15288
  _this.querys.doQuery(p).subscribe(( /**
15290
15289
  * @param {?} data
15291
15290
  * @return {?}
@@ -15294,11 +15293,11 @@
15294
15293
  if (data.result_msg == "OK")
15295
15294
  if (data.result_data.length > 0) {
15296
15295
  //console.log('canActivate 6');
15297
- _this.appService.user_roles = data.result_data[0].roles;
15298
- if (_this.appService.user_roles.length > 0)
15299
- _this.appService.user_roles = _this.appService.user_roles.substr(1);
15300
- _this.appService.user_isadmin = data.result_data[0].isadmin;
15301
- _this.appService.user = data.result_data[0].username;
15296
+ _this.app_s.user_roles = data.result_data[0].roles;
15297
+ if (_this.app_s.user_roles.length > 0)
15298
+ _this.app_s.user_roles = _this.app_s.user_roles.substr(1);
15299
+ _this.app_s.user_isadmin = data.result_data[0].isadmin;
15300
+ _this.app_s.user = data.result_data[0].username;
15302
15301
  console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
15303
15302
  if (_this.app_s.user_isadmin != null)
15304
15303
  if (_this.app_s.user_isadmin == "1") {
@@ -15308,9 +15307,9 @@
15308
15307
  /** @type {?} */
15309
15308
  var p_1 = new QParam();
15310
15309
  p_1.sql = "SELECT_APPS_USER_ALL";
15311
- _this.appService.getState().app_enabled = new Array();
15310
+ _this.app_s.getState().app_enabled = new Array();
15312
15311
  p_1.types = ['string'];
15313
- p_1.values = [_this.appService.user];
15312
+ p_1.values = [_this.app_s.user];
15314
15313
  //console.log('canActivate 8');
15315
15314
  _this.querys.doQuery(p_1).subscribe(( /**
15316
15315
  * @param {?} data
@@ -15344,10 +15343,15 @@
15344
15343
  else {
15345
15344
  /** @type {?} */
15346
15345
  var p_2 = new QParam();
15346
+ if (_this.app_s.user_isadmin != null)
15347
+ if (_this.app_s.user_isadmin == "1") {
15348
+ resolve(true);
15349
+ return;
15350
+ }
15347
15351
  p_2.sql = "SELECT_APPS_USER_ALL";
15348
- _this.appService.getState().app_enabled = new Array();
15352
+ _this.app_s.getState().app_enabled = new Array();
15349
15353
  p_2.types = ['string'];
15350
- p_2.values = [_this.appService.user];
15354
+ p_2.values = [_this.app_s.user];
15351
15355
  //console.log('canActivate 8');
15352
15356
  _this.querys.doQuery(p_2).subscribe(( /**
15353
15357
  * @param {?} data
@@ -15365,7 +15369,7 @@
15365
15369
  }
15366
15370
  }
15367
15371
  //console.log('canActivate 11');
15368
- _this.toast.error("ACCESS DENIED [0X0001]");
15372
+ _this.toast.error("ACCESS DENIED [0X0005]");
15369
15373
  resolve(false);
15370
15374
  _this.slimLoadingBarService.complete();
15371
15375
  return;
@@ -15391,7 +15395,6 @@
15391
15395
  { type: i4.Router },
15392
15396
  { type: i3.ToastrService },
15393
15397
  { type: QueryService },
15394
- { type: AppService },
15395
15398
  { type: ng2SlimLoadingBar.SlimLoadingBarService },
15396
15399
  { type: AppService }
15397
15400
  ];
@@ -17306,7 +17309,7 @@
17306
17309
  function () {
17307
17310
  var _this = this;
17308
17311
  /** @type {?} */
17309
- var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true });
17312
+ var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "90%" });
17310
17313
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
17311
17314
  dialogRef.componentInstance.lettori = this.m_obj.lettori;
17312
17315
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
@@ -17329,7 +17332,7 @@
17329
17332
  function () {
17330
17333
  var _this = this;
17331
17334
  /** @type {?} */
17332
- var dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true });
17335
+ var dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
17333
17336
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
17334
17337
  dialogRef.componentInstance.lettori = this.m_obj.lettori;
17335
17338
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
@@ -17352,7 +17355,7 @@
17352
17355
  function () {
17353
17356
  var _this = this;
17354
17357
  /** @type {?} */
17355
- var dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true });
17358
+ var dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true, width: "90%" });
17356
17359
  dialogRef.afterClosed().subscribe(( /**
17357
17360
  * @param {?} result
17358
17361
  * @return {?}
@@ -17417,6 +17420,11 @@
17417
17420
  p.types.push(arr[i].types);
17418
17421
  p.names.push(arr[i].names);
17419
17422
  if (arr[i].values != null) {
17423
+ if (arr[i].types[i] == 'boolean')
17424
+ if (arr[i].values[i])
17425
+ p.values.push('1');
17426
+ else
17427
+ p.values.push('0');
17420
17428
  if (arr[i].types == 'int')
17421
17429
  if (isNaN(arr[i].values))
17422
17430
  p.values.push('0');