@eqproject/eqp-dynamic-module 2.9.40 → 2.9.41
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/private/form-records/add-form-record/add-form-record.component.mjs +5 -3
- package/esm2020/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +2 -2
- package/esm2020/lib/models/baseField.model.mjs +3 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +7 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +7 -3
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -216,6 +216,8 @@ var FieldTypeEnum;
|
|
|
216
216
|
FieldTypeEnum[FieldTypeEnum["Immagine con markers"] = 13] = "Immagine con markers";
|
|
217
217
|
FieldTypeEnum[FieldTypeEnum["Bottone azione"] = 14] = "Bottone azione";
|
|
218
218
|
})(FieldTypeEnum || (FieldTypeEnum = {}));
|
|
219
|
+
// se si aggiungono nuove modalità di recupero
|
|
220
|
+
// devono essere gestite in add-form-record > getResponseValues
|
|
219
221
|
var DataGetterTypeEnum;
|
|
220
222
|
(function (DataGetterTypeEnum) {
|
|
221
223
|
DataGetterTypeEnum[DataGetterTypeEnum["Manuale"] = 1] = "Manuale";
|
|
@@ -6634,7 +6636,9 @@ class AddFormRecordComponent {
|
|
|
6634
6636
|
field.ValuePairs = inverted;
|
|
6635
6637
|
if (record[field.Name] != null && field.IsMultiChoiche) {
|
|
6636
6638
|
let value = "";
|
|
6637
|
-
|
|
6639
|
+
// se DataGetter nullo (retrocompatibilità(?)) oppure NON Da database
|
|
6640
|
+
if (!field?.DataGetter || (field.DataGetter.DataGetterType != DataGetterTypeEnum['Da database'])) {
|
|
6641
|
+
// prima: if ((<ListValueField>field).DataGetter == null){
|
|
6638
6642
|
// caso MULTISCELTA NORMALE
|
|
6639
6643
|
record[field.Name].forEach((element, i) => {
|
|
6640
6644
|
value += field.ValuePairs[element];
|
|
@@ -6642,7 +6646,7 @@ class AddFormRecordComponent {
|
|
|
6642
6646
|
});
|
|
6643
6647
|
}
|
|
6644
6648
|
else {
|
|
6645
|
-
// caso MULTISCELTA DATAGETTER
|
|
6649
|
+
// caso MULTISCELTA DATAGETTER: DataGetterTypeEnum['Da database']
|
|
6646
6650
|
var values = new Array();
|
|
6647
6651
|
if (record[field.Name] != null && record[field.Name].length > 0) {
|
|
6648
6652
|
record[field.Name].forEach((element) => {
|
|
@@ -9612,7 +9616,7 @@ class FilterFormStatisticComponent {
|
|
|
9612
9616
|
*/
|
|
9613
9617
|
onFilterChange(ev) {
|
|
9614
9618
|
this.filters.Statistics = this.filters.Statistics.filter(x => x.key != ev.key);
|
|
9615
|
-
if (ev.logicoperator != null && ev.value != null) {
|
|
9619
|
+
if ((ev.logicoperator != null && ev.value != null) || ev.visible) {
|
|
9616
9620
|
this.filters.Statistics.push(ev);
|
|
9617
9621
|
}
|
|
9618
9622
|
}
|