@inseefr/lunatic 2.4.10 → 2.5.0-beta
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/commons/components/orchestrated-component.js +10 -30
- package/lib/components/commons/create-row-orchestrator.js +7 -2
- package/lib/components/component-set/html/component-set-components.js +16 -25
- package/lib/components/component-set/lunatic-component-set.js +23 -37
- package/lib/components/index.js +14 -0
- package/lib/components/loop/block-for-loop/block-for-loop.js +4 -2
- package/lib/components/loop/block-for-loop/row.js +4 -2
- package/lib/components/loop/loop.js +6 -3
- package/lib/components/loop/roster-for-loop/body.js +4 -2
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +2 -0
- package/lib/components/loop/roster-for-loop/roster-table.js +4 -2
- package/lib/components/loop/roster-for-loop/row.js +3 -1
- package/lib/components/question-explication/html/question-explication.js +53 -0
- package/lib/components/question-explication/html/question-explication.scss +35 -0
- package/lib/components/question-explication/index.js +13 -0
- package/lib/components/question-explication/lunatic-question-explication.js +32 -0
- package/lib/components/question-explication/question-explication.spec.js +49 -0
- package/lib/components/roundabout/lunatic-roundabout.js +2 -4
- package/lib/components/subsequence/subsequence.js +0 -2
- package/lib/components/subsequence/subsequence.spec.js +2 -2
- package/lib/components/summary/html/summary-container.js +14 -0
- package/lib/components/summary/html/summary-responses.js +53 -0
- package/lib/components/summary/html/summary-title.js +20 -0
- package/lib/components/summary/index.js +12 -0
- package/lib/components/summary/lunatic-summary.js +99 -0
- package/lib/src/components/commons/components/orchestrated-component.d.ts +4 -5
- package/lib/src/components/commons/create-row-orchestrator.d.ts +3 -2
- package/lib/src/components/component-set/html/component-set-components.d.ts +2 -2
- package/lib/src/components/component-set/lunatic-component-set.d.ts +2 -1
- package/lib/src/components/index.d.ts +2 -0
- package/lib/src/components/loop/block-for-loop/block-for-loop-ochestrator.d.ts +3 -2
- package/lib/src/components/loop/block-for-loop/row.d.ts +2 -1
- package/lib/src/components/loop/roster-for-loop/body.d.ts +2 -2
- package/lib/src/components/loop/roster-for-loop/roster-for-loop-orchestrator.d.ts +3 -2
- package/lib/src/components/loop/roster-for-loop/roster-table.d.ts +2 -2
- package/lib/src/components/loop/roster-for-loop/row.d.ts +2 -1
- package/lib/src/components/question-explication/html/question-explication.d.ts +7 -0
- package/lib/src/components/question-explication/index.d.ts +1 -0
- package/lib/src/components/question-explication/lunatic-question-explication.d.ts +3 -0
- package/lib/src/components/question-explication/question-explication.spec.d.ts +1 -0
- package/lib/src/components/subsequence/subsequence.d.ts +2 -2
- package/lib/src/components/summary/html/summary-container.d.ts +2 -0
- package/lib/src/components/summary/html/summary-responses.d.ts +12 -0
- package/lib/src/components/summary/html/summary-title.d.ts +5 -0
- package/lib/src/components/summary/index.d.ts +1 -0
- package/lib/src/components/summary/lunatic-summary.d.ts +7 -0
- package/lib/src/components/type.d.ts +18 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/use-lunatic/actions.d.ts +6 -169
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +137 -112
- package/lib/src/use-lunatic/commons/fill-components/fill-missing-response.d.ts +2 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +115 -94
- package/lib/src/use-lunatic/commons/page-navigation.d.ts +7 -0
- package/lib/src/use-lunatic/commons/page-navigation.spec.d.ts +1 -0
- package/lib/src/use-lunatic/commons/page.d.ts +11 -0
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/commons/auto-explore-loop.d.ts +5 -0
- package/lib/src/use-lunatic/reducer/commons/index.d.ts +0 -1
- package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +1 -7
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +3 -3
- package/lib/src/use-lunatic/type-source.d.ts +27 -13
- package/lib/src/use-lunatic/type.d.ts +4 -12
- package/lib/src/use-lunatic/use-lunatic.d.ts +474 -10
- package/lib/src/utils/store-tools/worker-path.d.ts +1 -0
- package/lib/stories/component-set/component-set.stories.js +2 -1
- package/lib/stories/loop/block-for-loop.stories.js +8 -1
- package/lib/stories/loop/roster-for-loop.stories.js +8 -1
- package/lib/{use-lunatic/reducer/reduce-roundabout.js → stories/question-explication/question-explication.stories.js} +21 -17
- package/lib/stories/question-explication/source.json +17 -0
- package/lib/stories/roundabout/roundabout.stories.js +2 -1
- package/lib/stories/suggester/source-component-set.json +67 -0
- package/lib/stories/suggester/suggester.stories.js +9 -1
- package/lib/stories/summary/data.json +32 -0
- package/lib/stories/summary/source.json +353 -0
- package/lib/stories/summary/summary.stories.js +37 -0
- package/lib/stories/utils/orchestrator.js +5 -3
- package/lib/use-lunatic/commons/check-pager.js +1 -2
- package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +14 -12
- package/lib/use-lunatic/commons/page-navigation.js +109 -0
- package/lib/use-lunatic/commons/page-navigation.spec.js +129 -0
- package/lib/use-lunatic/commons/page.js +44 -0
- package/lib/use-lunatic/reducer/commons/auto-explore-loop.js +39 -0
- package/lib/use-lunatic/reducer/commons/index.js +0 -8
- package/lib/use-lunatic/reducer/reduce-go-next-page.js +25 -159
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js +21 -127
- package/lib/use-lunatic/reducer/reduce-go-to-page.js +53 -55
- package/lib/use-lunatic/reducer/reduce-on-init.js +5 -8
- package/lib/use-lunatic/reducer/resolve-component-controls/resolve-roundabout-control.js +1 -1
- package/lib/use-lunatic/reducer/resolve-component-controls/resolve-simple-control.js +1 -1
- package/lib/use-lunatic/type-source.js +0 -2
- package/lib/use-lunatic/use-lunatic.js +17 -3
- package/lib/utils/store-tools/auto-load.js +2 -2
- package/lib/utils/store-tools/worker-path.js +13 -0
- package/lib/utils/suggester-workers/append-to-index/create-append-task.js +2 -2
- package/package.json +3 -4
- package/lib/components/button/__snapshots__/lunatic-button.spec.jsx.snap +0 -80
- package/lib/components/commons/components/combo-box/selection/__snapshots__/selection.spec.jsx.snap +0 -81
- package/lib/src/use-lunatic/reducer/commons/is-empty-on-empty-page.d.ts +0 -3
- package/lib/src/use-lunatic/reducer/reduce-roundabout.d.ts +0 -2
- package/lib/use-lunatic/reducer/commons/is-empty-on-empty-page.js +0 -32
|
@@ -22,9 +22,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
22
22
|
iteration?: number | undefined;
|
|
23
23
|
nbIterations?: number | undefined;
|
|
24
24
|
subPage?: number | undefined;
|
|
25
|
-
roundabout?: {
|
|
26
|
-
page: string;
|
|
27
|
-
} | undefined;
|
|
28
25
|
}) => void;
|
|
29
26
|
shortcut: boolean | undefined;
|
|
30
27
|
getSuggesterStatus: (name: string) => {
|
|
@@ -32,14 +29,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
32
29
|
timestamp: number;
|
|
33
30
|
};
|
|
34
31
|
label: import("../../type-source").LabelType;
|
|
35
|
-
declarations
|
|
32
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
36
33
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
37
34
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
38
35
|
id: string;
|
|
39
|
-
|
|
40
|
-
bindingDependencies: string[];
|
|
36
|
+
bindingDependencies?: string[] | undefined;
|
|
41
37
|
hierarchy: import("../../type-source").Hierarchy;
|
|
42
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
43
38
|
mandatory?: boolean | undefined;
|
|
44
39
|
page: string;
|
|
45
40
|
componentType: "Sequence";
|
|
@@ -59,9 +54,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
59
54
|
iteration?: number | undefined;
|
|
60
55
|
nbIterations?: number | undefined;
|
|
61
56
|
subPage?: number | undefined;
|
|
62
|
-
roundabout?: {
|
|
63
|
-
page: string;
|
|
64
|
-
} | undefined;
|
|
65
57
|
}) => void;
|
|
66
58
|
shortcut: boolean | undefined;
|
|
67
59
|
getSuggesterStatus: (name: string) => {
|
|
@@ -69,14 +61,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
69
61
|
timestamp: number;
|
|
70
62
|
};
|
|
71
63
|
label: import("../../type-source").LabelType;
|
|
72
|
-
declarations
|
|
64
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
73
65
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
74
66
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
75
67
|
id: string;
|
|
76
|
-
|
|
77
|
-
bindingDependencies: string[];
|
|
68
|
+
bindingDependencies?: string[] | undefined;
|
|
78
69
|
hierarchy: import("../../type-source").Hierarchy;
|
|
79
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
80
70
|
mandatory?: boolean | undefined;
|
|
81
71
|
page: string;
|
|
82
72
|
componentType: "Subsequence";
|
|
@@ -97,9 +87,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
97
87
|
iteration?: number | undefined;
|
|
98
88
|
nbIterations?: number | undefined;
|
|
99
89
|
subPage?: number | undefined;
|
|
100
|
-
roundabout?: {
|
|
101
|
-
page: string;
|
|
102
|
-
} | undefined;
|
|
103
90
|
}) => void;
|
|
104
91
|
shortcut: boolean | undefined;
|
|
105
92
|
getSuggesterStatus: (name: string) => {
|
|
@@ -107,14 +94,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
107
94
|
timestamp: number;
|
|
108
95
|
};
|
|
109
96
|
label: import("../../type-source").LabelType;
|
|
110
|
-
declarations
|
|
97
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
111
98
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
112
99
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
113
100
|
id: string;
|
|
114
|
-
|
|
115
|
-
bindingDependencies: string[];
|
|
101
|
+
bindingDependencies?: string[] | undefined;
|
|
116
102
|
hierarchy: import("../../type-source").Hierarchy;
|
|
117
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
118
103
|
mandatory?: boolean | undefined;
|
|
119
104
|
page: string;
|
|
120
105
|
componentType: "RosterForLoop";
|
|
@@ -171,9 +156,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
171
156
|
iteration?: number | undefined;
|
|
172
157
|
nbIterations?: number | undefined;
|
|
173
158
|
subPage?: number | undefined;
|
|
174
|
-
roundabout?: {
|
|
175
|
-
page: string;
|
|
176
|
-
} | undefined;
|
|
177
159
|
}) => void;
|
|
178
160
|
shortcut: boolean | undefined;
|
|
179
161
|
getSuggesterStatus: (name: string) => {
|
|
@@ -181,14 +163,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
181
163
|
timestamp: number;
|
|
182
164
|
};
|
|
183
165
|
label: import("../../type-source").LabelType;
|
|
184
|
-
declarations
|
|
166
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
185
167
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
186
168
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
187
169
|
id: string;
|
|
188
|
-
|
|
189
|
-
bindingDependencies: string[];
|
|
170
|
+
bindingDependencies?: string[] | undefined;
|
|
190
171
|
hierarchy: import("../../type-source").Hierarchy;
|
|
191
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
192
172
|
mandatory?: boolean | undefined;
|
|
193
173
|
page: string;
|
|
194
174
|
componentType: "Loop";
|
|
@@ -218,9 +198,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
218
198
|
iteration?: number | undefined;
|
|
219
199
|
nbIterations?: number | undefined;
|
|
220
200
|
subPage?: number | undefined;
|
|
221
|
-
roundabout?: {
|
|
222
|
-
page: string;
|
|
223
|
-
} | undefined;
|
|
224
201
|
}) => void;
|
|
225
202
|
shortcut: boolean | undefined;
|
|
226
203
|
getSuggesterStatus: (name: string) => {
|
|
@@ -228,14 +205,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
228
205
|
timestamp: number;
|
|
229
206
|
};
|
|
230
207
|
label: import("../../type-source").LabelType;
|
|
231
|
-
declarations
|
|
208
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
232
209
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
233
210
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
234
211
|
id: string;
|
|
235
|
-
|
|
236
|
-
bindingDependencies: string[];
|
|
212
|
+
bindingDependencies?: string[] | undefined;
|
|
237
213
|
hierarchy: import("../../type-source").Hierarchy;
|
|
238
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
239
214
|
mandatory?: boolean | undefined;
|
|
240
215
|
page: string;
|
|
241
216
|
componentType: "Table";
|
|
@@ -291,9 +266,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
291
266
|
iteration?: number | undefined;
|
|
292
267
|
nbIterations?: number | undefined;
|
|
293
268
|
subPage?: number | undefined;
|
|
294
|
-
roundabout?: {
|
|
295
|
-
page: string;
|
|
296
|
-
} | undefined;
|
|
297
269
|
}) => void;
|
|
298
270
|
shortcut: boolean | undefined;
|
|
299
271
|
getSuggesterStatus: (name: string) => {
|
|
@@ -301,14 +273,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
301
273
|
timestamp: number;
|
|
302
274
|
};
|
|
303
275
|
label: import("../../type-source").LabelType;
|
|
304
|
-
declarations
|
|
276
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
305
277
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
306
278
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
307
279
|
id: string;
|
|
308
|
-
|
|
309
|
-
bindingDependencies: string[];
|
|
280
|
+
bindingDependencies?: string[] | undefined;
|
|
310
281
|
hierarchy: import("../../type-source").Hierarchy;
|
|
311
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
312
282
|
mandatory?: boolean | undefined;
|
|
313
283
|
page: string;
|
|
314
284
|
componentType: "InputNumber";
|
|
@@ -333,9 +303,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
333
303
|
iteration?: number | undefined;
|
|
334
304
|
nbIterations?: number | undefined;
|
|
335
305
|
subPage?: number | undefined;
|
|
336
|
-
roundabout?: {
|
|
337
|
-
page: string;
|
|
338
|
-
} | undefined;
|
|
339
306
|
}) => void;
|
|
340
307
|
shortcut: boolean | undefined;
|
|
341
308
|
getSuggesterStatus: (name: string) => {
|
|
@@ -343,14 +310,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
343
310
|
timestamp: number;
|
|
344
311
|
};
|
|
345
312
|
label: import("../../type-source").LabelType;
|
|
346
|
-
declarations
|
|
313
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
347
314
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
348
315
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
349
316
|
id: string;
|
|
350
|
-
|
|
351
|
-
bindingDependencies: string[];
|
|
317
|
+
bindingDependencies?: string[] | undefined;
|
|
352
318
|
hierarchy: import("../../type-source").Hierarchy;
|
|
353
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
354
319
|
mandatory?: boolean | undefined;
|
|
355
320
|
page: string;
|
|
356
321
|
componentType: "Datepicker";
|
|
@@ -374,9 +339,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
374
339
|
iteration?: number | undefined;
|
|
375
340
|
nbIterations?: number | undefined;
|
|
376
341
|
subPage?: number | undefined;
|
|
377
|
-
roundabout?: {
|
|
378
|
-
page: string;
|
|
379
|
-
} | undefined;
|
|
380
342
|
}) => void;
|
|
381
343
|
shortcut: boolean | undefined;
|
|
382
344
|
getSuggesterStatus: (name: string) => {
|
|
@@ -384,14 +346,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
384
346
|
timestamp: number;
|
|
385
347
|
};
|
|
386
348
|
label: import("../../type-source").LabelType;
|
|
387
|
-
declarations
|
|
349
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
388
350
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
389
351
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
390
352
|
id: string;
|
|
391
|
-
|
|
392
|
-
bindingDependencies: string[];
|
|
353
|
+
bindingDependencies?: string[] | undefined;
|
|
393
354
|
hierarchy: import("../../type-source").Hierarchy;
|
|
394
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
395
355
|
mandatory?: boolean | undefined;
|
|
396
356
|
page: string;
|
|
397
357
|
componentType: "CheckboxGroup";
|
|
@@ -416,9 +376,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
416
376
|
iteration?: number | undefined;
|
|
417
377
|
nbIterations?: number | undefined;
|
|
418
378
|
subPage?: number | undefined;
|
|
419
|
-
roundabout?: {
|
|
420
|
-
page: string;
|
|
421
|
-
} | undefined;
|
|
422
379
|
}) => void;
|
|
423
380
|
shortcut: boolean | undefined;
|
|
424
381
|
getSuggesterStatus: (name: string) => {
|
|
@@ -426,18 +383,17 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
426
383
|
timestamp: number;
|
|
427
384
|
};
|
|
428
385
|
label: import("../../type-source").LabelType;
|
|
429
|
-
declarations
|
|
386
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
430
387
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
431
388
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
432
389
|
id: string;
|
|
433
|
-
|
|
434
|
-
bindingDependencies: string[];
|
|
390
|
+
bindingDependencies?: string[] | undefined;
|
|
435
391
|
hierarchy: import("../../type-source").Hierarchy;
|
|
436
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
437
392
|
mandatory?: boolean | undefined;
|
|
438
393
|
page: string;
|
|
439
394
|
componentType: "CheckboxBoolean";
|
|
440
395
|
response: import("../../type-source").ResponseType;
|
|
396
|
+
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
441
397
|
} | {
|
|
442
398
|
handleChange: (response: {
|
|
443
399
|
name: string;
|
|
@@ -454,9 +410,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
454
410
|
iteration?: number | undefined;
|
|
455
411
|
nbIterations?: number | undefined;
|
|
456
412
|
subPage?: number | undefined;
|
|
457
|
-
roundabout?: {
|
|
458
|
-
page: string;
|
|
459
|
-
} | undefined;
|
|
460
413
|
}) => void;
|
|
461
414
|
shortcut: boolean | undefined;
|
|
462
415
|
getSuggesterStatus: (name: string) => {
|
|
@@ -464,14 +417,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
464
417
|
timestamp: number;
|
|
465
418
|
};
|
|
466
419
|
label: import("../../type-source").LabelType;
|
|
467
|
-
declarations
|
|
420
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
468
421
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
469
422
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
470
423
|
id: string;
|
|
471
|
-
|
|
472
|
-
bindingDependencies: string[];
|
|
424
|
+
bindingDependencies?: string[] | undefined;
|
|
473
425
|
hierarchy: import("../../type-source").Hierarchy;
|
|
474
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
475
426
|
mandatory?: boolean | undefined;
|
|
476
427
|
page: string;
|
|
477
428
|
componentType: "Radio";
|
|
@@ -480,6 +431,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
480
431
|
label: import("../../type-source").LabelType;
|
|
481
432
|
}[];
|
|
482
433
|
response: import("../../type-source").ResponseType;
|
|
434
|
+
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
483
435
|
} | {
|
|
484
436
|
handleChange: (response: {
|
|
485
437
|
name: string;
|
|
@@ -496,9 +448,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
496
448
|
iteration?: number | undefined;
|
|
497
449
|
nbIterations?: number | undefined;
|
|
498
450
|
subPage?: number | undefined;
|
|
499
|
-
roundabout?: {
|
|
500
|
-
page: string;
|
|
501
|
-
} | undefined;
|
|
502
451
|
}) => void;
|
|
503
452
|
shortcut: boolean | undefined;
|
|
504
453
|
getSuggesterStatus: (name: string) => {
|
|
@@ -506,14 +455,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
506
455
|
timestamp: number;
|
|
507
456
|
};
|
|
508
457
|
label: import("../../type-source").LabelType;
|
|
509
|
-
declarations
|
|
458
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
510
459
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
511
460
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
512
461
|
id: string;
|
|
513
|
-
|
|
514
|
-
bindingDependencies: string[];
|
|
462
|
+
bindingDependencies?: string[] | undefined;
|
|
515
463
|
hierarchy: import("../../type-source").Hierarchy;
|
|
516
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
517
464
|
mandatory?: boolean | undefined;
|
|
518
465
|
page: string;
|
|
519
466
|
componentType: "FilterDescription";
|
|
@@ -534,9 +481,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
534
481
|
iteration?: number | undefined;
|
|
535
482
|
nbIterations?: number | undefined;
|
|
536
483
|
subPage?: number | undefined;
|
|
537
|
-
roundabout?: {
|
|
538
|
-
page: string;
|
|
539
|
-
} | undefined;
|
|
540
484
|
}) => void;
|
|
541
485
|
shortcut: boolean | undefined;
|
|
542
486
|
getSuggesterStatus: (name: string) => {
|
|
@@ -544,14 +488,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
544
488
|
timestamp: number;
|
|
545
489
|
};
|
|
546
490
|
label: import("../../type-source").LabelType;
|
|
547
|
-
declarations
|
|
491
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
548
492
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
549
493
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
550
494
|
id: string;
|
|
551
|
-
|
|
552
|
-
bindingDependencies: string[];
|
|
495
|
+
bindingDependencies?: string[] | undefined;
|
|
553
496
|
hierarchy: import("../../type-source").Hierarchy;
|
|
554
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
555
497
|
mandatory?: boolean | undefined;
|
|
556
498
|
page: string;
|
|
557
499
|
componentType: "Dropdown";
|
|
@@ -560,6 +502,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
560
502
|
label: import("../../type-source").LabelType;
|
|
561
503
|
}[];
|
|
562
504
|
response: import("../../type-source").ResponseType;
|
|
505
|
+
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
563
506
|
} | {
|
|
564
507
|
handleChange: (response: {
|
|
565
508
|
name: string;
|
|
@@ -576,9 +519,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
576
519
|
iteration?: number | undefined;
|
|
577
520
|
nbIterations?: number | undefined;
|
|
578
521
|
subPage?: number | undefined;
|
|
579
|
-
roundabout?: {
|
|
580
|
-
page: string;
|
|
581
|
-
} | undefined;
|
|
582
522
|
}) => void;
|
|
583
523
|
shortcut: boolean | undefined;
|
|
584
524
|
getSuggesterStatus: (name: string) => {
|
|
@@ -586,14 +526,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
586
526
|
timestamp: number;
|
|
587
527
|
};
|
|
588
528
|
label: import("../../type-source").LabelType;
|
|
589
|
-
declarations
|
|
529
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
590
530
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
591
531
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
592
532
|
id: string;
|
|
593
|
-
|
|
594
|
-
bindingDependencies: string[];
|
|
533
|
+
bindingDependencies?: string[] | undefined;
|
|
595
534
|
hierarchy: import("../../type-source").Hierarchy;
|
|
596
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
597
535
|
mandatory?: boolean | undefined;
|
|
598
536
|
page: string;
|
|
599
537
|
componentType: "PairwiseLinks";
|
|
@@ -618,9 +556,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
618
556
|
iteration?: number | undefined;
|
|
619
557
|
nbIterations?: number | undefined;
|
|
620
558
|
subPage?: number | undefined;
|
|
621
|
-
roundabout?: {
|
|
622
|
-
page: string;
|
|
623
|
-
} | undefined;
|
|
624
559
|
}) => void;
|
|
625
560
|
shortcut: boolean | undefined;
|
|
626
561
|
getSuggesterStatus: (name: string) => {
|
|
@@ -628,14 +563,12 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
628
563
|
timestamp: number;
|
|
629
564
|
};
|
|
630
565
|
label: import("../../type-source").LabelType;
|
|
631
|
-
declarations
|
|
566
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
632
567
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
633
568
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
634
569
|
id: string;
|
|
635
|
-
|
|
636
|
-
bindingDependencies: string[];
|
|
570
|
+
bindingDependencies?: string[] | undefined;
|
|
637
571
|
hierarchy: import("../../type-source").Hierarchy;
|
|
638
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
639
572
|
mandatory?: boolean | undefined;
|
|
640
573
|
page: string;
|
|
641
574
|
componentType: "Roundabout";
|
|
@@ -659,9 +592,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
659
592
|
iteration?: number | undefined;
|
|
660
593
|
nbIterations?: number | undefined;
|
|
661
594
|
subPage?: number | undefined;
|
|
662
|
-
roundabout?: {
|
|
663
|
-
page: string;
|
|
664
|
-
} | undefined;
|
|
665
595
|
}) => void;
|
|
666
596
|
shortcut: boolean | undefined;
|
|
667
597
|
getSuggesterStatus: (name: string) => {
|
|
@@ -669,17 +599,51 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
669
599
|
timestamp: number;
|
|
670
600
|
};
|
|
671
601
|
label: import("../../type-source").LabelType;
|
|
672
|
-
declarations
|
|
602
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
673
603
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
674
604
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
675
605
|
id: string;
|
|
606
|
+
bindingDependencies?: string[] | undefined;
|
|
607
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
608
|
+
mandatory?: boolean | undefined;
|
|
609
|
+
page: string;
|
|
610
|
+
componentType: "Suggester";
|
|
676
611
|
storeName: string;
|
|
677
|
-
|
|
612
|
+
} | {
|
|
613
|
+
handleChange: (response: {
|
|
614
|
+
name: string;
|
|
615
|
+
}, value: any, args?: Record<string, unknown> | undefined) => void;
|
|
616
|
+
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
617
|
+
iteration?: number | undefined;
|
|
618
|
+
linksIterations?: number[] | undefined;
|
|
619
|
+
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
620
|
+
bindingDependencies?: string[] | undefined;
|
|
621
|
+
} | undefined) => T;
|
|
622
|
+
preferences: ["COLLECTED"];
|
|
623
|
+
goToPage: (page: {
|
|
624
|
+
page: string;
|
|
625
|
+
iteration?: number | undefined;
|
|
626
|
+
nbIterations?: number | undefined;
|
|
627
|
+
subPage?: number | undefined;
|
|
628
|
+
}) => void;
|
|
629
|
+
shortcut: boolean | undefined;
|
|
630
|
+
getSuggesterStatus: (name: string) => {
|
|
631
|
+
status: import("../../use-suggesters").SuggesterStatus;
|
|
632
|
+
timestamp: number;
|
|
633
|
+
};
|
|
634
|
+
label: import("../../type-source").LabelType;
|
|
635
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
636
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
637
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
638
|
+
id: string;
|
|
639
|
+
bindingDependencies?: string[] | undefined;
|
|
678
640
|
hierarchy: import("../../type-source").Hierarchy;
|
|
679
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
680
641
|
mandatory?: boolean | undefined;
|
|
681
642
|
page: string;
|
|
682
|
-
componentType: "Input" | "
|
|
643
|
+
componentType: "Input" | "Textarea";
|
|
644
|
+
maxLength: number;
|
|
645
|
+
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
646
|
+
response: import("../../type-source").ResponseType;
|
|
683
647
|
} | {
|
|
684
648
|
handleChange: (response: {
|
|
685
649
|
name: string;
|
|
@@ -696,9 +660,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
696
660
|
iteration?: number | undefined;
|
|
697
661
|
nbIterations?: number | undefined;
|
|
698
662
|
subPage?: number | undefined;
|
|
699
|
-
roundabout?: {
|
|
700
|
-
page: string;
|
|
701
|
-
} | undefined;
|
|
702
663
|
}) => void;
|
|
703
664
|
shortcut: boolean | undefined;
|
|
704
665
|
getSuggesterStatus: (name: string) => {
|
|
@@ -706,17 +667,81 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
706
667
|
timestamp: number;
|
|
707
668
|
};
|
|
708
669
|
label: import("../../type-source").LabelType;
|
|
709
|
-
declarations
|
|
670
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
710
671
|
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
711
672
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
712
673
|
id: string;
|
|
713
|
-
|
|
714
|
-
|
|
674
|
+
bindingDependencies?: string[] | undefined;
|
|
675
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
676
|
+
mandatory?: boolean | undefined;
|
|
677
|
+
page: string;
|
|
678
|
+
componentType: "CheckboxOne";
|
|
679
|
+
} | {
|
|
680
|
+
handleChange: (response: {
|
|
681
|
+
name: string;
|
|
682
|
+
}, value: any, args?: Record<string, unknown> | undefined) => void;
|
|
683
|
+
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
684
|
+
iteration?: number | undefined;
|
|
685
|
+
linksIterations?: number[] | undefined;
|
|
686
|
+
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
687
|
+
bindingDependencies?: string[] | undefined;
|
|
688
|
+
} | undefined) => T;
|
|
689
|
+
preferences: ["COLLECTED"];
|
|
690
|
+
goToPage: (page: {
|
|
691
|
+
page: string;
|
|
692
|
+
iteration?: number | undefined;
|
|
693
|
+
nbIterations?: number | undefined;
|
|
694
|
+
subPage?: number | undefined;
|
|
695
|
+
}) => void;
|
|
696
|
+
shortcut: boolean | undefined;
|
|
697
|
+
getSuggesterStatus: (name: string) => {
|
|
698
|
+
status: import("../../use-suggesters").SuggesterStatus;
|
|
699
|
+
timestamp: number;
|
|
700
|
+
};
|
|
701
|
+
label: import("../../type-source").LabelType;
|
|
702
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
703
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
704
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
705
|
+
id: string;
|
|
706
|
+
bindingDependencies?: string[] | undefined;
|
|
715
707
|
hierarchy: import("../../type-source").Hierarchy;
|
|
716
|
-
missingResponse: import("../../type-source").ResponseType;
|
|
717
708
|
mandatory?: boolean | undefined;
|
|
718
709
|
page: string;
|
|
719
710
|
componentType: "ComponentSet";
|
|
720
711
|
components: import("../../type-source").ComponentType[];
|
|
712
|
+
} | {
|
|
713
|
+
handleChange: (response: {
|
|
714
|
+
name: string;
|
|
715
|
+
}, value: any, args?: Record<string, unknown> | undefined) => void;
|
|
716
|
+
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
717
|
+
iteration?: number | undefined;
|
|
718
|
+
linksIterations?: number[] | undefined;
|
|
719
|
+
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
720
|
+
bindingDependencies?: string[] | undefined;
|
|
721
|
+
} | undefined) => T;
|
|
722
|
+
preferences: ["COLLECTED"];
|
|
723
|
+
goToPage: (page: {
|
|
724
|
+
page: string;
|
|
725
|
+
iteration?: number | undefined;
|
|
726
|
+
nbIterations?: number | undefined;
|
|
727
|
+
subPage?: number | undefined;
|
|
728
|
+
}) => void;
|
|
729
|
+
shortcut: boolean | undefined;
|
|
730
|
+
getSuggesterStatus: (name: string) => {
|
|
731
|
+
status: import("../../use-suggesters").SuggesterStatus;
|
|
732
|
+
timestamp: number;
|
|
733
|
+
};
|
|
734
|
+
label: import("../../type-source").LabelType;
|
|
735
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
736
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
737
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
738
|
+
id: string;
|
|
739
|
+
bindingDependencies?: string[] | undefined;
|
|
740
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
741
|
+
mandatory?: boolean | undefined;
|
|
742
|
+
page: string;
|
|
743
|
+
componentType: "QuestionExplication";
|
|
744
|
+
description: string;
|
|
745
|
+
bgColor?: string | undefined;
|
|
721
746
|
};
|
|
722
747
|
export default fillFromState;
|