@eqproject/eqp-dynamic-module 2.6.29 → 2.6.30

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.
@@ -2130,10 +2130,10 @@ class DateFieldTemplateComponent {
2130
2130
  }
2131
2131
  }
2132
2132
  DateFieldTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateFieldTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2133
- DateFieldTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateFieldTemplateComponent, selector: "date-field-template", inputs: { field: "field", record: "record", inConfig: "inConfig" }, outputs: { recordChange: "recordChange" }, usesOnChanges: true, ngImport: i0, template: "<tmw-datetimepicker [placeholder]=\"field.Description\" [label]=\"field.Description\" [pickerMode]=\"mode\"\r\n [formGroupInput]=\"field.FormFormGroup\" [formControlNameInput]=\"field.Name\"\r\n [minDate]=\"field.MinDate ? field.MinDate : null\" [maxDate]=\"field.MaxDate ? field.MaxDate : null\"\r\n [disabled]=\"field.FormFormGroup.disabled\" [(ngModelInput)]=\"record[field.Name]\"\r\n (ngModelInputChange)=\"onRecordValueChange()\" [outputFormat]=\"outputFormat\">\r\n</tmw-datetimepicker>", styles: [""], dependencies: [{ kind: "component", type: i1$2.TmwDateTimePickerComponent, selector: "tmw-datetimepicker", inputs: ["debugMode", "ngModelInput", "formGroupInput", "formControlNameInput", "pickerMode", "timeType", "label", "placeholder", "hint", "minDate", "maxDate", "locale", "inputFormat", "outputFormat", "forSaveLocalOnDB", "disabled", "readonly", "currentDateAsDefault", "showSpinners", "touchUi", "enableMeridian", "hideTime", "stepHour", "showHours", "hourLabel", "stepMinute", "showMinutes", "minuteLabel", "stepSecond", "showSeconds", "secondLabel", "disableMinute", "dayLabel", "monthLabel", "yearLabel", "highLightedDates", "highLightedAriaFormat"], outputs: ["ngModelInputChange"] }] });
2133
+ DateFieldTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateFieldTemplateComponent, selector: "date-field-template", inputs: { field: "field", record: "record", inConfig: "inConfig" }, outputs: { recordChange: "recordChange" }, usesOnChanges: true, ngImport: i0, template: "<tmw-datetimepicker [placeholder]=\"field.Description\" [label]=\"field.Description\" [pickerMode]=\"mode\"\r\n [minDate]=\"field.MinDate ? field.MinDate : null\" [maxDate]=\"field.MaxDate ? field.MaxDate : null\"\r\n [disabled]=\"field.FormFormGroup.disabled\" [(ngModelInput)]=\"record[field.Name]\"\r\n (ngModelInputChange)=\"onRecordValueChange()\" [outputFormat]=\"outputFormat\">\r\n</tmw-datetimepicker>", styles: [""], dependencies: [{ kind: "component", type: i1$2.TmwDateTimePickerComponent, selector: "tmw-datetimepicker", inputs: ["debugMode", "ngModelInput", "formGroupInput", "formControlNameInput", "pickerMode", "timeType", "label", "placeholder", "hint", "minDate", "maxDate", "locale", "inputFormat", "outputFormat", "forSaveLocalOnDB", "disabled", "readonly", "currentDateAsDefault", "showSpinners", "touchUi", "enableMeridian", "hideTime", "stepHour", "showHours", "hourLabel", "stepMinute", "showMinutes", "minuteLabel", "stepSecond", "showSeconds", "secondLabel", "disableMinute", "dayLabel", "monthLabel", "yearLabel", "highLightedDates", "highLightedAriaFormat"], outputs: ["ngModelInputChange"] }] });
2134
2134
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateFieldTemplateComponent, decorators: [{
2135
2135
  type: Component,
2136
- args: [{ selector: 'date-field-template', template: "<tmw-datetimepicker [placeholder]=\"field.Description\" [label]=\"field.Description\" [pickerMode]=\"mode\"\r\n [formGroupInput]=\"field.FormFormGroup\" [formControlNameInput]=\"field.Name\"\r\n [minDate]=\"field.MinDate ? field.MinDate : null\" [maxDate]=\"field.MaxDate ? field.MaxDate : null\"\r\n [disabled]=\"field.FormFormGroup.disabled\" [(ngModelInput)]=\"record[field.Name]\"\r\n (ngModelInputChange)=\"onRecordValueChange()\" [outputFormat]=\"outputFormat\">\r\n</tmw-datetimepicker>" }]
2136
+ args: [{ selector: 'date-field-template', template: "<tmw-datetimepicker [placeholder]=\"field.Description\" [label]=\"field.Description\" [pickerMode]=\"mode\"\r\n [minDate]=\"field.MinDate ? field.MinDate : null\" [maxDate]=\"field.MaxDate ? field.MaxDate : null\"\r\n [disabled]=\"field.FormFormGroup.disabled\" [(ngModelInput)]=\"record[field.Name]\"\r\n (ngModelInputChange)=\"onRecordValueChange()\" [outputFormat]=\"outputFormat\">\r\n</tmw-datetimepicker>" }]
2137
2137
  }], ctorParameters: function () { return []; }, propDecorators: { field: [{
2138
2138
  type: Input
2139
2139
  }], record: [{
@@ -9455,7 +9455,6 @@ class AddFormFieldComponent {
9455
9455
  FieldTypeEnum["Form di dettaglio"],
9456
9456
  FieldTypeEnum["Data e/o ora"],
9457
9457
  ].includes(this.field.FieldType)) {
9458
- this.field.Formula = null;
9459
9458
  this.fieldFormGroup.controls["LabelstyleCSS"].disable();
9460
9459
  this.fieldFormGroup.controls["FieldstyleCSS"].disable();
9461
9460
  }
@@ -9464,7 +9463,6 @@ class AddFormFieldComponent {
9464
9463
  this.fieldFormGroup.controls["FieldstyleCSS"].enable();
9465
9464
  }
9466
9465
  if ([FieldTypeEnum.Booleano].includes(this.field.FieldType)) {
9467
- this.field.Formula = null;
9468
9466
  this.fieldFormGroup.controls["LabelstyleCSS"].disable();
9469
9467
  }
9470
9468
  else {
@@ -11156,9 +11154,13 @@ class EqpDynamicModuleConfiguratorComponent {
11156
11154
  * @param field Oggetto BaseField da modificare. Se null ne viene creata una nuova istanza per l'aggiunta.
11157
11155
  */
11158
11156
  openFieldDialog(field = null) {
11157
+ console.log("openFieldDialog", field);
11159
11158
  if (field) {
11160
11159
  this.indexSelectedField = this.form.Fields.indexOf(field);
11161
11160
  this.selectedField = JSON.parse(JSON.stringify(field));
11161
+ // Dato che con il JSON.parse si perde per strada la formula, la rimetto dopo.
11162
+ // Tanto oramai il riferimento con "field" è stato perso e stiamo passando una stringa
11163
+ this.selectedField.Formula = field.Formula;
11162
11164
  if (this.selectedField.AnswerStyle == null) {
11163
11165
  this.selectedField.AnswerStyle = { InListView: true, VisibleIf: null, FieldstyleCSS: "", LabelstyleCSS: "", ColSpanSizes: [] };
11164
11166
  }