@eqproject/eqp-dynamic-module 2.4.35 → 2.4.36
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.
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +7 -1
- package/esm2020/lib/models/baseField.model.mjs +2 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +7 -0
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +7 -0
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/models/baseField.model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -173,6 +173,7 @@ class BaseField extends BaseObj {
|
|
|
173
173
|
// rappresentazione grafica di default per gli elementi di risposta
|
|
174
174
|
this.AnswerStyle = { InListView: true, Invisibility: FieldInvisibilityEnum.NASCOSTO, VisibleIf: null, FieldstyleCSS: "", LabelstyleCSS: "", ColSpanSizes: [] };
|
|
175
175
|
this.DataGetter = new DataGetter();
|
|
176
|
+
this.DataGetterValueBase64String = "";
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
179
|
class AnswerStyle {
|
|
@@ -10122,6 +10123,9 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
10122
10123
|
// Per far arrivare al server l'array di Field bisogna passarli su Any
|
|
10123
10124
|
this.form.ObjectFields = [];
|
|
10124
10125
|
this.form.Fields.forEach((field) => {
|
|
10126
|
+
// Trasformo il datagetter in Base64
|
|
10127
|
+
field.DataGetterValueBase64String = btoa(JSON.stringify(field.DataGetter));
|
|
10128
|
+
field.DataGetter = null;
|
|
10125
10129
|
if (field.FieldType == FieldTypeEnum.Allegato) {
|
|
10126
10130
|
const fldA = field;
|
|
10127
10131
|
fldA.MetadataObjectFields = fldA.MetadataFields;
|
|
@@ -10178,6 +10182,9 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
10178
10182
|
this.form = form;
|
|
10179
10183
|
if (typeof this.form.Fields != "undefined") {
|
|
10180
10184
|
this.form.Fields.forEach((field) => {
|
|
10185
|
+
// Trasformo il Base64String del Datagetter nel Datagetter vero e proprio
|
|
10186
|
+
field.DataGetter = JSON.parse(atob(field.DataGetterValueBase64String));
|
|
10187
|
+
field.DataGetterValueBase64String = null;
|
|
10181
10188
|
field.DataGetter.DataGetterType = field.DataGetter.DataGetterType == null ? DataGetterTypeEnum.Manuale : field.DataGetter.DataGetterType;
|
|
10182
10189
|
});
|
|
10183
10190
|
}
|