@fluxhub/fluxhub-lib 10.0.151 → 10.0.153

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.
@@ -7757,23 +7757,35 @@
7757
7757
  pickerId: [{ type: i0.ViewChild, args: ["pickerId",] }]
7758
7758
  };
7759
7759
 
7760
- var FHUserPickerComponent = /** @class */ (function () {
7761
- function FHUserPickerComponent(_dataService, dialogRef, toastr) {
7760
+ var fh_win_user_picker = /** @class */ (function () {
7761
+ function fh_win_user_picker(_dataService, dialogRef, toastr, data) {
7762
7762
  this._dataService = _dataService;
7763
7763
  this.dialogRef = dialogRef;
7764
7764
  this.toastr = toastr;
7765
+ this.data = data;
7765
7766
  this.width = "100%";
7766
7767
  this.label = "Ricerca...";
7767
7768
  this.selectedAdd = null;
7768
7769
  this.selectedRemove = null;
7769
7770
  this.errorMsg = "";
7770
7771
  this.fltr_user = "";
7772
+ this.height = 420;
7771
7773
  this.single_sel = false;
7772
7774
  this.vis_buttons = true;
7773
7775
  this.all_users = false;
7774
7776
  this.user_sel = new Array();
7777
+ if (!data != null) {
7778
+ if (!data.single_sel == null)
7779
+ this.single_sel = data.single_sel;
7780
+ if (!data.user_sel == null)
7781
+ this.user_sel = data.user_sel;
7782
+ if (!data.all_users == null)
7783
+ this.all_users = data.all_users;
7784
+ if (!data.vis_buttons == null)
7785
+ this.vis_buttons = data.vis_buttons;
7786
+ }
7775
7787
  }
7776
- FHUserPickerComponent.prototype.filtra = function () {
7788
+ fh_win_user_picker.prototype.filtra = function () {
7777
7789
  // console.log('filtra() '+this.fltr_user.toUpperCase());
7778
7790
  this.users_list_sel = new Array();
7779
7791
  for (var i = 0; i < this.users_list.length; i++)
@@ -7806,7 +7818,7 @@
7806
7818
  }
7807
7819
  }
7808
7820
  };
7809
- FHUserPickerComponent.prototype.ngAfterViewInit = function () {
7821
+ fh_win_user_picker.prototype.ngAfterViewInit = function () {
7810
7822
  var _this = this;
7811
7823
  setTimeout(function () {
7812
7824
  if (_this.all_users) {
@@ -7841,10 +7853,10 @@
7841
7853
  }
7842
7854
  });
7843
7855
  };
7844
- FHUserPickerComponent.prototype.close = function () {
7856
+ fh_win_user_picker.prototype.close = function () {
7845
7857
  this.dialogRef.close(null);
7846
7858
  };
7847
- FHUserPickerComponent.prototype.do_add = function () {
7859
+ fh_win_user_picker.prototype.do_add = function () {
7848
7860
  if (this.selectedAdd == null) {
7849
7861
  this.toastr.error("ERRORE", "Selezionare l'utente da aggiungere", {
7850
7862
  timeOut: 1000,
@@ -7865,7 +7877,7 @@
7865
7877
  this.selectedAdd = null;
7866
7878
  this.filtra();
7867
7879
  };
7868
- FHUserPickerComponent.prototype.do_rem = function () {
7880
+ fh_win_user_picker.prototype.do_rem = function () {
7869
7881
  if (this.selectedRemove == null) {
7870
7882
  this.toastr.error("ERRORE", "Selezionare l'utente da rimuovere", {
7871
7883
  timeOut: 1000,
@@ -7881,34 +7893,36 @@
7881
7893
  this.selectedRemove = null;
7882
7894
  this.filtra();
7883
7895
  };
7884
- FHUserPickerComponent.prototype.addTo = function (item) {
7896
+ fh_win_user_picker.prototype.addTo = function (item) {
7885
7897
  this.option = true;
7886
7898
  this.selectedAdd = item;
7887
7899
  this.selectedRemove = null;
7888
7900
  };
7889
- FHUserPickerComponent.prototype.removeTo = function (item) {
7901
+ fh_win_user_picker.prototype.removeTo = function (item) {
7890
7902
  this.option = false;
7891
7903
  this.selectedAdd = null;
7892
7904
  this.selectedRemove = item;
7893
7905
  };
7894
- FHUserPickerComponent.prototype.getSelArr = function () {
7906
+ fh_win_user_picker.prototype.getSelArr = function () {
7895
7907
  return this.user_sel;
7896
7908
  };
7897
- return FHUserPickerComponent;
7909
+ return fh_win_user_picker;
7898
7910
  }());
7899
- FHUserPickerComponent.decorators = [
7911
+ fh_win_user_picker.decorators = [
7900
7912
  { type: i0.Component, args: [{
7901
7913
  selector: "FHPickUsers",
7902
- template: "\n <mat-dialog-content style=\"font-size:12px\">\n <br /><br />\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;height:420px;overflow-y:scroll;\">\n <table style=\"width: 100%\" class=\"fh_table\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td colspan=\"2\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n matInput\n />\n </mat-form-field>\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of users_list_sel;\n let odd = odd;\n let even = even\n \"\n (mouseover)=\"selectedAdd = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"20\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div\n style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;height:420px;overflow-y:scroll;\">\n <table style=\"width: 100%\" class=\"fh_table\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of user_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div\n style=\"width:100%\"\n *ngIf=\"vis_buttons\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"dialogRef.close(this.user_sel)\"\n >\n Ok</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n Annulla\n </button>\n </div>\n </mat-dialog-actions>\n ",
7903
- styles: [""]
7914
+ template: "\n <mat-dialog-content style=\"font-size:12px\">\n <br /><br />\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;overflow-y:scroll;\" [style.height]=\"(height)+ 'px'\">\n <table style=\"width: 100%\" class=\"fh_table\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONABILI</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td colspan=\"2\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n matInput\n />\n </mat-form-field>\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of users_list_sel;\n let odd = odd;\n let even = even\n \"\n (mouseover)=\"selectedAdd = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\n fxFlex=\"20\"\n style=\"height: 280px; position: relative; margin:0 .5em; padding-left: .5em; padding-right: .5em; border-left: 1px solid rgba(191, 191, 191, 0.5); border-right: 1px solid rgba(191, 191, 191, 0.5);\"\n >\n <div\n style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"40\">\n <div style=\"width:100%;overflow-y:scroll;\" [style.height]=\"(height)+ 'px'\">\n <table style=\"width: 100%\" class=\"fh_table\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">UTENTI SELEZIONATI</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of user_sel; let odd = odd; let even = even\"\n (mouseover)=\"selectedRemove = u\"\n [ngClass]=\"{ odd: odd, even: even }\"\n (click)=\"removeTo(u)\"\n (dblclick)=\"do_rem()\"\n class=\"selector\"\n [ngClass]=\"{ active: selectedRemove == u }\"\n >\n <td style=\"width: 80%\">{{ u.nc }}</td>\n <td style=\"width: 20%\">{{ u.canale }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions *ngIf=\"vis_buttons\">\n <div\n style=\"width:100%\"\n *ngIf=\"vis_buttons\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"dialogRef.close(this.user_sel)\"\n >\n Ok</button\n >&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"dialogRef.close()\"\n >\n Annulla\n </button>\n </div>\n </mat-dialog-actions>\n ",
7915
+ styles: ["\n td {\n background-color: #fff;\n font-weight: bold;\n}\ntr:hover {\n color: #fff;\n background-color: #001E3D;\n}\n\ntr:hover td {\n background-color: transparent;\n}\n\n "]
7904
7916
  },] }
7905
7917
  ];
7906
- FHUserPickerComponent.ctorParameters = function () { return [
7918
+ fh_win_user_picker.ctorParameters = function () { return [
7907
7919
  { type: QueryService },
7908
7920
  { type: dialog.MatDialogRef },
7909
- { type: i3.ToastrService }
7921
+ { type: i3.ToastrService },
7922
+ { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
7910
7923
  ]; };
7911
- FHUserPickerComponent.propDecorators = {
7924
+ fh_win_user_picker.propDecorators = {
7925
+ height: [{ type: i0.Input }],
7912
7926
  users_list: [{ type: i0.Input }],
7913
7927
  single_sel: [{ type: i0.Input }],
7914
7928
  vis_buttons: [{ type: i0.Input }],
@@ -9470,7 +9484,7 @@
9470
9484
  }
9471
9485
  if (!this.enabled)
9472
9486
  return;
9473
- var dialogRef = this.dialog.open(FHUserPickerComponent, {
9487
+ var dialogRef = this.dialog.open(fh_win_user_picker, {
9474
9488
  disableClose: true,
9475
9489
  width: "700px",
9476
9490
  height: "550px",
@@ -14054,7 +14068,7 @@
14054
14068
  FHAutoCompleteComponent,
14055
14069
  FHDatePickerComponent,
14056
14070
  NumericEditorComponent,
14057
- FHUserPickerComponent,
14071
+ fh_win_user_picker,
14058
14072
  ApprovaGridComponent,
14059
14073
  FHCurrencyFormatterDirective,
14060
14074
  FHCurrencyPipe,
@@ -14117,7 +14131,7 @@
14117
14131
  FHAutoCompleteComponent,
14118
14132
  FHDatePickerComponent,
14119
14133
  NumericEditorComponent,
14120
- FHUserPickerComponent,
14134
+ fh_win_user_picker,
14121
14135
  ApprovaGridComponent,
14122
14136
  FHCurrencyFormatterDirective,
14123
14137
  FHCurrencyPipe,
@@ -14191,7 +14205,7 @@
14191
14205
  FHPickListComponent,
14192
14206
  FHConfirmComponent,
14193
14207
  win_time_slider,
14194
- FHUserPickerComponent,
14208
+ fh_win_user_picker,
14195
14209
  ApprovaGridComponent,
14196
14210
  win_mappa,
14197
14211
  win_grid_help,
@@ -16985,7 +16999,6 @@
16985
16999
  exports.FHUploadPanelS3Component = FHUploadPanelS3Component;
16986
17000
  exports.FHUploadS3Component = FHUploadS3Component;
16987
17001
  exports.FHUserFieldComponent = FHUserFieldComponent;
16988
- exports.FHUserPickerComponent = FHUserPickerComponent;
16989
17002
  exports.FHWinComboSelect = FHWinComboSelect;
16990
17003
  exports.FSInput = FSInput;
16991
17004
  exports.FSResult = FSResult;
@@ -17014,6 +17027,7 @@
17014
17027
  exports.WinWait = WinWait;
17015
17028
  exports.WkfService = WkfService;
17016
17029
  exports.dati_aggiuntivi = dati_aggiuntivi;
17030
+ exports.fh_win_user_picker = fh_win_user_picker;
17017
17031
  exports.fhimagepreview = fhimagepreview;
17018
17032
  exports.win_insert_commento = win_insert_commento;
17019
17033
  exports.win_mappa = win_mappa;