@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.
@@ -0,0 +1,368 @@
1
+ {
2
+ "id": "l5gghitu",
3
+ "modele": "TESTCONTBOUCL",
4
+ "enoCoreVersion": "2.3.7-dev-lunatic-v2",
5
+ "lunaticModelVersion": "2.2.13-dev-lunatic-v2",
6
+ "generatingDate": "18-07-2022 16:11:53",
7
+ "missing": false,
8
+ "pagination": "question",
9
+ "maxPage": "5",
10
+ "label": {
11
+ "value": "Lunatic V2 - controles dans boucles liees (bug V1)",
12
+ "type": "VTL|MD"
13
+ },
14
+ "components": [
15
+ {
16
+ "id": "kfxmfvwj",
17
+ "componentType": "Sequence",
18
+ "page": "1",
19
+ "label": { "value": "S1", "type": "VTL|MD" },
20
+ "conditionFilter": { "value": "true", "type": "VTL" },
21
+ "hierarchy": {
22
+ "sequence": {
23
+ "id": "kfxmfvwj",
24
+ "page": "1",
25
+ "label": { "value": "S1", "type": "VTL|MD" }
26
+ }
27
+ }
28
+ },
29
+
30
+ {
31
+ "id": "l14vfucm",
32
+ "componentType": "InputNumber",
33
+ "mandatory": false,
34
+ "page": "2",
35
+ "min": 1,
36
+ "max": 5,
37
+ "decimals": 0,
38
+ "label": {
39
+ "value": "\"➡ 1. \" || \"nbhab de 1 a 5 ? ne pas laisser vide\"",
40
+ "type": "VTL|MD"
41
+ },
42
+ "declarations": [
43
+ {
44
+ "id": "l14vfucm-l5qoq4pp",
45
+ "declarationType": "HELP",
46
+ "position": "AFTER_QUESTION_TEXT",
47
+ "label": { "value": "Controle si > 3", "type": "VTL|MD" }
48
+ }
49
+ ],
50
+ "conditionFilter": { "value": "true", "type": "VTL" },
51
+ "controls": [
52
+ {
53
+ "id": "l14vfucm-CI-0",
54
+ "criticality": "WARN",
55
+ "control": {
56
+ "value": "not(cast(nvl(Q1,\"0\"),integer)) > 3)",
57
+ "type": "VTL"
58
+ },
59
+ "errorMessage": { "value": "Supérieur à 3", "type": "VTL|MD" },
60
+ "bindingDependencies": ["Q1"]
61
+ }
62
+ ],
63
+ "hierarchy": {
64
+ "sequence": {
65
+ "id": "kfxmfvwj",
66
+ "page": "1",
67
+ "label": { "value": "S1", "type": "VTL|MD" }
68
+ }
69
+ },
70
+ "bindingDependencies": ["Q1"],
71
+ "response": { "name": "Q1" }
72
+ },
73
+
74
+ {
75
+ "id": "l5gh45ic",
76
+ "componentType": "Loop",
77
+ "page": "3",
78
+ "depth": 1,
79
+ "paginatedLoop": false,
80
+ "conditionFilter": { "value": "true", "type": "VTL" },
81
+ "bindingDependencies": ["Q1", "Q2"],
82
+ "loopDependencies": ["Q1"],
83
+ "lines": {
84
+ "min": { "value": "cast(nvl(Q1,\"0\"),integer)", "type": "VTL" },
85
+ "max": { "value": "cast(nvl(Q1,\"0\"),integer)", "type": "VTL" }
86
+ },
87
+ "components": [
88
+ {
89
+ "id": "l5gh9umu",
90
+ "componentType": "Sequence",
91
+ "page": "3",
92
+ "label": { "value": "S2", "type": "VTL|MD" },
93
+ "conditionFilter": { "value": "true", "type": "VTL" },
94
+ "hierarchy": {
95
+ "sequence": {
96
+ "id": "l5gh9umu",
97
+ "page": "3",
98
+ "label": { "value": "S2", "type": "VTL|MD" }
99
+ }
100
+ },
101
+ "bindingDependencies": ["Q1"]
102
+ },
103
+
104
+ {
105
+ "id": "l5gh84ov",
106
+ "componentType": "Input",
107
+ "mandatory": false,
108
+ "page": "3",
109
+ "maxLength": 249,
110
+ "label": { "value": "\"➡ 1. \" || \"prenom\"", "type": "VTL|MD" },
111
+ "conditionFilter": { "value": "true", "type": "VTL" },
112
+ "hierarchy": {
113
+ "sequence": {
114
+ "id": "l5gh9umu",
115
+ "page": "3",
116
+ "label": { "value": "S2", "type": "VTL|MD" }
117
+ }
118
+ },
119
+ "bindingDependencies": ["Q2", "Q1"],
120
+ "response": { "name": "Q2" }
121
+ }
122
+ ]
123
+ },
124
+
125
+ {
126
+ "id": "l5gh8yro",
127
+ "componentType": "Loop",
128
+ "page": "4",
129
+ "maxPage": "4",
130
+ "depth": 1,
131
+ "paginatedLoop": true,
132
+ "conditionFilter": { "value": "true", "type": "VTL" },
133
+ "bindingDependencies": ["Q3", "Q4", "Q5"],
134
+ "loopDependencies": ["Q2"],
135
+ "components": [
136
+ {
137
+ "id": "l5ghlajk",
138
+ "componentType": "Sequence",
139
+ "page": "4.1",
140
+ "label": { "value": "S3", "type": "VTL|MD" },
141
+ "conditionFilter": { "value": "true", "type": "VTL" },
142
+ "hierarchy": {
143
+ "sequence": {
144
+ "id": "l5ghlajk",
145
+ "page": "4.1",
146
+ "label": { "value": "S3", "type": "VTL|MD" }
147
+ }
148
+ },
149
+ "bindingDependencies": ["Q2"]
150
+ },
151
+
152
+ {
153
+ "id": "l5ggvqgj",
154
+ "componentType": "InputNumber",
155
+ "mandatory": false,
156
+ "page": "4.2",
157
+ "min": 0,
158
+ "max": 20,
159
+ "decimals": 0,
160
+ "label": {
161
+ "value": "\"➡ 1. \" || \"Q3 entre 0 et 20 \"",
162
+ "type": "VTL|MD"
163
+ },
164
+ "conditionFilter": { "value": "true", "type": "VTL" },
165
+ "hierarchy": {
166
+ "sequence": {
167
+ "id": "l5ghlajk",
168
+ "page": "4.1",
169
+ "label": { "value": "S3", "type": "VTL|MD" }
170
+ }
171
+ },
172
+ "bindingDependencies": ["Q3", "Q2"],
173
+ "response": { "name": "Q3" }
174
+ },
175
+
176
+ {
177
+ "id": "l5ggzuuo",
178
+ "componentType": "InputNumber",
179
+ "mandatory": false,
180
+ "page": "4.3",
181
+ "min": 0,
182
+ "max": 20,
183
+ "decimals": 0,
184
+ "label": {
185
+ "value": "\"➡ 2. \" || \"Q4 entre 0 et 20 et controle si Q3 > Q4 \"",
186
+ "type": "VTL|MD"
187
+ },
188
+ "conditionFilter": { "value": "true", "type": "VTL" },
189
+ "controls": [
190
+ {
191
+ "id": "l5ggzuuo-CI-0",
192
+ "criticality": "WARN",
193
+ "control": {
194
+ "value": "not(cast(nvl(Q3,\"0\"),integer) > cast(nvl(Q4,\"0\"),integer))",
195
+ "type": "VTL"
196
+ },
197
+ "errorMessage": { "value": "\"Q3 > Q4\"", "type": "VTL|MD" },
198
+ "bindingDependencies": ["Q3", "Q4"]
199
+ }
200
+ ],
201
+ "hierarchy": {
202
+ "sequence": {
203
+ "id": "l5ghlajk",
204
+ "page": "4.1",
205
+ "label": { "value": "S3", "type": "VTL|MD" }
206
+ }
207
+ },
208
+ "bindingDependencies": ["Q4", "Q2"],
209
+ "response": { "name": "Q4" }
210
+ },
211
+
212
+ {
213
+ "id": "l5ghsjv2",
214
+ "componentType": "Input",
215
+ "mandatory": false,
216
+ "page": "4.4",
217
+ "maxLength": 249,
218
+ "label": {
219
+ "value": "\"➡ 3. \" || \"Q5 controle sur vide \"",
220
+ "type": "VTL|MD"
221
+ },
222
+ "conditionFilter": { "value": "true", "type": "VTL" },
223
+ "controls": [
224
+ {
225
+ "id": "l5ghsjv2-CI-0",
226
+ "criticality": "WARN",
227
+ "control": { "value": "not(isnull(Q5))", "type": "VTL" },
228
+ "errorMessage": { "value": "Q5 est vide ", "type": "VTL|MD" },
229
+ "bindingDependencies": ["Q5"]
230
+ }
231
+ ],
232
+ "hierarchy": {
233
+ "sequence": {
234
+ "id": "l5ghlajk",
235
+ "page": "4.1",
236
+ "label": { "value": "S3", "type": "VTL|MD" }
237
+ }
238
+ },
239
+ "bindingDependencies": ["Q5", "Q2"],
240
+ "response": { "name": "Q5" }
241
+ }
242
+ ],
243
+ "iterations": { "value": "count(Q2)", "type": "VTL" }
244
+ },
245
+
246
+ {
247
+ "id": "l5gh8epv",
248
+ "componentType": "Sequence",
249
+ "page": "5",
250
+ "label": { "value": "S4", "type": "VTL|MD" },
251
+ "conditionFilter": { "value": "true", "type": "VTL" },
252
+ "hierarchy": {
253
+ "sequence": {
254
+ "id": "l5gh8epv",
255
+ "page": "5",
256
+ "label": { "value": "S4", "type": "VTL|MD" }
257
+ }
258
+ }
259
+ }
260
+ ],
261
+ "variables": [
262
+ {
263
+ "variableType": "COLLECTED",
264
+ "name": "Q1",
265
+ "values": {
266
+ "PREVIOUS": null,
267
+ "COLLECTED": null,
268
+ "FORCED": null,
269
+ "EDITED": null,
270
+ "INPUTED": null
271
+ }
272
+ },
273
+
274
+ {
275
+ "variableType": "COLLECTED",
276
+ "name": "Q2",
277
+ "values": {
278
+ "PREVIOUS": [null],
279
+ "COLLECTED": [null],
280
+ "FORCED": [null],
281
+ "EDITED": [null],
282
+ "INPUTED": [null]
283
+ }
284
+ },
285
+
286
+ {
287
+ "variableType": "COLLECTED",
288
+ "name": "Q3",
289
+ "values": {
290
+ "PREVIOUS": [null],
291
+ "COLLECTED": [null],
292
+ "FORCED": [null],
293
+ "EDITED": [null],
294
+ "INPUTED": [null]
295
+ }
296
+ },
297
+
298
+ {
299
+ "variableType": "COLLECTED",
300
+ "name": "Q4",
301
+ "values": {
302
+ "PREVIOUS": [null],
303
+ "COLLECTED": [null],
304
+ "FORCED": [null],
305
+ "EDITED": [null],
306
+ "INPUTED": [null]
307
+ }
308
+ },
309
+
310
+ {
311
+ "variableType": "COLLECTED",
312
+ "name": "Q5",
313
+ "values": {
314
+ "PREVIOUS": [null],
315
+ "COLLECTED": [null],
316
+ "FORCED": [null],
317
+ "EDITED": [null],
318
+ "INPUTED": [null]
319
+ }
320
+ },
321
+
322
+ {
323
+ "variableType": "CALCULATED",
324
+ "name": "FILTER_RESULT_Q1",
325
+ "expression": { "value": "true", "type": "VTL" },
326
+ "inFilter": "false"
327
+ },
328
+
329
+ {
330
+ "variableType": "CALCULATED",
331
+ "name": "FILTER_RESULT_Q2",
332
+ "expression": { "value": "true", "type": "VTL" },
333
+ "shapeFrom": "Q2",
334
+ "inFilter": "false"
335
+ },
336
+
337
+ {
338
+ "variableType": "CALCULATED",
339
+ "name": "FILTER_RESULT_Q3",
340
+ "expression": { "value": "true", "type": "VTL" },
341
+ "shapeFrom": "Q3",
342
+ "inFilter": "false"
343
+ },
344
+
345
+ {
346
+ "variableType": "CALCULATED",
347
+ "name": "FILTER_RESULT_Q4",
348
+ "expression": { "value": "true", "type": "VTL" },
349
+ "shapeFrom": "Q3",
350
+ "inFilter": "false"
351
+ },
352
+
353
+ {
354
+ "variableType": "CALCULATED",
355
+ "name": "FILTER_RESULT_Q5",
356
+ "expression": { "value": "true", "type": "VTL" },
357
+ "shapeFrom": "Q3",
358
+ "inFilter": "false"
359
+ }
360
+ ],
361
+ "cleaning": {},
362
+ "resizing": {
363
+ "Q1": {
364
+ "size": "cast(nvl(Q1,\"0\"),integer)",
365
+ "variables": ["Q2", "Q3", "Q4", "Q5"]
366
+ }
367
+ }
368
+ }
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = exports.SimpleNum = exports.Simple = exports.LinkedLoop2 = exports.LinkedLoop = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _orchestrator = _interopRequireDefault(require("../../utils/orchestrator"));
11
+
12
+ var _V2_ControlesNonNum_horsBoucle_PasPageFin = _interopRequireDefault(require("./V2_ControlesNonNum_horsBoucle_PasPageFin"));
13
+
14
+ var _V2_ControlesNum_horsBoucle_PasPageFin = _interopRequireDefault(require("./V2_ControlesNum_horsBoucle_PasPageFin"));
15
+
16
+ var _V2_Controles_BouclesLiees_PasPageFin = _interopRequireDefault(require("./V2_Controles_BouclesLiees_PasPageFin"));
17
+
18
+ var _V2_Controles_BouclesLiees2_PasPageFin = _interopRequireDefault(require("./V2_Controles_BouclesLiees2_PasPageFin"));
19
+
20
+ var _defaultArgTypes = _interopRequireDefault(require("../../utils/default-arg-types"));
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25
+
26
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27
+
28
+ 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; }
29
+
30
+ var stories = {
31
+ title: 'Questionnaires-Tests/Controls',
32
+ component: _orchestrator["default"],
33
+ argTypes: _objectSpread(_objectSpread({}, _defaultArgTypes["default"]), {}, {
34
+ missing: {
35
+ table: {
36
+ disable: false
37
+ },
38
+ control: 'boolean',
39
+ defaultValue: true
40
+ },
41
+ activeGoNextForMissing: {
42
+ table: {
43
+ disable: false
44
+ },
45
+ control: 'boolean',
46
+ defaultValue: true
47
+ },
48
+ management: {
49
+ table: {
50
+ disable: false
51
+ },
52
+ control: 'boolean',
53
+ defaultValue: false
54
+ }
55
+ })
56
+ };
57
+ var _default = stories;
58
+ exports["default"] = _default;
59
+
60
+ var Template = function Template(args) {
61
+ return /*#__PURE__*/_react["default"].createElement(_orchestrator["default"], args);
62
+ };
63
+
64
+ var Simple = Template.bind({});
65
+ exports.Simple = Simple;
66
+ Simple.args = {
67
+ id: 'controls-simple',
68
+ source: _V2_ControlesNonNum_horsBoucle_PasPageFin["default"],
69
+ pagination: true,
70
+ modalForControls: true
71
+ };
72
+ var SimpleNum = Template.bind({});
73
+ exports.SimpleNum = SimpleNum;
74
+ SimpleNum.args = {
75
+ id: 'controls-simple-num',
76
+ source: _V2_ControlesNum_horsBoucle_PasPageFin["default"],
77
+ pagination: true,
78
+ modalForControls: true
79
+ };
80
+ var LinkedLoop = Template.bind({});
81
+ exports.LinkedLoop = LinkedLoop;
82
+ LinkedLoop.args = {
83
+ id: 'controls-linked-loop',
84
+ source: _V2_Controles_BouclesLiees_PasPageFin["default"],
85
+ pagination: true,
86
+ modalForControls: true
87
+ };
88
+ var LinkedLoop2 = Template.bind({});
89
+ exports.LinkedLoop2 = LinkedLoop2;
90
+ LinkedLoop2.args = {
91
+ id: 'controls-linked-loop2',
92
+ source: _V2_Controles_BouclesLiees2_PasPageFin["default"],
93
+ pagination: true,
94
+ modalForControls: true
95
+ };