@fluxhub/fluxhub-lib 10.0.101 → 10.0.103

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.
@@ -8300,7 +8300,7 @@
8300
8300
  });
8301
8301
  };
8302
8302
  FHListComponent.prototype.setByDescri = function (desc_val) {
8303
- //console.log("setByDescri "+desc_val);
8303
+ console.log("setByDescri " + desc_val);
8304
8304
  this.valDef = desc_val;
8305
8305
  if (desc_val == null)
8306
8306
  return;
@@ -8311,8 +8311,10 @@
8311
8311
  if (this.myData.length == 0 || this.myData[0] == null)
8312
8312
  return;
8313
8313
  var arr_val = desc_val.split(this.separator);
8314
+ console.log('arr_val ', arr_val);
8314
8315
  for (var j = 0; j < this.myData.length; j++)
8315
8316
  for (var j1 = 0; j1 < arr_val.length; j1++) {
8317
+ console.log('v1 - v2', this.myData[j].descrizione_valore, arr_val[j1]);
8316
8318
  if (this.myData[j].descrizione_valore == arr_val[j1]) {
8317
8319
  this.myData[j].checked = true;
8318
8320
  }
@@ -9107,10 +9109,9 @@
9107
9109
  };
9108
9110
 
9109
9111
  var FHListPick = /** @class */ (function () {
9110
- function FHListPick(dialogRef, toastr, m_appService, data) {
9112
+ function FHListPick(dialogRef, toastr, data) {
9111
9113
  this.dialogRef = dialogRef;
9112
9114
  this.toastr = toastr;
9113
- this.m_appService = m_appService;
9114
9115
  this.data = data;
9115
9116
  this.label = "";
9116
9117
  this.separator = ",";
@@ -9182,6 +9183,8 @@
9182
9183
  if (this.options != null) {
9183
9184
  this.cmb_sel.myData = JSON.parse(JSON.stringify(this.options));
9184
9185
  }
9186
+ if (!this.single_sel)
9187
+ this.cmb_sel.setByDescri(this.sel_values);
9185
9188
  };
9186
9189
  return FHListPick;
9187
9190
  }());
@@ -9194,7 +9197,6 @@
9194
9197
  FHListPick.ctorParameters = function () { return [
9195
9198
  { type: dialog.MatDialogRef },
9196
9199
  { type: i3.ToastrService },
9197
- { type: AppService },
9198
9200
  { type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
9199
9201
  ]; };
9200
9202
  FHListPick.propDecorators = {