@fluxhub/fluxhub-lib 10.0.679 → 10.0.681
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +10 -4
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/win_user_picker.js +11 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +10 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_user_picker.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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,16 +8611,20 @@
|
|
|
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.
|
|
8623
|
+
this.user_sel = JSON.parse(JSON.stringify(this.lista_utenti));
|
|
8620
8624
|
};
|
|
8621
8625
|
fh_win_user_picker.prototype.do_rem_all = function () {
|
|
8622
|
-
this.
|
|
8626
|
+
this.fltr_user = '';
|
|
8627
|
+
this.users_list_sel = JSON.parse(JSON.stringify(this.lista_utenti));
|
|
8623
8628
|
this.user_sel = [];
|
|
8624
8629
|
};
|
|
8625
8630
|
fh_win_user_picker.prototype.filtra = function () {
|
|
@@ -8669,6 +8674,7 @@
|
|
|
8669
8674
|
if (data != null)
|
|
8670
8675
|
if (data.result_msg == "OK") {
|
|
8671
8676
|
_this.users_list = data.result_data;
|
|
8677
|
+
_this.lista_utenti = JSON.parse(JSON.stringify(_this.users_list));
|
|
8672
8678
|
_this.filtra();
|
|
8673
8679
|
ok_op = true;
|
|
8674
8680
|
}
|
|
@@ -8748,7 +8754,7 @@
|
|
|
8748
8754
|
fh_win_user_picker.decorators = [
|
|
8749
8755
|
{ type: i0.Component, args: [{
|
|
8750
8756
|
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 <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 > \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 ",
|
|
8757
|
+
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 > <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()\"\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 > \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
8758
|
styles: ["\n\n\n "]
|
|
8753
8759
|
},] }
|
|
8754
8760
|
];
|