@inseefr/lunatic 3.0.0-rc.1 → 3.0.0-rc.5
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/components/CheckboxBoolean/CheckboxBoolean.js +39 -19
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +2 -2
- package/lib/components/CheckboxOne/CheckboxOne.js +6 -6
- package/lib/components/Datepicker/Datepicker.js +43 -28
- package/lib/components/Dropdown/Dropdown.js +40 -23
- package/lib/components/Duration/Duration.js +41 -16
- package/lib/components/FilterDescription/FilterDescription.js +2 -3
- package/lib/components/Input/Input.js +39 -21
- package/lib/components/InputNumber/InputNumber.js +45 -34
- package/lib/components/InputNumber/__snapshots__/InputNumber.spec.tsx.snap +0 -2
- package/lib/components/Loop/Loop.js +52 -29
- package/lib/components/LunaticComponents.js +42 -37
- package/lib/components/Question/Question.js +23 -14
- package/lib/components/Radio/Radio.js +2 -2
- package/lib/components/RosterForLoop/RosterForLoop.js +13 -35
- package/lib/components/Roundabout/CustomRoundabout.js +2 -2
- package/lib/components/Roundabout/RoundaboutItButton.js +2 -2
- package/lib/components/Roundabout/extra.js +6 -6
- package/lib/components/Sequence/Sequence.js +2 -2
- package/lib/components/Subsequence/Subsequence.js +2 -2
- package/lib/components/Suggester/CustomSuggester.js +2 -2
- package/lib/components/Suggester/SuggesterNotification.js +2 -2
- package/lib/components/Summary/Summary.js +3 -3
- package/lib/components/Switch/Switch.js +42 -22
- package/lib/components/Textarea/Textarea.js +43 -23
- package/lib/components/library.js +0 -2
- package/lib/components/shared/Button/Button.js +2 -2
- package/lib/components/shared/Checkbox/CheckboxOption.js +2 -2
- package/lib/components/shared/Combobox/Combobox.js +2 -2
- package/lib/components/shared/Combobox/ComboboxContainer.js +2 -2
- package/lib/components/shared/Combobox/ComboboxContentBox.js +2 -2
- package/lib/components/shared/Combobox/Panel/ComboboxOption.js +2 -2
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js +2 -2
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js +2 -2
- package/lib/components/shared/Combobox/Selection/ComboboxInput.js +2 -2
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js +2 -2
- package/lib/components/shared/Declarations/Declarations.js +3 -3
- package/lib/components/shared/Fieldset/Fieldset.js +2 -2
- package/lib/components/shared/HOC/{customizedComponent.js → slottableComponent.js} +35 -13
- package/lib/components/shared/Label/Label.js +2 -2
- package/lib/components/shared/MDLabel/RouterLink.js +2 -2
- package/lib/components/shared/Notification.js +2 -2
- package/lib/components/shared/Radio/RadioGroup.js +4 -3
- package/lib/components/shared/Radio/RadioOption.js +2 -2
- package/lib/components/shared/Table/Table.js +2 -2
- package/lib/components/shared/Table/Tbody.js +2 -2
- package/lib/components/shared/Table/Td.js +2 -2
- package/lib/components/shared/Table/Th.js +2 -2
- package/lib/components/shared/Table/Thead.js +2 -2
- package/lib/components/shared/Table/Tr.js +2 -2
- package/lib/src/components/CheckboxBoolean/CheckboxBoolean.d.ts +10 -5
- package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +5 -11
- package/lib/src/components/Datepicker/Datepicker.d.ts +8 -9
- package/lib/src/components/Dropdown/Dropdown.d.ts +9 -11
- package/lib/src/components/Duration/Duration.d.ts +9 -6
- package/lib/src/components/FilterDescription/FilterDescription.d.ts +1 -1
- package/lib/src/components/Input/Input.d.ts +9 -7
- package/lib/src/components/InputNumber/InputNumber.d.ts +9 -9
- package/lib/src/components/Loop/Loop.d.ts +11 -18
- package/lib/src/components/LunaticComponents.d.ts +4 -2
- package/lib/src/components/Question/Question.d.ts +6 -4
- package/lib/src/components/RosterForLoop/RosterForLoop.d.ts +2 -21
- package/lib/src/components/Switch/Switch.d.ts +9 -0
- package/lib/src/components/Textarea/Textarea.d.ts +9 -9
- package/lib/src/components/library.d.ts +24 -91
- package/lib/src/components/shared/HOC/slottableComponent.d.ts +101 -0
- package/lib/src/components/shared/Radio/RadioGroup.d.ts +1 -0
- package/lib/src/components/type.d.ts +0 -5
- package/lib/src/index.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +18 -33
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +0 -37
- package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +16 -18
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +4 -52
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
- package/lib/src/use-lunatic/lunatic-context.d.ts +1 -4
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +3 -3
- package/lib/src/use-lunatic/type-source.d.ts +1 -5
- package/lib/src/use-lunatic/use-lunatic.d.ts +8 -19
- package/lib/stories/{component-set/component-set.stories.js → behaviour/slots.stories.js} +36 -25
- package/lib/stories/checkbox-group/checkbox-group.stories.js +1 -6
- package/lib/stories/disabled/source.json +1 -1
- package/lib/stories/pairwise/pairwise-links.stories.js +1 -9
- package/lib/stories/suggester/suggester.stories.js +1 -8
- package/lib/stories/utils/orchestrator.js +4 -4
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +0 -1
- package/lib/use-lunatic/lunatic-context.js +2 -10
- package/lib/use-lunatic/replace-component-sequence.js +2 -3
- package/lib/use-lunatic/use-lunatic.js +1 -4
- package/lib/use-lunatic/use-lunatic.test.js +4 -30
- package/package.json +1 -1
- package/lib/components/ComponentSet/ComponentSet.js +0 -68
- package/lib/components/type-custom.js +0 -5
- package/lib/src/components/ComponentSet/ComponentSet.d.ts +0 -7
- package/lib/src/components/shared/HOC/customizedComponent.d.ts +0 -5
- package/lib/src/components/type-custom.d.ts +0 -101
- package/lib/stories/checkbox-group/sourceComponentset.json +0 -424
- package/lib/stories/component-set/data-loop.json +0 -18
- package/lib/stories/component-set/data-roundabout.json +0 -25
- package/lib/stories/component-set/data.json +0 -25
- package/lib/stories/component-set/source-loop.json +0 -308
- package/lib/stories/component-set/source-roundabout.json +0 -434
- package/lib/stories/component-set/source.json +0 -113
- package/lib/stories/pairwise/source-componentset.json +0 -292
- package/lib/stories/suggester/source-component-set.json +0 -113
|
@@ -1,434 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"maxPage": "5",
|
|
3
|
-
"components": [
|
|
4
|
-
{
|
|
5
|
-
"id": "seq",
|
|
6
|
-
"componentType": "Sequence",
|
|
7
|
-
"label": {
|
|
8
|
-
"value": "\"Description des individus de votre logement\"",
|
|
9
|
-
"type": "VTL|MD"
|
|
10
|
-
},
|
|
11
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
12
|
-
"page": "1"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"id": "how",
|
|
16
|
-
"componentType": "InputNumber",
|
|
17
|
-
"mandatory": false,
|
|
18
|
-
"page": "2",
|
|
19
|
-
"min": 1,
|
|
20
|
-
"max": 10,
|
|
21
|
-
"decimals": 0,
|
|
22
|
-
"label": {
|
|
23
|
-
"value": "\"Combien de personnes vivent habituellement à votre adresse ?\"",
|
|
24
|
-
"type": "VTL|MD"
|
|
25
|
-
},
|
|
26
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
27
|
-
"response": { "name": "NB_HAB" }
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"id": "loop",
|
|
31
|
-
"componentType": "Loop",
|
|
32
|
-
"page": "3",
|
|
33
|
-
"depth": 1,
|
|
34
|
-
"paginatedLoop": false,
|
|
35
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
36
|
-
"loopDependencies": ["NHAB"],
|
|
37
|
-
"lines": {
|
|
38
|
-
"min": { "value": "NB_HAB", "type": "VTL" },
|
|
39
|
-
"max": { "value": "NB_HAB", "type": "VTL" }
|
|
40
|
-
},
|
|
41
|
-
"components": [
|
|
42
|
-
{
|
|
43
|
-
"componentType": "Input",
|
|
44
|
-
"label": { "value": "\"Prénom\"", "type": "VTL|MD" },
|
|
45
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
46
|
-
"maxLength": 30,
|
|
47
|
-
"bindingDependencies": ["PRENOM"],
|
|
48
|
-
"id": "prenom",
|
|
49
|
-
"response": {
|
|
50
|
-
"name": "PRENOM"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"id": "roundabout",
|
|
57
|
-
"componentType": "Roundabout",
|
|
58
|
-
"page": "4",
|
|
59
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
60
|
-
"iterations": { "value": "NB_HAB", "type": "VTL" },
|
|
61
|
-
"label": { "value": "\"Libellé du rondpoint\"", "type": "VTL" },
|
|
62
|
-
"locked": true,
|
|
63
|
-
"expressions": {
|
|
64
|
-
"unnecessary": {
|
|
65
|
-
"value": "AGELOOP < 13",
|
|
66
|
-
"type": "VTL"
|
|
67
|
-
},
|
|
68
|
-
"complete": {
|
|
69
|
-
"value": "not(isnull(KNOWREC)) and not(isnull(SEXE)) and not(isnull(SOMETHING))",
|
|
70
|
-
"type": "VTL"
|
|
71
|
-
},
|
|
72
|
-
"partial": {
|
|
73
|
-
"value": "not(isnull(KNOWREC)) or not(isnull(SEXE)) or not(isnull(SOMETHING))",
|
|
74
|
-
"type": "VTL"
|
|
75
|
-
},
|
|
76
|
-
"label": {
|
|
77
|
-
"value": "\"Série de question pour \" || PRENOM",
|
|
78
|
-
"type": "VTL"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"components": [
|
|
82
|
-
{
|
|
83
|
-
"id": "radio",
|
|
84
|
-
"componentType": "Radio",
|
|
85
|
-
"mandatory": false,
|
|
86
|
-
"page": "4.1",
|
|
87
|
-
"label": {
|
|
88
|
-
"value": "\"Connaissez-vous le recensement de la population ?\"",
|
|
89
|
-
"type": "VTL|MD"
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
93
|
-
|
|
94
|
-
"options": [
|
|
95
|
-
{ "value": "1", "label": { "value": "\"oui\"", "type": "VTL|MD" } },
|
|
96
|
-
|
|
97
|
-
{ "value": "2", "label": { "value": "\"non\"", "type": "VTL|MD" } }
|
|
98
|
-
],
|
|
99
|
-
"response": { "name": "KNOWREC" }
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"id": "jsygk7m7",
|
|
103
|
-
"componentType": "Subsequence",
|
|
104
|
-
"page": "4.2",
|
|
105
|
-
"label": {
|
|
106
|
-
"value": "\"Deuxième page de questions pour \"|| PRENOM",
|
|
107
|
-
"type": "VTL|MD"
|
|
108
|
-
},
|
|
109
|
-
"conditionFilter": { "value": "true", "type": "VTL" }
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"id": "component-set",
|
|
113
|
-
"componentType": "ComponentSet",
|
|
114
|
-
"page": "4.2",
|
|
115
|
-
"depth": 1,
|
|
116
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
117
|
-
"label": {
|
|
118
|
-
"value": "\"## Who are you?\"",
|
|
119
|
-
"type": "VTL|MD"
|
|
120
|
-
},
|
|
121
|
-
"description": {
|
|
122
|
-
"value": "\"This is your opportunity to tell me about yourself!\"",
|
|
123
|
-
"type": "VTL|MD"
|
|
124
|
-
},
|
|
125
|
-
"components": [
|
|
126
|
-
{
|
|
127
|
-
"id": "sexe",
|
|
128
|
-
"componentType": "Radio",
|
|
129
|
-
"label": {
|
|
130
|
-
"value": "\"Sexe\"",
|
|
131
|
-
"type": "VTL"
|
|
132
|
-
},
|
|
133
|
-
"conditionFilter": {
|
|
134
|
-
"value": "true",
|
|
135
|
-
"type": "VTL"
|
|
136
|
-
},
|
|
137
|
-
"options": [
|
|
138
|
-
{
|
|
139
|
-
"value": "1",
|
|
140
|
-
"label": { "value": "\"Homme\"", "type": "VTL|MD" }
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"value": "2",
|
|
144
|
-
"label": { "value": "\"Femme\"", "type": "VTL|MD" }
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"response": { "name": "SEXE" }
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"id": "color",
|
|
151
|
-
"componentType": "Input",
|
|
152
|
-
"mandatory": false,
|
|
153
|
-
"maxLength": 20,
|
|
154
|
-
"label": {
|
|
155
|
-
"value": "\"Favourite Color?\"))",
|
|
156
|
-
"type": "VTL|MD"
|
|
157
|
-
},
|
|
158
|
-
"conditionFilter": {
|
|
159
|
-
"value": "not(isnull(SEXE))",
|
|
160
|
-
"type": "VTL"
|
|
161
|
-
},
|
|
162
|
-
"controls": [
|
|
163
|
-
{
|
|
164
|
-
"id": "j4nw5cqz",
|
|
165
|
-
"typeOfControl": "CONSISTENCY",
|
|
166
|
-
"criticality": "WARN",
|
|
167
|
-
"control": {
|
|
168
|
-
"value": "COLOR <> \"Green\"",
|
|
169
|
-
"type": "VTL"
|
|
170
|
-
},
|
|
171
|
-
"errorMessage": {
|
|
172
|
-
"value": "\"Green is the worst colour!!!\"",
|
|
173
|
-
"type": "VTL|MD"
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
],
|
|
177
|
-
"response": { "name": "COLOR" }
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"id": "j4nw5cqz",
|
|
181
|
-
"componentType": "Dropdown",
|
|
182
|
-
"mandatory": false,
|
|
183
|
-
"label": {
|
|
184
|
-
"value": "\"In which state do The Simpsons reside?\"",
|
|
185
|
-
"type": "VTL|MD"
|
|
186
|
-
},
|
|
187
|
-
"description": "\"This is a test description\"",
|
|
188
|
-
"response": {
|
|
189
|
-
"name": "STATE"
|
|
190
|
-
},
|
|
191
|
-
"controls": [
|
|
192
|
-
{
|
|
193
|
-
"id": "j4nw5cqz",
|
|
194
|
-
"typeOfControl": "CONSISTENCY",
|
|
195
|
-
"criticality": "WARN",
|
|
196
|
-
"control": {
|
|
197
|
-
"value": "not(nvl(STATE,\"\") = \"13\")",
|
|
198
|
-
"type": "VTL"
|
|
199
|
-
},
|
|
200
|
-
"errorMessage": {
|
|
201
|
-
"value": "\"Please choose a state!\"",
|
|
202
|
-
"type": "VTL|MD"
|
|
203
|
-
},
|
|
204
|
-
"bindingDependencies": ["STATE"]
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"id": "j4nw5cqz",
|
|
208
|
-
"typeOfControl": "CONSISTENCY",
|
|
209
|
-
"criticality": "INFO",
|
|
210
|
-
"control": {
|
|
211
|
-
"value": "not(nvl(STATE,\"\") = \"4\")",
|
|
212
|
-
"type": "VTL"
|
|
213
|
-
},
|
|
214
|
-
"errorMessage": {
|
|
215
|
-
"value": "\"Idk if this is right, I'm just testing error messages!!\"",
|
|
216
|
-
"type": "VTL|MD"
|
|
217
|
-
},
|
|
218
|
-
"bindingDependencies": ["STATE"]
|
|
219
|
-
}
|
|
220
|
-
],
|
|
221
|
-
"options": [
|
|
222
|
-
{
|
|
223
|
-
"value": "1",
|
|
224
|
-
"label": { "value": "\"Washington\"", "type": "VTL" }
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"value": "2",
|
|
228
|
-
"label": { "value": "\"Kentucky\"", "type": "VTL" }
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"value": "3",
|
|
232
|
-
"label": { "value": "\"Ohio\"", "type": "VTL" }
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"value": "4",
|
|
236
|
-
"label": { "value": "\"Maine\"", "type": "VTL" }
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"value": "5",
|
|
240
|
-
"label": { "value": "\"North Dakota\"", "type": "VTL" }
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"value": "6",
|
|
244
|
-
"label": { "value": "\"Florida\"", "type": "VTL" }
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"value": "7",
|
|
248
|
-
"label": { "value": "\"North Takoma\"", "type": "VTL" }
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"value": "8",
|
|
252
|
-
"label": { "value": "\"California\"", "type": "VTL" }
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"value": "9",
|
|
256
|
-
"label": { "value": "\"Texas\"", "type": "VTL" }
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"value": "10",
|
|
260
|
-
"label": { "value": "\"Massachusetts\"", "type": "VTL" }
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"value": "11",
|
|
264
|
-
"label": { "value": "\"Nevada\"", "type": "VTL" }
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"value": "12",
|
|
268
|
-
"label": { "value": "\"Illinois\"", "type": "VTL" }
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"value": "13",
|
|
272
|
-
"label": {
|
|
273
|
-
"value": "\"Not in any state, you fool!\"",
|
|
274
|
-
"type": "VTL"
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
]
|
|
278
|
-
}
|
|
279
|
-
]
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"id": "jsygk7m7",
|
|
283
|
-
"componentType": "Subsequence",
|
|
284
|
-
"page": "4.3",
|
|
285
|
-
"label": {
|
|
286
|
-
"value": "\"Troisième page de questions \" || PRENOM",
|
|
287
|
-
"type": "VTL|MD"
|
|
288
|
-
},
|
|
289
|
-
"conditionFilter": { "value": "true", "type": "VTL" }
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"id": "kmno1n7m",
|
|
293
|
-
"componentType": "Input",
|
|
294
|
-
"maxLength": 30,
|
|
295
|
-
"page": "4.3",
|
|
296
|
-
"label": {
|
|
297
|
-
"value": "\"Dites quelque chose.\"))",
|
|
298
|
-
"type": "VTL|MD"
|
|
299
|
-
},
|
|
300
|
-
"conditionFilter": {
|
|
301
|
-
"value": "true",
|
|
302
|
-
"type": "VTL"
|
|
303
|
-
},
|
|
304
|
-
"response": { "name": "SOMETHING" }
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
|
-
},
|
|
308
|
-
|
|
309
|
-
{
|
|
310
|
-
"id": "seq",
|
|
311
|
-
"componentType": "Sequence",
|
|
312
|
-
"label": {
|
|
313
|
-
"value": "\"Merci !\"",
|
|
314
|
-
"type": "VTL|MD"
|
|
315
|
-
},
|
|
316
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
317
|
-
"page": "5"
|
|
318
|
-
}
|
|
319
|
-
],
|
|
320
|
-
"variables": [
|
|
321
|
-
{
|
|
322
|
-
"variableType": "COLLECTED",
|
|
323
|
-
"name": "NB_HAB",
|
|
324
|
-
"values": {
|
|
325
|
-
"PREVIOUS": null,
|
|
326
|
-
"COLLECTED": null,
|
|
327
|
-
"FORCED": null,
|
|
328
|
-
"EDITED": null,
|
|
329
|
-
"INPUTED": null
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"variableType": "COLLECTED",
|
|
334
|
-
"name": "PRENOM",
|
|
335
|
-
"values": {
|
|
336
|
-
"PREVIOUS": [null],
|
|
337
|
-
"COLLECTED": [null],
|
|
338
|
-
"FORCED": [null],
|
|
339
|
-
"EDITED": [null],
|
|
340
|
-
"INPUTED": [null]
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"variableType": "COLLECTED",
|
|
345
|
-
"name": "AGELOOP",
|
|
346
|
-
"values": {
|
|
347
|
-
"PREVIOUS": [null],
|
|
348
|
-
"COLLECTED": [null],
|
|
349
|
-
"FORCED": [null],
|
|
350
|
-
"EDITED": [null],
|
|
351
|
-
"INPUTED": [null]
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
"variableType": "COLLECTED",
|
|
356
|
-
"name": "KNOWREC",
|
|
357
|
-
"values": {
|
|
358
|
-
"PREVIOUS": [null],
|
|
359
|
-
"COLLECTED": [null],
|
|
360
|
-
"FORCED": [null],
|
|
361
|
-
"EDITED": [null],
|
|
362
|
-
"INPUTED": [null]
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
"variableType": "COLLECTED",
|
|
367
|
-
"name": "COLOR",
|
|
368
|
-
"values": {
|
|
369
|
-
"PREVIOUS": [null],
|
|
370
|
-
"COLLECTED": [null],
|
|
371
|
-
"FORCED": [null],
|
|
372
|
-
"EDITED": [null],
|
|
373
|
-
"INPUTED": [null]
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
"variableType": "COLLECTED",
|
|
378
|
-
"name": "SEXE",
|
|
379
|
-
"values": {
|
|
380
|
-
"PREVIOUS": [null],
|
|
381
|
-
"COLLECTED": [null],
|
|
382
|
-
"FORCED": [null],
|
|
383
|
-
"EDITED": [null],
|
|
384
|
-
"INPUTED": [null]
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
"variableType": "COLLECTED",
|
|
389
|
-
"name": "STATE",
|
|
390
|
-
"values": {
|
|
391
|
-
"PREVIOUS": [null],
|
|
392
|
-
"COLLECTED": [null],
|
|
393
|
-
"FORCED": [null],
|
|
394
|
-
"EDITED": [null],
|
|
395
|
-
"INPUTED": [null]
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
"variableType": "COLLECTED",
|
|
400
|
-
"name": "SOMETHING",
|
|
401
|
-
"values": {
|
|
402
|
-
"PREVIOUS": [null],
|
|
403
|
-
"COLLECTED": [null],
|
|
404
|
-
"FORCED": [null],
|
|
405
|
-
"EDITED": [null],
|
|
406
|
-
"INPUTED": [null]
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"variableType": "COLLECTED",
|
|
411
|
-
"name": "PRENOM",
|
|
412
|
-
"values": {
|
|
413
|
-
"PREVIOUS": [null],
|
|
414
|
-
"COLLECTED": [null],
|
|
415
|
-
"FORCED": [null],
|
|
416
|
-
"EDITED": [null],
|
|
417
|
-
"INPUTED": [null]
|
|
418
|
-
}
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"variableType": "CALCULATED",
|
|
422
|
-
"name": "PRENOMREF",
|
|
423
|
-
"expression": { "value": "first_value(PRENOM over())", "type": "VTL" },
|
|
424
|
-
"bindingDependencies": ["PRENOM"],
|
|
425
|
-
"inFilter": "true"
|
|
426
|
-
}
|
|
427
|
-
],
|
|
428
|
-
"resizing": {
|
|
429
|
-
"NB_HAB": {
|
|
430
|
-
"size": "NB_HAB",
|
|
431
|
-
"variables": ["PRENOM", "AGELOOP", "SEXE", "SOMETHING", "DATNAIS"]
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"maxPage": "5",
|
|
3
|
-
"components": [
|
|
4
|
-
{
|
|
5
|
-
"id": "component-set",
|
|
6
|
-
"componentType": "ComponentSet",
|
|
7
|
-
"page": "1",
|
|
8
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
9
|
-
"label": {
|
|
10
|
-
"value": "\"## Who are you?\"",
|
|
11
|
-
"type": "VTL|MD"
|
|
12
|
-
},
|
|
13
|
-
"description": {
|
|
14
|
-
"value": "\"This is your opportunity to tell me about yourself!\"",
|
|
15
|
-
"type": "VTL|MD"
|
|
16
|
-
},
|
|
17
|
-
"components": [
|
|
18
|
-
{
|
|
19
|
-
"id": "prenom",
|
|
20
|
-
"componentType": "Input",
|
|
21
|
-
"mandatory": false,
|
|
22
|
-
"maxLength": 20,
|
|
23
|
-
"label": {
|
|
24
|
-
"value": "\"Prénom\"))",
|
|
25
|
-
"type": "VTL|MD"
|
|
26
|
-
},
|
|
27
|
-
"conditionFilter": {
|
|
28
|
-
"value": "true",
|
|
29
|
-
"type": "VTL"
|
|
30
|
-
},
|
|
31
|
-
"response": { "name": "PRENOM" },
|
|
32
|
-
"controls": [
|
|
33
|
-
{
|
|
34
|
-
"criticality": "WARN",
|
|
35
|
-
"errorMessage": {
|
|
36
|
-
"type": "VTL",
|
|
37
|
-
"value": "\"booleen pas coché et on affiche un message un peu long histoire de tester le truc \""
|
|
38
|
-
},
|
|
39
|
-
"typeOfControl": "CONSISTENCY",
|
|
40
|
-
"control": {
|
|
41
|
-
"type": "VTL",
|
|
42
|
-
"value": "false"
|
|
43
|
-
},
|
|
44
|
-
"id": "kfxmjupm-CI-0"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"id": "age",
|
|
50
|
-
"componentType": "InputNumber",
|
|
51
|
-
"maxLength": 3,
|
|
52
|
-
"label": {
|
|
53
|
-
"value": "\"Age\"))",
|
|
54
|
-
"type": "VTL|MD"
|
|
55
|
-
},
|
|
56
|
-
"conditionFilter": {
|
|
57
|
-
"value": "true",
|
|
58
|
-
"type": "VTL"
|
|
59
|
-
},
|
|
60
|
-
"response": { "name": "AGE" }
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"id": "conditionfilter",
|
|
64
|
-
"componentType": "Sequence",
|
|
65
|
-
"mandatory": false,
|
|
66
|
-
"label": {
|
|
67
|
-
"value": "\"ConditionFilter\"))",
|
|
68
|
-
"type": "VTL|MD"
|
|
69
|
-
},
|
|
70
|
-
"conditionFilter": {
|
|
71
|
-
"value": "not(nvl(PRENOM, \"\") = \"\")",
|
|
72
|
-
"type": "VTL"
|
|
73
|
-
},
|
|
74
|
-
"response": { "name": "PRENOM" }
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"id": "seq",
|
|
80
|
-
"componentType": "Sequence",
|
|
81
|
-
"label": {
|
|
82
|
-
"value": "\"Merci !\"",
|
|
83
|
-
"type": "VTL|MD"
|
|
84
|
-
},
|
|
85
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
86
|
-
"page": "2"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"variables": [
|
|
90
|
-
{
|
|
91
|
-
"variableType": "COLLECTED",
|
|
92
|
-
"name": "AGE",
|
|
93
|
-
"values": {
|
|
94
|
-
"PREVIOUS": null,
|
|
95
|
-
"COLLECTED": null,
|
|
96
|
-
"FORCED": null,
|
|
97
|
-
"EDITED": null,
|
|
98
|
-
"INPUTED": null
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"variableType": "COLLECTED",
|
|
103
|
-
"name": "PRENOM",
|
|
104
|
-
"values": {
|
|
105
|
-
"PREVIOUS": null,
|
|
106
|
-
"COLLECTED": null,
|
|
107
|
-
"FORCED": null,
|
|
108
|
-
"EDITED": null,
|
|
109
|
-
"INPUTED": null
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
}
|