@eqproject/eqp-dynamic-module 2.6.27 → 2.6.28
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 +13 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +11 -0
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +11 -0
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -11008,6 +11008,7 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
11008
11008
|
var importedForm = JSON.parse(this.importedModule);
|
|
11009
11009
|
importedForm.ID = "";
|
|
11010
11010
|
importedForm.Name = importedForm.Name + " (Importato)";
|
|
11011
|
+
importedForm = this.setImportedForm(importedForm);
|
|
11011
11012
|
this.setFormAndConfigure(importedForm);
|
|
11012
11013
|
this.setName(importedForm.Name);
|
|
11013
11014
|
this.closeImport();
|
|
@@ -11022,6 +11023,16 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
11022
11023
|
console.error(error);
|
|
11023
11024
|
};
|
|
11024
11025
|
}
|
|
11026
|
+
setImportedForm(form) {
|
|
11027
|
+
form.Fields.forEach((field) => {
|
|
11028
|
+
if (field.FieldType == FieldTypeEnum["Elenco immagini"]) {
|
|
11029
|
+
field.AttachmentList.forEach((attachment) => {
|
|
11030
|
+
attachment.ID = 0;
|
|
11031
|
+
});
|
|
11032
|
+
}
|
|
11033
|
+
});
|
|
11034
|
+
return form;
|
|
11035
|
+
}
|
|
11025
11036
|
importModule() {
|
|
11026
11037
|
this.dialogImportRef = this.dialog.open(this.dialogImport, {
|
|
11027
11038
|
disableClose: true,
|