@eqproject/eqp-dynamic-module 2.6.28 → 2.6.29

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.
@@ -2472,11 +2472,13 @@ class ListValueFieldTemplateComponent {
2472
2472
  * Metodo per creare un array di oggetti del tipo { Key: string, Value: any } da usare come sorgente dati per la eqp-select.
2473
2473
  */
2474
2474
  setArrayData() {
2475
- if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
2476
- Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
2477
- }
2478
- else {
2479
- Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
2475
+ if (this.field.ValuePairs != null) {
2476
+ if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
2477
+ Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
2478
+ }
2479
+ else {
2480
+ Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
2481
+ }
2480
2482
  }
2481
2483
  }
2482
2484
  createArrayDataElement(key, value, imgUrl = null) {
@@ -6934,11 +6936,13 @@ class ListValueFilterTemplateComponent {
6934
6936
  */
6935
6937
  setArrayData() {
6936
6938
  this.prepareValuePairs();
6937
- if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
6938
- Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
6939
- }
6940
- else {
6941
- Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
6939
+ if (this.field.ValuePairs != null) {
6940
+ if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
6941
+ Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
6942
+ }
6943
+ else {
6944
+ Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
6945
+ }
6942
6946
  }
6943
6947
  }
6944
6948
  prepareValuePairs() {
@@ -7337,11 +7341,13 @@ class ImageSelectorFilterTemplateComponent {
7337
7341
  */
7338
7342
  setArrayData() {
7339
7343
  this.prepareValuePairs();
7340
- if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
7341
- Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
7342
- }
7343
- else {
7344
- Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
7344
+ if (this.field.ValuePairs != null) {
7345
+ if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
7346
+ Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
7347
+ }
7348
+ else {
7349
+ Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
7350
+ }
7345
7351
  }
7346
7352
  }
7347
7353
  prepareValuePairs() {
@@ -10993,6 +10999,9 @@ class EqpDynamicModuleConfiguratorComponent {
10993
10999
  };
10994
11000
  }
10995
11001
  setImportedForm(form) {
11002
+ // Modifica del creation user su Import
11003
+ form.CreationUser = this.UserID;
11004
+ // Modifica dei Field su Import
10996
11005
  form.Fields.forEach((field) => {
10997
11006
  if (field.FieldType == FieldTypeEnum["Elenco immagini"]) {
10998
11007
  field.AttachmentList.forEach((attachment) => {
@@ -12160,11 +12169,13 @@ class ListValueTriggerTemplateComponent {
12160
12169
  */
12161
12170
  setArrayData() {
12162
12171
  this.prepareValuePairs();
12163
- if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
12164
- Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
12165
- }
12166
- else {
12167
- Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
12172
+ if (this.field.ValuePairs != null) {
12173
+ if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
12174
+ Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
12175
+ }
12176
+ else {
12177
+ Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
12178
+ }
12168
12179
  }
12169
12180
  }
12170
12181
  prepareValuePairs() {