@eqproject/eqp-dynamic-module 1.1.8 → 2.0.0
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 +123 -15
- package/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +144 -87
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +48 -37
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +44 -4
- package/esm2020/lib/components/private/dynamic-module-field/dynamic-module-field.component.mjs +9 -3
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +9 -3
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +12 -8
- package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +33 -14
- package/esm2020/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.mjs +8 -7
- package/esm2020/lib/models/DynamicMoDuleViewModeEnum.mjs +7 -0
- package/esm2020/lib/models/dynamicModuleCompileConfig.mjs +9 -0
- package/esm2020/lib/models/dynamicModuleConfig.mjs +13 -0
- package/esm2020/lib/models/dynamicModuleConfiguratorConfig.mjs +9 -0
- package/esm2020/lib/models/dynamicModuleConfiguratorSpecificConfig.mjs +10 -0
- package/esm2020/lib/models/dynamicModuleGeneralConfig.mjs +29 -0
- package/esm2020/lib/models/dynamicModuleListConfig.mjs +17 -0
- package/esm2020/lib/models/dynamicModuleRepairConfig.mjs +9 -0
- package/esm2020/lib/models/endPointConfiguration.model.mjs +1 -1
- package/esm2020/lib/models/form.model.mjs +1 -1
- package/esm2020/lib/models/listFormRecordActionsDefault.mjs +9 -0
- package/esm2020/lib/models/record.model.mjs +1 -1
- package/esm2020/lib/services/utilityHelper.services.mjs +11 -1
- package/esm2020/lib/services/voice-recognition.service.mjs +32 -26
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +423 -184
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +409 -174
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +18 -19
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +19 -13
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +8 -0
- package/lib/components/private/dynamic-module-field/dynamic-module-field.component.d.ts +2 -0
- package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +2 -0
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +6 -3
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +6 -3
- package/lib/components/private/form-records/repair-form-fields/repair-form-fields.component.d.ts +3 -2
- package/lib/models/DynamicMoDuleViewModeEnum.d.ts +5 -0
- package/lib/models/dynamicModuleCompileConfig.d.ts +19 -0
- package/lib/models/dynamicModuleConfig.d.ts +11 -0
- package/lib/models/dynamicModuleConfiguratorConfig.d.ts +7 -0
- package/lib/models/dynamicModuleConfiguratorSpecificConfig.d.ts +11 -0
- package/lib/models/dynamicModuleGeneralConfig.d.ts +31 -0
- package/lib/models/dynamicModuleListConfig.d.ts +17 -0
- package/lib/models/dynamicModuleRepairConfig.d.ts +3 -0
- package/lib/models/endPointConfiguration.model.d.ts +2 -0
- package/lib/models/form.model.d.ts +1 -0
- package/lib/models/listFormRecordActionsDefault.d.ts +7 -0
- package/lib/models/record.model.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,25 +19,133 @@ Componente che visualizza la form dinamica.
|
|
|
19
19
|
Input
|
|
20
20
|
| Input | Descrizione |
|
|
21
21
|
| ----- | ----------- |
|
|
22
|
-
|
|
|
23
|
-
| form: Form | oggetto form da visualizzare |
|
|
24
|
-
| values: Array<Record> | Valori da visualizzare |
|
|
25
|
-
| showButtons = true | Mostra i bottoni |
|
|
26
|
-
| showTitle = true | Mostra il titolo |
|
|
27
|
-
| baseServerUrl: string | Url del server da chiamare per recuperare, salvare o eliminare i record |
|
|
28
|
-
| userToken: string | Token utente |
|
|
29
|
-
| endPointConfiguration: EndPointConfiguration | Configurazione degli endpoint da chiamare per recuperare o salvare i dati. Può essere definita dall'utente oppure lasciata null, viene popolata con dei valori di default se viene valorizzata la proprietà "baseServerUrl" altrimenti viene lasciata null e non viene eseguita nessuna chiamata al server. |
|
|
30
|
-
|
|
31
|
-
Note:
|
|
32
|
-
- se non viene fornita una configurazione degli EndPoint si utilizza la configurazione standard
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
| DynamicModuleConfig | an object that is a configurations container. It holds 4 objects: dynamicModuleGeneralConfig, dynamicModuleCompileConfig, dynamicModuleListConfig, dynamicModuleRepairConfig |
|
|
37
23
|
|
|
38
24
|
### eqp-dynamic-module-configurator
|
|
39
25
|
Componente che permette la configurazione delle form dinamiche
|
|
26
|
+
| Input | Descrizione |
|
|
27
|
+
| ----- | ----------- |
|
|
28
|
+
| DynamicModuleConfiguratorConfig | an object that is a configurations container. It holds 2 objects: dynamicModuleGeneralConfig, DynamicModuleConfiguratorSpecificConfig |
|
|
29
|
+
|
|
30
|
+
## Models used
|
|
31
|
+
|
|
32
|
+
### DynamicModuleConfiguratorConfig
|
|
33
|
+
| Property | Type | Description | Examples |
|
|
34
|
+
| ------------- | ------------- | ------------- | ------------- |
|
|
35
|
+
| dynamicModuleGeneralConfig | dynamicModuleGeneralConfig | contiene le informazioni generali comuni per la visualizzazione |
|
|
36
|
+
| DynamicModuleConfiguratorSpecificConfig | dynamicModuleGeneralConfig | contiene le informazioni generali comuni per la visualizzazione |
|
|
37
|
+
|
|
38
|
+
### DynamicModuleConfig
|
|
39
|
+
| Property | Type | Description | Examples |
|
|
40
|
+
| ------------- | ------------- | ------------- | ------------- |
|
|
41
|
+
| dynamicModuleGeneralConfig | dynamicModuleGeneralConfig | contiene le informazioni generali comuni per la visualizzazione |
|
|
42
|
+
| dynamicModuleCompileConfig | dynamicModuleCompileConfig | contiene le informazioni specifiche per la visualizzazione della risposta |
|
|
43
|
+
| dynamicModuleListConfig | dynamicModuleListConfig | contiene le informazioni specifiche per la visualizzazione della lista di risposte |
|
|
44
|
+
| dynamicModuleRepairConfig | dynamicModuleRepairConfig | contiene le configurazioni specifiche per la modalità repair |
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### DynamicModuleConfiguratorSpecificConfig | contiene le informazioni generali comuni per la visualizzazione
|
|
48
|
+
| Property | Type | Description | Examples |
|
|
49
|
+
| ------------- | ------------- | ------------- | ------------- |
|
|
50
|
+
| form | Form |
|
|
51
|
+
| orgaID | string |
|
|
52
|
+
| UserID | number |
|
|
53
|
+
| innerFormManagment | boolean |
|
|
54
|
+
| innerFormRef | MatDialogRef<TemplateRef<any>> |
|
|
55
|
+
|
|
56
|
+
### dynamicModuleGeneralConfig | contiene le informazioni generali comuni per la visualizzazione
|
|
57
|
+
| Property | Type | Description | Examples |
|
|
58
|
+
| ------------- | ------------- | ------------- | ------------- |
|
|
59
|
+
| baseServerUrl | string | server Url to call for API | "http://localhost:5015/api"
|
|
60
|
+
| userToken | string | Token dell'utente |
|
|
61
|
+
| endPointConfiguration | EndPointConfiguration | Configurazione degli endpoint da chiamare per recuperare o salvare i dati. Può essere definita dall'utente oppure lasciata null, viene popolata con dei valori di default se viene valorizzata la proprietà "baseServerUrl" altrimenti viene lasciata null e non viene eseguita nessuna chiamata al server. |
|
|
62
|
+
| context | Context | Contesto |
|
|
63
|
+
| formID | Form | la guID del form da visualizzare |
|
|
64
|
+
| starterViewMode | DynamicMoDuleViewModeEnum | se impostato a true mostra i pulsanti di salva e annulla |
|
|
65
|
+
|
|
66
|
+
Note:
|
|
67
|
+
- starterViewMode è attualmente utilizzato solo da DynamicModuleConfig
|
|
68
|
+
- se non viene fornita una configurazione degli EndPoint si utilizza la configurazione standard
|
|
40
69
|
|
|
70
|
+
### dynamicModuleCompileConfig | contiene le informazioni specifiche per la visualizzazione della risposta
|
|
71
|
+
| Property | Type | Description | Examples |
|
|
72
|
+
| ------------- | ------------- | ------------- | ------------- |
|
|
73
|
+
| showTitle | boolean | Show/Hide module name in COMPILE |
|
|
74
|
+
| userMode | boolean | Show/Hide the buttons for "save" and "back" |
|
|
75
|
+
| showSaveButton | boolean | Show/Hide form save button when userMode is true |
|
|
76
|
+
| userID | string | Set user id for save |
|
|
77
|
+
|
|
78
|
+
### dynamicModuleListConfig | contiene le informazioni specifiche per la visualizzazione della lista di risposte
|
|
79
|
+
| Property | Type | Description | Examples |
|
|
80
|
+
| ------------- | ------------- | ------------- | ------------- |
|
|
81
|
+
| showTitle | boolean | Show/Hide module name in LIST |
|
|
82
|
+
| defaultListActions | listFormRecordActionsDefault | Lista delle azioni di default da mostrare per visualizzare/modificare/duplicare/eliminare in LIST MODE |
|
|
83
|
+
| values | Array<Record> |Lista dei record da mostrare in LIST MODE |
|
|
84
|
+
|
|
85
|
+
### dynamicModuleRepairConfig | contiene le configurazioni specifiche per la modalità repair
|
|
86
|
+
| Property | Type | Description | Examples |
|
|
87
|
+
| ------------- | ------------- | ------------- | ------------- |
|
|
88
|
+
| FormJSON | string | stringa rappresentante il json del form da revisionare in REPAIR MODE |
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### EndPointConfiguration
|
|
94
|
+
|
|
95
|
+
example
|
|
96
|
+
```js
|
|
97
|
+
export class EndPointConfiguration {
|
|
98
|
+
Records: {
|
|
99
|
+
GetByFormIDEndPoint?: EndPointData;
|
|
100
|
+
GetAllByEntAndUserIDEndPoint?: EndPointData;
|
|
101
|
+
GetByIDEndPoint?: EndPointData;
|
|
102
|
+
SaveEndPoint?: EndPointData;
|
|
103
|
+
DuplicateEndPoint?: EndPointData;
|
|
104
|
+
DeleteEndPoint?: EndPointData;
|
|
105
|
+
RepairEndPoint?: EndPointData;
|
|
106
|
+
};
|
|
107
|
+
Forms: {
|
|
108
|
+
GetByIDEndPoint: EndPointData;
|
|
109
|
+
GetByIDAndVersionEndPoint: EndPointData;
|
|
110
|
+
SaveEndPoint: EndPointData;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### EndPointData
|
|
116
|
+
export class EndPointData {
|
|
117
|
+
Url: string;
|
|
118
|
+
Token?: string;
|
|
119
|
+
RequestMethod: RequestMethodEnum;
|
|
120
|
+
Params?: EndPointDataParams[];
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
### EndPointDataParams
|
|
124
|
+
export class EndPointDataParams {
|
|
125
|
+
ParamName: string;
|
|
126
|
+
ParamValue: any = null;
|
|
127
|
+
ParamType: ParamTypeEnum;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
### ParamTypeEnum
|
|
131
|
+
```js
|
|
132
|
+
export enum ParamTypeEnum {
|
|
133
|
+
"Query param" = 1,
|
|
134
|
+
"In route" = 2,
|
|
135
|
+
"In Body" = 3
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### RequestMethodEnum
|
|
140
|
+
|
|
141
|
+
```js
|
|
142
|
+
export enum RequestMethodEnum {
|
|
143
|
+
GET = 'GET',
|
|
144
|
+
POST = 'POST',
|
|
145
|
+
PUT = 'PUT',
|
|
146
|
+
DELETE = 'DELETE'
|
|
147
|
+
}
|
|
148
|
+
```
|
|
41
149
|
|
|
42
150
|
### Componenti privati
|
|
43
151
|
|