@eqproject/eqp-dynamic-module 2.3.4 → 2.3.6
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/list-view-form-record/list-view-form-record.component.mjs +2 -2
- package/esm2020/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +7 -5
- package/esm2020/lib/models/statistic.model.mjs +6 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +14 -8
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +14 -8
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.d.ts +2 -2
- package/lib/models/statistic.model.d.ts +4 -0
- package/package.json +2 -2
|
@@ -3308,7 +3308,7 @@ class ListViewFormRecordComponent {
|
|
|
3308
3308
|
// ].map(() => false);
|
|
3309
3309
|
this.defaultListActions = this.configurations.defaultListActions;
|
|
3310
3310
|
this.showTitle = this.configurations.showTitle;
|
|
3311
|
-
this.outCompileConfigurations = new DynamicModuleCompileConfig(this.compileConfigurations.showTitle, this.compileConfigurations.showSaveButton, this.compileConfigurations.showBackButton, this.compileConfigurations.userID);
|
|
3311
|
+
this.outCompileConfigurations = new DynamicModuleCompileConfig(this.compileConfigurations.showTitle, this.compileConfigurations.showSaveButton, this.compileConfigurations.showBackButton, this.compileConfigurations.userID, this.compileConfigurations.additionalParams);
|
|
3312
3312
|
this.debugLog("outcompileConfigurations ", this.outCompileConfigurations);
|
|
3313
3313
|
this.getFormByID();
|
|
3314
3314
|
this.configureListviewButtons();
|
|
@@ -3950,6 +3950,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3950
3950
|
args: ['formJson', { static: false }]
|
|
3951
3951
|
}] } });
|
|
3952
3952
|
|
|
3953
|
+
class Statistic {
|
|
3954
|
+
}
|
|
3955
|
+
class FilterStatistic {
|
|
3956
|
+
constructor() {
|
|
3957
|
+
this.Statistics = new Array();
|
|
3958
|
+
}
|
|
3959
|
+
}
|
|
3960
|
+
|
|
3953
3961
|
var LogicOperatorNumeric;
|
|
3954
3962
|
(function (LogicOperatorNumeric) {
|
|
3955
3963
|
LogicOperatorNumeric[LogicOperatorNumeric["="] = 1] = "=";
|
|
@@ -3986,9 +3994,6 @@ var LogicOperatorListValue;
|
|
|
3986
3994
|
LogicOperatorListValue[LogicOperatorListValue["!="] = 2] = "!=";
|
|
3987
3995
|
})(LogicOperatorListValue || (LogicOperatorListValue = {}));
|
|
3988
3996
|
|
|
3989
|
-
class Statistic {
|
|
3990
|
-
}
|
|
3991
|
-
|
|
3992
3997
|
class TextFilterTemplateComponent {
|
|
3993
3998
|
constructor(voiceservice) {
|
|
3994
3999
|
this.voiceservice = voiceservice;
|
|
@@ -4871,7 +4876,7 @@ class FilterFormStatisticComponent {
|
|
|
4871
4876
|
this.saveRecordEvent = new EventEmitter();
|
|
4872
4877
|
this.afterSaveRecordEvent = new EventEmitter();
|
|
4873
4878
|
this.afterFilter = new EventEmitter();
|
|
4874
|
-
this.filters = new
|
|
4879
|
+
this.filters = new FilterStatistic();
|
|
4875
4880
|
}
|
|
4876
4881
|
ngOnInit() {
|
|
4877
4882
|
// add può funzionare anche come modifica e come preview
|
|
@@ -4923,18 +4928,19 @@ class FilterFormStatisticComponent {
|
|
|
4923
4928
|
* Serve ad aggiornare il valore di tutti i campi che hanno una formula.
|
|
4924
4929
|
*/
|
|
4925
4930
|
onFilterChange(ev) {
|
|
4926
|
-
this.filters = this.filters.filter(x => x.key != ev.key);
|
|
4931
|
+
this.filters.Statistics = this.filters.Statistics.filter(x => x.key != ev.key);
|
|
4927
4932
|
if (ev.logicoperator != null) {
|
|
4928
|
-
this.filters.push(ev);
|
|
4933
|
+
this.filters.Statistics.push(ev);
|
|
4929
4934
|
}
|
|
4930
4935
|
}
|
|
4931
4936
|
ApplyFilter() {
|
|
4937
|
+
this.filters.AdditionalParams = this.configurations.additionalParams;
|
|
4932
4938
|
var filterParams = [
|
|
4933
4939
|
{
|
|
4934
4940
|
ParamName: "filter",
|
|
4935
4941
|
ParamValue: this.filters,
|
|
4936
4942
|
ParamType: ParamTypeEnum["In Body"],
|
|
4937
|
-
}
|
|
4943
|
+
}
|
|
4938
4944
|
];
|
|
4939
4945
|
this.utilityService.RunEndPointCall(this.endPointConfiguration.Records.ApplyFilter, filterParams, (res) => {
|
|
4940
4946
|
this.filterResults = res;
|