@fluxhub/fluxhub-lib 11.0.148 → 11.0.149

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.
@@ -9616,13 +9616,6 @@
9616
9616
  FHListComponent.prototype.upd_f = function (u, b) {
9617
9617
  if (this.single_sel)
9618
9618
  u.checked = true;
9619
- /*console.log(b.descrizione_valore +" "+b.checked);
9620
- for(let i:number=0;i<this.myData.length;i++)
9621
- if(this.myData[i].descrizione_valore==u.descrizione_valore){
9622
- this.myData[i].checked=b.checked
9623
-
9624
- break;
9625
- }*/
9626
9619
  var o = new Object();
9627
9620
  o.u = u;
9628
9621
  o.b = b;
@@ -9631,6 +9624,7 @@
9631
9624
  FHListComponent.prototype.resetValue = function () {
9632
9625
  for (var i = 0; i < this.myData.length; i++)
9633
9626
  this.myData[i].checked = false;
9627
+ this.applyFilter();
9634
9628
  };
9635
9629
  FHListComponent.prototype.reset = function () {
9636
9630
  this.myData = new Array();
@@ -9662,11 +9656,6 @@
9662
9656
  _this.setByDescri(_this.valDef);
9663
9657
  _this.fillend.emit();
9664
9658
  }
9665
- }, function (err) {
9666
- _this.errorMsg =
9667
- "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI [" +
9668
- _this.sql +
9669
- ']';
9670
9659
  });
9671
9660
  };
9672
9661
  FHListComponent.prototype.setByDescri = function (desc_val) {
@@ -9726,6 +9715,7 @@
9726
9715
  //console.log("selval: "+this.selval);
9727
9716
  }
9728
9717
  }
9718
+ this.applyFilter();
9729
9719
  };
9730
9720
  FHListComponent.prototype.getDescri = function () {
9731
9721
  var sx = '';
@@ -9739,26 +9729,26 @@
9739
9729
  };
9740
9730
  FHListComponent.prototype.getObjects = function () {
9741
9731
  var sx = new Array();
9742
- for (var j = 0; j < this.myData.length; j++)
9743
- if (this.myData[j].checked) {
9744
- sx.push(this.myData[j]);
9732
+ for (var j = 0; j < this.myDataFilter.length; j++)
9733
+ if (this.myDataFilter[j].checked) {
9734
+ sx.push(this.myDataFilter[j]);
9745
9735
  }
9746
9736
  return sx;
9747
9737
  };
9748
9738
  FHListComponent.prototype.getValue = function () {
9749
9739
  var sx = '';
9750
- for (var j = 0; j < this.myData.length; j++)
9751
- if (this.myData[j].checked) {
9740
+ for (var j = 0; j < this.myDataFilter.length; j++)
9741
+ if (this.myDataFilter[j].checked) {
9752
9742
  if (sx != '')
9753
9743
  sx = sx + this.separator;
9754
- sx = sx + this.myData[j].valore;
9744
+ sx = sx + this.myDataFilter[j].valore;
9755
9745
  }
9756
9746
  return sx;
9757
9747
  };
9758
9748
  FHListComponent.prototype.getData = function (campo) {
9759
- for (var x in this.myData) {
9760
- if (this.myData[x]['valore'] == this.selval) {
9761
- return this.myData[x][campo];
9749
+ for (var x in this.myDataFilter) {
9750
+ if (this.myDataFilter[x]['valore'] == this.selval) {
9751
+ return this.myDataFilter[x][campo];
9762
9752
  }
9763
9753
  else {
9764
9754
  continue;
@@ -9768,6 +9758,7 @@
9768
9758
  FHListComponent.prototype.add_option = function (o) {
9769
9759
  o.valore = o.valore.toString();
9770
9760
  this.myData.push(o);
9761
+ this.applyFilter();
9771
9762
  };
9772
9763
  FHListComponent.prototype.set_options = function (s) {
9773
9764
  this.myData = new Array();
@@ -10482,7 +10473,7 @@
10482
10473
  };
10483
10474
  fh_win_list.prototype.doFill = function () {
10484
10475
  var _this = this;
10485
- console.log("🚀 ~ file: win_list_pick.ts ~ line 90 ~ fh_win_list ~ doFill ~ this.cmb_sel", this.cmb_sel);
10476
+ // console.log("🚀 ~ file: win_list_pick.ts ~ line 90 ~ fh_win_list ~ doFill ~ this.cmb_sel", this.cmb_sel)
10486
10477
  if (this.cmb_sel == null) {
10487
10478
  setTimeout(function () {
10488
10479
  _this.doFill();