@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.
@@ -1193,6 +1193,9 @@ var FHComboboxComponent = /** @class */ (function () {
1193
1193
  if (this.getValue() == "-1")
1194
1194
  this.setByDescri(this.valDef);
1195
1195
  };
1196
+ FHComboboxComponent.prototype.doFill = function () {
1197
+ this.fillCombo();
1198
+ };
1196
1199
  FHComboboxComponent.prototype.ngAfterViewInit = function () {
1197
1200
  var _this = this;
1198
1201
  setTimeout(function () {
@@ -8616,7 +8619,7 @@ var FHAutoCompleteComponent = /** @class */ (function () {
8616
8619
  };
8617
8620
  FHAutoCompleteComponent.prototype.resetValue = function (b_res_valdef) {
8618
8621
  if (b_res_valdef === void 0) { b_res_valdef = true; }
8619
- console.log(">>>resetValue<<<");
8622
+ //console.log(">>>resetValue<<<");
8620
8623
  this.selval = "";
8621
8624
  if (b_res_valdef)
8622
8625
  this.valDef = "";
@@ -8624,7 +8627,7 @@ var FHAutoCompleteComponent = /** @class */ (function () {
8624
8627
  this.selval = null;
8625
8628
  };
8626
8629
  FHAutoCompleteComponent.prototype.reset = function () {
8627
- console.log(">>>reset<<<");
8630
+ //console.log(">>>reset<<<");
8628
8631
  this.selval = "";
8629
8632
  this.valDef = "";
8630
8633
  this.selval = null;
@@ -8632,6 +8635,9 @@ var FHAutoCompleteComponent = /** @class */ (function () {
8632
8635
  // this.smtr.nativeElement.value = "";
8633
8636
  this.myData = new Array();
8634
8637
  };
8638
+ FHAutoCompleteComponent.prototype.doFill = function () {
8639
+ this.fillCombo();
8640
+ };
8635
8641
  FHAutoCompleteComponent.prototype.fillCombo = function () {
8636
8642
  var _this = this;
8637
8643
  this.myData = new Array();
@@ -8685,6 +8691,7 @@ var FHAutoCompleteComponent = /** @class */ (function () {
8685
8691
  }
8686
8692
  };
8687
8693
  FHAutoCompleteComponent.prototype.setByDescri = function (desc_val) {
8694
+ // console.log('setByDescri ',desc_val);
8688
8695
  this.valDef = desc_val;
8689
8696
  this.selval = "";
8690
8697
  if (desc_val == "") {
@@ -8710,8 +8717,13 @@ var FHAutoCompleteComponent = /** @class */ (function () {
8710
8717
  this.sItem = desc_val;
8711
8718
  }
8712
8719
  };
8720
+ FHAutoCompleteComponent.prototype.last_val_rec = function () {
8721
+ this.setByValue(this.last_v);
8722
+ };
8713
8723
  FHAutoCompleteComponent.prototype.setByValue = function (desc_val) {
8714
8724
  var _this = this;
8725
+ //console.log('setByValue ',desc_val);
8726
+ this.last_v = desc_val;
8715
8727
  this.valDef = desc_val;
8716
8728
  this.selval = desc_val;
8717
8729
  if (this.myData != null) {
@@ -8730,7 +8742,7 @@ var FHAutoCompleteComponent = /** @class */ (function () {
8730
8742
  this.resetValue(false);
8731
8743
  }
8732
8744
  else {
8733
- setTimeout(function () { _this.setByValue(desc_val); }, 1000);
8745
+ setTimeout(function () { _this.last_val_rec(); }, 1000);
8734
8746
  return;
8735
8747
  }
8736
8748
  if (!this.only_from_list) {
@@ -10479,6 +10491,7 @@ var FHListPick = /** @class */ (function () {
10479
10491
  this.values = [];
10480
10492
  this.single_sel = false;
10481
10493
  this.sel_values = "";
10494
+ this.required = true;
10482
10495
  if (data != null) {
10483
10496
  if (data.sql != null)
10484
10497
  this.sql = data.sql;
@@ -10496,6 +10509,8 @@ var FHListPick = /** @class */ (function () {
10496
10509
  this.separator = data.separator;
10497
10510
  if (data.label != null)
10498
10511
  this.label = data.label;
10512
+ if (data.required != null)
10513
+ this.required = data.required;
10499
10514
  if (data.sql != null)
10500
10515
  this.doFill();
10501
10516
  }
@@ -10519,10 +10534,11 @@ var FHListPick = /** @class */ (function () {
10519
10534
  this.cmb_sel.fillCombo();
10520
10535
  };
10521
10536
  FHListPick.prototype.ok = function () {
10522
- if (this.cmb_sel.getValue() == "") {
10523
- this.toastr.error("Selezionare un valore");
10524
- return;
10525
- }
10537
+ if (this.required)
10538
+ if (this.cmb_sel.getValue() == "") {
10539
+ this.toastr.error("Selezionare un valore");
10540
+ return;
10541
+ }
10526
10542
  this.dialogRef.close(this.cmb_sel.getObjects());
10527
10543
  };
10528
10544
  FHListPick.prototype.ok_single = function () {