@eqproject/eqp-dynamic-module 2.6.27 → 2.6.29
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 +16 -2
- package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +8 -6
- package/esm2020/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.mjs +8 -6
- package/esm2020/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.mjs +8 -6
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/list-value-trigger-template/list-value-trigger-template.component.mjs +8 -6
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +42 -20
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +42 -20
- 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
|
@@ -2472,11 +2472,13 @@ class ListValueFieldTemplateComponent {
|
|
|
2472
2472
|
* Metodo per creare un array di oggetti del tipo { Key: string, Value: any } da usare come sorgente dati per la eqp-select.
|
|
2473
2473
|
*/
|
|
2474
2474
|
setArrayData() {
|
|
2475
|
-
if (
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2475
|
+
if (this.field.ValuePairs != null) {
|
|
2476
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
2477
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
2478
|
+
}
|
|
2479
|
+
else {
|
|
2480
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
2481
|
+
}
|
|
2480
2482
|
}
|
|
2481
2483
|
}
|
|
2482
2484
|
createArrayDataElement(key, value, imgUrl = null) {
|
|
@@ -6934,11 +6936,13 @@ class ListValueFilterTemplateComponent {
|
|
|
6934
6936
|
*/
|
|
6935
6937
|
setArrayData() {
|
|
6936
6938
|
this.prepareValuePairs();
|
|
6937
|
-
if (
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6939
|
+
if (this.field.ValuePairs != null) {
|
|
6940
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
6941
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
6942
|
+
}
|
|
6943
|
+
else {
|
|
6944
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
6945
|
+
}
|
|
6942
6946
|
}
|
|
6943
6947
|
}
|
|
6944
6948
|
prepareValuePairs() {
|
|
@@ -7337,11 +7341,13 @@ class ImageSelectorFilterTemplateComponent {
|
|
|
7337
7341
|
*/
|
|
7338
7342
|
setArrayData() {
|
|
7339
7343
|
this.prepareValuePairs();
|
|
7340
|
-
if (
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7344
|
+
if (this.field.ValuePairs != null) {
|
|
7345
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
7346
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
7347
|
+
}
|
|
7348
|
+
else {
|
|
7349
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
7350
|
+
}
|
|
7345
7351
|
}
|
|
7346
7352
|
}
|
|
7347
7353
|
prepareValuePairs() {
|
|
@@ -10977,6 +10983,7 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
10977
10983
|
var importedForm = JSON.parse(this.importedModule);
|
|
10978
10984
|
importedForm.ID = "";
|
|
10979
10985
|
importedForm.Name = importedForm.Name + " (Importato)";
|
|
10986
|
+
importedForm = this.setImportedForm(importedForm);
|
|
10980
10987
|
this.setFormAndConfigure(importedForm);
|
|
10981
10988
|
this.setName(importedForm.Name);
|
|
10982
10989
|
this.closeImport();
|
|
@@ -10991,6 +10998,19 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
10991
10998
|
console.error(error);
|
|
10992
10999
|
};
|
|
10993
11000
|
}
|
|
11001
|
+
setImportedForm(form) {
|
|
11002
|
+
// Modifica del creation user su Import
|
|
11003
|
+
form.CreationUser = this.UserID;
|
|
11004
|
+
// Modifica dei Field su Import
|
|
11005
|
+
form.Fields.forEach((field) => {
|
|
11006
|
+
if (field.FieldType == FieldTypeEnum["Elenco immagini"]) {
|
|
11007
|
+
field.AttachmentList.forEach((attachment) => {
|
|
11008
|
+
attachment.ID = 0;
|
|
11009
|
+
});
|
|
11010
|
+
}
|
|
11011
|
+
});
|
|
11012
|
+
return form;
|
|
11013
|
+
}
|
|
10994
11014
|
importModule() {
|
|
10995
11015
|
this.dialogImportRef = this.dialog.open(this.dialogImport, {
|
|
10996
11016
|
disableClose: true,
|
|
@@ -12149,11 +12169,13 @@ class ListValueTriggerTemplateComponent {
|
|
|
12149
12169
|
*/
|
|
12150
12170
|
setArrayData() {
|
|
12151
12171
|
this.prepareValuePairs();
|
|
12152
|
-
if (
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12172
|
+
if (this.field.ValuePairs != null) {
|
|
12173
|
+
if (UtilityHelperService.isNumeric(this.field.ValuePairs[Object.keys(this.field.ValuePairs)[0]])) {
|
|
12174
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createNumberArrayDataElement(k, Number(this.field.ValuePairs[k])));
|
|
12175
|
+
}
|
|
12176
|
+
else {
|
|
12177
|
+
Object.keys(this.field.ValuePairs).forEach(k => this.createArrayDataElement(k, this.field.ValuePairs[k]));
|
|
12178
|
+
}
|
|
12157
12179
|
}
|
|
12158
12180
|
}
|
|
12159
12181
|
prepareValuePairs() {
|