@eqproject/eqp-dynamic-module 2.6.55 → 2.6.56

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.
@@ -10868,7 +10868,6 @@ class ListValueTriggerTemplateComponent {
10868
10868
  this.field = this.condition.Field;
10869
10869
  this.initStyles();
10870
10870
  this.setArrayData();
10871
- console.log("CONDITION", this.condition, "ARRAYDATA", this.arrayData);
10872
10871
  }
10873
10872
  initStyles() {
10874
10873
  //Funzione per parsare il campo stylecss dell'oggetto field ed applicarlo all'html
@@ -10892,13 +10891,10 @@ class ListValueTriggerTemplateComponent {
10892
10891
  this.triggerChange.emit(output);
10893
10892
  }
10894
10893
  setArrayData() {
10895
- if (this.field.ValueString != null) {
10896
- var arrayParts = this.field.ValueString.split(";");
10897
- arrayParts.forEach((row) => {
10898
- var values = row.split("|");
10899
- this.arrayData.push({ Key: values[0], Value: values[1], Selected: false });
10900
- });
10901
- }
10894
+ this.field.ValuePairs = GlobalService.stringToValuePairs(this.field.ValueString);
10895
+ Object.keys(this.field.ValuePairs).forEach((k) => {
10896
+ this.arrayData.push({ Key: k, Value: this.field.ValuePairs[k], Selected: false });
10897
+ });
10902
10898
  }
10903
10899
  }
10904
10900
  ListValueTriggerTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListValueTriggerTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });