@inseefr/lunatic 2.4.1 → 2.4.2

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