@fluxhub/fluxhub-lib 10.0.678 → 10.0.680

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.
@@ -8600,6 +8600,7 @@
8600
8600
  this.single_sel = false;
8601
8601
  this.vis_buttons = true;
8602
8602
  this.all_users = false;
8603
+ this.lista_utenti = [];
8603
8604
  this.user_sel = new Array();
8604
8605
  if (data != null) {
8605
8606
  if (data.single_sel != null)
@@ -8610,17 +8611,23 @@
8610
8611
  this.all_users = data.all_users;
8611
8612
  if (data.vis_buttons != null)
8612
8613
  this.vis_buttons = data.vis_buttons;
8613
- if (data.users_list != null)
8614
+ if (data.users_list != null) {
8614
8615
  this.users_list = data.users_list;
8616
+ this.lista_utenti = JSON.parse(JSON.stringify(this.users_list));
8617
+ }
8615
8618
  }
8616
8619
  }
8617
8620
  fh_win_user_picker.prototype.do_add_all = function () {
8621
+ this.fltr_user = '';
8618
8622
  this.users_list_sel = [];
8619
- this.user_sel = JSON.parse(JSON.stringify(this.users_list));
8623
+ this.user_sel = JSON.parse(JSON.stringify(this.lista_utenti));
8624
+ this.filtra();
8620
8625
  };
8621
8626
  fh_win_user_picker.prototype.do_rem_all = function () {
8622
- this.users_list_sel = JSON.parse(JSON.stringify(this.users_list));
8627
+ this.fltr_user = '';
8628
+ this.users_list_sel = JSON.parse(JSON.stringify(this.lista_utenti));
8623
8629
  this.user_sel = [];
8630
+ this.filtra();
8624
8631
  };
8625
8632
  fh_win_user_picker.prototype.filtra = function () {
8626
8633
  // console.log('filtra() '+this.fltr_user.toUpperCase());
@@ -8669,6 +8676,7 @@
8669
8676
  if (data != null)
8670
8677
  if (data.result_msg == "OK") {
8671
8678
  _this.users_list = data.result_data;
8679
+ _this.lista_utenti = JSON.parse(JSON.stringify(_this.users_list));
8672
8680
  _this.filtra();
8673
8681
  ok_op = true;
8674
8682
  }
@@ -8748,7 +8756,7 @@
8748
8756
  fh_win_user_picker.decorators = [
8749
8757
  { type: i0.Component, args: [{
8750
8758
  selector: "FHPickUsers",
8751
- 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 sel_r\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">{{'UTENTI SELEZIONABILI' | translate }}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td colspan=\"2\" style=\"background-color:#FFF !important\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label | translate }}</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\n (click)=\"addTo(u);selectedAdd = u\"\n (dblclick)=\"do_add()\"\n [style.background-color]=\"selectedAdd == u ? '#2AA1DD':''\"\n [style.color]=\"selectedAdd == u ? '#FFFFFF':''\"\n [ngClass]=\"selectedAdd == u ? '':'sel_r'\"\n\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 || selectedAdd==null\"\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 || selectedRemove==null\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n <br><br><br><br>\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add_all()\"\n [disabled]=\"user_sel?.length==0\"\n >\n {{'Sel. Tutti' | translate}}\n </button>\n <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem_all()\"\n [disabled]=\"users_list_sel?.length==0\"\n >\n {{'Desel. Tutti' | translate}}\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 sel_r\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">{{'UTENTI SELEZIONATI' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of user_sel; let odd = odd; let even = even\"\n [style.background-color]=\"selectedRemove == u ? '#2AA1DD':''\"\n [style.color]=\"selectedRemove == u ? '#FFFFFF':''\"\n [ngClass]=\"selectedRemove == u ? '':'sel_r'\"\n (click)=\"removeTo(u);selectedRemove = u\"\n (dblclick)=\"do_rem()\"\n\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' | translate }}\n </button>\n </div>\n </mat-dialog-actions>\n ",
8759
+ 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 sel_r\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">{{'UTENTI SELEZIONABILI' | translate }}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr>\n <td colspan=\"2\" style=\"background-color:#FFF !important\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label | translate }}</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\n (click)=\"addTo(u);selectedAdd = u\"\n (dblclick)=\"do_add()\"\n [style.background-color]=\"selectedAdd == u ? '#2AA1DD':''\"\n [style.color]=\"selectedAdd == u ? '#FFFFFF':''\"\n [ngClass]=\"selectedAdd == u ? '':'sel_r'\"\n\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 <div style=\"width:100%;text-align:center\">\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"!option || selectedAdd==null\"\n >\n <mat-icon>arrow_forward</mat-icon>\n </button>\n </div>\n <br /><br />\n <div style=\"width:100%;text-align:center\">\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option || selectedRemove==null\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n <br><br><br><br>\n <div style=\"width:100%;text-align:center\">\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add_all()\"\n [disabled]=\"users_list_sel?.length==0\"\n >\n {{'Sel. Tutti' | translate}}\n </button>\n </div>\n <br /><br />\n <div style=\"width:100%;text-align:center\">\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem_all()\"\n [disabled]=\"user_sel?.length==0\"\n >\n {{'Desel. Tutti' | translate}}\n </button>\n </div>\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 sel_r\" cellpadding=\"7\">\n <thead>\n <tr>\n <th colspan=\"2\">{{'UTENTI SELEZIONATI' | translate }}</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of user_sel; let odd = odd; let even = even\"\n [style.background-color]=\"selectedRemove == u ? '#2AA1DD':''\"\n [style.color]=\"selectedRemove == u ? '#FFFFFF':''\"\n [ngClass]=\"selectedRemove == u ? '':'sel_r'\"\n (click)=\"removeTo(u);selectedRemove = u\"\n (dblclick)=\"do_rem()\"\n\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' | translate }}\n </button>\n </div>\n </mat-dialog-actions>\n ",
8752
8760
  styles: ["\n\n\n "]
8753
8761
  },] }
8754
8762
  ];