@fluxhub/fluxhub-lib 9.0.74 → 9.0.75

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.
@@ -9043,16 +9043,37 @@
9043
9043
  }());
9044
9044
 
9045
9045
  var FHListPick = /** @class */ (function () {
9046
- function FHListPick(dialogRef, toastr, m_appService) {
9046
+ function FHListPick(dialogRef, toastr, m_appService, data) {
9047
9047
  this.dialogRef = dialogRef;
9048
9048
  this.toastr = toastr;
9049
9049
  this.m_appService = m_appService;
9050
+ this.data = data;
9050
9051
  this.label = "";
9051
9052
  this.separator = ",";
9052
9053
  this.title = "";
9053
9054
  this.sql = "";
9054
9055
  this.single_sel = false;
9055
9056
  this.sel_values = "";
9057
+ if (data != null) {
9058
+ if (data.sql != null)
9059
+ this.sql = data.sql;
9060
+ if (data.types != null)
9061
+ this.types = data.types;
9062
+ if (data.values != null)
9063
+ this.values = data.values;
9064
+ if (data.single_sel != null)
9065
+ this.values = data.single_sel;
9066
+ if (data.sel_values != null)
9067
+ this.sel_values = data.sel_values;
9068
+ if (data.title != null)
9069
+ this.title = data.title;
9070
+ if (data.separator != null)
9071
+ this.separator = data.separator;
9072
+ if (data.label != null)
9073
+ this.label = data.label;
9074
+ if (data.sql != null)
9075
+ this.doFill();
9076
+ }
9056
9077
  }
9057
9078
  FHListPick.prototype.close = function () { this.dialogRef.close(null); };
9058
9079
  FHListPick.prototype.doFill = function () {
@@ -9080,7 +9101,8 @@
9080
9101
  FHListPick.ctorParameters = function () { return [
9081
9102
  { type: dialog.MatDialogRef },
9082
9103
  { type: ngxToastr.ToastrService },
9083
- { type: AppService }
9104
+ { type: AppService },
9105
+ { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
9084
9106
  ]; };
9085
9107
  __decorate([
9086
9108
  core.ViewChild('cmb_sel'),
@@ -9091,7 +9113,8 @@
9091
9113
  selector: 'fhlistpick',
9092
9114
  template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"min-width:700px;min-height:500px;font-size: 12px\">\n <FHList #cmb_sel [label]=\"label\" [single_sel]=\"single_sel\" [separator]=\"separator\" style=\"width:100%;height:100%\" init_fill=\"false\" (selchange)=\"ok_single()\"></FHList>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\n<div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n\n <button mat-flat-button color=\"primary\" *ngIf=\"!single_sel\" (click)=\"ok()\">OK</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">ANNULLA</button>\n</div>\n </mat-dialog-actions>\n "
9093
9115
  }),
9094
- __metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, AppService])
9116
+ __param(3, core.Inject(dialog.MAT_DIALOG_DATA)),
9117
+ __metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, AppService, Object])
9095
9118
  ], FHListPick);
9096
9119
  return FHListPick;
9097
9120
  }());
@@ -14817,13 +14840,13 @@
14817
14840
  });
14818
14841
  }
14819
14842
  else {
14820
- console.log('this.app_s ', _this.app_s);
14843
+ // console.log('this.app_s ',this.app_s);
14821
14844
  var p_2 = new QParam();
14822
- console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
14823
- console.log('this.app_s.user_isadminsss ', _this.app_s.user_isadmin + '');
14845
+ // console.log('this.app_s.user_isadmin ',this.app_s.user_isadmin);
14846
+ // console.log('this.app_s.user_isadminsss ',this.app_s.user_isadmin+'');
14824
14847
  if (_this.app_s.user_isadmin != null)
14825
14848
  if (_this.app_s.user_isadmin + '' == '1') {
14826
- console.log('resolve true');
14849
+ // console.log('resolve true');
14827
14850
  resolve(true);
14828
14851
  return;
14829
14852
  }
@@ -14844,7 +14867,7 @@
14844
14867
  }
14845
14868
  }
14846
14869
  }
14847
- console.log(_this.arr_accessi, ' ', _this.routingDestination);
14870
+ // console.log(this.arr_accessi,' ',this.routingDestination);
14848
14871
  _this.toast.error("ACCESS DENIED [0X0005]");
14849
14872
  resolve(false);
14850
14873
  _this.slimLoadingBarService.complete();