@inseefr/lunatic 3.0.0-rc.26 → 3.0.0-rc.28
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/LunaticComponents.d.ts +7 -11
- package/lib/components/LunaticComponents.js +4 -1
- package/lib/components/LunaticComponents.js.map +1 -1
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/library.d.ts +1 -1
- package/lib/components/shared/HOC/slottableComponent.d.ts +2 -2
- package/lib/components/shared/MDLabel/MDLabel.js +4 -1
- package/lib/components/shared/MDLabel/MDLabel.js.map +1 -1
- package/lib/components/shared/MDLabel/MDLabel.spec.js +4 -1
- package/lib/components/shared/MDLabel/MDLabel.spec.js.map +1 -1
- package/lib/components/shared/Table/Tbody.spec.js +0 -1
- package/lib/components/shared/Table/Tbody.spec.js.map +1 -1
- package/lib/components/shared/Table/Td.spec.js +0 -1
- package/lib/components/shared/Table/Td.spec.js.map +1 -1
- package/lib/components/type.d.ts +12 -12
- package/lib/hooks/useKeyboardKey.js +1 -0
- package/lib/hooks/useKeyboardKey.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/use-lunatic/actions.d.ts +4 -53
- package/lib/use-lunatic/actions.js +0 -7
- package/lib/use-lunatic/actions.js.map +1 -1
- package/lib/use-lunatic/commons/check-loops.d.ts +2 -2
- package/lib/use-lunatic/commons/check-loops.js.map +1 -1
- package/lib/use-lunatic/commons/check-pager.d.ts +2 -2
- package/lib/use-lunatic/commons/check-pager.js.map +1 -1
- package/lib/use-lunatic/commons/compile-controls.d.ts +2 -2
- package/lib/use-lunatic/commons/compile-controls.js +5 -3
- package/lib/use-lunatic/commons/compile-controls.js.map +1 -1
- package/lib/use-lunatic/commons/create-map-pages.d.ts +2 -2
- package/lib/use-lunatic/commons/create-map-pages.js.map +1 -1
- package/lib/use-lunatic/commons/execute-condition-filter.d.ts +2 -2
- package/lib/use-lunatic/commons/execute-condition-filter.js +3 -4
- package/lib/use-lunatic/commons/execute-condition-filter.js.map +1 -1
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +614 -6
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +6 -13
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js.map +1 -1
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js +1 -1
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js.map +1 -1
- package/lib/use-lunatic/commons/fill-components/fill-components.d.ts +19 -17
- package/lib/use-lunatic/commons/fill-components/fill-components.js +29 -29
- package/lib/use-lunatic/commons/fill-components/fill-components.js.map +1 -1
- package/lib/use-lunatic/commons/get-components-from-state.d.ts +2 -3
- package/lib/use-lunatic/commons/get-components-from-state.js +1 -2
- package/lib/use-lunatic/commons/get-components-from-state.js.map +1 -1
- package/lib/use-lunatic/commons/index.d.ts +0 -3
- package/lib/use-lunatic/commons/index.js +0 -3
- package/lib/use-lunatic/commons/index.js.map +1 -1
- package/lib/use-lunatic/commons/is-First-last-page.d.ts +2 -2
- package/lib/use-lunatic/commons/is-First-last-page.js.map +1 -1
- package/lib/use-lunatic/commons/page-navigation.d.ts +3 -3
- package/lib/use-lunatic/commons/page-navigation.js.map +1 -1
- package/lib/use-lunatic/commons/page-navigation.spec.js.map +1 -1
- package/lib/use-lunatic/commons/page-tag.d.ts +4 -4
- package/lib/use-lunatic/commons/page-tag.js.map +1 -1
- package/lib/use-lunatic/commons/page.d.ts +3 -3
- package/lib/use-lunatic/commons/page.js +2 -1
- package/lib/use-lunatic/commons/page.js.map +1 -1
- package/lib/use-lunatic/hooks/use-loop-variables.d.ts +2 -2
- package/lib/use-lunatic/hooks/use-loop-variables.js.map +1 -1
- package/lib/use-lunatic/hooks/use-page-has-response.d.ts +2 -2
- package/lib/use-lunatic/hooks/use-page-has-response.js.map +1 -1
- package/lib/use-lunatic/hooks/useOverview.d.ts +2 -2
- package/lib/use-lunatic/hooks/useOverview.js.map +1 -1
- package/lib/use-lunatic/props/propComponentType.d.ts +9 -0
- package/lib/use-lunatic/{commons/fill-components/fill-specific-expression.js → props/propComponentType.js} +21 -27
- package/lib/use-lunatic/props/propComponentType.js.map +1 -0
- package/lib/use-lunatic/props/propIterations.d.ts +7 -0
- package/lib/use-lunatic/props/propIterations.js +26 -0
- package/lib/use-lunatic/props/propIterations.js.map +1 -0
- package/lib/use-lunatic/props/propMissingResponse.d.ts +9 -0
- package/lib/use-lunatic/props/propMissingResponse.js +13 -0
- package/lib/use-lunatic/props/propMissingResponse.js.map +1 -0
- package/lib/use-lunatic/props/propValue.d.ts +6 -0
- package/lib/use-lunatic/props/propValue.js +28 -0
- package/lib/use-lunatic/props/propValue.js.map +1 -0
- package/lib/use-lunatic/{commons/fill-components/fill-component-value.spec.js → props/propValue.spec.js} +6 -6
- package/lib/use-lunatic/props/propValue.spec.js.map +1 -0
- package/lib/use-lunatic/reducer/commons/auto-explore-loop.d.ts +2 -2
- package/lib/use-lunatic/reducer/commons/auto-explore-loop.js.map +1 -1
- package/lib/use-lunatic/reducer/commons/validate-condition-filter.d.ts +2 -2
- package/lib/use-lunatic/reducer/commons/validate-condition-filter.js.map +1 -1
- package/lib/use-lunatic/reducer/controls/check-base-control.d.ts +2 -2
- package/lib/use-lunatic/reducer/controls/check-base-control.js.map +1 -1
- package/lib/use-lunatic/reducer/controls/check-roundabout-control.d.ts +2 -2
- package/lib/use-lunatic/reducer/controls/check-roundabout-control.js.map +1 -1
- package/lib/use-lunatic/reducer/overview/overviewOnInit.d.ts +4 -105
- package/lib/use-lunatic/reducer/overview/overviewOnInit.js +1 -12
- package/lib/use-lunatic/reducer/overview/overviewOnInit.js.map +1 -1
- package/lib/use-lunatic/reducer/reduce-go-next-page.d.ts +2 -2
- package/lib/use-lunatic/reducer/reduce-go-next-page.js.map +1 -1
- package/lib/use-lunatic/reducer/reduce-go-previous-page.d.ts +2 -3
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js +1 -2
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js.map +1 -1
- package/lib/use-lunatic/reducer/reduce-go-to-page.d.ts +2 -3
- package/lib/use-lunatic/reducer/reduce-go-to-page.js +1 -2
- package/lib/use-lunatic/reducer/reduce-go-to-page.js.map +1 -1
- package/lib/use-lunatic/reducer/reduce-handle-change.d.ts +2 -2
- package/lib/use-lunatic/reducer/reduce-handle-change.js.map +1 -1
- package/lib/use-lunatic/reducer/reducer.d.ts +2 -3
- package/lib/use-lunatic/reducer/reducer.js +3 -10
- package/lib/use-lunatic/reducer/reducer.js.map +1 -1
- package/lib/use-lunatic/reducer/reducerInitializer.d.ts +10 -0
- package/lib/use-lunatic/reducer/{reduce-on-init.js → reducerInitializer.js} +70 -72
- package/lib/use-lunatic/reducer/reducerInitializer.js.map +1 -0
- package/lib/use-lunatic/type.d.ts +80 -49
- package/lib/use-lunatic/use-lunatic.d.ts +22 -65
- package/lib/use-lunatic/use-lunatic.js +69 -74
- package/lib/use-lunatic/use-lunatic.js.map +1 -1
- package/lib/utils/object.d.ts +1 -0
- package/lib/utils/object.js +6 -0
- package/lib/utils/object.js.map +1 -1
- package/package.json +2 -1
- package/lib/stories/behaviour/cleaning/source-loop.json +0 -130
- package/lib/stories/behaviour/resizing/source-resizing-cleaning.json +0 -171
- package/lib/stories/overview/dataLoop.json +0 -189
- package/lib/stories/overview/source.json +0 -28
- package/lib/stories/overview/sourceLoop.json +0 -1423
- package/lib/stories/questionnaires/logement/source.json +0 -31762
- package/lib/stories/questionnaires2023/simpsons/source.json +0 -4728
- package/lib/use-lunatic/commons/fill-components/fill-component-required.d.ts +0 -442
- package/lib/use-lunatic/commons/fill-components/fill-component-required.js +0 -13
- package/lib/use-lunatic/commons/fill-components/fill-component-required.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-component-value.d.ts +0 -5
- package/lib/use-lunatic/commons/fill-components/fill-component-value.js +0 -34
- package/lib/use-lunatic/commons/fill-components/fill-component-value.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-component-value.spec.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-from-state.d.ts +0 -770
- package/lib/use-lunatic/commons/fill-components/fill-from-state.js +0 -18
- package/lib/use-lunatic/commons/fill-components/fill-from-state.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-iterations.d.ts +0 -124
- package/lib/use-lunatic/commons/fill-components/fill-iterations.js +0 -36
- package/lib/use-lunatic/commons/fill-components/fill-iterations.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-management.d.ts +0 -6
- package/lib/use-lunatic/commons/fill-components/fill-management.js +0 -9
- package/lib/use-lunatic/commons/fill-components/fill-management.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-missing-response.d.ts +0 -12
- package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +0 -20
- package/lib/use-lunatic/commons/fill-components/fill-missing-response.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-pagination.d.ts +0 -9
- package/lib/use-lunatic/commons/fill-components/fill-pagination.js +0 -10
- package/lib/use-lunatic/commons/fill-components/fill-pagination.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +0 -1268
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js.map +0 -1
- package/lib/use-lunatic/commons/fill-components/index.d.ts +0 -1
- package/lib/use-lunatic/commons/fill-components/index.js +0 -2
- package/lib/use-lunatic/commons/fill-components/index.js.map +0 -1
- package/lib/use-lunatic/commons/use-components-from-state.d.ts +0 -4
- package/lib/use-lunatic/commons/use-components-from-state.js +0 -15
- package/lib/use-lunatic/commons/use-components-from-state.js.map +0 -1
- package/lib/use-lunatic/initial-state.d.ts +0 -3
- package/lib/use-lunatic/initial-state.js +0 -39
- package/lib/use-lunatic/initial-state.js.map +0 -1
- package/lib/use-lunatic/reducer/index.d.ts +0 -1
- package/lib/use-lunatic/reducer/index.js +0 -2
- package/lib/use-lunatic/reducer/index.js.map +0 -1
- package/lib/use-lunatic/reducer/reduce-on-init.d.ts +0 -4
- package/lib/use-lunatic/reducer/reduce-on-init.js.map +0 -1
- package/lib/use-lunatic/reducer/reduce-on-set-waiting.d.ts +0 -4
- package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +0 -8
- package/lib/use-lunatic/reducer/reduce-on-set-waiting.js.map +0 -1
- package/lib/use-lunatic/use-lunatic.test.d.ts +0 -1
- package/lib/use-lunatic/use-lunatic.test.js +0 -280
- package/lib/use-lunatic/use-lunatic.test.js.map +0 -1
- /package/lib/use-lunatic/{commons/fill-components/fill-component-value.spec.d.ts → props/propValue.spec.d.ts} +0 -0
|
@@ -1,442 +0,0 @@
|
|
|
1
|
-
import type { LunaticComponentDefinition } from '../../type';
|
|
2
|
-
/**
|
|
3
|
-
* Add required attribute on component that are mandatory
|
|
4
|
-
*/
|
|
5
|
-
export declare function fillComponentRequired(component: LunaticComponentDefinition): (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSequenceType & {
|
|
6
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
7
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSubSequenceType & {
|
|
8
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
9
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRosterForLoopType & {
|
|
10
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
11
|
-
}) | (import("../../type-source").ComponentTypeBase & {
|
|
12
|
-
componentType: "Loop";
|
|
13
|
-
loopDependencies: string[];
|
|
14
|
-
components: import("../../type-source").ComponentType[];
|
|
15
|
-
depth: number;
|
|
16
|
-
} & {
|
|
17
|
-
paginatedLoop: true;
|
|
18
|
-
maxPage: string;
|
|
19
|
-
iterations: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
20
|
-
} & {
|
|
21
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
22
|
-
}) | (import("../../type-source").ComponentTypeBase & {
|
|
23
|
-
componentType: "Loop";
|
|
24
|
-
loopDependencies: string[];
|
|
25
|
-
components: import("../../type-source").ComponentType[];
|
|
26
|
-
depth: number;
|
|
27
|
-
} & {
|
|
28
|
-
paginatedLoop: false;
|
|
29
|
-
lines: {
|
|
30
|
-
min: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
31
|
-
max: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
32
|
-
};
|
|
33
|
-
} & {
|
|
34
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
35
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentTableType & {
|
|
36
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
37
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentNumberType & {
|
|
38
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
39
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDatePickerType & {
|
|
40
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
41
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDurationType & {
|
|
42
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
43
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxGroupType & {
|
|
44
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
45
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxBooleanType & {
|
|
46
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
47
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRadioType & {
|
|
48
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
49
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentFilterDescriptionType & {
|
|
50
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
51
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDropdownType & {
|
|
52
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
53
|
-
}) | (Omit<import("../../type-source").ComponentTypeBase, "label"> & import("../../type-source").ComponentPairWiseLinksType & {
|
|
54
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
55
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRoundaboutType & {
|
|
56
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
57
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSuggesterType & {
|
|
58
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
59
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentInputOrTextareaType & {
|
|
60
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
61
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxOneType & {
|
|
62
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
63
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentQuestionType & {
|
|
64
|
-
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "Duration" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
65
|
-
}) | {
|
|
66
|
-
required: boolean;
|
|
67
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
68
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
69
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
70
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
71
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
72
|
-
id: string;
|
|
73
|
-
bindingDependencies?: string[] | undefined;
|
|
74
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
75
|
-
mandatory?: boolean | undefined;
|
|
76
|
-
page: string;
|
|
77
|
-
componentType: "Sequence";
|
|
78
|
-
goToPage?: string | undefined;
|
|
79
|
-
} | {
|
|
80
|
-
required: boolean;
|
|
81
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
82
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
83
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
84
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
85
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
86
|
-
id: string;
|
|
87
|
-
bindingDependencies?: string[] | undefined;
|
|
88
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
89
|
-
mandatory?: boolean | undefined;
|
|
90
|
-
page: string;
|
|
91
|
-
componentType: "Subsequence";
|
|
92
|
-
goToPage?: string | undefined;
|
|
93
|
-
} | {
|
|
94
|
-
required: boolean;
|
|
95
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
96
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
97
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
98
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
99
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
100
|
-
id: string;
|
|
101
|
-
bindingDependencies?: string[] | undefined;
|
|
102
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
103
|
-
mandatory?: boolean | undefined;
|
|
104
|
-
page: string;
|
|
105
|
-
componentType: "RosterForLoop";
|
|
106
|
-
components: import("../../type-source").ComponentType[];
|
|
107
|
-
lines: {
|
|
108
|
-
min: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
109
|
-
max: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
110
|
-
};
|
|
111
|
-
header?: {
|
|
112
|
-
value: string;
|
|
113
|
-
label: string | import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
114
|
-
options: {
|
|
115
|
-
value: string;
|
|
116
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
117
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
118
|
-
}[];
|
|
119
|
-
colspan?: number | undefined;
|
|
120
|
-
rowspan?: number | undefined;
|
|
121
|
-
}[] | undefined;
|
|
122
|
-
positioning: "HORIZONTAL";
|
|
123
|
-
} | {
|
|
124
|
-
required: boolean;
|
|
125
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
126
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
127
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
128
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
129
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
130
|
-
id: string;
|
|
131
|
-
bindingDependencies?: string[] | undefined;
|
|
132
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
133
|
-
mandatory?: boolean | undefined;
|
|
134
|
-
page: string;
|
|
135
|
-
componentType: "Loop";
|
|
136
|
-
loopDependencies: string[];
|
|
137
|
-
components: import("../../type-source").ComponentType[];
|
|
138
|
-
depth: number;
|
|
139
|
-
paginatedLoop: true;
|
|
140
|
-
maxPage: string;
|
|
141
|
-
iterations: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
142
|
-
} | {
|
|
143
|
-
required: boolean;
|
|
144
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
145
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
146
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
147
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
148
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
149
|
-
id: string;
|
|
150
|
-
bindingDependencies?: string[] | undefined;
|
|
151
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
152
|
-
mandatory?: boolean | undefined;
|
|
153
|
-
page: string;
|
|
154
|
-
componentType: "Loop";
|
|
155
|
-
loopDependencies: string[];
|
|
156
|
-
components: import("../../type-source").ComponentType[];
|
|
157
|
-
depth: number;
|
|
158
|
-
paginatedLoop: false;
|
|
159
|
-
lines: {
|
|
160
|
-
min: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
161
|
-
max: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
162
|
-
};
|
|
163
|
-
} | {
|
|
164
|
-
required: boolean;
|
|
165
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
166
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
167
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
168
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
169
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
170
|
-
id: string;
|
|
171
|
-
bindingDependencies?: string[] | undefined;
|
|
172
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
173
|
-
mandatory?: boolean | undefined;
|
|
174
|
-
page: string;
|
|
175
|
-
componentType: "Table";
|
|
176
|
-
header: {
|
|
177
|
-
value: string;
|
|
178
|
-
label: string | import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
179
|
-
options: {
|
|
180
|
-
value: string;
|
|
181
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
182
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
183
|
-
}[];
|
|
184
|
-
colspan?: number | undefined;
|
|
185
|
-
rowspan?: number | undefined;
|
|
186
|
-
}[] | undefined;
|
|
187
|
-
body: ({
|
|
188
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
189
|
-
colspan?: number | undefined;
|
|
190
|
-
rowspan?: number | undefined;
|
|
191
|
-
} | (import("../../type-source").ComponentType & {
|
|
192
|
-
colspan?: number | undefined;
|
|
193
|
-
rowspan?: number | undefined;
|
|
194
|
-
}))[][];
|
|
195
|
-
} | {
|
|
196
|
-
required: boolean;
|
|
197
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
198
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
199
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
200
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
201
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
202
|
-
id: string;
|
|
203
|
-
bindingDependencies?: string[] | undefined;
|
|
204
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
205
|
-
mandatory?: boolean | undefined;
|
|
206
|
-
page: string;
|
|
207
|
-
componentType: "InputNumber";
|
|
208
|
-
unit?: string | undefined;
|
|
209
|
-
response: import("../../type-source").ResponseType;
|
|
210
|
-
min?: number | undefined;
|
|
211
|
-
max?: number | undefined;
|
|
212
|
-
decimals?: number | undefined;
|
|
213
|
-
} | {
|
|
214
|
-
required: boolean;
|
|
215
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
216
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
217
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
218
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
219
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
220
|
-
id: string;
|
|
221
|
-
bindingDependencies?: string[] | undefined;
|
|
222
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
223
|
-
mandatory?: boolean | undefined;
|
|
224
|
-
page: string;
|
|
225
|
-
componentType: "Datepicker";
|
|
226
|
-
dateFormat: "YYYY-MM-DD" | "YYYY" | "YYYY-MM";
|
|
227
|
-
response: import("../../type-source").ResponseType;
|
|
228
|
-
min?: string | undefined;
|
|
229
|
-
max?: string | undefined;
|
|
230
|
-
} | {
|
|
231
|
-
required: boolean;
|
|
232
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
233
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
234
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
235
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
236
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
237
|
-
id: string;
|
|
238
|
-
bindingDependencies?: string[] | undefined;
|
|
239
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
240
|
-
mandatory?: boolean | undefined;
|
|
241
|
-
page: string;
|
|
242
|
-
componentType: "Duration";
|
|
243
|
-
format: "PnYnM" | "PTnHnM";
|
|
244
|
-
response: import("../../type-source").ResponseType;
|
|
245
|
-
} | {
|
|
246
|
-
required: boolean;
|
|
247
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
248
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
249
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
250
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
251
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
252
|
-
id: string;
|
|
253
|
-
bindingDependencies?: string[] | undefined;
|
|
254
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
255
|
-
mandatory?: boolean | undefined;
|
|
256
|
-
page: string;
|
|
257
|
-
componentType: "CheckboxGroup";
|
|
258
|
-
responses: {
|
|
259
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
260
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
261
|
-
response: import("../../type-source").ResponseType;
|
|
262
|
-
id: string;
|
|
263
|
-
}[];
|
|
264
|
-
} | {
|
|
265
|
-
required: boolean;
|
|
266
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
267
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
268
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
269
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
270
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
271
|
-
id: string;
|
|
272
|
-
bindingDependencies?: string[] | undefined;
|
|
273
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
274
|
-
mandatory?: boolean | undefined;
|
|
275
|
-
page: string;
|
|
276
|
-
componentType: "CheckboxBoolean";
|
|
277
|
-
response: import("../../type-source").ResponseType;
|
|
278
|
-
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
279
|
-
} | {
|
|
280
|
-
required: boolean;
|
|
281
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
282
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
283
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
284
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
285
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
286
|
-
id: string;
|
|
287
|
-
bindingDependencies?: string[] | undefined;
|
|
288
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
289
|
-
mandatory?: boolean | undefined;
|
|
290
|
-
page: string;
|
|
291
|
-
componentType: "Radio";
|
|
292
|
-
options: {
|
|
293
|
-
value: string;
|
|
294
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
295
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
296
|
-
}[];
|
|
297
|
-
response: import("../../type-source").ResponseType;
|
|
298
|
-
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
299
|
-
} | {
|
|
300
|
-
required: boolean;
|
|
301
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
302
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
303
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
304
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
305
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
306
|
-
id: string;
|
|
307
|
-
bindingDependencies?: string[] | undefined;
|
|
308
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
309
|
-
mandatory?: boolean | undefined;
|
|
310
|
-
page: string;
|
|
311
|
-
componentType: "FilterDescription";
|
|
312
|
-
filterDescription: boolean;
|
|
313
|
-
} | {
|
|
314
|
-
required: boolean;
|
|
315
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
316
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
317
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
318
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
319
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
320
|
-
id: string;
|
|
321
|
-
bindingDependencies?: string[] | undefined;
|
|
322
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
323
|
-
mandatory?: boolean | undefined;
|
|
324
|
-
page: string;
|
|
325
|
-
componentType: "Dropdown";
|
|
326
|
-
options: {
|
|
327
|
-
value: string;
|
|
328
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
329
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
330
|
-
}[];
|
|
331
|
-
response: import("../../type-source").ResponseType;
|
|
332
|
-
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
333
|
-
} | {
|
|
334
|
-
required: boolean;
|
|
335
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
336
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
337
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
338
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
339
|
-
id: string;
|
|
340
|
-
bindingDependencies?: string[] | undefined;
|
|
341
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
342
|
-
mandatory?: boolean | undefined;
|
|
343
|
-
page: string;
|
|
344
|
-
componentType: "PairwiseLinks";
|
|
345
|
-
xAxisIterations: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
346
|
-
yAxisIterations: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
347
|
-
symLinks: {
|
|
348
|
-
[variableName: string]: Record<string, string | null>;
|
|
349
|
-
};
|
|
350
|
-
components: import("../../type-source").ComponentType[];
|
|
351
|
-
} | {
|
|
352
|
-
required: boolean;
|
|
353
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
354
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
355
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
356
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
357
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
358
|
-
id: string;
|
|
359
|
-
bindingDependencies?: string[] | undefined;
|
|
360
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
361
|
-
mandatory?: boolean | undefined;
|
|
362
|
-
page: string;
|
|
363
|
-
componentType: "Roundabout";
|
|
364
|
-
components: import("../../type-source").ComponentType[];
|
|
365
|
-
iterations: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
366
|
-
locked: boolean;
|
|
367
|
-
expressions: Record<string, import("../../type-source").LabelType<"VTL" | "VTL|MD">>;
|
|
368
|
-
} | {
|
|
369
|
-
required: boolean;
|
|
370
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
371
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
372
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
373
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
374
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
375
|
-
id: string;
|
|
376
|
-
bindingDependencies?: string[] | undefined;
|
|
377
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
378
|
-
mandatory?: boolean | undefined;
|
|
379
|
-
page: string;
|
|
380
|
-
componentType: "Suggester";
|
|
381
|
-
storeName: string;
|
|
382
|
-
response: import("../../type-source").ResponseType;
|
|
383
|
-
arbitrary?: {
|
|
384
|
-
response: {
|
|
385
|
-
name: string;
|
|
386
|
-
};
|
|
387
|
-
} | undefined;
|
|
388
|
-
optionResponses: {
|
|
389
|
-
name: string;
|
|
390
|
-
attribute: string;
|
|
391
|
-
}[];
|
|
392
|
-
} | {
|
|
393
|
-
required: boolean;
|
|
394
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
395
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
396
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
397
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
398
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
399
|
-
id: string;
|
|
400
|
-
bindingDependencies?: string[] | undefined;
|
|
401
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
402
|
-
mandatory?: boolean | undefined;
|
|
403
|
-
page: string;
|
|
404
|
-
componentType: "Input" | "Textarea";
|
|
405
|
-
maxLength: number;
|
|
406
|
-
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
407
|
-
response: import("../../type-source").ResponseType;
|
|
408
|
-
} | {
|
|
409
|
-
required: boolean;
|
|
410
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
411
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
412
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
413
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
414
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
415
|
-
id: string;
|
|
416
|
-
bindingDependencies?: string[] | undefined;
|
|
417
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
418
|
-
mandatory?: boolean | undefined;
|
|
419
|
-
page: string;
|
|
420
|
-
componentType: "CheckboxOne";
|
|
421
|
-
response: import("../../type-source").ResponseType;
|
|
422
|
-
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
423
|
-
options: {
|
|
424
|
-
value: string;
|
|
425
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
426
|
-
description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
|
|
427
|
-
}[];
|
|
428
|
-
} | {
|
|
429
|
-
required: boolean;
|
|
430
|
-
label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
431
|
-
description: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
|
|
432
|
-
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
433
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
434
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
435
|
-
id: string;
|
|
436
|
-
bindingDependencies?: string[] | undefined;
|
|
437
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
438
|
-
mandatory?: boolean | undefined;
|
|
439
|
-
page: string;
|
|
440
|
-
componentType: "Question";
|
|
441
|
-
components: import("../../type-source").ComponentType[];
|
|
442
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add required attribute on component that are mandatory
|
|
3
|
-
*/
|
|
4
|
-
export function fillComponentRequired(component) {
|
|
5
|
-
if (component.mandatory) {
|
|
6
|
-
return {
|
|
7
|
-
...component,
|
|
8
|
-
required: true,
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
return component;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=fill-component-required.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fill-component-required.js","sourceRoot":"","sources":["../../../../src/use-lunatic/commons/fill-components/fill-component-required.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,SAAqC;IAC1E,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC;QACzB,OAAO;YACN,GAAG,SAAS;YACZ,QAAQ,EAAE,IAAI;SACd,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AAClB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { LunaticComponentDefinition, LunaticState } from '../../type';
|
|
2
|
-
export type FilledProps = {
|
|
3
|
-
value?: unknown;
|
|
4
|
-
};
|
|
5
|
-
export declare function fillComponentValue(component: LunaticComponentDefinition, state: Pick<LunaticState, 'pager' | 'variables'>): LunaticComponentDefinition & FilledProps;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { hasResponse, hasResponses } from '../component';
|
|
2
|
-
import { isNumber } from '../../../utils/number';
|
|
3
|
-
export function fillComponentValue(component, state) {
|
|
4
|
-
return {
|
|
5
|
-
...component,
|
|
6
|
-
value: getValueForComponent(component, state),
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
function getValueForComponent(component, state) {
|
|
10
|
-
let iteration = isNumber(state.pager.iteration)
|
|
11
|
-
? [state.pager.iteration]
|
|
12
|
-
: undefined;
|
|
13
|
-
if (state.pager.linksIterations) {
|
|
14
|
-
iteration = state.pager.linksIterations;
|
|
15
|
-
}
|
|
16
|
-
if (hasResponses(component)) {
|
|
17
|
-
return Object.fromEntries(component.responses?.map(({ response }) => [
|
|
18
|
-
response.name,
|
|
19
|
-
state.variables.get(response.name, iteration),
|
|
20
|
-
]) ?? []);
|
|
21
|
-
}
|
|
22
|
-
if (hasResponse(component)) {
|
|
23
|
-
return state.variables.get(component.response.name, iteration);
|
|
24
|
-
}
|
|
25
|
-
// For loop, value will be a map of child component values
|
|
26
|
-
if ('components' in component) {
|
|
27
|
-
return Object.fromEntries(component.components
|
|
28
|
-
.map((c) => ('response' in c ? c.response.name : null))
|
|
29
|
-
.filter((name) => name !== null)
|
|
30
|
-
.map((name) => [name, state.variables.get(name)]));
|
|
31
|
-
}
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=fill-component-value.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fill-component-value.js","sourceRoot":"","sources":["../../../../src/use-lunatic/commons/fill-components/fill-component-value.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIjD,MAAM,UAAU,kBAAkB,CACjC,SAAqC,EACrC,KAAgD;IAEhD,OAAO;QACN,GAAG,SAAS;QACZ,KAAK,EAAE,oBAAoB,CAAC,SAAS,EAAE,KAAK,CAAC;KAC7C,CAAC;AACH,CAAC;AAED,SAAS,oBAAoB,CAC5B,SAAqC,EACrC,KAAgD;IAEhD,IAAI,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;QAC9C,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;QACzB,CAAC,CAAC,SAAS,CAAC;IACb,IAAI,KAAK,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;QACjC,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC;IACzC,CAAC;IACD,IAAI,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;QAC7B,OAAO,MAAM,CAAC,WAAW,CACxB,SAAS,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;YAC1C,QAAQ,CAAC,IAAI;YACb,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;SAC7C,CAAC,IAAI,EAAE,CACR,CAAC;IACH,CAAC;IACD,IAAI,WAAW,CAAC,SAAS,CAAC,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAChE,CAAC;IACD,0DAA0D;IAC1D,IAAI,YAAY,IAAI,SAAS,EAAE,CAAC;QAC/B,OAAO,MAAM,CAAC,WAAW,CACxB,SAAS,CAAC,UAAU;aAClB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aACtD,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC;aAC/B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,IAAK,CAAC,CAAC,CAAC,CACnD,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fill-component-value.spec.js","sourceRoot":"","sources":["../../../../src/use-lunatic/commons/fill-components/fill-component-value.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACnC,6BAA6B;IAC7B,MAAM,qBAAqB,GAAG,CAC7B,SAAqC;IACrC,6BAA6B;IAC7B,SAAkC,EAAE;IACpC,kBAAkB;IAClB,SAAkB,EACjB,EAAE;QACH,OAAO,MAAM,CACZ,kBAAkB,CAAC,SAAS,EAAE;YAC7B,SAAS,EAAE,qBAAqB,CAAC,cAAc,CAAC,MAAM,CAAC;YACvD,KAAK,EAAE;gBACN,OAAO,EAAE,CAAC;gBACV,IAAI,EAAE,CAAC;gBACP,SAAS;aACT;SACD,CAAC,CAAC,KAAK,CACR,CAAC;IACH,CAAC,CAAC;IAEF,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;QACzB,MAAM,SAAS,GAAG;YACjB,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACW,CAAC;QAEzC,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;YAC3C,qBAAqB,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAClE,qBAAqB,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;YACpD,qBAAqB,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CACvE,QAAQ,CACR,CAAC;YACF,qBAAqB,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CACvE,SAAS,CACT,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QAC1B,MAAM,SAAS,GAAG;YACjB,SAAS,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE;aAC9B,CAAC,CAAC;SAC4C,CAAC;QAEjD,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;YAC9C,qBAAqB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC;gBACxC,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI;aACX,CAAC,CAAC;YACH,qBAAqB,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC;gBACzD,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI;gBACX,KAAK,EAAE,IAAI;aACX,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|