@eqproject/eqp-dynamic-module 2.0.3 → 2.0.5

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.
Files changed (29) hide show
  1. package/README.md +1 -1
  2. package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +43 -20
  3. package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +3 -3
  4. package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +3 -3
  5. package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +5 -4
  6. package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +5 -5
  7. package/esm2020/lib/models/DynamicModuleViewModeEnum.mjs +8 -0
  8. package/esm2020/lib/models/dynamicModuleCompileConfig.model.mjs +3 -3
  9. package/esm2020/lib/models/dynamicModuleGeneralConfig.model.mjs +2 -2
  10. package/esm2020/lib/models/dynamicModuleListConfig.model.mjs +3 -7
  11. package/esm2020/lib/models/dynamicModuleListFormRecordActionsDefault.mjs +10 -0
  12. package/esm2020/public-api.mjs +2 -1
  13. package/fesm2015/eqproject-eqp-dynamic-module.mjs +71 -49
  14. package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
  15. package/fesm2020/eqproject-eqp-dynamic-module.mjs +71 -49
  16. package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
  17. package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +9 -6
  18. package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +1 -0
  19. package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +2 -2
  20. package/lib/models/DynamicModuleViewModeEnum.d.ts +6 -0
  21. package/lib/models/dynamicModuleCompileConfig.model.d.ts +5 -5
  22. package/lib/models/dynamicModuleListConfig.model.d.ts +3 -3
  23. package/lib/models/dynamicModuleListFormRecordActionsDefault.d.ts +8 -0
  24. package/package.json +1 -1
  25. package/public-api.d.ts +1 -0
  26. package/esm2020/lib/models/DynamicMoDuleViewModeEnum.mjs +0 -7
  27. package/esm2020/lib/models/listFormRecordActionsDefault.mjs +0 -9
  28. package/lib/models/DynamicMoDuleViewModeEnum.d.ts +0 -5
  29. package/lib/models/listFormRecordActionsDefault.d.ts +0 -7
@@ -74,16 +74,17 @@ class ContextUser {
74
74
  }
75
75
 
76
76
  class DynamicModuleCompileConfig {
77
- constructor(showTitle = true, userMode = true, showSaveButton = true, userID = "0") {
77
+ constructor(showTitle = true, showSaveButton = true, showBackButton = true, userID = "0") {
78
78
  this.showTitle = showTitle;
79
- this.userMode = userMode;
80
79
  this.showSaveButton = showSaveButton;
80
+ this.showBackButton = showBackButton;
81
81
  this.userID = userID;
82
82
  }
83
83
  }
84
84
 
85
- class listFormRecordActionsDefault {
86
- constructor(view = true, edit = true, duplicate = true, del = true) {
85
+ class DynamicModuleListFormRecordActionsDefault {
86
+ constructor(add = true, view = true, edit = true, duplicate = true, del = true) {
87
+ this.add = add;
87
88
  this.view = view;
88
89
  this.edit = edit;
89
90
  this.duplicate = duplicate;
@@ -92,15 +93,11 @@ class listFormRecordActionsDefault {
92
93
  }
93
94
 
94
95
  class DynamicModuleListConfig {
95
- constructor(showTitle = true, values = null, defaultListActions = new listFormRecordActionsDefault()) {
96
+ constructor(showTitle = true, values = null, defaultListActions = new DynamicModuleListFormRecordActionsDefault()) {
96
97
  /**
97
98
  * Show/Hide module name in COMPILE/LIST
98
99
  */
99
100
  this.showTitle = true;
100
- /**
101
- * Lista delle azioni di default da mostrare per visualizzare/modificare/duplicare/eliminare in LIST MODE
102
- */
103
- this.defaultListActions = new listFormRecordActionsDefault();
104
101
  this.showTitle = showTitle;
105
102
  this.values = values;
106
103
  this.defaultListActions = defaultListActions;
@@ -117,12 +114,13 @@ class DynamicModuleRepairConfig {
117
114
  }
118
115
  }
119
116
 
120
- var DynamicMoDuleViewModeEnum$1;
121
- (function (DynamicMoDuleViewModeEnum) {
122
- DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
123
- DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["LIST"] = 2] = "LIST";
124
- DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
125
- })(DynamicMoDuleViewModeEnum$1 || (DynamicMoDuleViewModeEnum$1 = {}));
117
+ var DynamicModuleViewModeEnum$1;
118
+ (function (DynamicModuleViewModeEnum) {
119
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["NONE"] = 0] = "NONE";
120
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
121
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["LIST"] = 2] = "LIST";
122
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
123
+ })(DynamicModuleViewModeEnum$1 || (DynamicModuleViewModeEnum$1 = {}));
126
124
 
127
125
  class EndPointConfiguration {
128
126
  }
@@ -833,7 +831,7 @@ var DateTimeTypeEnum;
833
831
 
834
832
  class ListFormRecordComponent {
835
833
  constructor() {
836
- this.defaultListActions = new listFormRecordActionsDefault();
834
+ this.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
837
835
  this.showTitle = true;
838
836
  this.columns = new Array();
839
837
  this.onAddViewEditRecord = new EventEmitter();
@@ -1032,10 +1030,10 @@ class ListFormRecordComponent {
1032
1030
  }
1033
1031
  }
1034
1032
  ListFormRecordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ListFormRecordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1035
- ListFormRecordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: ListFormRecordComponent, selector: "list-form-record", inputs: { configurations: "configurations", form: "form" }, outputs: { onAddViewEditRecord: "onAddViewEditRecord", onDeleteRecord: "onDeleteRecord", onDuplicateRecord: "onDuplicateRecord" }, viewQueries: [{ propertyName: "tableRecords", first: true, predicate: ["tableRecords"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"row eqp-dynamic-module-title\">\r\n <div class=\"col-md-6\">\r\n <h4 *ngIf=\"showTitle\"><b>Elenco {{form.Name}}</b></h4>\r\n </div>\r\n <div class=\"col-md-6 text-right\">\r\n <button class=\"btn btn-primary\" mat-raised-button color=\"primary\" type=\"button\" (click)=\"onAddViewEditRecord.emit(null)\">\r\n <mat-icon>add</mat-icon>\r\n <span style=\"margin-left: 10px;\">Aggiungi</span>\r\n </button>\r\n </div>\r\n</div>\r\n\r\n\r\n<eqp-table #tableRecords [data]=\"configurations.values\" [columns]=\"columns\"></eqp-table>", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}\n"], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.EqpTableComponent, selector: "eqp-table" }] });
1033
+ ListFormRecordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: ListFormRecordComponent, selector: "list-form-record", inputs: { configurations: "configurations", form: "form" }, outputs: { onAddViewEditRecord: "onAddViewEditRecord", onDeleteRecord: "onDeleteRecord", onDuplicateRecord: "onDuplicateRecord" }, viewQueries: [{ propertyName: "tableRecords", first: true, predicate: ["tableRecords"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"row eqp-dynamic-module-title\">\r\n <div class=\"col-md-6\">\r\n <h4 *ngIf=\"showTitle\"><b>Elenco {{form.Name}}</b></h4>\r\n </div>\r\n <div class=\"col-md-6 text-right\" *ngIf=\"defaultListActions.add\">\r\n <button class=\"btn btn-primary\" mat-raised-button color=\"primary\" type=\"button\" (click)=\"onAddViewEditRecord.emit(null)\">\r\n <mat-icon>add</mat-icon>\r\n <span style=\"margin-left: 10px;\">Aggiungi</span>\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<eqp-table #tableRecords [data]=\"configurations.values\" [columns]=\"columns\"></eqp-table>", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}\n"], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.EqpTableComponent, selector: "eqp-table" }] });
1036
1034
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ListFormRecordComponent, decorators: [{
1037
1035
  type: Component,
1038
- args: [{ selector: 'list-form-record', template: "<div class=\"row eqp-dynamic-module-title\">\r\n <div class=\"col-md-6\">\r\n <h4 *ngIf=\"showTitle\"><b>Elenco {{form.Name}}</b></h4>\r\n </div>\r\n <div class=\"col-md-6 text-right\">\r\n <button class=\"btn btn-primary\" mat-raised-button color=\"primary\" type=\"button\" (click)=\"onAddViewEditRecord.emit(null)\">\r\n <mat-icon>add</mat-icon>\r\n <span style=\"margin-left: 10px;\">Aggiungi</span>\r\n </button>\r\n </div>\r\n</div>\r\n\r\n\r\n<eqp-table #tableRecords [data]=\"configurations.values\" [columns]=\"columns\"></eqp-table>", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}\n"] }]
1036
+ args: [{ selector: 'list-form-record', template: "<div class=\"row eqp-dynamic-module-title\">\r\n <div class=\"col-md-6\">\r\n <h4 *ngIf=\"showTitle\"><b>Elenco {{form.Name}}</b></h4>\r\n </div>\r\n <div class=\"col-md-6 text-right\" *ngIf=\"defaultListActions.add\">\r\n <button class=\"btn btn-primary\" mat-raised-button color=\"primary\" type=\"button\" (click)=\"onAddViewEditRecord.emit(null)\">\r\n <mat-icon>add</mat-icon>\r\n <span style=\"margin-left: 10px;\">Aggiungi</span>\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<eqp-table #tableRecords [data]=\"configurations.values\" [columns]=\"columns\"></eqp-table>", styles: ["::ng-deep .error-color{color:var(--danger)}::ng-deep .success-color{color:var(--success)}\n"] }]
1039
1037
  }], ctorParameters: function () { return []; }, propDecorators: { configurations: [{
1040
1038
  type: Input
1041
1039
  }], form: [{
@@ -2069,7 +2067,7 @@ class DynamicModuleFieldFixComponent {
2069
2067
  ngOnInit() {
2070
2068
  this.configList.values = this.record[this.field.Name];
2071
2069
  this.configList.showTitle = true;
2072
- this.configList.defaultListActions = new listFormRecordActionsDefault();
2070
+ this.configList.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
2073
2071
  }
2074
2072
  /**
2075
2073
  * Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
@@ -2178,6 +2176,7 @@ class AddFormRecordComponent {
2178
2176
  this.form = new Form();
2179
2177
  this.showTitle = true;
2180
2178
  this.showSaveButton = true;
2179
+ this.showBackButton = true;
2181
2180
  this.userMode = true;
2182
2181
  this.fieldGroups = {};
2183
2182
  this.FormScalarTypeEnum = FormScalarTypeEnum;
@@ -2187,7 +2186,7 @@ class AddFormRecordComponent {
2187
2186
  ngOnInit() {
2188
2187
  this.showTitle = this.configurations.showTitle;
2189
2188
  this.showSaveButton = this.configurations.showSaveButton;
2190
- this.userMode = this.configurations.userMode;
2189
+ this.showBackButton = this.configurations.showBackButton;
2191
2190
  if (this.record == null) {
2192
2191
  this.record = new Record();
2193
2192
  }
@@ -2266,10 +2265,10 @@ class AddFormRecordComponent {
2266
2265
  }
2267
2266
  }
2268
2267
  AddFormRecordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: AddFormRecordComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: UtilityHelperService }], target: i0.ɵɵFactoryTarget.Component });
2269
- AddFormRecordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: AddFormRecordComponent, selector: "add-form-record", inputs: { configurations: "configurations", form: "form", record: "record", onlyView: "onlyView" }, outputs: { saveRecordEvent: "saveRecordEvent" }, viewQueries: [{ propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }], ngImport: i0, template: "<div class=\"row eqp-dynamic-module-title\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n</div>\r\n\r\n<form [formGroup]=\"formForm\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice\" \r\n [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\">\r\n </ng-container>\r\n\r\n <!-- VISUALIZZAZIONE A STEPPER -->\r\n <mat-horizontal-stepper linear *ngIf=\"form.FormScalarType == FormScalarTypeEnum['A step']\">\r\n <mat-step *ngFor=\"let group of form.FormFieldsGroups\">\r\n <ng-template matStepLabel>\r\n {{group.Name}}\r\n </ng-template>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-step>\r\n </mat-horizontal-stepper>\r\n\r\n <!-- VISUALIZZAZIONE A TAB -->\r\n <mat-tab-group *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In tab']\">\r\n <mat-tab *ngFor=\"let group of form.FormFieldsGroups\" [label]=\"group.Name\">\r\n <div class=\"mt-3\">\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n <!-- VISUALIZZAZIONE AD ACCORDION -->\r\n <mat-accordion multi *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In accordion']\">\r\n <mat-expansion-panel *ngFor=\"let group of form.FormFieldsGroups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{group.Name}}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n</form>\r\n\r\n<div class=\"row mt-2\" *ngIf=\"userMode\">\r\n <div class=\"col-sm-12 text-right\">\r\n <button class=\"mr-2\" mat-raised-button type=\"button\"\r\n (click)=\"saveOrExitForm(true)\">\r\n Annulla\r\n </button>\r\n <button class=\"mr-2\" mat-raised-button color=\"primary\" type=\"button\"\r\n *ngIf=\"showSaveButton\"\r\n (click)=\"saveOrExitForm(false)\"\r\n [disabled]=\"formForm.invalid || formForm.disabled\">\r\n Salva\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<!-- TEMPLATE PER LA VISUALIZZAZIONE DEI CAMPI DELLA FORM -->\r\n<ng-template #fieldTemplates let-fields='fields'>\r\n <div class=\"row\">\r\n <div class=\"mt-2\" \r\n *ngFor=\"let field of fields\" \r\n [hidden]=\"!field.InListView\" \r\n [ngClass]=\"utilityService.getFieldSyleClass(field)\">\r\n <dynamic-module-field-fix #fieldTemplate \r\n [field]=\"field\" \r\n [form]=\"form\" \r\n [record]=\"record\"\r\n (recordChange)=\"onRecordChange()\">\r\n </dynamic-module-field-fix>\r\n </div>\r\n </div>\r\n</ng-template>", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i9.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i9.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["selectedIndex", "disableRipple", "color", "labelPosition", "headerPosition", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "component", type: i4$3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { kind: "component", type: i4$3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "directive", type: i5$1.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i5$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: DynamicModuleFieldFixComponent, selector: "dynamic-module-field-fix", inputs: ["field", "form", "record"], outputs: ["recordChange"] }] });
2268
+ AddFormRecordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: AddFormRecordComponent, selector: "add-form-record", inputs: { configurations: "configurations", form: "form", record: "record", onlyView: "onlyView" }, outputs: { saveRecordEvent: "saveRecordEvent" }, viewQueries: [{ propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }], ngImport: i0, template: "<div class=\"row eqp-dynamic-module-title\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n</div>\r\n\r\n<form [formGroup]=\"formForm\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice\" \r\n [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\">\r\n </ng-container>\r\n\r\n <!-- VISUALIZZAZIONE A STEPPER -->\r\n <mat-horizontal-stepper linear *ngIf=\"form.FormScalarType == FormScalarTypeEnum['A step']\">\r\n <mat-step *ngFor=\"let group of form.FormFieldsGroups\">\r\n <ng-template matStepLabel>\r\n {{group.Name}}\r\n </ng-template>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-step>\r\n </mat-horizontal-stepper>\r\n\r\n <!-- VISUALIZZAZIONE A TAB -->\r\n <mat-tab-group *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In tab']\">\r\n <mat-tab *ngFor=\"let group of form.FormFieldsGroups\" [label]=\"group.Name\">\r\n <div class=\"mt-3\">\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n <!-- VISUALIZZAZIONE AD ACCORDION -->\r\n <mat-accordion multi *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In accordion']\">\r\n <mat-expansion-panel *ngFor=\"let group of form.FormFieldsGroups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{group.Name}}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n</form>\r\n\r\n<div class=\"row mt-2\" *ngIf=\"showBackButton || showSaveButton\">\r\n <div class=\"col-sm-12 text-right\">\r\n <button class=\"mr-2\" mat-raised-button type=\"button\"\r\n *ngIf=\"showBackButton\"\r\n (click)=\"saveOrExitForm(true)\">\r\n Annulla\r\n </button>\r\n <button class=\"mr-2\" mat-raised-button color=\"primary\" type=\"button\"\r\n *ngIf=\"showSaveButton\"\r\n (click)=\"saveOrExitForm(false)\"\r\n [disabled]=\"formForm.invalid || formForm.disabled\">\r\n Salva\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<!-- TEMPLATE PER LA VISUALIZZAZIONE DEI CAMPI DELLA FORM -->\r\n<ng-template #fieldTemplates let-fields='fields'>\r\n <div class=\"row\">\r\n <div class=\"mt-2\" \r\n *ngFor=\"let field of fields\" \r\n [hidden]=\"!field.InListView\" \r\n [ngClass]=\"utilityService.getFieldSyleClass(field)\">\r\n <dynamic-module-field-fix #fieldTemplate \r\n [field]=\"field\" \r\n [form]=\"form\" \r\n [record]=\"record\"\r\n (recordChange)=\"onRecordChange()\">\r\n </dynamic-module-field-fix>\r\n </div>\r\n </div>\r\n</ng-template>", styles: [""], dependencies: [{ kind: "component", type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i9.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i9.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["selectedIndex", "disableRipple", "color", "labelPosition", "headerPosition", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "component", type: i4$3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { kind: "component", type: i4$3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "directive", type: i5$1.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i5$1.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: DynamicModuleFieldFixComponent, selector: "dynamic-module-field-fix", inputs: ["field", "form", "record"], outputs: ["recordChange"] }] });
2270
2269
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: AddFormRecordComponent, decorators: [{
2271
2270
  type: Component,
2272
- args: [{ selector: 'add-form-record', template: "<div class=\"row eqp-dynamic-module-title\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n</div>\r\n\r\n<form [formGroup]=\"formForm\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice\" \r\n [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\">\r\n </ng-container>\r\n\r\n <!-- VISUALIZZAZIONE A STEPPER -->\r\n <mat-horizontal-stepper linear *ngIf=\"form.FormScalarType == FormScalarTypeEnum['A step']\">\r\n <mat-step *ngFor=\"let group of form.FormFieldsGroups\">\r\n <ng-template matStepLabel>\r\n {{group.Name}}\r\n </ng-template>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-step>\r\n </mat-horizontal-stepper>\r\n\r\n <!-- VISUALIZZAZIONE A TAB -->\r\n <mat-tab-group *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In tab']\">\r\n <mat-tab *ngFor=\"let group of form.FormFieldsGroups\" [label]=\"group.Name\">\r\n <div class=\"mt-3\">\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n <!-- VISUALIZZAZIONE AD ACCORDION -->\r\n <mat-accordion multi *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In accordion']\">\r\n <mat-expansion-panel *ngFor=\"let group of form.FormFieldsGroups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{group.Name}}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n</form>\r\n\r\n<div class=\"row mt-2\" *ngIf=\"userMode\">\r\n <div class=\"col-sm-12 text-right\">\r\n <button class=\"mr-2\" mat-raised-button type=\"button\"\r\n (click)=\"saveOrExitForm(true)\">\r\n Annulla\r\n </button>\r\n <button class=\"mr-2\" mat-raised-button color=\"primary\" type=\"button\"\r\n *ngIf=\"showSaveButton\"\r\n (click)=\"saveOrExitForm(false)\"\r\n [disabled]=\"formForm.invalid || formForm.disabled\">\r\n Salva\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<!-- TEMPLATE PER LA VISUALIZZAZIONE DEI CAMPI DELLA FORM -->\r\n<ng-template #fieldTemplates let-fields='fields'>\r\n <div class=\"row\">\r\n <div class=\"mt-2\" \r\n *ngFor=\"let field of fields\" \r\n [hidden]=\"!field.InListView\" \r\n [ngClass]=\"utilityService.getFieldSyleClass(field)\">\r\n <dynamic-module-field-fix #fieldTemplate \r\n [field]=\"field\" \r\n [form]=\"form\" \r\n [record]=\"record\"\r\n (recordChange)=\"onRecordChange()\">\r\n </dynamic-module-field-fix>\r\n </div>\r\n </div>\r\n</ng-template>" }]
2271
+ args: [{ selector: 'add-form-record', template: "<div class=\"row eqp-dynamic-module-title\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n</div>\r\n\r\n<form [formGroup]=\"formForm\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice\" \r\n [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\">\r\n </ng-container>\r\n\r\n <!-- VISUALIZZAZIONE A STEPPER -->\r\n <mat-horizontal-stepper linear *ngIf=\"form.FormScalarType == FormScalarTypeEnum['A step']\">\r\n <mat-step *ngFor=\"let group of form.FormFieldsGroups\">\r\n <ng-template matStepLabel>\r\n {{group.Name}}\r\n </ng-template>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-step>\r\n </mat-horizontal-stepper>\r\n\r\n <!-- VISUALIZZAZIONE A TAB -->\r\n <mat-tab-group *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In tab']\">\r\n <mat-tab *ngFor=\"let group of form.FormFieldsGroups\" [label]=\"group.Name\">\r\n <div class=\"mt-3\">\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n <!-- VISUALIZZAZIONE AD ACCORDION -->\r\n <mat-accordion multi *ngIf=\"form.FormScalarType == FormScalarTypeEnum['In accordion']\">\r\n <mat-expansion-panel *ngFor=\"let group of form.FormFieldsGroups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{group.Name}}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <ng-container [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: fieldGroups[group.Name] }\">\r\n </ng-container>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n</form>\r\n\r\n<div class=\"row mt-2\" *ngIf=\"showBackButton || showSaveButton\">\r\n <div class=\"col-sm-12 text-right\">\r\n <button class=\"mr-2\" mat-raised-button type=\"button\"\r\n *ngIf=\"showBackButton\"\r\n (click)=\"saveOrExitForm(true)\">\r\n Annulla\r\n </button>\r\n <button class=\"mr-2\" mat-raised-button color=\"primary\" type=\"button\"\r\n *ngIf=\"showSaveButton\"\r\n (click)=\"saveOrExitForm(false)\"\r\n [disabled]=\"formForm.invalid || formForm.disabled\">\r\n Salva\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<!-- TEMPLATE PER LA VISUALIZZAZIONE DEI CAMPI DELLA FORM -->\r\n<ng-template #fieldTemplates let-fields='fields'>\r\n <div class=\"row\">\r\n <div class=\"mt-2\" \r\n *ngFor=\"let field of fields\" \r\n [hidden]=\"!field.InListView\" \r\n [ngClass]=\"utilityService.getFieldSyleClass(field)\">\r\n <dynamic-module-field-fix #fieldTemplate \r\n [field]=\"field\" \r\n [form]=\"form\" \r\n [record]=\"record\"\r\n (recordChange)=\"onRecordChange()\">\r\n </dynamic-module-field-fix>\r\n </div>\r\n </div>\r\n</ng-template>" }]
2273
2272
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: UtilityHelperService }]; }, propDecorators: { configurations: [{
2274
2273
  type: Input
2275
2274
  }], form: [{
@@ -2334,13 +2333,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
2334
2333
  class EqpDynamicModuleComponent {
2335
2334
  constructor(utilityHelperService) {
2336
2335
  this.utilityHelperService = utilityHelperService;
2337
- this.starterViewMode = DynamicMoDuleViewModeEnum$1.LIST;
2336
+ this.starterViewMode = DynamicModuleViewModeEnum$1.LIST;
2338
2337
  this.userID = "0";
2339
2338
  this.showTitle = true;
2340
- this.userMode = false;
2339
+ this.showBackButton = true;
2341
2340
  this.showSaveButton = true;
2342
2341
  this.values = null;
2343
2342
  this.FormJSON = "";
2343
+ this.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
2344
+ this.onSaveBackToList = false;
2344
2345
  this.context = new Context();
2345
2346
  /**
2346
2347
  * Url del server da chiamare per recuperare, salvare o eliminare i record.
@@ -2360,7 +2361,7 @@ class EqpDynamicModuleComponent {
2360
2361
  */
2361
2362
  this.endPointConfiguration = null;
2362
2363
  //@Input() form: Form = new Form();
2363
- // defaultListActions: listFormRecordActionsDefault = new listFormRecordActionsDefault();
2364
+ // defaultListActions: dynamicModuleListFormRecordActionsDefault = new dynamicModuleListFormRecordActionsDefault();
2364
2365
  // FormJSON: string = "";
2365
2366
  /**
2366
2367
  * Eventi emessi quando si salva, elimina o duplica un record
@@ -2380,13 +2381,13 @@ class EqpDynamicModuleComponent {
2380
2381
  this.form = new Form();
2381
2382
  this.lastform = new Form();
2382
2383
  this.FormTypeEnum = FormTypeEnum;
2383
- this.DynamicMoDuleViewModeEnum = DynamicMoDuleViewModeEnum$1;
2384
+ this.DynamicModuleViewModeEnum = DynamicModuleViewModeEnum$1;
2384
2385
  this.loader = false;
2385
2386
  }
2386
2387
  ngOnInit() {
2387
2388
  return __awaiter(this, void 0, void 0, function* () {
2388
- this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.userMode, this.showSaveButton, this.userID);
2389
- this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values);
2389
+ this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.showSaveButton, this.showBackButton, this.userID);
2390
+ this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values, this.defaultListActions);
2390
2391
  this.dynamicModuleRepairConfig = new DynamicModuleRepairConfig(this.FormJSON);
2391
2392
  this.context = this.configurations.context;
2392
2393
  this.baseServerUrl =
@@ -2402,14 +2403,17 @@ class EqpDynamicModuleComponent {
2402
2403
  // prende il form e imposta la viewmode corretta
2403
2404
  yield this.getFormByID();
2404
2405
  }
2405
- this.loader = true;
2406
2406
  });
2407
2407
  }
2408
2408
  ngAfterViewInit() {
2409
- if (this.starterViewMode == DynamicMoDuleViewModeEnum$1.COMPILE) {
2409
+ if (this.starterViewMode == DynamicModuleViewModeEnum$1.COMPILE) {
2410
2410
  // da vedere in getFormByID
2411
2411
  setTimeout(() => this.onAddViewEditRecord(null), 1000);
2412
2412
  }
2413
+ else {
2414
+ this.viewMode = this.starterViewMode;
2415
+ this.loader = true;
2416
+ }
2413
2417
  }
2414
2418
  getFormByID(id = this.formID) {
2415
2419
  const dynamicModuleParams = new Array();
@@ -2422,7 +2426,7 @@ class EqpDynamicModuleComponent {
2422
2426
  this.lastform = res;
2423
2427
  this.form = res;
2424
2428
  this.getRecordsByFormID();
2425
- // if (this.starterViewMode == DynamicMoDuleViewModeEnum.COMPILE) {
2429
+ // if (this.starterViewMode == DynamicModuleViewModeEnum.COMPILE) {
2426
2430
  // this.onAddViewEditRecord(null);
2427
2431
  // }
2428
2432
  // this.viewMode = this.starterViewMode;
@@ -2517,13 +2521,15 @@ class EqpDynamicModuleComponent {
2517
2521
  this.selectedRecord.ID = res.ID;
2518
2522
  this.selectedRecord.EntID = res.EntID;
2519
2523
  this.selectedRecord.userID = res.userID;
2520
- this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
2524
+ this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
2525
+ this.loader = true;
2521
2526
  });
2522
2527
  });
2523
2528
  }
2524
2529
  else {
2525
2530
  this.selectedRecord = JSON.parse(JSON.stringify(event.record));
2526
- this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
2531
+ this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
2532
+ this.loader = true;
2527
2533
  }
2528
2534
  }
2529
2535
  else {
@@ -2537,11 +2543,12 @@ class EqpDynamicModuleComponent {
2537
2543
  this.form = res;
2538
2544
  this.selectedRecord = null;
2539
2545
  this.onlyView = false;
2540
- this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
2546
+ this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
2547
+ this.loader = true;
2541
2548
  }, (err) => { });
2542
2549
  // this.selectedRecord = null;
2543
2550
  // this.onlyView = false;
2544
- // this.viewMode = DynamicMoDuleViewModeEnum.COMPILE;
2551
+ // this.viewMode = DynamicModuleViewModeEnum.COMPILE;
2545
2552
  }
2546
2553
  }
2547
2554
  /**
@@ -2571,12 +2578,22 @@ class EqpDynamicModuleComponent {
2571
2578
  this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
2572
2579
  this.getRecordsByFormID();
2573
2580
  this.afterSaveRecord.emit(event);
2574
- this.viewMode = DynamicMoDuleViewModeEnum$1.LIST;
2581
+ if (this.onSaveBackToList) {
2582
+ this.viewMode = DynamicModuleViewModeEnum$1.LIST;
2583
+ }
2584
+ else {
2585
+ this.viewMode = DynamicModuleViewModeEnum$1.NONE;
2586
+ }
2575
2587
  });
2576
2588
  }
2577
2589
  else {
2578
2590
  this.saveRecord.emit(event);
2579
- this.viewMode = DynamicMoDuleViewModeEnum$1.LIST;
2591
+ if (this.onSaveBackToList) {
2592
+ this.viewMode = DynamicModuleViewModeEnum$1.LIST;
2593
+ }
2594
+ else {
2595
+ this.viewMode = DynamicModuleViewModeEnum$1.NONE;
2596
+ }
2580
2597
  }
2581
2598
  }
2582
2599
  /**
@@ -2638,10 +2655,10 @@ class EqpDynamicModuleComponent {
2638
2655
  }
2639
2656
  }
2640
2657
  EqpDynamicModuleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: EqpDynamicModuleComponent, deps: [{ token: UtilityHelperService }], target: i0.ɵɵFactoryTarget.Component });
2641
- EqpDynamicModuleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: EqpDynamicModuleComponent, selector: "eqp-dynamic-module", inputs: { configurations: "configurations", formID: "formID", starterViewMode: "starterViewMode", userID: "userID", showTitle: "showTitle", userMode: "userMode", showSaveButton: "showSaveButton", values: "values", FormJSON: "FormJSON" }, outputs: { saveRecord: "saveRecord", deleteRecord: "deleteRecord", duplicateRecord: "duplicateRecord", SaveJSON: "SaveJSON", afterSaveRecord: "afterSaveRecord", afterDeleteRecord: "afterDeleteRecord", afterDuplicateRecord: "afterDuplicateRecord" }, ngImport: i0, template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n<add-form-record\r\n *ngIf=\"viewMode == DynamicMoDuleViewModeEnum.COMPILE\"\r\n [form]=\"form\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n>\r\n</add-form-record>\r\n\r\n<list-form-record\r\n *ngIf=\"viewMode == DynamicMoDuleViewModeEnum.LIST && dynamicModuleListConfig.values\"\r\n [form]=\"lastform\"\r\n\r\n [configurations]=\"dynamicModuleListConfig\"\r\n \r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (onDuplicateRecord)=\"onDuplicateRecord($event)\"\r\n>\r\n</list-form-record>\r\n\r\n<repair-form-fields\r\n *ngIf=\"viewMode == DynamicMoDuleViewModeEnum.REPAIR\"\r\n\r\n [configurations]=\"dynamicModuleRepairConfig\"\r\n \r\n (onSaveJson)=\"onSaveJson($event)\"\r\n>\r\n</repair-form-fields>\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: ["configurations", "form"], outputs: ["onAddViewEditRecord", "onDeleteRecord", "onDuplicateRecord"] }, { kind: "component", type: AddFormRecordComponent, selector: "add-form-record", inputs: ["configurations", "form", "record", "onlyView"], outputs: ["saveRecordEvent"] }, { kind: "component", type: SpinnerComponent, selector: "eqp-dynamic-module-spinner" }, { kind: "component", type: RepairFormFieldsComponent, selector: "repair-form-fields", inputs: ["configurations"], outputs: ["onSaveJson"] }] });
2658
+ EqpDynamicModuleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.8", type: EqpDynamicModuleComponent, selector: "eqp-dynamic-module", inputs: { configurations: "configurations", formID: "formID", starterViewMode: "starterViewMode", userID: "userID", showTitle: "showTitle", showBackButton: "showBackButton", showSaveButton: "showSaveButton", values: "values", FormJSON: "FormJSON", defaultListActions: "defaultListActions", onSaveBackToList: "onSaveBackToList" }, outputs: { saveRecord: "saveRecord", deleteRecord: "deleteRecord", duplicateRecord: "duplicateRecord", SaveJSON: "SaveJSON", afterSaveRecord: "afterSaveRecord", afterDeleteRecord: "afterDeleteRecord", afterDuplicateRecord: "afterDuplicateRecord" }, ngImport: i0, template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n<add-form-record\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.COMPILE\"\r\n [form]=\"form\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n>\r\n</add-form-record>\r\n\r\n<list-form-record\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.LIST && dynamicModuleListConfig.values\"\r\n [form]=\"lastform\"\r\n\r\n [configurations]=\"dynamicModuleListConfig\"\r\n \r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (onDuplicateRecord)=\"onDuplicateRecord($event)\"\r\n>\r\n</list-form-record>\r\n\r\n<repair-form-fields\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.REPAIR\"\r\n\r\n [configurations]=\"dynamicModuleRepairConfig\"\r\n \r\n (onSaveJson)=\"onSaveJson($event)\"\r\n>\r\n</repair-form-fields>\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: ["configurations", "form"], outputs: ["onAddViewEditRecord", "onDeleteRecord", "onDuplicateRecord"] }, { kind: "component", type: AddFormRecordComponent, selector: "add-form-record", inputs: ["configurations", "form", "record", "onlyView"], outputs: ["saveRecordEvent"] }, { kind: "component", type: SpinnerComponent, selector: "eqp-dynamic-module-spinner" }, { kind: "component", type: RepairFormFieldsComponent, selector: "repair-form-fields", inputs: ["configurations"], outputs: ["onSaveJson"] }] });
2642
2659
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: EqpDynamicModuleComponent, decorators: [{
2643
2660
  type: Component,
2644
- args: [{ selector: "eqp-dynamic-module", template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n<add-form-record\r\n *ngIf=\"viewMode == DynamicMoDuleViewModeEnum.COMPILE\"\r\n [form]=\"form\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n>\r\n</add-form-record>\r\n\r\n<list-form-record\r\n *ngIf=\"viewMode == DynamicMoDuleViewModeEnum.LIST && dynamicModuleListConfig.values\"\r\n [form]=\"lastform\"\r\n\r\n [configurations]=\"dynamicModuleListConfig\"\r\n \r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (onDuplicateRecord)=\"onDuplicateRecord($event)\"\r\n>\r\n</list-form-record>\r\n\r\n<repair-form-fields\r\n *ngIf=\"viewMode == DynamicMoDuleViewModeEnum.REPAIR\"\r\n\r\n [configurations]=\"dynamicModuleRepairConfig\"\r\n \r\n (onSaveJson)=\"onSaveJson($event)\"\r\n>\r\n</repair-form-fields>\r\n", styles: ["::ng-deep mat-form-field{width:100%}\n"] }]
2661
+ args: [{ selector: "eqp-dynamic-module", template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n<add-form-record\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.COMPILE\"\r\n [form]=\"form\"\r\n [record]=\"selectedRecord\"\r\n [onlyView]=\"onlyView\"\r\n\r\n [configurations]=\"dynamicModuleCompileConfig\"\r\n\r\n (saveRecordEvent)=\"onSaveRecord($event)\"\r\n>\r\n</add-form-record>\r\n\r\n<list-form-record\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.LIST && dynamicModuleListConfig.values\"\r\n [form]=\"lastform\"\r\n\r\n [configurations]=\"dynamicModuleListConfig\"\r\n \r\n (onAddViewEditRecord)=\"onAddViewEditRecord($event)\"\r\n (onDeleteRecord)=\"onDeleteRecord($event)\"\r\n (onDuplicateRecord)=\"onDuplicateRecord($event)\"\r\n>\r\n</list-form-record>\r\n\r\n<repair-form-fields\r\n *ngIf=\"loader && viewMode == DynamicModuleViewModeEnum.REPAIR\"\r\n\r\n [configurations]=\"dynamicModuleRepairConfig\"\r\n \r\n (onSaveJson)=\"onSaveJson($event)\"\r\n>\r\n</repair-form-fields>\r\n", styles: ["::ng-deep mat-form-field{width:100%}\n"] }]
2645
2662
  }], ctorParameters: function () { return [{ type: UtilityHelperService }]; }, propDecorators: { configurations: [{
2646
2663
  type: Input
2647
2664
  }], formID: [{
@@ -2652,7 +2669,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
2652
2669
  type: Input
2653
2670
  }], showTitle: [{
2654
2671
  type: Input
2655
- }], userMode: [{
2672
+ }], showBackButton: [{
2656
2673
  type: Input
2657
2674
  }], showSaveButton: [{
2658
2675
  type: Input
@@ -2660,6 +2677,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
2660
2677
  type: Input
2661
2678
  }], FormJSON: [{
2662
2679
  type: Input
2680
+ }], defaultListActions: [{
2681
+ type: Input
2682
+ }], onSaveBackToList: [{
2683
+ type: Input
2663
2684
  }], saveRecord: [{
2664
2685
  type: Output
2665
2686
  }], deleteRecord: [{
@@ -2886,7 +2907,7 @@ class DynamicModuleGeneralConfig {
2886
2907
  /**
2887
2908
  * imposta la modalità di lavoro del componente COMPILE/LIST/REPAIR
2888
2909
  */
2889
- // starterViewMode: DynamicMoDuleViewModeEnum = DynamicMoDuleViewModeEnum.LIST;
2910
+ // starterViewMode: DynamicModuleViewModeEnum = DynamicModuleViewModeEnum.LIST;
2890
2911
  /**
2891
2912
  * Specifica del form da visualizzare DynaForms.ID
2892
2913
  */
@@ -4699,7 +4720,7 @@ class DynamicModuleFieldComponent {
4699
4720
  ngOnInit() {
4700
4721
  this.configList.values = this.record[this.field.Name];
4701
4722
  this.configList.showTitle = true;
4702
- this.configList.defaultListActions = new listFormRecordActionsDefault();
4723
+ this.configList.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
4703
4724
  }
4704
4725
  /**
4705
4726
  * Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
@@ -4894,12 +4915,13 @@ class DynamicModuleConfig {
4894
4915
  }
4895
4916
  }
4896
4917
 
4897
- var DynamicMoDuleViewModeEnum;
4898
- (function (DynamicMoDuleViewModeEnum) {
4899
- DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
4900
- DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["LIST"] = 2] = "LIST";
4901
- DynamicMoDuleViewModeEnum[DynamicMoDuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
4902
- })(DynamicMoDuleViewModeEnum || (DynamicMoDuleViewModeEnum = {}));
4918
+ var DynamicModuleViewModeEnum;
4919
+ (function (DynamicModuleViewModeEnum) {
4920
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["NONE"] = 0] = "NONE";
4921
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
4922
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["LIST"] = 2] = "LIST";
4923
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
4924
+ })(DynamicModuleViewModeEnum || (DynamicModuleViewModeEnum = {}));
4903
4925
 
4904
4926
  /**
4905
4927
  * Rappresenta l'entità su cui vengono eseguite le operazioni di salvataggio.
@@ -4933,5 +4955,5 @@ class TextareaField extends BaseField {
4933
4955
  * Generated bundle index. Do not edit.
4934
4956
  */
4935
4957
 
4936
- export { ActionOnRecord, AddFormFieldComponent, AddFormRecordComponent, ArrayValidators, AttachmentField, AttachmentFieldTemplateComponent, AvailableFileExtensions, AvailableImageExtensions, BaseField, BaseObj, BoolPresentantioEnum, BooleanField, BooleanFieldTemplateComponent, ButtonImage, ColSpanSizesEnum, Context, ContextUser, DateField, DateFieldTemplateComponent, DateTimeTypeEnum, DynRecord, DynamicMoDuleViewModeEnum, DynamicModuleCompileConfig, DynamicModuleConfig, DynamicModuleConfiguratorConfig, DynamicModuleConfiguratorSpecificConfig, DynamicModuleFieldComponent, DynamicModuleGeneralConfig, DynamicModuleListConfig, DynamicModuleRepairConfig, EndPointConfiguration, EndPointData, EndPointDataParams, Entity, EqpDynamicModuleComponent, EqpDynamicModuleConfiguratorComponent, EqpDynamicModuleDialogService, EqpDynamicModuleModule, FieldTypeEnum, Form, FormFieldGroup, FormScalarTypeEnum, FormTypeEnum, ImageField, ImageFieldTemplateComponent, ListFormRecordComponent, ListPresentationEnum, ListValueField, ListValueFieldTemplateComponent, LookupField, NumericField, NumericFieldTemplateComponent, ParamTypeEnum, Record, RepairFormFieldsComponent, RequestMethodEnum, SpinnerService, TelRegex, TextField, TextFieldTemplateComponent, TextMaskEnum, TextareaField, TextareaFieldTemplateComponent, UrlRegex, UtilityHelperService };
4958
+ export { ActionOnRecord, AddFormFieldComponent, AddFormRecordComponent, ArrayValidators, AttachmentField, AttachmentFieldTemplateComponent, AvailableFileExtensions, AvailableImageExtensions, BaseField, BaseObj, BoolPresentantioEnum, BooleanField, BooleanFieldTemplateComponent, ButtonImage, ColSpanSizesEnum, Context, ContextUser, DateField, DateFieldTemplateComponent, DateTimeTypeEnum, DynRecord, DynamicModuleCompileConfig, DynamicModuleConfig, DynamicModuleConfiguratorConfig, DynamicModuleConfiguratorSpecificConfig, DynamicModuleFieldComponent, DynamicModuleGeneralConfig, DynamicModuleListConfig, DynamicModuleListFormRecordActionsDefault, DynamicModuleRepairConfig, DynamicModuleViewModeEnum, EndPointConfiguration, EndPointData, EndPointDataParams, Entity, EqpDynamicModuleComponent, EqpDynamicModuleConfiguratorComponent, EqpDynamicModuleDialogService, EqpDynamicModuleModule, FieldTypeEnum, Form, FormFieldGroup, FormScalarTypeEnum, FormTypeEnum, ImageField, ImageFieldTemplateComponent, ListFormRecordComponent, ListPresentationEnum, ListValueField, ListValueFieldTemplateComponent, LookupField, NumericField, NumericFieldTemplateComponent, ParamTypeEnum, Record, RepairFormFieldsComponent, RequestMethodEnum, SpinnerService, TelRegex, TextField, TextFieldTemplateComponent, TextMaskEnum, TextareaField, TextareaFieldTemplateComponent, UrlRegex, UtilityHelperService };
4937
4959
  //# sourceMappingURL=eqproject-eqp-dynamic-module.mjs.map