@fluxhub/fluxhub-lib 1.0.428 → 1.0.430

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.
@@ -13442,10 +13442,15 @@ var win_commenti = /** @class */ (function () {
13442
13442
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13443
13443
  */
13444
13444
  var win_info_doc = /** @class */ (function () {
13445
- function win_info_doc(dialogRef, m_appService) {
13445
+ function win_info_doc(dialogRef, m_appService, toast) {
13446
13446
  this.dialogRef = dialogRef;
13447
13447
  this.m_appService = m_appService;
13448
+ this.toast = toast;
13448
13449
  this.hide_richiedente = false;
13450
+ if (this.m_appService.getState().wkf_doc_info.codice == null) {
13451
+ this.toast.info('Info non disponibili');
13452
+ return;
13453
+ }
13449
13454
  this.codice = this.m_appService.getState().wkf_doc_info.codice;
13450
13455
  this.data_richiesta = this.m_appService.getState().wkf_doc_info.data_richiesta;
13451
13456
  this.richiedente = this.m_appService.getState().wkf_doc_info.richiedente;
@@ -13471,7 +13476,8 @@ var win_info_doc = /** @class */ (function () {
13471
13476
  /** @nocollapse */
13472
13477
  win_info_doc.ctorParameters = function () { return [
13473
13478
  { type: MatDialogRef },
13474
- { type: AppService }
13479
+ { type: AppService },
13480
+ { type: ToastrService }
13475
13481
  ]; };
13476
13482
  return win_info_doc;
13477
13483
  }());
@@ -17580,7 +17586,7 @@ var wkf_header_bar = /** @class */ (function () {
17580
17586
  wkf_header_bar.decorators = [
17581
17587
  { type: Component, args: [{
17582
17588
  selector: 'wkf_header_bar',
17583
- template: "\n\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" style=\"background-color: #F5F5F5\">\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n\n<button mat-flat-button (click)=\"back()\" style=\"background-color: #F5F5F5\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>\n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n\n</div>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n\n\n<button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>\n<button mat-flat-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon>&nbsp;&nbsp;Commenti {{dt_agg?.comm_c}}</button>\n<button mat-flat-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon>&nbsp;&nbsp;Allegati {{dt_agg?.all_c}}</button>\n<button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>&nbsp;&nbsp;Workflow</button>\n\n</div>\n</div>\n\n "
17589
+ template: "\n\n<div fxLayout=\"row\" fxLayoutGap=\"3px\" style=\"background-color: #F5F5F5\">\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" *ngIf=\"!m_appService.getState().pageFullscreen || edit_button || respingi_button\">\n\n<button mat-flat-button (click)=\"back()\" *ngIf=\"!m_appService.getState().pageFullscreen\">Indietro</button>\n <button mat-flat-button (click)=\"evt_salv()\" *ngIf=\"edit_button && !m_appService.getState().pageFullscreen\" color=\"primary\" >Salva</button>\n <button mat-flat-button (click)=\"procedi()\" *ngIf=\"edit_button && procedi_button\" color=\"accent\" >Procedi</button>\n <button mat-flat-button (click)=\"respingi()\" *ngIf=\"respingi_button\" color=\"warn\" >Respingi</button>\n<!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button>&nbsp;&nbsp;\n-->\n\n</div>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"3px\" >\n\n\n<button mat-flat-button (click)=\"open_info()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>info_outline</mat-icon>&nbsp;&nbsp;Info Doc</button>\n<button mat-flat-button (click)=\"open_commenti()\"> <mat-icon>insert_comment</mat-icon>&nbsp;&nbsp;Commenti {{dt_agg?.comm_c}}</button>\n<button mat-flat-button (click)=\"open_upload()\"> <mat-icon>attach_file</mat-icon>&nbsp;&nbsp;Allegati {{dt_agg?.all_c}}</button>\n<button mat-flat-button (click)=\"open_wkf()\" *ngIf=\"!m_appService.getState().pageFullscreen\"> <mat-icon>transfer_within_a_station</mat-icon>&nbsp;&nbsp;Workflow</button>\n\n</div>\n</div>\n\n "
17584
17590
  }] }
17585
17591
  ];
17586
17592
  /** @nocollapse */
@@ -20076,7 +20082,7 @@ var FHGuard = /** @class */ (function () {
20076
20082
  /** @type {?} */
20077
20083
  var p_1 = new QParam();
20078
20084
  p_1.sql = "SELECT_APPS_USER_ALL";
20079
- _this.app_s.getState().app_enabled = new Array();
20085
+ _this.app_s.getState().app_enabled = [];
20080
20086
  p_1.types = ['string'];
20081
20087
  p_1.values = [_this.app_s.user];
20082
20088
  //console.log('canActivate 8');
@@ -20111,15 +20117,16 @@ var FHGuard = /** @class */ (function () {
20111
20117
  }));
20112
20118
  }
20113
20119
  else {
20120
+ console.log('this.app_s ', _this.app_s);
20114
20121
  /** @type {?} */
20115
20122
  var p_2 = new QParam();
20116
20123
  if (_this.app_s.user_isadmin != null)
20117
- if (_this.app_s.user_isadmin == "1") {
20124
+ if (_this.app_s.user_isadmin + '' == '1') {
20118
20125
  resolve(true);
20119
20126
  return;
20120
20127
  }
20121
20128
  p_2.sql = "SELECT_APPS_USER_ALL";
20122
- _this.app_s.getState().app_enabled = new Array();
20129
+ _this.app_s.getState().app_enabled = [];
20123
20130
  p_2.types = ['string'];
20124
20131
  p_2.values = [_this.app_s.user];
20125
20132
  //console.log('canActivate 8');
@@ -20139,7 +20146,7 @@ var FHGuard = /** @class */ (function () {
20139
20146
  }
20140
20147
  }
20141
20148
  }
20142
- //console.log('canActivate 11');
20149
+ console.log(_this.arr_accessi, ' ', _this.routingDestination);
20143
20150
  _this.toast.error("ACCESS DENIED [0X0005]");
20144
20151
  resolve(false);
20145
20152
  _this.slimLoadingBarService.complete();