@fluxhub/fluxhub-lib 10.0.609 → 10.0.610
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 +8 -3
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/win_pick_list.js +28 -18
- package/fesm2015/fluxhub-fluxhub-lib.js +26 -17
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_pick_list.d.ts +4 -1
- package/package.json +1 -1
|
@@ -2320,11 +2320,12 @@
|
|
|
2320
2320
|
};
|
|
2321
2321
|
|
|
2322
2322
|
var fh_win_picklist = /** @class */ (function () {
|
|
2323
|
-
function fh_win_picklist(dialogRef, _dataService, toastr, data) {
|
|
2323
|
+
function fh_win_picklist(dialogRef, _dataService, toastr, data, m_appService) {
|
|
2324
2324
|
this.dialogRef = dialogRef;
|
|
2325
2325
|
this._dataService = _dataService;
|
|
2326
2326
|
this.toastr = toastr;
|
|
2327
2327
|
this.data = data;
|
|
2328
|
+
this.m_appService = m_appService;
|
|
2328
2329
|
this.width = "100%";
|
|
2329
2330
|
this.selectedAdd = null;
|
|
2330
2331
|
this.selectedRemove = null;
|
|
@@ -2339,10 +2340,13 @@
|
|
|
2339
2340
|
this.value_list_sel = new Array();
|
|
2340
2341
|
this.types = [];
|
|
2341
2342
|
this.values = [];
|
|
2343
|
+
this.title = '';
|
|
2342
2344
|
this.value_sel = [];
|
|
2343
2345
|
if (data != null) {
|
|
2344
2346
|
if (data.value_list != null)
|
|
2345
2347
|
this.value_list = data.value_list;
|
|
2348
|
+
if (data.title != null)
|
|
2349
|
+
this.title = data.title;
|
|
2346
2350
|
if (data.single_sel != null)
|
|
2347
2351
|
this.single_sel = data.single_sel;
|
|
2348
2352
|
if (data.vis_buttons != null)
|
|
@@ -2538,7 +2542,7 @@
|
|
|
2538
2542
|
fh_win_picklist.decorators = [
|
|
2539
2543
|
{ type: i0.Component, args: [{
|
|
2540
2544
|
selector: "FHPickList",
|
|
2541
|
-
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex>\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\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 fxFlex=\"18%\"\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=\"41%\">\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
|
|
2545
|
+
template: "\n<div\u00A0fxLayout=\"column\">\n<div\u00A0\u00A0fxFlex=\"100\"\u00A0fxLayout=\"row\"\u00A0\u00A0\u00A0fxLayoutAlign=\"start\u00A0center\"\u00A0\u00A0\u00A0class=\"dialog_header\">\u00A0\n<div\u00A0\u00A0\u00A0\u00A0\u00A0fxLayout=\"row\"\u00A0\u00A0fxLayoutAlign=\"start\u00A0center\"\u00A0fxFlex=\"50\"><div>{{title}}</div></div>\u00A0\n<div\u00A0\u00A0\u00A0fxFlex=\"50\"\u00A0fxLayout=\"row\"\u00A0fxLayoutAlign=\"end\u00A0center\">\n<img\u00A0\u00A0\u00A0\u00A0src=\"assets/icons/x.png\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0style=\"cursor:\u00A0pointer;\"\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0(click)=\"dialogRef.close(null)\"\u00A0/>\u00A0\u00A0\n</div>\n</div>\n<hr\u00A0width=\"100%\"\u00A0size=\"0.5\"\u00A0color=\"#DDDDDD\">\n\n<mat-dialog-content>\n <div style=\"width:100%;overflow:auto;\" [style.height]=\"(m_appService.getState().body_h-240)+'px'\">\n <div fxLayout=\"column\" fxLayoutGap=\"15px\" fxFlex>\n <div fxLayout=\"row\">\n <div fxLayout=\"column\" fxFlex=\"41%\">\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 fxFlex=\"18%\"\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=\"41%\">\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> </div> </div>\n </div></mat-dialog-content><br>\n<mat-dialog-actions>\n<div\u00A0fxLayout=\"row\"\u00A0fxLayoutAlign=\"10px\"\u00A0fxLayoutAlign=\"center\u00A0center\"\u00A0fxFlex\u00A0style=\"width:100%\">\n<button\u00A0mat-flat-button\u00A0color=\"warn\"\u00A0(click)=\"dialogRef.close(null)\">ANNULLA</button>\n</div>\n</mat-dialog-actions>\n</div>\n ",
|
|
2542
2546
|
styles: ["\n .selector {\n cursor: hand;\n }\n "]
|
|
2543
2547
|
},] }
|
|
2544
2548
|
];
|
|
@@ -2546,7 +2550,8 @@
|
|
|
2546
2550
|
{ type: dialog.MatDialogRef },
|
|
2547
2551
|
{ type: QueryService },
|
|
2548
2552
|
{ type: i3.ToastrService },
|
|
2549
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
2553
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
|
|
2554
|
+
{ type: AppService }
|
|
2550
2555
|
]; };
|
|
2551
2556
|
fh_win_picklist.propDecorators = {
|
|
2552
2557
|
value_list: [{ type: i0.Input }],
|