@inseefr/lunatic 3.0.0-rc.1 → 3.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/CheckboxBoolean/CheckboxBoolean.js +39 -19
- package/lib/components/CheckboxGroup/CheckboxGroup.js +3 -2
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.js +4 -5
- package/lib/components/CheckboxGroup/CustomCheckboxGroup.spec.js +3 -0
- package/lib/components/CheckboxOne/CheckboxOne.js +6 -7
- package/lib/components/Datepicker/Datepicker.js +43 -29
- package/lib/components/Dropdown/Dropdown.js +37 -37
- package/lib/components/Duration/Duration.js +41 -17
- package/lib/components/FilterDescription/FilterDescription.js +2 -3
- package/lib/components/Input/Input.js +39 -22
- package/lib/components/InputNumber/InputNumber.js +45 -35
- package/lib/components/InputNumber/__snapshots__/InputNumber.spec.tsx.snap +0 -2
- package/lib/components/Loop/Loop.js +52 -29
- package/lib/components/LunaticComponents.js +60 -51
- package/lib/components/Question/Question.js +23 -14
- package/lib/components/Radio/Radio.js +2 -2
- package/lib/components/RosterForLoop/RosterForLoop.js +13 -36
- package/lib/components/Roundabout/CustomRoundabout.js +2 -2
- package/lib/components/Roundabout/Roundabout.js +0 -1
- package/lib/components/Roundabout/RoundaboutItButton.js +2 -2
- package/lib/components/Roundabout/extra.js +6 -6
- package/lib/components/Sequence/Sequence.js +2 -3
- package/lib/components/Subsequence/Subsequence.js +2 -2
- package/lib/components/Subsequence/Subsequence.spec.js +1 -1
- package/lib/components/Suggester/CustomSuggester.js +9 -6
- package/lib/components/Suggester/Suggester.js +67 -4
- package/lib/components/Suggester/SuggesterNotification.js +2 -2
- package/lib/components/Summary/Summary.js +3 -3
- package/lib/components/Switch/Switch.js +42 -22
- package/lib/components/Textarea/Textarea.js +43 -24
- package/lib/components/library.js +0 -2
- package/lib/components/shared/Button/Button.js +2 -3
- package/lib/components/shared/Button/IconButton.js +0 -1
- package/lib/components/shared/Checkbox/CheckboxOption.js +2 -3
- package/lib/components/shared/Combobox/Combobox.js +5 -4
- package/lib/components/shared/Combobox/ComboboxContainer.js +2 -2
- package/lib/components/shared/Combobox/ComboboxContentBox.js +2 -2
- package/lib/components/shared/Combobox/Panel/ComboboxOption.js +2 -2
- package/lib/components/shared/Combobox/Panel/ComboboxPanelContainer.js +2 -2
- package/lib/components/shared/Combobox/Selection/ComboboxClearButton.js +2 -2
- package/lib/components/shared/Combobox/Selection/ComboboxInput.js +2 -2
- package/lib/components/shared/Combobox/Selection/ComboboxLabelSelection.js +2 -2
- package/lib/components/shared/ComponentErrors/ComponentErrors.js +0 -1
- package/lib/components/shared/Declarations/Declarations.js +6 -7
- package/lib/components/shared/Declarations/Declarations.spec.js +5 -5
- package/lib/components/shared/Fieldset/Fieldset.js +2 -3
- package/lib/components/shared/HOC/{customizedComponent.js → slottableComponent.js} +35 -13
- package/lib/components/shared/Icons/lunatic-icon.js +0 -1
- package/lib/components/shared/Label/Label.js +2 -3
- package/lib/components/shared/MDLabel/RouterLink.js +2 -2
- package/lib/components/shared/Missing/Missing.js +0 -1
- package/lib/components/shared/ModalControls/ModalControls.js +0 -1
- package/lib/components/shared/Notification.js +2 -2
- package/lib/components/shared/Radio/RadioGroup.js +4 -4
- package/lib/components/shared/Radio/RadioOption.js +2 -2
- package/lib/components/shared/Table/Table.js +2 -3
- package/lib/components/shared/Table/Tbody.js +2 -2
- package/lib/components/shared/Table/Td.js +2 -2
- package/lib/components/shared/Table/Th.js +2 -2
- package/lib/components/shared/Table/Thead.js +2 -2
- package/lib/components/shared/Table/Tr.js +2 -2
- package/lib/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/CheckboxBoolean/CheckboxBoolean.d.ts +10 -5
- package/lib/src/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/lib/src/components/CheckboxOne/CheckboxOne.d.ts +5 -12
- package/lib/src/components/Datepicker/Datepicker.d.ts +8 -10
- package/lib/src/components/Dropdown/Dropdown.d.ts +9 -12
- package/lib/src/components/Duration/Duration.d.ts +9 -7
- package/lib/src/components/FilterDescription/FilterDescription.d.ts +1 -1
- package/lib/src/components/Input/Input.d.ts +9 -8
- package/lib/src/components/InputNumber/InputNumber.d.ts +9 -10
- package/lib/src/components/Loop/Loop.d.ts +11 -18
- package/lib/src/components/LunaticComponents.d.ts +4 -2
- package/lib/src/components/Question/Question.d.ts +6 -4
- package/lib/src/components/RosterForLoop/RosterForLoop.d.ts +2 -22
- 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 +7 -3
- package/lib/src/components/Suggester/Suggester.d.ts +1 -2
- package/lib/src/components/Suggester/SuggesterType.d.ts +6 -0
- package/lib/src/components/Suggester/helpers.d.ts +2 -2
- package/lib/src/components/Switch/Switch.d.ts +9 -0
- package/lib/src/components/Textarea/Textarea.d.ts +9 -10
- package/lib/src/components/library.d.ts +26 -93
- 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 +2 -3
- package/lib/src/components/shared/Fieldset/Fieldset.d.ts +0 -1
- package/lib/src/components/shared/HOC/slottableComponent.d.ts +105 -0
- 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 +1 -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 +7 -7
- package/lib/src/hooks/use-track-changes.d.ts +9 -1
- package/lib/src/hooks/useSuggesterInfo.d.ts +1 -1
- package/lib/src/index.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +106 -59
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +87 -58
- package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +47 -38
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +159 -87
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
- package/lib/src/use-lunatic/lunatic-context.d.ts +1 -4
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +23 -5
- package/lib/src/use-lunatic/type-source.d.ts +55 -46
- package/lib/src/use-lunatic/type.d.ts +4 -4
- package/lib/src/use-lunatic/use-lunatic.d.ts +63 -32
- package/lib/src/utils/variables.d.ts +10 -2
- package/lib/stories/{component-set/component-set.stories.js → behaviour/slots.stories.js} +36 -25
- package/lib/stories/checkbox-group/checkbox-group.stories.js +1 -6
- package/lib/stories/disabled/source.json +1 -1
- package/lib/stories/loop/source-roster.json +2 -2
- package/lib/stories/pairwise/pairwise-links.stories.js +1 -9
- 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 +45 -7
- package/lib/stories/utils/orchestrator.js +4 -4
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +0 -1
- package/lib/use-lunatic/lunatic-context.js +2 -10
- package/lib/use-lunatic/replace-component-sequence.js +2 -3
- package/lib/use-lunatic/use-lunatic.js +1 -4
- package/lib/use-lunatic/use-lunatic.test.js +12 -37
- package/package.json +2 -2
- package/lib/components/ComponentSet/ComponentSet.js +0 -68
- 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/ComponentSet/ComponentSet.d.ts +0 -7
- 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
- package/lib/src/components/shared/HOC/customizedComponent.d.ts +0 -5
- package/lib/src/components/type-custom.d.ts +0 -101
- package/lib/stories/checkbox-group/sourceComponentset.json +0 -424
- package/lib/stories/component-set/data-loop.json +0 -18
- package/lib/stories/component-set/data-roundabout.json +0 -25
- package/lib/stories/component-set/data.json +0 -25
- package/lib/stories/component-set/source-loop.json +0 -308
- package/lib/stories/component-set/source-roundabout.json +0 -434
- package/lib/stories/component-set/source.json +0 -113
- package/lib/stories/pairwise/source-componentset.json +0 -292
- package/lib/stories/suggester/source-component-set.json +0 -113
- /package/lib/components/{type-custom.js → Suggester/SuggesterType.js} +0 -0
|
@@ -3,48 +3,67 @@ import type { LunaticComponentDefinition } from '../../type';
|
|
|
3
3
|
* Add required attribute on component that are mandatory
|
|
4
4
|
*/
|
|
5
5
|
export declare function fillComponentRequired(component: LunaticComponentDefinition): (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").ComponentRosterForLoopType & {
|
|
10
|
-
componentType: "
|
|
11
|
-
}) | (import("../../type-source").ComponentTypeBase &
|
|
12
|
-
componentType: "
|
|
10
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "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;
|
|
20
|
+
} & {
|
|
21
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "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;
|
|
31
|
+
max: import("../../type-source").LabelType;
|
|
32
|
+
};
|
|
33
|
+
} & {
|
|
34
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
13
35
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentTableType & {
|
|
14
|
-
componentType: "
|
|
36
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
15
37
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentNumberType & {
|
|
16
|
-
componentType: "
|
|
38
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
17
39
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDatePickerType & {
|
|
18
|
-
componentType: "
|
|
40
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
19
41
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxGroupType & {
|
|
20
|
-
componentType: "
|
|
42
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
21
43
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxBooleanType & {
|
|
22
|
-
componentType: "
|
|
44
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
23
45
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRadioType & {
|
|
24
|
-
componentType: "
|
|
46
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
25
47
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentFilterDescriptionType & {
|
|
26
|
-
componentType: "
|
|
48
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
27
49
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDropdownType & {
|
|
28
|
-
componentType: "
|
|
29
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentPairWiseLinksType & {
|
|
30
|
-
componentType: "
|
|
50
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
51
|
+
}) | (Omit<import("../../type-source").ComponentTypeBase, "label"> & import("../../type-source").ComponentPairWiseLinksType & {
|
|
52
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
31
53
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRoundaboutType & {
|
|
32
|
-
componentType: "
|
|
54
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
33
55
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSuggesterType & {
|
|
34
|
-
componentType: "
|
|
56
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
35
57
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentInputOrTextareaType & {
|
|
36
|
-
componentType: "
|
|
37
|
-
}) | (import("../../type-source").ComponentTypeBase & {
|
|
38
|
-
componentType: "CheckboxOne";
|
|
39
|
-
} & {
|
|
40
|
-
componentType: "CheckboxOne" | "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "ComponentSet" | "Question";
|
|
41
|
-
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentComponentSetType & {
|
|
42
|
-
componentType: "CheckboxOne" | "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "ComponentSet" | "Question";
|
|
58
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
59
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxOneType & {
|
|
60
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
43
61
|
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentQuestionType & {
|
|
44
|
-
componentType: "
|
|
62
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxBoolean" | "Radio" | "FilterDescription" | "Dropdown" | "PairwiseLinks" | "Roundabout" | "Suggester" | "Input" | "Textarea" | "CheckboxOne" | "Question";
|
|
45
63
|
}) | {
|
|
46
64
|
required: boolean;
|
|
47
65
|
label: import("../../type-source").LabelType;
|
|
66
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
48
67
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
49
68
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
50
69
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -54,9 +73,11 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
54
73
|
mandatory?: boolean | undefined;
|
|
55
74
|
page: string;
|
|
56
75
|
componentType: "Sequence";
|
|
76
|
+
gotoPage?: string | undefined;
|
|
57
77
|
} | {
|
|
58
78
|
required: boolean;
|
|
59
79
|
label: import("../../type-source").LabelType;
|
|
80
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
60
81
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
61
82
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
62
83
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -66,10 +87,10 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
66
87
|
mandatory?: boolean | undefined;
|
|
67
88
|
page: string;
|
|
68
89
|
componentType: "Subsequence";
|
|
69
|
-
gotoPage: string;
|
|
70
90
|
} | {
|
|
71
91
|
required: boolean;
|
|
72
92
|
label: import("../../type-source").LabelType;
|
|
93
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
73
94
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
74
95
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
75
96
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -84,28 +105,41 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
84
105
|
min: import("../../type-source").LabelType;
|
|
85
106
|
max: import("../../type-source").LabelType;
|
|
86
107
|
};
|
|
87
|
-
header
|
|
108
|
+
header?: {
|
|
88
109
|
value: string;
|
|
89
110
|
label: string | import("../../type-source").LabelType;
|
|
90
111
|
options: {
|
|
91
112
|
value: string;
|
|
92
113
|
label: import("../../type-source").LabelType;
|
|
114
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
93
115
|
}[];
|
|
94
116
|
colspan?: number | undefined;
|
|
95
117
|
rowspan?: number | undefined;
|
|
96
|
-
}[];
|
|
97
|
-
body: ({
|
|
98
|
-
label: import("../../type-source").LabelType;
|
|
99
|
-
colspan?: number | undefined;
|
|
100
|
-
rowspan?: number | undefined;
|
|
101
|
-
} | (import("../../type-source").ComponentType & {
|
|
102
|
-
colspan?: number | undefined;
|
|
103
|
-
rowspan?: number | undefined;
|
|
104
|
-
}))[][];
|
|
118
|
+
}[] | undefined;
|
|
105
119
|
positioning: "HORIZONTAL";
|
|
106
120
|
} | {
|
|
107
121
|
required: boolean;
|
|
108
122
|
label: import("../../type-source").LabelType;
|
|
123
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
124
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
125
|
+
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
126
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
127
|
+
id: string;
|
|
128
|
+
bindingDependencies?: string[] | undefined;
|
|
129
|
+
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
130
|
+
mandatory?: boolean | undefined;
|
|
131
|
+
page: string;
|
|
132
|
+
componentType: "Loop";
|
|
133
|
+
loopDependencies: string[];
|
|
134
|
+
components: import("../../type-source").ComponentType[];
|
|
135
|
+
depth: number;
|
|
136
|
+
paginatedLoop: true;
|
|
137
|
+
maxPage: string;
|
|
138
|
+
iterations: import("../../type-source").LabelType;
|
|
139
|
+
} | {
|
|
140
|
+
required: boolean;
|
|
141
|
+
label: import("../../type-source").LabelType;
|
|
142
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
109
143
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
110
144
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
111
145
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -116,18 +150,17 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
116
150
|
page: string;
|
|
117
151
|
componentType: "Loop";
|
|
118
152
|
loopDependencies: string[];
|
|
153
|
+
components: import("../../type-source").ComponentType[];
|
|
154
|
+
depth: number;
|
|
155
|
+
paginatedLoop: false;
|
|
119
156
|
lines: {
|
|
120
157
|
min: import("../../type-source").LabelType;
|
|
121
158
|
max: import("../../type-source").LabelType;
|
|
122
159
|
};
|
|
123
|
-
components: import("../../type-source").ComponentType[];
|
|
124
|
-
iterations: import("../../type-source").LabelType;
|
|
125
|
-
maxPage: string;
|
|
126
|
-
depth: number;
|
|
127
|
-
paginatedLoop: boolean;
|
|
128
160
|
} | {
|
|
129
161
|
required: boolean;
|
|
130
162
|
label: import("../../type-source").LabelType;
|
|
163
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
131
164
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
132
165
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
133
166
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -143,10 +176,11 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
143
176
|
options: {
|
|
144
177
|
value: string;
|
|
145
178
|
label: import("../../type-source").LabelType;
|
|
179
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
146
180
|
}[];
|
|
147
181
|
colspan?: number | undefined;
|
|
148
182
|
rowspan?: number | undefined;
|
|
149
|
-
}[];
|
|
183
|
+
}[] | undefined;
|
|
150
184
|
body: ({
|
|
151
185
|
label: import("../../type-source").LabelType;
|
|
152
186
|
colspan?: number | undefined;
|
|
@@ -158,6 +192,7 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
158
192
|
} | {
|
|
159
193
|
required: boolean;
|
|
160
194
|
label: import("../../type-source").LabelType;
|
|
195
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
161
196
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
162
197
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
163
198
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -167,7 +202,7 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
167
202
|
mandatory?: boolean | undefined;
|
|
168
203
|
page: string;
|
|
169
204
|
componentType: "InputNumber";
|
|
170
|
-
unit
|
|
205
|
+
unit?: string | undefined;
|
|
171
206
|
response: import("../../type-source").ResponseType;
|
|
172
207
|
min?: number | undefined;
|
|
173
208
|
max?: number | undefined;
|
|
@@ -175,6 +210,7 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
175
210
|
} | {
|
|
176
211
|
required: boolean;
|
|
177
212
|
label: import("../../type-source").LabelType;
|
|
213
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
178
214
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
179
215
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
180
216
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -191,6 +227,7 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
191
227
|
} | {
|
|
192
228
|
required: boolean;
|
|
193
229
|
label: import("../../type-source").LabelType;
|
|
230
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
194
231
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
195
232
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
196
233
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -202,12 +239,14 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
202
239
|
componentType: "CheckboxGroup";
|
|
203
240
|
responses: {
|
|
204
241
|
label: import("../../type-source").LabelType;
|
|
242
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
205
243
|
response: import("../../type-source").ResponseType;
|
|
206
244
|
id: string;
|
|
207
245
|
}[];
|
|
208
246
|
} | {
|
|
209
247
|
required: boolean;
|
|
210
248
|
label: import("../../type-source").LabelType;
|
|
249
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
211
250
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
212
251
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
213
252
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -222,6 +261,7 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
222
261
|
} | {
|
|
223
262
|
required: boolean;
|
|
224
263
|
label: import("../../type-source").LabelType;
|
|
264
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
225
265
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
226
266
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
227
267
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -234,12 +274,14 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
234
274
|
options: {
|
|
235
275
|
value: string;
|
|
236
276
|
label: import("../../type-source").LabelType;
|
|
277
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
237
278
|
}[];
|
|
238
279
|
response: import("../../type-source").ResponseType;
|
|
239
280
|
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
240
281
|
} | {
|
|
241
282
|
required: boolean;
|
|
242
283
|
label: import("../../type-source").LabelType;
|
|
284
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
243
285
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
244
286
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
245
287
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -253,6 +295,7 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
253
295
|
} | {
|
|
254
296
|
required: boolean;
|
|
255
297
|
label: import("../../type-source").LabelType;
|
|
298
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
256
299
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
257
300
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
258
301
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -265,12 +308,13 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
265
308
|
options: {
|
|
266
309
|
value: string;
|
|
267
310
|
label: import("../../type-source").LabelType;
|
|
311
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
268
312
|
}[];
|
|
269
313
|
response: import("../../type-source").ResponseType;
|
|
270
314
|
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
271
315
|
} | {
|
|
272
316
|
required: boolean;
|
|
273
|
-
|
|
317
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
274
318
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
275
319
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
276
320
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -283,12 +327,13 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
283
327
|
xAxisIterations: import("../../type-source").LabelType;
|
|
284
328
|
yAxisIterations: import("../../type-source").LabelType;
|
|
285
329
|
symLinks: {
|
|
286
|
-
[variableName: string]: Record<string, string>;
|
|
330
|
+
[variableName: string]: Record<string, string | null>;
|
|
287
331
|
};
|
|
288
332
|
components: import("../../type-source").ComponentType[];
|
|
289
333
|
} | {
|
|
290
334
|
required: boolean;
|
|
291
335
|
label: import("../../type-source").LabelType;
|
|
336
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
292
337
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
293
338
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
294
339
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -305,6 +350,7 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
305
350
|
} | {
|
|
306
351
|
required: boolean;
|
|
307
352
|
label: import("../../type-source").LabelType;
|
|
353
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
308
354
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
309
355
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
310
356
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -315,9 +361,15 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
315
361
|
page: string;
|
|
316
362
|
componentType: "Suggester";
|
|
317
363
|
storeName: string;
|
|
364
|
+
response: import("../../type-source").ResponseType;
|
|
365
|
+
optionResponses: {
|
|
366
|
+
name: string;
|
|
367
|
+
attribute: string;
|
|
368
|
+
}[];
|
|
318
369
|
} | {
|
|
319
370
|
required: boolean;
|
|
320
371
|
label: import("../../type-source").LabelType;
|
|
372
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
321
373
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
322
374
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
323
375
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -333,6 +385,7 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
333
385
|
} | {
|
|
334
386
|
required: boolean;
|
|
335
387
|
label: import("../../type-source").LabelType;
|
|
388
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
336
389
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
337
390
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
338
391
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -342,22 +395,17 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
342
395
|
mandatory?: boolean | undefined;
|
|
343
396
|
page: string;
|
|
344
397
|
componentType: "CheckboxOne";
|
|
398
|
+
response: import("../../type-source").ResponseType;
|
|
399
|
+
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
400
|
+
options: {
|
|
401
|
+
value: string;
|
|
402
|
+
label: import("../../type-source").LabelType;
|
|
403
|
+
description?: import("../../type-source").LabelType | undefined;
|
|
404
|
+
}[];
|
|
345
405
|
} | {
|
|
346
406
|
required: boolean;
|
|
347
407
|
label: import("../../type-source").LabelType;
|
|
348
|
-
|
|
349
|
-
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
350
|
-
controls?: import("../../type-source").ControlType[] | undefined;
|
|
351
|
-
id: string;
|
|
352
|
-
bindingDependencies?: string[] | undefined;
|
|
353
|
-
hierarchy?: import("../../type-source").Hierarchy | undefined;
|
|
354
|
-
mandatory?: boolean | undefined;
|
|
355
|
-
page: string;
|
|
356
|
-
componentType: "ComponentSet";
|
|
357
|
-
components: import("../../type-source").ComponentType[];
|
|
358
|
-
} | {
|
|
359
|
-
required: boolean;
|
|
360
|
-
label: import("../../type-source").LabelType;
|
|
408
|
+
description: import("../../type-source").LabelType;
|
|
361
409
|
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
362
410
|
conditionFilter?: import("../../type-source").ConditionFilterType | undefined;
|
|
363
411
|
controls?: import("../../type-source").ControlType[] | undefined;
|
|
@@ -368,5 +416,4 @@ export declare function fillComponentRequired(component: LunaticComponentDefinit
|
|
|
368
416
|
page: string;
|
|
369
417
|
componentType: "Question";
|
|
370
418
|
components: import("../../type-source").ComponentType[];
|
|
371
|
-
description: import("../../type-source").LabelType;
|
|
372
419
|
};
|