@fluxhub/fluxhub-lib 10.0.616 → 10.0.618

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.
@@ -2355,8 +2355,22 @@
2355
2355
  }
2356
2356
  }
2357
2357
  fh_win_picklist.prototype.ngAfterViewInit = function () { };
2358
- fh_win_picklist.prototype.add_all = function () { };
2359
- fh_win_picklist.prototype.rem_all = function () { };
2358
+ fh_win_picklist.prototype.add_all = function () {
2359
+ for (var index = 0; index < this.value_list.length; index++) {
2360
+ this.value_sel.push(this.value_list[index]);
2361
+ }
2362
+ this.value_list = [];
2363
+ this.selectedAdd = null;
2364
+ this.filtra();
2365
+ };
2366
+ fh_win_picklist.prototype.rem_all = function () {
2367
+ for (var index = 0; index < this.value_sel.length; index++) {
2368
+ this.value_list.push(this.value_sel[index]);
2369
+ }
2370
+ this.value_sel = [];
2371
+ this.selectedAdd = null;
2372
+ this.filtra();
2373
+ };
2360
2374
  fh_win_picklist.prototype.filtra = function () {
2361
2375
  this.value_list_sel = new Array();
2362
2376
  // console.log('filtra() '+this.fltr_user.toUpperCase());
@@ -2540,7 +2554,7 @@
2540
2554
  fh_win_picklist.decorators = [
2541
2555
  { type: i0.Component, args: [{
2542
2556
  selector: "FHPickList",
2543
- template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" style=\"min-width:1000px\" fxFlex>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div fxLayout=\"column\" fxFlex=\"grow\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONABILI' | translate}}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr style=\"background-color:#FFF !important\">\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\"\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> <br /><br /> <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"add_all()\"\n [disabled]=\"option\"\n >\n <mat-icon>double_arrow</mat-icon>\n </button> <br /><br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"rem_all()\"\n [disabled]=\"option\"\n >\n <mat-icon>keyboard_double_arrow_left</mat-icon>\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"grow\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONATI'}}</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_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 [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">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 </div>\n ",
2557
+ template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" style=\"min-width:1000px\" fxFlex>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <div fxLayout=\"column\" fxFlex=\"45\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONABILI' | translate}}</th>\n </tr>\n </thead>\n\n <tbody>\n <tr style=\"background-color:#FFF !important\">\n <td>\n <input\n [(ngModel)]=\"fltr_user\"\n (ngModelChange)=\"filtra()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"\n let u of value_list_sel;\n let odd = odd;\n let even = even\n \"\n\n (click)=\"addTo(u)\"\n (dblclick)=\"do_add()\"\n class=\"selector\"\n\n [ngClass]=\"{ active: selectedAdd == u }\"\n >\n <td [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\" fxFlex=\"10\"\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> <br *ngIf=\"!single_sel\" /><br *ngIf=\"!single_sel\"/> <br *ngIf=\"!single_sel\"/><br *ngIf=\"!single_sel\"/>\n <button *ngIf=\"!single_sel\"\n mat-flat-button\n color=\"primary\"\n (click)=\"add_all()\"\n [disabled]=\"!option\"\n >\n Sel. Tutti\n </button> <br /><br />\n <button *ngIf=\"!single_sel\"\n mat-flat-button\n color=\"primary\"\n (click)=\"rem_all()\"\n [disabled]=\"option\"\n >\n Desel. Tutti\n </button>\n </div>\n </div>\n <div fxLayout=\"column\" fxFlex=\"10\">\n <div style=\"width:100%;height:420px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONATI'}}</th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let u of value_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 [ngClass]=\"{ odd: odd, even: even }\" style=\"cursor:pointer\">{{ u.descrizione_valore | translate }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">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 </div>\n ",
2544
2558
  styles: ["\n .mat-dialog-content\u00A0{\u00A0\u00A0max-height:\u00A0unset\u00A0!important;\u00A0}\n .selector {\n cursor: hand;\n }\n "]
2545
2559
  },] }
2546
2560
  ];