@inseefr/lunatic 2.7.14 → 2.7.15

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.
Files changed (33) hide show
  1. package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +3 -1
  2. package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +4 -1
  3. package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +7 -2
  4. package/lib/components/commons/components/missing/missing.js +4 -1
  5. package/lib/components/commons/components/missing/missing.scss +26 -29
  6. package/lib/components/datepicker/lunatic-datepicker.js +1 -0
  7. package/lib/components/dropdown/lunatic-dropdown.js +1 -0
  8. package/lib/components/duration/duration.js +4 -1
  9. package/lib/components/input/lunatic-input.js +1 -0
  10. package/lib/components/input-number/lunatic-input-number.js +1 -0
  11. package/lib/components/radio/lunatic-radio-group.js +1 -0
  12. package/lib/components/suggester/lunatic-suggester.js +1 -0
  13. package/lib/components/switch/lunatic-switch.js +7 -2
  14. package/lib/components/textarea/lunatic-textarea.js +3 -1
  15. package/lib/src/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.d.ts +1 -1
  16. package/lib/src/components/checkbox/checkbox-group/lunatic-checkbox-group.d.ts +1 -1
  17. package/lib/src/components/checkbox/checkbox-one/lunatic-checkbox-one.d.ts +1 -1
  18. package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +1 -1
  19. package/lib/src/components/commons/components/missing/missing.d.ts +2 -1
  20. package/lib/src/components/switch/html/switch.d.ts +1 -0
  21. package/lib/src/components/switch/lunatic-switch.d.ts +1 -1
  22. package/lib/src/use-lunatic/commons/execute-condition-filter.d.ts +1 -1
  23. package/lib/src/utils/array.d.ts +1 -0
  24. package/lib/src/utils/variables.spec.d.ts +1 -0
  25. package/lib/stories/behaviour/missing/missing.stories.js +90 -0
  26. package/lib/stories/behaviour/missing/source.json +822 -0
  27. package/lib/stories/utils/referentiel.js +3 -3
  28. package/lib/use-lunatic/commons/execute-condition-filter.js +4 -1
  29. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +4 -2
  30. package/lib/utils/array.js +21 -0
  31. package/lib/utils/variables.js +4 -15
  32. package/lib/utils/variables.spec.js +74 -0
  33. package/package.json +1 -1
@@ -0,0 +1,822 @@
1
+ {
2
+ "id": "lb3ei722",
3
+ "modele": "TESTSURSUM",
4
+ "enoCoreVersion": "2.7.1",
5
+ "lunaticModelVersion": "2.5.0",
6
+ "generatingDate": "31-01-2024 11:22:52",
7
+ "missing": true,
8
+ "pagination": "question",
9
+ "maxPage": "10",
10
+ "label": {
11
+ "value": "QNONREG - sum, min dans une boucle et sur controle prénom et test filtre occurrence",
12
+ "type": "VTL|MD"
13
+ },
14
+ "components": [
15
+ {
16
+ "id": "ksyjs7vy",
17
+ "componentType": "Sequence",
18
+ "page": "1",
19
+ "label": {
20
+ "value": "\"I - \" || \"S0\"",
21
+ "type": "VTL|MD"
22
+ },
23
+ "conditionFilter": {
24
+ "value": "true",
25
+ "type": "VTL"
26
+ },
27
+ "hierarchy": {
28
+ "sequence": {
29
+ "id": "ksyjs7vy",
30
+ "page": "1",
31
+ "label": {
32
+ "value": "\"I - \" || \"S0\"",
33
+ "type": "VTL|MD"
34
+ }
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "id": "kze792d8",
40
+ "componentType": "InputNumber",
41
+ "mandatory": false,
42
+ "page": "2",
43
+ "min": 0,
44
+ "max": 10,
45
+ "decimals": 0,
46
+ "label": {
47
+ "value": "\"NB\"",
48
+ "type": "VTL|MD"
49
+ },
50
+ "conditionFilter": {
51
+ "value": "true",
52
+ "type": "VTL"
53
+ },
54
+ "controls": [
55
+ {
56
+ "id": "kze792d8-format-borne-inf-sup",
57
+ "typeOfControl": "FORMAT",
58
+ "criticality": "ERROR",
59
+ "control": {
60
+ "value": "not(not(isnull(NB)) and (0>NB or 10<NB))",
61
+ "type": "VTL"
62
+ },
63
+ "errorMessage": {
64
+ "value": "\" La valeur doit être comprise entre 0 et 10.\"",
65
+ "type": "VTL|MD"
66
+ }
67
+ },
68
+ {
69
+ "id": "kze792d8-format-decimal",
70
+ "typeOfControl": "FORMAT",
71
+ "criticality": "ERROR",
72
+ "control": {
73
+ "value": "not(not(isnull(NB)) and round(NB,0)<>NB)",
74
+ "type": "VTL"
75
+ },
76
+ "errorMessage": {
77
+ "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\"",
78
+ "type": "VTL|MD"
79
+ }
80
+ }
81
+ ],
82
+ "hierarchy": {
83
+ "sequence": {
84
+ "id": "ksyjs7vy",
85
+ "page": "1",
86
+ "label": {
87
+ "value": "\"I - \" || \"S0\"",
88
+ "type": "VTL|MD"
89
+ }
90
+ }
91
+ },
92
+ "missingResponse": {
93
+ "name": "NB_MISSING"
94
+ },
95
+ "bindingDependencies": ["NB_MISSING", "NB"],
96
+ "response": {
97
+ "name": "NB"
98
+ }
99
+ },
100
+ {
101
+ "id": "ksykfdm9",
102
+ "componentType": "Loop",
103
+ "page": "3",
104
+ "depth": 1,
105
+ "paginatedLoop": false,
106
+ "conditionFilter": {
107
+ "value": "true",
108
+ "type": "VTL"
109
+ },
110
+ "hierarchy": {
111
+ "sequence": {
112
+ "id": "ksyjs7vy",
113
+ "page": "1",
114
+ "label": {
115
+ "value": "\"I - \" || \"S0\"",
116
+ "type": "VTL|MD"
117
+ }
118
+ }
119
+ },
120
+ "bindingDependencies": ["NB", "PRENOM_MISSING", "PRENOM"],
121
+ "loopDependencies": ["NB"],
122
+ "lines": {
123
+ "min": {
124
+ "value": "cast(NB,integer)",
125
+ "type": "VTL"
126
+ },
127
+ "max": {
128
+ "value": "cast(NB,integer)",
129
+ "type": "VTL"
130
+ }
131
+ },
132
+ "components": [
133
+ {
134
+ "id": "ksynhpl3",
135
+ "componentType": "Subsequence",
136
+ "page": "3",
137
+ "goToPage": "3",
138
+ "label": {
139
+ "value": "\"Habitants\"",
140
+ "type": "VTL|MD"
141
+ },
142
+ "conditionFilter": {
143
+ "value": "true",
144
+ "type": "VTL"
145
+ },
146
+ "hierarchy": {
147
+ "sequence": {
148
+ "id": "ksyjs7vy",
149
+ "page": "1",
150
+ "label": {
151
+ "value": "\"I - \" || \"S0\"",
152
+ "type": "VTL|MD"
153
+ }
154
+ },
155
+ "subSequence": {
156
+ "id": "ksynhpl3",
157
+ "page": "3",
158
+ "label": {
159
+ "value": "\"Habitants\"",
160
+ "type": "VTL|MD"
161
+ }
162
+ }
163
+ },
164
+ "bindingDependencies": ["NB"]
165
+ },
166
+ {
167
+ "id": "ksyjvi40",
168
+ "componentType": "Input",
169
+ "mandatory": false,
170
+ "page": "3",
171
+ "maxLength": 249,
172
+ "label": {
173
+ "value": "\"prénom\"",
174
+ "type": "VTL|MD"
175
+ },
176
+ "missingResponse": {
177
+ "name": "PRENOM_MISSING"
178
+ },
179
+ "declarations": [
180
+ {
181
+ "id": "ksyjvi40-l7uj49ok",
182
+ "declarationType": "HELP",
183
+ "position": "AFTER_QUESTION_TEXT",
184
+ "label": {
185
+ "value": "\"Tester Prénom vide et Prénom = A\"",
186
+ "type": "VTL|MD"
187
+ }
188
+ }
189
+ ],
190
+ "conditionFilter": {
191
+ "value": "true",
192
+ "type": "VTL"
193
+ },
194
+ "bindingDependencies": ["PRENOM", "NB"],
195
+ "response": {
196
+ "name": "PRENOM"
197
+ }
198
+ },
199
+ {
200
+ "id": "nomksyjvi40",
201
+ "componentType": "Input",
202
+ "mandatory": false,
203
+ "page": "3",
204
+ "maxLength": 249,
205
+ "label": {
206
+ "value": "\"Nom\"",
207
+ "type": "VTL|MD"
208
+ },
209
+ "missingResponse": {
210
+ "name": "NOM_MISSING"
211
+ },
212
+ "declarations": [
213
+ {
214
+ "id": "ksyjvi40-l7uj49ok",
215
+ "declarationType": "HELP",
216
+ "position": "AFTER_QUESTION_TEXT",
217
+ "label": {
218
+ "value": "\"Tester Prénom vide et Prénom = A\"",
219
+ "type": "VTL|MD"
220
+ }
221
+ }
222
+ ],
223
+ "conditionFilter": {
224
+ "value": "true",
225
+ "type": "VTL"
226
+ },
227
+ "bindingDependencies": ["NOM", "NB"],
228
+ "response": {
229
+ "name": "NOM"
230
+ }
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "id": "ksyniqzx",
236
+ "componentType": "Sequence",
237
+ "page": "4",
238
+ "label": {
239
+ "value": "\"II - \" || \"S1\"",
240
+ "type": "VTL|MD"
241
+ },
242
+ "conditionFilter": {
243
+ "value": "true",
244
+ "type": "VTL"
245
+ },
246
+ "hierarchy": {
247
+ "sequence": {
248
+ "id": "ksyniqzx",
249
+ "page": "4",
250
+ "label": {
251
+ "value": "\"II - \" || \"S1\"",
252
+ "type": "VTL|MD"
253
+ }
254
+ }
255
+ }
256
+ },
257
+ {
258
+ "id": "ksynkaoo",
259
+ "componentType": "Loop",
260
+ "page": "5",
261
+ "maxPage": "1",
262
+ "depth": 1,
263
+ "paginatedLoop": true,
264
+ "conditionFilter": {
265
+ "value": "true",
266
+ "type": "VTL"
267
+ },
268
+ "hierarchy": {
269
+ "sequence": {
270
+ "id": "ksyniqzx",
271
+ "page": "4",
272
+ "label": {
273
+ "value": "\"II - \" || \"S1\"",
274
+ "type": "VTL|MD"
275
+ }
276
+ }
277
+ },
278
+ "bindingDependencies": ["AGE", "IND_MAJEUR", "PRENOM", "AGE_MISSING"],
279
+ "loopDependencies": ["PRENOM"],
280
+ "components": [
281
+ {
282
+ "id": "ksyjxw3a",
283
+ "componentType": "Subsequence",
284
+ "goToPage": "5.1",
285
+ "label": {
286
+ "value": "\"Les ages\"",
287
+ "type": "VTL|MD"
288
+ },
289
+ "conditionFilter": {
290
+ "value": "true",
291
+ "type": "VTL"
292
+ },
293
+ "hierarchy": {
294
+ "sequence": {
295
+ "id": "ksyniqzx",
296
+ "page": "4",
297
+ "label": {
298
+ "value": "\"II - \" || \"S1\"",
299
+ "type": "VTL|MD"
300
+ }
301
+ },
302
+ "subSequence": {
303
+ "id": "ksyjxw3a",
304
+ "page": "5.1",
305
+ "label": {
306
+ "value": "\"Les ages\"",
307
+ "type": "VTL|MD"
308
+ }
309
+ }
310
+ },
311
+ "bindingDependencies": ["PRENOM"]
312
+ },
313
+ {
314
+ "id": "ksyke448",
315
+ "componentType": "InputNumber",
316
+ "mandatory": false,
317
+ "page": "5.1",
318
+ "min": 0,
319
+ "max": 100,
320
+ "decimals": 0,
321
+ "label": {
322
+ "value": "\"Age de l’individu : \" || PRENOM",
323
+ "type": "VTL|MD"
324
+ },
325
+ "declarations": [
326
+ {
327
+ "id": "ksyke448-ktwsl4qu",
328
+ "declarationType": "HELP",
329
+ "position": "AFTER_QUESTION_TEXT",
330
+ "label": {
331
+ "value": "\"AGE vaut : \" || cast(AGE,string)",
332
+ "type": "VTL|MD"
333
+ }
334
+ },
335
+ {
336
+ "id": "ksyke448-l7g2enbf",
337
+ "declarationType": "HELP",
338
+ "position": "AFTER_QUESTION_TEXT",
339
+ "label": {
340
+ "value": "\"IND_MAJEUR :\" || cast(IND_MAJEUR,string)",
341
+ "type": "VTL|MD"
342
+ }
343
+ }
344
+ ],
345
+ "conditionFilter": {
346
+ "value": "true",
347
+ "type": "VTL"
348
+ },
349
+ "controls": [
350
+ {
351
+ "id": "ksyke448-format-borne-inf-sup",
352
+ "typeOfControl": "FORMAT",
353
+ "criticality": "ERROR",
354
+ "control": {
355
+ "value": "not(not(isnull(AGE)) and (0>AGE or 100<AGE))",
356
+ "type": "VTL"
357
+ },
358
+ "errorMessage": {
359
+ "value": "\" La valeur doit être comprise entre 0 et 100.\"",
360
+ "type": "VTL|MD"
361
+ }
362
+ },
363
+ {
364
+ "id": "ksyke448-format-decimal",
365
+ "typeOfControl": "FORMAT",
366
+ "criticality": "ERROR",
367
+ "control": {
368
+ "value": "not(not(isnull(AGE)) and round(AGE,0)<>AGE)",
369
+ "type": "VTL"
370
+ },
371
+ "errorMessage": {
372
+ "value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\"",
373
+ "type": "VTL|MD"
374
+ }
375
+ }
376
+ ],
377
+ "hierarchy": {
378
+ "sequence": {
379
+ "id": "ksyniqzx",
380
+ "page": "4",
381
+ "label": {
382
+ "value": "\"II - \" || \"S1\"",
383
+ "type": "VTL|MD"
384
+ }
385
+ },
386
+ "subSequence": {
387
+ "id": "ksyjxw3a",
388
+ "page": "5.1",
389
+ "label": {
390
+ "value": "\"Les ages\"",
391
+ "type": "VTL|MD"
392
+ }
393
+ }
394
+ },
395
+ "missingResponse": {
396
+ "name": "AGE_MISSING"
397
+ },
398
+ "bindingDependencies": ["AGE", "IND_MAJEUR", "PRENOM", "AGE_MISSING"],
399
+ "response": {
400
+ "name": "AGE"
401
+ }
402
+ }
403
+ ],
404
+ "iterations": {
405
+ "value": "count(PRENOM)",
406
+ "type": "VTL"
407
+ }
408
+ },
409
+ {
410
+ "id": "ku2pnlmr",
411
+ "componentType": "Subsequence",
412
+ "page": "6",
413
+ "goToPage": "6",
414
+ "label": {
415
+ "value": "\"Affichage de qq var\"",
416
+ "type": "VTL|MD"
417
+ },
418
+ "declarations": [
419
+ {
420
+ "id": "ku2pnlmr-l7t4dzz2",
421
+ "declarationType": "HELP",
422
+ "position": "AFTER_QUESTION_TEXT",
423
+ "label": {
424
+ "value": "\"Affichage du nb de majeurs : \" || cast(SUM_MAJEUR,string)",
425
+ "type": "VTL|MD"
426
+ }
427
+ },
428
+ {
429
+ "id": "ku2pnlmr-l806u4c8",
430
+ "declarationType": "HELP",
431
+ "position": "AFTER_QUESTION_TEXT",
432
+ "label": {
433
+ "value": "\"Affichage du somme age : \" || cast(SUM_AGE,string)",
434
+ "type": "VTL|MD"
435
+ }
436
+ },
437
+ {
438
+ "id": "ku2pnlmr-lg6mo14c",
439
+ "declarationType": "HELP",
440
+ "position": "AFTER_QUESTION_TEXT",
441
+ "label": {
442
+ "value": "\"Affichage du min des ages sans cast: \" || cast(MIN_AGE,string)",
443
+ "type": "VTL|MD"
444
+ }
445
+ }
446
+ ],
447
+ "conditionFilter": {
448
+ "value": "true",
449
+ "type": "VTL"
450
+ },
451
+ "hierarchy": {
452
+ "sequence": {
453
+ "id": "ksyniqzx",
454
+ "page": "4",
455
+ "label": {
456
+ "value": "\"II - \" || \"S1\"",
457
+ "type": "VTL|MD"
458
+ }
459
+ },
460
+ "subSequence": {
461
+ "id": "ku2pnlmr",
462
+ "page": "6",
463
+ "label": {
464
+ "value": "\"Affichage de qq var\"",
465
+ "type": "VTL|MD"
466
+ }
467
+ }
468
+ },
469
+ "bindingDependencies": ["SUM_MAJEUR", "SUM_AGE", "MIN_AGE"]
470
+ },
471
+ {
472
+ "id": "ku2pxugf",
473
+ "componentType": "Input",
474
+ "mandatory": false,
475
+ "page": "7",
476
+ "maxLength": 249,
477
+ "label": {
478
+ "value": "divers",
479
+ "type": "VTL|MD"
480
+ },
481
+ "conditionFilter": {
482
+ "value": "(SUM_MAJEUR > 0)",
483
+ "type": "VTL",
484
+ "bindingDependencies": ["SUM_MAJEUR", "IND_MAJEUR", "AGE"]
485
+ },
486
+ "hierarchy": {
487
+ "sequence": {
488
+ "id": "ksyniqzx",
489
+ "page": "4",
490
+ "label": {
491
+ "value": "\"II - \" || \"S1\"",
492
+ "type": "VTL|MD"
493
+ }
494
+ },
495
+ "subSequence": {
496
+ "id": "ku2pnlmr",
497
+ "page": "6",
498
+ "label": {
499
+ "value": "\"Affichage de qq var\"",
500
+ "type": "VTL|MD"
501
+ }
502
+ }
503
+ },
504
+ "missingResponse": {
505
+ "name": "DIVERS_MISSING"
506
+ },
507
+ "bindingDependencies": ["DIVERS_MISSING", "DIVERS"],
508
+ "response": {
509
+ "name": "DIVERS"
510
+ }
511
+ },
512
+ {
513
+ "id": "l7yz0fe5",
514
+ "componentType": "Sequence",
515
+ "page": "8",
516
+ "label": {
517
+ "value": "\"III - \" || \"S3\"",
518
+ "type": "VTL|MD"
519
+ },
520
+ "declarations": [
521
+ {
522
+ "id": "l7yz0fe5-l7yyye9y",
523
+ "declarationType": "HELP",
524
+ "position": "AFTER_QUESTION_TEXT",
525
+ "label": {
526
+ "value": "\"Affichage de la somme des ages : \" || cast(SUM_AGE,string)",
527
+ "type": "VTL|MD"
528
+ }
529
+ },
530
+ {
531
+ "id": "l7yz0fe5-l7yz5mgk",
532
+ "declarationType": "HELP",
533
+ "position": "AFTER_QUESTION_TEXT",
534
+ "label": {
535
+ "value": "\"Affichage du nb de majeurs : \" || cast(SUM_MAJEUR,string)",
536
+ "type": "VTL|MD"
537
+ }
538
+ },
539
+ {
540
+ "id": "l7yz0fe5-l7yyrp0q",
541
+ "declarationType": "HELP",
542
+ "position": "AFTER_QUESTION_TEXT",
543
+ "label": {
544
+ "value": "\"Affichage du min des ages : \" || cast(MIN_AGE,string)",
545
+ "type": "VTL|MD"
546
+ }
547
+ }
548
+ ],
549
+ "conditionFilter": {
550
+ "value": "true",
551
+ "type": "VTL"
552
+ },
553
+ "hierarchy": {
554
+ "sequence": {
555
+ "id": "l7yz0fe5",
556
+ "page": "8",
557
+ "label": {
558
+ "value": "\"III - \" || \"S3\"",
559
+ "type": "VTL|MD"
560
+ }
561
+ }
562
+ },
563
+ "bindingDependencies": ["SUM_AGE", "SUM_MAJEUR", "MIN_AGE"]
564
+ },
565
+ {
566
+ "id": "COMMENT-SEQ",
567
+ "componentType": "Sequence",
568
+ "page": "9",
569
+ "label": {
570
+ "value": "\"Commentaire\"",
571
+ "type": "VTL|MD"
572
+ },
573
+ "conditionFilter": {
574
+ "value": "true",
575
+ "type": "VTL"
576
+ },
577
+ "hierarchy": {
578
+ "sequence": {
579
+ "id": "COMMENT-SEQ",
580
+ "page": "9",
581
+ "label": {
582
+ "value": "\"Commentaire\"",
583
+ "type": "VTL|MD"
584
+ }
585
+ }
586
+ }
587
+ },
588
+ {
589
+ "id": "COMMENT-QUESTION",
590
+ "componentType": "Textarea",
591
+ "mandatory": false,
592
+ "page": "10",
593
+ "maxLength": 2000,
594
+ "label": {
595
+ "value": "\"Avez-vous des remarques concernant l'enquête ou des commentaires ?\"",
596
+ "type": "VTL|MD"
597
+ },
598
+ "conditionFilter": {
599
+ "value": "true",
600
+ "type": "VTL"
601
+ },
602
+ "hierarchy": {
603
+ "sequence": {
604
+ "id": "COMMENT-SEQ",
605
+ "page": "9",
606
+ "label": {
607
+ "value": "\"Commentaire\"",
608
+ "type": "VTL|MD"
609
+ }
610
+ }
611
+ },
612
+ "bindingDependencies": ["COMMENT_QE"],
613
+ "response": {
614
+ "name": "COMMENT_QE"
615
+ }
616
+ }
617
+ ],
618
+ "variables": [
619
+ {
620
+ "variableType": "COLLECTED",
621
+ "name": "COMMENT_QE",
622
+ "values": {
623
+ "PREVIOUS": null,
624
+ "COLLECTED": null,
625
+ "FORCED": null,
626
+ "EDITED": null,
627
+ "INPUTED": null
628
+ }
629
+ },
630
+ {
631
+ "variableType": "COLLECTED",
632
+ "name": "COMMENT_QE",
633
+ "values": {
634
+ "PREVIOUS": null,
635
+ "COLLECTED": null,
636
+ "FORCED": null,
637
+ "EDITED": null,
638
+ "INPUTED": null
639
+ }
640
+ },
641
+ {
642
+ "variableType": "COLLECTED",
643
+ "name": "NB",
644
+ "values": {
645
+ "PREVIOUS": null,
646
+ "COLLECTED": null,
647
+ "FORCED": null,
648
+ "EDITED": null,
649
+ "INPUTED": null
650
+ }
651
+ },
652
+ {
653
+ "variableType": "COLLECTED",
654
+ "name": "NB_MISSING",
655
+ "values": {
656
+ "PREVIOUS": null,
657
+ "COLLECTED": null,
658
+ "FORCED": null,
659
+ "EDITED": null,
660
+ "INPUTED": null
661
+ }
662
+ },
663
+ {
664
+ "variableType": "COLLECTED",
665
+ "name": "PRENOM_MISSING",
666
+ "values": {
667
+ "PREVIOUS": null,
668
+ "COLLECTED": null,
669
+ "FORCED": null,
670
+ "EDITED": null,
671
+ "INPUTED": null
672
+ }
673
+ },
674
+ {
675
+ "variableType": "COLLECTED",
676
+ "name": "NOM_MISSING",
677
+ "values": {
678
+ "PREVIOUS": null,
679
+ "COLLECTED": null,
680
+ "FORCED": null,
681
+ "EDITED": null,
682
+ "INPUTED": null
683
+ }
684
+ },
685
+ {
686
+ "variableType": "COLLECTED",
687
+ "name": "NOM",
688
+ "values": {
689
+ "PREVIOUS": null,
690
+ "COLLECTED": null,
691
+ "FORCED": null,
692
+ "EDITED": null,
693
+ "INPUTED": null
694
+ }
695
+ },
696
+ {
697
+ "variableType": "COLLECTED",
698
+ "name": "PRENOM",
699
+ "values": {
700
+ "PREVIOUS": [null],
701
+ "COLLECTED": [null],
702
+ "FORCED": [null],
703
+ "EDITED": [null],
704
+ "INPUTED": [null]
705
+ }
706
+ },
707
+ {
708
+ "variableType": "COLLECTED",
709
+ "name": "AGE",
710
+ "values": {
711
+ "PREVIOUS": [null],
712
+ "COLLECTED": [null],
713
+ "FORCED": [null],
714
+ "EDITED": [null],
715
+ "INPUTED": [null]
716
+ }
717
+ },
718
+ {
719
+ "variableType": "COLLECTED",
720
+ "name": "AGE_MISSING",
721
+ "values": {
722
+ "PREVIOUS": [null],
723
+ "COLLECTED": [null],
724
+ "FORCED": [null],
725
+ "EDITED": [null],
726
+ "INPUTED": [null]
727
+ }
728
+ },
729
+ {
730
+ "variableType": "COLLECTED",
731
+ "name": "DIVERS",
732
+ "values": {
733
+ "PREVIOUS": null,
734
+ "COLLECTED": null,
735
+ "FORCED": null,
736
+ "EDITED": null,
737
+ "INPUTED": null
738
+ }
739
+ },
740
+ {
741
+ "variableType": "COLLECTED",
742
+ "name": "DIVERS_MISSING",
743
+ "values": {
744
+ "PREVIOUS": null,
745
+ "COLLECTED": null,
746
+ "FORCED": null,
747
+ "EDITED": null,
748
+ "INPUTED": null
749
+ }
750
+ },
751
+ {
752
+ "variableType": "CALCULATED",
753
+ "name": "IND_MAJEUR",
754
+ "expression": {
755
+ "value": "if nvl(AGE,0) > 17 then 1 else 0",
756
+ "type": "VTL"
757
+ },
758
+ "bindingDependencies": ["AGE"],
759
+ "shapeFrom": "PRENOM",
760
+ "inFilter": "true"
761
+ },
762
+ {
763
+ "variableType": "CALCULATED",
764
+ "name": "SUM_MAJEUR",
765
+ "expression": {
766
+ "value": "sum(IND_MAJEUR)",
767
+ "type": "VTL"
768
+ },
769
+ "bindingDependencies": ["IND_MAJEUR", "AGE"],
770
+ "inFilter": "true"
771
+ },
772
+ {
773
+ "variableType": "CALCULATED",
774
+ "name": "SUM_AGE",
775
+ "expression": {
776
+ "value": "sum(AGE)",
777
+ "type": "VTL"
778
+ },
779
+ "bindingDependencies": ["AGE"],
780
+ "inFilter": "false"
781
+ },
782
+ {
783
+ "variableType": "CALCULATED",
784
+ "name": "MIN_AGE",
785
+ "expression": {
786
+ "value": "min(AGE)",
787
+ "type": "VTL"
788
+ },
789
+ "bindingDependencies": ["AGE"],
790
+ "inFilter": "false"
791
+ }
792
+ ],
793
+ "cleaning": {
794
+ "SUM_MAJEUR": {
795
+ "DIVERS": "(SUM_MAJEUR > 0)"
796
+ },
797
+ "IND_MAJEUR": {
798
+ "DIVERS": "(SUM_MAJEUR > 0)"
799
+ },
800
+ "AGE": {
801
+ "DIVERS": "(SUM_MAJEUR > 0)"
802
+ }
803
+ },
804
+ "missingBlock": {
805
+ "NB_MISSING": ["NB"],
806
+ "NB": ["NB_MISSING"],
807
+ "PRENOM_MISSING": ["PRENOM"],
808
+ "NOM_MISSING": ["NOM"],
809
+ "PRENOM": ["PRENOM_MISSING"],
810
+ "NOM": ["NOM_MISSING"],
811
+ "AGE_MISSING": ["AGE"],
812
+ "AGE": ["AGE_MISSING"],
813
+ "DIVERS_MISSING": ["DIVERS"],
814
+ "DIVERS": ["DIVERS_MISSING"]
815
+ },
816
+ "resizing": {
817
+ "NB": {
818
+ "size": "cast(NB,integer)",
819
+ "variables": ["PRENOM", "AGE"]
820
+ }
821
+ }
822
+ }