@eqproject/eqp-dynamic-module 2.10.100 → 2.10.102
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 +891 -880
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +25 -25
- package/esm2020/lib/components/private/action-button-creator/action-button-creator.component.mjs +3 -3
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +14 -14
- package/esm2020/lib/components/private/add-formula-field/add-formula-field.component.mjs +7 -7
- package/esm2020/lib/components/private/dbg-templates/list-value-dbg-template/list-value-dbg-template.component.mjs +3 -3
- package/esm2020/lib/components/private/dbgetter/dbgetter.component.mjs +5 -5
- package/esm2020/lib/components/private/dynamic-module-field-extra-fix/dynamic-module-field-extra-fix.component.mjs +5 -5
- package/esm2020/lib/components/private/field-templates/action-button-field-template/action-button-field-template.component.mjs +5 -5
- package/esm2020/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.mjs +10 -10
- package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +3 -3
- package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +16 -9
- package/esm2020/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +6 -6
- package/esm2020/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.mjs +6 -6
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +5 -5
- package/esm2020/lib/components/private/form-records/hlist-form-record/hlist-form-record.component.mjs +5 -5
- package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +10 -10
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +10 -10
- package/esm2020/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +32 -9
- package/esm2020/lib/components/private/form-statistics/filter-templates/boolean-filter-template/boolean-filter-template.component.mjs +7 -7
- package/esm2020/lib/components/private/form-statistics/filter-templates/date-filter-template/date-filter-template.component.mjs +7 -7
- package/esm2020/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.mjs +3 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.mjs +6 -6
- package/esm2020/lib/components/private/form-statistics/filter-templates/numeric-filter-template/numeric-filter-template.component.mjs +17 -10
- package/esm2020/lib/components/private/form-statistics/filter-templates/text-filter-template/text-filter-template.component.mjs +7 -7
- package/esm2020/lib/components/private/form-statistics/filter-templates/textarea-filter-template/textarea-filter-template.component.mjs +7 -7
- package/esm2020/lib/components/private/graphs/graphs.component.mjs +3 -3
- package/esm2020/lib/components/private/tmw-image-drawer/tmw-image-drawer.component.mjs +5 -5
- package/esm2020/lib/components/private/tmw-image-marker/tmw-image-marker.component.mjs +6 -6
- package/esm2020/lib/components/private/trigger-creator/trigger-creator.component.mjs +8 -8
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/boolean-trigger-template/boolean-trigger-template.component.mjs +3 -3
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/date-trigger-template/date-trigger-template.component.mjs +3 -3
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/list-value-trigger-template/list-value-trigger-template.component.mjs +3 -3
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/numeric-trigger-template/numeric-trigger-template.component.mjs +13 -6
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/text-trigger-template/text-trigger-template.component.mjs +7 -7
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/textarea-trigger-template/textarea-trigger-template.component.mjs +7 -7
- package/esm2020/lib/eqp-dynamic-module.module.mjs +18 -32
- package/esm2020/lib/models/dynAttachment.mjs +1 -1
- package/esm2020/lib/utils/google-fonts-injector.mjs +1 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +224 -193
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +223 -193
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +8 -8
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +9 -9
- package/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.d.ts +2 -2
- package/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.d.ts +2 -2
- package/lib/components/private/form-records/hlist-form-record/hlist-form-record.component.d.ts +2 -2
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +2 -2
- package/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.d.ts +2 -2
- package/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.d.ts +4 -3
- package/lib/components/private/form-statistics/filter-templates/numeric-filter-template/numeric-filter-template.component.d.ts +2 -2
- package/lib/components/private/trigger-creator/trigger-templates/numeric-trigger-template/numeric-trigger-template.component.d.ts +2 -2
- package/lib/eqp-dynamic-module.module.d.ts +6 -21
- package/lib/models/dynAttachment.d.ts +2 -2
- package/package.json +6 -13
package/README.md
CHANGED
|
@@ -1,880 +1,891 @@
|
|
|
1
|
-
# @eqproject/eqp-dynamic-module
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/@eqproject/eqp-dynamic-module)
|
|
4
|
-
[](https://angular.io/)
|
|
5
|
-
|
|
6
|
-
> Libreria Angular 15 per la creazione, visualizzazione e gestione di form dinamiche con configuratore no-code.
|
|
7
|
-
> Angular 15 library for building, rendering and managing dynamic forms with a no-code configurator.
|
|
8
|
-
|
|
9
|
-
📖 **[Guida utente / User Guide →](./USERGUIDE.md)**
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Changelog
|
|
14
|
-
|
|
15
|
-
### v2.10.
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
18
|
-
|
|
19
|
-
### v2.10.
|
|
20
|
-
- **
|
|
21
|
-
- **
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
- **
|
|
25
|
-
- **
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- **Bugfix
|
|
34
|
-
- **Bugfix
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- **Bugfix
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- **Bugfix loop infinito `onRecordChange`:**
|
|
43
|
-
- **Bugfix
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- **Bugfix
|
|
47
|
-
- **Bugfix
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
- **Bugfix `
|
|
52
|
-
- **Bugfix
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
- **
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
- **
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- **
|
|
65
|
-
- **
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
- **
|
|
70
|
-
- **
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- **
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
- **
|
|
78
|
-
- **
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- **
|
|
84
|
-
- **
|
|
85
|
-
|
|
86
|
-
### v2.10.
|
|
87
|
-
- **
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
### v2.10.
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
|
|
134
|
-
###
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
|
223
|
-
|
|
224
|
-
| `
|
|
225
|
-
| `
|
|
226
|
-
| `
|
|
227
|
-
| `
|
|
228
|
-
| `
|
|
229
|
-
| `
|
|
230
|
-
| `
|
|
231
|
-
| `
|
|
232
|
-
| `
|
|
233
|
-
| `
|
|
234
|
-
| `
|
|
235
|
-
| `
|
|
236
|
-
| `
|
|
237
|
-
| `
|
|
238
|
-
| `
|
|
239
|
-
| `
|
|
240
|
-
| `
|
|
241
|
-
| `
|
|
242
|
-
| `
|
|
243
|
-
| `
|
|
244
|
-
| `
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
|
249
|
-
|
|
250
|
-
| `
|
|
251
|
-
| `
|
|
252
|
-
| `
|
|
253
|
-
| `
|
|
254
|
-
| `
|
|
255
|
-
| `
|
|
256
|
-
| `
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
|
333
|
-
|
|
334
|
-
| `
|
|
335
|
-
| `
|
|
336
|
-
| `
|
|
337
|
-
| `
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
|
380
|
-
|
|
381
|
-
| `--conf-
|
|
382
|
-
| `--conf-
|
|
383
|
-
| `--conf-
|
|
384
|
-
| `--conf-
|
|
385
|
-
| `--conf-
|
|
386
|
-
| `--conf-
|
|
387
|
-
| `--conf-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
```
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
|
490
|
-
|
|
491
|
-
| `
|
|
492
|
-
| `
|
|
493
|
-
| `
|
|
494
|
-
| `
|
|
495
|
-
| `
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
|
502
|
-
|
|
503
|
-
| `
|
|
504
|
-
| `
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
---
|
|
549
|
-
|
|
550
|
-
###
|
|
551
|
-
|
|
552
|
-
```bash
|
|
553
|
-
npm install @
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
```
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
]
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
```
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
```
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
|
622
|
-
|
|
623
|
-
| `
|
|
624
|
-
| `
|
|
625
|
-
| `
|
|
626
|
-
| `
|
|
627
|
-
| `
|
|
628
|
-
| `
|
|
629
|
-
| `
|
|
630
|
-
| `
|
|
631
|
-
| `
|
|
632
|
-
| `
|
|
633
|
-
| `
|
|
634
|
-
| `
|
|
635
|
-
| `
|
|
636
|
-
| `
|
|
637
|
-
| `
|
|
638
|
-
| `
|
|
639
|
-
| `
|
|
640
|
-
| `
|
|
641
|
-
| `
|
|
642
|
-
| `
|
|
643
|
-
| `
|
|
644
|
-
| `
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
|
649
|
-
|
|
650
|
-
| `
|
|
651
|
-
| `
|
|
652
|
-
| `
|
|
653
|
-
| `
|
|
654
|
-
| `
|
|
655
|
-
| `
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
|
660
|
-
|
|
661
|
-
| `(
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
|
715
|
-
|
|
716
|
-
| `
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
|
721
|
-
|
|
722
|
-
| `
|
|
723
|
-
| `
|
|
724
|
-
| `
|
|
725
|
-
| `
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
|
767
|
-
|
|
768
|
-
| `--conf-
|
|
769
|
-
| `--conf-
|
|
770
|
-
| `--conf-
|
|
771
|
-
| `--conf-
|
|
772
|
-
| `--conf-
|
|
773
|
-
| `--conf-
|
|
774
|
-
| `--conf-
|
|
775
|
-
| `--conf-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
#### `
|
|
793
|
-
|
|
794
|
-
```typescript
|
|
795
|
-
const
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
```
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
|
866
|
-
|
|
867
|
-
| `
|
|
868
|
-
| `
|
|
869
|
-
| `
|
|
870
|
-
| `
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
|
877
|
-
|
|
878
|
-
| `
|
|
879
|
-
| `
|
|
880
|
-
| `
|
|
1
|
+
# @eqproject/eqp-dynamic-module
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@eqproject/eqp-dynamic-module)
|
|
4
|
+
[](https://angular.io/)
|
|
5
|
+
|
|
6
|
+
> Libreria Angular 15 per la creazione, visualizzazione e gestione di form dinamiche con configuratore no-code.
|
|
7
|
+
> Angular 15 library for building, rendering and managing dynamic forms with a no-code configurator.
|
|
8
|
+
|
|
9
|
+
📖 **[Guida utente / User Guide →](./USERGUIDE.md)**
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Changelog
|
|
14
|
+
|
|
15
|
+
### v2.10.102
|
|
16
|
+
- **Bugfix `ListValueField` (Combo box) — pulsante di cancellazione (X) sempre presente:** in `list-value-field-template`, il pulsante "X" di `tmw-select` era condizionato a `!field.Required` (nascosto sui campi obbligatori). Ora `showCancelButton` è sempre `true`, indipendentemente dall'obbligatorietà del campo: l'utente può sempre svuotare la selezione, anche su un campo required (la validazione `required` interviene comunque al salvataggio). Nessun cambio di API pubblica.
|
|
17
|
+
- **Bugfix `ListValueField` (Combo box) — cancel button (X) always present:** in `list-value-field-template`, the `tmw-select` "X" clear button was conditioned on `!field.Required` (hidden on required fields). `showCancelButton` is now always `true`, regardless of whether the field is required: the user can always clear the selection, and `required` validation still applies on save. No public API change.
|
|
18
|
+
|
|
19
|
+
### v2.10.101
|
|
20
|
+
- **Migrazione interna `eqp-table`/`eqp-attachments`/`eqp-numeric` → `tmw-table`/`tmw-attachments`/`tmw-numeric`:** le ultime tre dipendenze `@eqproject/eqp-*` sono state sostituite dalle librerie Material-free `tmw-*` (stesso lavoro già fatto per `eqp-select`/`eqp-datetimepicker` nelle versioni precedenti). Nessun cambio di API pubblica di questa libreria: i tag `<eqp-table>`/`<eqp-attachments>` erano già privati, i modelli `ConfigColumn`/`TypeColumn`/`DynAttachment` restano gli stessi nomi/forma. Chi consuma questa libreria non deve più installare `@eqproject/eqp-table`, `@eqproject/eqp-attachments`, `@eqproject/eqp-numeric` né `@eqproject/eqp-filters` (import morto, mai realmente usato).
|
|
21
|
+
- **Migrazione completa `<mat-icon>` → `<tmw-icon>`:** tutte le icone della libreria (inclusi i pulsanti del builder, i template di campo e le colonne azione delle tabelle) sono ora renderizzate dalla nuova libreria `tmw-icons` (SVG inline, icone vendorizzate da Tabler Icons, nessuna dipendenza dal font Material Icons). **Attenzione per chi ha form esistenti con icone personalizzate**: i campi di testo libero "Icona" (`IconName` su `TextField`/`NumericField`/`TextareaField`, `Icon` su `ActionButton`) si aspettavano nomi Material Icons (es. `search`, `home`, `euro`) — ora si aspettano nomi Tabler Icons (es. `search`, `user`, `currency-euro`); i nomi già salvati che non trovano corrispondenza esatta nel registro `tmw-icons` semplicemente non renderizzano l'icona (nessun errore a runtime, solo icona assente). Nessun impatto sul resto del form.
|
|
22
|
+
- **Pulizia dipendenze:** rimosse dalle `peerDependencies` `@angular-material-components/datetime-picker`, `@angular-material-components/moment-adapter` e `moment` (mai più necessarie dopo la migrazione a `tmw-picker`, completata in una versione precedente). Nuove dipendenze dirette: `tmw-attachments`, `tmw-icons`, `tmw-numeric`, `tmw-table`, `xlsx` (quest'ultima solo per l'export XLSX di `filter-form-statistic`, `tmw-table` non ha un formato XLSX nativo).
|
|
23
|
+
|
|
24
|
+
- **Internal migration `eqp-table`/`eqp-attachments`/`eqp-numeric` → `tmw-table`/`tmw-attachments`/`tmw-numeric`:** the last three `@eqproject/eqp-*` dependencies have been replaced with the Material-free `tmw-*` libraries (same work already done for `eqp-select`/`eqp-datetimepicker` in previous versions). No public API change in this library: the `<eqp-table>`/`<eqp-attachments>` tags were already private, the `ConfigColumn`/`TypeColumn`/`DynAttachment` models keep the same names/shape. Consumers of this library no longer need to install `@eqproject/eqp-table`, `@eqproject/eqp-attachments`, `@eqproject/eqp-numeric` or `@eqproject/eqp-filters` (dead import, never actually used).
|
|
25
|
+
- **Complete `<mat-icon>` → `<tmw-icon>` migration:** every icon in the library (including builder buttons, field templates and table action columns) is now rendered by the new `tmw-icons` library (inline SVG, icons vendored from Tabler Icons, no dependency on the Material Icons font). **Note for existing forms with custom icons**: the free-text "Icon" fields (`IconName` on `TextField`/`NumericField`/`TextareaField`, `Icon` on `ActionButton`) used to expect Material Icons names (e.g. `search`, `home`, `euro`) — they now expect Tabler Icons names (e.g. `search`, `user`, `currency-euro`); previously saved names with no exact match in the `tmw-icons` registry simply don't render the icon (no runtime error, just a missing icon). No impact on the rest of the form.
|
|
26
|
+
- **Dependency cleanup:** removed `@angular-material-components/datetime-picker`, `@angular-material-components/moment-adapter` and `moment` from `peerDependencies` (no longer needed after the `tmw-picker` migration, completed in a previous version). New direct dependencies: `tmw-attachments`, `tmw-icons`, `tmw-numeric`, `tmw-table`, `xlsx` (the latter only for `filter-form-statistic`'s XLSX export — `tmw-table` has no native XLSX format).
|
|
27
|
+
|
|
28
|
+
### v2.10.100
|
|
29
|
+
- **Cleanup — rimossi import morti di `@eqproject/eqp-datetimepicker` e `@eqproject/eqp-img-drawing`:** entrambi erano registrati nell'`NgModule` (`EqpDatetimepickerModule`, `EqpImgDrawingModule`) e in `trigger-creator.component.ts` (`PickerModeEnum`) ma non più usati da nessun template — sostituiti internamente da tempo da `tmw-datetimepicker` (campo Data) e da `tmw-image-drawer`/`tmw-image-marker` (campo Immagine con markers). Nessun impatto funzionale: build verificata anche con i due pacchetti fisicamente assenti da `node_modules`, per provare che non fossero più necessari. Chi consuma questa libreria non deve più installare `@eqproject/eqp-datetimepicker` né `@eqproject/eqp-img-drawing`.
|
|
30
|
+
- **Cleanup — removed dead imports of `@eqproject/eqp-datetimepicker` and `@eqproject/eqp-img-drawing`:** both were registered in the `NgModule` (`EqpDatetimepickerModule`, `EqpImgDrawingModule`) and in `trigger-creator.component.ts` (`PickerModeEnum`) but no longer used by any template — internally superseded a while ago by `tmw-datetimepicker` (Date field) and `tmw-image-drawer`/`tmw-image-marker` (Image with markers field). No functional impact: build verified even with both packages physically absent from `node_modules`, to prove they were no longer required. Consumers of this library no longer need to install `@eqproject/eqp-datetimepicker` or `@eqproject/eqp-img-drawing`.
|
|
31
|
+
|
|
32
|
+
### v2.10.99
|
|
33
|
+
- **Bugfix configurator — immagine persa su campo `Immagine`/`Immagine con markers`:** `catchButtonImageChange` e `catchButtonImageWithMarkersChange` in `add-form-field` leggevano l'indice sbagliato (`attachments[1]`) dell'array emesso da `eqp-attachments`. Al primo caricamento di un'immagine su un campo nuovo l'array ha un solo elemento, quindi `field.DynAttachment` veniva sovrascritto con `undefined`: l'immagine spariva riaprendo la modale di modifica campo e non compariva mai in anteprima. Corretto leggendo `attachments[attachments.length - 1]`.
|
|
34
|
+
- **Bugfix configurator — image lost on `Image`/`Image with markers` field:** `catchButtonImageChange` and `catchButtonImageWithMarkersChange` in `add-form-field` were reading the wrong index (`attachments[1]`) from the array emitted by `eqp-attachments`. On the first image upload to a new field the array has only one element, so `field.DynAttachment` was overwritten with `undefined`: the image disappeared when reopening the field edit dialog and never showed up in the preview. Fixed to read `attachments[attachments.length - 1]`.
|
|
35
|
+
|
|
36
|
+
### v2.10.87
|
|
37
|
+
- **Bugfix configurator — sezione "Generale" assente per 5 tipi di campo:** durante il lavoro di potenziamento grafico (v2.10.68–v2.10.70), i tipi `ActionButtonField`, `ImageField`, `ImageWithMarkersField`, `ListValueField` e `ImageSelectorField` avevano ricevuto la sezione "Grafica" nel tab "Stile Compilazione" del configuratore, ma la sezione "Generale" (Larghezza campo, Visibile, VisibleIf, Tooltip, Tipo di invisibilità , Mantieni il valore) era stata rimossa per errore. Ripristinata per tutti e 5 i tipi.
|
|
38
|
+
- **Bugfix configurator — "Generale" section missing for 5 field types:** during the graphical enhancement work (v2.10.68–v2.10.70), `ActionButtonField`, `ImageField`, `ImageWithMarkersField`, `ListValueField` and `ImageSelectorField` received the "Grafica" section in the configurator's "Stile Compilazione" tab, but the "Generale" section (field width, visibility, VisibleIf, tooltip, invisibility type, maintain value) was accidentally removed. Restored for all 5 field types.
|
|
39
|
+
|
|
40
|
+
### v2.10.86
|
|
41
|
+
- **Bugfix loop infinito `ListValueField`:** `FormControl.setValue()` notificava il callback `_onChange` del `NgModel` registrato tramite `[formControlName]` sul `mat-checkbox`, causando `ngModelChange` → `updateSelected()` → `setFormControlValue()` in ricorsione infinita. Aggiunto `{ emitModelToViewChange: false }` a `setFormControlValue()` per interrompere il ciclo. Fix correlati: `updateSelected()` ora restituisce `null` (non `[]`) per campi single-choice senza selezione, evitando instabilità Angular CD da `[] !== []`; `resetArrayData()` chiama `updateSelected(false)` per non emettere `recordChange` durante il rebuild delle opzioni; `updateField()` distingue formula-per-valore da formula-per-opzioni nei campi `DataGetterType=Formula`.
|
|
42
|
+
- **Bugfix loop infinito `onRecordChange`:** aggiunta guardia di rientranza `_recordChanging` con `try/finally` in `add-form-record.onRecordChange()` per prevenire ricorsione da campi formula concatenati (es. campo numerico → campo elenco valorizzato dalla formula del primo).
|
|
43
|
+
- **Bugfix loop in anteprima — `DynAttachment.ButtonKey` null:** nei template `image-field-template` e `image-with-markers-field-template`, la valutazione di `field.DynAttachment.ButtonKey` in `*ngIf` lanciava eccezione quando `DynAttachment` era `null` (campo senza immagine caricata), innescando un loop di Angular CD. Sostituito con `field.DynAttachment?.ButtonKey`.
|
|
44
|
+
- **Fix posizione dialog DataGetter:** la modale del Query Editor aperta con "Modifica" nel configuratore compariva a metà pagina. Aggiunti `position: { top: '20px' }` e `maxHeight: '90vh'` per allinearla al comportamento di tutte le altre dialog.
|
|
45
|
+
- **Bugfix infinite loop `ListValueField`:** `FormControl.setValue()` was notifying the `_onChange` callback of the `NgModel` registered via `[formControlName]` on `mat-checkbox`, causing `ngModelChange` → `updateSelected()` → `setFormControlValue()` in infinite recursion. Added `{ emitModelToViewChange: false }` to `setFormControlValue()` to break the cycle. Related fixes: `updateSelected()` now returns `null` (not `[]`) for single-choice fields with no selection, preventing Angular CD instability from `[] !== []`; `resetArrayData()` calls `updateSelected(false)` to avoid emitting `recordChange` during option rebuild; `updateField()` now distinguishes formula-for-value from formula-for-options in `DataGetterType=Formula` fields.
|
|
46
|
+
- **Bugfix infinite loop `onRecordChange`:** added `_recordChanging` re-entrancy guard with `try/finally` in `add-form-record.onRecordChange()` to prevent recursion from chained formula fields (e.g. numeric field → list field driven by the first field's formula).
|
|
47
|
+
- **Bugfix preview loop — `DynAttachment.ButtonKey` null:** in `image-field-template` and `image-with-markers-field-template`, evaluating `field.DynAttachment.ButtonKey` in `*ngIf` threw an exception when `DynAttachment` was `null` (field with no image loaded), triggering an Angular CD loop. Replaced with `field.DynAttachment?.ButtonKey`.
|
|
48
|
+
- **Fix DataGetter dialog position:** the Query Editor modal opened via "Modifica" in the configurator was appearing at mid-page. Added `position: { top: '20px' }` and `maxHeight: '90vh'` to align it with all other dialogs.
|
|
49
|
+
|
|
50
|
+
### v2.10.85
|
|
51
|
+
- **Bugfix loop infinito (approccio corretto):** il loop di v2.10.84 era asincrono: `setValue` chiama `writeValue` sui ControlValueAccessor di Angular Material che emettono eventi nel tick successivo, quando la guardia di rientranza era già rilasciata. Soluzione definitiva: il validator `required` ora legge direttamente da `record[field.Name]` tramite closure (anziché da `control.value`); in `onRecordChange()` viene chiamato `updateValueAndValidity({ emitEvent: false })` — che ri-esegue i validator senza invocare `writeValue` — eliminando alla radice ogni possibilità di cascade.
|
|
52
|
+
- **Bugfix infinite loop (correct approach):** the v2.10.84 loop was asynchronous: `setValue` calls `writeValue` on Angular Material ControlValueAccessors which emit events on the next tick, after the re-entrancy guard was already released. Definitive fix: the `required` validator now reads directly from `record[field.Name]` via closure (instead of `control.value`); `onRecordChange()` calls `updateValueAndValidity({ emitEvent: false })` — which re-runs validators without invoking `writeValue` — eliminating any cascade at the root.
|
|
53
|
+
|
|
54
|
+
### v2.10.84
|
|
55
|
+
- **Bugfix loop infinito `onRecordChange`:** la sincronizzazione dei `FormControl` introdotta in v2.10.83 causava un loop: `setValue` invoca `writeValue` sui ControlValueAccessor (es. `mat-datepicker`), che emettono `(dateChange)/(ngModelChange)` → `recordChange` → `onRecordChange` di nuovo, all'infinito. Aggiunta una guardia di rientranza (`_isInRecordChange`) con `try/finally` che interrompe il ciclo. La sincronizzazione dei FormControl resta attiva e la validazione required funziona correttamente.
|
|
56
|
+
- **Bugfix infinite loop `onRecordChange`:** the FormControl sync introduced in v2.10.83 caused an infinite loop: `setValue` calls `writeValue` on ControlValueAccessors (e.g. `mat-datepicker`), which emit `(dateChange)/(ngModelChange)` → `recordChange` → `onRecordChange` again, endlessly. Added a re-entrancy guard (`_isInRecordChange`) with `try/finally` that breaks the cycle. FormControl sync remains active and required validation works correctly.
|
|
57
|
+
|
|
58
|
+
### v2.10.83
|
|
59
|
+
- **Bugfix validazione form — campi obbligatori valorizzati via formula/ActionButton:** quando un campo con `required` veniva impostato tramite formula o ActionButton, il valore compariva visivamente ma il `FormControl` Angular rimaneva non aggiornato, lasciando il form invalido finché l'utente non interagiva manualmente col campo. Ora `onRecordChange()` risincronizza tutti i `FormControl` dal record dopo ogni aggiornamento formula, rendendo la validazione coerente con il valore visualizzato.
|
|
60
|
+
- **Bugfix form validation — required fields set via formula/ActionButton:** when a required field was populated by a formula or ActionButton, the value appeared visually but the Angular `FormControl` was never updated, keeping the form invalid until the user manually interacted with the field. `onRecordChange()` now re-syncs all `FormControl` values from the record after every formula update, making validation consistent with the displayed value.
|
|
61
|
+
|
|
62
|
+
### v2.10.81
|
|
63
|
+
- **Bugfix configurator — `DataGetter` null dopo decode Base64:** quando il campo `DataGetterValueBase64String` decodifica in un JSON con `DataGetter: null`, viene ora creato un oggetto `DataGetter` vuoto anziché proseguire con `null`, evitando errori a runtime nel configuratore.
|
|
64
|
+
- **Bugfix `add-form-record` — `actionButtons` null:** se l'input `actionButtons` arriva `null` al componente, viene ora inizializzato a un array vuoto prima del filtraggio, prevenendo un'eccezione al caricamento del record.
|
|
65
|
+
- **Bugfix configurator — `DataGetter` null after Base64 decode:** when `DataGetterValueBase64String` decodes to a JSON with `DataGetter: null`, a new empty `DataGetter` object is now created instead of proceeding with `null`, preventing runtime errors in the configurator.
|
|
66
|
+
- **Bugfix `add-form-record` — `actionButtons` null:** if the `actionButtons` input arrives as `null`, it is now initialized to an empty array before filtering, preventing an exception on record load.
|
|
67
|
+
|
|
68
|
+
### v2.10.79
|
|
69
|
+
- **DataGetter V2 — selezione automatica colonna singola:** quando il flusso V2 genera una sola `columnKey`, essa viene assegnata automaticamente a `DataGetterColumnForce` senza che l'utente debba selezionarla manualmente dalla dropdown.
|
|
70
|
+
- **DataGetter V2 — single column auto-selection:** when the V2 flow produces exactly one `columnKey`, it is automatically assigned to `DataGetterColumnForce` without requiring manual selection from the dropdown.
|
|
71
|
+
|
|
72
|
+
### v2.10.77
|
|
73
|
+
- **DataGetter V2 — `DataGetterColumnForce` come stringa:** `onAiDataGetterOut` ora salva `DataGetterColumnForce` come stringa chiave (non come oggetto), allineandosi al formato atteso da `eqp-select`. Il valore pre-selezionato nella dropdown compare automaticamente dopo il flusso AI.
|
|
74
|
+
- **DataGetter V2 — `DataGetterColumnForce` as string:** `onAiDataGetterOut` now stores `DataGetterColumnForce` as a key string (not as an object), matching the format expected by `eqp-select`. The pre-selected value in the dropdown appears automatically after the AI flow.
|
|
75
|
+
|
|
76
|
+
### v2.10.76
|
|
77
|
+
- **DataGetter V2 — `createColumnKeys` retrocompatibile:** `add-form-field` ora rileva `DataGetterCodeVersion=2` e legge `selectedFields` da `queryCommandDatabaseConfiguration.selectedFields` invece che dal livello radice; fallback su `PropertyName` se `CurrentTranslate` è assente.
|
|
78
|
+
- **DataGetter V2 — `createColumnKeys` backward-compatible:** `add-form-field` now detects `DataGetterCodeVersion=2` and reads `selectedFields` from `queryCommandDatabaseConfiguration.selectedFields` instead of the root level; falls back to `PropertyName` when `CurrentTranslate` is missing.
|
|
79
|
+
|
|
80
|
+
### v2.10.74 / v2.10.75
|
|
81
|
+
- **DataGetter AI — nuova modalità "Da database" (DataGetterType=3):** aggiunto campo `DataGetterSpeechText` nel modello `DataGetter`. Il configurator AI può creare campi con recupero dati da database impostando un prompt testuale: al caricamento del form, il componente QueryEditor esterno viene invocato silenziosamente, elabora il prompt via AI e popola automaticamente `DataGetterValue`, `DataGetterCardinality=1`, `DataGetterHasResetButton=true` e `DataGetterColumnForce` (se il risultato ha un solo campo selezionato).
|
|
82
|
+
- **DataGetterCodeVersion V2 — retrocompatibilità in lettura:** il `DbgetterComponent` rileva automaticamente i campi con `DataGetterCodeVersion=2` (formato Omnisearch AI) ed esegue un unwrap trasparente della struttura `queryCommandDatabaseConfiguration` al formato V1, senza impatto sui campi legacy. Il `DataGetterCodeVersion=2` viene propagato al componente QueryEditor esterno tramite `config.DataGetterCodeVersion` per consentire al client ospitante di attivare il flusso V2 in lettura.
|
|
83
|
+
- **AI DataGetter — new "Da database" mode (DataGetterType=3):** added `DataGetterSpeechText` field to the `DataGetter` model. The AI configurator can create database-getter fields with a natural-language prompt: on form load, the external QueryEditor component is invoked silently, processes the prompt via AI and automatically populates `DataGetterValue`, `DataGetterCardinality=1`, `DataGetterHasResetButton=true` and `DataGetterColumnForce` (if a single output field is returned).
|
|
84
|
+
- **DataGetterCodeVersion V2 — backward-compatible read flow:** `DbgetterComponent` now auto-detects fields with `DataGetterCodeVersion=2` (Omnisearch AI format) and transparently unwraps the `queryCommandDatabaseConfiguration` structure to the V1 format, with zero impact on legacy fields. `DataGetterCodeVersion=2` is forwarded to the external QueryEditor component via `config.DataGetterCodeVersion` to enable the V2 read flow on the host application side.
|
|
85
|
+
|
|
86
|
+
### v2.10.70
|
|
87
|
+
- **Theming configurator — nuovi input:** aggiunto `[configuratorThemeCss]` che accetta direttamente il testo di un file CSS con le dichiarazioni delle variabili `--conf-*`. Permette di portare il tema dall'esterno come file statico senza hardcodare valori TypeScript. Se entrambi gli input sono presenti, `configuratorTheme` sovrascrive `configuratorThemeCss` per le chiavi in conflitto.
|
|
88
|
+
- **Theming configurator — nuove variabili CSS:** `--conf-stepper-header-bg` (sfondo zona step superiore), `--conf-stepper-content-bg` (sfondo zona inferiore), `--conf-step-icon-edit-bg` (sfondo pallini step completati), `--conf-hint-btn-bg` / `--conf-hint-btn-hover-bg` (bottone suggerimento rapido), `--conf-btn-color` (colore testo bottoni con sfondo gradiente).
|
|
89
|
+
- **Theming configurator — forzatura `!important`:** tutti i valori iniettati tramite tema esterno sono ora applicati con `!important`, rendendo il sistema di theming l'unico canale valido per sovrascrivere i colori.
|
|
90
|
+
- **Theming configurator — `--conf-btn-color`:** il colore del testo dei bottoni attivi (sfondo gradiente) è ora templatizzabile e forzato con `!important` per resistere a override CSS provenienti dall'applicazione ospitante.
|
|
91
|
+
- **New theming input:** added `[configuratorThemeCss]` accepting a CSS text string with `--conf-*` variable declarations. Enables external theme files without TypeScript hardcoding. When both inputs are present, `configuratorTheme` overrides `configuratorThemeCss` for conflicting keys.
|
|
92
|
+
- **New CSS variables:** `--conf-stepper-header-bg`, `--conf-stepper-content-bg`, `--conf-step-icon-edit-bg`, `--conf-hint-btn-bg`, `--conf-hint-btn-hover-bg`, `--conf-btn-color`.
|
|
93
|
+
- **`!important` enforcement:** all externally-injected theme values are now set with `!important`, making the theming system the sole valid override channel.
|
|
94
|
+
|
|
95
|
+
### v2.10.65
|
|
96
|
+
- **TextField — icona opzionale:** aggiunta la possibilità di associare un'icona Material Icons al campo di testo. Le nuove proprietà `IconName` (stringa) e `IconPosition` (enum: `1`=Sinistra/prefix, `2`=Destra/suffix) sono opzionali e retrocompatibili (null sui form esistenti). Configurabili nel builder tramite il toggle "Icona" nella sezione Specifiche del campo.
|
|
97
|
+
- **TextField — optional icon:** added support for a Material Icons icon on text fields. New properties `IconName` (string) and `IconPosition` (enum: `1`=Left/prefix, `2`=Right/suffix) are optional and backward-compatible (null on existing forms). Configurable in the builder via the "Icona" toggle in the field's Specifiche section.
|
|
98
|
+
|
|
99
|
+
### v2.10.64
|
|
100
|
+
- **Bugfix configurator:** se il campo `Code` del form risulta `null` al momento del salvataggio (scenario: form creato con AI senza salvataggio intermedio), ora viene generato automaticamente da `Name` prima dell'invio al server.
|
|
101
|
+
|
|
102
|
+
### v2.10.63
|
|
103
|
+
- README riscritto in formato bilingue (italiano completo + inglese completo).
|
|
104
|
+
- Aggiunto `USERGUIDE.md` con guida pratica per scenari d'uso comuni e sezione prompt AI di esempio.
|
|
105
|
+
- `USERGUIDE.md` incluso nel pacchetto npm tramite `ng-package.json` assets.
|
|
106
|
+
|
|
107
|
+
### v2.10.62
|
|
108
|
+
- Migrazione da `tmw-picker` 1.0.x a 1.1.0: NgModule → standalone components, moment.js → Luxon, aggiornamento di tutti i token formato data (`DD/MM/YYYY` → `dd/MM/yyyy`).
|
|
109
|
+
- Rimossi input inutilizzati: `answerToDuplicateId` da `eqp-dynamic-module`, `ProjectName` da `eqp-dynamic-module-configurator`.
|
|
110
|
+
- Documentazione NPM riscritta completamente (bilingue IT/EN).
|
|
111
|
+
|
|
112
|
+
### v2.10.60
|
|
113
|
+
- Aggiornamenti interni e correzioni bug.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Versione italiana
|
|
118
|
+
|
|
119
|
+
- [Panoramica](#panoramica)
|
|
120
|
+
- [Prerequisiti](#prerequisiti)
|
|
121
|
+
- [Installazione](#installazione)
|
|
122
|
+
- [Configurazione del modulo](#configurazione-del-modulo)
|
|
123
|
+
- [Componenti](#componenti)
|
|
124
|
+
- [eqp-dynamic-module — Visualizzatore form](#eqp-dynamic-module--visualizzatore-form)
|
|
125
|
+
- [eqp-dynamic-module-configurator — Builder form](#eqp-dynamic-module-configurator--builder-form)
|
|
126
|
+
- [Modelli di configurazione](#modelli-di-configurazione)
|
|
127
|
+
- [Modalità di visualizzazione](#modalità -di-visualizzazione)
|
|
128
|
+
- [Configurazione endpoint](#configurazione-endpoint)
|
|
129
|
+
- [Modelli dati](#modelli-dati)
|
|
130
|
+
- [Tipi di campo](#tipi-di-campo)
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
### Panoramica
|
|
135
|
+
|
|
136
|
+
`@eqproject/eqp-dynamic-module` espone **due componenti pubblici**:
|
|
137
|
+
|
|
138
|
+
| Componente | Scopo |
|
|
139
|
+
|-----------|-------|
|
|
140
|
+
| `<eqp-dynamic-module>` | Visualizzatore, compilatore, lista, filtro e grafici a runtime |
|
|
141
|
+
| `<eqp-dynamic-module-configurator>` | Builder no-code per creare e modificare le definizioni form |
|
|
142
|
+
|
|
143
|
+
Le form sono strutture JSON salvate lato server e recuperate a runtime. La libreria gestisce rendering, validazione, recupero dati, operazioni CRUD e funzionalità avanzate come formule, trigger, action button e speech-to-text.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
### Prerequisiti
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
npm install @angular/cdk@^15.1.2 @angular/material@^15.1.2 @angular/material-luxon-adapter@^15.2.9 --legacy-peer-deps
|
|
151
|
+
npm install sweetalert2@^11.4.24 --legacy-peer-deps
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
> Tutti i comandi `npm install` per questa libreria richiedono il flag `--legacy-peer-deps`.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
### Installazione
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
npm install @eqproject/eqp-dynamic-module --legacy-peer-deps
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
### Configurazione del modulo
|
|
167
|
+
|
|
168
|
+
```typescript
|
|
169
|
+
import { EqpDynamicModuleModule } from '@eqproject/eqp-dynamic-module';
|
|
170
|
+
|
|
171
|
+
@NgModule({
|
|
172
|
+
imports: [
|
|
173
|
+
EqpDynamicModuleModule
|
|
174
|
+
]
|
|
175
|
+
})
|
|
176
|
+
export class AppModule {}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
In `angular.json`, aggiungi il tema Material agli stili:
|
|
180
|
+
|
|
181
|
+
```json
|
|
182
|
+
"styles": [
|
|
183
|
+
"node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
|
|
184
|
+
"src/styles.css"
|
|
185
|
+
]
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### Componenti
|
|
191
|
+
|
|
192
|
+
#### `eqp-dynamic-module` — Visualizzatore form
|
|
193
|
+
|
|
194
|
+
Visualizza una form dinamica in una delle [modalità disponibili](#modalità -di-visualizzazione).
|
|
195
|
+
|
|
196
|
+
**Utilizzo base**
|
|
197
|
+
|
|
198
|
+
```typescript
|
|
199
|
+
import { DynamicModuleGeneralConfig, DynamicModuleViewModeEnum } from '@eqproject/eqp-dynamic-module';
|
|
200
|
+
|
|
201
|
+
generalConfig = new DynamicModuleGeneralConfig(
|
|
202
|
+
'https://tua-api.esempio.it/api',
|
|
203
|
+
this.userToken,
|
|
204
|
+
this.context,
|
|
205
|
+
null
|
|
206
|
+
);
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
```html
|
|
210
|
+
<eqp-dynamic-module
|
|
211
|
+
[configurations]="generalConfig"
|
|
212
|
+
[formID]="'id-del-form'"
|
|
213
|
+
[starterViewMode]="DynamicModuleViewModeEnum.LIST"
|
|
214
|
+
[userID]="currentUser.id"
|
|
215
|
+
(saveRecord)="onSalvataggio($event)"
|
|
216
|
+
(afterSaveRecord)="dopoSalvataggio($event)">
|
|
217
|
+
</eqp-dynamic-module>
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**Input**
|
|
221
|
+
|
|
222
|
+
| Input | Tipo | Default | Descrizione |
|
|
223
|
+
|-------|------|---------|-------------|
|
|
224
|
+
| `configurations` | `DynamicModuleGeneralConfig` | — | **Obbligatorio.** Configurazione connessione server. |
|
|
225
|
+
| `formID` | `string` | — | **Obbligatorio.** ID del form da visualizzare. |
|
|
226
|
+
| `starterViewMode` | `DynamicModuleViewModeEnum` | `LIST` | Modalità iniziale. |
|
|
227
|
+
| `userID` | `string` | `"0"` | ID utente per il salvataggio record. |
|
|
228
|
+
| `orgaID` | `string` | `"0"` | ID organizzazione. |
|
|
229
|
+
| `showTitle` | `boolean` | `true` | Mostra/nasconde il nome del form. |
|
|
230
|
+
| `showBackButton` | `boolean` | `true` | Mostra/nasconde il pulsante indietro. |
|
|
231
|
+
| `showSaveButton` | `boolean` | `true` | Mostra/nasconde il pulsante salva. |
|
|
232
|
+
| `values` | `Record[]` | `null` | Record pre-caricati per la modalità LIST. |
|
|
233
|
+
| `FormJSON` | `string` | `""` | JSON del form per la modalità REPAIR. |
|
|
234
|
+
| `formulaObject` | `any` | `{}` | Oggetto contesto per le formule (es. `{ role, user }`). |
|
|
235
|
+
| `selectedRecord` | `Record \| string` | `null` | Record pre-selezionato (oggetto o ID). |
|
|
236
|
+
| `externalButtons` | `RecordButton[]` | `[]` | Pulsanti extra nel menu azioni record. |
|
|
237
|
+
| `actionButtons` | `ActionButton[]` | `[]` | Pulsanti azione per i campi di tipo `Bottone`. |
|
|
238
|
+
| `defaultListActions` | `DynamicModuleListFormRecordActionsDefault` | tutti `true` | Azioni default lista: add, view, edit, duplicate, delete, graphs. |
|
|
239
|
+
| `listViewRecordTitle` | `string[]` | `[]` | Chiavi dei campi che compongono il titolo accordion. |
|
|
240
|
+
| `defaultListViewFunction` | `Function` | `null` | Funzione custom al caricamento della lista. |
|
|
241
|
+
| `onSaveBackToList` | `boolean` | `false` | Torna alla LIST dopo il salvataggio. |
|
|
242
|
+
| `onBackTo` | `DynamicModuleViewModeEnum` | `null` | Modalità di destinazione del pulsante indietro. |
|
|
243
|
+
| `numberOfColumns` | `number` | `3` | Numero di colonne del layout. |
|
|
244
|
+
| `showHiddenFields` | `boolean` | `true` | Mostra/nasconde i campi marcati come nascosti. |
|
|
245
|
+
| `filterResultViewMode` | `DynamicModuleFilterResultViewModeEnum` | `INTERNAL_EQPTABLE` | Modalità visualizzazione risultati filtro. |
|
|
246
|
+
| `additionalParams` | `any` | `null` | Parametri extra per le chiamate filtro server. |
|
|
247
|
+
| `additionalInfo` | `any` | `null` | Dati extra per operazioni client-side. |
|
|
248
|
+
| `prefilterParams` | `any` | `null` | Parametri pre-filtro. |
|
|
249
|
+
| `updateInfo` | `any` | `null` | Dati per aggiornare i valori delle risposte. |
|
|
250
|
+
| `contestualizationParams` | `any` | `null` | Parametri di contestualizzazione della lista risultati. |
|
|
251
|
+
| `showNewSearchButton` | `boolean` | `true` | Mostra/nasconde il pulsante "nuova ricerca". |
|
|
252
|
+
| `highlightFilter` | `any` | — | Configurazione evidenziazione righe/campi. |
|
|
253
|
+
| `isDraggableListView` | `boolean` | `true` | Abilita drag-and-drop nella lista. |
|
|
254
|
+
| `Statistic` | `FilterStatistic` | `null` | Configurazione statistiche e filtri. |
|
|
255
|
+
| `QueryEditorComponent` | `any` | — | Componente query editor custom per i lookup. |
|
|
256
|
+
| `debugMode` | `boolean` | `false` | Abilita log dettagliati in console. |
|
|
257
|
+
|
|
258
|
+
**Output**
|
|
259
|
+
|
|
260
|
+
| Output | Payload | Descrizione |
|
|
261
|
+
|--------|---------|-------------|
|
|
262
|
+
| `(saveRecord)` | `Record` | Emesso al salvataggio **senza** endpoint configurato. |
|
|
263
|
+
| `(afterSaveRecord)` | `Record` | Emesso dopo la chiamata server di salvataggio. |
|
|
264
|
+
| `(deleteRecord)` | `Record` | Emesso all'eliminazione **senza** endpoint configurato. |
|
|
265
|
+
| `(afterDeleteRecord)` | `Record` | Emesso dopo la chiamata server di eliminazione. |
|
|
266
|
+
| `(SaveJSON)` | `string` | Emesso all'esportazione del JSON del form. |
|
|
267
|
+
| `(afterFilter)` | `DynRecord[]` | Emesso dopo l'applicazione di un filtro. |
|
|
268
|
+
| `(dragStarted)` | `Record` | Emesso all'inizio di un drag. |
|
|
269
|
+
| `(dragReleased)` | `void` | Emesso al rilascio del drag. |
|
|
270
|
+
| `(clickDragIndicator)` | `Record` | Emesso al click sull'icona drag. |
|
|
271
|
+
| `(out)` | `eventOut` | Output generico per comunicazione esterna. |
|
|
272
|
+
| `(fireTrigger)` | `FireTrigger` | Emesso quando scatta un trigger. |
|
|
273
|
+
| `(afterOutputExternalFilters)` | `FilterStatistic` | Emesso dopo filtri esterni applicati. |
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
#### `eqp-dynamic-module-configurator` — Builder form
|
|
278
|
+
|
|
279
|
+
Designer no-code per creare e modificare definizioni form.
|
|
280
|
+
|
|
281
|
+
**Modalità d'uso**
|
|
282
|
+
|
|
283
|
+
```typescript
|
|
284
|
+
// Nuovo form
|
|
285
|
+
const specific = new DynamicModuleConfiguratorSpecificConfig();
|
|
286
|
+
specific.UserID = this.currentUser.id;
|
|
287
|
+
specific.orgaID = this.currentOrga.id;
|
|
288
|
+
const general = new DynamicModuleGeneralConfig(this.baseServerUrl, this.userToken, this.context, null);
|
|
289
|
+
this.config = new DynamicModuleConfiguratorConfig(general, specific);
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
```html
|
|
293
|
+
<!-- Nuovo form -->
|
|
294
|
+
<eqp-dynamic-module-configurator
|
|
295
|
+
*ngIf="config"
|
|
296
|
+
[configurations]="config"
|
|
297
|
+
(saveFormEvent)="onSalvaForm($event)">
|
|
298
|
+
</eqp-dynamic-module-configurator>
|
|
299
|
+
|
|
300
|
+
<!-- Modifica form esistente -->
|
|
301
|
+
<eqp-dynamic-module-configurator
|
|
302
|
+
*ngIf="config"
|
|
303
|
+
[configurations]="config"
|
|
304
|
+
[formID]="formID"
|
|
305
|
+
(saveFormEvent)="onSalvaForm($event)">
|
|
306
|
+
</eqp-dynamic-module-configurator>
|
|
307
|
+
|
|
308
|
+
<!-- Esportazione -->
|
|
309
|
+
<eqp-dynamic-module-configurator
|
|
310
|
+
[configurations]="config"
|
|
311
|
+
[formID]="formID"
|
|
312
|
+
[viewMode]="'Export'"
|
|
313
|
+
(saveFormEvent)="onSalvaForm($event)">
|
|
314
|
+
</eqp-dynamic-module-configurator>
|
|
315
|
+
|
|
316
|
+
<!-- Importazione da JSON -->
|
|
317
|
+
<eqp-dynamic-module-configurator
|
|
318
|
+
[configurations]="config"
|
|
319
|
+
[formID]="null"
|
|
320
|
+
[viewMode]="'Export'"
|
|
321
|
+
(saveFormEvent)="onSalvaForm($event)">
|
|
322
|
+
</eqp-dynamic-module-configurator>
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
**Input**
|
|
326
|
+
|
|
327
|
+
| Input | Tipo | Default | Descrizione |
|
|
328
|
+
|-------|------|---------|-------------|
|
|
329
|
+
| `configurations` | `DynamicModuleConfiguratorConfig` | — | **Obbligatorio.** Contenitore configurazione. |
|
|
330
|
+
| `formID` | `string` | `null` | ID del form da modificare. `null` crea un nuovo form. |
|
|
331
|
+
| `viewMode` | `string` | `"addOrEdit"` | `"addOrEdit"` per creare/modificare, `"Export"` per esportare/importare. |
|
|
332
|
+
| `fieldsExtraConfig` | `FieldExtraConfig[]` | — | Configurazione extra per campi specifici. |
|
|
333
|
+
| `triggers` | `any` | — | Definizioni trigger disponibili nell'editor. |
|
|
334
|
+
| `actionButtons` | `any` | — | Definizioni action button disponibili. |
|
|
335
|
+
| `contestualization` | `Contestualization[]` | — | Opzioni di contestualizzazione per lookup e filtri. |
|
|
336
|
+
| `formulaObject` | `any` | — | Contesto per l'anteprima delle formule. |
|
|
337
|
+
| `QueryEditorComponent` | `DynamicLoaderDirectiveData` | — | Componente query editor custom. |
|
|
338
|
+
| `debugMode` | `boolean` | `false` | Abilita log dettagliati. |
|
|
339
|
+
| `configuratorTheme` | `Record<string, string> \| null` | `null` | Override delle variabili CSS del tema tramite oggetto TypeScript. |
|
|
340
|
+
| `configuratorThemeCss` | `string \| null` | `null` | Override delle variabili CSS del tema tramite stringa CSS (es. contenuto di un file `.css`). |
|
|
341
|
+
|
|
342
|
+
**Output**
|
|
343
|
+
|
|
344
|
+
| Output | Payload | Descrizione |
|
|
345
|
+
|--------|---------|-------------|
|
|
346
|
+
| `(saveFormEvent)` | `Form` | Emesso al salvataggio **senza** endpoint configurato. |
|
|
347
|
+
| `(afterSaveFormEvent)` | `Form` | Emesso dopo la chiamata server di salvataggio. |
|
|
348
|
+
| `(out)` | `eventOut` | Output generico per comunicazione esterna. |
|
|
349
|
+
| `(fireTrigger)` | `FireTrigger` | Emesso quando scatta un trigger. |
|
|
350
|
+
|
|
351
|
+
**Theming**
|
|
352
|
+
|
|
353
|
+
Il configurator espone un sistema di temi basato su CSS custom properties. Tutti i valori iniettati tramite tema sono applicati con `!important` e non possono essere sovrascritti dall'esterno se non attraverso questi input.
|
|
354
|
+
|
|
355
|
+
```html
|
|
356
|
+
<!-- Opzione A: oggetto TypeScript -->
|
|
357
|
+
<eqp-dynamic-module-configurator
|
|
358
|
+
[configurations]="config"
|
|
359
|
+
[configuratorTheme]="{ '--conf-gradient': 'linear-gradient(to right, #1565c0, #0288d1)', '--conf-bg-page': '#f0f6fb' }">
|
|
360
|
+
</eqp-dynamic-module-configurator>
|
|
361
|
+
|
|
362
|
+
<!-- Opzione B: file CSS caricato come stringa -->
|
|
363
|
+
<eqp-dynamic-module-configurator
|
|
364
|
+
[configurations]="config"
|
|
365
|
+
[configuratorThemeCss]="themeCssString">
|
|
366
|
+
</eqp-dynamic-module-configurator>
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
Formato del file CSS per `configuratorThemeCss` (nessun selettore richiesto):
|
|
370
|
+
|
|
371
|
+
```css
|
|
372
|
+
--conf-gradient: linear-gradient(to right, #1565c0, #0288d1);
|
|
373
|
+
--conf-bg-page: #f0f6fb;
|
|
374
|
+
--conf-btn-color: #ffffff;
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
Variabili disponibili:
|
|
378
|
+
|
|
379
|
+
| Variabile | Default | Descrizione |
|
|
380
|
+
|-----------|---------|-------------|
|
|
381
|
+
| `--conf-gradient` | gradiente viola-blu | Sfondo bottoni e header |
|
|
382
|
+
| `--conf-bg-page` | `#f5f5f5` | Sfondo generale pagina/stepper |
|
|
383
|
+
| `--conf-radius` | `10px` | Border radius bottoni |
|
|
384
|
+
| `--conf-modal-radius` | `12px` | Border radius modali |
|
|
385
|
+
| `--conf-accent` | `#693DDA` | Colore accento (bordi, focus) |
|
|
386
|
+
| `--conf-primary` | `#1E31EB` | Colore primario |
|
|
387
|
+
| `--conf-step-selected` | `#643cda` | Freccia step selezionato |
|
|
388
|
+
| `--conf-step-edit` | `#3034e7` | Freccia step completato |
|
|
389
|
+
| `--conf-stepper-header-bg` | ereditato da `--conf-bg-page` | Sfondo zona superiore (header stepper) |
|
|
390
|
+
| `--conf-stepper-content-bg` | ereditato da `--conf-bg-page` | Sfondo zona inferiore (form e bottoni) |
|
|
391
|
+
| `--conf-step-icon-edit-bg` | ereditato da `--conf-step-edit` | Sfondo pallini step completati |
|
|
392
|
+
| `--conf-btn-color` | `#ffffff` | Colore testo bottoni attivi (sfondo gradiente) |
|
|
393
|
+
| `--conf-hint-btn-bg` | `#2563eb` | Sfondo bottone suggerimento rapido (lampadina) |
|
|
394
|
+
| `--conf-hint-btn-hover-bg` | `#1d4ed8` | Sfondo lampadina al hover |
|
|
395
|
+
| `--conf-table-header-bg` | variabile SCSS | Sfondo header tabella campi |
|
|
396
|
+
| `--conf-search-bg` | variabile SCSS | Sfondo campo di ricerca |
|
|
397
|
+
| `--conf-table-bg` | `#ffffff` | Sfondo righe tabella |
|
|
398
|
+
| `--conf-card-bg` | `#ffffff` | Sfondo card |
|
|
399
|
+
| `--conf-font-family` | `inherit` | Font dell'intero configurator |
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
### Modelli di configurazione
|
|
404
|
+
|
|
405
|
+
#### `DynamicModuleGeneralConfig`
|
|
406
|
+
|
|
407
|
+
```typescript
|
|
408
|
+
const general = new DynamicModuleGeneralConfig(
|
|
409
|
+
'https://api.esempio.it/api', // baseServerUrl
|
|
410
|
+
userToken, // token autenticazione
|
|
411
|
+
context, // oggetto Context
|
|
412
|
+
null // EndPointConfiguration (null = usa default)
|
|
413
|
+
);
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
| Proprietà | Tipo | Descrizione |
|
|
417
|
+
|-----------|------|-------------|
|
|
418
|
+
| `baseServerUrl` | `string` | URL base API. Usato per costruire automaticamente gli endpoint se `endPointConfiguration` è `null`. |
|
|
419
|
+
| `userToken` | `string` | Token di autenticazione inviato con ogni chiamata. |
|
|
420
|
+
| `endPointConfiguration` | `EndPointConfiguration \| null` | Override completo degli endpoint. `null` usa le rotte standard. |
|
|
421
|
+
| `context` | `Context` | Contesto applicativo. |
|
|
422
|
+
|
|
423
|
+
#### `DynamicModuleListFormRecordActionsDefault`
|
|
424
|
+
|
|
425
|
+
```typescript
|
|
426
|
+
const actions = new DynamicModuleListFormRecordActionsDefault();
|
|
427
|
+
actions.add = true; // Pulsante "Aggiungi" nell'header lista
|
|
428
|
+
actions.view = true; // Visualizza record (solo lettura)
|
|
429
|
+
actions.edit = true; // Modifica record
|
|
430
|
+
actions.duplicate = false; // Duplica record
|
|
431
|
+
actions.delete = true; // Elimina record
|
|
432
|
+
actions.graphs = false; // Grafici record
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
---
|
|
436
|
+
|
|
437
|
+
### Modalità di visualizzazione
|
|
438
|
+
|
|
439
|
+
```typescript
|
|
440
|
+
import { DynamicModuleViewModeEnum } from '@eqproject/eqp-dynamic-module';
|
|
441
|
+
|
|
442
|
+
enum DynamicModuleViewModeEnum {
|
|
443
|
+
NONE = 0, // Nessuna visualizzazione
|
|
444
|
+
VIEW = 1, // Sola lettura
|
|
445
|
+
COMPILE = 2, // Compilazione / modifica
|
|
446
|
+
LIST = 3, // Lista record
|
|
447
|
+
REPAIR = 4, // Revisione form
|
|
448
|
+
LISTWIEW = 5, // Lista compatta alternativa
|
|
449
|
+
FILTER = 6, // Filtro / ricerca
|
|
450
|
+
GRAPHS = 7, // Statistiche e grafici
|
|
451
|
+
HLIST = 8, // Lista orizzontale
|
|
452
|
+
EXTERNAL_FILTER = 9 // Filtro guidato dal componente padre
|
|
453
|
+
}
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
### Configurazione endpoint
|
|
459
|
+
|
|
460
|
+
Per default la libreria costruisce tutti gli URL dagli endpoint a partire da `baseServerUrl`. Passa un `EndPointConfiguration` custom per sovrascrivere singole rotte.
|
|
461
|
+
|
|
462
|
+
```typescript
|
|
463
|
+
import { EndPointConfiguration, EndPointData, RequestMethodEnum, ParamTypeEnum } from '@eqproject/eqp-dynamic-module';
|
|
464
|
+
|
|
465
|
+
const endPoints = new EndPointConfiguration();
|
|
466
|
+
endPoints.Records.SaveEndPoint = new EndPointData();
|
|
467
|
+
endPoints.Records.SaveEndPoint.Url = 'https://custom-api.esempio.it/records/save';
|
|
468
|
+
endPoints.Records.SaveEndPoint.RequestMethod = RequestMethodEnum.POST;
|
|
469
|
+
endPoints.Records.SaveEndPoint.Params = [{
|
|
470
|
+
ParamName: 'orgId',
|
|
471
|
+
ParamValue: this.orgaId,
|
|
472
|
+
ParamType: ParamTypeEnum['Query param']
|
|
473
|
+
}];
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
**Endpoint Records disponibili:** `GetWithContextualizationByFormCodeEndPoint`, `GetByFormIDEndPoint`, `GetByFormCodeEndPoint`, `GetAllByEntAndUserIDEndPoint`, `GetByIDEndPoint`, `SaveEndPoint`, `DuplicateEndPoint`, `DeleteEndPoint`, `RepairEndPoint`, `ApplyFilter`, `GetAllAttachmentsEndPoint`.
|
|
477
|
+
|
|
478
|
+
**Endpoint Forms disponibili:** `GetByIDEndPoint`, `GetAllFormEndPoint`, `GetByIDAndVersionEndPoint`, `SaveEndPoint`, `SaveAttachmentEndPoint`, `ExportByIDEndPoint`, `GetAttachmentWithBases64`, `SpeechToFormEditEndPoint`.
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
### Modelli dati
|
|
483
|
+
|
|
484
|
+
#### `Record`
|
|
485
|
+
|
|
486
|
+
| Proprietà | Tipo | Descrizione |
|
|
487
|
+
|-----------|------|-------------|
|
|
488
|
+
| `ID` | `string` | Identificatore unico. |
|
|
489
|
+
| `EntID` | `string` | ID del form (entità ) di appartenenza. |
|
|
490
|
+
| `Version` | `number` | Versione del form al momento della compilazione. |
|
|
491
|
+
| `userID` | `string` | ID utente che ha creato il record. |
|
|
492
|
+
| `AnswerDate` | `string` | Data di compilazione (ISO). |
|
|
493
|
+
| `HTMLreadableValues` | `string` | Valori in formato HTML leggibile. |
|
|
494
|
+
| `AdditionalParams` | `any` | Parametri aggiuntivi. |
|
|
495
|
+
| `AdditionalInfo` | `any` | Informazioni aggiuntive. |
|
|
496
|
+
|
|
497
|
+
---
|
|
498
|
+
|
|
499
|
+
### Tipi di campo
|
|
500
|
+
|
|
501
|
+
| Valore | Chiave | Descrizione |
|
|
502
|
+
|--------|--------|-------------|
|
|
503
|
+
| `1` | `Campo di testo` | Input testo singola riga. |
|
|
504
|
+
| `2` | `Area di testo` | Textarea multiriga. |
|
|
505
|
+
| `3` | `Booleano` | Checkbox / toggle. |
|
|
506
|
+
| `4` | `Data e/ora` | Selettore data e/o ora. |
|
|
507
|
+
| `5` | `Campo numerico` | Input numerico con maschera. |
|
|
508
|
+
| `6` | `Allegato` | Upload file. |
|
|
509
|
+
| `7` | `Immagine` | Upload immagine con crop. |
|
|
510
|
+
| `8` | `Elenco generico` | Dropdown / selezione multipla. |
|
|
511
|
+
| `9` | `Lookup` | Lookup server-side con query configurabile. |
|
|
512
|
+
| `10` | `Form di dettaglio` | Form di dettaglio annidato. |
|
|
513
|
+
| `11` | `Elenco immagini` | Selettore lista immagini. |
|
|
514
|
+
| `12` | `Etichetta` | Solo visualizzazione. |
|
|
515
|
+
| `13` | `Immagine con markers` | Immagine con annotazioni interattive. |
|
|
516
|
+
| `14` | `Bottone` | Campo pulsante azione. |
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
|
|
520
|
+
## English version
|
|
521
|
+
|
|
522
|
+
- [Overview](#overview)
|
|
523
|
+
- [Prerequisites](#prerequisites)
|
|
524
|
+
- [Installation](#installation)
|
|
525
|
+
- [Module Setup](#module-setup)
|
|
526
|
+
- [Components](#components)
|
|
527
|
+
- [eqp-dynamic-module — Form Viewer/Filler](#eqp-dynamic-module--form-viewerfiller)
|
|
528
|
+
- [eqp-dynamic-module-configurator — Form Builder](#eqp-dynamic-module-configurator--form-builder)
|
|
529
|
+
- [Configuration Models](#configuration-models)
|
|
530
|
+
- [View Modes](#view-modes)
|
|
531
|
+
- [Endpoint Configuration](#endpoint-configuration)
|
|
532
|
+
- [Data Models](#data-models)
|
|
533
|
+
- [Field Types Reference](#field-types-reference)
|
|
534
|
+
|
|
535
|
+
---
|
|
536
|
+
|
|
537
|
+
### Overview
|
|
538
|
+
|
|
539
|
+
`@eqproject/eqp-dynamic-module` exposes **two public components**:
|
|
540
|
+
|
|
541
|
+
| Component | Purpose |
|
|
542
|
+
|-----------|---------|
|
|
543
|
+
| `<eqp-dynamic-module>` | Runtime form viewer, filler, list, filter and graphs |
|
|
544
|
+
| `<eqp-dynamic-module-configurator>` | No-code form builder (create, edit, import, export) |
|
|
545
|
+
|
|
546
|
+
Forms are defined as JSON structures stored server-side and fetched at runtime. The library handles rendering, validation, data retrieval, CRUD operations and advanced features like formulas, triggers, action buttons and speech-to-text.
|
|
547
|
+
|
|
548
|
+
---
|
|
549
|
+
|
|
550
|
+
### Prerequisites
|
|
551
|
+
|
|
552
|
+
```bash
|
|
553
|
+
npm install @angular/cdk@^15.1.2 @angular/material@^15.1.2 @angular/material-luxon-adapter@^15.2.9 --legacy-peer-deps
|
|
554
|
+
npm install sweetalert2@^11.4.24 --legacy-peer-deps
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
> All `npm install` commands for this library require `--legacy-peer-deps`.
|
|
558
|
+
|
|
559
|
+
---
|
|
560
|
+
|
|
561
|
+
### Installation
|
|
562
|
+
|
|
563
|
+
```bash
|
|
564
|
+
npm install @eqproject/eqp-dynamic-module --legacy-peer-deps
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
---
|
|
568
|
+
|
|
569
|
+
### Module Setup
|
|
570
|
+
|
|
571
|
+
```typescript
|
|
572
|
+
import { EqpDynamicModuleModule } from '@eqproject/eqp-dynamic-module';
|
|
573
|
+
|
|
574
|
+
@NgModule({
|
|
575
|
+
imports: [EqpDynamicModuleModule]
|
|
576
|
+
})
|
|
577
|
+
export class AppModule {}
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
Add Angular Material theme to `angular.json` styles:
|
|
581
|
+
|
|
582
|
+
```json
|
|
583
|
+
"styles": [
|
|
584
|
+
"node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
|
|
585
|
+
"src/styles.css"
|
|
586
|
+
]
|
|
587
|
+
```
|
|
588
|
+
|
|
589
|
+
---
|
|
590
|
+
|
|
591
|
+
### Components
|
|
592
|
+
|
|
593
|
+
#### `eqp-dynamic-module` — Form Viewer/Filler
|
|
594
|
+
|
|
595
|
+
**Basic usage**
|
|
596
|
+
|
|
597
|
+
```typescript
|
|
598
|
+
import { DynamicModuleGeneralConfig, DynamicModuleViewModeEnum } from '@eqproject/eqp-dynamic-module';
|
|
599
|
+
|
|
600
|
+
generalConfig = new DynamicModuleGeneralConfig(
|
|
601
|
+
'https://your-api.example.com/api',
|
|
602
|
+
this.userToken,
|
|
603
|
+
this.context,
|
|
604
|
+
null
|
|
605
|
+
);
|
|
606
|
+
```
|
|
607
|
+
|
|
608
|
+
```html
|
|
609
|
+
<eqp-dynamic-module
|
|
610
|
+
[configurations]="generalConfig"
|
|
611
|
+
[formID]="'your-form-id'"
|
|
612
|
+
[starterViewMode]="DynamicModuleViewModeEnum.LIST"
|
|
613
|
+
[userID]="currentUser.id"
|
|
614
|
+
(saveRecord)="onSave($event)"
|
|
615
|
+
(afterSaveRecord)="onAfterSave($event)">
|
|
616
|
+
</eqp-dynamic-module>
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
**Inputs**
|
|
620
|
+
|
|
621
|
+
| Input | Type | Default | Description |
|
|
622
|
+
|-------|------|---------|-------------|
|
|
623
|
+
| `configurations` | `DynamicModuleGeneralConfig` | — | **Required.** Server connection configuration. |
|
|
624
|
+
| `formID` | `string` | — | **Required.** ID of the form to display. |
|
|
625
|
+
| `starterViewMode` | `DynamicModuleViewModeEnum` | `LIST` | Initial view mode. |
|
|
626
|
+
| `userID` | `string` | `"0"` | User ID stamped on saved records. |
|
|
627
|
+
| `orgaID` | `string` | `"0"` | Organization ID. |
|
|
628
|
+
| `showTitle` | `boolean` | `true` | Show/hide the form name. |
|
|
629
|
+
| `showBackButton` | `boolean` | `true` | Show/hide the back button. |
|
|
630
|
+
| `showSaveButton` | `boolean` | `true` | Show/hide the save button. |
|
|
631
|
+
| `values` | `Record[]` | `null` | Pre-loaded records for LIST mode. |
|
|
632
|
+
| `FormJSON` | `string` | `""` | Form JSON string for REPAIR mode. |
|
|
633
|
+
| `formulaObject` | `any` | `{}` | Context object for formula evaluation. |
|
|
634
|
+
| `selectedRecord` | `Record \| string` | `null` | Pre-select a record by object or ID. |
|
|
635
|
+
| `externalButtons` | `RecordButton[]` | `[]` | Extra buttons in the record action menu. |
|
|
636
|
+
| `actionButtons` | `ActionButton[]` | `[]` | Action buttons for `Bottone` field type. |
|
|
637
|
+
| `defaultListActions` | `DynamicModuleListFormRecordActionsDefault` | all `true` | Toggle default list actions. |
|
|
638
|
+
| `listViewRecordTitle` | `string[]` | `[]` | Field keys composing the accordion title. |
|
|
639
|
+
| `defaultListViewFunction` | `Function` | `null` | Custom function called on list load. |
|
|
640
|
+
| `onSaveBackToList` | `boolean` | `false` | Return to LIST after save. |
|
|
641
|
+
| `onBackTo` | `DynamicModuleViewModeEnum` | `null` | View mode for the back button. |
|
|
642
|
+
| `numberOfColumns` | `number` | `3` | Number of layout columns. |
|
|
643
|
+
| `showHiddenFields` | `boolean` | `true` | Show/hide hidden fields. |
|
|
644
|
+
| `filterResultViewMode` | `DynamicModuleFilterResultViewModeEnum` | `INTERNAL_EQPTABLE` | Filter results display mode. |
|
|
645
|
+
| `additionalParams` | `any` | `null` | Extra params for server filter calls. |
|
|
646
|
+
| `additionalInfo` | `any` | `null` | Extra data for client-side operations. |
|
|
647
|
+
| `prefilterParams` | `any` | `null` | Pre-filter parameters. |
|
|
648
|
+
| `updateInfo` | `any` | `null` | Data to update response values after load. |
|
|
649
|
+
| `contestualizationParams` | `any` | `null` | Contextualisation parameters. |
|
|
650
|
+
| `showNewSearchButton` | `boolean` | `true` | Show/hide the new search button. |
|
|
651
|
+
| `highlightFilter` | `any` | — | Row/field highlighting configuration. |
|
|
652
|
+
| `isDraggableListView` | `boolean` | `true` | Enable drag-and-drop in list view. |
|
|
653
|
+
| `Statistic` | `FilterStatistic` | `null` | Statistics and filter configuration. |
|
|
654
|
+
| `QueryEditorComponent` | `any` | — | Custom query editor component for lookups. |
|
|
655
|
+
| `debugMode` | `boolean` | `false` | Enable verbose console logging. |
|
|
656
|
+
|
|
657
|
+
**Outputs**
|
|
658
|
+
|
|
659
|
+
| Output | Payload | Description |
|
|
660
|
+
|--------|---------|-------------|
|
|
661
|
+
| `(saveRecord)` | `Record` | Emitted on save when **no** save endpoint is configured. |
|
|
662
|
+
| `(afterSaveRecord)` | `Record` | Emitted after server save call completes. |
|
|
663
|
+
| `(deleteRecord)` | `Record` | Emitted on delete when **no** delete endpoint is configured. |
|
|
664
|
+
| `(afterDeleteRecord)` | `Record` | Emitted after server delete call completes. |
|
|
665
|
+
| `(SaveJSON)` | `string` | Emitted when form JSON is exported. |
|
|
666
|
+
| `(afterFilter)` | `DynRecord[]` | Emitted after filter operation with result set. |
|
|
667
|
+
| `(dragStarted)` | `Record` | Emitted when drag starts. |
|
|
668
|
+
| `(dragReleased)` | `void` | Emitted when drag ends. |
|
|
669
|
+
| `(clickDragIndicator)` | `Record` | Emitted when drag handle is clicked. |
|
|
670
|
+
| `(out)` | `eventOut` | General-purpose external output. |
|
|
671
|
+
| `(fireTrigger)` | `FireTrigger` | Emitted when a trigger fires. |
|
|
672
|
+
| `(afterOutputExternalFilters)` | `FilterStatistic` | Emitted after external filters applied. |
|
|
673
|
+
|
|
674
|
+
---
|
|
675
|
+
|
|
676
|
+
#### `eqp-dynamic-module-configurator` — Form Builder
|
|
677
|
+
|
|
678
|
+
**Usage modes**
|
|
679
|
+
|
|
680
|
+
```html
|
|
681
|
+
<!-- Create new form -->
|
|
682
|
+
<eqp-dynamic-module-configurator
|
|
683
|
+
*ngIf="config"
|
|
684
|
+
[configurations]="config"
|
|
685
|
+
(saveFormEvent)="onFormSaved($event)">
|
|
686
|
+
</eqp-dynamic-module-configurator>
|
|
687
|
+
|
|
688
|
+
<!-- Edit existing form -->
|
|
689
|
+
<eqp-dynamic-module-configurator
|
|
690
|
+
[configurations]="config"
|
|
691
|
+
[formID]="formID"
|
|
692
|
+
(saveFormEvent)="onFormSaved($event)">
|
|
693
|
+
</eqp-dynamic-module-configurator>
|
|
694
|
+
|
|
695
|
+
<!-- Export form -->
|
|
696
|
+
<eqp-dynamic-module-configurator
|
|
697
|
+
[configurations]="config"
|
|
698
|
+
[formID]="formID"
|
|
699
|
+
[viewMode]="'Export'"
|
|
700
|
+
(saveFormEvent)="onFormSaved($event)">
|
|
701
|
+
</eqp-dynamic-module-configurator>
|
|
702
|
+
|
|
703
|
+
<!-- Import from JSON -->
|
|
704
|
+
<eqp-dynamic-module-configurator
|
|
705
|
+
[configurations]="config"
|
|
706
|
+
[formID]="null"
|
|
707
|
+
[viewMode]="'Export'"
|
|
708
|
+
(saveFormEvent)="onFormSaved($event)">
|
|
709
|
+
</eqp-dynamic-module-configurator>
|
|
710
|
+
```
|
|
711
|
+
|
|
712
|
+
**Inputs**
|
|
713
|
+
|
|
714
|
+
| Input | Type | Default | Description |
|
|
715
|
+
|-------|------|---------|-------------|
|
|
716
|
+
| `configurations` | `DynamicModuleConfiguratorConfig` | — | **Required.** Configuration container. |
|
|
717
|
+
| `formID` | `string` | `null` | Form ID to edit. `null` creates a new form. |
|
|
718
|
+
| `viewMode` | `string` | `"addOrEdit"` | `"addOrEdit"` or `"Export"`. |
|
|
719
|
+
| `fieldsExtraConfig` | `FieldExtraConfig[]` | — | Extra configuration for specific fields. |
|
|
720
|
+
| `triggers` | `any` | — | Trigger definitions for the editor. |
|
|
721
|
+
| `actionButtons` | `any` | — | Action button definitions. |
|
|
722
|
+
| `contestualization` | `Contestualization[]` | — | Contextualisation options. |
|
|
723
|
+
| `formulaObject` | `any` | — | Context for formula preview. |
|
|
724
|
+
| `QueryEditorComponent` | `DynamicLoaderDirectiveData` | — | Custom query editor component. |
|
|
725
|
+
| `debugMode` | `boolean` | `false` | Enable verbose logging. |
|
|
726
|
+
| `configuratorTheme` | `Record<string, string> \| null` | `null` | CSS variable overrides via TypeScript object. |
|
|
727
|
+
| `configuratorThemeCss` | `string \| null` | `null` | CSS variable overrides via CSS text string (e.g. contents of a `.css` file). |
|
|
728
|
+
|
|
729
|
+
**Outputs**
|
|
730
|
+
|
|
731
|
+
| Output | Payload | Description |
|
|
732
|
+
|--------|---------|-------------|
|
|
733
|
+
| `(saveFormEvent)` | `Form` | Emitted on save when **no** save endpoint is configured. |
|
|
734
|
+
| `(afterSaveFormEvent)` | `Form` | Emitted after server save call completes. |
|
|
735
|
+
| `(out)` | `eventOut` | General-purpose external output. |
|
|
736
|
+
| `(fireTrigger)` | `FireTrigger` | Emitted when a trigger fires. |
|
|
737
|
+
|
|
738
|
+
**Theming**
|
|
739
|
+
|
|
740
|
+
The configurator exposes a theming system based on CSS custom properties. All values injected via the theme inputs are applied with `!important` and cannot be overridden externally except through these inputs.
|
|
741
|
+
|
|
742
|
+
```html
|
|
743
|
+
<!-- Option A: TypeScript object -->
|
|
744
|
+
<eqp-dynamic-module-configurator
|
|
745
|
+
[configurations]="config"
|
|
746
|
+
[configuratorTheme]="{ '--conf-gradient': 'linear-gradient(to right, #1565c0, #0288d1)' }">
|
|
747
|
+
</eqp-dynamic-module-configurator>
|
|
748
|
+
|
|
749
|
+
<!-- Option B: CSS file loaded as string -->
|
|
750
|
+
<eqp-dynamic-module-configurator
|
|
751
|
+
[configurations]="config"
|
|
752
|
+
[configuratorThemeCss]="themeCssString">
|
|
753
|
+
</eqp-dynamic-module-configurator>
|
|
754
|
+
```
|
|
755
|
+
|
|
756
|
+
CSS file format for `configuratorThemeCss` (no selector required):
|
|
757
|
+
|
|
758
|
+
```css
|
|
759
|
+
--conf-gradient: linear-gradient(to right, #1565c0, #0288d1);
|
|
760
|
+
--conf-bg-page: #f0f6fb;
|
|
761
|
+
--conf-btn-color: #ffffff;
|
|
762
|
+
```
|
|
763
|
+
|
|
764
|
+
Available variables:
|
|
765
|
+
|
|
766
|
+
| Variable | Default | Description |
|
|
767
|
+
|----------|---------|-------------|
|
|
768
|
+
| `--conf-gradient` | purple-blue gradient | Button and header background |
|
|
769
|
+
| `--conf-bg-page` | `#f5f5f5` | General page/stepper background |
|
|
770
|
+
| `--conf-radius` | `10px` | Button border radius |
|
|
771
|
+
| `--conf-modal-radius` | `12px` | Modal border radius |
|
|
772
|
+
| `--conf-accent` | `#693DDA` | Accent colour (borders, focus) |
|
|
773
|
+
| `--conf-primary` | `#1E31EB` | Primary colour |
|
|
774
|
+
| `--conf-step-selected` | `#643cda` | Selected step arrow |
|
|
775
|
+
| `--conf-step-edit` | `#3034e7` | Completed step arrow |
|
|
776
|
+
| `--conf-stepper-header-bg` | inherited from `--conf-bg-page` | Upper zone background (stepper header) |
|
|
777
|
+
| `--conf-stepper-content-bg` | inherited from `--conf-bg-page` | Lower zone background (form and buttons) |
|
|
778
|
+
| `--conf-step-icon-edit-bg` | inherited from `--conf-step-edit` | Completed step icon background |
|
|
779
|
+
| `--conf-btn-color` | `#ffffff` | Active button text colour (gradient background) |
|
|
780
|
+
| `--conf-hint-btn-bg` | `#2563eb` | Quick-suggestion button (lightbulb) background |
|
|
781
|
+
| `--conf-hint-btn-hover-bg` | `#1d4ed8` | Lightbulb button hover background |
|
|
782
|
+
| `--conf-table-header-bg` | SCSS variable | Field table header background |
|
|
783
|
+
| `--conf-search-bg` | SCSS variable | Search field background |
|
|
784
|
+
| `--conf-table-bg` | `#ffffff` | Table row background |
|
|
785
|
+
| `--conf-card-bg` | `#ffffff` | Card background |
|
|
786
|
+
| `--conf-font-family` | `inherit` | Configurator-wide font family |
|
|
787
|
+
|
|
788
|
+
---
|
|
789
|
+
|
|
790
|
+
### Configuration Models
|
|
791
|
+
|
|
792
|
+
#### `DynamicModuleGeneralConfig`
|
|
793
|
+
|
|
794
|
+
```typescript
|
|
795
|
+
const general = new DynamicModuleGeneralConfig(
|
|
796
|
+
baseServerUrl, // string — e.g. "https://api.example.com/api"
|
|
797
|
+
userToken, // string — auth token
|
|
798
|
+
context, // Context
|
|
799
|
+
endPointConfiguration // EndPointConfiguration | null
|
|
800
|
+
);
|
|
801
|
+
```
|
|
802
|
+
|
|
803
|
+
#### `DynamicModuleListFormRecordActionsDefault`
|
|
804
|
+
|
|
805
|
+
```typescript
|
|
806
|
+
const actions = new DynamicModuleListFormRecordActionsDefault();
|
|
807
|
+
actions.add = true;
|
|
808
|
+
actions.view = true;
|
|
809
|
+
actions.edit = true;
|
|
810
|
+
actions.duplicate = false;
|
|
811
|
+
actions.delete = true;
|
|
812
|
+
actions.graphs = false;
|
|
813
|
+
```
|
|
814
|
+
|
|
815
|
+
---
|
|
816
|
+
|
|
817
|
+
### View Modes
|
|
818
|
+
|
|
819
|
+
```typescript
|
|
820
|
+
enum DynamicModuleViewModeEnum {
|
|
821
|
+
NONE = 0,
|
|
822
|
+
VIEW = 1,
|
|
823
|
+
COMPILE = 2,
|
|
824
|
+
LIST = 3,
|
|
825
|
+
REPAIR = 4,
|
|
826
|
+
LISTWIEW = 5,
|
|
827
|
+
FILTER = 6,
|
|
828
|
+
GRAPHS = 7,
|
|
829
|
+
HLIST = 8,
|
|
830
|
+
EXTERNAL_FILTER = 9
|
|
831
|
+
}
|
|
832
|
+
```
|
|
833
|
+
|
|
834
|
+
---
|
|
835
|
+
|
|
836
|
+
### Endpoint Configuration
|
|
837
|
+
|
|
838
|
+
```typescript
|
|
839
|
+
const endPoints = new EndPointConfiguration();
|
|
840
|
+
endPoints.Records.SaveEndPoint = new EndPointData();
|
|
841
|
+
endPoints.Records.SaveEndPoint.Url = 'https://custom-api.example.com/records/save';
|
|
842
|
+
endPoints.Records.SaveEndPoint.RequestMethod = RequestMethodEnum.POST;
|
|
843
|
+
endPoints.Records.SaveEndPoint.Params = [{
|
|
844
|
+
ParamName: 'orgId',
|
|
845
|
+
ParamValue: this.orgaId,
|
|
846
|
+
ParamType: ParamTypeEnum['Query param']
|
|
847
|
+
}];
|
|
848
|
+
const general = new DynamicModuleGeneralConfig(baseUrl, token, context, endPoints);
|
|
849
|
+
```
|
|
850
|
+
|
|
851
|
+
**Available Records endpoints:** `GetWithContextualizationByFormCodeEndPoint`, `GetByFormIDEndPoint`, `GetByFormCodeEndPoint`, `GetAllByEntAndUserIDEndPoint`, `GetByIDEndPoint`, `SaveEndPoint`, `DuplicateEndPoint`, `DeleteEndPoint`, `RepairEndPoint`, `ApplyFilter`, `GetAllAttachmentsEndPoint`.
|
|
852
|
+
|
|
853
|
+
**Available Forms endpoints:** `GetByIDEndPoint`, `GetAllFormEndPoint`, `GetByIDAndVersionEndPoint`, `SaveEndPoint`, `SaveAttachmentEndPoint`, `ExportByIDEndPoint`, `GetAttachmentWithBases64`, `SpeechToFormEditEndPoint`.
|
|
854
|
+
|
|
855
|
+
---
|
|
856
|
+
|
|
857
|
+
### Data Models
|
|
858
|
+
|
|
859
|
+
#### `Record`
|
|
860
|
+
|
|
861
|
+
| Property | Type | Description |
|
|
862
|
+
|----------|------|-------------|
|
|
863
|
+
| `ID` | `string` | Unique record identifier. |
|
|
864
|
+
| `EntID` | `string` | ID of the form this record belongs to. |
|
|
865
|
+
| `Version` | `number` | Form version at compilation time. |
|
|
866
|
+
| `userID` | `string` | ID of the user who created the record. |
|
|
867
|
+
| `AnswerDate` | `string` | ISO date string of compilation. |
|
|
868
|
+
| `HTMLreadableValues` | `string` | Pre-rendered HTML of field values. |
|
|
869
|
+
| `AdditionalParams` | `any` | Extra parameters. |
|
|
870
|
+
| `AdditionalInfo` | `any` | Extra information. |
|
|
871
|
+
|
|
872
|
+
---
|
|
873
|
+
|
|
874
|
+
### Field Types Reference
|
|
875
|
+
|
|
876
|
+
| Value | Key | Description |
|
|
877
|
+
|-------|-----|-------------|
|
|
878
|
+
| `1` | `Campo di testo` | Single-line text input. |
|
|
879
|
+
| `2` | `Area di testo` | Multi-line textarea. |
|
|
880
|
+
| `3` | `Booleano` | Checkbox / boolean toggle. |
|
|
881
|
+
| `4` | `Data e/ora` | Date and/or time picker. |
|
|
882
|
+
| `5` | `Campo numerico` | Numeric input with mask. |
|
|
883
|
+
| `6` | `Allegato` | File attachment upload. |
|
|
884
|
+
| `7` | `Immagine` | Image upload with optional cropping. |
|
|
885
|
+
| `8` | `Elenco generico` | Dropdown / multi-select list. |
|
|
886
|
+
| `9` | `Lookup` | Server-side lookup with configurable query. |
|
|
887
|
+
| `10` | `Form di dettaglio` | Embedded detail (inner) form. |
|
|
888
|
+
| `11` | `Elenco immagini` | Image selector list. |
|
|
889
|
+
| `12` | `Etichetta` | Display-only label. |
|
|
890
|
+
| `13` | `Immagine con markers` | Image with interactive annotation markers. |
|
|
891
|
+
| `14` | `Bottone` | Action button field. |
|