@fluxhub/fluxhub-lib 11.0.13 → 11.0.14
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 +60 -6
- 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/fhgrid.js +2 -2
- package/esm2015/lib/controls/win_pick_list.js +82 -18
- package/fesm2015/fluxhub-fluxhub-lib.js +81 -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
|
@@ -2328,14 +2328,17 @@
|
|
|
2328
2328
|
this.width = "100%";
|
|
2329
2329
|
this.selectedAdd = null;
|
|
2330
2330
|
this.selectedRemove = null;
|
|
2331
|
+
this.option = 0;
|
|
2331
2332
|
this.selval = "-1";
|
|
2332
2333
|
this.errorMsg = "";
|
|
2333
2334
|
this.valDef = "-1";
|
|
2334
2335
|
this.fltr_user = "";
|
|
2336
|
+
this.fltr_user_rem = "";
|
|
2335
2337
|
this.value_list = new Array();
|
|
2336
2338
|
this.single_sel = false;
|
|
2337
2339
|
this.vis_buttons = true;
|
|
2338
2340
|
this.limit_size = false;
|
|
2341
|
+
this.value_sel_ric = new Array();
|
|
2339
2342
|
this.value_list_sel = new Array();
|
|
2340
2343
|
this.types = [];
|
|
2341
2344
|
this.values = [];
|
|
@@ -2378,12 +2381,60 @@
|
|
|
2378
2381
|
// this.value_list=[];
|
|
2379
2382
|
this.selectedAdd = null;
|
|
2380
2383
|
this.filtra();
|
|
2384
|
+
this.filtra_rem();
|
|
2381
2385
|
};
|
|
2382
2386
|
fh_win_picklist.prototype.rem_all = function () {
|
|
2383
|
-
|
|
2384
|
-
this.
|
|
2387
|
+
var _this = this;
|
|
2388
|
+
this.value_sel_ric.map(function (v) { _this.value_list.push(v); });
|
|
2389
|
+
var arrx = [];
|
|
2390
|
+
for (var i = 0; i < this.value_sel.length; i++) {
|
|
2391
|
+
var b_found_a = false;
|
|
2392
|
+
for (var z = 0; z < this.value_sel_ric.length; z++)
|
|
2393
|
+
if (this.value_sel_ric[z].descrizione_valore ==
|
|
2394
|
+
this.value_sel[i].descrizione_valore) {
|
|
2395
|
+
b_found_a = true;
|
|
2396
|
+
break;
|
|
2397
|
+
}
|
|
2398
|
+
if (!b_found_a)
|
|
2399
|
+
arrx.push(this.value_sel[i]);
|
|
2400
|
+
}
|
|
2401
|
+
this.value_sel = JSON.parse(JSON.stringify(arrx));
|
|
2402
|
+
this.value_sel_ric = [];
|
|
2385
2403
|
this.selectedAdd = null;
|
|
2386
2404
|
this.filtra();
|
|
2405
|
+
this.filtra_rem();
|
|
2406
|
+
};
|
|
2407
|
+
fh_win_picklist.prototype.filtra_rem = function () {
|
|
2408
|
+
console.log('fltr_user_rem ');
|
|
2409
|
+
this.value_sel_ric = new Array();
|
|
2410
|
+
// console.log('filtra() '+this.fltr_user.toUpperCase());
|
|
2411
|
+
if (this.fltr_user_rem == "") {
|
|
2412
|
+
for (var i = 0; i < this.value_sel.length; i++) {
|
|
2413
|
+
this.value_sel_ric.push(this.value_sel[i]);
|
|
2414
|
+
if (i == 50 && this.limit_size)
|
|
2415
|
+
return;
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
else {
|
|
2419
|
+
for (var i = 0; i < this.value_sel.length; i++)
|
|
2420
|
+
if (this.value_sel[i].descrizione_valore
|
|
2421
|
+
.toUpperCase()
|
|
2422
|
+
.indexOf(this.fltr_user_rem.toUpperCase()) != -1) {
|
|
2423
|
+
console.log('entro !!');
|
|
2424
|
+
var b_found_a = false;
|
|
2425
|
+
for (var z = 0; z < this.value_sel_ric.length; z++)
|
|
2426
|
+
if (this.value_sel_ric[z].descrizione_valore ==
|
|
2427
|
+
this.value_sel[i].descrizione_valore) {
|
|
2428
|
+
b_found_a = true;
|
|
2429
|
+
break;
|
|
2430
|
+
}
|
|
2431
|
+
console.log('entro !! ', b_found_a);
|
|
2432
|
+
if (!b_found_a)
|
|
2433
|
+
this.value_sel_ric.push(this.value_sel[i]);
|
|
2434
|
+
if (this.value_sel_ric.length == 50 && this.limit_size)
|
|
2435
|
+
return;
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2387
2438
|
};
|
|
2388
2439
|
fh_win_picklist.prototype.filtra = function () {
|
|
2389
2440
|
this.value_list_sel = new Array();
|
|
@@ -2491,6 +2542,7 @@
|
|
|
2491
2542
|
break;
|
|
2492
2543
|
}
|
|
2493
2544
|
this.filtra();
|
|
2545
|
+
this.filtra_rem();
|
|
2494
2546
|
};
|
|
2495
2547
|
fh_win_picklist.prototype.do_add = function () {
|
|
2496
2548
|
if (this.selectedAdd == null) {
|
|
@@ -2510,6 +2562,7 @@
|
|
|
2510
2562
|
this.value_sel.push(this.selectedAdd);
|
|
2511
2563
|
this.selectedAdd = null;
|
|
2512
2564
|
this.filtra();
|
|
2565
|
+
this.filtra_rem();
|
|
2513
2566
|
if (this.single_sel)
|
|
2514
2567
|
this.ok();
|
|
2515
2568
|
};
|
|
@@ -2528,14 +2581,15 @@
|
|
|
2528
2581
|
this.value_list.push(this.selectedRemove);
|
|
2529
2582
|
this.selectedRemove = null;
|
|
2530
2583
|
this.filtra();
|
|
2584
|
+
this.filtra_rem();
|
|
2531
2585
|
};
|
|
2532
2586
|
fh_win_picklist.prototype.addTo = function (item) {
|
|
2533
|
-
this.option =
|
|
2587
|
+
this.option = 1;
|
|
2534
2588
|
this.selectedAdd = item;
|
|
2535
2589
|
this.selectedRemove = null;
|
|
2536
2590
|
};
|
|
2537
2591
|
fh_win_picklist.prototype.removeTo = function (item) {
|
|
2538
|
-
this.option =
|
|
2592
|
+
this.option = 2;
|
|
2539
2593
|
this.selectedAdd = null;
|
|
2540
2594
|
this.selectedRemove = item;
|
|
2541
2595
|
};
|
|
@@ -2568,7 +2622,7 @@
|
|
|
2568
2622
|
fh_win_picklist.decorators = [
|
|
2569
2623
|
{ type: i0.Component, args: [{
|
|
2570
2624
|
selector: "FHPickList",
|
|
2571
|
-
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:450px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONABILI' |
|
|
2625
|
+
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:450px;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 }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div\n fxLayout=\"column\" fxFlex=\"10\" fxLayoutAlign=\"center center\"\n style=\"height: 450px; 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 fxLayoutAlign=\"center center\" fxLayout=\"column\"\n\n >\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_add()\"\n [disabled]=\"option!=1\"\n >\n >\n </button>\n <br />\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"do_rem()\"\n [disabled]=\"option!=2\"\n >\n <\n </button> <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()\" matTooltip=\"Seleziona Tutto\"\n [disabled]=\"value_list_sel.length==0\"\n >\n >>\n </button> <br *ngIf=\"!single_sel\"/>\n <button *ngIf=\"!single_sel\"\n mat-flat-button\n color=\"primary\" matTooltip=\"Deseleziona Tutto\"\n (click)=\"rem_all()\"\n [disabled]=\"value_sel.length==0\"\n >\n <<\n </button>\n </div>\n </div>\n\n <div fxLayout=\"column\" fxFlex=\"45\">\n <div style=\"width:100%;height:450px;overflow:auto;\">\n <table style=\"width: 100%\" class=\"fh_table sel_r\">\n <thead>\n <tr>\n <th>{{'VALORI SELEZIONATI'|translate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr style=\"background-color:#FFF !important\">\n <td>\n <input\n [(ngModel)]=\"fltr_user_rem\"\n (ngModelChange)=\"filtra_rem()\"\n style=\"padding:8px;margin:15px auto;width:100%;\"\n placeholder=\"Ricerca...\"\n />\n </td>\n </tr>\n <tr\n *ngFor=\"let u of value_sel_ric; 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 }}</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 > \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 ",
|
|
2572
2626
|
styles: ["\n .mat-dialog-content\u00A0{\u00A0\u00A0max-height:\u00A0unset\u00A0!important;\u00A0}\n .selector {\n cursor: hand;\n }\n "]
|
|
2573
2627
|
},] }
|
|
2574
2628
|
];
|
|
@@ -7199,7 +7253,7 @@
|
|
|
7199
7253
|
FHGridComponent.prototype.onSelectionChanged = function (event) {
|
|
7200
7254
|
var rowCount = this.getGridApi().getSelectedNodes().length;
|
|
7201
7255
|
this.selection_change.emit(rowCount);
|
|
7202
|
-
|
|
7256
|
+
console.log('selectionChanged');
|
|
7203
7257
|
};
|
|
7204
7258
|
FHGridComponent.prototype.onBeforeFilterChanged = function () {
|
|
7205
7259
|
// console.log('beforeFilterChanged');
|