@fluxhub/fluxhub-lib 10.0.150 → 10.0.152

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.
@@ -5141,6 +5141,7 @@
5141
5141
  }
5142
5142
  // console.log('Filter model');
5143
5143
  //console.log(params.filterModel);
5144
+ var p_fi = p.filter;
5144
5145
  if (params.filterModel != null) {
5145
5146
  // console.log('Filtri');
5146
5147
  for (var key in params.filterModel) {
@@ -5167,6 +5168,10 @@
5167
5168
  // }
5168
5169
  }
5169
5170
  }
5171
+ if (p.filter == '' || p_fi == p.filter)
5172
+ _this.show_pulisci_filtri = false;
5173
+ else
5174
+ _this.show_pulisci_filtri = true;
5170
5175
  //p.num_per_pag=5000;
5171
5176
  // console.log(this._gridservice);
5172
5177
  _this.str_curr_q_p = "";
@@ -5176,10 +5181,6 @@
5176
5181
  _this.str_curr_q_p = _this.str_curr_q_p + " order by " + p.sort_field;
5177
5182
  _this.curr_filter = p.filter;
5178
5183
  console.log('this.filter ', _this.filters, ' p.filter ', p.filter);
5179
- if (p.filter == '' || _this.filters == p.filter)
5180
- _this.show_pulisci_filtri = false;
5181
- else
5182
- _this.show_pulisci_filtri = true;
5183
5184
  _this._gridservice.doQuery(p, true, _this.end_point).subscribe(function (data) {
5184
5185
  var ok_op = false;
5185
5186
  if (data != null)
@@ -7767,6 +7768,7 @@
7767
7768
  this.selectedRemove = null;
7768
7769
  this.errorMsg = "";
7769
7770
  this.fltr_user = "";
7771
+ this.height = 420;
7770
7772
  this.single_sel = false;
7771
7773
  this.vis_buttons = true;
7772
7774
  this.all_users = false;
@@ -7898,8 +7900,8 @@
7898
7900
  FHUserPickerComponent.decorators = [
7899
7901
  { type: i0.Component, args: [{
7900
7902
  selector: "FHPickUsers",
7901
- 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 ",
7902
- styles: [""]
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 ",
7904
+ 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 "]
7903
7905
  },] }
7904
7906
  ];
7905
7907
  FHUserPickerComponent.ctorParameters = function () { return [
@@ -7908,6 +7910,7 @@
7908
7910
  { type: i3.ToastrService }
7909
7911
  ]; };
7910
7912
  FHUserPickerComponent.propDecorators = {
7913
+ height: [{ type: i0.Input }],
7911
7914
  users_list: [{ type: i0.Input }],
7912
7915
  single_sel: [{ type: i0.Input }],
7913
7916
  vis_buttons: [{ type: i0.Input }],