@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.
@@ -8910,16 +8910,37 @@ var FHNumericFieldComponent = /** @class */ (function () {
8910
8910
  }());
8911
8911
 
8912
8912
  var FHListPick = /** @class */ (function () {
8913
- function FHListPick(dialogRef, toastr, m_appService) {
8913
+ function FHListPick(dialogRef, toastr, m_appService, data) {
8914
8914
  this.dialogRef = dialogRef;
8915
8915
  this.toastr = toastr;
8916
8916
  this.m_appService = m_appService;
8917
+ this.data = data;
8917
8918
  this.label = "";
8918
8919
  this.separator = ",";
8919
8920
  this.title = "";
8920
8921
  this.sql = "";
8921
8922
  this.single_sel = false;
8922
8923
  this.sel_values = "";
8924
+ if (data != null) {
8925
+ if (data.sql != null)
8926
+ this.sql = data.sql;
8927
+ if (data.types != null)
8928
+ this.types = data.types;
8929
+ if (data.values != null)
8930
+ this.values = data.values;
8931
+ if (data.single_sel != null)
8932
+ this.values = data.single_sel;
8933
+ if (data.sel_values != null)
8934
+ this.sel_values = data.sel_values;
8935
+ if (data.title != null)
8936
+ this.title = data.title;
8937
+ if (data.separator != null)
8938
+ this.separator = data.separator;
8939
+ if (data.label != null)
8940
+ this.label = data.label;
8941
+ if (data.sql != null)
8942
+ this.doFill();
8943
+ }
8923
8944
  }
8924
8945
  FHListPick.prototype.close = function () { this.dialogRef.close(null); };
8925
8946
  FHListPick.prototype.doFill = function () {
@@ -8947,7 +8968,8 @@ var FHListPick = /** @class */ (function () {
8947
8968
  FHListPick.ctorParameters = function () { return [
8948
8969
  { type: MatDialogRef },
8949
8970
  { type: ToastrService },
8950
- { type: AppService }
8971
+ { type: AppService },
8972
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
8951
8973
  ]; };
8952
8974
  __decorate([
8953
8975
  ViewChild('cmb_sel'),
@@ -8958,7 +8980,8 @@ var FHListPick = /** @class */ (function () {
8958
8980
  selector: 'fhlistpick',
8959
8981
  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 "
8960
8982
  }),
8961
- __metadata("design:paramtypes", [MatDialogRef, ToastrService, AppService])
8983
+ __param(3, Inject(MAT_DIALOG_DATA)),
8984
+ __metadata("design:paramtypes", [MatDialogRef, ToastrService, AppService, Object])
8962
8985
  ], FHListPick);
8963
8986
  return FHListPick;
8964
8987
  }());
@@ -14684,13 +14707,13 @@ var FHGuard = /** @class */ (function () {
14684
14707
  });
14685
14708
  }
14686
14709
  else {
14687
- console.log('this.app_s ', _this.app_s);
14710
+ // console.log('this.app_s ',this.app_s);
14688
14711
  var p_2 = new QParam();
14689
- console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
14690
- console.log('this.app_s.user_isadminsss ', _this.app_s.user_isadmin + '');
14712
+ // console.log('this.app_s.user_isadmin ',this.app_s.user_isadmin);
14713
+ // console.log('this.app_s.user_isadminsss ',this.app_s.user_isadmin+'');
14691
14714
  if (_this.app_s.user_isadmin != null)
14692
14715
  if (_this.app_s.user_isadmin + '' == '1') {
14693
- console.log('resolve true');
14716
+ // console.log('resolve true');
14694
14717
  resolve(true);
14695
14718
  return;
14696
14719
  }
@@ -14711,7 +14734,7 @@ var FHGuard = /** @class */ (function () {
14711
14734
  }
14712
14735
  }
14713
14736
  }
14714
- console.log(_this.arr_accessi, ' ', _this.routingDestination);
14737
+ // console.log(this.arr_accessi,' ',this.routingDestination);
14715
14738
  _this.toast.error("ACCESS DENIED [0X0005]");
14716
14739
  resolve(false);
14717
14740
  _this.slimLoadingBarService.complete();