@eqproject/eqp-dynamic-module 2.2.15 → 2.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +3 -3
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +3 -1
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +9 -3
- package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +1 -1
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +1 -1
- package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +47 -14
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +83 -25
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +12 -7
- package/esm2020/lib/components/private/form-records/list-view-form-record/single-record/single-record.component.mjs +9 -5
- package/esm2020/lib/models/fields/listValueField.model.mjs +1 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +161 -53
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +161 -53
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.d.ts +4 -1
- package/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.d.ts +4 -4
- package/lib/components/private/form-records/list-view-form-record/single-record/single-record.component.d.ts +3 -3
- package/lib/models/fields/listValueField.model.d.ts +4 -0
- package/package.json +1 -1
|
@@ -4,6 +4,8 @@ import { ListPresentationEnum, ListValueField } from '../../../../models/fields/
|
|
|
4
4
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ListValueFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
7
|
+
debugMode: boolean;
|
|
8
|
+
debugLog(message: string, element?: any): void;
|
|
7
9
|
field: ListValueField;
|
|
8
10
|
record: Record;
|
|
9
11
|
recordChange: EventEmitter<Record>;
|
|
@@ -53,6 +55,7 @@ export declare class ListValueFieldTemplateComponent implements OnInit, OnChange
|
|
|
53
55
|
* Metodo per aggiornare il valore e il validator del FormControl associato al campo.
|
|
54
56
|
*/
|
|
55
57
|
private setFormControlValue;
|
|
58
|
+
private stringToValuePairs;
|
|
56
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListValueFieldTemplateComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListValueFieldTemplateComponent, "list-value-field-template", never, { "field": "field"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListValueFieldTemplateComponent, "list-value-field-template", never, { "debugMode": "debugMode"; "field": "field"; "record": "record"; }, { "recordChange": "recordChange"; }, never, never, false, never>;
|
|
58
61
|
}
|
|
@@ -26,10 +26,10 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
26
26
|
formID: string;
|
|
27
27
|
form: Form;
|
|
28
28
|
externalButtons: Array<RecordButton>;
|
|
29
|
+
onlyView: boolean;
|
|
29
30
|
defaultListActions: DynamicModuleListFormRecordActionsDefault;
|
|
30
31
|
showTitle: boolean;
|
|
31
32
|
test: boolean;
|
|
32
|
-
onlyView: boolean;
|
|
33
33
|
selectedRecord: Record;
|
|
34
34
|
loader: boolean;
|
|
35
35
|
panelOpenState: boolean[];
|
|
@@ -80,7 +80,7 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
80
80
|
viewOrEditRecord(record: Record, onlyView: boolean, i: any): void;
|
|
81
81
|
viewRecord(panel: Panel, onlyView: boolean, i: any, ev: Event): void;
|
|
82
82
|
EditRecord(panel: Panel, onlyView: boolean, i: any, ev: Event): void;
|
|
83
|
-
externalCallback(ev: Event, callback: Function): void;
|
|
83
|
+
externalCallback(ev: Event, callback: Function, record: any): void;
|
|
84
84
|
/**
|
|
85
85
|
* Metodo per duplicare un record della form.
|
|
86
86
|
* @param record Record da duplicare.
|
|
@@ -111,7 +111,7 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
111
111
|
* Metodo per salvare i dati inseriti dall'utente una volta conclusa la compilazione della form.
|
|
112
112
|
*/
|
|
113
113
|
saveOrExitForm(record: Record): void;
|
|
114
|
-
onAfterSaveRecord(
|
|
114
|
+
onAfterSaveRecord(event: any): void;
|
|
115
115
|
/**
|
|
116
116
|
* Metodo invocato quando si vuole aggiungere, visualizzare o modificare un record.
|
|
117
117
|
* Se l'evento è null vuol dire che stiamo aggiungendo un nuovo record altrimenti siamo in modifica
|
|
@@ -126,6 +126,6 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
126
126
|
onlyView: boolean;
|
|
127
127
|
}): void;
|
|
128
128
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListViewFormRecordComponent, never>;
|
|
129
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListViewFormRecordComponent, "list-view-form-record", never, { "debugMode": "debugMode"; "configurations": "configurations"; "compileConfigurations": "compileConfigurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "formID": "formID"; "form": "form"; "externalButtons": "externalButtons"; }, { "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "onDuplicateRecord": "onDuplicateRecord"; "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; }, never, never, false, never>;
|
|
129
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListViewFormRecordComponent, "list-view-form-record", never, { "debugMode": "debugMode"; "configurations": "configurations"; "compileConfigurations": "compileConfigurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "formID": "formID"; "form": "form"; "externalButtons": "externalButtons"; "onlyView": "onlyView"; }, { "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "onDuplicateRecord": "onDuplicateRecord"; "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; }, never, never, false, never>;
|
|
130
130
|
}
|
|
131
131
|
export {};
|
|
@@ -17,9 +17,9 @@ export declare class SingleRecordComponent implements OnInit {
|
|
|
17
17
|
form: Form;
|
|
18
18
|
showBackButton: boolean;
|
|
19
19
|
outCompileConfigurations: DynamicModuleCompileConfig;
|
|
20
|
+
onlyView: boolean;
|
|
20
21
|
saveRecordEvent: EventEmitter<Record>;
|
|
21
22
|
afterSaveRecordEvent: EventEmitter<Record>;
|
|
22
|
-
onlyView: boolean;
|
|
23
23
|
loaded: boolean;
|
|
24
24
|
constructor(utilityHelperService: UtilityHelperService);
|
|
25
25
|
ngOnInit(): void;
|
|
@@ -27,8 +27,8 @@ export declare class SingleRecordComponent implements OnInit {
|
|
|
27
27
|
* Metodo per salvare i dati inseriti dall'utente una volta conclusa la compilazione della form.
|
|
28
28
|
*/
|
|
29
29
|
saveOrExitForm(record: Record): void;
|
|
30
|
-
onAfterSaveRecord(
|
|
30
|
+
onAfterSaveRecord(event: any): void;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<SingleRecordComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SingleRecordComponent, "lib-single-record", never, { "debugMode": "debugMode"; "endPointConfiguration": "endPointConfiguration"; "record": "record"; "pageState": "pageState"; "userID": "userID"; "form": "form"; "showBackButton": "showBackButton"; "outCompileConfigurations": "outCompileConfigurations"; }, { "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; }, never, never, false, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SingleRecordComponent, "lib-single-record", never, { "debugMode": "debugMode"; "endPointConfiguration": "endPointConfiguration"; "record": "record"; "pageState": "pageState"; "userID": "userID"; "form": "form"; "showBackButton": "showBackButton"; "outCompileConfigurations": "outCompileConfigurations"; "onlyView": "onlyView"; }, { "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; }, never, never, false, never>;
|
|
33
33
|
}
|
|
34
34
|
export {};
|
|
@@ -9,6 +9,10 @@ export declare class ListValueField extends BaseField {
|
|
|
9
9
|
ValuePairs: {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* stringa da parsare chiave valore: chiave1 | valore 1; chiave2|valore 2
|
|
14
|
+
*/
|
|
15
|
+
ValueString: string;
|
|
12
16
|
/**Se true è l'utente può scegliere più di un valore */
|
|
13
17
|
IsMultiChoiche: boolean;
|
|
14
18
|
/**Modalità di presentazione */
|