@fluxhub/fluxhub-lib 9.0.150 → 9.0.151

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 () {
@@ -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();
@@ -10611,6 +10617,7 @@
10611
10617
  this.values = [];
10612
10618
  this.single_sel = false;
10613
10619
  this.sel_values = "";
10620
+ this.required = true;
10614
10621
  if (data != null) {
10615
10622
  if (data.sql != null)
10616
10623
  this.sql = data.sql;
@@ -10628,6 +10635,8 @@
10628
10635
  this.separator = data.separator;
10629
10636
  if (data.label != null)
10630
10637
  this.label = data.label;
10638
+ if (data.required != null)
10639
+ this.required = data.required;
10631
10640
  if (data.sql != null)
10632
10641
  this.doFill();
10633
10642
  }
@@ -10651,10 +10660,11 @@
10651
10660
  this.cmb_sel.fillCombo();
10652
10661
  };
10653
10662
  FHListPick.prototype.ok = function () {
10654
- if (this.cmb_sel.getValue() == "") {
10655
- this.toastr.error("Selezionare un valore");
10656
- return;
10657
- }
10663
+ if (this.required)
10664
+ if (this.cmb_sel.getValue() == "") {
10665
+ this.toastr.error("Selezionare un valore");
10666
+ return;
10667
+ }
10658
10668
  this.dialogRef.close(this.cmb_sel.getObjects());
10659
10669
  };
10660
10670
  FHListPick.prototype.ok_single = function () {