@eqproject/eqp-dynamic-module 2.3.29 → 2.3.31

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.
Files changed (23) hide show
  1. package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +7 -10
  2. package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +7 -6
  3. package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +7 -6
  4. package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +1 -1
  5. package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +1 -1
  6. package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +14 -13
  7. package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +17 -6
  8. package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +37 -36
  9. package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +7 -6
  10. package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +17 -17
  11. package/esm2020/lib/components/private/form-records/list-view-form-record/single-record/single-record.component.mjs +5 -4
  12. package/esm2020/lib/components/private/form-records/view-form-record/view-form-record.component.mjs +8 -7
  13. package/esm2020/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +16 -15
  14. package/esm2020/lib/services/global.service.mjs +23 -0
  15. package/esm2020/lib/services/utilityHelper.services.mjs +20 -20
  16. package/fesm2015/eqproject-eqp-dynamic-module.mjs +163 -136
  17. package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
  18. package/fesm2020/eqproject-eqp-dynamic-module.mjs +163 -136
  19. package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
  20. package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +0 -1
  21. package/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.d.ts +2 -1
  22. package/lib/services/global.service.d.ts +10 -0
  23. package/package.json +1 -1
@@ -9,6 +9,7 @@ import * as i2 from '@angular/common/http';
9
9
  import { Subject, interval } from 'rxjs';
10
10
  import * as i6$1 from '@eqproject/eqp-table';
11
11
  import { TypeColumn, NumberColumnPipe, CellAlignmentEnum, ExportEqpTable, CustomExportType, EqpTableModule } from '@eqproject/eqp-table';
12
+ import { GlobalService as GlobalService$1 } from 'projects/eqp-dynamic-module/src/lib/services/global.service';
12
13
  import * as i2$1 from '@angular/material/button';
13
14
  import { MatButtonModule } from '@angular/material/button';
14
15
  import * as i5$1 from '@angular/material/card';
@@ -701,7 +702,7 @@ class UtilityHelperService {
701
702
  */
702
703
  getFieldSyleClass(field) {
703
704
  if (field.ColSpanSizes && field.ColSpanSizes.length > 0) {
704
- this.debugLog('field', field);
705
+ ////GlobalService.debugLog('field', field)
705
706
  return field.ColSpanSizes.map((size) => ColSpanSizesEnum[size].toString()).join(" ");
706
707
  }
707
708
  return this.getDefaultStyleClass(field);
@@ -715,7 +716,7 @@ class UtilityHelperService {
715
716
  */
716
717
  getFieldAnswerStyleClass(field) {
717
718
  if (field.AnswerStyle && field.AnswerStyle.ColSpanSizes && field.AnswerStyle.ColSpanSizes.length > 0) {
718
- this.debugLog('field', field);
719
+ ////GlobalService.debugLog('field', field)
719
720
  return field.AnswerStyle.ColSpanSizes.map((size) => ColSpanSizesEnum[size].toString()).join(" ");
720
721
  }
721
722
  return this.getDefaultStyleClass(field);
@@ -723,22 +724,22 @@ class UtilityHelperService {
723
724
  getDefaultStyleClass(field) {
724
725
  switch (field.FieldType) {
725
726
  case FieldTypeEnum["Campo di testo"]:
726
- this.debugLog('Campo di testo');
727
+ //GlobalService.debugLog('Campo di testo')
727
728
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
728
729
  case FieldTypeEnum["Area di testo"]:
729
- this.debugLog('Area di testo');
730
+ //GlobalService.debugLog('Area di testo')
730
731
  return "col-sm-12 col-md-12 col-lg-12 align-self-end";
731
732
  case FieldTypeEnum["Booleano"]:
732
- this.debugLog('Booleano');
733
+ //GlobalService.debugLog('Booleano')
733
734
  return "col-sm-12 col-md-4 col-lg-4 align-self-center";
734
735
  case FieldTypeEnum["Data e/o ora"]:
735
- this.debugLog('Data e/o ora');
736
+ //GlobalService.debugLog('Data e/o ora')
736
737
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
737
738
  case FieldTypeEnum["Campo numerico"]:
738
- this.debugLog('Campo numerico');
739
+ //GlobalService.debugLog('Campo numerico')
739
740
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
740
741
  case FieldTypeEnum["Allegato"]:
741
- this.debugLog('Allegato');
742
+ //GlobalService.debugLog('Allegato')
742
743
  if (field.IsMultiAttach ||
743
744
  (field.MetadataFields &&
744
745
  field.MetadataFields.length > 0)) {
@@ -748,7 +749,7 @@ class UtilityHelperService {
748
749
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
749
750
  }
750
751
  case FieldTypeEnum["Immagine"]:
751
- this.debugLog('Immagine');
752
+ //GlobalService.debugLog('Immagine')
752
753
  if (field.AttachDefinition.IsMultiAttach ||
753
754
  (field.AttachDefinition.MetadataFields &&
754
755
  field.AttachDefinition.MetadataFields.length > 0)) {
@@ -758,13 +759,13 @@ class UtilityHelperService {
758
759
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
759
760
  }
760
761
  case FieldTypeEnum["Elenco generico"]:
761
- this.debugLog('Elenco generico');
762
+ //GlobalService.debugLog('Elenco generico')
762
763
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
763
764
  case FieldTypeEnum["Lookup"]:
764
- this.debugLog('Lookup');
765
+ //GlobalService.debugLog('Lookup')
765
766
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
766
767
  case FieldTypeEnum["Form di dettaglio"]:
767
- this.debugLog('Form di dettaglio');
768
+ //GlobalService.debugLog('Form di dettaglio')
768
769
  return "col-sm-12 col-md-12 col-lg-12 align-self-end";
769
770
  }
770
771
  }
@@ -777,16 +778,16 @@ class UtilityHelperService {
777
778
  * @returns Restituisce un FormGroup rappresentate la Form a cui appartengono i BaseField ricevuti in input.
778
779
  */
779
780
  CreateFormFormGroup(formFields, record, onlyView = false, includeCurrentFormInField = true) {
780
- // this.debugLog("formFields", formFields);
781
- // this.debugLog("record", record);
782
- // this.debugLog("onlyView", onlyView);
783
- // this.debugLog("includeCurrentFormInField", includeCurrentFormInField);
781
+ // //GlobalService.debugLog("formFields", formFields);
782
+ // //GlobalService.debugLog("record", record);
783
+ // //GlobalService.debugLog("onlyView", onlyView);
784
+ // //GlobalService.debugLog("includeCurrentFormInField", includeCurrentFormInField);
784
785
  const formForm = this.formBuilder.group([]);
785
786
  formFields.forEach((field) => {
786
- // this.debugLog(field);
787
+ // //GlobalService.debugLog(field);
787
788
  formForm.addControl(field.Name, this.createFieldFormControl(field, record));
788
789
  if (includeCurrentFormInField) {
789
- // this.debugLog(field);
790
+ // //GlobalService.debugLog(field);
790
791
  field.FormFormGroup = formForm;
791
792
  }
792
793
  });
@@ -1068,7 +1069,7 @@ class UtilityHelperService {
1068
1069
  }
1069
1070
  EqpDynamicModuleDialogService.Error(error.message);
1070
1071
  throw new Error(error.message);
1071
- this.debugLog("RunEndPointCall - subscribe - end");
1072
+ //GlobalService.debugLog("RunEndPointCall - subscribe - end");
1072
1073
  });
1073
1074
  }
1074
1075
  }
@@ -1089,6 +1090,26 @@ var DynamicModuleFilterResultViewModeEnum;
1089
1090
  DynamicModuleFilterResultViewModeEnum[DynamicModuleFilterResultViewModeEnum["INTERNAL_EQPTABLE"] = 2] = "INTERNAL_EQPTABLE";
1090
1091
  })(DynamicModuleFilterResultViewModeEnum || (DynamicModuleFilterResultViewModeEnum = {}));
1091
1092
 
1093
+ class GlobalService {
1094
+ constructor(http) {
1095
+ this.http = http;
1096
+ }
1097
+ static debugLog(message, element) {
1098
+ if (this.debugMode) {
1099
+ console.log(message, element);
1100
+ }
1101
+ }
1102
+ }
1103
+ GlobalService.debugMode = false;
1104
+ GlobalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalService, deps: [{ token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1105
+ GlobalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalService, providedIn: 'root' });
1106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalService, decorators: [{
1107
+ type: Injectable,
1108
+ args: [{
1109
+ providedIn: 'root'
1110
+ }]
1111
+ }], ctorParameters: function () { return [{ type: i2.HttpClient }]; } });
1112
+
1092
1113
  class Record {
1093
1114
  }
1094
1115
  class DynRecord {
@@ -1134,11 +1155,11 @@ class ListFormRecordComponent {
1134
1155
  this.defaultListActions = this.configurations.defaultListActions;
1135
1156
  this.showTitle = this.configurations.showTitle;
1136
1157
  // this.values = this.configurations.values
1137
- this.debugLog('list-form-record - ngOnInit - configurations', this.configurations);
1158
+ GlobalService$1.debugLog('list-form-record - ngOnInit - configurations', this.configurations);
1138
1159
  this.getFormByID();
1139
1160
  }
1140
1161
  ngOnChanges(changes) {
1141
- this.debugLog('list-form-record - changes', changes);
1162
+ GlobalService$1.debugLog('list-form-record - changes', changes);
1142
1163
  // Se viene modificato il valore di "ngModelInput" allora aggiorna l'input
1143
1164
  // if (changes['configurations'] != undefined && changes['configurations'].firstChange == false) {
1144
1165
  // this.configurations.values = changes['configurations'].currentValue;
@@ -1146,7 +1167,7 @@ class ListFormRecordComponent {
1146
1167
  // }
1147
1168
  }
1148
1169
  async getFormByID(id = this.formID) {
1149
- this.debugLog('list-form-record - getFormByID', this.form);
1170
+ GlobalService$1.debugLog('list-form-record - getFormByID', this.form);
1150
1171
  if (this.form == null) {
1151
1172
  const dynamicModuleParams = new Array();
1152
1173
  dynamicModuleParams.push({
@@ -1305,7 +1326,7 @@ class ListFormRecordComponent {
1305
1326
  * definite dall'utente all'interno della Form.
1306
1327
  */
1307
1328
  createAdditionalActions() {
1308
- this.debugLog('list-form-record - createAdditionalActions', this.form);
1329
+ GlobalService$1.debugLog('list-form-record - createAdditionalActions', this.form);
1309
1330
  if (this.form.ActionsOnRecord && this.form.ActionsOnRecord.length > 0) {
1310
1331
  this.form.ActionsOnRecord.sort((a, b) => a.OrdinalPosition > b.OrdinalPosition
1311
1332
  ? 1
@@ -1335,7 +1356,7 @@ class ListFormRecordComponent {
1335
1356
  * seleziona i primi 6.
1336
1357
  */
1337
1358
  createColumnsFromFormFields() {
1338
- this.debugLog('list-form-record - createColumnsFromFormFields', this.form);
1359
+ GlobalService$1.debugLog('list-form-record - createColumnsFromFormFields', this.form);
1339
1360
  var fieldsForColumns;
1340
1361
  if (this.form.Fields.find((f) => f.InListView)) {
1341
1362
  fieldsForColumns = this.form.Fields.filter((f) => f.InListView);
@@ -1913,6 +1934,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1913
1934
 
1914
1935
  class NumericFieldTemplateComponent {
1915
1936
  constructor() {
1937
+ this.debugMode = false;
1916
1938
  this.recordChange = new EventEmitter();
1917
1939
  this.validatorsArray = [];
1918
1940
  this.eqpNumericOptions = {};
@@ -1956,11 +1978,18 @@ class NumericFieldTemplateComponent {
1956
1978
  * Metodo per emettere l'evento che il valore del record è cambiato.
1957
1979
  */
1958
1980
  onRecordValueChange() {
1959
- console.log("record changed", this.field.Name);
1981
+ GlobalService.debugLog("record changed - this.field.Name", this.field.Name);
1982
+ GlobalService.debugLog("record changed - this.record[this.field.Name]", this.record[this.field.Name]);
1960
1983
  if (!this.field.Formula) {
1984
+ GlobalService.debugLog("!this.field.Formula", this.field.Name);
1961
1985
  if (this.isDirty) {
1986
+ GlobalService.debugLog("this.isDirty", this.field.Name);
1987
+ GlobalService.debugLog("this.isDirty - Full Record", this.record);
1988
+ GlobalService.debugLog("this.isDirty - Precision", this.eqpNumericOptions.precision);
1989
+ GlobalService.debugLog("this.isDirty - pre ", this.record[this.field.Name]);
1962
1990
  this.record[this.field.Name] = this.record[this.field.Name] == 0 ? 0 : (this.record[this.field.Name] / Math.pow(10, this.eqpNumericOptions.precision)).toFixed(this.eqpNumericOptions.precision);
1963
- console.log("setDirty OFF", this.field.Name);
1991
+ GlobalService.debugLog("this.isDirty - post ", this.record[this.field.Name]);
1992
+ GlobalService.debugLog("setDirty OFF", this.field.Name);
1964
1993
  this.isDirty = false;
1965
1994
  }
1966
1995
  this.recordChange.emit(this.record);
@@ -2004,16 +2033,18 @@ class NumericFieldTemplateComponent {
2004
2033
  this.field.FormFormGroup.get([this.field.Name]).setValidators(this.validatorsArray);
2005
2034
  }
2006
2035
  setDirty() {
2007
- console.log("setDirty ON", this.field.Name);
2036
+ GlobalService.debugLog("setDirty ON", this.field.Name);
2008
2037
  this.isDirty = true;
2009
2038
  }
2010
2039
  }
2011
2040
  NumericFieldTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumericFieldTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2012
- NumericFieldTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: NumericFieldTemplateComponent, selector: "numeric-field-template", inputs: { field: "field", record: "record" }, outputs: { recordChange: "recordChange" }, usesOnChanges: true, ngImport: i0, template: "<mat-form-field [formGroup]=\"field.FormFormGroup\">\r\n <mat-label class=\"pt-1 ps-3\" [ngStyle]=\"LabelstyleObj\"> {{field.Description}} </mat-label>\r\n <input [ngStyle]=\"FieldstyleObj\" matInput eqpNumericMask [formControlName]=\"field.Name\" [readonly]=\"field.Readonly\"\r\n [required]=\"field.Required\" [(ngModel)]=\"record[field.Name]\" [options]=\"eqpNumericOptions\"\r\n [step]=\"field.IsInteger ? 1 : null\" (blur)=\"onRecordValueChange()\" (keypress)=\"setDirty()\" />\r\n <mat-error *ngIf=\"!field.FormFormGroup.valid && field.FormFormGroup.controls[field.Name].touched && !field.Readonly\">\r\n Min: {{field.MinValue}} - Max: {{field.MaxValue}}\r\n </mat-error>\r\n</mat-form-field>", styles: ["input.ng-touched.ng-invalid,input.ng-dirty.ng-invalid{border:red 2px solid!important}::ng-deep .mat-form-field-label{font-size:x-large}\n"], dependencies: [{ kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i5.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i5.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i5.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5$2.EqpNumericDirective, selector: "[eqpNumericMask]", inputs: ["options"] }] });
2041
+ NumericFieldTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: NumericFieldTemplateComponent, selector: "numeric-field-template", inputs: { debugMode: "debugMode", field: "field", record: "record" }, outputs: { recordChange: "recordChange" }, usesOnChanges: true, ngImport: i0, template: "<mat-form-field [formGroup]=\"field.FormFormGroup\">\r\n <mat-label class=\"pt-1 ps-3\" [ngStyle]=\"LabelstyleObj\"> {{field.Description}} </mat-label>\r\n <input [ngStyle]=\"FieldstyleObj\" matInput eqpNumericMask [formControlName]=\"field.Name\" [readonly]=\"field.Readonly\"\r\n [required]=\"field.Required\" [(ngModel)]=\"record[field.Name]\" [options]=\"eqpNumericOptions\"\r\n [step]=\"field.IsInteger ? 1 : null\" (blur)=\"onRecordValueChange()\" (keypress)=\"setDirty()\" />\r\n <mat-error *ngIf=\"!field.FormFormGroup.valid && field.FormFormGroup.controls[field.Name].touched && !field.Readonly\">\r\n Min: {{field.MinValue}} - Max: {{field.MaxValue}}\r\n </mat-error>\r\n</mat-form-field>", styles: ["input.ng-touched.ng-invalid,input.ng-dirty.ng-invalid{border:red 2px solid!important}::ng-deep .mat-form-field-label{font-size:x-large}\n"], dependencies: [{ kind: "directive", type: i2$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i5.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i5.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i5.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5$2.EqpNumericDirective, selector: "[eqpNumericMask]", inputs: ["options"] }] });
2013
2042
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumericFieldTemplateComponent, decorators: [{
2014
2043
  type: Component,
2015
2044
  args: [{ selector: 'numeric-field-template', template: "<mat-form-field [formGroup]=\"field.FormFormGroup\">\r\n <mat-label class=\"pt-1 ps-3\" [ngStyle]=\"LabelstyleObj\"> {{field.Description}} </mat-label>\r\n <input [ngStyle]=\"FieldstyleObj\" matInput eqpNumericMask [formControlName]=\"field.Name\" [readonly]=\"field.Readonly\"\r\n [required]=\"field.Required\" [(ngModel)]=\"record[field.Name]\" [options]=\"eqpNumericOptions\"\r\n [step]=\"field.IsInteger ? 1 : null\" (blur)=\"onRecordValueChange()\" (keypress)=\"setDirty()\" />\r\n <mat-error *ngIf=\"!field.FormFormGroup.valid && field.FormFormGroup.controls[field.Name].touched && !field.Readonly\">\r\n Min: {{field.MinValue}} - Max: {{field.MaxValue}}\r\n </mat-error>\r\n</mat-form-field>", styles: ["input.ng-touched.ng-invalid,input.ng-dirty.ng-invalid{border:red 2px solid!important}::ng-deep .mat-form-field-label{font-size:x-large}\n"] }]
2016
- }], ctorParameters: function () { return []; }, propDecorators: { field: [{
2045
+ }], ctorParameters: function () { return []; }, propDecorators: { debugMode: [{
2046
+ type: Input
2047
+ }], field: [{
2017
2048
  type: Input
2018
2049
  }], record: [{
2019
2050
  type: Input
@@ -2054,8 +2085,8 @@ class ListValueFieldTemplateComponent {
2054
2085
  this.LabelstyleObj = UtilityHelperService.initStyles(this.field.LabelstyleCSS);
2055
2086
  }
2056
2087
  ngOnInit() {
2057
- this.debugLog("combobox debugMode", this.debugMode);
2058
- this.debugLog("combobox filed", this.field);
2088
+ GlobalService$1.debugLog("combobox debugMode", this.debugMode);
2089
+ GlobalService$1.debugLog("combobox filed", this.field);
2059
2090
  this.updateField();
2060
2091
  this.setArrayData();
2061
2092
  if (this.field.IsMultiChoiche && !this.record[this.field.Name]) {
@@ -2079,9 +2110,9 @@ class ListValueFieldTemplateComponent {
2079
2110
  */
2080
2111
  updateField() {
2081
2112
  // devo controllare se ho la stringa (ValueString) o il dizionario (ValuePairs)
2082
- this.debugLog("list-value-field updateField", this.field);
2113
+ GlobalService$1.debugLog("list-value-field updateField", this.field);
2083
2114
  if (this.field.Formula) {
2084
- this.debugLog("list-value-field - updateField - Formula");
2115
+ GlobalService$1.debugLog("list-value-field - updateField - Formula");
2085
2116
  this.field.ValuePairs = {};
2086
2117
  const temp = UtilityHelperService.EvaluateFieldFormula(this.field.Formula, this.record, null);
2087
2118
  // temp dovrebbe essere una stringa del tipo "chiave1! valore 1 ; chiave2 | valore 2 "
@@ -2098,10 +2129,10 @@ class ListValueFieldTemplateComponent {
2098
2129
  //this.record[this.field.Name] = UtilityHelperService.EvaluateFieldFormula(this.field.Formula, this.record, null);
2099
2130
  }
2100
2131
  else if (this.field.ValuePairs != null && this.field.ValuePairs.lenght > 0) {
2101
- this.debugLog("list-value-field - updateField - ValuePairs");
2132
+ GlobalService$1.debugLog("list-value-field - updateField - ValuePairs");
2102
2133
  }
2103
2134
  else if (this.field.ValueString != null && this.field.ValueString != "") {
2104
- this.debugLog("list-value-field - updateField - ValueString");
2135
+ GlobalService$1.debugLog("list-value-field - updateField - ValueString");
2105
2136
  this.field.ValuePairs = this.stringToValuePairs(this.field.ValueString);
2106
2137
  }
2107
2138
  if (this.field.VisibleIf) {
@@ -2189,22 +2220,22 @@ class ListValueFieldTemplateComponent {
2189
2220
  }
2190
2221
  stringToValuePairs(valueString) {
2191
2222
  const valuePairs = {};
2192
- // this.debugLog('stringToValuePair() - this.field.Formula temp', valueString)
2223
+ // GlobalService.debugLog('stringToValuePair() - this.field.Formula temp', valueString)
2193
2224
  const keyvals = valueString.split(";");
2194
2225
  keyvals.forEach((x) => {
2195
2226
  const parts = x.split("|");
2196
- // this.debugLog('stringToValuePair() - parts', parts);
2197
- // this.debugLog('stringToValuePair() - parts.lenght', parts.length);
2227
+ // GlobalService.debugLog('stringToValuePair() - parts', parts);
2228
+ // GlobalService.debugLog('stringToValuePair() - parts.lenght', parts.length);
2198
2229
  if (parts.length == 1) {
2199
2230
  valuePairs[parts[0].trim()] = parts[0].trim();
2200
2231
  }
2201
2232
  else if (parts.length > 1) {
2202
- // this.debugLog('stringToValuePair() - parts[0].trim()', parts[0].trim());
2203
- // this.debugLog('stringToValuePair() - parts[1].trim()', parts[1].trim());
2233
+ // GlobalService.debugLog('stringToValuePair() - parts[0].trim()', parts[0].trim());
2234
+ // GlobalService.debugLog('stringToValuePair() - parts[1].trim()', parts[1].trim());
2204
2235
  valuePairs[parts[0].trim()] = parts[1].trim();
2205
2236
  }
2206
2237
  });
2207
- // this.debugLog('stringToValuePair() - valuePairs', valuePairs)
2238
+ // GlobalService.debugLog('stringToValuePair() - valuePairs', valuePairs)
2208
2239
  return valuePairs;
2209
2240
  }
2210
2241
  }
@@ -2654,7 +2685,7 @@ class DynamicModuleFieldFixComponent {
2654
2685
  }
2655
2686
  }
2656
2687
  DynamicModuleFieldFixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DynamicModuleFieldFixComponent, deps: [{ token: i1$2.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
2657
- DynamicModuleFieldFixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DynamicModuleFieldFixComponent, selector: "dynamic-module-field-fix", inputs: { debugMode: "debugMode", field: "field", form: "form", record: "record" }, outputs: { recordChange: "recordChange" }, viewQueries: [{ propertyName: "dialogInnerFormRecord", first: true, predicate: ["dialogInnerFormRecord"], descendants: true, static: true }, { propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }, { propertyName: "listInnerFormRecords", predicate: ["listInnerFormRecords"], descendants: true }], ngImport: i0, template: "<text-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo di testo']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</text-field-template>\r\n\r\n<textarea-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Area di testo']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</textarea-field-template>\r\n\r\n<boolean-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Booleano']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</boolean-field-template>\r\n\r\n<date-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Data e/o ora']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</date-field-template>\r\n\r\n<numeric-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo numerico']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</numeric-field-template>\r\n\r\n<list-value-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Elenco generico']\"\r\n [debugMode]=\"debugMode\" [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</list-value-field-template>\r\n\r\n <attachment-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Allegato']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</attachment-field-template>\r\n\r\n<image-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Immagine']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</image-field-template> \r\n\r\n<list-form-record #listInnerFormRecords *ngIf=\"field.FieldType == FieldTypeEnum['Form di dettaglio']\"\r\n [form]=\"getInnerFormFromField(field)\" [configurations]=\"configList\"\r\n (onAddViewEditRecord)=\"onAddViewEditInnerFormRecord($event, field)\">\r\n</list-form-record>", styles: [""], dependencies: [{ kind: "directive", type: i2$3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TextFieldTemplateComponent, selector: "text-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: BooleanFieldTemplateComponent, selector: "boolean-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: DateFieldTemplateComponent, selector: "date-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: TextareaFieldTemplateComponent, selector: "textarea-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: NumericFieldTemplateComponent, selector: "numeric-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: ListValueFieldTemplateComponent, selector: "list-value-field-template", inputs: ["debugMode", "field", "record"], outputs: ["recordChange"] }, { kind: "component", type: AttachmentFieldTemplateComponent, selector: "attachment-field-template", inputs: ["onlyImages", "field", "record"], outputs: ["recordChange", "onAttachmentsChange"] }, { kind: "component", type: ImageFieldTemplateComponent, selector: "image-field-template", inputs: ["record", "field"], outputs: ["recordChange"] }, { kind: "component", type: ListFormRecordComponent, selector: "list-form-record", inputs: ["debugMode", "configurations", "endPointConfiguration", "formID", "form", "externalButtons"], outputs: ["onViewRecord", "onAddViewEditRecord", "onDeleteRecord", "onAfterDeleteRecord"] }] });
2688
+ DynamicModuleFieldFixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DynamicModuleFieldFixComponent, selector: "dynamic-module-field-fix", inputs: { debugMode: "debugMode", field: "field", form: "form", record: "record" }, outputs: { recordChange: "recordChange" }, viewQueries: [{ propertyName: "dialogInnerFormRecord", first: true, predicate: ["dialogInnerFormRecord"], descendants: true, static: true }, { propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }, { propertyName: "listInnerFormRecords", predicate: ["listInnerFormRecords"], descendants: true }], ngImport: i0, template: "<text-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo di testo']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</text-field-template>\r\n\r\n<textarea-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Area di testo']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</textarea-field-template>\r\n\r\n<boolean-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Booleano']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</boolean-field-template>\r\n\r\n<date-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Data e/o ora']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</date-field-template>\r\n\r\n<numeric-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo numerico']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</numeric-field-template>\r\n\r\n<list-value-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Elenco generico']\"\r\n [debugMode]=\"debugMode\" [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</list-value-field-template>\r\n\r\n <attachment-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Allegato']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</attachment-field-template>\r\n\r\n<image-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Immagine']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</image-field-template> \r\n\r\n<list-form-record #listInnerFormRecords *ngIf=\"field.FieldType == FieldTypeEnum['Form di dettaglio']\"\r\n [form]=\"getInnerFormFromField(field)\" [configurations]=\"configList\"\r\n (onAddViewEditRecord)=\"onAddViewEditInnerFormRecord($event, field)\">\r\n</list-form-record>", styles: [""], dependencies: [{ kind: "directive", type: i2$3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TextFieldTemplateComponent, selector: "text-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: BooleanFieldTemplateComponent, selector: "boolean-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: DateFieldTemplateComponent, selector: "date-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: TextareaFieldTemplateComponent, selector: "textarea-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: NumericFieldTemplateComponent, selector: "numeric-field-template", inputs: ["debugMode", "field", "record"], outputs: ["recordChange"] }, { kind: "component", type: ListValueFieldTemplateComponent, selector: "list-value-field-template", inputs: ["debugMode", "field", "record"], outputs: ["recordChange"] }, { kind: "component", type: AttachmentFieldTemplateComponent, selector: "attachment-field-template", inputs: ["onlyImages", "field", "record"], outputs: ["recordChange", "onAttachmentsChange"] }, { kind: "component", type: ImageFieldTemplateComponent, selector: "image-field-template", inputs: ["record", "field"], outputs: ["recordChange"] }, { kind: "component", type: ListFormRecordComponent, selector: "list-form-record", inputs: ["debugMode", "configurations", "endPointConfiguration", "formID", "form", "externalButtons"], outputs: ["onViewRecord", "onAddViewEditRecord", "onDeleteRecord", "onAfterDeleteRecord"] }] });
2658
2689
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DynamicModuleFieldFixComponent, decorators: [{
2659
2690
  type: Component,
2660
2691
  args: [{ selector: 'dynamic-module-field-fix', template: "<text-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo di testo']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</text-field-template>\r\n\r\n<textarea-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Area di testo']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</textarea-field-template>\r\n\r\n<boolean-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Booleano']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</boolean-field-template>\r\n\r\n<date-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Data e/o ora']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</date-field-template>\r\n\r\n<numeric-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo numerico']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</numeric-field-template>\r\n\r\n<list-value-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Elenco generico']\"\r\n [debugMode]=\"debugMode\" [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</list-value-field-template>\r\n\r\n <attachment-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Allegato']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</attachment-field-template>\r\n\r\n<image-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Immagine']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</image-field-template> \r\n\r\n<list-form-record #listInnerFormRecords *ngIf=\"field.FieldType == FieldTypeEnum['Form di dettaglio']\"\r\n [form]=\"getInnerFormFromField(field)\" [configurations]=\"configList\"\r\n (onAddViewEditRecord)=\"onAddViewEditInnerFormRecord($event, field)\">\r\n</list-form-record>" }]
@@ -2722,7 +2753,7 @@ class AddFormRecordComponent {
2722
2753
  }
2723
2754
  // l'inizializzazione termina con il recupero del record o con l'inizializzazione del form vuoto
2724
2755
  this.cdr.detectChanges();
2725
- this.debugLog('oninit - DynaForm', this.form);
2756
+ GlobalService$1.debugLog('oninit - DynaForm', this.form);
2726
2757
  }
2727
2758
  /**
2728
2759
  * Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
@@ -2762,7 +2793,7 @@ class AddFormRecordComponent {
2762
2793
  * Metodo per salvare i dati inseriti dall'utente una volta conclusa la compilazione della form.
2763
2794
  */
2764
2795
  saveOrExitForm(exit) {
2765
- this.debugLog('add-form-record saveRecordEvent');
2796
+ GlobalService$1.debugLog('add-form-record saveRecordEvent');
2766
2797
  if (exit) {
2767
2798
  // this.saveRecordEvent.emit(null);
2768
2799
  this.onSaveRecord(null);
@@ -2779,8 +2810,8 @@ class AddFormRecordComponent {
2779
2810
  * @param event Oggetto di tipo Record da salvare.
2780
2811
  */
2781
2812
  onSaveRecord(event) {
2782
- this.debugLog('onSaveRecord - event', event);
2783
- this.debugLog('onSaveRecord - form', this.form);
2813
+ GlobalService$1.debugLog('onSaveRecord - event', event);
2814
+ GlobalService$1.debugLog('onSaveRecord - form', this.form);
2784
2815
  if (event != null &&
2785
2816
  this.endPointConfiguration != null &&
2786
2817
  this.endPointConfiguration.Records.SaveEndPoint) {
@@ -2800,7 +2831,7 @@ class AddFormRecordComponent {
2800
2831
  ParamType: ParamTypeEnum["In Body"],
2801
2832
  },
2802
2833
  ];
2803
- this.debugLog('onSaveRecord - dynamicModuleParams', dynamicModuleParams);
2834
+ GlobalService$1.debugLog('onSaveRecord - dynamicModuleParams', dynamicModuleParams);
2804
2835
  this.utilityService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
2805
2836
  this.afterSaveRecordEvent.emit(event);
2806
2837
  });
@@ -2818,7 +2849,7 @@ class AddFormRecordComponent {
2818
2849
  });
2819
2850
  this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
2820
2851
  this.form = res;
2821
- this.debugLog('getFormByID - DynaForm', this.form);
2852
+ GlobalService$1.debugLog('getFormByID - DynaForm', this.form);
2822
2853
  this.fieldsConfig();
2823
2854
  }, (err) => { });
2824
2855
  }
@@ -2859,7 +2890,7 @@ class AddFormRecordComponent {
2859
2890
  ParamType: ParamTypeEnum["Query param"],
2860
2891
  },
2861
2892
  ];
2862
- this.debugLog("getFormByIDandVersion - this record", this.record);
2893
+ GlobalService$1.debugLog("getFormByIDandVersion - this record", this.record);
2863
2894
  this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
2864
2895
  this.form = res;
2865
2896
  this.createRecordProperties();
@@ -2878,7 +2909,7 @@ class AddFormRecordComponent {
2878
2909
  if (this.form.FormScalarType != FormScalarTypeEnum.Semplice) {
2879
2910
  this.createFieldGroups();
2880
2911
  }
2881
- this.debugLog("fieldsConfig - form", this.form);
2912
+ GlobalService$1.debugLog("fieldsConfig - form", this.form);
2882
2913
  this.loader = true;
2883
2914
  }
2884
2915
  /**
@@ -2899,7 +2930,7 @@ class AddFormRecordComponent {
2899
2930
  }
2900
2931
  });
2901
2932
  }
2902
- this.debugLog("createRecordProperties - form", this.form);
2933
+ GlobalService$1.debugLog("createRecordProperties - form", this.form);
2903
2934
  }
2904
2935
  /**
2905
2936
  * Metodo per riordinare i campi che compongono la form.
@@ -2908,14 +2939,14 @@ class AddFormRecordComponent {
2908
2939
  if (this.form.Fields && this.form.Fields.length > 0) {
2909
2940
  this.form.Fields.sort((a, b) => a.OrdinalPosition > b.OrdinalPosition ? 1 : b.OrdinalPosition > a.OrdinalPosition ? -1 : 0);
2910
2941
  }
2911
- this.debugLog("reorderFormFields - form", this.form);
2942
+ GlobalService$1.debugLog("reorderFormFields - form", this.form);
2912
2943
  }
2913
2944
  /**
2914
2945
  * Metodo per creare il FormGroup che rappresenta la form.
2915
2946
  */
2916
2947
  createFormGroup() {
2917
2948
  this.formForm = this.utilityService.CreateFormFormGroup(this.form.Fields, this.record, this.onlyView);
2918
- this.debugLog("createFormGroup - form", this.form);
2949
+ GlobalService$1.debugLog("createFormGroup - form", this.form);
2919
2950
  }
2920
2951
  /**
2921
2952
  * Metodo per creare i gruppi in cui raggruppare i campi della form in base
@@ -2927,27 +2958,27 @@ class AddFormRecordComponent {
2927
2958
  .forEach((groupName) => {
2928
2959
  this.fieldGroups[groupName] = this.form.Fields.filter((f) => f.FieldGroup == groupName);
2929
2960
  });
2930
- this.debugLog("createFieldGroups - form", this.form);
2961
+ GlobalService$1.debugLog("createFieldGroups - form", this.form);
2931
2962
  }
2932
2963
  /**
2933
2964
  * Metodo per creare il FormGroup che rappresenta la form.
2934
2965
  */
2935
2966
  createHTMLreadableValues(record) {
2936
- this.debugLog("createHTMLreadableValues - record", record);
2937
- this.debugLog("createHTMLreadableValues - form", this.form);
2967
+ GlobalService$1.debugLog("createHTMLreadableValues - record", record);
2968
+ GlobalService$1.debugLog("createHTMLreadableValues - form", this.form);
2938
2969
  var formnames = new Array();
2939
2970
  this.form.Fields.forEach((field) => { formnames.push(field.Name); });
2940
- this.debugLog("createHTMLreadableValues - form fields names", formnames);
2971
+ GlobalService$1.debugLog("createHTMLreadableValues - form fields names", formnames);
2941
2972
  // alert("continue for values?")
2942
2973
  let outputValuesArray = this.getResponseValues(record, this.form);
2943
- this.debugLog("createHTMLreadableValues - outputValuesArray", outputValuesArray);
2974
+ GlobalService$1.debugLog("createHTMLreadableValues - outputValuesArray", outputValuesArray);
2944
2975
  // alert("continue for templates?")
2945
2976
  let template = this.getResponseTemplate(record, this.form); // oggetto nel quale viene costruito il template o che prende il valore da un template esterno
2946
- this.debugLog("createHTMLreadableValues - template", template);
2977
+ GlobalService$1.debugLog("createHTMLreadableValues - template", template);
2947
2978
  // alert("continue for output?")
2948
2979
  const regex = /##([\w]+)##/g;
2949
2980
  const output = this.replaceTemplatePlaceholdersWithValues(template, outputValuesArray, regex);
2950
- this.debugLog("createHTMLreadableValues - output", output);
2981
+ GlobalService$1.debugLog("createHTMLreadableValues - output", output);
2951
2982
  // alert("continue for ending?")
2952
2983
  return output; // oggetto che conterrà l'output elaborato
2953
2984
  }
@@ -2968,10 +2999,10 @@ class AddFormRecordComponent {
2968
2999
  getResponseValues(record, form) {
2969
3000
  let outputValuesArray = []; // array con i valori delle risposte
2970
3001
  //(<DynRecord>this.record).Values è la lista di oggetti {fieldName: valore}
2971
- // this.debugLog("(record).Values", record);
3002
+ // GlobalService.debugLog("(record).Values", record);
2972
3003
  form.Fields.forEach((field) => {
2973
3004
  try {
2974
- //this.debugLog("getResponseValues field", field);
3005
+ //GlobalService.debugLog("getResponseValues field", field);
2975
3006
  // let foundObject = record.find(
2976
3007
  // (obj) => obj === field.Name
2977
3008
  // );
@@ -3003,7 +3034,7 @@ class AddFormRecordComponent {
3003
3034
  field.ValuePairs = this.stringToValuePairs(field.ValueString);
3004
3035
  }
3005
3036
  let inverted = {};
3006
- //this.debugLog("(<ListValueField>foundObject).ValuePairs", (<ListValueField>field).ValuePairs);
3037
+ //GlobalService.debugLog("(<ListValueField>foundObject).ValuePairs", (<ListValueField>field).ValuePairs);
3007
3038
  // ValuePairs: {Si: 'Si', No: 'No'}
3008
3039
  for (let key in field.ValuePairs) {
3009
3040
  inverted[field.ValuePairs[key]] = key;
@@ -3023,7 +3054,7 @@ class AddFormRecordComponent {
3023
3054
  //console.log("outputValuesArray", outputValuesArray)
3024
3055
  }
3025
3056
  else {
3026
- // this.debugLog("record[fieldName]", record[field.Name]);
3057
+ // GlobalService.debugLog("record[fieldName]", record[field.Name]);
3027
3058
  outputValuesArray[field.Name] = record[field.Name];
3028
3059
  }
3029
3060
  }
@@ -3038,14 +3069,14 @@ class AddFormRecordComponent {
3038
3069
  // let foundObject = form.Fields.find(
3039
3070
  // (obj) => {
3040
3071
  // if (fieldName == "ID") {
3041
- // this.debugLog("obj", obj);
3042
- // this.debugLog("fieldName", fieldName);
3072
+ // GlobalService.debugLog("obj", obj);
3073
+ // GlobalService.debugLog("fieldName", fieldName);
3043
3074
  // }
3044
3075
  // return obj.Name === fieldName
3045
3076
  // }
3046
3077
  // );
3047
- // this.debugLog("fieldName", fieldName);
3048
- // this.debugLog("foundObject", foundObject);
3078
+ // GlobalService.debugLog("fieldName", fieldName);
3079
+ // GlobalService.debugLog("foundObject", foundObject);
3049
3080
  // // gestire caso fieldtype 8 [elenco generico]
3050
3081
  // // fare un eval per popolare i valuePairs se è presente una formula
3051
3082
  // // prendere la label corretta
@@ -3059,7 +3090,7 @@ class AddFormRecordComponent {
3059
3090
  // record,
3060
3091
  // null
3061
3092
  // );
3062
- // this.debugLog("temp", temp);
3093
+ // GlobalService.debugLog("temp", temp);
3063
3094
  // for (let key2 in temp) {
3064
3095
  // if (UtilityHelperService.isNumeric(temp[key2])) {
3065
3096
  // (<ListValueField>foundObject).ValuePairs[Number(key2)] = temp[key2];
@@ -3067,19 +3098,19 @@ class AddFormRecordComponent {
3067
3098
  // (<ListValueField>foundObject).ValuePairs[key2] = temp[key2];
3068
3099
  // }
3069
3100
  // }
3070
- // this.debugLog("(record).Values[fieldName]", record[fieldName]);
3071
- // this.debugLog("(<ListValueField>foundObject).ValuePairs[record[fieldName]]", (<ListValueField>foundObject).ValuePairs[record[fieldName]]);
3101
+ // GlobalService.debugLog("(record).Values[fieldName]", record[fieldName]);
3102
+ // GlobalService.debugLog("(<ListValueField>foundObject).ValuePairs[record[fieldName]]", (<ListValueField>foundObject).ValuePairs[record[fieldName]]);
3072
3103
  // outputValuesArray[fieldName] = (<ListValueField>foundObject).ValuePairs[record[fieldName]];
3073
3104
  // }
3074
3105
  // let inverted = {};
3075
- // this.debugLog("(<ListValueField>foundObject).ValuePairs", (<ListValueField>foundObject).ValuePairs);
3106
+ // GlobalService.debugLog("(<ListValueField>foundObject).ValuePairs", (<ListValueField>foundObject).ValuePairs);
3076
3107
  // for (let key in (<ListValueField>foundObject).ValuePairs) {
3077
3108
  // inverted[(<ListValueField>foundObject).ValuePairs[key]] = key;
3078
3109
  // }
3079
3110
  // (<ListValueField>foundObject).ValuePairs = inverted;
3080
3111
  // outputValuesArray[fieldName] = (<ListValueField>foundObject).ValuePairs[record[fieldName]];
3081
3112
  // } else {
3082
- // this.debugLog("record[fieldName]", record[fieldName]);
3113
+ // GlobalService.debugLog("record[fieldName]", record[fieldName]);
3083
3114
  // outputValuesArray[fieldName] = record[fieldName];
3084
3115
  // }
3085
3116
  // ////////////////////////////////////////////////////////////////////////////////
@@ -3087,7 +3118,7 @@ class AddFormRecordComponent {
3087
3118
  // console.error(e);
3088
3119
  // }
3089
3120
  // }
3090
- this.debugLog("outputValuesArray 1", outputValuesArray);
3121
+ GlobalService$1.debugLog("outputValuesArray 1", outputValuesArray);
3091
3122
  // cancello i valori indefiniti o nulli
3092
3123
  for (const chiave in outputValuesArray) {
3093
3124
  if (outputValuesArray[chiave] == undefined || outputValuesArray[chiave] == null)
@@ -3099,7 +3130,7 @@ class AddFormRecordComponent {
3099
3130
  let template = '<div class="row">';
3100
3131
  // PREPARO O PRENDO LA STRUTTURA DA STAMPARE
3101
3132
  form.Fields.forEach((baseField) => {
3102
- this.debugLog('getResposneTemplate - pre - field', baseField);
3133
+ GlobalService$1.debugLog('getResposneTemplate - pre - field', baseField);
3103
3134
  if (baseField.AnswerStyle == null || baseField.AnswerStyle == undefined) {
3104
3135
  baseField.AnswerStyle = new AnswerStyle();
3105
3136
  baseField.AnswerStyle.ColSpanSizes = baseField.ColSpanSizes;
@@ -3115,7 +3146,7 @@ class AddFormRecordComponent {
3115
3146
  }
3116
3147
  if (baseField.AnswerStyle.VisibleIf) {
3117
3148
  const visibility = UtilityHelperService.EvaluateFieldFormula(baseField.AnswerStyle.VisibleIf, record, null);
3118
- this.debugLog("EvaluateFieldFormula - visibility", visibility);
3149
+ GlobalService$1.debugLog("EvaluateFieldFormula - visibility", visibility);
3119
3150
  baseField.AnswerStyle.InListView = (visibility == true) ? true : false;
3120
3151
  }
3121
3152
  if (baseField.AnswerStyle.InListView) {
@@ -3124,7 +3155,7 @@ class AddFormRecordComponent {
3124
3155
  ' <span class="dynaform-response" style="' + baseField.AnswerStyle.FieldstyleCSS + '"> ##' + baseField.Name + '##</span>' +
3125
3156
  '</div> \n ';
3126
3157
  }
3127
- this.debugLog('getResposneTemplate - post - field', baseField);
3158
+ GlobalService$1.debugLog('getResposneTemplate - post - field', baseField);
3128
3159
  });
3129
3160
  // (attualmente non esiste il concetto di tempate di output)
3130
3161
  template += '</div>';
@@ -3189,7 +3220,7 @@ class ViewFormRecordComponent {
3189
3220
  this.goBackEvent = new EventEmitter();
3190
3221
  }
3191
3222
  ngOnInit() {
3192
- this.debugLog('this.record', this.record);
3223
+ GlobalService$1.debugLog('this.record', this.record);
3193
3224
  if (typeof this.record === "string") {
3194
3225
  // allora è un ID
3195
3226
  this.getRecordByID();
@@ -3229,7 +3260,7 @@ class ViewFormRecordComponent {
3229
3260
  this.record.HTMLreadableValues = res.HTMLreadableValues;
3230
3261
  // this.viewMode = DynamicModuleViewModeEnum.COMPILE;
3231
3262
  // this.loader = true;
3232
- this.debugLog("record", this.record);
3263
+ GlobalService$1.debugLog("record", this.record);
3233
3264
  this.createOutput();
3234
3265
  // this.getFormByIDandVersion();
3235
3266
  });
@@ -3250,7 +3281,7 @@ class ViewFormRecordComponent {
3250
3281
  ];
3251
3282
  this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
3252
3283
  this.form = res;
3253
- this.debugLog("form", this.form);
3284
+ GlobalService$1.debugLog("form", this.form);
3254
3285
  this.createOutput();
3255
3286
  });
3256
3287
  }
@@ -3262,13 +3293,13 @@ class ViewFormRecordComponent {
3262
3293
  this.loader = true;
3263
3294
  return;
3264
3295
  // let outputValuesArray: Array<any> = this.getResponseValues(<DynRecord>this.record, this.form);
3265
- // this.debugLog("outputValuesArray", outputValuesArray);
3296
+ // GlobalService.debugLog("outputValuesArray", outputValuesArray);
3266
3297
  // let template: string = this.getResponseTemplate(this.form); // oggetto nel quale viene costruito il template o che prende il valore da un template esterno
3267
- // this.debugLog("template", template);
3298
+ // GlobalService.debugLog("template", template);
3268
3299
  // const regex = /##([\w]+)##/g;
3269
3300
  // const outputString = this.replaceTemplatePlaceholdersWithValues(template, outputValuesArray, regex); // oggetto che conterrà l'output elaborato
3270
3301
  // this.outputString = this.domSanitizer.bypassSecurityTrustHtml(outputString);
3271
- // this.debugLog("outputString", this.outputString);
3302
+ // GlobalService.debugLog("outputString", this.outputString);
3272
3303
  // STAMPO A SCHERMO
3273
3304
  // this.loader = true;
3274
3305
  }
@@ -3310,18 +3341,18 @@ class SingleRecordComponent {
3310
3341
  this.loaded = false;
3311
3342
  }
3312
3343
  ngOnInit() {
3313
- this.debugLog("single-record - outCompileConfigurations", this.outCompileConfigurations);
3344
+ GlobalService$1.debugLog("single-record - outCompileConfigurations", this.outCompileConfigurations);
3314
3345
  this.loaded = true;
3315
3346
  }
3316
3347
  /**
3317
3348
  * Metodo per salvare i dati inseriti dall'utente una volta conclusa la compilazione della form.
3318
3349
  */
3319
3350
  saveOrExitForm(record) {
3320
- this.debugLog('single-record saveRecordEvent', record);
3351
+ GlobalService$1.debugLog('single-record saveRecordEvent', record);
3321
3352
  this.saveRecordEvent.emit(record);
3322
3353
  }
3323
3354
  onAfterSaveRecord(event) {
3324
- this.debugLog('single-record afterSaveRecordEvent', event);
3355
+ GlobalService$1.debugLog('single-record afterSaveRecordEvent', event);
3325
3356
  this.afterSaveRecordEvent.emit(event);
3326
3357
  }
3327
3358
  }
@@ -3396,7 +3427,7 @@ class ListViewFormRecordComponent {
3396
3427
  this.defaultListActions = this.configurations.defaultListActions;
3397
3428
  this.showTitle = this.configurations.showTitle;
3398
3429
  this.outCompileConfigurations = new DynamicModuleCompileConfig(this.compileConfigurations.showTitle, this.compileConfigurations.showSaveButton, this.compileConfigurations.showBackButton, this.compileConfigurations.userID, this.compileConfigurations.additionalParams, this.compileConfigurations.prefilterParams);
3399
- //this.debugLog("list-view - outcompileConfigurations ", this.outCompileConfigurations);
3430
+ //GlobalService.debugLog("list-view - outcompileConfigurations ", this.outCompileConfigurations);
3400
3431
  this.getFormByID();
3401
3432
  this.configureListviewButtons();
3402
3433
  // this.outCompileConfigurations.userID;
@@ -3404,7 +3435,7 @@ class ListViewFormRecordComponent {
3404
3435
  // this.configureColumns();
3405
3436
  }
3406
3437
  ngOnChanges(changes) {
3407
- //this.debugLog('ngOnChanges', changes);
3438
+ //GlobalService.debugLog('ngOnChanges', changes);
3408
3439
  // Se viene modificato il valore di "ngModelInput" allora aggiorna l'input
3409
3440
  if (changes["configurations"] != undefined &&
3410
3441
  changes["configurations"].firstChange == false) {
@@ -3483,7 +3514,7 @@ class ListViewFormRecordComponent {
3483
3514
  this.getRecordsByFormID();
3484
3515
  }
3485
3516
  else {
3486
- //this.debugLog('Records Exists', this.records);
3517
+ //GlobalService.debugLog('Records Exists', this.records);
3487
3518
  this.generateAnswersArray(this.records);
3488
3519
  }
3489
3520
  }
@@ -3507,7 +3538,7 @@ class ListViewFormRecordComponent {
3507
3538
  this.endPointConfiguration.Records.GetByFormIDEndPoint) {
3508
3539
  // se non conosco l'utente
3509
3540
  await this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.GetByFormIDEndPoint, dynamicModuleParams, (res) => {
3510
- //this.debugLog('GetByFormIDEndPoint', res)
3541
+ //GlobalService.debugLog('GetByFormIDEndPoint', res)
3511
3542
  this.generateAnswersArray(res);
3512
3543
  });
3513
3544
  }
@@ -3529,7 +3560,7 @@ class ListViewFormRecordComponent {
3529
3560
  },
3530
3561
  ];
3531
3562
  await this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.GetAllByEntAndUserIDEndPoint, dynamicModuleParams, (res) => {
3532
- //this.debugLog('GetAllByEntAndUserIDEndPoint', res)
3563
+ //GlobalService.debugLog('GetAllByEntAndUserIDEndPoint', res)
3533
3564
  this.generateAnswersArray(res);
3534
3565
  });
3535
3566
  }
@@ -3541,9 +3572,9 @@ class ListViewFormRecordComponent {
3541
3572
  this.configurations.values = new Array();
3542
3573
  this.panels = new Array();
3543
3574
  res.forEach((r) => {
3544
- //this.debugLog("generateAnswersArray", r)
3575
+ //GlobalService.debugLog("generateAnswersArray", r)
3545
3576
  var tmpRec = new Record();
3546
- //this.debugLog("SerializedValues", r.SerializedValues)
3577
+ //GlobalService.debugLog("SerializedValues", r.SerializedValues)
3547
3578
  tmpRec = JSON.parse(r.SerializedValues);
3548
3579
  tmpRec.ID = r.ID;
3549
3580
  tmpRec.EntID = r.EntID;
@@ -3551,7 +3582,7 @@ class ListViewFormRecordComponent {
3551
3582
  tmpRec.userID = r.userID;
3552
3583
  tmpRec.AnswerDate = r.AnswerDate;
3553
3584
  tmpRec.HTMLreadableValues = r.HTMLreadableValues;
3554
- //this.debugLog("AdditionalParams", r.AdditionalParams)
3585
+ //GlobalService.debugLog("AdditionalParams", r.AdditionalParams)
3555
3586
  tmpRec.AdditionalParams = r.AdditionalParams != "" && r.AdditionalParams != null ? JSON.parse(r.AdditionalParams) : "";
3556
3587
  this.configurations.values.push(tmpRec);
3557
3588
  var isHighlighted = false;
@@ -3571,9 +3602,9 @@ class ListViewFormRecordComponent {
3571
3602
  }, 0); // refresh ui
3572
3603
  }
3573
3604
  togglePanel(panel, record) {
3574
- //this.debugLog('togglePanel')
3605
+ //GlobalService.debugLog('togglePanel')
3575
3606
  if (this.defaultListViewFunction != null) {
3576
- //this.debugLog('defaultListViewFunction', record)
3607
+ //GlobalService.debugLog('defaultListViewFunction', record)
3577
3608
  this.defaultListViewFunction(record);
3578
3609
  return;
3579
3610
  }
@@ -3624,7 +3655,7 @@ class ListViewFormRecordComponent {
3624
3655
  * @param onlyView Se TRUE viene mostrato il componente add-form-record in sola lettura.
3625
3656
  */
3626
3657
  viewOrEditRecord(record, onlyView, i) {
3627
- //this.debugLog('viewOrEditRecord')
3658
+ //GlobalService.debugLog('viewOrEditRecord')
3628
3659
  this.loader = false;
3629
3660
  this.onAddViewEditRecord2({ record, onlyView });
3630
3661
  this.panelOpenState.map(() => false);
@@ -3634,7 +3665,7 @@ class ListViewFormRecordComponent {
3634
3665
  viewRecord(panel, onlyView, i, ev) {
3635
3666
  ev.preventDefault();
3636
3667
  ev.stopPropagation();
3637
- //this.debugLog('viewRecord')
3668
+ //GlobalService.debugLog('viewRecord')
3638
3669
  let record = panel.record;
3639
3670
  this.visualizzaContenuto = true;
3640
3671
  this.modificaContenuto = false;
@@ -3655,7 +3686,7 @@ class ListViewFormRecordComponent {
3655
3686
  EditRecord(panel, onlyView, i, ev) {
3656
3687
  ev.preventDefault();
3657
3688
  ev.stopPropagation();
3658
- //this.debugLog('EditRecord')
3689
+ //GlobalService.debugLog('EditRecord')
3659
3690
  let record = panel.record;
3660
3691
  this.visualizzaContenuto = false;
3661
3692
  this.modificaContenuto = true;
@@ -3685,7 +3716,7 @@ class ListViewFormRecordComponent {
3685
3716
  duplicateRecord(panel, onlyView, i, ev) {
3686
3717
  ev.preventDefault();
3687
3718
  ev.stopPropagation();
3688
- //this.debugLog('duplicateRecord');
3719
+ //GlobalService.debugLog('duplicateRecord');
3689
3720
  panel.record.ID = "";
3690
3721
  this.selectedRecord = panel.record;
3691
3722
  console.log("this.selectedRecord", this.selectedRecord);
@@ -3840,11 +3871,11 @@ class ListViewFormRecordComponent {
3840
3871
  * Metodo per salvare i dati inseriti dall'utente una volta conclusa la compilazione della form.
3841
3872
  */
3842
3873
  saveOrExitForm(record) {
3843
- //this.debugLog('list-view-form-record save', record)
3874
+ //GlobalService.debugLog('list-view-form-record save', record)
3844
3875
  this.saveRecordEvent.emit(record);
3845
3876
  }
3846
3877
  onAfterSaveRecord(event) {
3847
- //this.debugLog('list-view-form-record aftersave', event)
3878
+ //GlobalService.debugLog('list-view-form-record aftersave', event)
3848
3879
  this.saveRecordEvent.emit(event);
3849
3880
  }
3850
3881
  /**
@@ -5251,7 +5282,7 @@ class FilterFormStatisticComponent {
5251
5282
  ParamType: ParamTypeEnum["Query param"],
5252
5283
  },
5253
5284
  ];
5254
- this.debugLog("getFormByIDandVersion - this record", this.record);
5285
+ GlobalService$1.debugLog("getFormByIDandVersion - this record", this.record);
5255
5286
  this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
5256
5287
  this.form = res;
5257
5288
  this.createRecordProperties();
@@ -5320,26 +5351,26 @@ class FilterFormStatisticComponent {
5320
5351
  * Metodo per creare il FormGroup che rappresenta la form.
5321
5352
  */
5322
5353
  createHTMLreadableValues(record) {
5323
- this.debugLog("record", record);
5324
- this.debugLog("form", this.form);
5354
+ GlobalService$1.debugLog("record", record);
5355
+ GlobalService$1.debugLog("form", this.form);
5325
5356
  let outputValuesArray = this.getResponseValues(record, this.form);
5326
- this.debugLog("outputValuesArray", outputValuesArray);
5357
+ GlobalService$1.debugLog("outputValuesArray", outputValuesArray);
5327
5358
  let template = this.getResponseTemplate(this.form); // oggetto nel quale viene costruito il template o che prende il valore da un template esterno
5328
- this.debugLog("template", template);
5359
+ GlobalService$1.debugLog("template", template);
5329
5360
  const regex = /##([\w]+)##/g;
5330
5361
  return this.replaceTemplatePlaceholdersWithValues(template, outputValuesArray, regex); // oggetto che conterrà l'output elaborato
5331
5362
  }
5332
5363
  getResponseValues(record, form) {
5333
5364
  let outputValuesArray = []; // array con i valori delle risposte
5334
5365
  //(<DynRecord>this.record).Values è la lista di oggetti {fieldName: valore}
5335
- this.debugLog("(record).Values", record);
5366
+ GlobalService$1.debugLog("(record).Values", record);
5336
5367
  for (let fieldName in record) {
5337
5368
  try {
5338
5369
  // fieldName è il nome del campo
5339
5370
  // PREPARO VARIABILI VALORI CORRETTI
5340
5371
  let foundObject = form.Fields.find((obj) => obj.Name === fieldName);
5341
- this.debugLog("fieldName", fieldName);
5342
- this.debugLog("foundObject", foundObject);
5372
+ GlobalService$1.debugLog("fieldName", fieldName);
5373
+ GlobalService$1.debugLog("foundObject", foundObject);
5343
5374
  // gestire caso fieldtype 8 [elenco generico]
5344
5375
  // fare un eval per popolare i valuePairs se è presente una formula
5345
5376
  // prendere la label corretta
@@ -5349,7 +5380,7 @@ class FilterFormStatisticComponent {
5349
5380
  // aggiungo a valuepairs i valori calcolati
5350
5381
  // (<ListValueField>foundObject).ValuePairs = {};
5351
5382
  var temp = UtilityHelperService.EvaluateFieldFormula(foundObject.Formula, record, null);
5352
- this.debugLog("temp", temp);
5383
+ GlobalService$1.debugLog("temp", temp);
5353
5384
  for (let key2 in temp) {
5354
5385
  if (UtilityHelperService.isNumeric(temp[key2])) {
5355
5386
  foundObject.ValuePairs[Number(key2)] = temp[key2];
@@ -5358,12 +5389,12 @@ class FilterFormStatisticComponent {
5358
5389
  foundObject.ValuePairs[key2] = temp[key2];
5359
5390
  }
5360
5391
  }
5361
- this.debugLog("(record).Values[fieldName]", record[fieldName]);
5362
- this.debugLog("(<ListValueField>foundObject).ValuePairs[record[fieldName]]", foundObject.ValuePairs[record[fieldName]]);
5392
+ GlobalService$1.debugLog("(record).Values[fieldName]", record[fieldName]);
5393
+ GlobalService$1.debugLog("(<ListValueField>foundObject).ValuePairs[record[fieldName]]", foundObject.ValuePairs[record[fieldName]]);
5363
5394
  outputValuesArray[fieldName] = foundObject.ValuePairs[record[fieldName]];
5364
5395
  }
5365
5396
  let inverted = {};
5366
- this.debugLog("(<ListValueField>foundObject).ValuePairs", foundObject.ValuePairs);
5397
+ GlobalService$1.debugLog("(<ListValueField>foundObject).ValuePairs", foundObject.ValuePairs);
5367
5398
  for (let key in foundObject.ValuePairs) {
5368
5399
  inverted[foundObject.ValuePairs[key]] = key;
5369
5400
  }
@@ -5371,7 +5402,7 @@ class FilterFormStatisticComponent {
5371
5402
  outputValuesArray[fieldName] = foundObject.ValuePairs[record[fieldName]];
5372
5403
  }
5373
5404
  else {
5374
- this.debugLog("record[fieldName]", record[fieldName]);
5405
+ GlobalService$1.debugLog("record[fieldName]", record[fieldName]);
5375
5406
  outputValuesArray[fieldName] = record[fieldName];
5376
5407
  }
5377
5408
  ////////////////////////////////////////////////////////////////////////////////
@@ -5380,7 +5411,7 @@ class FilterFormStatisticComponent {
5380
5411
  console.error(e);
5381
5412
  }
5382
5413
  }
5383
- this.debugLog("outputValuesArray 1", outputValuesArray);
5414
+ GlobalService$1.debugLog("outputValuesArray 1", outputValuesArray);
5384
5415
  // cancello i valori indefiniti o nulli
5385
5416
  for (const chiave in outputValuesArray) {
5386
5417
  if (outputValuesArray[chiave] == undefined || outputValuesArray[chiave] == null)
@@ -5667,11 +5698,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5667
5698
  }] } });
5668
5699
 
5669
5700
  class EqpDynamicModuleComponent {
5670
- debugLog(message, element) {
5671
- if (this.debugMode) {
5672
- console.log(message, element);
5673
- }
5674
- }
5675
5701
  constructor(utilityHelperService, changeDetector) {
5676
5702
  this.utilityHelperService = utilityHelperService;
5677
5703
  this.changeDetector = changeDetector;
@@ -5735,6 +5761,7 @@ class EqpDynamicModuleComponent {
5735
5761
  this.isDuplicate = false;
5736
5762
  }
5737
5763
  async ngOnInit() {
5764
+ GlobalService.debugMode = this.debugMode;
5738
5765
  this.onBackTo = (this.onBackTo == null) ? this.starterViewMode : this.onBackTo;
5739
5766
  this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.showSaveButton, this.showBackButton, this.userID, this.additionalParams, this.prefilterParams, this.showNewSearchButton);
5740
5767
  this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values, this.defaultListActions, this.userID);
@@ -5752,7 +5779,7 @@ class EqpDynamicModuleComponent {
5752
5779
  // await this.getFormByID();
5753
5780
  }
5754
5781
  // this.viewMode = this.starterViewMode;
5755
- this.debugLog("dynamicModuleCompileConfig", this.dynamicModuleCompileConfig);
5782
+ GlobalService.debugLog("dynamicModuleCompileConfig", this.dynamicModuleCompileConfig);
5756
5783
  this.loader = true;
5757
5784
  }
5758
5785
  ngAfterViewInit() {
@@ -5856,7 +5883,7 @@ class EqpDynamicModuleComponent {
5856
5883
  console.log("onAddViewEditRecord", event);
5857
5884
  if (event != null) {
5858
5885
  this.onlyView = event.onlyView;
5859
- this.debugLog("Version modulo", event.record.Version);
5886
+ GlobalService.debugLog("Version modulo", event.record.Version);
5860
5887
  if (this.endPointConfiguration &&
5861
5888
  this.endPointConfiguration.Records &&
5862
5889
  this.endPointConfiguration.Records.GetByIDEndPoint) {
@@ -5873,10 +5900,10 @@ class EqpDynamicModuleComponent {
5873
5900
  ParamType: ParamTypeEnum["Query param"],
5874
5901
  },
5875
5902
  ];
5876
- this.debugLog("query params", dynamicModuleParams);
5903
+ GlobalService.debugLog("query params", dynamicModuleParams);
5877
5904
  this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
5878
5905
  this.form = res;
5879
- this.debugLog("RES", res);
5906
+ GlobalService.debugLog("RES", res);
5880
5907
  // preparo i dati del record
5881
5908
  var dynamicRecordParams = [
5882
5909
  {
@@ -6958,7 +6985,7 @@ class AddFormFieldComponent {
6958
6985
  */
6959
6986
  getFormValidationErrors(control) {
6960
6987
  if (control == "Label")
6961
- this.debugLog('getFormValidationErrors', this.fieldFormGroup.controls["Label"]);
6988
+ GlobalService.debugLog('getFormValidationErrors', this.fieldFormGroup.controls["Label"]);
6962
6989
  const controlErrors = this.fieldFormGroup.controls[control].errors;
6963
6990
  let errors = [];
6964
6991
  let values = [];
@@ -6966,9 +6993,9 @@ class AddFormFieldComponent {
6966
6993
  Object.keys(controlErrors).forEach((keyError) => {
6967
6994
  errors.push(keyError);
6968
6995
  });
6969
- this.debugLog('control: ', control);
6970
- this.debugLog('errors: ', errors);
6971
- this.debugLog('values: ', values);
6996
+ GlobalService.debugLog('control: ', control);
6997
+ GlobalService.debugLog('errors: ', errors);
6998
+ GlobalService.debugLog('values: ', values);
6972
6999
  }
6973
7000
  return errors.join(", ");
6974
7001
  }
@@ -7469,7 +7496,7 @@ class AddFormFieldComponent {
7469
7496
  */
7470
7497
  saveAndExitAddField(save) {
7471
7498
  if (save) {
7472
- this.debugLog('add-form-field save', this.field);
7499
+ GlobalService.debugLog('add-form-field save', this.field);
7473
7500
  this.saveFieldEvent.emit(this.field);
7474
7501
  }
7475
7502
  else {
@@ -7610,8 +7637,8 @@ class EqpDynamicModuleConfiguratorComponent {
7610
7637
  this.afterSaveFormEvent = new EventEmitter();
7611
7638
  }
7612
7639
  ngOnInit() {
7613
- this.debugLog('ngOnInit - configurations', this.configurations);
7614
- this.debugLog('ngOnInit - formID', this.formID);
7640
+ GlobalService.debugLog('ngOnInit - configurations', this.configurations);
7641
+ GlobalService.debugLog('ngOnInit - formID', this.formID);
7615
7642
  this.baseServerUrl =
7616
7643
  this.configurations.dynamicModuleGeneralConfig.baseServerUrl;
7617
7644
  this.context = this.configurations.dynamicModuleGeneralConfig.context;
@@ -7695,7 +7722,7 @@ class EqpDynamicModuleConfiguratorComponent {
7695
7722
  const fileReader = new FileReader();
7696
7723
  fileReader.readAsText(selectedFile, "UTF-8");
7697
7724
  fileReader.onload = () => {
7698
- this.debugLog('onImport - fileReader.result.toString()', fileReader.result.toString());
7725
+ GlobalService.debugLog('onImport - fileReader.result.toString()', fileReader.result.toString());
7699
7726
  this.importedModule = fileReader.result.toString();
7700
7727
  if (this.importedModule != null) {
7701
7728
  if (confirm("stai per sovrascrivere il modulo")) {
@@ -7877,7 +7904,7 @@ class EqpDynamicModuleConfiguratorComponent {
7877
7904
  this.form.Fields.push(field);
7878
7905
  }
7879
7906
  }
7880
- this.debugLog("onSaveField", this.form);
7907
+ GlobalService.debugLog("onSaveField", this.form);
7881
7908
  this.closeFieldDialog();
7882
7909
  this.setFieldOrdinalPosition();
7883
7910
  this.reloadFieldsTable();
@@ -8066,7 +8093,7 @@ class EqpDynamicModuleConfiguratorComponent {
8066
8093
  if (completed) {
8067
8094
  this.formCompleted = true;
8068
8095
  this.previewForm = JSON.parse(JSON.stringify(this.form));
8069
- this.debugLog("previewForm", this.previewForm);
8096
+ GlobalService.debugLog("previewForm", this.previewForm);
8070
8097
  // Per visualizzare correttamente l'oanteprima della form appena creata
8071
8098
  // bisogna valorizzare la proprietà Name dei campi della form e delle InnerForms.
8072
8099
  this.previewForm.Fields.forEach((field) => {
@@ -8567,7 +8594,7 @@ class DynamicModuleFieldComponent {
8567
8594
  }
8568
8595
  }
8569
8596
  DynamicModuleFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DynamicModuleFieldComponent, deps: [{ token: i1$2.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
8570
- DynamicModuleFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DynamicModuleFieldComponent, selector: "dynamic-module-field", inputs: { field: "field", form: "form", record: "record" }, outputs: { recordChange: "recordChange" }, viewQueries: [{ propertyName: "dialogInnerFormRecord", first: true, predicate: ["dialogInnerFormRecord"], descendants: true, static: true }, { propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }, { propertyName: "listInnerFormRecords", predicate: ["listInnerFormRecords"], descendants: true }], ngImport: i0, template: "<text-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo di testo']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</text-field-template>\r\n\r\n<textarea-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Area di testo']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</textarea-field-template>\r\n\r\n<boolean-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Booleano']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</boolean-field-template>\r\n\r\n<date-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Data e/o ora']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</date-field-template>\r\n\r\n<numeric-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo numerico']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</numeric-field-template>\r\n\r\n<list-value-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Elenco generico']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</list-value-field-template>\r\n\r\n<attachment-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Allegato']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</attachment-field-template>\r\n\r\n<image-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Immagine']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</image-field-template>\r\n\r\n<list-form-record #listInnerFormRecords *ngIf=\"field.FieldType == FieldTypeEnum['Form di dettaglio']\"\r\n [form]=\"getInnerFormFromField(field)\" [configurations]=\"configList\"\r\n (onAddViewEditRecord)=\"onAddViewEditInnerFormRecord($event, field)\">\r\n</list-form-record>\r\n\r\n<!-- DIALOG PER AGGIUNGERE/MODIFICARE/VISUALIZZARE UN RECORD IN UNA FORM DI DETTAGLIO -->\r\n<ng-template #dialogInnerFormRecord>\r\n <add-form-record [form]=\"selectedInnerForm\" [record]=\"selectedInnerFormRecord\" [onlyView]=\"onlyViewInnerFormRecord\"\r\n (saveRecordEvent)=\"onSaveInnerFormRecord($event)\"></add-form-record>\r\n</ng-template>", styles: [""], dependencies: [{ kind: "directive", type: i2$3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TextFieldTemplateComponent, selector: "text-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: BooleanFieldTemplateComponent, selector: "boolean-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: DateFieldTemplateComponent, selector: "date-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: TextareaFieldTemplateComponent, selector: "textarea-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: NumericFieldTemplateComponent, selector: "numeric-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: ListValueFieldTemplateComponent, selector: "list-value-field-template", inputs: ["debugMode", "field", "record"], outputs: ["recordChange"] }, { kind: "component", type: AttachmentFieldTemplateComponent, selector: "attachment-field-template", inputs: ["onlyImages", "field", "record"], outputs: ["recordChange", "onAttachmentsChange"] }, { kind: "component", type: ImageFieldTemplateComponent, selector: "image-field-template", inputs: ["record", "field"], outputs: ["recordChange"] }, { kind: "component", type: ListFormRecordComponent, selector: "list-form-record", inputs: ["debugMode", "configurations", "endPointConfiguration", "formID", "form", "externalButtons"], outputs: ["onViewRecord", "onAddViewEditRecord", "onDeleteRecord", "onAfterDeleteRecord"] }, { kind: "component", type: AddFormRecordComponent, selector: "add-form-record", inputs: ["debugMode", "configurations", "endPointConfiguration", "userID", "formID", "form", "record", "onlyView", "isDuplicate", "additionalParams"], outputs: ["saveRecordEvent", "afterSaveRecordEvent"] }] });
8597
+ DynamicModuleFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DynamicModuleFieldComponent, selector: "dynamic-module-field", inputs: { field: "field", form: "form", record: "record" }, outputs: { recordChange: "recordChange" }, viewQueries: [{ propertyName: "dialogInnerFormRecord", first: true, predicate: ["dialogInnerFormRecord"], descendants: true, static: true }, { propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }, { propertyName: "listInnerFormRecords", predicate: ["listInnerFormRecords"], descendants: true }], ngImport: i0, template: "<text-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo di testo']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</text-field-template>\r\n\r\n<textarea-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Area di testo']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</textarea-field-template>\r\n\r\n<boolean-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Booleano']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</boolean-field-template>\r\n\r\n<date-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Data e/o ora']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</date-field-template>\r\n\r\n<numeric-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo numerico']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</numeric-field-template>\r\n\r\n<list-value-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Elenco generico']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</list-value-field-template>\r\n\r\n<attachment-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Allegato']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</attachment-field-template>\r\n\r\n<image-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Immagine']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</image-field-template>\r\n\r\n<list-form-record #listInnerFormRecords *ngIf=\"field.FieldType == FieldTypeEnum['Form di dettaglio']\"\r\n [form]=\"getInnerFormFromField(field)\" [configurations]=\"configList\"\r\n (onAddViewEditRecord)=\"onAddViewEditInnerFormRecord($event, field)\">\r\n</list-form-record>\r\n\r\n<!-- DIALOG PER AGGIUNGERE/MODIFICARE/VISUALIZZARE UN RECORD IN UNA FORM DI DETTAGLIO -->\r\n<ng-template #dialogInnerFormRecord>\r\n <add-form-record [form]=\"selectedInnerForm\" [record]=\"selectedInnerFormRecord\" [onlyView]=\"onlyViewInnerFormRecord\"\r\n (saveRecordEvent)=\"onSaveInnerFormRecord($event)\"></add-form-record>\r\n</ng-template>", styles: [""], dependencies: [{ kind: "directive", type: i2$3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TextFieldTemplateComponent, selector: "text-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: BooleanFieldTemplateComponent, selector: "boolean-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: DateFieldTemplateComponent, selector: "date-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: TextareaFieldTemplateComponent, selector: "textarea-field-template", inputs: ["field", "record"], outputs: ["recordChange"] }, { kind: "component", type: NumericFieldTemplateComponent, selector: "numeric-field-template", inputs: ["debugMode", "field", "record"], outputs: ["recordChange"] }, { kind: "component", type: ListValueFieldTemplateComponent, selector: "list-value-field-template", inputs: ["debugMode", "field", "record"], outputs: ["recordChange"] }, { kind: "component", type: AttachmentFieldTemplateComponent, selector: "attachment-field-template", inputs: ["onlyImages", "field", "record"], outputs: ["recordChange", "onAttachmentsChange"] }, { kind: "component", type: ImageFieldTemplateComponent, selector: "image-field-template", inputs: ["record", "field"], outputs: ["recordChange"] }, { kind: "component", type: ListFormRecordComponent, selector: "list-form-record", inputs: ["debugMode", "configurations", "endPointConfiguration", "formID", "form", "externalButtons"], outputs: ["onViewRecord", "onAddViewEditRecord", "onDeleteRecord", "onAfterDeleteRecord"] }, { kind: "component", type: AddFormRecordComponent, selector: "add-form-record", inputs: ["debugMode", "configurations", "endPointConfiguration", "userID", "formID", "form", "record", "onlyView", "isDuplicate", "additionalParams"], outputs: ["saveRecordEvent", "afterSaveRecordEvent"] }] });
8571
8598
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DynamicModuleFieldComponent, decorators: [{
8572
8599
  type: Component,
8573
8600
  args: [{ selector: 'dynamic-module-field', template: "<text-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo di testo']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</text-field-template>\r\n\r\n<textarea-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Area di testo']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</textarea-field-template>\r\n\r\n<boolean-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Booleano']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</boolean-field-template>\r\n\r\n<date-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Data e/o ora']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</date-field-template>\r\n\r\n<numeric-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo numerico']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</numeric-field-template>\r\n\r\n<list-value-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Elenco generico']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</list-value-field-template>\r\n\r\n<attachment-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Allegato']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</attachment-field-template>\r\n\r\n<image-field-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Immagine']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (recordChange)=\"onRecordChange()\">\r\n</image-field-template>\r\n\r\n<list-form-record #listInnerFormRecords *ngIf=\"field.FieldType == FieldTypeEnum['Form di dettaglio']\"\r\n [form]=\"getInnerFormFromField(field)\" [configurations]=\"configList\"\r\n (onAddViewEditRecord)=\"onAddViewEditInnerFormRecord($event, field)\">\r\n</list-form-record>\r\n\r\n<!-- DIALOG PER AGGIUNGERE/MODIFICARE/VISUALIZZARE UN RECORD IN UNA FORM DI DETTAGLIO -->\r\n<ng-template #dialogInnerFormRecord>\r\n <add-form-record [form]=\"selectedInnerForm\" [record]=\"selectedInnerFormRecord\" [onlyView]=\"onlyViewInnerFormRecord\"\r\n (saveRecordEvent)=\"onSaveInnerFormRecord($event)\"></add-form-record>\r\n</ng-template>" }]