@eqproject/eqp-dynamic-module 2.10.18 → 2.10.19
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/hlist-form-record/hlist-form-record.component.mjs +4 -4
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +3 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +3 -3
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2462,12 +2462,12 @@ class HListFormRecordComponent {
|
|
|
2462
2462
|
}
|
|
2463
2463
|
else if (aggrCol.AnswerDate == "SUM" && aggregations.indexOf(NumberAggregationFunctionEnum["SUM"]) != -1) {
|
|
2464
2464
|
var sum = 0;
|
|
2465
|
-
this.filteredAnswers.filter(x => x.ID != '0' && !isNaN(x[key])).forEach(el => { sum += el[key]; });
|
|
2465
|
+
this.filteredAnswers.filter(x => x.ID != '0' && !isNaN(x[key])).forEach(el => { sum += parseInt(el[key]); });
|
|
2466
2466
|
aggrCol[key] = sum;
|
|
2467
2467
|
}
|
|
2468
2468
|
else if (aggrCol.AnswerDate == "AVG" && aggregations.indexOf(NumberAggregationFunctionEnum["AVG"]) != -1) {
|
|
2469
2469
|
var avg = 0;
|
|
2470
|
-
this.filteredAnswers.filter(x => x.ID != '0' && !isNaN(x[key])).forEach(el => { avg += el[key]; });
|
|
2470
|
+
this.filteredAnswers.filter(x => x.ID != '0' && !isNaN(x[key])).forEach(el => { avg += parseInt(el[key]); });
|
|
2471
2471
|
aggrCol[key] = avg / this.filteredAnswers.filter(x => x.ID != '0' && !isNaN(x[key])).length;
|
|
2472
2472
|
}
|
|
2473
2473
|
else if (aggrCol.AnswerDate == "MIN" && aggregations.indexOf(NumberAggregationFunctionEnum["MIN"]) != -1) {
|
|
@@ -2486,7 +2486,7 @@ class HListFormRecordComponent {
|
|
|
2486
2486
|
}
|
|
2487
2487
|
else if (aggrCol.AnswerDate == "STDEV" && aggregations.indexOf(NumberAggregationFunctionEnum["STDEV"]) != -1) {
|
|
2488
2488
|
var values = [];
|
|
2489
|
-
this.filteredAnswers.filter(x => x.ID != '0' && !isNaN(x[key])).forEach(el => { values.push(el[key]); });
|
|
2489
|
+
this.filteredAnswers.filter(x => x.ID != '0' && !isNaN(x[key])).forEach(el => { values.push(parseInt(el[key])); });
|
|
2490
2490
|
aggrCol[key] = this.standardDeviation(values);
|
|
2491
2491
|
}
|
|
2492
2492
|
else {
|