@fluxhub/fluxhub-lib 11.0.13 → 11.0.15

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.
@@ -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
- this.value_list = JSON.parse(JSON.stringify(this.value_list_all));
2384
- this.value_sel = [];
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 = true;
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 = false;
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' | 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\" 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\"\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()\" 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 <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'}}</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 ",
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 >&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 ",
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
  ];
@@ -6672,15 +6726,13 @@
6672
6726
  return s;
6673
6727
  };
6674
6728
  FHGridComponent.prototype.selectAllFiltered = function () {
6675
- var _this = this;
6676
6729
  this.gridOptions.api.forEachNode(function (node) {
6677
- _this.gridOptions.api.selectNode(node, true);
6730
+ node.setSelected(true);
6678
6731
  });
6679
6732
  };
6680
6733
  FHGridComponent.prototype.deselectAllFiltered = function () {
6681
- var _this = this;
6682
6734
  this.gridOptions.api.forEachNode(function (node) {
6683
- _this.gridOptions.api.selectNode(node, false);
6735
+ node.setSelected(false);
6684
6736
  });
6685
6737
  };
6686
6738
  FHGridComponent.prototype.pulisci_filtri = function (resetr) {
@@ -7199,7 +7251,7 @@
7199
7251
  FHGridComponent.prototype.onSelectionChanged = function (event) {
7200
7252
  var rowCount = this.getGridApi().getSelectedNodes().length;
7201
7253
  this.selection_change.emit(rowCount);
7202
- // console.log('selectionChanged');
7254
+ console.log('selectionChanged');
7203
7255
  };
7204
7256
  FHGridComponent.prototype.onBeforeFilterChanged = function () {
7205
7257
  // console.log('beforeFilterChanged');
@@ -7519,7 +7571,8 @@
7519
7571
  if (data != null)
7520
7572
  if (data.result_msg == "OK") {
7521
7573
  for (var i = 0; i < data.result_data.length; i++)
7522
- data.result_data[i].descrizione_valore = _this._tsr.instant(data.result_data[i].descrizione_valore);
7574
+ if (data.result_data[i].descrizione_valore != null && data.result_data[i].descrizione_valore != '')
7575
+ data.result_data[i].descrizione_valore = _this._tsr.instant(data.result_data[i].descrizione_valore);
7523
7576
  _this.resetD(data.result_data);
7524
7577
  }
7525
7578
  });
@@ -7533,7 +7586,8 @@
7533
7586
  if (data.result_data[i].DESCRIZIONE_VALORE != null)
7534
7587
  data.result_data[i].descrizione_valore =
7535
7588
  data.result_data[i].DESCRIZIONE_VALORE;
7536
- data.result_data[i].descrizione_valore = _this._tsr.instant(data.result_data[i].descrizione_valore);
7589
+ if (data.result_data[i].descrizione_valore != null && data.result_data[i].descrizione_valore != '')
7590
+ data.result_data[i].descrizione_valore = _this._tsr.instant(data.result_data[i].descrizione_valore);
7537
7591
  }
7538
7592
  _this.resetD(data.result_data);
7539
7593
  }
@@ -18717,6 +18771,274 @@
18717
18771
  up: [{ type: i0.ViewChild, args: ["up",] }]
18718
18772
  };
18719
18773
 
18774
+ var fh_win_select_by_grid = /** @class */ (function () {
18775
+ function fh_win_select_by_grid(dialogRef, _dataService, toastr, apps, data) {
18776
+ var _this = this;
18777
+ this.dialogRef = dialogRef;
18778
+ this._dataService = _dataService;
18779
+ this.toastr = toastr;
18780
+ this.apps = apps;
18781
+ this.data = data;
18782
+ this.selection_mode = 'multiple';
18783
+ this.value_sel = [];
18784
+ this.gridOptions = {
18785
+ debug: false,
18786
+ enableRangeSelection: true,
18787
+ defaultColDef: { resizable: true, sortable: true, floatingFilter: true },
18788
+ allowContextMenuWithControlKey: true,
18789
+ localeText: {
18790
+ // for filter panel
18791
+ page: "pagina",
18792
+ more: "altre",
18793
+ to: "a",
18794
+ of: "di",
18795
+ next: "prossima",
18796
+ last: "ultima",
18797
+ first: "prima",
18798
+ previous: "precedente",
18799
+ loadingOoo: "Caricamento...",
18800
+ // for set filter
18801
+ selectAll: "Seleziona Tutto",
18802
+ searchOoo: "Trova...",
18803
+ blanks: "Vuoto",
18804
+ // for number filter and text filter
18805
+ filterOoo: "Filtro...",
18806
+ applyFilter: "Applica Filtro...",
18807
+ // for number filter
18808
+ equals: "Uguale",
18809
+ notEqual: "Diverso",
18810
+ lessThan: "Minore o Uguale",
18811
+ greaterThan: "Maggiore o Uguale",
18812
+ // for text filter
18813
+ notContains: "Non Contiene",
18814
+ contains: "Contiene",
18815
+ startsWith: "Inizia Con",
18816
+ endsWith: "Finisce Con",
18817
+ // the header of the default group column
18818
+ group: "Gruppo",
18819
+ // tool panel
18820
+ columns: "Colonne",
18821
+ rowGroupColumns: "Colonne Pivot",
18822
+ rowGroupColumnsEmptyMessage: "trascina le colonne per raggrupparle",
18823
+ valueColumns: "Colonne Valore",
18824
+ pivotMode: "Modalità Pivot",
18825
+ groups: "Gruppi",
18826
+ values: "Valori",
18827
+ pivots: "Pivots",
18828
+ valueColumnsEmptyMessage: "trascina le colonne per aggreare",
18829
+ pivotColumnsEmptyMessage: "trascina le colonne per pivot",
18830
+ // other
18831
+ noRowsToShow: "nessun dato",
18832
+ // enterprise menu
18833
+ pinColumn: "Sposta Colonna",
18834
+ valueAggregation: "Aggregazione",
18835
+ autosizeThiscolumn: "Autosize colonna",
18836
+ autosizeAllColumns: "Autosize tutte le colonne",
18837
+ groupBy: "Raggruppa per",
18838
+ ungroupBy: "Spacca per",
18839
+ resetColumns: "Resetta queste colonna",
18840
+ expandAll: "Espandi",
18841
+ collapseAll: "Chiudi",
18842
+ toolPanel: "Impostazioni",
18843
+ // enterprise menu pinning
18844
+ pinLeft: "Sposta <<",
18845
+ pinRight: "Sposta >>",
18846
+ noPin: "Sposta <>",
18847
+ // enterprise menu aggregation and status panel
18848
+ sum: "Somma",
18849
+ min: "Minimo",
18850
+ max: "Massimo",
18851
+ none: "Nessuno",
18852
+ count: "Numero",
18853
+ average: "Media",
18854
+ // standard menu
18855
+ copy: "Copia",
18856
+ ctrlC: "ctrl n C",
18857
+ paste: "Incolla",
18858
+ ctrlV: "ctrl n C",
18859
+ }
18860
+ };
18861
+ this.cc_pro = [
18862
+ {
18863
+ color: 'accent',
18864
+ command: 'sel_tutto',
18865
+ icon: 'select_all',
18866
+ label: 'Seleziona Tutto'
18867
+ },
18868
+ {
18869
+ color: 'accent',
18870
+ command: 'desel_tutto',
18871
+ icon: 'all_out',
18872
+ label: 'Deseleziona tutto'
18873
+ }
18874
+ ];
18875
+ this.defaultColDef = {
18876
+ flex: 1,
18877
+ minWidth: 100,
18878
+ resizable: true,
18879
+ headerCheckboxSelection: this.isFirstColumn,
18880
+ checkboxSelection: this.isFirstColumn,
18881
+ };
18882
+ this.columnDefs = [];
18883
+ this.system_dest = 1;
18884
+ this.title = '';
18885
+ this.tbl_name = '';
18886
+ this.tbl_flt = '';
18887
+ this.option = 0;
18888
+ this.init = false;
18889
+ if (data != null) {
18890
+ if (data.title != null)
18891
+ this.title = data.title;
18892
+ if (data.column_defs != null)
18893
+ this.columnDefs = data.column_defs;
18894
+ if (data.value_sel != null)
18895
+ this.value_sel = data.value_sel;
18896
+ this._dataService.doQuery(data.p_query).subscribe(function (data) {
18897
+ if (data != null)
18898
+ if (data.result_msg == "OK") {
18899
+ _this.rowData = data.result_data;
18900
+ _this.fe();
18901
+ }
18902
+ });
18903
+ }
18904
+ }
18905
+ fh_win_select_by_grid.prototype.onReady = function (event) {
18906
+ this.gridApi = event.api;
18907
+ this.fe();
18908
+ };
18909
+ fh_win_select_by_grid.prototype.cmd_wkf_prog = function (o) {
18910
+ if (o.cmd == "sel_tutto") {
18911
+ console.log(this.rowData);
18912
+ var _loop_1 = function (index) {
18913
+ var element = this_1.rowData[index];
18914
+ var v = '';
18915
+ v = element.valore;
18916
+ this_1.getGridApi().forEachNode(function (node) {
18917
+ var sx = '';
18918
+ sx = node.data.valore;
18919
+ if (sx == v) {
18920
+ node.setSelected(true);
18921
+ }
18922
+ });
18923
+ };
18924
+ var this_1 = this;
18925
+ for (var index = 0; index < this.rowData.length; index++) {
18926
+ _loop_1(index);
18927
+ }
18928
+ }
18929
+ if (o.cmd == "desel_tutto") {
18930
+ var _loop_2 = function (index) {
18931
+ var element = this_2.rowData[index];
18932
+ var v = '';
18933
+ v = element.valore;
18934
+ this_2.getGridApi().forEachNode(function (node) {
18935
+ var sx = '';
18936
+ sx = node.data.valore;
18937
+ if (sx == v) {
18938
+ node.setSelected(false);
18939
+ }
18940
+ });
18941
+ };
18942
+ var this_2 = this;
18943
+ for (var index = 0; index < this.rowData.length; index++) {
18944
+ _loop_2(index);
18945
+ }
18946
+ }
18947
+ };
18948
+ fh_win_select_by_grid.prototype.getGridApi = function () {
18949
+ return this.gridOptions.api;
18950
+ };
18951
+ fh_win_select_by_grid.prototype.getGridOptions = function () {
18952
+ return this.gridOptions;
18953
+ };
18954
+ fh_win_select_by_grid.prototype.selc = function (o) {
18955
+ var _this = this;
18956
+ this.option = o;
18957
+ var rowsSelection = this.getGridApi().getSelectedNodes();
18958
+ this.value_sel = [];
18959
+ rowsSelection.map(function (v) {
18960
+ _this.value_sel.push({ valore: v.data });
18961
+ });
18962
+ };
18963
+ fh_win_select_by_grid.prototype.onSelectionChanged = function (event) {
18964
+ var _this = this;
18965
+ var rowCount = this.getGridApi().getSelectedNodes().length;
18966
+ this.option = rowCount;
18967
+ var rowsSelection = this.getGridApi().getSelectedNodes();
18968
+ this.value_sel = [];
18969
+ rowsSelection.map(function (v) {
18970
+ _this.value_sel.push(v.data);
18971
+ });
18972
+ console.log('selectionChanged');
18973
+ };
18974
+ fh_win_select_by_grid.prototype.isFirstColumn = function (params) {
18975
+ var displayedColumns = params.columnApi.getAllDisplayedColumns();
18976
+ var thisIsFirstColumn = displayedColumns[0] === params.column;
18977
+ return thisIsFirstColumn;
18978
+ };
18979
+ fh_win_select_by_grid.prototype.ngAfterViewInit = function () { };
18980
+ fh_win_select_by_grid.prototype.fe = function () {
18981
+ var _this = this;
18982
+ setTimeout(function () {
18983
+ console.log('this.getGridApi() ', _this.getGridApi(), _this.value_sel);
18984
+ _this.value_sel.map(function (v) {
18985
+ var i = 0;
18986
+ _this.getGridApi().forEachNode(function (node) {
18987
+ var sx = '';
18988
+ sx = node.data.valore;
18989
+ if (sx == v.valore) {
18990
+ // console.log('OK!!')
18991
+ node.setSelected(true);
18992
+ }
18993
+ });
18994
+ });
18995
+ }, 100);
18996
+ };
18997
+ fh_win_select_by_grid.prototype.getSelStr = function () {
18998
+ var sx = "";
18999
+ for (var i = 0; i < this.value_sel.length; i++) {
19000
+ if (sx != "")
19001
+ sx = sx + ",";
19002
+ sx = sx + this.value_sel[i].descrizione_valore;
19003
+ }
19004
+ return sx;
19005
+ };
19006
+ fh_win_select_by_grid.prototype.getSelVal = function () {
19007
+ var sx = "";
19008
+ for (var i = 0; i < this.value_sel.length; i++) {
19009
+ if (sx != "")
19010
+ sx = sx + ",";
19011
+ sx = sx + this.value_sel[i].valore;
19012
+ }
19013
+ return sx;
19014
+ };
19015
+ fh_win_select_by_grid.prototype.getSelArr = function () {
19016
+ return this.value_sel;
19017
+ };
19018
+ fh_win_select_by_grid.prototype.ok = function () {
19019
+ this.dialogRef.close(this.getSelArr());
19020
+ };
19021
+ return fh_win_select_by_grid;
19022
+ }());
19023
+ fh_win_select_by_grid.decorators = [
19024
+ { type: i0.Component, args: [{
19025
+ selector: "PickList",
19026
+ 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<div style=\"width: 100%;text-align:right\">\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/>\n</div>\n</div>\n</div>\n<hr\u00A0width=\"100%\"\u00A0size=\"0.5\"\u00A0color=\"#DDDDDD\">\n\n <div [style.height]=\"'500px'\" style=\"width:100%;overflow:auto;\">\n\n <ag-grid-angular\n ref-agGrid\n style=\"width: 100%; height: 100%;\"\n id=\"myGrid\"\n class=\"ag-theme-balham\"\n [columnDefs]=\"columnDefs\"\n [rowData]=\"rowData\"\n (gridReady)=\"onReady($event)\"\n [rowSelection]=\"selection_mode\"\n [gridOptions]=\"gridOptions\"\n (selectionChanged)=\"onSelectionChanged($event)\"\n >\n </ag-grid-angular>\n\n </div>\n\n <br /><br />\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"5px\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">Ok ({{value_sel.length}})</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> </div>\n\n ",
19027
+ styles: ["\n .mat-dialog-content\u00A0{\u00A0\u00A0max-height:\u00A0unset\u00A0!important;\u00A0}\n .selector {\n cursor: hand;\n }\n "]
19028
+ },] }
19029
+ ];
19030
+ fh_win_select_by_grid.ctorParameters = function () { return [
19031
+ { type: dialog.MatDialogRef },
19032
+ { type: QueryService },
19033
+ { type: i3.ToastrService },
19034
+ { type: AppService },
19035
+ { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
19036
+ ]; };
19037
+ fh_win_select_by_grid.propDecorators = {
19038
+ selection_mode: [{ type: i0.Input }],
19039
+ dtmt: [{ type: i0.ViewChild, args: ['dtmt',] }]
19040
+ };
19041
+
18720
19042
  var FluxhubLibModule = /** @class */ (function () {
18721
19043
  function FluxhubLibModule() {
18722
19044
  }
@@ -18829,6 +19151,7 @@
18829
19151
  fh_win_app_logs,
18830
19152
  FHCurrencyPipe,
18831
19153
  fh_win_mappa,
19154
+ fh_win_select_by_grid,
18832
19155
  TextAreaEditor,
18833
19156
  ComboBoxEditor,
18834
19157
  FHListComponent,
@@ -18877,6 +19200,7 @@
18877
19200
  fh_win_ask_buttons,
18878
19201
  FHGridToolBarComponent,
18879
19202
  fh_win_time_slider,
19203
+ fh_win_select_by_grid,
18880
19204
  FHTimePickerComponent,
18881
19205
  CurrencyComponent,
18882
19206
  FHUploadPanelComponent,
@@ -23528,7 +23852,8 @@
23528
23852
  " non presenta utenti partecipanti validi", 1);
23529
23853
  return;
23530
23854
  }
23531
- if (this.transizione_info.manual_assignment == 1 || o.pre_assegna_man == 1) {
23855
+ console.log(' o.pre_assegna_req ', o.pre_assegna_req);
23856
+ if (this.transizione_info.manual_assignment == 1 || o.pre_assegna_man == 1 || o.pre_assegna_req == 1) {
23532
23857
  var att_autor_1 = [];
23533
23858
  //console.log('this.m_obj.creatore ',this.m_obj.creatore);
23534
23859
  if (this.m_obj.creatore != null)
@@ -25283,6 +25608,7 @@
25283
25608
  exports.fh_win_mappa = fh_win_mappa;
25284
25609
  exports.fh_win_output = fh_win_output;
25285
25610
  exports.fh_win_picklist = fh_win_picklist;
25611
+ exports.fh_win_select_by_grid = fh_win_select_by_grid;
25286
25612
  exports.fh_win_show_email = fh_win_show_email;
25287
25613
  exports.fh_win_show_email_s3 = fh_win_show_email_s3;
25288
25614
  exports.fh_win_show_image = fh_win_show_image;