@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.
- package/README.md +1 -1
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +43 -20
- package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +3 -3
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +3 -3
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +5 -4
- package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +5 -5
- package/esm2020/lib/models/DynamicModuleViewModeEnum.mjs +8 -0
- package/esm2020/lib/models/dynamicModuleCompileConfig.model.mjs +3 -3
- package/esm2020/lib/models/dynamicModuleGeneralConfig.model.mjs +2 -2
- package/esm2020/lib/models/dynamicModuleListConfig.model.mjs +3 -7
- package/esm2020/lib/models/dynamicModuleListFormRecordActionsDefault.mjs +10 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +71 -49
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +71 -49
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +9 -6
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +1 -0
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +2 -2
- package/lib/models/DynamicModuleViewModeEnum.d.ts +6 -0
- package/lib/models/dynamicModuleCompileConfig.model.d.ts +5 -5
- package/lib/models/dynamicModuleListConfig.model.d.ts +3 -3
- package/lib/models/dynamicModuleListFormRecordActionsDefault.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/esm2020/lib/models/DynamicMoDuleViewModeEnum.mjs +0 -7
- package/esm2020/lib/models/listFormRecordActionsDefault.mjs +0 -9
- package/lib/models/DynamicMoDuleViewModeEnum.d.ts +0 -5
- package/lib/models/listFormRecordActionsDefault.d.ts +0 -7
|
@@ -73,16 +73,17 @@ class ContextUser {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
class DynamicModuleCompileConfig {
|
|
76
|
-
constructor(showTitle = true,
|
|
76
|
+
constructor(showTitle = true, showSaveButton = true, showBackButton = true, userID = "0") {
|
|
77
77
|
this.showTitle = showTitle;
|
|
78
|
-
this.userMode = userMode;
|
|
79
78
|
this.showSaveButton = showSaveButton;
|
|
79
|
+
this.showBackButton = showBackButton;
|
|
80
80
|
this.userID = userID;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
class
|
|
85
|
-
constructor(view = true, edit = true, duplicate = true, del = true) {
|
|
84
|
+
class DynamicModuleListFormRecordActionsDefault {
|
|
85
|
+
constructor(add = true, view = true, edit = true, duplicate = true, del = true) {
|
|
86
|
+
this.add = add;
|
|
86
87
|
this.view = view;
|
|
87
88
|
this.edit = edit;
|
|
88
89
|
this.duplicate = duplicate;
|
|
@@ -91,15 +92,11 @@ class listFormRecordActionsDefault {
|
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
class DynamicModuleListConfig {
|
|
94
|
-
constructor(showTitle = true, values = null, defaultListActions = new
|
|
95
|
+
constructor(showTitle = true, values = null, defaultListActions = new DynamicModuleListFormRecordActionsDefault()) {
|
|
95
96
|
/**
|
|
96
97
|
* Show/Hide module name in COMPILE/LIST
|
|
97
98
|
*/
|
|
98
99
|
this.showTitle = true;
|
|
99
|
-
/**
|
|
100
|
-
* Lista delle azioni di default da mostrare per visualizzare/modificare/duplicare/eliminare in LIST MODE
|
|
101
|
-
*/
|
|
102
|
-
this.defaultListActions = new listFormRecordActionsDefault();
|
|
103
100
|
this.showTitle = showTitle;
|
|
104
101
|
this.values = values;
|
|
105
102
|
this.defaultListActions = defaultListActions;
|
|
@@ -116,12 +113,13 @@ class DynamicModuleRepairConfig {
|
|
|
116
113
|
}
|
|
117
114
|
}
|
|
118
115
|
|
|
119
|
-
var
|
|
120
|
-
(function (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
116
|
+
var DynamicModuleViewModeEnum$1;
|
|
117
|
+
(function (DynamicModuleViewModeEnum) {
|
|
118
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["NONE"] = 0] = "NONE";
|
|
119
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
|
|
120
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["LIST"] = 2] = "LIST";
|
|
121
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
|
|
122
|
+
})(DynamicModuleViewModeEnum$1 || (DynamicModuleViewModeEnum$1 = {}));
|
|
125
123
|
|
|
126
124
|
class EndPointConfiguration {
|
|
127
125
|
}
|
|
@@ -832,7 +830,7 @@ var DateTimeTypeEnum;
|
|
|
832
830
|
|
|
833
831
|
class ListFormRecordComponent {
|
|
834
832
|
constructor() {
|
|
835
|
-
this.defaultListActions = new
|
|
833
|
+
this.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
836
834
|
this.showTitle = true;
|
|
837
835
|
this.columns = new Array();
|
|
838
836
|
this.onAddViewEditRecord = new EventEmitter();
|
|
@@ -1031,10 +1029,10 @@ class ListFormRecordComponent {
|
|
|
1031
1029
|
}
|
|
1032
1030
|
}
|
|
1033
1031
|
ListFormRecordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ListFormRecordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1034
|
-
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
|
|
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" }] });
|
|
1035
1033
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ListFormRecordComponent, decorators: [{
|
|
1036
1034
|
type: Component,
|
|
1037
|
-
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
|
|
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"] }]
|
|
1038
1036
|
}], ctorParameters: function () { return []; }, propDecorators: { configurations: [{
|
|
1039
1037
|
type: Input
|
|
1040
1038
|
}], form: [{
|
|
@@ -2066,7 +2064,7 @@ class DynamicModuleFieldFixComponent {
|
|
|
2066
2064
|
ngOnInit() {
|
|
2067
2065
|
this.configList.values = this.record[this.field.Name];
|
|
2068
2066
|
this.configList.showTitle = true;
|
|
2069
|
-
this.configList.defaultListActions = new
|
|
2067
|
+
this.configList.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
2070
2068
|
}
|
|
2071
2069
|
/**
|
|
2072
2070
|
* Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
|
|
@@ -2175,6 +2173,7 @@ class AddFormRecordComponent {
|
|
|
2175
2173
|
this.form = new Form();
|
|
2176
2174
|
this.showTitle = true;
|
|
2177
2175
|
this.showSaveButton = true;
|
|
2176
|
+
this.showBackButton = true;
|
|
2178
2177
|
this.userMode = true;
|
|
2179
2178
|
this.fieldGroups = {};
|
|
2180
2179
|
this.FormScalarTypeEnum = FormScalarTypeEnum;
|
|
@@ -2184,7 +2183,7 @@ class AddFormRecordComponent {
|
|
|
2184
2183
|
ngOnInit() {
|
|
2185
2184
|
this.showTitle = this.configurations.showTitle;
|
|
2186
2185
|
this.showSaveButton = this.configurations.showSaveButton;
|
|
2187
|
-
this.
|
|
2186
|
+
this.showBackButton = this.configurations.showBackButton;
|
|
2188
2187
|
if (this.record == null) {
|
|
2189
2188
|
this.record = new Record();
|
|
2190
2189
|
}
|
|
@@ -2263,10 +2262,10 @@ class AddFormRecordComponent {
|
|
|
2263
2262
|
}
|
|
2264
2263
|
}
|
|
2265
2264
|
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 });
|
|
2266
|
-
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=\"
|
|
2265
|
+
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"] }] });
|
|
2267
2266
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: AddFormRecordComponent, decorators: [{
|
|
2268
2267
|
type: Component,
|
|
2269
|
-
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=\"
|
|
2268
|
+
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>" }]
|
|
2270
2269
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: UtilityHelperService }]; }, propDecorators: { configurations: [{
|
|
2271
2270
|
type: Input
|
|
2272
2271
|
}], form: [{
|
|
@@ -2331,13 +2330,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2331
2330
|
class EqpDynamicModuleComponent {
|
|
2332
2331
|
constructor(utilityHelperService) {
|
|
2333
2332
|
this.utilityHelperService = utilityHelperService;
|
|
2334
|
-
this.starterViewMode =
|
|
2333
|
+
this.starterViewMode = DynamicModuleViewModeEnum$1.LIST;
|
|
2335
2334
|
this.userID = "0";
|
|
2336
2335
|
this.showTitle = true;
|
|
2337
|
-
this.
|
|
2336
|
+
this.showBackButton = true;
|
|
2338
2337
|
this.showSaveButton = true;
|
|
2339
2338
|
this.values = null;
|
|
2340
2339
|
this.FormJSON = "";
|
|
2340
|
+
this.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
2341
|
+
this.onSaveBackToList = false;
|
|
2341
2342
|
this.context = new Context();
|
|
2342
2343
|
/**
|
|
2343
2344
|
* Url del server da chiamare per recuperare, salvare o eliminare i record.
|
|
@@ -2357,7 +2358,7 @@ class EqpDynamicModuleComponent {
|
|
|
2357
2358
|
*/
|
|
2358
2359
|
this.endPointConfiguration = null;
|
|
2359
2360
|
//@Input() form: Form = new Form();
|
|
2360
|
-
// defaultListActions:
|
|
2361
|
+
// defaultListActions: dynamicModuleListFormRecordActionsDefault = new dynamicModuleListFormRecordActionsDefault();
|
|
2361
2362
|
// FormJSON: string = "";
|
|
2362
2363
|
/**
|
|
2363
2364
|
* Eventi emessi quando si salva, elimina o duplica un record
|
|
@@ -2377,12 +2378,12 @@ class EqpDynamicModuleComponent {
|
|
|
2377
2378
|
this.form = new Form();
|
|
2378
2379
|
this.lastform = new Form();
|
|
2379
2380
|
this.FormTypeEnum = FormTypeEnum;
|
|
2380
|
-
this.
|
|
2381
|
+
this.DynamicModuleViewModeEnum = DynamicModuleViewModeEnum$1;
|
|
2381
2382
|
this.loader = false;
|
|
2382
2383
|
}
|
|
2383
2384
|
async ngOnInit() {
|
|
2384
|
-
this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.
|
|
2385
|
-
this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values);
|
|
2385
|
+
this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.showSaveButton, this.showBackButton, this.userID);
|
|
2386
|
+
this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values, this.defaultListActions);
|
|
2386
2387
|
this.dynamicModuleRepairConfig = new DynamicModuleRepairConfig(this.FormJSON);
|
|
2387
2388
|
this.context = this.configurations.context;
|
|
2388
2389
|
this.baseServerUrl =
|
|
@@ -2398,13 +2399,16 @@ class EqpDynamicModuleComponent {
|
|
|
2398
2399
|
// prende il form e imposta la viewmode corretta
|
|
2399
2400
|
await this.getFormByID();
|
|
2400
2401
|
}
|
|
2401
|
-
this.loader = true;
|
|
2402
2402
|
}
|
|
2403
2403
|
ngAfterViewInit() {
|
|
2404
|
-
if (this.starterViewMode ==
|
|
2404
|
+
if (this.starterViewMode == DynamicModuleViewModeEnum$1.COMPILE) {
|
|
2405
2405
|
// da vedere in getFormByID
|
|
2406
2406
|
setTimeout(() => this.onAddViewEditRecord(null), 1000);
|
|
2407
2407
|
}
|
|
2408
|
+
else {
|
|
2409
|
+
this.viewMode = this.starterViewMode;
|
|
2410
|
+
this.loader = true;
|
|
2411
|
+
}
|
|
2408
2412
|
}
|
|
2409
2413
|
getFormByID(id = this.formID) {
|
|
2410
2414
|
const dynamicModuleParams = new Array();
|
|
@@ -2417,7 +2421,7 @@ class EqpDynamicModuleComponent {
|
|
|
2417
2421
|
this.lastform = res;
|
|
2418
2422
|
this.form = res;
|
|
2419
2423
|
this.getRecordsByFormID();
|
|
2420
|
-
// if (this.starterViewMode ==
|
|
2424
|
+
// if (this.starterViewMode == DynamicModuleViewModeEnum.COMPILE) {
|
|
2421
2425
|
// this.onAddViewEditRecord(null);
|
|
2422
2426
|
// }
|
|
2423
2427
|
// this.viewMode = this.starterViewMode;
|
|
@@ -2510,13 +2514,15 @@ class EqpDynamicModuleComponent {
|
|
|
2510
2514
|
this.selectedRecord.ID = res.ID;
|
|
2511
2515
|
this.selectedRecord.EntID = res.EntID;
|
|
2512
2516
|
this.selectedRecord.userID = res.userID;
|
|
2513
|
-
this.viewMode =
|
|
2517
|
+
this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
|
|
2518
|
+
this.loader = true;
|
|
2514
2519
|
});
|
|
2515
2520
|
});
|
|
2516
2521
|
}
|
|
2517
2522
|
else {
|
|
2518
2523
|
this.selectedRecord = JSON.parse(JSON.stringify(event.record));
|
|
2519
|
-
this.viewMode =
|
|
2524
|
+
this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
|
|
2525
|
+
this.loader = true;
|
|
2520
2526
|
}
|
|
2521
2527
|
}
|
|
2522
2528
|
else {
|
|
@@ -2530,11 +2536,12 @@ class EqpDynamicModuleComponent {
|
|
|
2530
2536
|
this.form = res;
|
|
2531
2537
|
this.selectedRecord = null;
|
|
2532
2538
|
this.onlyView = false;
|
|
2533
|
-
this.viewMode =
|
|
2539
|
+
this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
|
|
2540
|
+
this.loader = true;
|
|
2534
2541
|
}, (err) => { });
|
|
2535
2542
|
// this.selectedRecord = null;
|
|
2536
2543
|
// this.onlyView = false;
|
|
2537
|
-
// this.viewMode =
|
|
2544
|
+
// this.viewMode = DynamicModuleViewModeEnum.COMPILE;
|
|
2538
2545
|
}
|
|
2539
2546
|
}
|
|
2540
2547
|
/**
|
|
@@ -2563,12 +2570,22 @@ class EqpDynamicModuleComponent {
|
|
|
2563
2570
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
|
|
2564
2571
|
this.getRecordsByFormID();
|
|
2565
2572
|
this.afterSaveRecord.emit(event);
|
|
2566
|
-
this.
|
|
2573
|
+
if (this.onSaveBackToList) {
|
|
2574
|
+
this.viewMode = DynamicModuleViewModeEnum$1.LIST;
|
|
2575
|
+
}
|
|
2576
|
+
else {
|
|
2577
|
+
this.viewMode = DynamicModuleViewModeEnum$1.NONE;
|
|
2578
|
+
}
|
|
2567
2579
|
});
|
|
2568
2580
|
}
|
|
2569
2581
|
else {
|
|
2570
2582
|
this.saveRecord.emit(event);
|
|
2571
|
-
this.
|
|
2583
|
+
if (this.onSaveBackToList) {
|
|
2584
|
+
this.viewMode = DynamicModuleViewModeEnum$1.LIST;
|
|
2585
|
+
}
|
|
2586
|
+
else {
|
|
2587
|
+
this.viewMode = DynamicModuleViewModeEnum$1.NONE;
|
|
2588
|
+
}
|
|
2572
2589
|
}
|
|
2573
2590
|
}
|
|
2574
2591
|
/**
|
|
@@ -2630,10 +2647,10 @@ class EqpDynamicModuleComponent {
|
|
|
2630
2647
|
}
|
|
2631
2648
|
}
|
|
2632
2649
|
EqpDynamicModuleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: EqpDynamicModuleComponent, deps: [{ token: UtilityHelperService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2633
|
-
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",
|
|
2650
|
+
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"] }] });
|
|
2634
2651
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: EqpDynamicModuleComponent, decorators: [{
|
|
2635
2652
|
type: Component,
|
|
2636
|
-
args: [{ selector: "eqp-dynamic-module", template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n<add-form-record\r\n *ngIf=\"viewMode ==
|
|
2653
|
+
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"] }]
|
|
2637
2654
|
}], ctorParameters: function () { return [{ type: UtilityHelperService }]; }, propDecorators: { configurations: [{
|
|
2638
2655
|
type: Input
|
|
2639
2656
|
}], formID: [{
|
|
@@ -2644,7 +2661,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2644
2661
|
type: Input
|
|
2645
2662
|
}], showTitle: [{
|
|
2646
2663
|
type: Input
|
|
2647
|
-
}],
|
|
2664
|
+
}], showBackButton: [{
|
|
2648
2665
|
type: Input
|
|
2649
2666
|
}], showSaveButton: [{
|
|
2650
2667
|
type: Input
|
|
@@ -2652,6 +2669,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2652
2669
|
type: Input
|
|
2653
2670
|
}], FormJSON: [{
|
|
2654
2671
|
type: Input
|
|
2672
|
+
}], defaultListActions: [{
|
|
2673
|
+
type: Input
|
|
2674
|
+
}], onSaveBackToList: [{
|
|
2675
|
+
type: Input
|
|
2655
2676
|
}], saveRecord: [{
|
|
2656
2677
|
type: Output
|
|
2657
2678
|
}], deleteRecord: [{
|
|
@@ -2878,7 +2899,7 @@ class DynamicModuleGeneralConfig {
|
|
|
2878
2899
|
/**
|
|
2879
2900
|
* imposta la modalità di lavoro del componente COMPILE/LIST/REPAIR
|
|
2880
2901
|
*/
|
|
2881
|
-
// starterViewMode:
|
|
2902
|
+
// starterViewMode: DynamicModuleViewModeEnum = DynamicModuleViewModeEnum.LIST;
|
|
2882
2903
|
/**
|
|
2883
2904
|
* Specifica del form da visualizzare DynaForms.ID
|
|
2884
2905
|
*/
|
|
@@ -4689,7 +4710,7 @@ class DynamicModuleFieldComponent {
|
|
|
4689
4710
|
ngOnInit() {
|
|
4690
4711
|
this.configList.values = this.record[this.field.Name];
|
|
4691
4712
|
this.configList.showTitle = true;
|
|
4692
|
-
this.configList.defaultListActions = new
|
|
4713
|
+
this.configList.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
4693
4714
|
}
|
|
4694
4715
|
/**
|
|
4695
4716
|
* Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
|
|
@@ -4884,12 +4905,13 @@ class DynamicModuleConfig {
|
|
|
4884
4905
|
}
|
|
4885
4906
|
}
|
|
4886
4907
|
|
|
4887
|
-
var
|
|
4888
|
-
(function (
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4908
|
+
var DynamicModuleViewModeEnum;
|
|
4909
|
+
(function (DynamicModuleViewModeEnum) {
|
|
4910
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["NONE"] = 0] = "NONE";
|
|
4911
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
|
|
4912
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["LIST"] = 2] = "LIST";
|
|
4913
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
|
|
4914
|
+
})(DynamicModuleViewModeEnum || (DynamicModuleViewModeEnum = {}));
|
|
4893
4915
|
|
|
4894
4916
|
/**
|
|
4895
4917
|
* Rappresenta l'entità su cui vengono eseguite le operazioni di salvataggio.
|
|
@@ -4923,5 +4945,5 @@ class TextareaField extends BaseField {
|
|
|
4923
4945
|
* Generated bundle index. Do not edit.
|
|
4924
4946
|
*/
|
|
4925
4947
|
|
|
4926
|
-
export { ActionOnRecord, AddFormFieldComponent, AddFormRecordComponent, ArrayValidators, AttachmentField, AttachmentFieldTemplateComponent, AvailableFileExtensions, AvailableImageExtensions, BaseField, BaseObj, BoolPresentantioEnum, BooleanField, BooleanFieldTemplateComponent, ButtonImage, ColSpanSizesEnum, Context, ContextUser, DateField, DateFieldTemplateComponent, DateTimeTypeEnum, DynRecord,
|
|
4948
|
+
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 };
|
|
4927
4949
|
//# sourceMappingURL=eqproject-eqp-dynamic-module.mjs.map
|