@inseefr/lunatic 0.2.1-prisme → 0.2.2-prisme
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/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/stories/paste-questionnaire/source.json +6290 -0
- package/lib/stories/paste-questionnaire/test.stories.js +87 -0
- package/lib/stories/questionnaires-test/V2_DeclarationsSimples.json +848 -0
- package/lib/stories/questionnaires-test/V2_MinMaxSum_Boucles.json +509 -0
- package/lib/stories/questionnaires-test/V2_QuestSimple_Boucles.json +4091 -0
- package/lib/stories/questionnaires-test/V2_TCMRallyeGames.json +2892 -0
- package/lib/stories/questionnaires-test/controls/V2_ControlesNonNum_horsBoucle_PasPageFin.json +452 -0
- package/lib/stories/questionnaires-test/controls/V2_ControlesNum_horsBoucle_PasPageFin.json +1689 -0
- package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees2_PasPageFin.json +709 -0
- package/lib/stories/questionnaires-test/controls/V2_Controles_BouclesLiees_PasPageFin.json +368 -0
- package/lib/stories/questionnaires-test/controls/controls.stories.js +95 -0
- package/lib/stories/questionnaires-test/test-dylan.json +430 -0
- package/lib/stories/questionnaires-test/test.stories.js +45 -32
- package/package.json +1 -1
- package/src/components/declarations/wrappers/input-declarations-wrapper.js +4 -2
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "l3cxdar6",
|
|
3
|
+
"modele": "ORCHEST",
|
|
4
|
+
"enoCoreVersion": "2.3.7-dev-lunatic-v2",
|
|
5
|
+
"lunaticModelVersion": "2.2.13-dev-lunatic-v2",
|
|
6
|
+
"generatingDate": "13-07-2022 09:32:39",
|
|
7
|
+
"missing": false,
|
|
8
|
+
"pagination": "question",
|
|
9
|
+
"maxPage": "5",
|
|
10
|
+
"label": { "value": "Test Dylan", "type": "VTL|MD" },
|
|
11
|
+
"components": [
|
|
12
|
+
{
|
|
13
|
+
"id": "kfxmfvwj",
|
|
14
|
+
"componentType": "Sequence",
|
|
15
|
+
"page": "1",
|
|
16
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" },
|
|
17
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
18
|
+
"hierarchy": {
|
|
19
|
+
"sequence": {
|
|
20
|
+
"id": "kfxmfvwj",
|
|
21
|
+
"page": "1",
|
|
22
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" }
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
{
|
|
28
|
+
"id": "l0mly008",
|
|
29
|
+
"componentType": "InputNumber",
|
|
30
|
+
"mandatory": false,
|
|
31
|
+
"page": "2",
|
|
32
|
+
"min": 1,
|
|
33
|
+
"max": 5,
|
|
34
|
+
"decimals": 0,
|
|
35
|
+
"label": {
|
|
36
|
+
"value": "\"➡ \" || \"Veuillez indiquer le nb de personnes, de 1 à 5\"",
|
|
37
|
+
"type": "VTL|MD"
|
|
38
|
+
},
|
|
39
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
40
|
+
"hierarchy": {
|
|
41
|
+
"sequence": {
|
|
42
|
+
"id": "kfxmfvwj",
|
|
43
|
+
"page": "1",
|
|
44
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"bindingDependencies": ["NBHAB"],
|
|
48
|
+
"response": { "name": "NBHAB" }
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
{
|
|
52
|
+
"id": "l3cxbf98",
|
|
53
|
+
"componentType": "Loop",
|
|
54
|
+
"page": "3",
|
|
55
|
+
"depth": 1,
|
|
56
|
+
"paginatedLoop": false,
|
|
57
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
58
|
+
"hierarchy": {
|
|
59
|
+
"sequence": {
|
|
60
|
+
"id": "kfxmfvwj",
|
|
61
|
+
"page": "1",
|
|
62
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"bindingDependencies": ["NBHAB", "PRENOM"],
|
|
66
|
+
"loopDependencies": ["NBHAB"],
|
|
67
|
+
"lines": {
|
|
68
|
+
"min": { "value": "cast(NBHAB,integer)", "type": "VTL" },
|
|
69
|
+
"max": { "value": "cast(NBHAB,integer)", "type": "VTL" }
|
|
70
|
+
},
|
|
71
|
+
"components": [
|
|
72
|
+
{
|
|
73
|
+
"id": "l3cx4bsh",
|
|
74
|
+
"componentType": "Subsequence",
|
|
75
|
+
"page": "3",
|
|
76
|
+
"goToPage": "3",
|
|
77
|
+
"label": { "value": "Description chacun", "type": "VTL|MD" },
|
|
78
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
79
|
+
"hierarchy": {
|
|
80
|
+
"sequence": {
|
|
81
|
+
"id": "kfxmfvwj",
|
|
82
|
+
"page": "1",
|
|
83
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" }
|
|
84
|
+
},
|
|
85
|
+
"subSequence": {
|
|
86
|
+
"id": "l3cx4bsh",
|
|
87
|
+
"page": "3",
|
|
88
|
+
"label": { "value": "Description chacun", "type": "VTL|MD" }
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"bindingDependencies": ["NBHAB"]
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
{
|
|
95
|
+
"id": "l3cwvz7c",
|
|
96
|
+
"componentType": "Input",
|
|
97
|
+
"mandatory": false,
|
|
98
|
+
"page": "3",
|
|
99
|
+
"maxLength": 249,
|
|
100
|
+
"label": { "value": "\"➡ \" || \"Prénom\"", "type": "VTL|MD" },
|
|
101
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
102
|
+
"hierarchy": {
|
|
103
|
+
"sequence": {
|
|
104
|
+
"id": "kfxmfvwj",
|
|
105
|
+
"page": "1",
|
|
106
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" }
|
|
107
|
+
},
|
|
108
|
+
"subSequence": {
|
|
109
|
+
"id": "l3cx4bsh",
|
|
110
|
+
"page": "3",
|
|
111
|
+
"label": { "value": "Description chacun", "type": "VTL|MD" }
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"bindingDependencies": ["PRENOM", "NBHAB"],
|
|
115
|
+
"response": { "name": "PRENOM" }
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
{
|
|
121
|
+
"id": "l3cxj63j",
|
|
122
|
+
"componentType": "Loop",
|
|
123
|
+
"page": "4",
|
|
124
|
+
"maxPage": "3",
|
|
125
|
+
"depth": 1,
|
|
126
|
+
"paginatedLoop": true,
|
|
127
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
128
|
+
"hierarchy": {
|
|
129
|
+
"sequence": {
|
|
130
|
+
"id": "kfxmfvwj",
|
|
131
|
+
"page": "1",
|
|
132
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" }
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"bindingDependencies": [
|
|
136
|
+
"PRENOM",
|
|
137
|
+
"MAJMIN",
|
|
138
|
+
"ADR",
|
|
139
|
+
"AGE",
|
|
140
|
+
"VALAGE",
|
|
141
|
+
"VALADR"
|
|
142
|
+
],
|
|
143
|
+
"loopDependencies": ["PRENOM"],
|
|
144
|
+
"components": [
|
|
145
|
+
{
|
|
146
|
+
"id": "l3cwwfku",
|
|
147
|
+
"componentType": "Subsequence",
|
|
148
|
+
"goToPage": "4.1",
|
|
149
|
+
"label": {
|
|
150
|
+
"value": "Boucle de sous séquence sur le prénom",
|
|
151
|
+
"type": "VTL|MD"
|
|
152
|
+
},
|
|
153
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
154
|
+
"hierarchy": {
|
|
155
|
+
"sequence": {
|
|
156
|
+
"id": "kfxmfvwj",
|
|
157
|
+
"page": "1",
|
|
158
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" }
|
|
159
|
+
},
|
|
160
|
+
"subSequence": {
|
|
161
|
+
"id": "l3cwwfku",
|
|
162
|
+
"page": "4.1",
|
|
163
|
+
"label": {
|
|
164
|
+
"value": "Boucle de sous séquence sur le prénom",
|
|
165
|
+
"type": "VTL|MD"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"bindingDependencies": ["PRENOM"]
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
{
|
|
173
|
+
"id": "l3cxdsjt",
|
|
174
|
+
"componentType": "InputNumber",
|
|
175
|
+
"mandatory": false,
|
|
176
|
+
"page": "4.1",
|
|
177
|
+
"min": 0,
|
|
178
|
+
"max": 100,
|
|
179
|
+
"decimals": 0,
|
|
180
|
+
"label": {
|
|
181
|
+
"value": "\"➡ \" || \"Quel âge a \" || PRENOM || \"?\"",
|
|
182
|
+
"type": "VTL|MD"
|
|
183
|
+
},
|
|
184
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
185
|
+
"hierarchy": {
|
|
186
|
+
"sequence": {
|
|
187
|
+
"id": "kfxmfvwj",
|
|
188
|
+
"page": "1",
|
|
189
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" }
|
|
190
|
+
},
|
|
191
|
+
"subSequence": {
|
|
192
|
+
"id": "l3cwwfku",
|
|
193
|
+
"page": "4.1",
|
|
194
|
+
"label": {
|
|
195
|
+
"value": "Boucle de sous séquence sur le prénom",
|
|
196
|
+
"type": "VTL|MD"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"bindingDependencies": ["PRENOM", "AGE"],
|
|
201
|
+
"response": { "name": "AGE" }
|
|
202
|
+
},
|
|
203
|
+
|
|
204
|
+
{
|
|
205
|
+
"id": "l3cx6ch9",
|
|
206
|
+
"componentType": "CheckboxOne",
|
|
207
|
+
"mandatory": false,
|
|
208
|
+
"page": "4.2",
|
|
209
|
+
"label": {
|
|
210
|
+
"value": "\"➡ \" || \"Validez son age avec var calculée : \" || MAJMIN",
|
|
211
|
+
"type": "VTL|MD"
|
|
212
|
+
},
|
|
213
|
+
"declarations": [
|
|
214
|
+
{
|
|
215
|
+
"id": "l3cx6ch9-l3cxm4q7",
|
|
216
|
+
"declarationType": "HELP",
|
|
217
|
+
"position": "AFTER_QUESTION_TEXT",
|
|
218
|
+
"label": {
|
|
219
|
+
"value": "\"Test MAJMIN :\" || MAJMIN",
|
|
220
|
+
"type": "VTL|MD"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
225
|
+
"hierarchy": {
|
|
226
|
+
"sequence": {
|
|
227
|
+
"id": "kfxmfvwj",
|
|
228
|
+
"page": "1",
|
|
229
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" }
|
|
230
|
+
},
|
|
231
|
+
"subSequence": {
|
|
232
|
+
"id": "l3cwwfku",
|
|
233
|
+
"page": "4.1",
|
|
234
|
+
"label": {
|
|
235
|
+
"value": "Boucle de sous séquence sur le prénom",
|
|
236
|
+
"type": "VTL|MD"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"bindingDependencies": ["MAJMIN", "VALAGE", "PRENOM"],
|
|
241
|
+
"options": [
|
|
242
|
+
{ "value": "1", "label": { "value": "oui", "type": "VTL|MD" } },
|
|
243
|
+
|
|
244
|
+
{ "value": "2", "label": { "value": "non", "type": "VTL|MD" } }
|
|
245
|
+
],
|
|
246
|
+
"response": { "name": "VALAGE" }
|
|
247
|
+
},
|
|
248
|
+
|
|
249
|
+
{
|
|
250
|
+
"id": "l3cx9gfy",
|
|
251
|
+
"componentType": "CheckboxOne",
|
|
252
|
+
"mandatory": false,
|
|
253
|
+
"page": "4.3",
|
|
254
|
+
"label": {
|
|
255
|
+
"value": "\"➡ \" || \"Validez son adresse - prérempli avec variable externe : \" || ADR",
|
|
256
|
+
"type": "VTL|MD"
|
|
257
|
+
},
|
|
258
|
+
"declarations": [
|
|
259
|
+
{
|
|
260
|
+
"id": "l3cx9gfy-l3cx9hyf",
|
|
261
|
+
"declarationType": "HELP",
|
|
262
|
+
"position": "AFTER_QUESTION_TEXT",
|
|
263
|
+
"label": { "value": "\"TEst ADR :\" || ADR", "type": "VTL|MD" }
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
267
|
+
"hierarchy": {
|
|
268
|
+
"sequence": {
|
|
269
|
+
"id": "kfxmfvwj",
|
|
270
|
+
"page": "1",
|
|
271
|
+
"label": { "value": "SEQUENCE 1", "type": "VTL|MD" }
|
|
272
|
+
},
|
|
273
|
+
"subSequence": {
|
|
274
|
+
"id": "l3cwwfku",
|
|
275
|
+
"page": "4.1",
|
|
276
|
+
"label": {
|
|
277
|
+
"value": "Boucle de sous séquence sur le prénom",
|
|
278
|
+
"type": "VTL|MD"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"bindingDependencies": ["ADR", "VALADR", "PRENOM"],
|
|
283
|
+
"options": [
|
|
284
|
+
{ "value": "1", "label": { "value": "oui", "type": "VTL|MD" } },
|
|
285
|
+
|
|
286
|
+
{ "value": "2", "label": { "value": "non", "type": "VTL|MD" } }
|
|
287
|
+
],
|
|
288
|
+
"response": { "name": "VALADR" }
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"iterations": { "value": "count(PRENOM)", "type": "VTL" }
|
|
292
|
+
},
|
|
293
|
+
|
|
294
|
+
{
|
|
295
|
+
"id": "l3cxii6f",
|
|
296
|
+
"componentType": "Sequence",
|
|
297
|
+
"page": "5",
|
|
298
|
+
"label": { "value": "SEQFIN", "type": "VTL|MD" },
|
|
299
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
300
|
+
"hierarchy": {
|
|
301
|
+
"sequence": {
|
|
302
|
+
"id": "l3cxii6f",
|
|
303
|
+
"page": "5",
|
|
304
|
+
"label": { "value": "SEQFIN", "type": "VTL|MD" }
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"variables": [
|
|
310
|
+
{ "variableType": "EXTERNAL", "name": "ADR", "value": null },
|
|
311
|
+
|
|
312
|
+
{
|
|
313
|
+
"variableType": "COLLECTED",
|
|
314
|
+
"name": "NBHAB",
|
|
315
|
+
"values": {
|
|
316
|
+
"PREVIOUS": null,
|
|
317
|
+
"COLLECTED": null,
|
|
318
|
+
"FORCED": null,
|
|
319
|
+
"EDITED": null,
|
|
320
|
+
"INPUTED": null
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
|
|
324
|
+
{
|
|
325
|
+
"variableType": "COLLECTED",
|
|
326
|
+
"name": "PRENOM",
|
|
327
|
+
"values": {
|
|
328
|
+
"PREVIOUS": [null],
|
|
329
|
+
"COLLECTED": [null],
|
|
330
|
+
"FORCED": [null],
|
|
331
|
+
"EDITED": [null],
|
|
332
|
+
"INPUTED": [null]
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
|
|
336
|
+
{
|
|
337
|
+
"variableType": "COLLECTED",
|
|
338
|
+
"name": "AGE",
|
|
339
|
+
"values": {
|
|
340
|
+
"PREVIOUS": [null],
|
|
341
|
+
"COLLECTED": [null],
|
|
342
|
+
"FORCED": [null],
|
|
343
|
+
"EDITED": [null],
|
|
344
|
+
"INPUTED": [null]
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
|
|
348
|
+
{
|
|
349
|
+
"variableType": "COLLECTED",
|
|
350
|
+
"name": "VALAGE",
|
|
351
|
+
"values": {
|
|
352
|
+
"PREVIOUS": [null],
|
|
353
|
+
"COLLECTED": [null],
|
|
354
|
+
"FORCED": [null],
|
|
355
|
+
"EDITED": [null],
|
|
356
|
+
"INPUTED": [null]
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
|
|
360
|
+
{
|
|
361
|
+
"variableType": "COLLECTED",
|
|
362
|
+
"name": "VALADR",
|
|
363
|
+
"values": {
|
|
364
|
+
"PREVIOUS": [null],
|
|
365
|
+
"COLLECTED": [null],
|
|
366
|
+
"FORCED": [null],
|
|
367
|
+
"EDITED": [null],
|
|
368
|
+
"INPUTED": [null]
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
|
|
372
|
+
{
|
|
373
|
+
"variableType": "CALCULATED",
|
|
374
|
+
"name": "FILTER_RESULT_NBHAB",
|
|
375
|
+
"expression": { "value": "true", "type": "VTL" },
|
|
376
|
+
"inFilter": "false"
|
|
377
|
+
},
|
|
378
|
+
|
|
379
|
+
{
|
|
380
|
+
"variableType": "CALCULATED",
|
|
381
|
+
"name": "FILTER_RESULT_PRENOM",
|
|
382
|
+
"expression": { "value": "true", "type": "VTL" },
|
|
383
|
+
"shapeFrom": "PRENOM",
|
|
384
|
+
"inFilter": "false"
|
|
385
|
+
},
|
|
386
|
+
|
|
387
|
+
{
|
|
388
|
+
"variableType": "CALCULATED",
|
|
389
|
+
"name": "MAJMIN",
|
|
390
|
+
"expression": {
|
|
391
|
+
"value": "if isnull(AGE) then \"inconnu\" else (if cast(AGE,integer)<18 then \"mineur\" else \"majeur\")",
|
|
392
|
+
"type": "VTL"
|
|
393
|
+
},
|
|
394
|
+
"bindingDependencies": ["AGE"],
|
|
395
|
+
"shapeFrom": "PRENOM",
|
|
396
|
+
"inFilter": "false"
|
|
397
|
+
},
|
|
398
|
+
|
|
399
|
+
{
|
|
400
|
+
"variableType": "CALCULATED",
|
|
401
|
+
"name": "FILTER_RESULT_AGE",
|
|
402
|
+
"expression": { "value": "true", "type": "VTL" },
|
|
403
|
+
"shapeFrom": "AGE",
|
|
404
|
+
"inFilter": "false"
|
|
405
|
+
},
|
|
406
|
+
|
|
407
|
+
{
|
|
408
|
+
"variableType": "CALCULATED",
|
|
409
|
+
"name": "FILTER_RESULT_VALAGE",
|
|
410
|
+
"expression": { "value": "true", "type": "VTL" },
|
|
411
|
+
"shapeFrom": "AGE",
|
|
412
|
+
"inFilter": "false"
|
|
413
|
+
},
|
|
414
|
+
|
|
415
|
+
{
|
|
416
|
+
"variableType": "CALCULATED",
|
|
417
|
+
"name": "FILTER_RESULT_VALADR",
|
|
418
|
+
"expression": { "value": "true", "type": "VTL" },
|
|
419
|
+
"shapeFrom": "AGE",
|
|
420
|
+
"inFilter": "false"
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
"cleaning": {},
|
|
424
|
+
"resizing": {
|
|
425
|
+
"NBHAB": {
|
|
426
|
+
"size": "cast(NBHAB,integer)",
|
|
427
|
+
"variables": ["PRENOM", "AGE", "VALAGE", "VALADR"]
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
@@ -3,13 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.TestDylan = exports.SimpleLoops = exports.RallyeGames = exports.MinMaxLoops = exports.DeclarationsSimples = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
10
|
var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _testDylan = _interopRequireDefault(require("./test-dylan"));
|
|
13
|
+
|
|
14
|
+
var _V2_MinMaxSum_Boucles = _interopRequireDefault(require("./V2_MinMaxSum_Boucles"));
|
|
15
|
+
|
|
16
|
+
var _V2_QuestSimple_Boucles = _interopRequireDefault(require("./V2_QuestSimple_Boucles"));
|
|
17
|
+
|
|
18
|
+
var _V2_TCMRallyeGames = _interopRequireDefault(require("./V2_TCMRallyeGames"));
|
|
19
|
+
|
|
20
|
+
var _V2_DeclarationsSimples = _interopRequireDefault(require("./V2_DeclarationsSimples"));
|
|
13
21
|
|
|
14
22
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
15
23
|
|
|
@@ -22,7 +30,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
22
30
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
31
|
|
|
24
32
|
var stories = {
|
|
25
|
-
title: 'Questionnaires - Tests/
|
|
33
|
+
title: 'Questionnaires - Tests/Others',
|
|
26
34
|
component: _orchestrator["default"],
|
|
27
35
|
argTypes: _objectSpread(_objectSpread({}, _defaultArgTypes["default"]), {}, {
|
|
28
36
|
missing: {
|
|
@@ -45,30 +53,6 @@ var stories = {
|
|
|
45
53
|
},
|
|
46
54
|
control: 'boolean',
|
|
47
55
|
defaultValue: false
|
|
48
|
-
},
|
|
49
|
-
source: {
|
|
50
|
-
table: {
|
|
51
|
-
disable: false
|
|
52
|
-
},
|
|
53
|
-
control: {
|
|
54
|
-
type: 'object'
|
|
55
|
-
},
|
|
56
|
-
defaultValue: _sources["default"]
|
|
57
|
-
},
|
|
58
|
-
data: {
|
|
59
|
-
table: {
|
|
60
|
-
disable: false
|
|
61
|
-
},
|
|
62
|
-
control: {
|
|
63
|
-
type: 'object'
|
|
64
|
-
},
|
|
65
|
-
defaultValue: {
|
|
66
|
-
COLLECTED: {
|
|
67
|
-
READY: {
|
|
68
|
-
COLLECTED: true
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
56
|
}
|
|
73
57
|
})
|
|
74
58
|
};
|
|
@@ -79,9 +63,38 @@ var Template = function Template(args) {
|
|
|
79
63
|
return /*#__PURE__*/_react["default"].createElement(_orchestrator["default"], args);
|
|
80
64
|
};
|
|
81
65
|
|
|
82
|
-
var
|
|
83
|
-
exports.
|
|
84
|
-
|
|
85
|
-
id: '
|
|
86
|
-
pagination: true
|
|
66
|
+
var TestDylan = Template.bind({});
|
|
67
|
+
exports.TestDylan = TestDylan;
|
|
68
|
+
TestDylan.args = {
|
|
69
|
+
id: 'test-dylan',
|
|
70
|
+
pagination: true,
|
|
71
|
+
source: _testDylan["default"]
|
|
72
|
+
};
|
|
73
|
+
var DeclarationsSimples = Template.bind({});
|
|
74
|
+
exports.DeclarationsSimples = DeclarationsSimples;
|
|
75
|
+
DeclarationsSimples.args = {
|
|
76
|
+
id: 'declarations-simples',
|
|
77
|
+
pagination: true,
|
|
78
|
+
source: _V2_DeclarationsSimples["default"]
|
|
79
|
+
};
|
|
80
|
+
var MinMaxLoops = Template.bind({});
|
|
81
|
+
exports.MinMaxLoops = MinMaxLoops;
|
|
82
|
+
MinMaxLoops.args = {
|
|
83
|
+
id: 'min-max-loops',
|
|
84
|
+
pagination: true,
|
|
85
|
+
source: _V2_MinMaxSum_Boucles["default"]
|
|
86
|
+
};
|
|
87
|
+
var SimpleLoops = Template.bind({});
|
|
88
|
+
exports.SimpleLoops = SimpleLoops;
|
|
89
|
+
SimpleLoops.args = {
|
|
90
|
+
id: 'simple-loops',
|
|
91
|
+
pagination: true,
|
|
92
|
+
source: _V2_QuestSimple_Boucles["default"]
|
|
93
|
+
};
|
|
94
|
+
var RallyeGames = Template.bind({});
|
|
95
|
+
exports.RallyeGames = RallyeGames;
|
|
96
|
+
RallyeGames.args = {
|
|
97
|
+
id: 'rally-games',
|
|
98
|
+
pagination: true,
|
|
99
|
+
source: _V2_TCMRallyeGames["default"]
|
|
87
100
|
};
|
package/package.json
CHANGED
|
@@ -174,9 +174,11 @@ const InputDeclarationsWrapper = ({
|
|
|
174
174
|
inputMode={numberAsTextfield ? inputMode : 'text'}
|
|
175
175
|
onChange={(e) => {
|
|
176
176
|
const v = e.target.value;
|
|
177
|
-
const
|
|
177
|
+
const vFormated =
|
|
178
|
+
isInputNumber && decimals ? v.replace(',', '.') : v;
|
|
179
|
+
const valueToFire = v === '' ? null : vFormated;
|
|
178
180
|
const valueToFireForArrows =
|
|
179
|
-
Number.parseFloat(
|
|
181
|
+
Number.parseFloat(vFormated).toFixed(decimals);
|
|
180
182
|
if (
|
|
181
183
|
decimals &&
|
|
182
184
|
v !== '' &&
|