@eqproject/eqp-dynamic-module 2.0.3 → 2.0.4

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 +32 -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 +7 -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 +58 -49
  14. package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
  15. package/fesm2020/eqproject-eqp-dynamic-module.mjs +58 -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 +8 -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 +5 -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,12 @@ 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["COMPILE"] = 1] = "COMPILE";
120
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["LIST"] = 2] = "LIST";
121
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
122
+ })(DynamicModuleViewModeEnum$1 || (DynamicModuleViewModeEnum$1 = {}));
126
123
 
127
124
  class EndPointConfiguration {
128
125
  }
@@ -833,7 +830,7 @@ var DateTimeTypeEnum;
833
830
 
834
831
  class ListFormRecordComponent {
835
832
  constructor() {
836
- this.defaultListActions = new listFormRecordActionsDefault();
833
+ this.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
837
834
  this.showTitle = true;
838
835
  this.columns = new Array();
839
836
  this.onAddViewEditRecord = new EventEmitter();
@@ -1032,10 +1029,10 @@ class ListFormRecordComponent {
1032
1029
  }
1033
1030
  }
1034
1031
  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" }] });
1032
+ 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
1033
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ListFormRecordComponent, decorators: [{
1037
1034
  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"] }]
1035
+ 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
1036
  }], ctorParameters: function () { return []; }, propDecorators: { configurations: [{
1040
1037
  type: Input
1041
1038
  }], form: [{
@@ -2069,7 +2066,7 @@ class DynamicModuleFieldFixComponent {
2069
2066
  ngOnInit() {
2070
2067
  this.configList.values = this.record[this.field.Name];
2071
2068
  this.configList.showTitle = true;
2072
- this.configList.defaultListActions = new listFormRecordActionsDefault();
2069
+ this.configList.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
2073
2070
  }
2074
2071
  /**
2075
2072
  * Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
@@ -2178,6 +2175,7 @@ class AddFormRecordComponent {
2178
2175
  this.form = new Form();
2179
2176
  this.showTitle = true;
2180
2177
  this.showSaveButton = true;
2178
+ this.showBackButton = true;
2181
2179
  this.userMode = true;
2182
2180
  this.fieldGroups = {};
2183
2181
  this.FormScalarTypeEnum = FormScalarTypeEnum;
@@ -2187,7 +2185,7 @@ class AddFormRecordComponent {
2187
2185
  ngOnInit() {
2188
2186
  this.showTitle = this.configurations.showTitle;
2189
2187
  this.showSaveButton = this.configurations.showSaveButton;
2190
- this.userMode = this.configurations.userMode;
2188
+ this.showBackButton = this.configurations.showBackButton;
2191
2189
  if (this.record == null) {
2192
2190
  this.record = new Record();
2193
2191
  }
@@ -2266,10 +2264,10 @@ class AddFormRecordComponent {
2266
2264
  }
2267
2265
  }
2268
2266
  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"] }] });
2267
+ 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
2268
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: AddFormRecordComponent, decorators: [{
2271
2269
  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>" }]
2270
+ 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
2271
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: UtilityHelperService }]; }, propDecorators: { configurations: [{
2274
2272
  type: Input
2275
2273
  }], form: [{
@@ -2334,13 +2332,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
2334
2332
  class EqpDynamicModuleComponent {
2335
2333
  constructor(utilityHelperService) {
2336
2334
  this.utilityHelperService = utilityHelperService;
2337
- this.starterViewMode = DynamicMoDuleViewModeEnum$1.LIST;
2335
+ this.starterViewMode = DynamicModuleViewModeEnum$1.LIST;
2338
2336
  this.userID = "0";
2339
2337
  this.showTitle = true;
2340
- this.userMode = false;
2338
+ this.showBackButton = true;
2341
2339
  this.showSaveButton = true;
2342
2340
  this.values = null;
2343
2341
  this.FormJSON = "";
2342
+ this.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
2344
2343
  this.context = new Context();
2345
2344
  /**
2346
2345
  * Url del server da chiamare per recuperare, salvare o eliminare i record.
@@ -2360,7 +2359,7 @@ class EqpDynamicModuleComponent {
2360
2359
  */
2361
2360
  this.endPointConfiguration = null;
2362
2361
  //@Input() form: Form = new Form();
2363
- // defaultListActions: listFormRecordActionsDefault = new listFormRecordActionsDefault();
2362
+ // defaultListActions: dynamicModuleListFormRecordActionsDefault = new dynamicModuleListFormRecordActionsDefault();
2364
2363
  // FormJSON: string = "";
2365
2364
  /**
2366
2365
  * Eventi emessi quando si salva, elimina o duplica un record
@@ -2380,13 +2379,13 @@ class EqpDynamicModuleComponent {
2380
2379
  this.form = new Form();
2381
2380
  this.lastform = new Form();
2382
2381
  this.FormTypeEnum = FormTypeEnum;
2383
- this.DynamicMoDuleViewModeEnum = DynamicMoDuleViewModeEnum$1;
2382
+ this.DynamicModuleViewModeEnum = DynamicModuleViewModeEnum$1;
2384
2383
  this.loader = false;
2385
2384
  }
2386
2385
  ngOnInit() {
2387
2386
  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);
2387
+ this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.showSaveButton, this.showBackButton, this.userID);
2388
+ this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values, this.defaultListActions);
2390
2389
  this.dynamicModuleRepairConfig = new DynamicModuleRepairConfig(this.FormJSON);
2391
2390
  this.context = this.configurations.context;
2392
2391
  this.baseServerUrl =
@@ -2402,14 +2401,17 @@ class EqpDynamicModuleComponent {
2402
2401
  // prende il form e imposta la viewmode corretta
2403
2402
  yield this.getFormByID();
2404
2403
  }
2405
- this.loader = true;
2406
2404
  });
2407
2405
  }
2408
2406
  ngAfterViewInit() {
2409
- if (this.starterViewMode == DynamicMoDuleViewModeEnum$1.COMPILE) {
2407
+ if (this.starterViewMode == DynamicModuleViewModeEnum$1.COMPILE) {
2410
2408
  // da vedere in getFormByID
2411
2409
  setTimeout(() => this.onAddViewEditRecord(null), 1000);
2412
2410
  }
2411
+ else {
2412
+ this.viewMode = this.starterViewMode;
2413
+ this.loader = true;
2414
+ }
2413
2415
  }
2414
2416
  getFormByID(id = this.formID) {
2415
2417
  const dynamicModuleParams = new Array();
@@ -2422,7 +2424,7 @@ class EqpDynamicModuleComponent {
2422
2424
  this.lastform = res;
2423
2425
  this.form = res;
2424
2426
  this.getRecordsByFormID();
2425
- // if (this.starterViewMode == DynamicMoDuleViewModeEnum.COMPILE) {
2427
+ // if (this.starterViewMode == DynamicModuleViewModeEnum.COMPILE) {
2426
2428
  // this.onAddViewEditRecord(null);
2427
2429
  // }
2428
2430
  // this.viewMode = this.starterViewMode;
@@ -2517,13 +2519,15 @@ class EqpDynamicModuleComponent {
2517
2519
  this.selectedRecord.ID = res.ID;
2518
2520
  this.selectedRecord.EntID = res.EntID;
2519
2521
  this.selectedRecord.userID = res.userID;
2520
- this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
2522
+ this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
2523
+ this.loader = true;
2521
2524
  });
2522
2525
  });
2523
2526
  }
2524
2527
  else {
2525
2528
  this.selectedRecord = JSON.parse(JSON.stringify(event.record));
2526
- this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
2529
+ this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
2530
+ this.loader = true;
2527
2531
  }
2528
2532
  }
2529
2533
  else {
@@ -2537,11 +2541,12 @@ class EqpDynamicModuleComponent {
2537
2541
  this.form = res;
2538
2542
  this.selectedRecord = null;
2539
2543
  this.onlyView = false;
2540
- this.viewMode = DynamicMoDuleViewModeEnum$1.COMPILE;
2544
+ this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
2545
+ this.loader = true;
2541
2546
  }, (err) => { });
2542
2547
  // this.selectedRecord = null;
2543
2548
  // this.onlyView = false;
2544
- // this.viewMode = DynamicMoDuleViewModeEnum.COMPILE;
2549
+ // this.viewMode = DynamicModuleViewModeEnum.COMPILE;
2545
2550
  }
2546
2551
  }
2547
2552
  /**
@@ -2571,12 +2576,14 @@ class EqpDynamicModuleComponent {
2571
2576
  this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
2572
2577
  this.getRecordsByFormID();
2573
2578
  this.afterSaveRecord.emit(event);
2574
- this.viewMode = DynamicMoDuleViewModeEnum$1.LIST;
2579
+ this.viewMode = DynamicModuleViewModeEnum$1.LIST;
2580
+ this.loader = true;
2575
2581
  });
2576
2582
  }
2577
2583
  else {
2578
2584
  this.saveRecord.emit(event);
2579
- this.viewMode = DynamicMoDuleViewModeEnum$1.LIST;
2585
+ this.viewMode = DynamicModuleViewModeEnum$1.LIST;
2586
+ this.loader = true;
2580
2587
  }
2581
2588
  }
2582
2589
  /**
@@ -2638,10 +2645,10 @@ class EqpDynamicModuleComponent {
2638
2645
  }
2639
2646
  }
2640
2647
  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"] }] });
2648
+ 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" }, 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
2649
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: EqpDynamicModuleComponent, decorators: [{
2643
2650
  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"] }]
2651
+ 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
2652
  }], ctorParameters: function () { return [{ type: UtilityHelperService }]; }, propDecorators: { configurations: [{
2646
2653
  type: Input
2647
2654
  }], formID: [{
@@ -2652,7 +2659,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
2652
2659
  type: Input
2653
2660
  }], showTitle: [{
2654
2661
  type: Input
2655
- }], userMode: [{
2662
+ }], showBackButton: [{
2656
2663
  type: Input
2657
2664
  }], showSaveButton: [{
2658
2665
  type: Input
@@ -2660,6 +2667,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
2660
2667
  type: Input
2661
2668
  }], FormJSON: [{
2662
2669
  type: Input
2670
+ }], defaultListActions: [{
2671
+ type: Input
2663
2672
  }], saveRecord: [{
2664
2673
  type: Output
2665
2674
  }], deleteRecord: [{
@@ -2886,7 +2895,7 @@ class DynamicModuleGeneralConfig {
2886
2895
  /**
2887
2896
  * imposta la modalità di lavoro del componente COMPILE/LIST/REPAIR
2888
2897
  */
2889
- // starterViewMode: DynamicMoDuleViewModeEnum = DynamicMoDuleViewModeEnum.LIST;
2898
+ // starterViewMode: DynamicModuleViewModeEnum = DynamicModuleViewModeEnum.LIST;
2890
2899
  /**
2891
2900
  * Specifica del form da visualizzare DynaForms.ID
2892
2901
  */
@@ -4699,7 +4708,7 @@ class DynamicModuleFieldComponent {
4699
4708
  ngOnInit() {
4700
4709
  this.configList.values = this.record[this.field.Name];
4701
4710
  this.configList.showTitle = true;
4702
- this.configList.defaultListActions = new listFormRecordActionsDefault();
4711
+ this.configList.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
4703
4712
  }
4704
4713
  /**
4705
4714
  * Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
@@ -4894,12 +4903,12 @@ class DynamicModuleConfig {
4894
4903
  }
4895
4904
  }
4896
4905
 
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 = {}));
4906
+ var DynamicModuleViewModeEnum;
4907
+ (function (DynamicModuleViewModeEnum) {
4908
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
4909
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["LIST"] = 2] = "LIST";
4910
+ DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
4911
+ })(DynamicModuleViewModeEnum || (DynamicModuleViewModeEnum = {}));
4903
4912
 
4904
4913
  /**
4905
4914
  * Rappresenta l'entità su cui vengono eseguite le operazioni di salvataggio.
@@ -4933,5 +4942,5 @@ class TextareaField extends BaseField {
4933
4942
  * Generated bundle index. Do not edit.
4934
4943
  */
4935
4944
 
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 };
4945
+ 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
4946
  //# sourceMappingURL=eqproject-eqp-dynamic-module.mjs.map