@eqproject/eqp-dynamic-module 2.0.2 → 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.
- package/README.md +5 -5
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +44 -27
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +3 -3
- package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +5 -5
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +5 -5
- 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/components/private/form-records/repair-form-fields/repair-form-fields.component.mjs +1 -1
- package/esm2020/lib/models/DynamicModuleViewModeEnum.mjs +7 -0
- package/esm2020/lib/models/dynamicModuleCompileConfig.model.mjs +4 -4
- package/esm2020/lib/models/dynamicModuleConfig.model.mjs +1 -1
- package/esm2020/lib/models/dynamicModuleConfiguratorConfig.model.mjs +3 -3
- package/esm2020/lib/models/dynamicModuleGeneralConfig.model.mjs +3 -3
- package/esm2020/lib/models/dynamicModuleListConfig.model.mjs +4 -8
- package/esm2020/lib/models/dynamicModuleListFormRecordActionsDefault.mjs +10 -0
- package/esm2020/lib/models/dynamicModuleRepairConfig.model.mjs +2 -2
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +76 -55
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +76 -55
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +16 -14
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +2 -2
- package/lib/components/private/dynamic-module-field/dynamic-module-field.component.d.ts +2 -2
- package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +2 -2
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +3 -2
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +4 -4
- package/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.d.ts +2 -2
- package/lib/models/DynamicModuleViewModeEnum.d.ts +5 -0
- package/lib/models/dynamicModuleCompileConfig.model.d.ts +6 -6
- package/lib/models/dynamicModuleConfig.model.d.ts +9 -9
- package/lib/models/dynamicModuleConfiguratorConfig.model.d.ts +3 -3
- package/lib/models/dynamicModuleGeneralConfig.model.d.ts +1 -1
- package/lib/models/dynamicModuleListConfig.model.d.ts +4 -4
- package/lib/models/dynamicModuleListFormRecordActionsDefault.d.ts +8 -0
- package/lib/models/dynamicModuleRepairConfig.model.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -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
|
@@ -72,17 +72,18 @@ class Context {
|
|
|
72
72
|
class ContextUser {
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
class
|
|
76
|
-
constructor(showTitle = true,
|
|
75
|
+
class DynamicModuleCompileConfig {
|
|
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;
|
|
@@ -90,23 +91,19 @@ class listFormRecordActionsDefault {
|
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
class
|
|
94
|
-
constructor(showTitle = true, values = null, defaultListActions = new
|
|
94
|
+
class DynamicModuleListConfig {
|
|
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;
|
|
106
103
|
}
|
|
107
104
|
}
|
|
108
105
|
|
|
109
|
-
class
|
|
106
|
+
class DynamicModuleRepairConfig {
|
|
110
107
|
constructor(formJson) {
|
|
111
108
|
/*
|
|
112
109
|
* stringa da passare in REPAIR MODE
|
|
@@ -116,12 +113,12 @@ 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["COMPILE"] = 1] = "COMPILE";
|
|
119
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["LIST"] = 2] = "LIST";
|
|
120
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
|
|
121
|
+
})(DynamicModuleViewModeEnum$1 || (DynamicModuleViewModeEnum$1 = {}));
|
|
125
122
|
|
|
126
123
|
class EndPointConfiguration {
|
|
127
124
|
}
|
|
@@ -832,7 +829,7 @@ var DateTimeTypeEnum;
|
|
|
832
829
|
|
|
833
830
|
class ListFormRecordComponent {
|
|
834
831
|
constructor() {
|
|
835
|
-
this.defaultListActions = new
|
|
832
|
+
this.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
836
833
|
this.showTitle = true;
|
|
837
834
|
this.columns = new Array();
|
|
838
835
|
this.onAddViewEditRecord = new EventEmitter();
|
|
@@ -1031,10 +1028,10 @@ class ListFormRecordComponent {
|
|
|
1031
1028
|
}
|
|
1032
1029
|
}
|
|
1033
1030
|
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
|
|
1031
|
+
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
1032
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: ListFormRecordComponent, decorators: [{
|
|
1036
1033
|
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
|
|
1034
|
+
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
1035
|
}], ctorParameters: function () { return []; }, propDecorators: { configurations: [{
|
|
1039
1036
|
type: Input
|
|
1040
1037
|
}], form: [{
|
|
@@ -2054,7 +2051,7 @@ class DynamicModuleFieldFixComponent {
|
|
|
2054
2051
|
constructor(dialog) {
|
|
2055
2052
|
this.dialog = dialog;
|
|
2056
2053
|
this.recordChange = new EventEmitter();
|
|
2057
|
-
this.configList = new
|
|
2054
|
+
this.configList = new DynamicModuleListConfig();
|
|
2058
2055
|
this.FieldTypeEnum = FieldTypeEnum;
|
|
2059
2056
|
this.onlyViewInnerFormRecord = false;
|
|
2060
2057
|
}
|
|
@@ -2066,7 +2063,7 @@ class DynamicModuleFieldFixComponent {
|
|
|
2066
2063
|
ngOnInit() {
|
|
2067
2064
|
this.configList.values = this.record[this.field.Name];
|
|
2068
2065
|
this.configList.showTitle = true;
|
|
2069
|
-
this.configList.defaultListActions = new
|
|
2066
|
+
this.configList.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
2070
2067
|
}
|
|
2071
2068
|
/**
|
|
2072
2069
|
* Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
|
|
@@ -2175,6 +2172,7 @@ class AddFormRecordComponent {
|
|
|
2175
2172
|
this.form = new Form();
|
|
2176
2173
|
this.showTitle = true;
|
|
2177
2174
|
this.showSaveButton = true;
|
|
2175
|
+
this.showBackButton = true;
|
|
2178
2176
|
this.userMode = true;
|
|
2179
2177
|
this.fieldGroups = {};
|
|
2180
2178
|
this.FormScalarTypeEnum = FormScalarTypeEnum;
|
|
@@ -2184,7 +2182,7 @@ class AddFormRecordComponent {
|
|
|
2184
2182
|
ngOnInit() {
|
|
2185
2183
|
this.showTitle = this.configurations.showTitle;
|
|
2186
2184
|
this.showSaveButton = this.configurations.showSaveButton;
|
|
2187
|
-
this.
|
|
2185
|
+
this.showBackButton = this.configurations.showBackButton;
|
|
2188
2186
|
if (this.record == null) {
|
|
2189
2187
|
this.record = new Record();
|
|
2190
2188
|
}
|
|
@@ -2263,10 +2261,10 @@ class AddFormRecordComponent {
|
|
|
2263
2261
|
}
|
|
2264
2262
|
}
|
|
2265
2263
|
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=\"
|
|
2264
|
+
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
2265
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: AddFormRecordComponent, decorators: [{
|
|
2268
2266
|
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=\"
|
|
2267
|
+
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
2268
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: UtilityHelperService }]; }, propDecorators: { configurations: [{
|
|
2271
2269
|
type: Input
|
|
2272
2270
|
}], form: [{
|
|
@@ -2331,13 +2329,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2331
2329
|
class EqpDynamicModuleComponent {
|
|
2332
2330
|
constructor(utilityHelperService) {
|
|
2333
2331
|
this.utilityHelperService = utilityHelperService;
|
|
2334
|
-
this.starterViewMode =
|
|
2332
|
+
this.starterViewMode = DynamicModuleViewModeEnum$1.LIST;
|
|
2335
2333
|
this.userID = "0";
|
|
2336
2334
|
this.showTitle = true;
|
|
2337
|
-
this.
|
|
2335
|
+
this.showBackButton = true;
|
|
2338
2336
|
this.showSaveButton = true;
|
|
2339
2337
|
this.values = null;
|
|
2340
2338
|
this.FormJSON = "";
|
|
2339
|
+
this.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
2341
2340
|
this.context = new Context();
|
|
2342
2341
|
/**
|
|
2343
2342
|
* Url del server da chiamare per recuperare, salvare o eliminare i record.
|
|
@@ -2357,7 +2356,7 @@ class EqpDynamicModuleComponent {
|
|
|
2357
2356
|
*/
|
|
2358
2357
|
this.endPointConfiguration = null;
|
|
2359
2358
|
//@Input() form: Form = new Form();
|
|
2360
|
-
// defaultListActions:
|
|
2359
|
+
// defaultListActions: dynamicModuleListFormRecordActionsDefault = new dynamicModuleListFormRecordActionsDefault();
|
|
2361
2360
|
// FormJSON: string = "";
|
|
2362
2361
|
/**
|
|
2363
2362
|
* Eventi emessi quando si salva, elimina o duplica un record
|
|
@@ -2377,13 +2376,13 @@ class EqpDynamicModuleComponent {
|
|
|
2377
2376
|
this.form = new Form();
|
|
2378
2377
|
this.lastform = new Form();
|
|
2379
2378
|
this.FormTypeEnum = FormTypeEnum;
|
|
2380
|
-
this.
|
|
2379
|
+
this.DynamicModuleViewModeEnum = DynamicModuleViewModeEnum$1;
|
|
2381
2380
|
this.loader = false;
|
|
2382
2381
|
}
|
|
2383
2382
|
async ngOnInit() {
|
|
2384
|
-
this.dynamicModuleCompileConfig = new
|
|
2385
|
-
this.dynamicModuleListConfig = new
|
|
2386
|
-
this.dynamicModuleRepairConfig = new
|
|
2383
|
+
this.dynamicModuleCompileConfig = new DynamicModuleCompileConfig(this.showTitle, this.showSaveButton, this.showBackButton, this.userID);
|
|
2384
|
+
this.dynamicModuleListConfig = new DynamicModuleListConfig(this.showTitle, this.values, this.defaultListActions);
|
|
2385
|
+
this.dynamicModuleRepairConfig = new DynamicModuleRepairConfig(this.FormJSON);
|
|
2387
2386
|
this.context = this.configurations.context;
|
|
2388
2387
|
this.baseServerUrl =
|
|
2389
2388
|
this.configurations.baseServerUrl;
|
|
@@ -2398,9 +2397,17 @@ class EqpDynamicModuleComponent {
|
|
|
2398
2397
|
// prende il form e imposta la viewmode corretta
|
|
2399
2398
|
await this.getFormByID();
|
|
2400
2399
|
}
|
|
2401
|
-
this.loader = true;
|
|
2402
2400
|
}
|
|
2403
|
-
ngAfterViewInit() {
|
|
2401
|
+
ngAfterViewInit() {
|
|
2402
|
+
if (this.starterViewMode == DynamicModuleViewModeEnum$1.COMPILE) {
|
|
2403
|
+
// da vedere in getFormByID
|
|
2404
|
+
setTimeout(() => this.onAddViewEditRecord(null), 1000);
|
|
2405
|
+
}
|
|
2406
|
+
else {
|
|
2407
|
+
this.viewMode = this.starterViewMode;
|
|
2408
|
+
this.loader = true;
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2404
2411
|
getFormByID(id = this.formID) {
|
|
2405
2412
|
const dynamicModuleParams = new Array();
|
|
2406
2413
|
dynamicModuleParams.push({
|
|
@@ -2412,10 +2419,10 @@ class EqpDynamicModuleComponent {
|
|
|
2412
2419
|
this.lastform = res;
|
|
2413
2420
|
this.form = res;
|
|
2414
2421
|
this.getRecordsByFormID();
|
|
2415
|
-
if (this.starterViewMode ==
|
|
2416
|
-
|
|
2417
|
-
}
|
|
2418
|
-
this.viewMode = this.starterViewMode;
|
|
2422
|
+
// if (this.starterViewMode == DynamicModuleViewModeEnum.COMPILE) {
|
|
2423
|
+
// this.onAddViewEditRecord(null);
|
|
2424
|
+
// }
|
|
2425
|
+
// this.viewMode = this.starterViewMode;
|
|
2419
2426
|
}, (err) => { });
|
|
2420
2427
|
}
|
|
2421
2428
|
/**
|
|
@@ -2505,13 +2512,15 @@ class EqpDynamicModuleComponent {
|
|
|
2505
2512
|
this.selectedRecord.ID = res.ID;
|
|
2506
2513
|
this.selectedRecord.EntID = res.EntID;
|
|
2507
2514
|
this.selectedRecord.userID = res.userID;
|
|
2508
|
-
this.viewMode =
|
|
2515
|
+
this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
|
|
2516
|
+
this.loader = true;
|
|
2509
2517
|
});
|
|
2510
2518
|
});
|
|
2511
2519
|
}
|
|
2512
2520
|
else {
|
|
2513
2521
|
this.selectedRecord = JSON.parse(JSON.stringify(event.record));
|
|
2514
|
-
this.viewMode =
|
|
2522
|
+
this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
|
|
2523
|
+
this.loader = true;
|
|
2515
2524
|
}
|
|
2516
2525
|
}
|
|
2517
2526
|
else {
|
|
@@ -2525,11 +2534,12 @@ class EqpDynamicModuleComponent {
|
|
|
2525
2534
|
this.form = res;
|
|
2526
2535
|
this.selectedRecord = null;
|
|
2527
2536
|
this.onlyView = false;
|
|
2528
|
-
this.viewMode =
|
|
2537
|
+
this.viewMode = DynamicModuleViewModeEnum$1.COMPILE;
|
|
2538
|
+
this.loader = true;
|
|
2529
2539
|
}, (err) => { });
|
|
2530
2540
|
// this.selectedRecord = null;
|
|
2531
2541
|
// this.onlyView = false;
|
|
2532
|
-
// this.viewMode =
|
|
2542
|
+
// this.viewMode = DynamicModuleViewModeEnum.COMPILE;
|
|
2533
2543
|
}
|
|
2534
2544
|
}
|
|
2535
2545
|
/**
|
|
@@ -2558,12 +2568,14 @@ class EqpDynamicModuleComponent {
|
|
|
2558
2568
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
|
|
2559
2569
|
this.getRecordsByFormID();
|
|
2560
2570
|
this.afterSaveRecord.emit(event);
|
|
2561
|
-
this.viewMode =
|
|
2571
|
+
this.viewMode = DynamicModuleViewModeEnum$1.LIST;
|
|
2572
|
+
this.loader = true;
|
|
2562
2573
|
});
|
|
2563
2574
|
}
|
|
2564
2575
|
else {
|
|
2565
2576
|
this.saveRecord.emit(event);
|
|
2566
|
-
this.viewMode =
|
|
2577
|
+
this.viewMode = DynamicModuleViewModeEnum$1.LIST;
|
|
2578
|
+
this.loader = true;
|
|
2567
2579
|
}
|
|
2568
2580
|
}
|
|
2569
2581
|
/**
|
|
@@ -2625,10 +2637,10 @@ class EqpDynamicModuleComponent {
|
|
|
2625
2637
|
}
|
|
2626
2638
|
}
|
|
2627
2639
|
EqpDynamicModuleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: EqpDynamicModuleComponent, deps: [{ token: UtilityHelperService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2628
|
-
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",
|
|
2640
|
+
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"] }] });
|
|
2629
2641
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImport: i0, type: EqpDynamicModuleComponent, decorators: [{
|
|
2630
2642
|
type: Component,
|
|
2631
|
-
args: [{ selector: "eqp-dynamic-module", template: "<eqp-dynamic-module-spinner></eqp-dynamic-module-spinner>\r\n<add-form-record\r\n *ngIf=\"viewMode ==
|
|
2643
|
+
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"] }]
|
|
2632
2644
|
}], ctorParameters: function () { return [{ type: UtilityHelperService }]; }, propDecorators: { configurations: [{
|
|
2633
2645
|
type: Input
|
|
2634
2646
|
}], formID: [{
|
|
@@ -2639,7 +2651,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2639
2651
|
type: Input
|
|
2640
2652
|
}], showTitle: [{
|
|
2641
2653
|
type: Input
|
|
2642
|
-
}],
|
|
2654
|
+
}], showBackButton: [{
|
|
2643
2655
|
type: Input
|
|
2644
2656
|
}], showSaveButton: [{
|
|
2645
2657
|
type: Input
|
|
@@ -2647,6 +2659,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
2647
2659
|
type: Input
|
|
2648
2660
|
}], FormJSON: [{
|
|
2649
2661
|
type: Input
|
|
2662
|
+
}], defaultListActions: [{
|
|
2663
|
+
type: Input
|
|
2650
2664
|
}], saveRecord: [{
|
|
2651
2665
|
type: Output
|
|
2652
2666
|
}], deleteRecord: [{
|
|
@@ -2869,11 +2883,11 @@ class DynamicModuleConfiguratorSpecificConfig {
|
|
|
2869
2883
|
}
|
|
2870
2884
|
}
|
|
2871
2885
|
|
|
2872
|
-
class
|
|
2886
|
+
class DynamicModuleGeneralConfig {
|
|
2873
2887
|
/**
|
|
2874
2888
|
* imposta la modalità di lavoro del componente COMPILE/LIST/REPAIR
|
|
2875
2889
|
*/
|
|
2876
|
-
// starterViewMode:
|
|
2890
|
+
// starterViewMode: DynamicModuleViewModeEnum = DynamicModuleViewModeEnum.LIST;
|
|
2877
2891
|
/**
|
|
2878
2892
|
* Specifica del form da visualizzare DynaForms.ID
|
|
2879
2893
|
*/
|
|
@@ -2905,7 +2919,7 @@ class dynamicModuleGeneralConfig {
|
|
|
2905
2919
|
}
|
|
2906
2920
|
|
|
2907
2921
|
class DynamicModuleConfiguratorConfig {
|
|
2908
|
-
constructor(general = new
|
|
2922
|
+
constructor(general = new DynamicModuleGeneralConfig(), specific = new DynamicModuleConfiguratorSpecificConfig()) {
|
|
2909
2923
|
this.dynamicModuleGeneralConfig = general;
|
|
2910
2924
|
this.dynamicModuleConfiguratorSpecificConfig = specific;
|
|
2911
2925
|
}
|
|
@@ -4026,7 +4040,7 @@ class EqpDynamicModuleConfiguratorComponent {
|
|
|
4026
4040
|
this.UserID = 36;
|
|
4027
4041
|
this.innerFormManagment = false;
|
|
4028
4042
|
/* CONFIGURAZIONE PER VISUALIZZAZIONE FORM CREATA */
|
|
4029
|
-
this.viewConfig = new
|
|
4043
|
+
this.viewConfig = new DynamicModuleCompileConfig(true, false, false, '0');
|
|
4030
4044
|
this.formCompleted = false;
|
|
4031
4045
|
//#region Enumeratori usati nell'html
|
|
4032
4046
|
this.FormTypeEnum = FormTypeEnum;
|
|
@@ -4672,7 +4686,7 @@ class DynamicModuleFieldComponent {
|
|
|
4672
4686
|
constructor(dialog) {
|
|
4673
4687
|
this.dialog = dialog;
|
|
4674
4688
|
this.recordChange = new EventEmitter();
|
|
4675
|
-
this.configList = new
|
|
4689
|
+
this.configList = new DynamicModuleListConfig();
|
|
4676
4690
|
this.FieldTypeEnum = FieldTypeEnum;
|
|
4677
4691
|
this.onlyViewInnerFormRecord = false;
|
|
4678
4692
|
}
|
|
@@ -4684,7 +4698,7 @@ class DynamicModuleFieldComponent {
|
|
|
4684
4698
|
ngOnInit() {
|
|
4685
4699
|
this.configList.values = this.record[this.field.Name];
|
|
4686
4700
|
this.configList.showTitle = true;
|
|
4687
|
-
this.configList.defaultListActions = new
|
|
4701
|
+
this.configList.defaultListActions = new DynamicModuleListFormRecordActionsDefault();
|
|
4688
4702
|
}
|
|
4689
4703
|
/**
|
|
4690
4704
|
* Metodo invocato al cambio del valore di ogni proprietà dell'oggetto record.
|
|
@@ -4879,6 +4893,13 @@ class DynamicModuleConfig {
|
|
|
4879
4893
|
}
|
|
4880
4894
|
}
|
|
4881
4895
|
|
|
4896
|
+
var DynamicModuleViewModeEnum;
|
|
4897
|
+
(function (DynamicModuleViewModeEnum) {
|
|
4898
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["COMPILE"] = 1] = "COMPILE";
|
|
4899
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["LIST"] = 2] = "LIST";
|
|
4900
|
+
DynamicModuleViewModeEnum[DynamicModuleViewModeEnum["REPAIR"] = 3] = "REPAIR";
|
|
4901
|
+
})(DynamicModuleViewModeEnum || (DynamicModuleViewModeEnum = {}));
|
|
4902
|
+
|
|
4882
4903
|
/**
|
|
4883
4904
|
* Rappresenta l'entità su cui vengono eseguite le operazioni di salvataggio.
|
|
4884
4905
|
*/
|
|
@@ -4911,5 +4932,5 @@ class TextareaField extends BaseField {
|
|
|
4911
4932
|
* Generated bundle index. Do not edit.
|
|
4912
4933
|
*/
|
|
4913
4934
|
|
|
4914
|
-
export { ActionOnRecord, AddFormFieldComponent, AddFormRecordComponent, ArrayValidators, AttachmentField, AttachmentFieldTemplateComponent, AvailableFileExtensions, AvailableImageExtensions, BaseField, BaseObj, BoolPresentantioEnum, BooleanField, BooleanFieldTemplateComponent, ButtonImage, ColSpanSizesEnum, Context, ContextUser, DateField, DateFieldTemplateComponent, DateTimeTypeEnum, DynRecord, DynamicModuleConfig, DynamicModuleConfiguratorConfig, DynamicModuleConfiguratorSpecificConfig, DynamicModuleFieldComponent, 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
|
|
4935
|
+
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 };
|
|
4915
4936
|
//# sourceMappingURL=eqproject-eqp-dynamic-module.mjs.map
|