@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
|
@@ -708,7 +708,7 @@ class UtilityHelperService {
|
|
|
708
708
|
////GlobalService.debugLog('field', field)
|
|
709
709
|
return field.ColSpanSizes.map((size) => ColSpanSizesEnum[size].toString()).join(" ");
|
|
710
710
|
}
|
|
711
|
-
return this.getDefaultStyleClass(field);
|
|
711
|
+
return this.getDefaultStyleClass(field, 'align-self-end');
|
|
712
712
|
}
|
|
713
713
|
/**
|
|
714
714
|
* Metodo invocato dall'html per impostare le classi css per visualizzare il campo all'interno della form.
|
|
@@ -722,54 +722,54 @@ class UtilityHelperService {
|
|
|
722
722
|
////GlobalService.debugLog('field', field)
|
|
723
723
|
return field.AnswerStyle.ColSpanSizes.map((size) => ColSpanSizesEnum[size].toString()).join(" ");
|
|
724
724
|
}
|
|
725
|
-
return this.getDefaultStyleClass(field);
|
|
725
|
+
return this.getDefaultStyleClass(field, 'align-self-start');
|
|
726
726
|
}
|
|
727
|
-
getDefaultStyleClass(field) {
|
|
727
|
+
getDefaultStyleClass(field, defaultAlign) {
|
|
728
728
|
switch (field.FieldType) {
|
|
729
729
|
case FieldTypeEnum["Campo di testo"]:
|
|
730
730
|
//GlobalService.debugLog('Campo di testo')
|
|
731
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
731
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
732
732
|
case FieldTypeEnum["Area di testo"]:
|
|
733
733
|
//GlobalService.debugLog('Area di testo')
|
|
734
|
-
return "col-sm-12 col-md-12 col-lg-12
|
|
734
|
+
return "col-sm-12 col-md-12 col-lg-12 " + defaultAlign;
|
|
735
735
|
case FieldTypeEnum["Booleano"]:
|
|
736
736
|
//GlobalService.debugLog('Booleano')
|
|
737
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
737
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
738
738
|
case FieldTypeEnum["Data e/o ora"]:
|
|
739
739
|
//GlobalService.debugLog('Data e/o ora')
|
|
740
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
740
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
741
741
|
case FieldTypeEnum["Campo numerico"]:
|
|
742
742
|
//GlobalService.debugLog('Campo numerico')
|
|
743
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
743
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
744
744
|
case FieldTypeEnum["Allegato"]:
|
|
745
745
|
//GlobalService.debugLog('Allegato')
|
|
746
746
|
if (field.IsMultiAttach ||
|
|
747
747
|
(field.MetadataFields &&
|
|
748
748
|
field.MetadataFields.length > 0)) {
|
|
749
|
-
return "col-sm-12 col-md-12 col-lg-12
|
|
749
|
+
return "col-sm-12 col-md-12 col-lg-12 " + defaultAlign;
|
|
750
750
|
}
|
|
751
751
|
else {
|
|
752
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
752
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
753
753
|
}
|
|
754
754
|
case FieldTypeEnum["Immagine"]:
|
|
755
755
|
//GlobalService.debugLog('Immagine')
|
|
756
756
|
if (field.AttachDefinition.IsMultiAttach ||
|
|
757
757
|
(field.AttachDefinition.MetadataFields &&
|
|
758
758
|
field.AttachDefinition.MetadataFields.length > 0)) {
|
|
759
|
-
return "col-sm-12 col-md-12 col-lg-12
|
|
759
|
+
return "col-sm-12 col-md-12 col-lg-12 " + defaultAlign;
|
|
760
760
|
}
|
|
761
761
|
else {
|
|
762
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
762
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
763
763
|
}
|
|
764
764
|
case FieldTypeEnum["Elenco generico"]:
|
|
765
765
|
//GlobalService.debugLog('Elenco generico')
|
|
766
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
766
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
767
767
|
case FieldTypeEnum["Lookup"]:
|
|
768
768
|
//GlobalService.debugLog('Lookup')
|
|
769
|
-
return "col-sm-12 col-md-4 col-lg-4
|
|
769
|
+
return "col-sm-12 col-md-4 col-lg-4 " + defaultAlign;
|
|
770
770
|
case FieldTypeEnum["Form di dettaglio"]:
|
|
771
771
|
//GlobalService.debugLog('Form di dettaglio')
|
|
772
|
-
return "col-sm-12 col-md-12 col-lg-12
|
|
772
|
+
return "col-sm-12 col-md-12 col-lg-12 " + defaultAlign;
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
/**
|
|
@@ -2129,6 +2129,10 @@ class ListValueFieldTemplateComponent {
|
|
|
2129
2129
|
GlobalService.debugLog("list-value-field - updateField - ValueString");
|
|
2130
2130
|
this.field.ValuePairs = GlobalService.stringToValuePairs(this.field.ValueString);
|
|
2131
2131
|
}
|
|
2132
|
+
else if (this.field.ButtonImageList != null && this.field.ButtonImageList.length > 0) {
|
|
2133
|
+
GlobalService.debugLog("list-value-field - updateField - ButtonImageList", this.field.ButtonImageList);
|
|
2134
|
+
// this.field.ValuePairs = GlobalService.stringToValuePairs(this.field.ValueString);
|
|
2135
|
+
}
|
|
2132
2136
|
if (this.field.VisibleIf) {
|
|
2133
2137
|
this.field.InListView = UtilityHelperService.EvaluateFieldFormula(this.field.VisibleIf, this.record, null);
|
|
2134
2138
|
}
|
|
@@ -7112,6 +7116,8 @@ class AddFormFieldComponent {
|
|
|
7112
7116
|
if (this.field.PresentationMode ===
|
|
7113
7117
|
ListPresentationEnum.Immagini) {
|
|
7114
7118
|
this.field.ValuePairs = null;
|
|
7119
|
+
this.field.ValueString = null;
|
|
7120
|
+
this.field.Formula = null;
|
|
7115
7121
|
}
|
|
7116
7122
|
else {
|
|
7117
7123
|
this.field.ButtonImageList = null;
|
|
@@ -7364,7 +7370,7 @@ class AddFormFieldComponent {
|
|
|
7364
7370
|
else {
|
|
7365
7371
|
return (!this.field.ButtonImageList ||
|
|
7366
7372
|
this.field.ButtonImageList.length === 0 ||
|
|
7367
|
-
|
|
7373
|
+
!this.field.ButtonImageList.find((i) => !i.ButtonKey || !i.ButtonValue));
|
|
7368
7374
|
}
|
|
7369
7375
|
case FieldTypeEnum.Lookup:
|
|
7370
7376
|
return (!this.field.FieldNames ||
|
|
@@ -8201,7 +8207,7 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
8201
8207
|
{
|
|
8202
8208
|
key: "Required",
|
|
8203
8209
|
display: "Obbligatorio",
|
|
8204
|
-
value: (element) =>
|
|
8210
|
+
value: (element) => element.Required,
|
|
8205
8211
|
type: TypeColumn.Boolean,
|
|
8206
8212
|
booleanValues: {
|
|
8207
8213
|
true: '<i class="fa fa-check success-color"></i>',
|
|
@@ -8212,7 +8218,40 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
8212
8218
|
{
|
|
8213
8219
|
key: "Formula",
|
|
8214
8220
|
display: "Calcolato",
|
|
8215
|
-
value: (element) =>
|
|
8221
|
+
value: (element) => element.Formula,
|
|
8222
|
+
type: TypeColumn.Boolean,
|
|
8223
|
+
booleanValues: {
|
|
8224
|
+
true: '<i class="fa fa-check success-color"></i>',
|
|
8225
|
+
false: '<i class="fa fa-close error-color"></i>',
|
|
8226
|
+
},
|
|
8227
|
+
styles: { flex: "0 0 5rem", cellAlignment: CellAlignmentEnum.CENTER },
|
|
8228
|
+
},
|
|
8229
|
+
{
|
|
8230
|
+
key: "InListView",
|
|
8231
|
+
display: "Compilazione Visibile",
|
|
8232
|
+
value: (element) => element.InListView,
|
|
8233
|
+
type: TypeColumn.Boolean,
|
|
8234
|
+
booleanValues: {
|
|
8235
|
+
true: '<i class="fa fa-check success-color"></i>',
|
|
8236
|
+
false: '<i class="fa fa-close error-color"></i>',
|
|
8237
|
+
},
|
|
8238
|
+
styles: { flex: "0 0 5rem", cellAlignment: CellAlignmentEnum.CENTER },
|
|
8239
|
+
},
|
|
8240
|
+
{
|
|
8241
|
+
key: "VisibleIf",
|
|
8242
|
+
display: "Calcolo Visibile",
|
|
8243
|
+
value: (element) => element.VisibleIf != null && element.VisibleIf != "",
|
|
8244
|
+
type: TypeColumn.Boolean,
|
|
8245
|
+
booleanValues: {
|
|
8246
|
+
true: '<i class="fa fa-check success-color"></i>',
|
|
8247
|
+
false: '<i class="fa fa-close error-color"></i>',
|
|
8248
|
+
},
|
|
8249
|
+
styles: { flex: "0 0 5rem", cellAlignment: CellAlignmentEnum.CENTER },
|
|
8250
|
+
},
|
|
8251
|
+
{
|
|
8252
|
+
key: "AnswerStyle.InListView",
|
|
8253
|
+
display: "Risposta Visibile",
|
|
8254
|
+
value: (element) => !element.AnswerStyle || element.AnswerStyle && element.AnswerStyle.InListView,
|
|
8216
8255
|
type: TypeColumn.Boolean,
|
|
8217
8256
|
booleanValues: {
|
|
8218
8257
|
true: '<i class="fa fa-check success-color"></i>',
|