@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
@@ -10,6 +10,7 @@ import * as i2 from '@angular/common/http';
10
10
  import { Subject, interval } from 'rxjs';
11
11
  import * as i6$1 from '@eqproject/eqp-table';
12
12
  import { TypeColumn, NumberColumnPipe, CellAlignmentEnum, ExportEqpTable, CustomExportType, EqpTableModule } from '@eqproject/eqp-table';
13
+ import { GlobalService as GlobalService$1 } from 'projects/eqp-dynamic-module/src/lib/services/global.service';
13
14
  import * as i2$1 from '@angular/material/button';
14
15
  import { MatButtonModule } from '@angular/material/button';
15
16
  import * as i5$1 from '@angular/material/card';
@@ -702,7 +703,7 @@ class UtilityHelperService {
702
703
  */
703
704
  getFieldSyleClass(field) {
704
705
  if (field.ColSpanSizes && field.ColSpanSizes.length > 0) {
705
- this.debugLog('field', field);
706
+ ////GlobalService.debugLog('field', field)
706
707
  return field.ColSpanSizes.map((size) => ColSpanSizesEnum[size].toString()).join(" ");
707
708
  }
708
709
  return this.getDefaultStyleClass(field);
@@ -716,7 +717,7 @@ class UtilityHelperService {
716
717
  */
717
718
  getFieldAnswerStyleClass(field) {
718
719
  if (field.AnswerStyle && field.AnswerStyle.ColSpanSizes && field.AnswerStyle.ColSpanSizes.length > 0) {
719
- this.debugLog('field', field);
720
+ ////GlobalService.debugLog('field', field)
720
721
  return field.AnswerStyle.ColSpanSizes.map((size) => ColSpanSizesEnum[size].toString()).join(" ");
721
722
  }
722
723
  return this.getDefaultStyleClass(field);
@@ -724,22 +725,22 @@ class UtilityHelperService {
724
725
  getDefaultStyleClass(field) {
725
726
  switch (field.FieldType) {
726
727
  case FieldTypeEnum["Campo di testo"]:
727
- this.debugLog('Campo di testo');
728
+ //GlobalService.debugLog('Campo di testo')
728
729
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
729
730
  case FieldTypeEnum["Area di testo"]:
730
- this.debugLog('Area di testo');
731
+ //GlobalService.debugLog('Area di testo')
731
732
  return "col-sm-12 col-md-12 col-lg-12 align-self-end";
732
733
  case FieldTypeEnum["Booleano"]:
733
- this.debugLog('Booleano');
734
+ //GlobalService.debugLog('Booleano')
734
735
  return "col-sm-12 col-md-4 col-lg-4 align-self-center";
735
736
  case FieldTypeEnum["Data e/o ora"]:
736
- this.debugLog('Data e/o ora');
737
+ //GlobalService.debugLog('Data e/o ora')
737
738
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
738
739
  case FieldTypeEnum["Campo numerico"]:
739
- this.debugLog('Campo numerico');
740
+ //GlobalService.debugLog('Campo numerico')
740
741
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
741
742
  case FieldTypeEnum["Allegato"]:
742
- this.debugLog('Allegato');
743
+ //GlobalService.debugLog('Allegato')
743
744
  if (field.IsMultiAttach ||
744
745
  (field.MetadataFields &&
745
746
  field.MetadataFields.length > 0)) {
@@ -749,7 +750,7 @@ class UtilityHelperService {
749
750
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
750
751
  }
751
752
  case FieldTypeEnum["Immagine"]:
752
- this.debugLog('Immagine');
753
+ //GlobalService.debugLog('Immagine')
753
754
  if (field.AttachDefinition.IsMultiAttach ||
754
755
  (field.AttachDefinition.MetadataFields &&
755
756
  field.AttachDefinition.MetadataFields.length > 0)) {
@@ -759,13 +760,13 @@ class UtilityHelperService {
759
760
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
760
761
  }
761
762
  case FieldTypeEnum["Elenco generico"]:
762
- this.debugLog('Elenco generico');
763
+ //GlobalService.debugLog('Elenco generico')
763
764
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
764
765
  case FieldTypeEnum["Lookup"]:
765
- this.debugLog('Lookup');
766
+ //GlobalService.debugLog('Lookup')
766
767
  return "col-sm-12 col-md-4 col-lg-4 align-self-end";
767
768
  case FieldTypeEnum["Form di dettaglio"]:
768
- this.debugLog('Form di dettaglio');
769
+ //GlobalService.debugLog('Form di dettaglio')
769
770
  return "col-sm-12 col-md-12 col-lg-12 align-self-end";
770
771
  }
771
772
  }
@@ -778,16 +779,16 @@ class UtilityHelperService {
778
779
  * @returns Restituisce un FormGroup rappresentate la Form a cui appartengono i BaseField ricevuti in input.
779
780
  */
780
781
  CreateFormFormGroup(formFields, record, onlyView = false, includeCurrentFormInField = true) {
781
- // this.debugLog("formFields", formFields);
782
- // this.debugLog("record", record);
783
- // this.debugLog("onlyView", onlyView);
784
- // this.debugLog("includeCurrentFormInField", includeCurrentFormInField);
782
+ // //GlobalService.debugLog("formFields", formFields);
783
+ // //GlobalService.debugLog("record", record);
784
+ // //GlobalService.debugLog("onlyView", onlyView);
785
+ // //GlobalService.debugLog("includeCurrentFormInField", includeCurrentFormInField);
785
786
  const formForm = this.formBuilder.group([]);
786
787
  formFields.forEach((field) => {
787
- // this.debugLog(field);
788
+ // //GlobalService.debugLog(field);
788
789
  formForm.addControl(field.Name, this.createFieldFormControl(field, record));
789
790
  if (includeCurrentFormInField) {
790
- // this.debugLog(field);
791
+ // //GlobalService.debugLog(field);
791
792
  field.FormFormGroup = formForm;
792
793
  }
793
794
  });
@@ -1069,7 +1070,7 @@ class UtilityHelperService {
1069
1070
  }
1070
1071
  EqpDynamicModuleDialogService.Error(error.message);
1071
1072
  throw new Error(error.message);
1072
- this.debugLog("RunEndPointCall - subscribe - end");
1073
+ //GlobalService.debugLog("RunEndPointCall - subscribe - end");
1073
1074
  });
1074
1075
  }
1075
1076
  }
@@ -1090,6 +1091,26 @@ var DynamicModuleFilterResultViewModeEnum;
1090
1091
  DynamicModuleFilterResultViewModeEnum[DynamicModuleFilterResultViewModeEnum["INTERNAL_EQPTABLE"] = 2] = "INTERNAL_EQPTABLE";
1091
1092
  })(DynamicModuleFilterResultViewModeEnum || (DynamicModuleFilterResultViewModeEnum = {}));
1092
1093
 
1094
+ class GlobalService {
1095
+ constructor(http) {
1096
+ this.http = http;
1097
+ }
1098
+ static debugLog(message, element) {
1099
+ if (this.debugMode) {
1100
+ console.log(message, element);
1101
+ }
1102
+ }
1103
+ }
1104
+ GlobalService.debugMode = false;
1105
+ GlobalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalService, deps: [{ token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1106
+ GlobalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalService, providedIn: 'root' });
1107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalService, decorators: [{
1108
+ type: Injectable,
1109
+ args: [{
1110
+ providedIn: 'root'
1111
+ }]
1112
+ }], ctorParameters: function () { return [{ type: i2.HttpClient }]; } });
1113
+
1093
1114
  class Record {
1094
1115
  }
1095
1116
  class DynRecord {
@@ -1135,11 +1156,11 @@ class ListFormRecordComponent {
1135
1156
  this.defaultListActions = this.configurations.defaultListActions;
1136
1157
  this.showTitle = this.configurations.showTitle;
1137
1158
  // this.values = this.configurations.values
1138
- this.debugLog('list-form-record - ngOnInit - configurations', this.configurations);
1159
+ GlobalService$1.debugLog('list-form-record - ngOnInit - configurations', this.configurations);
1139
1160
  this.getFormByID();
1140
1161
  }
1141
1162
  ngOnChanges(changes) {
1142
- this.debugLog('list-form-record - changes', changes);
1163
+ GlobalService$1.debugLog('list-form-record - changes', changes);
1143
1164
  // Se viene modificato il valore di "ngModelInput" allora aggiorna l'input
1144
1165
  // if (changes['configurations'] != undefined && changes['configurations'].firstChange == false) {
1145
1166
  // this.configurations.values = changes['configurations'].currentValue;
@@ -1148,7 +1169,7 @@ class ListFormRecordComponent {
1148
1169
  }
1149
1170
  getFormByID(id = this.formID) {
1150
1171
  return __awaiter(this, void 0, void 0, function* () {
1151
- this.debugLog('list-form-record - getFormByID', this.form);
1172
+ GlobalService$1.debugLog('list-form-record - getFormByID', this.form);
1152
1173
  if (this.form == null) {
1153
1174
  const dynamicModuleParams = new Array();
1154
1175
  dynamicModuleParams.push({
@@ -1310,7 +1331,7 @@ class ListFormRecordComponent {
1310
1331
  * definite dall'utente all'interno della Form.
1311
1332
  */
1312
1333
  createAdditionalActions() {
1313
- this.debugLog('list-form-record - createAdditionalActions', this.form);
1334
+ GlobalService$1.debugLog('list-form-record - createAdditionalActions', this.form);
1314
1335
  if (this.form.ActionsOnRecord && this.form.ActionsOnRecord.length > 0) {
1315
1336
  this.form.ActionsOnRecord.sort((a, b) => a.OrdinalPosition > b.OrdinalPosition
1316
1337
  ? 1
@@ -1340,7 +1361,7 @@ class ListFormRecordComponent {
1340
1361
  * seleziona i primi 6.
1341
1362
  */
1342
1363
  createColumnsFromFormFields() {
1343
- this.debugLog('list-form-record - createColumnsFromFormFields', this.form);
1364
+ GlobalService$1.debugLog('list-form-record - createColumnsFromFormFields', this.form);
1344
1365
  var fieldsForColumns;
1345
1366
  if (this.form.Fields.find((f) => f.InListView)) {
1346
1367
  fieldsForColumns = this.form.Fields.filter((f) => f.InListView);
@@ -1918,6 +1939,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1918
1939
 
1919
1940
  class NumericFieldTemplateComponent {
1920
1941
  constructor() {
1942
+ this.debugMode = false;
1921
1943
  this.recordChange = new EventEmitter();
1922
1944
  this.validatorsArray = [];
1923
1945
  this.eqpNumericOptions = {};
@@ -1961,11 +1983,18 @@ class NumericFieldTemplateComponent {
1961
1983
  * Metodo per emettere l'evento che il valore del record è cambiato.
1962
1984
  */
1963
1985
  onRecordValueChange() {
1964
- console.log("record changed", this.field.Name);
1986
+ GlobalService.debugLog("record changed - this.field.Name", this.field.Name);
1987
+ GlobalService.debugLog("record changed - this.record[this.field.Name]", this.record[this.field.Name]);
1965
1988
  if (!this.field.Formula) {
1989
+ GlobalService.debugLog("!this.field.Formula", this.field.Name);
1966
1990
  if (this.isDirty) {
1991
+ GlobalService.debugLog("this.isDirty", this.field.Name);
1992
+ GlobalService.debugLog("this.isDirty - Full Record", this.record);
1993
+ GlobalService.debugLog("this.isDirty - Precision", this.eqpNumericOptions.precision);
1994
+ GlobalService.debugLog("this.isDirty - pre ", this.record[this.field.Name]);
1967
1995
  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);
1968
- console.log("setDirty OFF", this.field.Name);
1996
+ GlobalService.debugLog("this.isDirty - post ", this.record[this.field.Name]);
1997
+ GlobalService.debugLog("setDirty OFF", this.field.Name);
1969
1998
  this.isDirty = false;
1970
1999
  }
1971
2000
  this.recordChange.emit(this.record);
@@ -2009,16 +2038,18 @@ class NumericFieldTemplateComponent {
2009
2038
  this.field.FormFormGroup.get([this.field.Name]).setValidators(this.validatorsArray);
2010
2039
  }
2011
2040
  setDirty() {
2012
- console.log("setDirty ON", this.field.Name);
2041
+ GlobalService.debugLog("setDirty ON", this.field.Name);
2013
2042
  this.isDirty = true;
2014
2043
  }
2015
2044
  }
2016
2045
  NumericFieldTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumericFieldTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2017
- 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"] }] });
2046
+ 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"] }] });
2018
2047
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumericFieldTemplateComponent, decorators: [{
2019
2048
  type: Component,
2020
2049
  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"] }]
2021
- }], ctorParameters: function () { return []; }, propDecorators: { field: [{
2050
+ }], ctorParameters: function () { return []; }, propDecorators: { debugMode: [{
2051
+ type: Input
2052
+ }], field: [{
2022
2053
  type: Input
2023
2054
  }], record: [{
2024
2055
  type: Input
@@ -2059,8 +2090,8 @@ class ListValueFieldTemplateComponent {
2059
2090
  this.LabelstyleObj = UtilityHelperService.initStyles(this.field.LabelstyleCSS);
2060
2091
  }
2061
2092
  ngOnInit() {
2062
- this.debugLog("combobox debugMode", this.debugMode);
2063
- this.debugLog("combobox filed", this.field);
2093
+ GlobalService$1.debugLog("combobox debugMode", this.debugMode);
2094
+ GlobalService$1.debugLog("combobox filed", this.field);
2064
2095
  this.updateField();
2065
2096
  this.setArrayData();
2066
2097
  if (this.field.IsMultiChoiche && !this.record[this.field.Name]) {
@@ -2084,9 +2115,9 @@ class ListValueFieldTemplateComponent {
2084
2115
  */
2085
2116
  updateField() {
2086
2117
  // devo controllare se ho la stringa (ValueString) o il dizionario (ValuePairs)
2087
- this.debugLog("list-value-field updateField", this.field);
2118
+ GlobalService$1.debugLog("list-value-field updateField", this.field);
2088
2119
  if (this.field.Formula) {
2089
- this.debugLog("list-value-field - updateField - Formula");
2120
+ GlobalService$1.debugLog("list-value-field - updateField - Formula");
2090
2121
  this.field.ValuePairs = {};
2091
2122
  const temp = UtilityHelperService.EvaluateFieldFormula(this.field.Formula, this.record, null);
2092
2123
  // temp dovrebbe essere una stringa del tipo "chiave1! valore 1 ; chiave2 | valore 2 "
@@ -2103,10 +2134,10 @@ class ListValueFieldTemplateComponent {
2103
2134
  //this.record[this.field.Name] = UtilityHelperService.EvaluateFieldFormula(this.field.Formula, this.record, null);
2104
2135
  }
2105
2136
  else if (this.field.ValuePairs != null && this.field.ValuePairs.lenght > 0) {
2106
- this.debugLog("list-value-field - updateField - ValuePairs");
2137
+ GlobalService$1.debugLog("list-value-field - updateField - ValuePairs");
2107
2138
  }
2108
2139
  else if (this.field.ValueString != null && this.field.ValueString != "") {
2109
- this.debugLog("list-value-field - updateField - ValueString");
2140
+ GlobalService$1.debugLog("list-value-field - updateField - ValueString");
2110
2141
  this.field.ValuePairs = this.stringToValuePairs(this.field.ValueString);
2111
2142
  }
2112
2143
  if (this.field.VisibleIf) {
@@ -2194,22 +2225,22 @@ class ListValueFieldTemplateComponent {
2194
2225
  }
2195
2226
  stringToValuePairs(valueString) {
2196
2227
  const valuePairs = {};
2197
- // this.debugLog('stringToValuePair() - this.field.Formula temp', valueString)
2228
+ // GlobalService.debugLog('stringToValuePair() - this.field.Formula temp', valueString)
2198
2229
  const keyvals = valueString.split(";");
2199
2230
  keyvals.forEach((x) => {
2200
2231
  const parts = x.split("|");
2201
- // this.debugLog('stringToValuePair() - parts', parts);
2202
- // this.debugLog('stringToValuePair() - parts.lenght', parts.length);
2232
+ // GlobalService.debugLog('stringToValuePair() - parts', parts);
2233
+ // GlobalService.debugLog('stringToValuePair() - parts.lenght', parts.length);
2203
2234
  if (parts.length == 1) {
2204
2235
  valuePairs[parts[0].trim()] = parts[0].trim();
2205
2236
  }
2206
2237
  else if (parts.length > 1) {
2207
- // this.debugLog('stringToValuePair() - parts[0].trim()', parts[0].trim());
2208
- // this.debugLog('stringToValuePair() - parts[1].trim()', parts[1].trim());
2238
+ // GlobalService.debugLog('stringToValuePair() - parts[0].trim()', parts[0].trim());
2239
+ // GlobalService.debugLog('stringToValuePair() - parts[1].trim()', parts[1].trim());
2209
2240
  valuePairs[parts[0].trim()] = parts[1].trim();
2210
2241
  }
2211
2242
  });
2212
- // this.debugLog('stringToValuePair() - valuePairs', valuePairs)
2243
+ // GlobalService.debugLog('stringToValuePair() - valuePairs', valuePairs)
2213
2244
  return valuePairs;
2214
2245
  }
2215
2246
  }
@@ -2661,7 +2692,7 @@ class DynamicModuleFieldFixComponent {
2661
2692
  }
2662
2693
  }
2663
2694
  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 });
2664
- 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"] }] });
2695
+ 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"] }] });
2665
2696
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DynamicModuleFieldFixComponent, decorators: [{
2666
2697
  type: Component,
2667
2698
  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>" }]
@@ -2729,7 +2760,7 @@ class AddFormRecordComponent {
2729
2760
  }
2730
2761
  // l'inizializzazione termina con il recupero del record o con l'inizializzazione del form vuoto
2731
2762
  this.cdr.detectChanges();
2732
- this.debugLog('oninit - DynaForm', this.form);
2763
+ GlobalService$1.debugLog('oninit - DynaForm', this.form);
2733
2764
  }
2734
2765
  /**
2735
2766
  * Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
@@ -2769,7 +2800,7 @@ class AddFormRecordComponent {
2769
2800
  * Metodo per salvare i dati inseriti dall'utente una volta conclusa la compilazione della form.
2770
2801
  */
2771
2802
  saveOrExitForm(exit) {
2772
- this.debugLog('add-form-record saveRecordEvent');
2803
+ GlobalService$1.debugLog('add-form-record saveRecordEvent');
2773
2804
  if (exit) {
2774
2805
  // this.saveRecordEvent.emit(null);
2775
2806
  this.onSaveRecord(null);
@@ -2787,8 +2818,8 @@ class AddFormRecordComponent {
2787
2818
  */
2788
2819
  onSaveRecord(event) {
2789
2820
  var _a;
2790
- this.debugLog('onSaveRecord - event', event);
2791
- this.debugLog('onSaveRecord - form', this.form);
2821
+ GlobalService$1.debugLog('onSaveRecord - event', event);
2822
+ GlobalService$1.debugLog('onSaveRecord - form', this.form);
2792
2823
  if (event != null &&
2793
2824
  this.endPointConfiguration != null &&
2794
2825
  this.endPointConfiguration.Records.SaveEndPoint) {
@@ -2808,7 +2839,7 @@ class AddFormRecordComponent {
2808
2839
  ParamType: ParamTypeEnum["In Body"],
2809
2840
  },
2810
2841
  ];
2811
- this.debugLog('onSaveRecord - dynamicModuleParams', dynamicModuleParams);
2842
+ GlobalService$1.debugLog('onSaveRecord - dynamicModuleParams', dynamicModuleParams);
2812
2843
  this.utilityService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
2813
2844
  this.afterSaveRecordEvent.emit(event);
2814
2845
  });
@@ -2826,7 +2857,7 @@ class AddFormRecordComponent {
2826
2857
  });
2827
2858
  this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
2828
2859
  this.form = res;
2829
- this.debugLog('getFormByID - DynaForm', this.form);
2860
+ GlobalService$1.debugLog('getFormByID - DynaForm', this.form);
2830
2861
  this.fieldsConfig();
2831
2862
  }, (err) => { });
2832
2863
  }
@@ -2867,7 +2898,7 @@ class AddFormRecordComponent {
2867
2898
  ParamType: ParamTypeEnum["Query param"],
2868
2899
  },
2869
2900
  ];
2870
- this.debugLog("getFormByIDandVersion - this record", this.record);
2901
+ GlobalService$1.debugLog("getFormByIDandVersion - this record", this.record);
2871
2902
  this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
2872
2903
  this.form = res;
2873
2904
  this.createRecordProperties();
@@ -2886,7 +2917,7 @@ class AddFormRecordComponent {
2886
2917
  if (this.form.FormScalarType != FormScalarTypeEnum.Semplice) {
2887
2918
  this.createFieldGroups();
2888
2919
  }
2889
- this.debugLog("fieldsConfig - form", this.form);
2920
+ GlobalService$1.debugLog("fieldsConfig - form", this.form);
2890
2921
  this.loader = true;
2891
2922
  }
2892
2923
  /**
@@ -2907,7 +2938,7 @@ class AddFormRecordComponent {
2907
2938
  }
2908
2939
  });
2909
2940
  }
2910
- this.debugLog("createRecordProperties - form", this.form);
2941
+ GlobalService$1.debugLog("createRecordProperties - form", this.form);
2911
2942
  }
2912
2943
  /**
2913
2944
  * Metodo per riordinare i campi che compongono la form.
@@ -2916,14 +2947,14 @@ class AddFormRecordComponent {
2916
2947
  if (this.form.Fields && this.form.Fields.length > 0) {
2917
2948
  this.form.Fields.sort((a, b) => a.OrdinalPosition > b.OrdinalPosition ? 1 : b.OrdinalPosition > a.OrdinalPosition ? -1 : 0);
2918
2949
  }
2919
- this.debugLog("reorderFormFields - form", this.form);
2950
+ GlobalService$1.debugLog("reorderFormFields - form", this.form);
2920
2951
  }
2921
2952
  /**
2922
2953
  * Metodo per creare il FormGroup che rappresenta la form.
2923
2954
  */
2924
2955
  createFormGroup() {
2925
2956
  this.formForm = this.utilityService.CreateFormFormGroup(this.form.Fields, this.record, this.onlyView);
2926
- this.debugLog("createFormGroup - form", this.form);
2957
+ GlobalService$1.debugLog("createFormGroup - form", this.form);
2927
2958
  }
2928
2959
  /**
2929
2960
  * Metodo per creare i gruppi in cui raggruppare i campi della form in base
@@ -2935,27 +2966,27 @@ class AddFormRecordComponent {
2935
2966
  .forEach((groupName) => {
2936
2967
  this.fieldGroups[groupName] = this.form.Fields.filter((f) => f.FieldGroup == groupName);
2937
2968
  });
2938
- this.debugLog("createFieldGroups - form", this.form);
2969
+ GlobalService$1.debugLog("createFieldGroups - form", this.form);
2939
2970
  }
2940
2971
  /**
2941
2972
  * Metodo per creare il FormGroup che rappresenta la form.
2942
2973
  */
2943
2974
  createHTMLreadableValues(record) {
2944
- this.debugLog("createHTMLreadableValues - record", record);
2945
- this.debugLog("createHTMLreadableValues - form", this.form);
2975
+ GlobalService$1.debugLog("createHTMLreadableValues - record", record);
2976
+ GlobalService$1.debugLog("createHTMLreadableValues - form", this.form);
2946
2977
  var formnames = new Array();
2947
2978
  this.form.Fields.forEach((field) => { formnames.push(field.Name); });
2948
- this.debugLog("createHTMLreadableValues - form fields names", formnames);
2979
+ GlobalService$1.debugLog("createHTMLreadableValues - form fields names", formnames);
2949
2980
  // alert("continue for values?")
2950
2981
  let outputValuesArray = this.getResponseValues(record, this.form);
2951
- this.debugLog("createHTMLreadableValues - outputValuesArray", outputValuesArray);
2982
+ GlobalService$1.debugLog("createHTMLreadableValues - outputValuesArray", outputValuesArray);
2952
2983
  // alert("continue for templates?")
2953
2984
  let template = this.getResponseTemplate(record, this.form); // oggetto nel quale viene costruito il template o che prende il valore da un template esterno
2954
- this.debugLog("createHTMLreadableValues - template", template);
2985
+ GlobalService$1.debugLog("createHTMLreadableValues - template", template);
2955
2986
  // alert("continue for output?")
2956
2987
  const regex = /##([\w]+)##/g;
2957
2988
  const output = this.replaceTemplatePlaceholdersWithValues(template, outputValuesArray, regex);
2958
- this.debugLog("createHTMLreadableValues - output", output);
2989
+ GlobalService$1.debugLog("createHTMLreadableValues - output", output);
2959
2990
  // alert("continue for ending?")
2960
2991
  return output; // oggetto che conterrà l'output elaborato
2961
2992
  }
@@ -2976,10 +3007,10 @@ class AddFormRecordComponent {
2976
3007
  getResponseValues(record, form) {
2977
3008
  let outputValuesArray = []; // array con i valori delle risposte
2978
3009
  //(<DynRecord>this.record).Values è la lista di oggetti {fieldName: valore}
2979
- // this.debugLog("(record).Values", record);
3010
+ // GlobalService.debugLog("(record).Values", record);
2980
3011
  form.Fields.forEach((field) => {
2981
3012
  try {
2982
- //this.debugLog("getResponseValues field", field);
3013
+ //GlobalService.debugLog("getResponseValues field", field);
2983
3014
  // let foundObject = record.find(
2984
3015
  // (obj) => obj === field.Name
2985
3016
  // );
@@ -3011,7 +3042,7 @@ class AddFormRecordComponent {
3011
3042
  field.ValuePairs = this.stringToValuePairs(field.ValueString);
3012
3043
  }
3013
3044
  let inverted = {};
3014
- //this.debugLog("(<ListValueField>foundObject).ValuePairs", (<ListValueField>field).ValuePairs);
3045
+ //GlobalService.debugLog("(<ListValueField>foundObject).ValuePairs", (<ListValueField>field).ValuePairs);
3015
3046
  // ValuePairs: {Si: 'Si', No: 'No'}
3016
3047
  for (let key in field.ValuePairs) {
3017
3048
  inverted[field.ValuePairs[key]] = key;
@@ -3031,7 +3062,7 @@ class AddFormRecordComponent {
3031
3062
  //console.log("outputValuesArray", outputValuesArray)
3032
3063
  }
3033
3064
  else {
3034
- // this.debugLog("record[fieldName]", record[field.Name]);
3065
+ // GlobalService.debugLog("record[fieldName]", record[field.Name]);
3035
3066
  outputValuesArray[field.Name] = record[field.Name];
3036
3067
  }
3037
3068
  }
@@ -3046,14 +3077,14 @@ class AddFormRecordComponent {
3046
3077
  // let foundObject = form.Fields.find(
3047
3078
  // (obj) => {
3048
3079
  // if (fieldName == "ID") {
3049
- // this.debugLog("obj", obj);
3050
- // this.debugLog("fieldName", fieldName);
3080
+ // GlobalService.debugLog("obj", obj);
3081
+ // GlobalService.debugLog("fieldName", fieldName);
3051
3082
  // }
3052
3083
  // return obj.Name === fieldName
3053
3084
  // }
3054
3085
  // );
3055
- // this.debugLog("fieldName", fieldName);
3056
- // this.debugLog("foundObject", foundObject);
3086
+ // GlobalService.debugLog("fieldName", fieldName);
3087
+ // GlobalService.debugLog("foundObject", foundObject);
3057
3088
  // // gestire caso fieldtype 8 [elenco generico]
3058
3089
  // // fare un eval per popolare i valuePairs se è presente una formula
3059
3090
  // // prendere la label corretta
@@ -3067,7 +3098,7 @@ class AddFormRecordComponent {
3067
3098
  // record,
3068
3099
  // null
3069
3100
  // );
3070
- // this.debugLog("temp", temp);
3101
+ // GlobalService.debugLog("temp", temp);
3071
3102
  // for (let key2 in temp) {
3072
3103
  // if (UtilityHelperService.isNumeric(temp[key2])) {
3073
3104
  // (<ListValueField>foundObject).ValuePairs[Number(key2)] = temp[key2];
@@ -3075,19 +3106,19 @@ class AddFormRecordComponent {
3075
3106
  // (<ListValueField>foundObject).ValuePairs[key2] = temp[key2];
3076
3107
  // }
3077
3108
  // }
3078
- // this.debugLog("(record).Values[fieldName]", record[fieldName]);
3079
- // this.debugLog("(<ListValueField>foundObject).ValuePairs[record[fieldName]]", (<ListValueField>foundObject).ValuePairs[record[fieldName]]);
3109
+ // GlobalService.debugLog("(record).Values[fieldName]", record[fieldName]);
3110
+ // GlobalService.debugLog("(<ListValueField>foundObject).ValuePairs[record[fieldName]]", (<ListValueField>foundObject).ValuePairs[record[fieldName]]);
3080
3111
  // outputValuesArray[fieldName] = (<ListValueField>foundObject).ValuePairs[record[fieldName]];
3081
3112
  // }
3082
3113
  // let inverted = {};
3083
- // this.debugLog("(<ListValueField>foundObject).ValuePairs", (<ListValueField>foundObject).ValuePairs);
3114
+ // GlobalService.debugLog("(<ListValueField>foundObject).ValuePairs", (<ListValueField>foundObject).ValuePairs);
3084
3115
  // for (let key in (<ListValueField>foundObject).ValuePairs) {
3085
3116
  // inverted[(<ListValueField>foundObject).ValuePairs[key]] = key;
3086
3117
  // }
3087
3118
  // (<ListValueField>foundObject).ValuePairs = inverted;
3088
3119
  // outputValuesArray[fieldName] = (<ListValueField>foundObject).ValuePairs[record[fieldName]];
3089
3120
  // } else {
3090
- // this.debugLog("record[fieldName]", record[fieldName]);
3121
+ // GlobalService.debugLog("record[fieldName]", record[fieldName]);
3091
3122
  // outputValuesArray[fieldName] = record[fieldName];
3092
3123
  // }
3093
3124
  // ////////////////////////////////////////////////////////////////////////////////
@@ -3095,7 +3126,7 @@ class AddFormRecordComponent {
3095
3126
  // console.error(e);
3096
3127
  // }
3097
3128
  // }
3098
- this.debugLog("outputValuesArray 1", outputValuesArray);
3129
+ GlobalService$1.debugLog("outputValuesArray 1", outputValuesArray);
3099
3130
  // cancello i valori indefiniti o nulli
3100
3131
  for (const chiave in outputValuesArray) {
3101
3132
  if (outputValuesArray[chiave] == undefined || outputValuesArray[chiave] == null)
@@ -3107,7 +3138,7 @@ class AddFormRecordComponent {
3107
3138
  let template = '<div class="row">';
3108
3139
  // PREPARO O PRENDO LA STRUTTURA DA STAMPARE
3109
3140
  form.Fields.forEach((baseField) => {
3110
- this.debugLog('getResposneTemplate - pre - field', baseField);
3141
+ GlobalService$1.debugLog('getResposneTemplate - pre - field', baseField);
3111
3142
  if (baseField.AnswerStyle == null || baseField.AnswerStyle == undefined) {
3112
3143
  baseField.AnswerStyle = new AnswerStyle();
3113
3144
  baseField.AnswerStyle.ColSpanSizes = baseField.ColSpanSizes;
@@ -3123,7 +3154,7 @@ class AddFormRecordComponent {
3123
3154
  }
3124
3155
  if (baseField.AnswerStyle.VisibleIf) {
3125
3156
  const visibility = UtilityHelperService.EvaluateFieldFormula(baseField.AnswerStyle.VisibleIf, record, null);
3126
- this.debugLog("EvaluateFieldFormula - visibility", visibility);
3157
+ GlobalService$1.debugLog("EvaluateFieldFormula - visibility", visibility);
3127
3158
  baseField.AnswerStyle.InListView = (visibility == true) ? true : false;
3128
3159
  }
3129
3160
  if (baseField.AnswerStyle.InListView) {
@@ -3132,7 +3163,7 @@ class AddFormRecordComponent {
3132
3163
  ' <span class="dynaform-response" style="' + baseField.AnswerStyle.FieldstyleCSS + '"> ##' + baseField.Name + '##</span>' +
3133
3164
  '</div> \n ';
3134
3165
  }
3135
- this.debugLog('getResposneTemplate - post - field', baseField);
3166
+ GlobalService$1.debugLog('getResposneTemplate - post - field', baseField);
3136
3167
  });
3137
3168
  // (attualmente non esiste il concetto di tempate di output)
3138
3169
  template += '</div>';
@@ -3197,7 +3228,7 @@ class ViewFormRecordComponent {
3197
3228
  this.goBackEvent = new EventEmitter();
3198
3229
  }
3199
3230
  ngOnInit() {
3200
- this.debugLog('this.record', this.record);
3231
+ GlobalService$1.debugLog('this.record', this.record);
3201
3232
  if (typeof this.record === "string") {
3202
3233
  // allora è un ID
3203
3234
  this.getRecordByID();
@@ -3237,7 +3268,7 @@ class ViewFormRecordComponent {
3237
3268
  this.record.HTMLreadableValues = res.HTMLreadableValues;
3238
3269
  // this.viewMode = DynamicModuleViewModeEnum.COMPILE;
3239
3270
  // this.loader = true;
3240
- this.debugLog("record", this.record);
3271
+ GlobalService$1.debugLog("record", this.record);
3241
3272
  this.createOutput();
3242
3273
  // this.getFormByIDandVersion();
3243
3274
  });
@@ -3258,7 +3289,7 @@ class ViewFormRecordComponent {
3258
3289
  ];
3259
3290
  this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
3260
3291
  this.form = res;
3261
- this.debugLog("form", this.form);
3292
+ GlobalService$1.debugLog("form", this.form);
3262
3293
  this.createOutput();
3263
3294
  });
3264
3295
  }
@@ -3270,13 +3301,13 @@ class ViewFormRecordComponent {
3270
3301
  this.loader = true;
3271
3302
  return;
3272
3303
  // let outputValuesArray: Array<any> = this.getResponseValues(<DynRecord>this.record, this.form);
3273
- // this.debugLog("outputValuesArray", outputValuesArray);
3304
+ // GlobalService.debugLog("outputValuesArray", outputValuesArray);
3274
3305
  // let template: string = this.getResponseTemplate(this.form); // oggetto nel quale viene costruito il template o che prende il valore da un template esterno
3275
- // this.debugLog("template", template);
3306
+ // GlobalService.debugLog("template", template);
3276
3307
  // const regex = /##([\w]+)##/g;
3277
3308
  // const outputString = this.replaceTemplatePlaceholdersWithValues(template, outputValuesArray, regex); // oggetto che conterrà l'output elaborato
3278
3309
  // this.outputString = this.domSanitizer.bypassSecurityTrustHtml(outputString);
3279
- // this.debugLog("outputString", this.outputString);
3310
+ // GlobalService.debugLog("outputString", this.outputString);
3280
3311
  // STAMPO A SCHERMO
3281
3312
  // this.loader = true;
3282
3313
  }
@@ -3318,18 +3349,18 @@ class SingleRecordComponent {
3318
3349
  this.loaded = false;
3319
3350
  }
3320
3351
  ngOnInit() {
3321
- this.debugLog("single-record - outCompileConfigurations", this.outCompileConfigurations);
3352
+ GlobalService$1.debugLog("single-record - outCompileConfigurations", this.outCompileConfigurations);
3322
3353
  this.loaded = true;
3323
3354
  }
3324
3355
  /**
3325
3356
  * Metodo per salvare i dati inseriti dall'utente una volta conclusa la compilazione della form.
3326
3357
  */
3327
3358
  saveOrExitForm(record) {
3328
- this.debugLog('single-record saveRecordEvent', record);
3359
+ GlobalService$1.debugLog('single-record saveRecordEvent', record);
3329
3360
  this.saveRecordEvent.emit(record);
3330
3361
  }
3331
3362
  onAfterSaveRecord(event) {
3332
- this.debugLog('single-record afterSaveRecordEvent', event);
3363
+ GlobalService$1.debugLog('single-record afterSaveRecordEvent', event);
3333
3364
  this.afterSaveRecordEvent.emit(event);
3334
3365
  }
3335
3366
  }
@@ -3404,7 +3435,7 @@ class ListViewFormRecordComponent {
3404
3435
  this.defaultListActions = this.configurations.defaultListActions;
3405
3436
  this.showTitle = this.configurations.showTitle;
3406
3437
  this.outCompileConfigurations = new DynamicModuleCompileConfig(this.compileConfigurations.showTitle, this.compileConfigurations.showSaveButton, this.compileConfigurations.showBackButton, this.compileConfigurations.userID, this.compileConfigurations.additionalParams, this.compileConfigurations.prefilterParams);
3407
- //this.debugLog("list-view - outcompileConfigurations ", this.outCompileConfigurations);
3438
+ //GlobalService.debugLog("list-view - outcompileConfigurations ", this.outCompileConfigurations);
3408
3439
  this.getFormByID();
3409
3440
  this.configureListviewButtons();
3410
3441
  // this.outCompileConfigurations.userID;
@@ -3412,7 +3443,7 @@ class ListViewFormRecordComponent {
3412
3443
  // this.configureColumns();
3413
3444
  }
3414
3445
  ngOnChanges(changes) {
3415
- //this.debugLog('ngOnChanges', changes);
3446
+ //GlobalService.debugLog('ngOnChanges', changes);
3416
3447
  // Se viene modificato il valore di "ngModelInput" allora aggiorna l'input
3417
3448
  if (changes["configurations"] != undefined &&
3418
3449
  changes["configurations"].firstChange == false) {
@@ -3491,7 +3522,7 @@ class ListViewFormRecordComponent {
3491
3522
  this.getRecordsByFormID();
3492
3523
  }
3493
3524
  else {
3494
- //this.debugLog('Records Exists', this.records);
3525
+ //GlobalService.debugLog('Records Exists', this.records);
3495
3526
  this.generateAnswersArray(this.records);
3496
3527
  }
3497
3528
  }
@@ -3516,7 +3547,7 @@ class ListViewFormRecordComponent {
3516
3547
  this.endPointConfiguration.Records.GetByFormIDEndPoint) {
3517
3548
  // se non conosco l'utente
3518
3549
  yield this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.GetByFormIDEndPoint, dynamicModuleParams, (res) => {
3519
- //this.debugLog('GetByFormIDEndPoint', res)
3550
+ //GlobalService.debugLog('GetByFormIDEndPoint', res)
3520
3551
  this.generateAnswersArray(res);
3521
3552
  });
3522
3553
  }
@@ -3538,7 +3569,7 @@ class ListViewFormRecordComponent {
3538
3569
  },
3539
3570
  ];
3540
3571
  yield this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.GetAllByEntAndUserIDEndPoint, dynamicModuleParams, (res) => {
3541
- //this.debugLog('GetAllByEntAndUserIDEndPoint', res)
3572
+ //GlobalService.debugLog('GetAllByEntAndUserIDEndPoint', res)
3542
3573
  this.generateAnswersArray(res);
3543
3574
  });
3544
3575
  }
@@ -3551,9 +3582,9 @@ class ListViewFormRecordComponent {
3551
3582
  this.configurations.values = new Array();
3552
3583
  this.panels = new Array();
3553
3584
  res.forEach((r) => {
3554
- //this.debugLog("generateAnswersArray", r)
3585
+ //GlobalService.debugLog("generateAnswersArray", r)
3555
3586
  var tmpRec = new Record();
3556
- //this.debugLog("SerializedValues", r.SerializedValues)
3587
+ //GlobalService.debugLog("SerializedValues", r.SerializedValues)
3557
3588
  tmpRec = JSON.parse(r.SerializedValues);
3558
3589
  tmpRec.ID = r.ID;
3559
3590
  tmpRec.EntID = r.EntID;
@@ -3561,7 +3592,7 @@ class ListViewFormRecordComponent {
3561
3592
  tmpRec.userID = r.userID;
3562
3593
  tmpRec.AnswerDate = r.AnswerDate;
3563
3594
  tmpRec.HTMLreadableValues = r.HTMLreadableValues;
3564
- //this.debugLog("AdditionalParams", r.AdditionalParams)
3595
+ //GlobalService.debugLog("AdditionalParams", r.AdditionalParams)
3565
3596
  tmpRec.AdditionalParams = r.AdditionalParams != "" && r.AdditionalParams != null ? JSON.parse(r.AdditionalParams) : "";
3566
3597
  this.configurations.values.push(tmpRec);
3567
3598
  var isHighlighted = false;
@@ -3581,9 +3612,9 @@ class ListViewFormRecordComponent {
3581
3612
  }, 0); // refresh ui
3582
3613
  }
3583
3614
  togglePanel(panel, record) {
3584
- //this.debugLog('togglePanel')
3615
+ //GlobalService.debugLog('togglePanel')
3585
3616
  if (this.defaultListViewFunction != null) {
3586
- //this.debugLog('defaultListViewFunction', record)
3617
+ //GlobalService.debugLog('defaultListViewFunction', record)
3587
3618
  this.defaultListViewFunction(record);
3588
3619
  return;
3589
3620
  }
@@ -3634,7 +3665,7 @@ class ListViewFormRecordComponent {
3634
3665
  * @param onlyView Se TRUE viene mostrato il componente add-form-record in sola lettura.
3635
3666
  */
3636
3667
  viewOrEditRecord(record, onlyView, i) {
3637
- //this.debugLog('viewOrEditRecord')
3668
+ //GlobalService.debugLog('viewOrEditRecord')
3638
3669
  this.loader = false;
3639
3670
  this.onAddViewEditRecord2({ record, onlyView });
3640
3671
  this.panelOpenState.map(() => false);
@@ -3644,7 +3675,7 @@ class ListViewFormRecordComponent {
3644
3675
  viewRecord(panel, onlyView, i, ev) {
3645
3676
  ev.preventDefault();
3646
3677
  ev.stopPropagation();
3647
- //this.debugLog('viewRecord')
3678
+ //GlobalService.debugLog('viewRecord')
3648
3679
  let record = panel.record;
3649
3680
  this.visualizzaContenuto = true;
3650
3681
  this.modificaContenuto = false;
@@ -3665,7 +3696,7 @@ class ListViewFormRecordComponent {
3665
3696
  EditRecord(panel, onlyView, i, ev) {
3666
3697
  ev.preventDefault();
3667
3698
  ev.stopPropagation();
3668
- //this.debugLog('EditRecord')
3699
+ //GlobalService.debugLog('EditRecord')
3669
3700
  let record = panel.record;
3670
3701
  this.visualizzaContenuto = false;
3671
3702
  this.modificaContenuto = true;
@@ -3695,7 +3726,7 @@ class ListViewFormRecordComponent {
3695
3726
  duplicateRecord(panel, onlyView, i, ev) {
3696
3727
  ev.preventDefault();
3697
3728
  ev.stopPropagation();
3698
- //this.debugLog('duplicateRecord');
3729
+ //GlobalService.debugLog('duplicateRecord');
3699
3730
  panel.record.ID = "";
3700
3731
  this.selectedRecord = panel.record;
3701
3732
  console.log("this.selectedRecord", this.selectedRecord);
@@ -3850,11 +3881,11 @@ class ListViewFormRecordComponent {
3850
3881
  * Metodo per salvare i dati inseriti dall'utente una volta conclusa la compilazione della form.
3851
3882
  */
3852
3883
  saveOrExitForm(record) {
3853
- //this.debugLog('list-view-form-record save', record)
3884
+ //GlobalService.debugLog('list-view-form-record save', record)
3854
3885
  this.saveRecordEvent.emit(record);
3855
3886
  }
3856
3887
  onAfterSaveRecord(event) {
3857
- //this.debugLog('list-view-form-record aftersave', event)
3888
+ //GlobalService.debugLog('list-view-form-record aftersave', event)
3858
3889
  this.saveRecordEvent.emit(event);
3859
3890
  }
3860
3891
  /**
@@ -5262,7 +5293,7 @@ class FilterFormStatisticComponent {
5262
5293
  ParamType: ParamTypeEnum["Query param"],
5263
5294
  },
5264
5295
  ];
5265
- this.debugLog("getFormByIDandVersion - this record", this.record);
5296
+ GlobalService$1.debugLog("getFormByIDandVersion - this record", this.record);
5266
5297
  this.utilityService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
5267
5298
  this.form = res;
5268
5299
  this.createRecordProperties();
@@ -5331,26 +5362,26 @@ class FilterFormStatisticComponent {
5331
5362
  * Metodo per creare il FormGroup che rappresenta la form.
5332
5363
  */
5333
5364
  createHTMLreadableValues(record) {
5334
- this.debugLog("record", record);
5335
- this.debugLog("form", this.form);
5365
+ GlobalService$1.debugLog("record", record);
5366
+ GlobalService$1.debugLog("form", this.form);
5336
5367
  let outputValuesArray = this.getResponseValues(record, this.form);
5337
- this.debugLog("outputValuesArray", outputValuesArray);
5368
+ GlobalService$1.debugLog("outputValuesArray", outputValuesArray);
5338
5369
  let template = this.getResponseTemplate(this.form); // oggetto nel quale viene costruito il template o che prende il valore da un template esterno
5339
- this.debugLog("template", template);
5370
+ GlobalService$1.debugLog("template", template);
5340
5371
  const regex = /##([\w]+)##/g;
5341
5372
  return this.replaceTemplatePlaceholdersWithValues(template, outputValuesArray, regex); // oggetto che conterrà l'output elaborato
5342
5373
  }
5343
5374
  getResponseValues(record, form) {
5344
5375
  let outputValuesArray = []; // array con i valori delle risposte
5345
5376
  //(<DynRecord>this.record).Values è la lista di oggetti {fieldName: valore}
5346
- this.debugLog("(record).Values", record);
5377
+ GlobalService$1.debugLog("(record).Values", record);
5347
5378
  for (let fieldName in record) {
5348
5379
  try {
5349
5380
  // fieldName è il nome del campo
5350
5381
  // PREPARO VARIABILI VALORI CORRETTI
5351
5382
  let foundObject = form.Fields.find((obj) => obj.Name === fieldName);
5352
- this.debugLog("fieldName", fieldName);
5353
- this.debugLog("foundObject", foundObject);
5383
+ GlobalService$1.debugLog("fieldName", fieldName);
5384
+ GlobalService$1.debugLog("foundObject", foundObject);
5354
5385
  // gestire caso fieldtype 8 [elenco generico]
5355
5386
  // fare un eval per popolare i valuePairs se è presente una formula
5356
5387
  // prendere la label corretta
@@ -5360,7 +5391,7 @@ class FilterFormStatisticComponent {
5360
5391
  // aggiungo a valuepairs i valori calcolati
5361
5392
  // (<ListValueField>foundObject).ValuePairs = {};
5362
5393
  var temp = UtilityHelperService.EvaluateFieldFormula(foundObject.Formula, record, null);
5363
- this.debugLog("temp", temp);
5394
+ GlobalService$1.debugLog("temp", temp);
5364
5395
  for (let key2 in temp) {
5365
5396
  if (UtilityHelperService.isNumeric(temp[key2])) {
5366
5397
  foundObject.ValuePairs[Number(key2)] = temp[key2];
@@ -5369,12 +5400,12 @@ class FilterFormStatisticComponent {
5369
5400
  foundObject.ValuePairs[key2] = temp[key2];
5370
5401
  }
5371
5402
  }
5372
- this.debugLog("(record).Values[fieldName]", record[fieldName]);
5373
- this.debugLog("(<ListValueField>foundObject).ValuePairs[record[fieldName]]", foundObject.ValuePairs[record[fieldName]]);
5403
+ GlobalService$1.debugLog("(record).Values[fieldName]", record[fieldName]);
5404
+ GlobalService$1.debugLog("(<ListValueField>foundObject).ValuePairs[record[fieldName]]", foundObject.ValuePairs[record[fieldName]]);
5374
5405
  outputValuesArray[fieldName] = foundObject.ValuePairs[record[fieldName]];
5375
5406
  }
5376
5407
  let inverted = {};
5377
- this.debugLog("(<ListValueField>foundObject).ValuePairs", foundObject.ValuePairs);
5408
+ GlobalService$1.debugLog("(<ListValueField>foundObject).ValuePairs", foundObject.ValuePairs);
5378
5409
  for (let key in foundObject.ValuePairs) {
5379
5410
  inverted[foundObject.ValuePairs[key]] = key;
5380
5411
  }
@@ -5382,7 +5413,7 @@ class FilterFormStatisticComponent {
5382
5413
  outputValuesArray[fieldName] = foundObject.ValuePairs[record[fieldName]];
5383
5414
  }
5384
5415
  else {
5385
- this.debugLog("record[fieldName]", record[fieldName]);
5416
+ GlobalService$1.debugLog("record[fieldName]", record[fieldName]);
5386
5417
  outputValuesArray[fieldName] = record[fieldName];
5387
5418
  }
5388
5419
  ////////////////////////////////////////////////////////////////////////////////
@@ -5391,7 +5422,7 @@ class FilterFormStatisticComponent {
5391
5422
  console.error(e);
5392
5423
  }
5393
5424
  }
5394
- this.debugLog("outputValuesArray 1", outputValuesArray);
5425
+ GlobalService$1.debugLog("outputValuesArray 1", outputValuesArray);
5395
5426
  // cancello i valori indefiniti o nulli
5396
5427
  for (const chiave in outputValuesArray) {
5397
5428
  if (outputValuesArray[chiave] == undefined || outputValuesArray[chiave] == null)
@@ -5680,11 +5711,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5680
5711
  }] } });
5681
5712
 
5682
5713
  class EqpDynamicModuleComponent {
5683
- debugLog(message, element) {
5684
- if (this.debugMode) {
5685
- console.log(message, element);
5686
- }
5687
- }
5688
5714
  constructor(utilityHelperService, changeDetector) {
5689
5715
  this.utilityHelperService = utilityHelperService;
5690
5716
  this.changeDetector = changeDetector;
@@ -5749,6 +5775,7 @@ class EqpDynamicModuleComponent {
5749
5775
  }
5750
5776
  ngOnInit() {
5751
5777
  return __awaiter(this, void 0, void 0, function* () {
5778
+ GlobalService.debugMode = this.debugMode;
5752
5779
  this.onBackTo = (this.onBackTo == null) ? this.starterViewMode : this.onBackTo;
5753
5780
  this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.showSaveButton, this.showBackButton, this.userID, this.additionalParams, this.prefilterParams, this.showNewSearchButton);
5754
5781
  this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values, this.defaultListActions, this.userID);
@@ -5766,7 +5793,7 @@ class EqpDynamicModuleComponent {
5766
5793
  // await this.getFormByID();
5767
5794
  }
5768
5795
  // this.viewMode = this.starterViewMode;
5769
- this.debugLog("dynamicModuleCompileConfig", this.dynamicModuleCompileConfig);
5796
+ GlobalService.debugLog("dynamicModuleCompileConfig", this.dynamicModuleCompileConfig);
5770
5797
  this.loader = true;
5771
5798
  });
5772
5799
  }
@@ -5871,7 +5898,7 @@ class EqpDynamicModuleComponent {
5871
5898
  console.log("onAddViewEditRecord", event);
5872
5899
  if (event != null) {
5873
5900
  this.onlyView = event.onlyView;
5874
- this.debugLog("Version modulo", event.record.Version);
5901
+ GlobalService.debugLog("Version modulo", event.record.Version);
5875
5902
  if (this.endPointConfiguration &&
5876
5903
  this.endPointConfiguration.Records &&
5877
5904
  this.endPointConfiguration.Records.GetByIDEndPoint) {
@@ -5888,10 +5915,10 @@ class EqpDynamicModuleComponent {
5888
5915
  ParamType: ParamTypeEnum["Query param"],
5889
5916
  },
5890
5917
  ];
5891
- this.debugLog("query params", dynamicModuleParams);
5918
+ GlobalService.debugLog("query params", dynamicModuleParams);
5892
5919
  this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDAndVersionEndPoint, dynamicModuleParams, (res) => {
5893
5920
  this.form = res;
5894
- this.debugLog("RES", res);
5921
+ GlobalService.debugLog("RES", res);
5895
5922
  // preparo i dati del record
5896
5923
  var dynamicRecordParams = [
5897
5924
  {
@@ -6975,7 +7002,7 @@ class AddFormFieldComponent {
6975
7002
  */
6976
7003
  getFormValidationErrors(control) {
6977
7004
  if (control == "Label")
6978
- this.debugLog('getFormValidationErrors', this.fieldFormGroup.controls["Label"]);
7005
+ GlobalService.debugLog('getFormValidationErrors', this.fieldFormGroup.controls["Label"]);
6979
7006
  const controlErrors = this.fieldFormGroup.controls[control].errors;
6980
7007
  let errors = [];
6981
7008
  let values = [];
@@ -6983,9 +7010,9 @@ class AddFormFieldComponent {
6983
7010
  Object.keys(controlErrors).forEach((keyError) => {
6984
7011
  errors.push(keyError);
6985
7012
  });
6986
- this.debugLog('control: ', control);
6987
- this.debugLog('errors: ', errors);
6988
- this.debugLog('values: ', values);
7013
+ GlobalService.debugLog('control: ', control);
7014
+ GlobalService.debugLog('errors: ', errors);
7015
+ GlobalService.debugLog('values: ', values);
6989
7016
  }
6990
7017
  return errors.join(", ");
6991
7018
  }
@@ -7486,7 +7513,7 @@ class AddFormFieldComponent {
7486
7513
  */
7487
7514
  saveAndExitAddField(save) {
7488
7515
  if (save) {
7489
- this.debugLog('add-form-field save', this.field);
7516
+ GlobalService.debugLog('add-form-field save', this.field);
7490
7517
  this.saveFieldEvent.emit(this.field);
7491
7518
  }
7492
7519
  else {
@@ -7627,8 +7654,8 @@ class EqpDynamicModuleConfiguratorComponent {
7627
7654
  this.afterSaveFormEvent = new EventEmitter();
7628
7655
  }
7629
7656
  ngOnInit() {
7630
- this.debugLog('ngOnInit - configurations', this.configurations);
7631
- this.debugLog('ngOnInit - formID', this.formID);
7657
+ GlobalService.debugLog('ngOnInit - configurations', this.configurations);
7658
+ GlobalService.debugLog('ngOnInit - formID', this.formID);
7632
7659
  this.baseServerUrl =
7633
7660
  this.configurations.dynamicModuleGeneralConfig.baseServerUrl;
7634
7661
  this.context = this.configurations.dynamicModuleGeneralConfig.context;
@@ -7712,7 +7739,7 @@ class EqpDynamicModuleConfiguratorComponent {
7712
7739
  const fileReader = new FileReader();
7713
7740
  fileReader.readAsText(selectedFile, "UTF-8");
7714
7741
  fileReader.onload = () => {
7715
- this.debugLog('onImport - fileReader.result.toString()', fileReader.result.toString());
7742
+ GlobalService.debugLog('onImport - fileReader.result.toString()', fileReader.result.toString());
7716
7743
  this.importedModule = fileReader.result.toString();
7717
7744
  if (this.importedModule != null) {
7718
7745
  if (confirm("stai per sovrascrivere il modulo")) {
@@ -7894,7 +7921,7 @@ class EqpDynamicModuleConfiguratorComponent {
7894
7921
  this.form.Fields.push(field);
7895
7922
  }
7896
7923
  }
7897
- this.debugLog("onSaveField", this.form);
7924
+ GlobalService.debugLog("onSaveField", this.form);
7898
7925
  this.closeFieldDialog();
7899
7926
  this.setFieldOrdinalPosition();
7900
7927
  this.reloadFieldsTable();
@@ -8083,7 +8110,7 @@ class EqpDynamicModuleConfiguratorComponent {
8083
8110
  if (completed) {
8084
8111
  this.formCompleted = true;
8085
8112
  this.previewForm = JSON.parse(JSON.stringify(this.form));
8086
- this.debugLog("previewForm", this.previewForm);
8113
+ GlobalService.debugLog("previewForm", this.previewForm);
8087
8114
  // Per visualizzare correttamente l'oanteprima della form appena creata
8088
8115
  // bisogna valorizzare la proprietà Name dei campi della form e delle InnerForms.
8089
8116
  this.previewForm.Fields.forEach((field) => {
@@ -8584,7 +8611,7 @@ class DynamicModuleFieldComponent {
8584
8611
  }
8585
8612
  }
8586
8613
  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 });
8587
- 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"] }] });
8614
+ 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"] }] });
8588
8615
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DynamicModuleFieldComponent, decorators: [{
8589
8616
  type: Component,
8590
8617
  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>" }]