@eqproject/eqp-dynamic-module 2.3.27 → 2.3.28
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/eqp-dynamic-module.component.mjs +3 -3
- package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +2 -11
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +11 -7
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +17 -17
- package/esm2020/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.mjs +27 -8
- package/esm2020/lib/components/private/graphs/graphs.component.mjs +3 -4
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +55 -42
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +55 -42
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.d.ts +8 -2
- package/package.json +1 -1
|
@@ -45,6 +45,8 @@ import { EqpSelectModule } from '@eqproject/eqp-select';
|
|
|
45
45
|
import * as i3$2 from '@eqproject/eqp-attachments';
|
|
46
46
|
import { AttachmentType, EqpAttachmentsModule } from '@eqproject/eqp-attachments';
|
|
47
47
|
import * as i2$4 from '@angular/platform-browser';
|
|
48
|
+
import { ParamTypeEnum as ParamTypeEnum$1 } from 'projects/eqp-dynamic-module/src/lib/models/endPointConfiguration.model';
|
|
49
|
+
import * as i1$3 from 'projects/eqp-dynamic-module/src/lib/services/utilityHelper.services';
|
|
48
50
|
import * as i2$5 from '@canvasjs/angular-stockcharts';
|
|
49
51
|
import { CanvasJSAngularStockChartsModule, CanvasJSChart, CanvasJSStockChart } from '@canvasjs/angular-stockcharts';
|
|
50
52
|
import * as i8 from '@angular/material/autocomplete';
|
|
@@ -1959,16 +1961,7 @@ class NumericFieldTemplateComponent {
|
|
|
1959
1961
|
console.log("record changed", this.field.Name);
|
|
1960
1962
|
if (!this.field.Formula) {
|
|
1961
1963
|
if (this.isDirty) {
|
|
1962
|
-
|
|
1963
|
-
//console.log("field modified - original value",this.field.Name,this.record[this.field.Name],"precision",this.eqpNumericOptions.precision);
|
|
1964
|
-
this.record[this.field.Name] = this.record[this.field.Name] == 0 ? 0 : (this.record[this.field.Name] / Math.pow(10, this.eqpNumericOptions.precision)).toFixed(this.eqpNumericOptions.precision);
|
|
1965
|
-
console.log("field modified - final value", this.field.Name, this.record[this.field.Name], "precision", this.eqpNumericOptions.precision);
|
|
1966
|
-
}
|
|
1967
|
-
else {
|
|
1968
|
-
//console.log("field modified - original value",this.field.Name,this.record[this.field.Name],"precision",this.eqpNumericOptions.precision);
|
|
1969
|
-
this.record[this.field.Name] = this.record[this.field.Name] == 0 ? 0 : (this.record[this.field.Name]).toFixed(this.eqpNumericOptions.precision);
|
|
1970
|
-
console.log("field modified - final value", this.field.Name, this.record[this.field.Name], "precision", this.eqpNumericOptions.precision);
|
|
1971
|
-
}
|
|
1964
|
+
this.record[this.field.Name] = this.record[this.field.Name] == 0 ? 0 : (this.record[this.field.Name] / Math.pow(10, this.eqpNumericOptions.precision)).toFixed(this.eqpNumericOptions.precision);
|
|
1972
1965
|
console.log("setDirty OFF", this.field.Name);
|
|
1973
1966
|
this.isDirty = false;
|
|
1974
1967
|
}
|
|
@@ -2944,6 +2937,9 @@ class AddFormRecordComponent {
|
|
|
2944
2937
|
createHTMLreadableValues(record) {
|
|
2945
2938
|
this.debugLog("createHTMLreadableValues - record", record);
|
|
2946
2939
|
this.debugLog("createHTMLreadableValues - form", this.form);
|
|
2940
|
+
var formnames = new Array();
|
|
2941
|
+
this.form.Fields.forEach((field) => { formnames.push(field.Name); });
|
|
2942
|
+
this.debugLog("createHTMLreadableValues - form fields names", formnames);
|
|
2947
2943
|
// alert("continue for values?")
|
|
2948
2944
|
let outputValuesArray = this.getResponseValues(record, this.form);
|
|
2949
2945
|
this.debugLog("createHTMLreadableValues - outputValuesArray", outputValuesArray);
|
|
@@ -2977,7 +2973,7 @@ class AddFormRecordComponent {
|
|
|
2977
2973
|
// this.debugLog("(record).Values", record);
|
|
2978
2974
|
form.Fields.forEach((field) => {
|
|
2979
2975
|
try {
|
|
2980
|
-
this.debugLog("getResponseValues field", field);
|
|
2976
|
+
//this.debugLog("getResponseValues field", field);
|
|
2981
2977
|
// let foundObject = record.find(
|
|
2982
2978
|
// (obj) => obj === field.Name
|
|
2983
2979
|
// );
|
|
@@ -2987,7 +2983,7 @@ class AddFormRecordComponent {
|
|
|
2987
2983
|
// prendere la label corretta
|
|
2988
2984
|
////////////////////////////////////////////////////////////////////////////////
|
|
2989
2985
|
if (field.FieldType == FieldTypeEnum["Elenco generico"]) {
|
|
2990
|
-
if (field.Formula) {
|
|
2986
|
+
if (field.Formula != null && field.Formula) {
|
|
2991
2987
|
// aggiungo a valuepairs i valori calcolati
|
|
2992
2988
|
foundObject.ValuePairs = foundObject.ValuePairs ? foundObject.ValuePairs : {};
|
|
2993
2989
|
var temp = UtilityHelperService.EvaluateFieldFormula(field.Formula, record, null);
|
|
@@ -3001,7 +2997,7 @@ class AddFormRecordComponent {
|
|
|
3001
2997
|
}
|
|
3002
2998
|
outputValuesArray[field.Name] = field.ValuePairs[record[field.Name]];
|
|
3003
2999
|
}
|
|
3004
|
-
else if (field.ValuePairs != null && field.ValuePairs.
|
|
3000
|
+
else if (field.ValuePairs != null && field.ValuePairs.length > 0) {
|
|
3005
3001
|
// va bene così
|
|
3006
3002
|
}
|
|
3007
3003
|
else if (field.ValueString != null && field.ValueString != "") {
|
|
@@ -3009,12 +3005,13 @@ class AddFormRecordComponent {
|
|
|
3009
3005
|
field.ValuePairs = this.stringToValuePairs(field.ValueString);
|
|
3010
3006
|
}
|
|
3011
3007
|
let inverted = {};
|
|
3012
|
-
this.debugLog("(<ListValueField>foundObject).ValuePairs", field.ValuePairs);
|
|
3008
|
+
//this.debugLog("(<ListValueField>foundObject).ValuePairs", (<ListValueField>field).ValuePairs);
|
|
3009
|
+
// ValuePairs: {Si: 'Si', No: 'No'}
|
|
3013
3010
|
for (let key in field.ValuePairs) {
|
|
3014
3011
|
inverted[field.ValuePairs[key]] = key;
|
|
3015
3012
|
}
|
|
3016
3013
|
field.ValuePairs = inverted;
|
|
3017
|
-
if (record[field.Name].
|
|
3014
|
+
if (record[field.Name] != null && field.IsMultiChoiche) {
|
|
3018
3015
|
let value = "";
|
|
3019
3016
|
record[field.Name].forEach((element, i) => {
|
|
3020
3017
|
value += field.ValuePairs[element];
|
|
@@ -3025,7 +3022,7 @@ class AddFormRecordComponent {
|
|
|
3025
3022
|
else {
|
|
3026
3023
|
outputValuesArray[field.Name] = field.ValuePairs[record[field.Name]];
|
|
3027
3024
|
}
|
|
3028
|
-
console.log("outputValuesArray", outputValuesArray)
|
|
3025
|
+
//console.log("outputValuesArray", outputValuesArray)
|
|
3029
3026
|
}
|
|
3030
3027
|
else {
|
|
3031
3028
|
// this.debugLog("record[fieldName]", record[field.Name]);
|
|
@@ -3401,7 +3398,7 @@ class ListViewFormRecordComponent {
|
|
|
3401
3398
|
this.defaultListActions = this.configurations.defaultListActions;
|
|
3402
3399
|
this.showTitle = this.configurations.showTitle;
|
|
3403
3400
|
this.outCompileConfigurations = new DynamicModuleCompileConfig(this.compileConfigurations.showTitle, this.compileConfigurations.showSaveButton, this.compileConfigurations.showBackButton, this.compileConfigurations.userID, this.compileConfigurations.additionalParams, this.compileConfigurations.prefilterParams);
|
|
3404
|
-
this.debugLog("list-view - outcompileConfigurations ", this.outCompileConfigurations);
|
|
3401
|
+
//this.debugLog("list-view - outcompileConfigurations ", this.outCompileConfigurations);
|
|
3405
3402
|
this.getFormByID();
|
|
3406
3403
|
this.configureListviewButtons();
|
|
3407
3404
|
// this.outCompileConfigurations.userID;
|
|
@@ -3409,7 +3406,7 @@ class ListViewFormRecordComponent {
|
|
|
3409
3406
|
// this.configureColumns();
|
|
3410
3407
|
}
|
|
3411
3408
|
ngOnChanges(changes) {
|
|
3412
|
-
this.debugLog('ngOnChanges', changes);
|
|
3409
|
+
//this.debugLog('ngOnChanges', changes);
|
|
3413
3410
|
// Se viene modificato il valore di "ngModelInput" allora aggiorna l'input
|
|
3414
3411
|
if (changes["configurations"] != undefined &&
|
|
3415
3412
|
changes["configurations"].firstChange == false) {
|
|
@@ -3488,7 +3485,7 @@ class ListViewFormRecordComponent {
|
|
|
3488
3485
|
this.getRecordsByFormID();
|
|
3489
3486
|
}
|
|
3490
3487
|
else {
|
|
3491
|
-
this.debugLog('Records Exists', this.records);
|
|
3488
|
+
//this.debugLog('Records Exists', this.records);
|
|
3492
3489
|
this.generateAnswersArray(this.records);
|
|
3493
3490
|
}
|
|
3494
3491
|
}
|
|
@@ -3512,7 +3509,7 @@ class ListViewFormRecordComponent {
|
|
|
3512
3509
|
this.endPointConfiguration.Records.GetByFormIDEndPoint) {
|
|
3513
3510
|
// se non conosco l'utente
|
|
3514
3511
|
await this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.GetByFormIDEndPoint, dynamicModuleParams, (res) => {
|
|
3515
|
-
this.debugLog('GetByFormIDEndPoint', res)
|
|
3512
|
+
//this.debugLog('GetByFormIDEndPoint', res)
|
|
3516
3513
|
this.generateAnswersArray(res);
|
|
3517
3514
|
});
|
|
3518
3515
|
}
|
|
@@ -3534,7 +3531,7 @@ class ListViewFormRecordComponent {
|
|
|
3534
3531
|
},
|
|
3535
3532
|
];
|
|
3536
3533
|
await this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.GetAllByEntAndUserIDEndPoint, dynamicModuleParams, (res) => {
|
|
3537
|
-
this.debugLog('GetAllByEntAndUserIDEndPoint', res)
|
|
3534
|
+
//this.debugLog('GetAllByEntAndUserIDEndPoint', res)
|
|
3538
3535
|
this.generateAnswersArray(res);
|
|
3539
3536
|
});
|
|
3540
3537
|
}
|
|
@@ -3546,9 +3543,9 @@ class ListViewFormRecordComponent {
|
|
|
3546
3543
|
this.configurations.values = new Array();
|
|
3547
3544
|
this.panels = new Array();
|
|
3548
3545
|
res.forEach((r) => {
|
|
3549
|
-
//
|
|
3546
|
+
//this.debugLog("generateAnswersArray", r)
|
|
3550
3547
|
var tmpRec = new Record();
|
|
3551
|
-
//
|
|
3548
|
+
//this.debugLog("SerializedValues", r.SerializedValues)
|
|
3552
3549
|
tmpRec = JSON.parse(r.SerializedValues);
|
|
3553
3550
|
tmpRec.ID = r.ID;
|
|
3554
3551
|
tmpRec.EntID = r.EntID;
|
|
@@ -3556,7 +3553,7 @@ class ListViewFormRecordComponent {
|
|
|
3556
3553
|
tmpRec.userID = r.userID;
|
|
3557
3554
|
tmpRec.AnswerDate = r.AnswerDate;
|
|
3558
3555
|
tmpRec.HTMLreadableValues = r.HTMLreadableValues;
|
|
3559
|
-
//
|
|
3556
|
+
//this.debugLog("AdditionalParams", r.AdditionalParams)
|
|
3560
3557
|
tmpRec.AdditionalParams = r.AdditionalParams != "" && r.AdditionalParams != null ? JSON.parse(r.AdditionalParams) : "";
|
|
3561
3558
|
this.configurations.values.push(tmpRec);
|
|
3562
3559
|
var isHighlighted = false;
|
|
@@ -3576,9 +3573,9 @@ class ListViewFormRecordComponent {
|
|
|
3576
3573
|
}, 0); // refresh ui
|
|
3577
3574
|
}
|
|
3578
3575
|
togglePanel(panel, record) {
|
|
3579
|
-
this.debugLog('togglePanel')
|
|
3576
|
+
//this.debugLog('togglePanel')
|
|
3580
3577
|
if (this.defaultListViewFunction != null) {
|
|
3581
|
-
this.debugLog('defaultListViewFunction', record)
|
|
3578
|
+
//this.debugLog('defaultListViewFunction', record)
|
|
3582
3579
|
this.defaultListViewFunction(record);
|
|
3583
3580
|
return;
|
|
3584
3581
|
}
|
|
@@ -3629,7 +3626,7 @@ class ListViewFormRecordComponent {
|
|
|
3629
3626
|
* @param onlyView Se TRUE viene mostrato il componente add-form-record in sola lettura.
|
|
3630
3627
|
*/
|
|
3631
3628
|
viewOrEditRecord(record, onlyView, i) {
|
|
3632
|
-
this.debugLog('viewOrEditRecord')
|
|
3629
|
+
//this.debugLog('viewOrEditRecord')
|
|
3633
3630
|
this.loader = false;
|
|
3634
3631
|
this.onAddViewEditRecord2({ record, onlyView });
|
|
3635
3632
|
this.panelOpenState.map(() => false);
|
|
@@ -3639,7 +3636,7 @@ class ListViewFormRecordComponent {
|
|
|
3639
3636
|
viewRecord(panel, onlyView, i, ev) {
|
|
3640
3637
|
ev.preventDefault();
|
|
3641
3638
|
ev.stopPropagation();
|
|
3642
|
-
this.debugLog('viewRecord')
|
|
3639
|
+
//this.debugLog('viewRecord')
|
|
3643
3640
|
let record = panel.record;
|
|
3644
3641
|
this.visualizzaContenuto = true;
|
|
3645
3642
|
this.modificaContenuto = false;
|
|
@@ -3660,7 +3657,7 @@ class ListViewFormRecordComponent {
|
|
|
3660
3657
|
EditRecord(panel, onlyView, i, ev) {
|
|
3661
3658
|
ev.preventDefault();
|
|
3662
3659
|
ev.stopPropagation();
|
|
3663
|
-
this.debugLog('EditRecord')
|
|
3660
|
+
//this.debugLog('EditRecord')
|
|
3664
3661
|
let record = panel.record;
|
|
3665
3662
|
this.visualizzaContenuto = false;
|
|
3666
3663
|
this.modificaContenuto = true;
|
|
@@ -3690,7 +3687,7 @@ class ListViewFormRecordComponent {
|
|
|
3690
3687
|
duplicateRecord(panel, onlyView, i, ev) {
|
|
3691
3688
|
ev.preventDefault();
|
|
3692
3689
|
ev.stopPropagation();
|
|
3693
|
-
this.debugLog('duplicateRecord');
|
|
3690
|
+
//this.debugLog('duplicateRecord');
|
|
3694
3691
|
panel.record.ID = "";
|
|
3695
3692
|
this.selectedRecord = panel.record;
|
|
3696
3693
|
console.log("this.selectedRecord", this.selectedRecord);
|
|
@@ -3845,11 +3842,11 @@ class ListViewFormRecordComponent {
|
|
|
3845
3842
|
* Metodo per salvare i dati inseriti dall'utente una volta conclusa la compilazione della form.
|
|
3846
3843
|
*/
|
|
3847
3844
|
saveOrExitForm(record) {
|
|
3848
|
-
this.debugLog('list-view-form-record save', record)
|
|
3845
|
+
//this.debugLog('list-view-form-record save', record)
|
|
3849
3846
|
this.saveRecordEvent.emit(record);
|
|
3850
3847
|
}
|
|
3851
3848
|
onAfterSaveRecord(event) {
|
|
3852
|
-
this.debugLog('list-view-form-record aftersave', event)
|
|
3849
|
+
//this.debugLog('list-view-form-record aftersave', event)
|
|
3853
3850
|
this.saveRecordEvent.emit(event);
|
|
3854
3851
|
}
|
|
3855
3852
|
/**
|
|
@@ -4032,32 +4029,49 @@ class RepairFormFieldsComponent {
|
|
|
4032
4029
|
console.log(message, element);
|
|
4033
4030
|
}
|
|
4034
4031
|
}
|
|
4035
|
-
constructor() {
|
|
4032
|
+
constructor(utilityHelperService) {
|
|
4033
|
+
this.utilityHelperService = utilityHelperService;
|
|
4036
4034
|
this.debugMode = false;
|
|
4037
4035
|
// @Input() FormJSON: string;
|
|
4038
4036
|
this.onSaveJson = new EventEmitter();
|
|
4039
4037
|
}
|
|
4040
4038
|
ngOnInit() {
|
|
4041
|
-
this.
|
|
4039
|
+
this.getFormByID();
|
|
4042
4040
|
}
|
|
4043
4041
|
printTheJSONInPrettyFormat() {
|
|
4044
4042
|
var badJSON = this.configurations.FormJSON;
|
|
4045
4043
|
var parseJSON = JSON.parse(badJSON);
|
|
4046
4044
|
this.configurations.FormJSON = JSON.stringify(parseJSON, undefined, 4);
|
|
4047
4045
|
}
|
|
4046
|
+
getFormByID(id = this.formID) {
|
|
4047
|
+
const dynamicModuleParams = new Array();
|
|
4048
|
+
dynamicModuleParams.push({
|
|
4049
|
+
ParamName: "id",
|
|
4050
|
+
ParamValue: id,
|
|
4051
|
+
ParamType: ParamTypeEnum$1["Query param"],
|
|
4052
|
+
});
|
|
4053
|
+
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
|
|
4054
|
+
this.configurations.FormJSON = JSON.stringify(res.Fields);
|
|
4055
|
+
}, (err) => { });
|
|
4056
|
+
}
|
|
4048
4057
|
saveJson() {
|
|
4049
4058
|
this.onSaveJson.emit(this.configurations.FormJSON);
|
|
4050
4059
|
}
|
|
4051
4060
|
}
|
|
4052
|
-
RepairFormFieldsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RepairFormFieldsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4053
|
-
RepairFormFieldsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RepairFormFieldsComponent, selector: "repair-form-fields", inputs: { debugMode: "debugMode", configurations: "configurations" }, outputs: { onSaveJson: "onSaveJson" }, viewQueries: [{ propertyName: "formulaTextArea", first: true, predicate: ["formJson"], descendants: true }], ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-12 pt-2\">\r\n <div class=\"p-1\">\r\n <textarea name=\"formJson\" #formJson type=\"textarea\" id=\"formJson\" rows=\"50\" style=\"width: 100%\"\r\n [(ngModel)]=\"configurations.FormJSON\"></textarea>\r\n </div>\r\n </div>\r\n </div>\r\n <button (click)=\"printTheJSONInPrettyFormat()\">Formatta Json</button>\r\n <button class=\"mr-2 save \" mat-raised-button color=\"primary\" (click)=\"saveJson()\" type=\"button\">\r\n Salva\r\n</button>\r\n</div>\r\n\r\n", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
4061
|
+
RepairFormFieldsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RepairFormFieldsComponent, deps: [{ token: i1$3.UtilityHelperService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4062
|
+
RepairFormFieldsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RepairFormFieldsComponent, selector: "repair-form-fields", inputs: { debugMode: "debugMode", configurations: "configurations", formID: "formID", endPointConfiguration: "endPointConfiguration" }, outputs: { onSaveJson: "onSaveJson" }, viewQueries: [{ propertyName: "formulaTextArea", first: true, predicate: ["formJson"], descendants: true }], ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-12 pt-2\">\r\n <div class=\"p-1\">\r\n <textarea name=\"formJson\" #formJson type=\"textarea\" id=\"formJson\" rows=\"50\" style=\"width: 100%\"\r\n [(ngModel)]=\"configurations.FormJSON\"></textarea>\r\n </div>\r\n </div>\r\n </div>\r\n <button (click)=\"printTheJSONInPrettyFormat()\">Formatta Json</button>\r\n <button class=\"mr-2 save \" mat-raised-button color=\"primary\" (click)=\"saveJson()\" type=\"button\">\r\n Salva\r\n</button>\r\n</div>\r\n\r\n", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
4054
4063
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RepairFormFieldsComponent, decorators: [{
|
|
4055
4064
|
type: Component,
|
|
4056
4065
|
args: [{ selector: 'repair-form-fields', template: "<div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-12 pt-2\">\r\n <div class=\"p-1\">\r\n <textarea name=\"formJson\" #formJson type=\"textarea\" id=\"formJson\" rows=\"50\" style=\"width: 100%\"\r\n [(ngModel)]=\"configurations.FormJSON\"></textarea>\r\n </div>\r\n </div>\r\n </div>\r\n <button (click)=\"printTheJSONInPrettyFormat()\">Formatta Json</button>\r\n <button class=\"mr-2 save \" mat-raised-button color=\"primary\" (click)=\"saveJson()\" type=\"button\">\r\n Salva\r\n</button>\r\n</div>\r\n\r\n" }]
|
|
4057
|
-
}], ctorParameters: function () { return []; }, propDecorators: { debugMode: [{
|
|
4066
|
+
}], ctorParameters: function () { return [{ type: i1$3.UtilityHelperService }]; }, propDecorators: { debugMode: [{
|
|
4058
4067
|
type: Input
|
|
4059
4068
|
}], configurations: [{
|
|
4060
4069
|
type: Input
|
|
4070
|
+
}], formID: [{
|
|
4071
|
+
type: Input,
|
|
4072
|
+
args: ["formID"]
|
|
4073
|
+
}], endPointConfiguration: [{
|
|
4074
|
+
type: Input
|
|
4061
4075
|
}], onSaveJson: [{
|
|
4062
4076
|
type: Output
|
|
4063
4077
|
}], formulaTextArea: [{
|
|
@@ -5610,8 +5624,8 @@ class GraphsComponent {
|
|
|
5610
5624
|
// Azzero le coordinate
|
|
5611
5625
|
this.selectedGeneratedFields.forEach((field) => { field.Coords = new Array(); });
|
|
5612
5626
|
this.eligibleAnswers = JSON.parse(JSON.stringify(this.answers));
|
|
5613
|
-
this.minperiodS = this.datePipe.transform(this.minperiod, "YYYY-
|
|
5614
|
-
this.maxperiodS = this.datePipe.transform(this.maxperiod, "YYYY-
|
|
5627
|
+
this.minperiodS = this.datePipe.transform(this.minperiod, "YYYY-MM-dd");
|
|
5628
|
+
this.maxperiodS = this.datePipe.transform(this.maxperiod, "YYYY-MM-dd");
|
|
5615
5629
|
// Filtro minimo periodo
|
|
5616
5630
|
if (this.minperiod != null) {
|
|
5617
5631
|
this.eligibleAnswers = this.eligibleAnswers.filter(x => x.AnswerDate.split("T")[0] >= this.minperiodS);
|
|
@@ -5633,7 +5647,6 @@ class GraphsComponent {
|
|
|
5633
5647
|
});
|
|
5634
5648
|
});
|
|
5635
5649
|
setTimeout(() => { this.generated = true; }, 1000);
|
|
5636
|
-
console.log("FINAL COORDS", this.selectedGeneratedFields);
|
|
5637
5650
|
}
|
|
5638
5651
|
}
|
|
5639
5652
|
GraphsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GraphsComponent, deps: [{ token: UtilityHelperService }, { token: i6.DatePipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -6007,10 +6020,10 @@ class EqpDynamicModuleComponent {
|
|
|
6007
6020
|
}
|
|
6008
6021
|
}
|
|
6009
6022
|
EqpDynamicModuleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EqpDynamicModuleComponent, deps: [{ token: UtilityHelperService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6010
|
-
EqpDynamicModuleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: EqpDynamicModuleComponent, selector: "eqp-dynamic-module", inputs: { debugMode: "debugMode", configurations: "configurations", formID: "formID", starterViewMode: "starterViewMode", userID: "userID", showTitle: "showTitle", showBackButton: "showBackButton", showSaveButton: "showSaveButton", values: "values", FormJSON: "FormJSON", externalButtons: "externalButtons", defaultListViewFunction: "defaultListViewFunction", defaultListActions: "defaultListActions", onSaveBackToList: "onSaveBackToList", onBackTo: "onBackTo", filterResultViewMode: "filterResultViewMode", additionalParams: "additionalParams", prefilterParams: "prefilterParams", showNewSearchButton: "showNewSearchButton", answerToDuplicateId: "answerToDuplicateId", highlightFilter: "highlightFilter" }, outputs: { saveRecord: "saveRecord", deleteRecord: "deleteRecord", SaveJSON: "SaveJSON", afterFilter: "afterFilter", afterSaveRecord: "afterSaveRecord", afterDeleteRecord: "afterDeleteRecord" }, ngImport: i0, template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n\r\n<!-- [record]=\"'b3d943c0-9c01-4973-948b-7aa418634f72'\" -->\r\n<view-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.VIEW\"\r\n class=\"dynamic-module-view\"\r\n [debugMode]=\"debugMode\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [record]=\"selectedRecord.ID\"\r\n (goBackEvent)=\"onGoBack()\"\r\n>\r\n</view-form-record>\r\n\r\n<graphs\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.GRAPHS\"\r\nclass=\"dynamic-module-view\"\r\n[debugMode]=\"debugMode\"\r\n[endPointConfiguration]=\"endPointConfiguration\"\r\n[form]=\"form\"\r\n[formID]=\"formID\"\r\n[userID]=\"userID\"\r\n[configurations]=\"dynamicModuleCompileConfig\"\r\n>\r\n</graphs>\r\n\r\n<filter-form-statistic\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.FILTER\"\r\n class=\"dynamic-module-compile\"\r\n [debugMode]=\"debugMode\"\r\n [form]=\"form\"\r\n [formID]=\"formID\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n [defaultListActions]=\"defaultListActions\"\r\n [filterResultViewMode]=\"filterResultViewMode\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n (afterFilter)=\"onAfterFilter($event)\"\r\n>\r\n</filter-form-statistic>\r\n\r\n<add-form-record\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.COMPILE\"\r\n class=\"dynamic-module-compile\"\r\n [debugMode]=\"debugMode\"\r\n [form]=\"form\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n [isDuplicate]=\"isDuplicate\"\r\n\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n [additionalParams]=\"dynamicModuleCompileConfig.additionalParams\"\r\n\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n>\r\n</add-form-record>\r\n\r\n<list-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.LIST\"\r\n class=\"dynamic-module-list\"\r\n [debugMode]=\"debugMode\"\r\n [formID]=\"formID\"\r\n\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n\r\n [configurations]=\"dynamicModuleListConfig\"\r\n [externalButtons]=\"externalButtons\"\r\n\r\n (onViewRecord)=\"onViewRecord($event)\"\r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (onAfterDeleteRecord)=\"onAfterDeleteRecord($event)\"\r\n>\r\n</list-form-record>\r\n\r\n<repair-form-fields\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.REPAIR\"\r\n class=\"dynamic-module-repair\"\r\n [debugMode]=\"debugMode\"\r\n\r\n [configurations]=\"dynamicModuleRepairConfig\"\r\n\r\n (onSaveJson)=\"onSaveJson($event)\"\r\n>\r\n</repair-form-fields>\r\n\r\n<list-view-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.LISTWIEW\"\r\n class=\"dynamic-module-list-view\"\r\n [debugMode]=\"debugMode\"\r\n [configurations]=\"dynamicModuleListConfig\"\r\n [compileConfigurations]=\"dynamicModuleCompileConfig\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [formID]=\"formID\"\r\n [userID]=\"userID\"\r\n [highlightFilter]=\"highlightFilter\"\r\n [defaultListViewFunction]=\"defaultListViewFunction\"\r\n [externalButtons]=\"externalButtons\"\r\n [onlyView]=\"!defaultListActions.edit\"\r\n\r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n >\r\n</list-view-form-record>\r\n", styles: ["::ng-deep mat-form-field{width:100%}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ListFormRecordComponent, selector: "list-form-record", inputs: ["debugMode", "configurations", "endPointConfiguration", "formID", "form", "externalButtons"], outputs: ["onViewRecord", "onAddViewEditRecord", "onDeleteRecord", "onAfterDeleteRecord"] }, { kind: "component", type: ListViewFormRecordComponent, selector: "list-view-form-record", inputs: ["debugMode", "configurations", "compileConfigurations", "endPointConfiguration", "userID", "formID", "form", "defaultListViewFunction", "externalButtons", "onlyView", "records", "highlightFilter"], outputs: ["onAddViewEditRecord", "onDeleteRecord", "saveRecordEvent", "afterSaveRecordEvent"] }, { kind: "component", type: AddFormRecordComponent, selector: "add-form-record", inputs: ["debugMode", "configurations", "endPointConfiguration", "userID", "formID", "form", "record", "onlyView", "isDuplicate", "additionalParams"], outputs: ["saveRecordEvent", "afterSaveRecordEvent"] }, { kind: "component", type: ViewFormRecordComponent, selector: "view-form-record", inputs: ["debugMode", "endPointConfiguration", "record", "showBackButton"], outputs: ["goBackEvent"] }, { kind: "component", type: SpinnerComponent, selector: "eqp-dynamic-module-spinner" }, { kind: "component", type: RepairFormFieldsComponent, selector: "repair-form-fields", inputs: ["debugMode", "configurations"], outputs: ["onSaveJson"] }, { kind: "component", type: FilterFormStatisticComponent, selector: "filter-form-statistic", inputs: ["debugMode", "configurations", "endPointConfiguration", "userID", "externalButtons", "formID", "form", "record", "onlyView", "defaultListActions", "filterResultViewMode"], outputs: ["saveRecordEvent", "afterSaveRecordEvent", "afterFilter"] }, { kind: "component", type: GraphsComponent, selector: "graphs", inputs: ["debugMode", "configurations", "endPointConfiguration", "userID", "formID", "form"] }] });
|
|
6023
|
+
EqpDynamicModuleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: EqpDynamicModuleComponent, selector: "eqp-dynamic-module", inputs: { debugMode: "debugMode", configurations: "configurations", formID: "formID", starterViewMode: "starterViewMode", userID: "userID", showTitle: "showTitle", showBackButton: "showBackButton", showSaveButton: "showSaveButton", values: "values", FormJSON: "FormJSON", externalButtons: "externalButtons", defaultListViewFunction: "defaultListViewFunction", defaultListActions: "defaultListActions", onSaveBackToList: "onSaveBackToList", onBackTo: "onBackTo", filterResultViewMode: "filterResultViewMode", additionalParams: "additionalParams", prefilterParams: "prefilterParams", showNewSearchButton: "showNewSearchButton", answerToDuplicateId: "answerToDuplicateId", highlightFilter: "highlightFilter" }, outputs: { saveRecord: "saveRecord", deleteRecord: "deleteRecord", SaveJSON: "SaveJSON", afterFilter: "afterFilter", afterSaveRecord: "afterSaveRecord", afterDeleteRecord: "afterDeleteRecord" }, ngImport: i0, template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n\r\n<!-- [record]=\"'b3d943c0-9c01-4973-948b-7aa418634f72'\" -->\r\n<view-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.VIEW\"\r\n class=\"dynamic-module-view\"\r\n [debugMode]=\"debugMode\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [record]=\"selectedRecord.ID\"\r\n (goBackEvent)=\"onGoBack()\"\r\n>\r\n</view-form-record>\r\n\r\n<graphs\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.GRAPHS\"\r\nclass=\"dynamic-module-view\"\r\n[debugMode]=\"debugMode\"\r\n[endPointConfiguration]=\"endPointConfiguration\"\r\n[form]=\"form\"\r\n[formID]=\"formID\"\r\n[userID]=\"userID\"\r\n[configurations]=\"dynamicModuleCompileConfig\"\r\n>\r\n</graphs>\r\n\r\n<filter-form-statistic\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.FILTER\"\r\n class=\"dynamic-module-compile\"\r\n [debugMode]=\"debugMode\"\r\n [form]=\"form\"\r\n [formID]=\"formID\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n [defaultListActions]=\"defaultListActions\"\r\n [filterResultViewMode]=\"filterResultViewMode\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n (afterFilter)=\"onAfterFilter($event)\"\r\n>\r\n</filter-form-statistic>\r\n\r\n<add-form-record\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.COMPILE\"\r\n class=\"dynamic-module-compile\"\r\n [debugMode]=\"debugMode\"\r\n [form]=\"form\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n [isDuplicate]=\"isDuplicate\"\r\n\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n [additionalParams]=\"dynamicModuleCompileConfig.additionalParams\"\r\n\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n>\r\n</add-form-record>\r\n\r\n<list-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.LIST\"\r\n class=\"dynamic-module-list\"\r\n [debugMode]=\"debugMode\"\r\n [formID]=\"formID\"\r\n\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n\r\n [configurations]=\"dynamicModuleListConfig\"\r\n [externalButtons]=\"externalButtons\"\r\n\r\n (onViewRecord)=\"onViewRecord($event)\"\r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (onAfterDeleteRecord)=\"onAfterDeleteRecord($event)\"\r\n>\r\n</list-form-record>\r\n\r\n<repair-form-fields\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.REPAIR\"\r\n class=\"dynamic-module-repair\"\r\n [debugMode]=\"debugMode\"\r\n [formID]=\"formID\"\r\n\r\n [configurations]=\"dynamicModuleRepairConfig\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n\r\n (onSaveJson)=\"onSaveJson($event)\"\r\n>\r\n</repair-form-fields>\r\n\r\n<list-view-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.LISTWIEW\"\r\n class=\"dynamic-module-list-view\"\r\n [debugMode]=\"debugMode\"\r\n [configurations]=\"dynamicModuleListConfig\"\r\n [compileConfigurations]=\"dynamicModuleCompileConfig\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [formID]=\"formID\"\r\n [userID]=\"userID\"\r\n [highlightFilter]=\"highlightFilter\"\r\n [defaultListViewFunction]=\"defaultListViewFunction\"\r\n [externalButtons]=\"externalButtons\"\r\n [onlyView]=\"!defaultListActions.edit\"\r\n\r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n >\r\n</list-view-form-record>\r\n", styles: ["::ng-deep mat-form-field{width:100%}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ListFormRecordComponent, selector: "list-form-record", inputs: ["debugMode", "configurations", "endPointConfiguration", "formID", "form", "externalButtons"], outputs: ["onViewRecord", "onAddViewEditRecord", "onDeleteRecord", "onAfterDeleteRecord"] }, { kind: "component", type: ListViewFormRecordComponent, selector: "list-view-form-record", inputs: ["debugMode", "configurations", "compileConfigurations", "endPointConfiguration", "userID", "formID", "form", "defaultListViewFunction", "externalButtons", "onlyView", "records", "highlightFilter"], outputs: ["onAddViewEditRecord", "onDeleteRecord", "saveRecordEvent", "afterSaveRecordEvent"] }, { kind: "component", type: AddFormRecordComponent, selector: "add-form-record", inputs: ["debugMode", "configurations", "endPointConfiguration", "userID", "formID", "form", "record", "onlyView", "isDuplicate", "additionalParams"], outputs: ["saveRecordEvent", "afterSaveRecordEvent"] }, { kind: "component", type: ViewFormRecordComponent, selector: "view-form-record", inputs: ["debugMode", "endPointConfiguration", "record", "showBackButton"], outputs: ["goBackEvent"] }, { kind: "component", type: SpinnerComponent, selector: "eqp-dynamic-module-spinner" }, { kind: "component", type: RepairFormFieldsComponent, selector: "repair-form-fields", inputs: ["debugMode", "configurations", "formID", "endPointConfiguration"], outputs: ["onSaveJson"] }, { kind: "component", type: FilterFormStatisticComponent, selector: "filter-form-statistic", inputs: ["debugMode", "configurations", "endPointConfiguration", "userID", "externalButtons", "formID", "form", "record", "onlyView", "defaultListActions", "filterResultViewMode"], outputs: ["saveRecordEvent", "afterSaveRecordEvent", "afterFilter"] }, { kind: "component", type: GraphsComponent, selector: "graphs", inputs: ["debugMode", "configurations", "endPointConfiguration", "userID", "formID", "form"] }] });
|
|
6011
6024
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EqpDynamicModuleComponent, decorators: [{
|
|
6012
6025
|
type: Component,
|
|
6013
|
-
args: [{ selector: "eqp-dynamic-module", template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n\r\n<!-- [record]=\"'b3d943c0-9c01-4973-948b-7aa418634f72'\" -->\r\n<view-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.VIEW\"\r\n class=\"dynamic-module-view\"\r\n [debugMode]=\"debugMode\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [record]=\"selectedRecord.ID\"\r\n (goBackEvent)=\"onGoBack()\"\r\n>\r\n</view-form-record>\r\n\r\n<graphs\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.GRAPHS\"\r\nclass=\"dynamic-module-view\"\r\n[debugMode]=\"debugMode\"\r\n[endPointConfiguration]=\"endPointConfiguration\"\r\n[form]=\"form\"\r\n[formID]=\"formID\"\r\n[userID]=\"userID\"\r\n[configurations]=\"dynamicModuleCompileConfig\"\r\n>\r\n</graphs>\r\n\r\n<filter-form-statistic\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.FILTER\"\r\n class=\"dynamic-module-compile\"\r\n [debugMode]=\"debugMode\"\r\n [form]=\"form\"\r\n [formID]=\"formID\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n [defaultListActions]=\"defaultListActions\"\r\n [filterResultViewMode]=\"filterResultViewMode\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n (afterFilter)=\"onAfterFilter($event)\"\r\n>\r\n</filter-form-statistic>\r\n\r\n<add-form-record\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.COMPILE\"\r\n class=\"dynamic-module-compile\"\r\n [debugMode]=\"debugMode\"\r\n [form]=\"form\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n [isDuplicate]=\"isDuplicate\"\r\n\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n [additionalParams]=\"dynamicModuleCompileConfig.additionalParams\"\r\n\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n>\r\n</add-form-record>\r\n\r\n<list-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.LIST\"\r\n class=\"dynamic-module-list\"\r\n [debugMode]=\"debugMode\"\r\n [formID]=\"formID\"\r\n\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n\r\n [configurations]=\"dynamicModuleListConfig\"\r\n [externalButtons]=\"externalButtons\"\r\n\r\n (onViewRecord)=\"onViewRecord($event)\"\r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (onAfterDeleteRecord)=\"onAfterDeleteRecord($event)\"\r\n>\r\n</list-form-record>\r\n\r\n<repair-form-fields\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.REPAIR\"\r\n class=\"dynamic-module-repair\"\r\n [debugMode]=\"debugMode\"\r\n\r\n [configurations]=\"dynamicModuleRepairConfig\"\r\n\r\n (onSaveJson)=\"onSaveJson($event)\"\r\n>\r\n</repair-form-fields>\r\n\r\n<list-view-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.LISTWIEW\"\r\n class=\"dynamic-module-list-view\"\r\n [debugMode]=\"debugMode\"\r\n [configurations]=\"dynamicModuleListConfig\"\r\n [compileConfigurations]=\"dynamicModuleCompileConfig\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [formID]=\"formID\"\r\n [userID]=\"userID\"\r\n [highlightFilter]=\"highlightFilter\"\r\n [defaultListViewFunction]=\"defaultListViewFunction\"\r\n [externalButtons]=\"externalButtons\"\r\n [onlyView]=\"!defaultListActions.edit\"\r\n\r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n >\r\n</list-view-form-record>\r\n", styles: ["::ng-deep mat-form-field{width:100%}\n"] }]
|
|
6026
|
+
args: [{ selector: "eqp-dynamic-module", template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n\r\n<!-- [record]=\"'b3d943c0-9c01-4973-948b-7aa418634f72'\" -->\r\n<view-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.VIEW\"\r\n class=\"dynamic-module-view\"\r\n [debugMode]=\"debugMode\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [record]=\"selectedRecord.ID\"\r\n (goBackEvent)=\"onGoBack()\"\r\n>\r\n</view-form-record>\r\n\r\n<graphs\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.GRAPHS\"\r\nclass=\"dynamic-module-view\"\r\n[debugMode]=\"debugMode\"\r\n[endPointConfiguration]=\"endPointConfiguration\"\r\n[form]=\"form\"\r\n[formID]=\"formID\"\r\n[userID]=\"userID\"\r\n[configurations]=\"dynamicModuleCompileConfig\"\r\n>\r\n</graphs>\r\n\r\n<filter-form-statistic\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.FILTER\"\r\n class=\"dynamic-module-compile\"\r\n [debugMode]=\"debugMode\"\r\n [form]=\"form\"\r\n [formID]=\"formID\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n [defaultListActions]=\"defaultListActions\"\r\n [filterResultViewMode]=\"filterResultViewMode\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n (afterFilter)=\"onAfterFilter($event)\"\r\n>\r\n</filter-form-statistic>\r\n\r\n<add-form-record\r\n*ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.COMPILE\"\r\n class=\"dynamic-module-compile\"\r\n [debugMode]=\"debugMode\"\r\n [form]=\"form\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n [isDuplicate]=\"isDuplicate\"\r\n\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [userID]=\"userID\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n [additionalParams]=\"dynamicModuleCompileConfig.additionalParams\"\r\n\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n>\r\n</add-form-record>\r\n\r\n<list-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.LIST\"\r\n class=\"dynamic-module-list\"\r\n [debugMode]=\"debugMode\"\r\n [formID]=\"formID\"\r\n\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n\r\n [configurations]=\"dynamicModuleListConfig\"\r\n [externalButtons]=\"externalButtons\"\r\n\r\n (onViewRecord)=\"onViewRecord($event)\"\r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (onAfterDeleteRecord)=\"onAfterDeleteRecord($event)\"\r\n>\r\n</list-form-record>\r\n\r\n<repair-form-fields\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.REPAIR\"\r\n class=\"dynamic-module-repair\"\r\n [debugMode]=\"debugMode\"\r\n [formID]=\"formID\"\r\n\r\n [configurations]=\"dynamicModuleRepairConfig\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n\r\n (onSaveJson)=\"onSaveJson($event)\"\r\n>\r\n</repair-form-fields>\r\n\r\n<list-view-form-record\r\n *ngIf=\"loader && viewMode == dynamicModuleViewModeEnum.LISTWIEW\"\r\n class=\"dynamic-module-list-view\"\r\n [debugMode]=\"debugMode\"\r\n [configurations]=\"dynamicModuleListConfig\"\r\n [compileConfigurations]=\"dynamicModuleCompileConfig\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [formID]=\"formID\"\r\n [userID]=\"userID\"\r\n [highlightFilter]=\"highlightFilter\"\r\n [defaultListViewFunction]=\"defaultListViewFunction\"\r\n [externalButtons]=\"externalButtons\"\r\n [onlyView]=\"!defaultListActions.edit\"\r\n\r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n (afterSaveRecordEvent)=\"onAfterSaveRecord($event)\"\r\n >\r\n</list-view-form-record>\r\n", styles: ["::ng-deep mat-form-field{width:100%}\n"] }]
|
|
6014
6027
|
}], ctorParameters: function () { return [{ type: UtilityHelperService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { debugMode: [{
|
|
6015
6028
|
type: Input
|
|
6016
6029
|
}], configurations: [{
|