@fluxhub/fluxhub-lib 10.0.152 → 10.0.154

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,11 +7757,12 @@
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;
@@ -7773,8 +7774,18 @@
7773
7774
  this.vis_buttons = true;
7774
7775
  this.all_users = false;
7775
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
+ }
7776
7787
  }
7777
- FHUserPickerComponent.prototype.filtra = function () {
7788
+ fh_win_user_picker.prototype.filtra = function () {
7778
7789
  // console.log('filtra() '+this.fltr_user.toUpperCase());
7779
7790
  this.users_list_sel = new Array();
7780
7791
  for (var i = 0; i < this.users_list.length; i++)
@@ -7807,7 +7818,7 @@
7807
7818
  }
7808
7819
  }
7809
7820
  };
7810
- FHUserPickerComponent.prototype.ngAfterViewInit = function () {
7821
+ fh_win_user_picker.prototype.ngAfterViewInit = function () {
7811
7822
  var _this = this;
7812
7823
  setTimeout(function () {
7813
7824
  if (_this.all_users) {
@@ -7842,10 +7853,10 @@
7842
7853
  }
7843
7854
  });
7844
7855
  };
7845
- FHUserPickerComponent.prototype.close = function () {
7856
+ fh_win_user_picker.prototype.close = function () {
7846
7857
  this.dialogRef.close(null);
7847
7858
  };
7848
- FHUserPickerComponent.prototype.do_add = function () {
7859
+ fh_win_user_picker.prototype.do_add = function () {
7849
7860
  if (this.selectedAdd == null) {
7850
7861
  this.toastr.error("ERRORE", "Selezionare l'utente da aggiungere", {
7851
7862
  timeOut: 1000,
@@ -7866,7 +7877,7 @@
7866
7877
  this.selectedAdd = null;
7867
7878
  this.filtra();
7868
7879
  };
7869
- FHUserPickerComponent.prototype.do_rem = function () {
7880
+ fh_win_user_picker.prototype.do_rem = function () {
7870
7881
  if (this.selectedRemove == null) {
7871
7882
  this.toastr.error("ERRORE", "Selezionare l'utente da rimuovere", {
7872
7883
  timeOut: 1000,
@@ -7882,34 +7893,35 @@
7882
7893
  this.selectedRemove = null;
7883
7894
  this.filtra();
7884
7895
  };
7885
- FHUserPickerComponent.prototype.addTo = function (item) {
7896
+ fh_win_user_picker.prototype.addTo = function (item) {
7886
7897
  this.option = true;
7887
7898
  this.selectedAdd = item;
7888
7899
  this.selectedRemove = null;
7889
7900
  };
7890
- FHUserPickerComponent.prototype.removeTo = function (item) {
7901
+ fh_win_user_picker.prototype.removeTo = function (item) {
7891
7902
  this.option = false;
7892
7903
  this.selectedAdd = null;
7893
7904
  this.selectedRemove = item;
7894
7905
  };
7895
- FHUserPickerComponent.prototype.getSelArr = function () {
7906
+ fh_win_user_picker.prototype.getSelArr = function () {
7896
7907
  return this.user_sel;
7897
7908
  };
7898
- return FHUserPickerComponent;
7909
+ return fh_win_user_picker;
7899
7910
  }());
7900
- FHUserPickerComponent.decorators = [
7911
+ fh_win_user_picker.decorators = [
7901
7912
  { type: i0.Component, args: [{
7902
7913
  selector: "FHPickUsers",
7903
- 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>\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 ",
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 ",
7904
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 "]
7905
7916
  },] }
7906
7917
  ];
7907
- FHUserPickerComponent.ctorParameters = function () { return [
7918
+ fh_win_user_picker.ctorParameters = function () { return [
7908
7919
  { type: QueryService },
7909
7920
  { type: dialog.MatDialogRef },
7910
- { type: i3.ToastrService }
7921
+ { type: i3.ToastrService },
7922
+ { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
7911
7923
  ]; };
7912
- FHUserPickerComponent.propDecorators = {
7924
+ fh_win_user_picker.propDecorators = {
7913
7925
  height: [{ type: i0.Input }],
7914
7926
  users_list: [{ type: i0.Input }],
7915
7927
  single_sel: [{ type: i0.Input }],
@@ -9472,7 +9484,7 @@
9472
9484
  }
9473
9485
  if (!this.enabled)
9474
9486
  return;
9475
- var dialogRef = this.dialog.open(FHUserPickerComponent, {
9487
+ var dialogRef = this.dialog.open(fh_win_user_picker, {
9476
9488
  disableClose: true,
9477
9489
  width: "700px",
9478
9490
  height: "550px",
@@ -14056,7 +14068,7 @@
14056
14068
  FHAutoCompleteComponent,
14057
14069
  FHDatePickerComponent,
14058
14070
  NumericEditorComponent,
14059
- FHUserPickerComponent,
14071
+ fh_win_user_picker,
14060
14072
  ApprovaGridComponent,
14061
14073
  FHCurrencyFormatterDirective,
14062
14074
  FHCurrencyPipe,
@@ -14119,7 +14131,7 @@
14119
14131
  FHAutoCompleteComponent,
14120
14132
  FHDatePickerComponent,
14121
14133
  NumericEditorComponent,
14122
- FHUserPickerComponent,
14134
+ fh_win_user_picker,
14123
14135
  ApprovaGridComponent,
14124
14136
  FHCurrencyFormatterDirective,
14125
14137
  FHCurrencyPipe,
@@ -14193,7 +14205,7 @@
14193
14205
  FHPickListComponent,
14194
14206
  FHConfirmComponent,
14195
14207
  win_time_slider,
14196
- FHUserPickerComponent,
14208
+ fh_win_user_picker,
14197
14209
  ApprovaGridComponent,
14198
14210
  win_mappa,
14199
14211
  win_grid_help,
@@ -16987,7 +16999,6 @@
16987
16999
  exports.FHUploadPanelS3Component = FHUploadPanelS3Component;
16988
17000
  exports.FHUploadS3Component = FHUploadS3Component;
16989
17001
  exports.FHUserFieldComponent = FHUserFieldComponent;
16990
- exports.FHUserPickerComponent = FHUserPickerComponent;
16991
17002
  exports.FHWinComboSelect = FHWinComboSelect;
16992
17003
  exports.FSInput = FSInput;
16993
17004
  exports.FSResult = FSResult;
@@ -17016,6 +17027,7 @@
17016
17027
  exports.WinWait = WinWait;
17017
17028
  exports.WkfService = WkfService;
17018
17029
  exports.dati_aggiuntivi = dati_aggiuntivi;
17030
+ exports.fh_win_user_picker = fh_win_user_picker;
17019
17031
  exports.fhimagepreview = fhimagepreview;
17020
17032
  exports.win_insert_commento = win_insert_commento;
17021
17033
  exports.win_mappa = win_mappa;