@eqproject/eqp-dynamic-module 2.3.41 → 2.3.42
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 +36 -3
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +4 -2
- package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +5 -1
- package/esm2020/lib/models/baseField.model.mjs +1 -1
- package/esm2020/lib/services/utilityHelper.services.mjs +16 -16
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +57 -18
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +57 -18
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/models/baseField.model.d.ts +2 -2
- package/package.json +1 -1
|
@@ -707,7 +707,7 @@ class UtilityHelperService {
|
|
|
707
707
|
////GlobalService.debugLog('field', field)
|
|
708
708
|
return field.ColSpanSizes.map((size) => ColSpanSizesEnum[size].toString()).join(" ");
|
|
709
709
|
}
|
|
710
|
-
return this.getDefaultStyleClass(field);
|
|
710
|
+
return this.getDefaultStyleClass(field, 'align-self-end');
|
|
711
711
|
}
|
|
712
712
|
/**
|
|
713
713
|
* Metodo invocato dall'html per impostare le classi css per visualizzare il campo all'interno della form.
|
|
@@ -721,54 +721,54 @@ class UtilityHelperService {
|
|
|
721
721
|
////GlobalService.debugLog('field', field)
|
|
722
722
|
return field.AnswerStyle.ColSpanSizes.map((size) => ColSpanSizesEnum[size].toString()).join(" ");
|
|
723
723
|
}
|
|
724
|
-
return this.getDefaultStyleClass(field);
|
|
724
|
+
return this.getDefaultStyleClass(field, 'align-self-start');
|
|
725
725
|
}
|
|
726
|
-
getDefaultStyleClass(field) {
|
|
726
|
+
getDefaultStyleClass(field, defaultAlign) {
|
|
727
727
|
switch (field.FieldType) {
|
|
728
728
|
case FieldTypeEnum["Campo di testo"]:
|
|
729
729
|
//GlobalService.debugLog('Campo di testo')
|
|
730
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
730
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
731
731
|
case FieldTypeEnum["Area di testo"]:
|
|
732
732
|
//GlobalService.debugLog('Area di testo')
|
|
733
|
-
return "col-sm-12 col-md-12 col-lg-12
|
|
733
|
+
return "col-sm-12 col-md-12 col-lg-12 " + defaultAlign;
|
|
734
734
|
case FieldTypeEnum["Booleano"]:
|
|
735
735
|
//GlobalService.debugLog('Booleano')
|
|
736
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
736
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
737
737
|
case FieldTypeEnum["Data e/o ora"]:
|
|
738
738
|
//GlobalService.debugLog('Data e/o ora')
|
|
739
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
739
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
740
740
|
case FieldTypeEnum["Campo numerico"]:
|
|
741
741
|
//GlobalService.debugLog('Campo numerico')
|
|
742
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
742
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
743
743
|
case FieldTypeEnum["Allegato"]:
|
|
744
744
|
//GlobalService.debugLog('Allegato')
|
|
745
745
|
if (field.IsMultiAttach ||
|
|
746
746
|
(field.MetadataFields &&
|
|
747
747
|
field.MetadataFields.length > 0)) {
|
|
748
|
-
return "col-sm-12 col-md-12 col-lg-12
|
|
748
|
+
return "col-sm-12 col-md-12 col-lg-12 " + defaultAlign;
|
|
749
749
|
}
|
|
750
750
|
else {
|
|
751
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
751
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
752
752
|
}
|
|
753
753
|
case FieldTypeEnum["Immagine"]:
|
|
754
754
|
//GlobalService.debugLog('Immagine')
|
|
755
755
|
if (field.AttachDefinition.IsMultiAttach ||
|
|
756
756
|
(field.AttachDefinition.MetadataFields &&
|
|
757
757
|
field.AttachDefinition.MetadataFields.length > 0)) {
|
|
758
|
-
return "col-sm-12 col-md-12 col-lg-12
|
|
758
|
+
return "col-sm-12 col-md-12 col-lg-12 " + defaultAlign;
|
|
759
759
|
}
|
|
760
760
|
else {
|
|
761
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
761
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
762
762
|
}
|
|
763
763
|
case FieldTypeEnum["Elenco generico"]:
|
|
764
764
|
//GlobalService.debugLog('Elenco generico')
|
|
765
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
765
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
766
766
|
case FieldTypeEnum["Lookup"]:
|
|
767
767
|
//GlobalService.debugLog('Lookup')
|
|
768
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
768
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
769
769
|
case FieldTypeEnum["Form di dettaglio"]:
|
|
770
770
|
//GlobalService.debugLog('Form di dettaglio')
|
|
771
|
-
return "col-sm-12 col-md-12 col-lg-12
|
|
771
|
+
return "col-sm-12 col-md-12 col-lg-12 " + defaultAlign;
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
/**
|
|
@@ -2124,6 +2124,10 @@ class ListValueFieldTemplateComponent {
|
|
|
2124
2124
|
GlobalService.debugLog("list-value-field - updateField - ValueString");
|
|
2125
2125
|
this.field.ValuePairs = GlobalService.stringToValuePairs(this.field.ValueString);
|
|
2126
2126
|
}
|
|
2127
|
+
else if (this.field.ButtonImageList != null && this.field.ButtonImageList.length > 0) {
|
|
2128
|
+
GlobalService.debugLog("list-value-field - updateField - ButtonImageList", this.field.ButtonImageList);
|
|
2129
|
+
// this.field.ValuePairs = GlobalService.stringToValuePairs(this.field.ValueString);
|
|
2130
|
+
}
|
|
2127
2131
|
if (this.field.VisibleIf) {
|
|
2128
2132
|
this.field.InListView = UtilityHelperService.EvaluateFieldFormula(this.field.VisibleIf, this.record, null);
|
|
2129
2133
|
}
|
|
@@ -7095,6 +7099,8 @@ class AddFormFieldComponent {
|
|
|
7095
7099
|
if (this.field.PresentationMode ===
|
|
7096
7100
|
ListPresentationEnum.Immagini) {
|
|
7097
7101
|
this.field.ValuePairs = null;
|
|
7102
|
+
this.field.ValueString = null;
|
|
7103
|
+
this.field.Formula = null;
|
|
7098
7104
|
}
|
|
7099
7105
|
else {
|
|
7100
7106
|
this.field.ButtonImageList = null;
|
|
@@ -7347,7 +7353,7 @@ class AddFormFieldComponent {
|
|
|
7347
7353
|
else {
|
|
7348
7354
|
return (!this.field.ButtonImageList ||
|
|
7349
7355
|
this.field.ButtonImageList.length === 0 ||
|
|
7350
|
-
|
|
7356
|
+
!this.field.ButtonImageList.find((i) => !i.ButtonKey || !i.ButtonValue));
|
|
7351
7357
|
}
|
|
7352
7358
|
case FieldTypeEnum.Lookup:
|
|
7353
7359
|
return (!this.field.FieldNames ||
|
|
@@ -8184,7 +8190,7 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
8184
8190
|
{
|
|
8185
8191
|
key: "Required",
|
|
8186
8192
|
display: "Obbligatorio",
|
|
8187
|
-
value: (element) =>
|
|
8193
|
+
value: (element) => element.Required,
|
|
8188
8194
|
type: TypeColumn.Boolean,
|
|
8189
8195
|
booleanValues: {
|
|
8190
8196
|
true: '<i class="fa fa-check success-color"></i>',
|
|
@@ -8195,7 +8201,40 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
8195
8201
|
{
|
|
8196
8202
|
key: "Formula",
|
|
8197
8203
|
display: "Calcolato",
|
|
8198
|
-
value: (element) =>
|
|
8204
|
+
value: (element) => element.Formula,
|
|
8205
|
+
type: TypeColumn.Boolean,
|
|
8206
|
+
booleanValues: {
|
|
8207
|
+
true: '<i class="fa fa-check success-color"></i>',
|
|
8208
|
+
false: '<i class="fa fa-close error-color"></i>',
|
|
8209
|
+
},
|
|
8210
|
+
styles: { flex: "0 0 5rem", cellAlignment: CellAlignmentEnum.CENTER },
|
|
8211
|
+
},
|
|
8212
|
+
{
|
|
8213
|
+
key: "InListView",
|
|
8214
|
+
display: "Compilazione Visibile",
|
|
8215
|
+
value: (element) => element.InListView,
|
|
8216
|
+
type: TypeColumn.Boolean,
|
|
8217
|
+
booleanValues: {
|
|
8218
|
+
true: '<i class="fa fa-check success-color"></i>',
|
|
8219
|
+
false: '<i class="fa fa-close error-color"></i>',
|
|
8220
|
+
},
|
|
8221
|
+
styles: { flex: "0 0 5rem", cellAlignment: CellAlignmentEnum.CENTER },
|
|
8222
|
+
},
|
|
8223
|
+
{
|
|
8224
|
+
key: "VisibleIf",
|
|
8225
|
+
display: "Calcolo Visibile",
|
|
8226
|
+
value: (element) => element.VisibleIf != null && element.VisibleIf != "",
|
|
8227
|
+
type: TypeColumn.Boolean,
|
|
8228
|
+
booleanValues: {
|
|
8229
|
+
true: '<i class="fa fa-check success-color"></i>',
|
|
8230
|
+
false: '<i class="fa fa-close error-color"></i>',
|
|
8231
|
+
},
|
|
8232
|
+
styles: { flex: "0 0 5rem", cellAlignment: CellAlignmentEnum.CENTER },
|
|
8233
|
+
},
|
|
8234
|
+
{
|
|
8235
|
+
key: "AnswerStyle.InListView",
|
|
8236
|
+
display: "Risposta Visibile",
|
|
8237
|
+
value: (element) => !element.AnswerStyle || element.AnswerStyle && element.AnswerStyle.InListView,
|
|
8199
8238
|
type: TypeColumn.Boolean,
|
|
8200
8239
|
booleanValues: {
|
|
8201
8240
|
true: '<i class="fa fa-check success-color"></i>',
|