@inseefr/lunatic 3.0.0-rc.5 → 3.0.0-rc.8
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 +1 -1
- package/lib/components/CheckboxGroup/CheckboxGroup.js +3 -2
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +2 -3
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js +3 -0
- package/lib/components/CheckboxOne/CheckboxOne.js +0 -1
- package/lib/components/Datepicker/Datepicker.js +0 -1
- package/lib/components/Dropdown/Dropdown.js +0 -17
- package/lib/components/Duration/Duration.js +0 -1
- package/lib/components/Input/Input.js +0 -1
- package/lib/components/InputNumber/InputNumber.js +0 -1
- package/lib/components/RosterForLoop/RosterForLoop.js +0 -1
- package/lib/components/Roundabout/Roundabout.js +0 -1
- package/lib/components/Sequence/Sequence.js +0 -1
- package/lib/components/Suggester/CustomSuggester.js +7 -4
- package/lib/components/Suggester/Suggester.js +59 -4
- package/lib/components/Textarea/Textarea.js +1 -2
- package/lib/components/shared/Button/Button.js +0 -1
- package/lib/components/shared/Button/IconButton.js +0 -1
- package/lib/components/shared/Checkbox/CheckboxOption.js +0 -1
- package/lib/components/shared/Combobox/Combobox.js +3 -2
- package/lib/components/shared/ComponentErrors/ComponentErrors.js +0 -1
- package/lib/components/shared/Declarations/Declarations.js +0 -1
- package/lib/components/shared/Fieldset/Fieldset.js +0 -1
- package/lib/components/shared/Icons/lunatic-icon.js +0 -1
- package/lib/components/shared/Label/Label.js +0 -1
- package/lib/components/shared/Missing/Missing.js +0 -1
- package/lib/components/shared/ModalControls/ModalControls.js +0 -1
- package/lib/components/shared/Radio/RadioGroup.js +0 -1
- package/lib/components/shared/Table/Table.js +0 -1
- package/lib/components/shared/VariableStatus/VariableStatus.js +0 -1
- package/lib/components/shared/suggester-loader-widget/dragger/dragger.js +0 -1
- package/lib/components/shared/suggester-loader-widget/widget.js +0 -1
- package/lib/css/components/Button.scss +24 -0
- package/lib/css/components/CheckboxGroup.scss +13 -0
- package/lib/css/components/CheckboxOne.scss +19 -0
- package/lib/css/components/CheckboxOption.scss +19 -0
- package/lib/css/components/Combobox.scss +206 -0
- package/lib/css/components/ComponentErrors.scss +5 -0
- package/lib/css/components/Datepicker.scss +19 -0
- package/lib/css/components/Declarations.scss +42 -0
- package/lib/css/components/Dragger.scss +8 -0
- package/lib/css/components/Dropdown.scss +38 -0
- package/lib/css/components/Duration.scss +9 -0
- package/lib/css/components/Fieldset.scss +5 -0
- package/lib/css/components/IconButton.scss +38 -0
- package/lib/css/components/Input.scss +42 -0
- package/lib/css/components/InputNumber.scss +11 -0
- package/lib/css/components/Label.scss +6 -0
- package/lib/css/components/Missing.scss +27 -0
- package/lib/css/components/ModalControls.scss +48 -0
- package/lib/css/components/RadioGroup.scss +21 -0
- package/lib/css/components/RosterForLoop.scss +39 -0
- package/lib/css/components/Roundabout.scss +13 -0
- package/lib/css/components/Sequence.scss +10 -0
- package/lib/css/components/Suggester.scss +170 -0
- package/lib/css/components/SuggesterWidget.scss +176 -0
- package/lib/css/components/Table.scss +27 -0
- package/lib/css/components/Textarea.scss +8 -0
- package/lib/css/components/VariableStatus.scss +36 -0
- package/lib/css/main.scss +181 -0
- package/lib/hooks/useSuggesterInfo.js +14 -12
- package/lib/main.css +1063 -0
- package/lib/main.css.map +1 -0
- package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +0 -1
- package/lib/src/components/Datepicker/Datepicker.d.ts +0 -1
- package/lib/src/components/Dropdown/Dropdown.d.ts +0 -1
- package/lib/src/components/Duration/Duration.d.ts +0 -1
- package/lib/src/components/Input/Input.d.ts +0 -1
- package/lib/src/components/InputNumber/InputNumber.d.ts +0 -1
- package/lib/src/components/RosterForLoop/RosterForLoop.d.ts +0 -1
- package/lib/src/components/Roundabout/Roundabout.d.ts +0 -1
- package/lib/src/components/Sequence/Sequence.d.ts +1 -2
- package/lib/src/components/Subsequence/Subsequence.d.ts +1 -1
- package/lib/src/components/Suggester/CustomSuggester.d.ts +5 -1
- package/lib/src/components/Suggester/Suggester.d.ts +1 -2
- package/lib/src/components/Textarea/Textarea.d.ts +0 -1
- package/lib/src/components/library.d.ts +3 -3
- package/lib/src/components/shared/Button/Button.d.ts +0 -1
- package/lib/src/components/shared/Button/IconButton.d.ts +0 -1
- package/lib/src/components/shared/Checkbox/CheckboxOption.d.ts +0 -1
- package/lib/src/components/shared/Combobox/Combobox.d.ts +1 -1
- package/lib/src/components/shared/ComponentErrors/ComponentErrors.d.ts +0 -1
- package/lib/src/components/shared/Declarations/Declarations.d.ts +0 -1
- package/lib/src/components/shared/Fieldset/Fieldset.d.ts +0 -1
- package/lib/src/components/shared/Icons/lunatic-icon.d.ts +0 -1
- package/lib/src/components/shared/Label/Label.d.ts +0 -1
- package/lib/src/components/shared/Missing/Missing.d.ts +0 -1
- package/lib/src/components/shared/ModalControls/ModalControls.d.ts +0 -1
- package/lib/src/components/shared/Radio/RadioGroup.d.ts +0 -1
- package/lib/src/components/shared/Table/Table.d.ts +0 -1
- package/lib/src/components/shared/VariableStatus/VariableStatus.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/dragger/dragger.d.ts +0 -1
- package/lib/src/components/shared/suggester-loader-widget/widget.d.ts +0 -1
- package/lib/src/components/type.d.ts +6 -1
- package/lib/src/hooks/use-track-changes.d.ts +9 -1
- package/lib/src/hooks/useSuggesterInfo.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +102 -44
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +83 -21
- package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +47 -36
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +158 -46
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +21 -3
- package/lib/src/use-lunatic/type-source.d.ts +51 -42
- package/lib/src/use-lunatic/type.d.ts +4 -4
- package/lib/src/use-lunatic/use-lunatic.d.ts +57 -15
- package/lib/src/utils/variables.d.ts +10 -2
- package/lib/stories/loop/source-roster.json +2 -2
- package/lib/stories/suggester/fakeReferentiel.json +12 -0
- package/lib/stories/suggester/source-option-responses.json +145 -0
- package/lib/stories/suggester/suggester.stories.js +46 -1
- package/lib/use-lunatic/use-lunatic.test.js +8 -7
- package/package.json +2 -2
- package/lib/components/Dropdown/DropdownWritable.js +0 -58
- package/lib/components/Dropdown/renderer/WritableLabelRenderer.js +0 -38
- package/lib/components/Dropdown/renderer/WritableOptionRenderer.js +0 -140
- package/lib/src/components/Dropdown/DropdownWritable.d.ts +0 -17
- package/lib/src/components/Dropdown/renderer/WritableLabelRenderer.d.ts +0 -8
- package/lib/src/components/Dropdown/renderer/WritableOptionRenderer.d.ts +0 -8
|
@@ -38,6 +38,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
38
38
|
goNextPage: () => void;
|
|
39
39
|
goPreviousPage: () => void;
|
|
40
40
|
label: import("../../type-source").LabelType;
|
|
41
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
41
42
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
42
43
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
43
44
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -47,6 +48,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
47
48
|
mandatory?: boolean | undefined;
|
|
48
49
|
page: string;
|
|
49
50
|
componentType: "Sequence";
|
|
51
|
+
gotoPage?: string | undefined;
|
|
50
52
|
} | {
|
|
51
53
|
handleChange: (response: {
|
|
52
54
|
name: string;
|
|
@@ -74,6 +76,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
74
76
|
goNextPage: () => void;
|
|
75
77
|
goPreviousPage: () => void;
|
|
76
78
|
label: import("../../type-source").LabelType;
|
|
79
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
77
80
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
78
81
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
79
82
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -83,7 +86,6 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
83
86
|
mandatory?: boolean | undefined;
|
|
84
87
|
page: string;
|
|
85
88
|
componentType: "Subsequence";
|
|
86
|
-
gotoPage: string;
|
|
87
89
|
} | {
|
|
88
90
|
handleChange: (response: {
|
|
89
91
|
name: string;
|
|
@@ -111,6 +113,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
111
113
|
goNextPage: () => void;
|
|
112
114
|
goPreviousPage: () => void;
|
|
113
115
|
label: import("../../type-source").LabelType;
|
|
116
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
114
117
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
115
118
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
116
119
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -125,24 +128,17 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
125
128
|
min: import("../../type-source").LabelType;
|
|
126
129
|
max: import("../../type-source").LabelType;
|
|
127
130
|
};
|
|
128
|
-
header
|
|
131
|
+
header?: {
|
|
129
132
|
value: string;
|
|
130
133
|
label: string | import("../../type-source").LabelType;
|
|
131
134
|
options: {
|
|
132
135
|
value: string;
|
|
133
136
|
label: import("../../type-source").LabelType;
|
|
137
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
134
138
|
}[];
|
|
135
139
|
colspan?: number | undefined;
|
|
136
140
|
rowspan?: number | undefined;
|
|
137
|
-
}[];
|
|
138
|
-
body: ({
|
|
139
|
-
label: import("../../type-source").LabelType;
|
|
140
|
-
colspan?: number | undefined;
|
|
141
|
-
rowspan?: number | undefined;
|
|
142
|
-
} | (import("../../type-source").ComponentType & {
|
|
143
|
-
colspan?: number | undefined;
|
|
144
|
-
rowspan?: number | undefined;
|
|
145
|
-
}))[][];
|
|
141
|
+
}[] | undefined;
|
|
146
142
|
positioning: "HORIZONTAL";
|
|
147
143
|
} | {
|
|
148
144
|
handleChange: (response: {
|
|
@@ -171,6 +167,50 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
171
167
|
goNextPage: () => void;
|
|
172
168
|
goPreviousPage: () => void;
|
|
173
169
|
label: import("../../type-source").LabelType;
|
|
170
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
171
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
172
|
+
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
173
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
174
|
+
id: string;
|
|
175
|
+
bindingDependencies?: string[] | undefined;
|
|
176
|
+
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
177
|
+
mandatory?: boolean | undefined;
|
|
178
|
+
page: string;
|
|
179
|
+
componentType: "Loop";
|
|
180
|
+
loopDependencies: string[];
|
|
181
|
+
components: import("../../type-source").ComponentType[];
|
|
182
|
+
depth: number;
|
|
183
|
+
paginatedLoop: true;
|
|
184
|
+
maxPage: string;
|
|
185
|
+
iterations: import("../../type-source").LabelType;
|
|
186
|
+
} | {
|
|
187
|
+
handleChange: (response: {
|
|
188
|
+
name: string;
|
|
189
|
+
}, value: any, args?: {
|
|
190
|
+
iteration?: number[] | undefined;
|
|
191
|
+
} | undefined) => void;
|
|
192
|
+
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
193
|
+
iteration?: number | number[] | undefined;
|
|
194
|
+
bindingDependencies?: string[] | undefined;
|
|
195
|
+
deps?: string[] | undefined;
|
|
196
|
+
} | undefined) => T;
|
|
197
|
+
preferences: ["COLLECTED"];
|
|
198
|
+
goToPage: (page: {
|
|
199
|
+
page: string;
|
|
200
|
+
iteration?: number | undefined;
|
|
201
|
+
nbIterations?: number | undefined;
|
|
202
|
+
subPage?: number | undefined;
|
|
203
|
+
}) => void;
|
|
204
|
+
shortcut: boolean | undefined;
|
|
205
|
+
getSuggesterStatus: (name: string) => {
|
|
206
|
+
status: import("../../use-suggesters").SuggesterStatus;
|
|
207
|
+
timestamp: number;
|
|
208
|
+
};
|
|
209
|
+
workersBasePath: string | undefined;
|
|
210
|
+
goNextPage: () => void;
|
|
211
|
+
goPreviousPage: () => void;
|
|
212
|
+
label: import("../../type-source").LabelType;
|
|
213
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
174
214
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
175
215
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
176
216
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -181,15 +221,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
181
221
|
page: string;
|
|
182
222
|
componentType: "Loop";
|
|
183
223
|
loopDependencies: string[];
|
|
224
|
+
components: import("../../type-source").ComponentType[];
|
|
225
|
+
depth: number;
|
|
226
|
+
paginatedLoop: false;
|
|
184
227
|
lines: {
|
|
185
228
|
min: import("../../type-source").LabelType;
|
|
186
229
|
max: import("../../type-source").LabelType;
|
|
187
230
|
};
|
|
188
|
-
components: import("../../type-source").ComponentType[];
|
|
189
|
-
iterations: import("../../type-source").LabelType;
|
|
190
|
-
maxPage: string;
|
|
191
|
-
depth: number;
|
|
192
|
-
paginatedLoop: boolean;
|
|
193
231
|
} | {
|
|
194
232
|
handleChange: (response: {
|
|
195
233
|
name: string;
|
|
@@ -217,6 +255,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
217
255
|
goNextPage: () => void;
|
|
218
256
|
goPreviousPage: () => void;
|
|
219
257
|
label: import("../../type-source").LabelType;
|
|
258
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
220
259
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
221
260
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
222
261
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -232,10 +271,11 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
232
271
|
options: {
|
|
233
272
|
value: string;
|
|
234
273
|
label: import("../../type-source").LabelType;
|
|
274
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
235
275
|
}[];
|
|
236
276
|
colspan?: number | undefined;
|
|
237
277
|
rowspan?: number | undefined;
|
|
238
|
-
}[];
|
|
278
|
+
}[] | undefined;
|
|
239
279
|
body: ({
|
|
240
280
|
label: import("../../type-source").LabelType;
|
|
241
281
|
colspan?: number | undefined;
|
|
@@ -271,6 +311,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
271
311
|
goNextPage: () => void;
|
|
272
312
|
goPreviousPage: () => void;
|
|
273
313
|
label: import("../../type-source").LabelType;
|
|
314
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
274
315
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
275
316
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
276
317
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -280,7 +321,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
280
321
|
mandatory?: boolean | undefined;
|
|
281
322
|
page: string;
|
|
282
323
|
componentType: "InputNumber";
|
|
283
|
-
unit
|
|
324
|
+
unit?: string | undefined;
|
|
284
325
|
response: import("../../type-source").ResponseType;
|
|
285
326
|
min?: number | undefined;
|
|
286
327
|
max?: number | undefined;
|
|
@@ -312,6 +353,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
312
353
|
goNextPage: () => void;
|
|
313
354
|
goPreviousPage: () => void;
|
|
314
355
|
label: import("../../type-source").LabelType;
|
|
356
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
315
357
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
316
358
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
317
359
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -352,6 +394,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
352
394
|
goNextPage: () => void;
|
|
353
395
|
goPreviousPage: () => void;
|
|
354
396
|
label: import("../../type-source").LabelType;
|
|
397
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
355
398
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
356
399
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
357
400
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -363,6 +406,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
363
406
|
componentType: "CheckboxGroup";
|
|
364
407
|
responses: {
|
|
365
408
|
label: import("../../type-source").LabelType;
|
|
409
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
366
410
|
response: import("../../type-source").ResponseType;
|
|
367
411
|
id: string;
|
|
368
412
|
}[];
|
|
@@ -393,6 +437,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
393
437
|
goNextPage: () => void;
|
|
394
438
|
goPreviousPage: () => void;
|
|
395
439
|
label: import("../../type-source").LabelType;
|
|
440
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
396
441
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
397
442
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
398
443
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -431,6 +476,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
431
476
|
goNextPage: () => void;
|
|
432
477
|
goPreviousPage: () => void;
|
|
433
478
|
label: import("../../type-source").LabelType;
|
|
479
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
434
480
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
435
481
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
436
482
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -443,6 +489,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
443
489
|
options: {
|
|
444
490
|
value: string;
|
|
445
491
|
label: import("../../type-source").LabelType;
|
|
492
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
446
493
|
}[];
|
|
447
494
|
response: import("../../type-source").ResponseType;
|
|
448
495
|
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
@@ -473,6 +520,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
473
520
|
goNextPage: () => void;
|
|
474
521
|
goPreviousPage: () => void;
|
|
475
522
|
label: import("../../type-source").LabelType;
|
|
523
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
476
524
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
477
525
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
478
526
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -510,6 +558,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
510
558
|
goNextPage: () => void;
|
|
511
559
|
goPreviousPage: () => void;
|
|
512
560
|
label: import("../../type-source").LabelType;
|
|
561
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
513
562
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
514
563
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
515
564
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -522,6 +571,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
522
571
|
options: {
|
|
523
572
|
value: string;
|
|
524
573
|
label: import("../../type-source").LabelType;
|
|
574
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
525
575
|
}[];
|
|
526
576
|
response: import("../../type-source").ResponseType;
|
|
527
577
|
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
@@ -551,7 +601,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
551
601
|
workersBasePath: string | undefined;
|
|
552
602
|
goNextPage: () => void;
|
|
553
603
|
goPreviousPage: () => void;
|
|
554
|
-
|
|
604
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
555
605
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
556
606
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
557
607
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -564,7 +614,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
564
614
|
xAxisIterations: import("../../type-source").LabelType;
|
|
565
615
|
yAxisIterations: import("../../type-source").LabelType;
|
|
566
616
|
symLinks: {
|
|
567
|
-
[variableName: string]: Record<string, string>;
|
|
617
|
+
[variableName: string]: Record<string, string | null>;
|
|
568
618
|
};
|
|
569
619
|
components: import("../../type-source").ComponentType[];
|
|
570
620
|
} | {
|
|
@@ -594,6 +644,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
594
644
|
goNextPage: () => void;
|
|
595
645
|
goPreviousPage: () => void;
|
|
596
646
|
label: import("../../type-source").LabelType;
|
|
647
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
597
648
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
598
649
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
599
650
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -634,6 +685,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
634
685
|
goNextPage: () => void;
|
|
635
686
|
goPreviousPage: () => void;
|
|
636
687
|
label: import("../../type-source").LabelType;
|
|
688
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
637
689
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
638
690
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
639
691
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -644,6 +696,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
644
696
|
page: string;
|
|
645
697
|
componentType: "Suggester";
|
|
646
698
|
storeName: string;
|
|
699
|
+
response: import("../../type-source").ResponseType;
|
|
647
700
|
} | {
|
|
648
701
|
handleChange: (response: {
|
|
649
702
|
name: string;
|
|
@@ -671,6 +724,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
671
724
|
goNextPage: () => void;
|
|
672
725
|
goPreviousPage: () => void;
|
|
673
726
|
label: import("../../type-source").LabelType;
|
|
727
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
674
728
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
675
729
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
676
730
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -710,6 +764,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
710
764
|
goNextPage: () => void;
|
|
711
765
|
goPreviousPage: () => void;
|
|
712
766
|
label: import("../../type-source").LabelType;
|
|
767
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
713
768
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
714
769
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
715
770
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -719,6 +774,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
719
774
|
mandatory?: boolean | undefined;
|
|
720
775
|
page: string;
|
|
721
776
|
componentType: "CheckboxOne";
|
|
777
|
+
response: import("../../type-source").ResponseType;
|
|
778
|
+
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
779
|
+
options: {
|
|
780
|
+
value: string;
|
|
781
|
+
label: import("../../type-source").LabelType;
|
|
782
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
783
|
+
}[];
|
|
722
784
|
} | {
|
|
723
785
|
handleChange: (response: {
|
|
724
786
|
name: string;
|
|
@@ -746,6 +808,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
746
808
|
goNextPage: () => void;
|
|
747
809
|
goPreviousPage: () => void;
|
|
748
810
|
label: import("../../type-source").LabelType;
|
|
811
|
+
description: import("../../type-source").LabelType;
|
|
749
812
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
750
813
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
751
814
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -756,6 +819,5 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
756
819
|
page: string;
|
|
757
820
|
componentType: "Question";
|
|
758
821
|
components: import("../../type-source").ComponentType[];
|
|
759
|
-
description: import("../../type-source").LabelType;
|
|
760
822
|
};
|
|
761
823
|
export default fillFromState;
|
|
@@ -3,42 +3,41 @@ import type { LunaticComponentDefinition, LunaticState } from '../../type';
|
|
|
3
3
|
* Fill the number of iterations for loop components without "iterations" expression
|
|
4
4
|
*/
|
|
5
5
|
export declare function fillIterations(component: LunaticComponentDefinition, state: LunaticState): (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSequenceType & {
|
|
6
|
-
componentType: "
|
|
6
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
7
7
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSubSequenceType & {
|
|
8
|
-
componentType: "
|
|
8
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
9
9
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentTableType & {
|
|
10
|
-
componentType: "
|
|
10
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
11
11
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentNumberType & {
|
|
12
|
-
componentType: "
|
|
12
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
13
13
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDatePickerType & {
|
|
14
|
-
componentType: "
|
|
14
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
15
15
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxGroupType & {
|
|
16
|
-
componentType: "
|
|
16
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
17
17
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxBooleanType & {
|
|
18
|
-
componentType: "
|
|
18
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
19
19
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRadioType & {
|
|
20
|
-
componentType: "
|
|
20
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
21
21
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentFilterDescriptionType & {
|
|
22
|
-
componentType: "
|
|
22
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
23
23
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDropdownType & {
|
|
24
|
-
componentType: "
|
|
25
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentPairWiseLinksType & {
|
|
26
|
-
componentType: "
|
|
24
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
25
|
+
}) | (Omit<import("../../type-source").ComponentTypeBase, "label"> & import("../../type-source").ComponentPairWiseLinksType & {
|
|
26
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
27
27
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRoundaboutType & {
|
|
28
|
-
componentType: "
|
|
28
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
29
29
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSuggesterType & {
|
|
30
|
-
componentType: "
|
|
30
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
31
31
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentInputOrTextareaType & {
|
|
32
|
-
componentType: "
|
|
33
|
-
}) | (import("../../type-source").ComponentTypeBase & {
|
|
34
|
-
componentType: "CheckboxOne";
|
|
35
|
-
} & {
|
|
36
|
-
componentType: "CheckboxOne" | "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "Question";
|
|
32
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
33
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxOneType & {
|
|
34
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
37
35
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentQuestionType & {
|
|
38
|
-
componentType: "
|
|
36
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
39
37
|
}) | {
|
|
40
38
|
iterations: number;
|
|
41
39
|
label: import("../../type-source").LabelType;
|
|
40
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
42
41
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
43
42
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
44
43
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -49,17 +48,14 @@ export declare function fillIterations(component: LunaticComponentDefinition, st
|
|
|
49
48
|
page: string;
|
|
50
49
|
componentType: "Loop";
|
|
51
50
|
loopDependencies: string[];
|
|
52
|
-
lines: {
|
|
53
|
-
min: import("../../type-source").LabelType;
|
|
54
|
-
max: import("../../type-source").LabelType;
|
|
55
|
-
};
|
|
56
51
|
components: import("../../type-source").ComponentType[];
|
|
57
|
-
maxPage: string;
|
|
58
52
|
depth: number;
|
|
59
|
-
paginatedLoop:
|
|
53
|
+
paginatedLoop: true;
|
|
54
|
+
maxPage: string;
|
|
60
55
|
} | {
|
|
61
56
|
iterations: number;
|
|
62
57
|
label: import("../../type-source").LabelType;
|
|
58
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
63
59
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
64
60
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
65
61
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -75,6 +71,7 @@ export declare function fillIterations(component: LunaticComponentDefinition, st
|
|
|
75
71
|
} | {
|
|
76
72
|
iterations: number;
|
|
77
73
|
label: import("../../type-source").LabelType;
|
|
74
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
78
75
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
79
76
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
80
77
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -89,23 +86,37 @@ export declare function fillIterations(component: LunaticComponentDefinition, st
|
|
|
89
86
|
min: import("../../type-source").LabelType;
|
|
90
87
|
max: import("../../type-source").LabelType;
|
|
91
88
|
};
|
|
92
|
-
header
|
|
89
|
+
header?: {
|
|
93
90
|
value: string;
|
|
94
91
|
label: string | import("../../type-source").LabelType;
|
|
95
92
|
options: {
|
|
96
93
|
value: string;
|
|
97
94
|
label: import("../../type-source").LabelType;
|
|
95
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
98
96
|
}[];
|
|
99
97
|
colspan?: number | undefined;
|
|
100
98
|
rowspan?: number | undefined;
|
|
101
|
-
}[];
|
|
102
|
-
body: ({
|
|
103
|
-
label: import("../../type-source").LabelType;
|
|
104
|
-
colspan?: number | undefined;
|
|
105
|
-
rowspan?: number | undefined;
|
|
106
|
-
} | (import("../../type-source").ComponentType & {
|
|
107
|
-
colspan?: number | undefined;
|
|
108
|
-
rowspan?: number | undefined;
|
|
109
|
-
}))[][];
|
|
99
|
+
}[] | undefined;
|
|
110
100
|
positioning: "HORIZONTAL";
|
|
101
|
+
} | {
|
|
102
|
+
iterations: number;
|
|
103
|
+
label: import("../../type-source").LabelType;
|
|
104
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
105
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
106
|
+
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
107
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
108
|
+
id: string;
|
|
109
|
+
bindingDependencies?: string[] | undefined;
|
|
110
|
+
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
111
|
+
mandatory?: boolean | undefined;
|
|
112
|
+
page: string;
|
|
113
|
+
componentType: "Loop";
|
|
114
|
+
loopDependencies: string[];
|
|
115
|
+
components: import("../../type-source").ComponentType[];
|
|
116
|
+
depth: number;
|
|
117
|
+
paginatedLoop: false;
|
|
118
|
+
lines: {
|
|
119
|
+
min: import("../../type-source").LabelType;
|
|
120
|
+
max: import("../../type-source").LabelType;
|
|
121
|
+
};
|
|
111
122
|
};
|