@fluxhub/fluxhub-lib 9.0.150 → 9.0.152

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.
@@ -1325,6 +1325,9 @@
1325
1325
  if (this.getValue() == "-1")
1326
1326
  this.setByDescri(this.valDef);
1327
1327
  };
1328
+ FHComboboxComponent.prototype.doFill = function () {
1329
+ this.fillCombo();
1330
+ };
1328
1331
  FHComboboxComponent.prototype.ngAfterViewInit = function () {
1329
1332
  var _this = this;
1330
1333
  setTimeout(function () {
@@ -8748,7 +8751,7 @@
8748
8751
  };
8749
8752
  FHAutoCompleteComponent.prototype.resetValue = function (b_res_valdef) {
8750
8753
  if (b_res_valdef === void 0) { b_res_valdef = true; }
8751
- console.log(">>>resetValue<<<");
8754
+ //console.log(">>>resetValue<<<");
8752
8755
  this.selval = "";
8753
8756
  if (b_res_valdef)
8754
8757
  this.valDef = "";
@@ -8756,7 +8759,7 @@
8756
8759
  this.selval = null;
8757
8760
  };
8758
8761
  FHAutoCompleteComponent.prototype.reset = function () {
8759
- console.log(">>>reset<<<");
8762
+ //console.log(">>>reset<<<");
8760
8763
  this.selval = "";
8761
8764
  this.valDef = "";
8762
8765
  this.selval = null;
@@ -8764,6 +8767,9 @@
8764
8767
  // this.smtr.nativeElement.value = "";
8765
8768
  this.myData = new Array();
8766
8769
  };
8770
+ FHAutoCompleteComponent.prototype.doFill = function () {
8771
+ this.fillCombo();
8772
+ };
8767
8773
  FHAutoCompleteComponent.prototype.fillCombo = function () {
8768
8774
  var _this = this;
8769
8775
  this.myData = new Array();
@@ -8817,6 +8823,7 @@
8817
8823
  }
8818
8824
  };
8819
8825
  FHAutoCompleteComponent.prototype.setByDescri = function (desc_val) {
8826
+ // console.log('setByDescri ',desc_val);
8820
8827
  this.valDef = desc_val;
8821
8828
  this.selval = "";
8822
8829
  if (desc_val == "") {
@@ -8842,8 +8849,13 @@
8842
8849
  this.sItem = desc_val;
8843
8850
  }
8844
8851
  };
8852
+ FHAutoCompleteComponent.prototype.last_val_rec = function () {
8853
+ this.setByValue(this.last_v);
8854
+ };
8845
8855
  FHAutoCompleteComponent.prototype.setByValue = function (desc_val) {
8846
8856
  var _this = this;
8857
+ //console.log('setByValue ',desc_val);
8858
+ this.last_v = desc_val;
8847
8859
  this.valDef = desc_val;
8848
8860
  this.selval = desc_val;
8849
8861
  if (this.myData != null) {
@@ -8862,7 +8874,7 @@
8862
8874
  this.resetValue(false);
8863
8875
  }
8864
8876
  else {
8865
- setTimeout(function () { _this.setByValue(desc_val); }, 1000);
8877
+ setTimeout(function () { _this.last_val_rec(); }, 1000);
8866
8878
  return;
8867
8879
  }
8868
8880
  if (!this.only_from_list) {
@@ -10611,6 +10623,7 @@
10611
10623
  this.values = [];
10612
10624
  this.single_sel = false;
10613
10625
  this.sel_values = "";
10626
+ this.required = true;
10614
10627
  if (data != null) {
10615
10628
  if (data.sql != null)
10616
10629
  this.sql = data.sql;
@@ -10628,6 +10641,8 @@
10628
10641
  this.separator = data.separator;
10629
10642
  if (data.label != null)
10630
10643
  this.label = data.label;
10644
+ if (data.required != null)
10645
+ this.required = data.required;
10631
10646
  if (data.sql != null)
10632
10647
  this.doFill();
10633
10648
  }
@@ -10651,10 +10666,11 @@
10651
10666
  this.cmb_sel.fillCombo();
10652
10667
  };
10653
10668
  FHListPick.prototype.ok = function () {
10654
- if (this.cmb_sel.getValue() == "") {
10655
- this.toastr.error("Selezionare un valore");
10656
- return;
10657
- }
10669
+ if (this.required)
10670
+ if (this.cmb_sel.getValue() == "") {
10671
+ this.toastr.error("Selezionare un valore");
10672
+ return;
10673
+ }
10658
10674
  this.dialogRef.close(this.cmb_sel.getObjects());
10659
10675
  };
10660
10676
  FHListPick.prototype.ok_single = function () {