@inseefr/lunatic 2.6.2 → 2.6.3
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/README.md +49 -3
- package/lib/components/checkbox/checkbox-boolean/html/checkbox-boolean.js +3 -3
- package/lib/components/checkbox/checkbox-boolean/lunatic-checkbox-boolean.js +7 -1
- package/lib/components/checkbox/checkbox-group/checkbox-group-content.js +0 -2
- package/lib/components/checkbox/checkbox-group/html/checkbox-group-content.js +4 -2
- package/lib/components/checkbox/checkbox-group/html/checkbox-group.js +3 -3
- package/lib/components/checkbox/checkbox-group/lunatic-checkbox-group.js +2 -1
- package/lib/components/checkbox/checkbox-one/lunatic-checkbox-one.js +2 -1
- package/lib/components/checkbox/commons/checkbox-option.js +3 -1
- package/lib/components/commons/components/combo-box/combo-box-container.js +1 -2
- package/lib/components/commons/components/combo-box/combo-box.js +2 -2
- package/lib/components/commons/components/combo-box/selection/LabelOrInput.js +3 -1
- package/lib/components/commons/components/combo-box/selection/input.js +3 -1
- package/lib/components/commons/components/combo-box/selection/selection.js +3 -1
- package/lib/components/commons/components/errors/errors.js +12 -10
- package/lib/components/commons/components/errors/errors.spec.js +6 -6
- package/lib/components/component-set/html/__snapshots__/component-set.spec.tsx.snap +2 -0
- package/lib/components/component-set/html/component-set.js +2 -2
- package/lib/components/datepicker/html/__snapshots__/datepicker.spec.tsx.snap +2 -0
- package/lib/components/datepicker/html/datepicker-input.js +4 -2
- package/lib/components/datepicker/html/datepicker.js +3 -3
- package/lib/components/datepicker/lunatic-datepicker.js +2 -1
- package/lib/components/dropdown/lunatic-dropdown.js +2 -1
- package/lib/components/input/html/__snapshots__/input.spec.tsx.snap +2 -0
- package/lib/components/input/html/input.js +3 -3
- package/lib/components/input/lunatic-input.js +2 -1
- package/lib/components/input-number/html/__snapshots__/input-number.spec.tsx.snap +2 -2
- package/lib/components/input-number/html/input-number-thousand.js +4 -17
- package/lib/components/input-number/html/input-number.js +3 -5
- package/lib/components/input-number/lunatic-input-number.js +2 -3
- package/lib/components/lunatic-components.js +2 -11
- package/lib/components/radio/html/radio-group-content.js +4 -2
- package/lib/components/radio/html/radio-group.js +3 -3
- package/lib/components/radio/html/radio-option.js +3 -1
- package/lib/components/radio/lunatic-radio-group.js +2 -1
- package/lib/components/suggester/find-best-label/find-best-label.js +6 -6
- package/lib/components/suggester/idb-suggester/idb-suggester.js +4 -3
- package/lib/components/suggester/lunatic-suggester.js +7 -4
- package/lib/components/suggester/searching/create-searching.js +20 -39
- package/lib/components/switch/html/switch.js +2 -2
- package/lib/components/switch/lunatic-switch.js +2 -1
- package/lib/components/table/lunatic-table.js +2 -2
- package/lib/components/textarea/html/__snapshots__/textarea.spec.tsx.snap +2 -0
- package/lib/components/textarea/html/textarea.js +6 -4
- package/lib/components/textarea/lunatic-textarea.js +6 -3
- package/lib/hooks/use-auto-focus.js +26 -0
- package/lib/src/components/checkbox/checkbox-boolean/html/checkbox-boolean.d.ts +1 -1
- package/lib/src/components/checkbox/checkbox-group/html/checkbox-group-content.d.ts +2 -1
- package/lib/src/components/checkbox/checkbox-group/html/checkbox-group.d.ts +1 -1
- package/lib/src/components/checkbox/commons/checkbox-option.d.ts +1 -0
- package/lib/src/components/commons/components/combo-box/combo-box-container.d.ts +2 -2
- package/lib/src/components/commons/components/combo-box/combo-box.d.ts +2 -2
- package/lib/src/components/commons/components/combo-box/combo-box.stories.d.ts +4 -6
- package/lib/src/components/commons/components/combo-box/selection/LabelOrInput.d.ts +1 -0
- package/lib/src/components/commons/components/combo-box/selection/input.d.ts +1 -0
- package/lib/src/components/commons/components/combo-box/selection/selection.d.ts +2 -1
- package/lib/src/components/commons/components/errors/errors.d.ts +6 -3
- package/lib/src/components/datepicker/html/datepicker-input.d.ts +2 -1
- package/lib/src/components/datepicker/html/datepicker.d.ts +1 -1
- package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +1 -1
- package/lib/src/components/dropdown/html/dropdown.d.ts +3 -1
- package/lib/src/components/input/html/input.d.ts +2 -2
- package/lib/src/components/input-number/html/input-number-thousand.d.ts +2 -2
- package/lib/src/components/input-number/html/input-number.d.ts +2 -3
- package/lib/src/components/radio/html/radio-group-content.d.ts +2 -1
- package/lib/src/components/radio/html/radio-group.d.ts +1 -1
- package/lib/src/components/radio/html/radio-option.d.ts +1 -0
- package/lib/src/components/suggester/find-best-label/find-best-label.d.ts +1 -1
- package/lib/src/components/suggester/html/suggester.d.ts +1 -1
- package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +5 -2
- package/lib/src/components/suggester/lunatic-suggester.d.ts +1 -1
- package/lib/src/components/suggester/searching/create-searching.d.ts +1 -1
- package/lib/src/components/switch/html/switch.d.ts +1 -1
- package/lib/src/components/textarea/html/textarea.d.ts +3 -2
- package/lib/src/components/type.d.ts +4 -3
- package/lib/src/hooks/use-auto-focus.d.ts +6 -0
- package/lib/src/use-lunatic/actions.d.ts +3 -0
- package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +418 -0
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +20 -0
- package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +1 -0
- package/lib/src/use-lunatic/type.d.ts +2 -1
- package/lib/src/use-lunatic/use-lunatic.d.ts +8 -5
- package/lib/src/use-lunatic/use-suggesters.d.ts +2 -1
- package/lib/src/utils/suggester-workers/append-to-index/create-append-task.d.ts +1 -1
- package/lib/src/utils/suggester-workers/worker-path.d.ts +6 -0
- package/lib/stories/behaviour/cleaning/source.json +151 -0
- package/lib/stories/behaviour/cleaning/test.stories.js +84 -0
- package/lib/stories/{questionnaires-test → behaviour}/controls/controls.stories.js +5 -5
- package/lib/stories/{questionnaires-test → behaviour/others}/test.stories.js +7 -7
- package/lib/stories/{paste-questionnaire → behaviour/paste}/test.stories.js +3 -3
- package/lib/stories/{resizing-questionnaire → behaviour/resizing}/test.stories.js +3 -3
- package/lib/use-lunatic/commons/fill-components/fill-component-required.js +23 -0
- package/lib/use-lunatic/commons/fill-components/fill-components.js +2 -1
- package/lib/use-lunatic/commons/fill-components/fill-from-state.js +2 -0
- package/lib/use-lunatic/initial-state.js +2 -1
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.js +7 -1
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-resizing.js +12 -3
- package/lib/use-lunatic/reducer/reduce-on-init.js +4 -2
- package/lib/use-lunatic/use-lunatic.js +19 -8
- package/lib/use-lunatic/use-lunatic.test.js +34 -2
- package/lib/use-lunatic/use-suggesters.js +4 -3
- package/lib/utils/suggester-workers/append-to-index/create-append-task.js +4 -3
- package/lib/utils/suggester-workers/worker-path.js +29 -0
- package/package.json +15 -10
- package/scripts/build/add-workers-to-public.js +44 -0
- package/scripts/build/workers-paths.js +44 -0
- package/workers-release/lunatic-append-worker-0.3.0-experimental.js +2 -0
- package/workers-release/lunatic-append-worker-0.3.0-experimental.js.LICENSE.txt +34 -0
- package/workers-release/lunatic-label-worker-0.3.0-experimental.js +2 -0
- package/workers-release/lunatic-label-worker-0.3.0-experimental.js.LICENSE.txt +13 -0
- package/workers-release/lunatic-searching-worker-0.3.0-experimental.js +2 -0
- package/workers-release/lunatic-searching-worker-0.3.0-experimental.js.LICENSE.txt +34 -0
- package/lib/src/utils/store-tools/worker-path.d.ts +0 -1
- package/lib/utils/store-tools/worker-path.js +0 -13
- package/lib/utils/suggester-workers/create-worker.js +0 -55
- /package/lib/stories/{questionnaires-test → behaviour}/controls/V2_ControlesNonNum_horsBoucle_PasPageFin.json +0 -0
- /package/lib/stories/{questionnaires-test → behaviour}/controls/V2_ControlesNum_horsBoucle_PasPageFin.json +0 -0
- /package/lib/stories/{questionnaires-test → behaviour}/controls/V2_Controles_BouclesLiees2_PasPageFin.json +0 -0
- /package/lib/stories/{questionnaires-test → behaviour}/controls/V2_Controles_BouclesLiees_PasPageFin.json +0 -0
- /package/lib/stories/{questionnaires-test → behaviour}/controls/boucles-n.json +0 -0
- /package/lib/stories/{questionnaires-test → behaviour}/controls/controls-externes.json +0 -0
- /package/lib/stories/{questionnaires-test → behaviour}/controls/controls-externes.stories.js +0 -0
- /package/lib/stories/{questionnaires-test → behaviour/others}/V2_DeclarationsSimples.json +0 -0
- /package/lib/stories/{questionnaires-test → behaviour/others}/V2_MinMaxSum_Boucles.json +0 -0
- /package/lib/stories/{questionnaires-test → behaviour/others}/V2_QuestSimple_Boucles.json +0 -0
- /package/lib/stories/{questionnaires-test → behaviour/others}/V2_TCMRallyeGames.json +0 -0
- /package/lib/stories/{questionnaires-test → behaviour/others}/test-dylan.json +0 -0
- /package/lib/stories/{paste-questionnaire → behaviour/paste}/source.json +0 -0
- /package/lib/stories/{resizing-questionnaire → behaviour/resizing}/source.json +0 -0
|
@@ -0,0 +1,418 @@
|
|
|
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" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
7
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSubSequenceType & {
|
|
8
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
9
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRosterForLoopType & {
|
|
10
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
11
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentLoopType & {
|
|
12
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
13
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentTableType & {
|
|
14
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
15
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentNumberType & {
|
|
16
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
17
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDatePickerType & {
|
|
18
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
19
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxGroupType & {
|
|
20
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
21
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentCheckboxBooleanType & {
|
|
22
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
23
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRadioType & {
|
|
24
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
25
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentFilterDescriptionType & {
|
|
26
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
27
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentDropdownType & {
|
|
28
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
29
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentPairWiseLinksType & {
|
|
30
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
31
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentRoundaboutType & {
|
|
32
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
33
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentSuggesterType & {
|
|
34
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
35
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentInputOrTextareaType & {
|
|
36
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
37
|
+
}) | (import("../../type-source").ComponentTypeBase & {
|
|
38
|
+
componentType: "CheckboxOne";
|
|
39
|
+
} & {
|
|
40
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
41
|
+
}) | (import("../../type-source").ComponentTypeBase & {
|
|
42
|
+
componentType: "ConfirmationModal";
|
|
43
|
+
} & {
|
|
44
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
45
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentComponentSetType & {
|
|
46
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
47
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentQuestionExplicationType & {
|
|
48
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
49
|
+
}) | {
|
|
50
|
+
required: boolean;
|
|
51
|
+
label: import("../../type-source").LabelType;
|
|
52
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
53
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
54
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
55
|
+
id: string;
|
|
56
|
+
bindingDependencies?: string[] | undefined;
|
|
57
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
58
|
+
mandatory?: boolean | undefined;
|
|
59
|
+
page: string;
|
|
60
|
+
componentType: "Sequence";
|
|
61
|
+
} | {
|
|
62
|
+
required: boolean;
|
|
63
|
+
label: import("../../type-source").LabelType;
|
|
64
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
65
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
66
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
67
|
+
id: string;
|
|
68
|
+
bindingDependencies?: string[] | undefined;
|
|
69
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
70
|
+
mandatory?: boolean | undefined;
|
|
71
|
+
page: string;
|
|
72
|
+
componentType: "Subsequence";
|
|
73
|
+
gotoPage: string;
|
|
74
|
+
} | {
|
|
75
|
+
required: boolean;
|
|
76
|
+
label: import("../../type-source").LabelType;
|
|
77
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
78
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
79
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
80
|
+
id: string;
|
|
81
|
+
bindingDependencies?: string[] | undefined;
|
|
82
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
83
|
+
mandatory?: boolean | undefined;
|
|
84
|
+
page: string;
|
|
85
|
+
componentType: "RosterForLoop";
|
|
86
|
+
components: import("../../type-source").ComponentType[];
|
|
87
|
+
lines: {
|
|
88
|
+
min: import("../../type-source").LabelType;
|
|
89
|
+
max: import("../../type-source").LabelType;
|
|
90
|
+
};
|
|
91
|
+
header: {
|
|
92
|
+
value: string;
|
|
93
|
+
label: string | import("../../type-source").LabelType;
|
|
94
|
+
options: {
|
|
95
|
+
value: string;
|
|
96
|
+
label: import("../../type-source").LabelType;
|
|
97
|
+
}[];
|
|
98
|
+
colspan?: number | undefined;
|
|
99
|
+
rowspan?: number | undefined;
|
|
100
|
+
}[];
|
|
101
|
+
body: {
|
|
102
|
+
label?: import("../../type-source").LabelType | undefined;
|
|
103
|
+
value?: string | undefined;
|
|
104
|
+
format?: string | undefined;
|
|
105
|
+
dateFormat?: string | undefined;
|
|
106
|
+
unit?: string | undefined;
|
|
107
|
+
options: {
|
|
108
|
+
value: string;
|
|
109
|
+
label: import("../../type-source").LabelType;
|
|
110
|
+
}[];
|
|
111
|
+
response: import("../../type-source").ResponseType;
|
|
112
|
+
bindingDependencies: string[];
|
|
113
|
+
componentType?: import("../../type-source").ComponentTypeEnum | undefined;
|
|
114
|
+
maxLength?: number | undefined;
|
|
115
|
+
min?: number | undefined;
|
|
116
|
+
max?: number | undefined;
|
|
117
|
+
decimals?: number | undefined;
|
|
118
|
+
colspan?: number | undefined;
|
|
119
|
+
rowspan?: number | undefined;
|
|
120
|
+
id?: string | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
positioning: "HORIZONTAL";
|
|
123
|
+
} | {
|
|
124
|
+
required: boolean;
|
|
125
|
+
label: import("../../type-source").LabelType;
|
|
126
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
127
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
128
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
129
|
+
id: string;
|
|
130
|
+
bindingDependencies?: string[] | undefined;
|
|
131
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
132
|
+
mandatory?: boolean | undefined;
|
|
133
|
+
page: string;
|
|
134
|
+
componentType: "Loop";
|
|
135
|
+
loopDependencies: string[];
|
|
136
|
+
lines: {
|
|
137
|
+
min: import("../../type-source").LabelType;
|
|
138
|
+
max: import("../../type-source").LabelType;
|
|
139
|
+
};
|
|
140
|
+
components: import("../../type-source").ComponentType[];
|
|
141
|
+
iterations: import("../../type-source").LabelType;
|
|
142
|
+
maxPage: string;
|
|
143
|
+
depth: number;
|
|
144
|
+
paginatedLoop: boolean;
|
|
145
|
+
} | {
|
|
146
|
+
required: boolean;
|
|
147
|
+
label: import("../../type-source").LabelType;
|
|
148
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
149
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
150
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
151
|
+
id: string;
|
|
152
|
+
bindingDependencies?: string[] | undefined;
|
|
153
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
154
|
+
mandatory?: boolean | undefined;
|
|
155
|
+
page: string;
|
|
156
|
+
componentType: "Table";
|
|
157
|
+
lines: {
|
|
158
|
+
min: import("../../type-source").LabelType;
|
|
159
|
+
max: import("../../type-source").LabelType;
|
|
160
|
+
};
|
|
161
|
+
header: {
|
|
162
|
+
value: string;
|
|
163
|
+
label: string | import("../../type-source").LabelType;
|
|
164
|
+
options: {
|
|
165
|
+
value: string;
|
|
166
|
+
label: import("../../type-source").LabelType;
|
|
167
|
+
}[];
|
|
168
|
+
colspan?: number | undefined;
|
|
169
|
+
rowspan?: number | undefined;
|
|
170
|
+
}[];
|
|
171
|
+
body: {
|
|
172
|
+
label?: import("../../type-source").LabelType | undefined;
|
|
173
|
+
value?: string | undefined;
|
|
174
|
+
format?: string | undefined;
|
|
175
|
+
dateFormat?: string | undefined;
|
|
176
|
+
unit?: string | undefined;
|
|
177
|
+
options: {
|
|
178
|
+
value: string;
|
|
179
|
+
label: import("../../type-source").LabelType;
|
|
180
|
+
}[];
|
|
181
|
+
response: import("../../type-source").ResponseType;
|
|
182
|
+
bindingDependencies: string[];
|
|
183
|
+
componentType?: import("../../type-source").ComponentTypeEnum | undefined;
|
|
184
|
+
maxLength?: number | undefined;
|
|
185
|
+
min?: number | undefined;
|
|
186
|
+
max?: number | undefined;
|
|
187
|
+
decimals?: number | undefined;
|
|
188
|
+
colspan?: number | undefined;
|
|
189
|
+
rowspan?: number | undefined;
|
|
190
|
+
id?: string | undefined;
|
|
191
|
+
}[];
|
|
192
|
+
positioning: "HORIZONTAL";
|
|
193
|
+
} | {
|
|
194
|
+
required: boolean;
|
|
195
|
+
label: import("../../type-source").LabelType;
|
|
196
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
197
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
198
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
199
|
+
id: string;
|
|
200
|
+
bindingDependencies?: string[] | undefined;
|
|
201
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
202
|
+
mandatory?: boolean | undefined;
|
|
203
|
+
page: string;
|
|
204
|
+
componentType: "InputNumber";
|
|
205
|
+
unit: string;
|
|
206
|
+
response: import("../../type-source").ResponseType;
|
|
207
|
+
min?: number | undefined;
|
|
208
|
+
max?: number | undefined;
|
|
209
|
+
decimals?: number | undefined;
|
|
210
|
+
} | {
|
|
211
|
+
required: boolean;
|
|
212
|
+
label: import("../../type-source").LabelType;
|
|
213
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
214
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
215
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
216
|
+
id: string;
|
|
217
|
+
bindingDependencies?: string[] | undefined;
|
|
218
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
219
|
+
mandatory?: boolean | undefined;
|
|
220
|
+
page: string;
|
|
221
|
+
componentType: "Datepicker";
|
|
222
|
+
dateFormat: string;
|
|
223
|
+
response: import("../../type-source").ResponseType;
|
|
224
|
+
min?: string | undefined;
|
|
225
|
+
max?: string | undefined;
|
|
226
|
+
} | {
|
|
227
|
+
required: boolean;
|
|
228
|
+
label: import("../../type-source").LabelType;
|
|
229
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
230
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
231
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
232
|
+
id: string;
|
|
233
|
+
bindingDependencies?: string[] | undefined;
|
|
234
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
235
|
+
mandatory?: boolean | undefined;
|
|
236
|
+
page: string;
|
|
237
|
+
componentType: "CheckboxGroup";
|
|
238
|
+
responses: {
|
|
239
|
+
label: import("../../type-source").LabelType;
|
|
240
|
+
response: import("../../type-source").ResponseType;
|
|
241
|
+
id: string;
|
|
242
|
+
}[];
|
|
243
|
+
} | {
|
|
244
|
+
required: boolean;
|
|
245
|
+
label: import("../../type-source").LabelType;
|
|
246
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
247
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
248
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
249
|
+
id: string;
|
|
250
|
+
bindingDependencies?: string[] | undefined;
|
|
251
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
252
|
+
mandatory?: boolean | undefined;
|
|
253
|
+
page: string;
|
|
254
|
+
componentType: "CheckboxBoolean";
|
|
255
|
+
response: import("../../type-source").ResponseType;
|
|
256
|
+
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
257
|
+
} | {
|
|
258
|
+
required: boolean;
|
|
259
|
+
label: import("../../type-source").LabelType;
|
|
260
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
261
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
262
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
263
|
+
id: string;
|
|
264
|
+
bindingDependencies?: string[] | undefined;
|
|
265
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
266
|
+
mandatory?: boolean | undefined;
|
|
267
|
+
page: string;
|
|
268
|
+
componentType: "Radio";
|
|
269
|
+
options: {
|
|
270
|
+
value: string;
|
|
271
|
+
label: import("../../type-source").LabelType;
|
|
272
|
+
}[];
|
|
273
|
+
response: import("../../type-source").ResponseType;
|
|
274
|
+
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
275
|
+
} | {
|
|
276
|
+
required: boolean;
|
|
277
|
+
label: import("../../type-source").LabelType;
|
|
278
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
279
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
280
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
281
|
+
id: string;
|
|
282
|
+
bindingDependencies?: string[] | undefined;
|
|
283
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
284
|
+
mandatory?: boolean | undefined;
|
|
285
|
+
page: string;
|
|
286
|
+
componentType: "FilterDescription";
|
|
287
|
+
filterDescription: boolean;
|
|
288
|
+
} | {
|
|
289
|
+
required: boolean;
|
|
290
|
+
label: import("../../type-source").LabelType;
|
|
291
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
292
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
293
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
294
|
+
id: string;
|
|
295
|
+
bindingDependencies?: string[] | undefined;
|
|
296
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
297
|
+
mandatory?: boolean | undefined;
|
|
298
|
+
page: string;
|
|
299
|
+
componentType: "Dropdown";
|
|
300
|
+
options: {
|
|
301
|
+
value: string;
|
|
302
|
+
label: import("../../type-source").LabelType;
|
|
303
|
+
}[];
|
|
304
|
+
response: import("../../type-source").ResponseType;
|
|
305
|
+
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
306
|
+
} | {
|
|
307
|
+
required: boolean;
|
|
308
|
+
label: import("../../type-source").LabelType;
|
|
309
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
310
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
311
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
312
|
+
id: string;
|
|
313
|
+
bindingDependencies?: string[] | undefined;
|
|
314
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
315
|
+
mandatory?: boolean | undefined;
|
|
316
|
+
page: string;
|
|
317
|
+
componentType: "PairwiseLinks";
|
|
318
|
+
xAxisIterations: import("../../type-source").LabelType;
|
|
319
|
+
yAxisIterations: import("../../type-source").LabelType;
|
|
320
|
+
symLinks: {
|
|
321
|
+
[variableName: string]: Record<string, string>;
|
|
322
|
+
};
|
|
323
|
+
} | {
|
|
324
|
+
required: boolean;
|
|
325
|
+
label: import("../../type-source").LabelType;
|
|
326
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
327
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
328
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
329
|
+
id: string;
|
|
330
|
+
bindingDependencies?: string[] | undefined;
|
|
331
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
332
|
+
mandatory?: boolean | undefined;
|
|
333
|
+
page: string;
|
|
334
|
+
componentType: "Roundabout";
|
|
335
|
+
components: import("../../type-source").ComponentType[];
|
|
336
|
+
iterations: import("../../type-source").LabelType;
|
|
337
|
+
locked: boolean;
|
|
338
|
+
expressions: Record<string, import("../../type-source").LabelType>;
|
|
339
|
+
} | {
|
|
340
|
+
required: boolean;
|
|
341
|
+
label: import("../../type-source").LabelType;
|
|
342
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
343
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
344
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
345
|
+
id: string;
|
|
346
|
+
bindingDependencies?: string[] | undefined;
|
|
347
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
348
|
+
mandatory?: boolean | undefined;
|
|
349
|
+
page: string;
|
|
350
|
+
componentType: "Suggester";
|
|
351
|
+
storeName: string;
|
|
352
|
+
} | {
|
|
353
|
+
required: boolean;
|
|
354
|
+
label: import("../../type-source").LabelType;
|
|
355
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
356
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
357
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
358
|
+
id: string;
|
|
359
|
+
bindingDependencies?: string[] | undefined;
|
|
360
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
361
|
+
mandatory?: boolean | undefined;
|
|
362
|
+
page: string;
|
|
363
|
+
componentType: "Input" | "Textarea";
|
|
364
|
+
maxLength: number;
|
|
365
|
+
missingResponse?: import("../../type-source").ResponseType | undefined;
|
|
366
|
+
response: import("../../type-source").ResponseType;
|
|
367
|
+
} | {
|
|
368
|
+
required: boolean;
|
|
369
|
+
label: import("../../type-source").LabelType;
|
|
370
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
371
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
372
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
373
|
+
id: string;
|
|
374
|
+
bindingDependencies?: string[] | undefined;
|
|
375
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
376
|
+
mandatory?: boolean | undefined;
|
|
377
|
+
page: string;
|
|
378
|
+
componentType: "CheckboxOne";
|
|
379
|
+
} | {
|
|
380
|
+
required: boolean;
|
|
381
|
+
label: import("../../type-source").LabelType;
|
|
382
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
383
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
384
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
385
|
+
id: string;
|
|
386
|
+
bindingDependencies?: string[] | undefined;
|
|
387
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
388
|
+
mandatory?: boolean | undefined;
|
|
389
|
+
page: string;
|
|
390
|
+
componentType: "ConfirmationModal";
|
|
391
|
+
} | {
|
|
392
|
+
required: boolean;
|
|
393
|
+
label: import("../../type-source").LabelType;
|
|
394
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
395
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
396
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
397
|
+
id: string;
|
|
398
|
+
bindingDependencies?: string[] | undefined;
|
|
399
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
400
|
+
mandatory?: boolean | undefined;
|
|
401
|
+
page: string;
|
|
402
|
+
componentType: "ComponentSet";
|
|
403
|
+
components: import("../../type-source").ComponentType[];
|
|
404
|
+
} | {
|
|
405
|
+
required: boolean;
|
|
406
|
+
label: import("../../type-source").LabelType;
|
|
407
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
408
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
409
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
410
|
+
id: string;
|
|
411
|
+
bindingDependencies?: string[] | undefined;
|
|
412
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
413
|
+
mandatory?: boolean | undefined;
|
|
414
|
+
page: string;
|
|
415
|
+
componentType: "QuestionExplication";
|
|
416
|
+
description: string;
|
|
417
|
+
bgColor?: string | undefined;
|
|
418
|
+
};
|
|
@@ -33,6 +33,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
33
33
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
34
34
|
timestamp: number;
|
|
35
35
|
};
|
|
36
|
+
workersBasePath: string | undefined;
|
|
36
37
|
goNextPage: () => void;
|
|
37
38
|
goPreviousPage: () => void;
|
|
38
39
|
label: import("../../type-source").LabelType;
|
|
@@ -67,6 +68,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
67
68
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
68
69
|
timestamp: number;
|
|
69
70
|
};
|
|
71
|
+
workersBasePath: string | undefined;
|
|
70
72
|
goNextPage: () => void;
|
|
71
73
|
goPreviousPage: () => void;
|
|
72
74
|
label: import("../../type-source").LabelType;
|
|
@@ -102,6 +104,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
102
104
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
103
105
|
timestamp: number;
|
|
104
106
|
};
|
|
107
|
+
workersBasePath: string | undefined;
|
|
105
108
|
goNextPage: () => void;
|
|
106
109
|
goPreviousPage: () => void;
|
|
107
110
|
label: import("../../type-source").LabelType;
|
|
@@ -173,6 +176,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
173
176
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
174
177
|
timestamp: number;
|
|
175
178
|
};
|
|
179
|
+
workersBasePath: string | undefined;
|
|
176
180
|
goNextPage: () => void;
|
|
177
181
|
goPreviousPage: () => void;
|
|
178
182
|
label: import("../../type-source").LabelType;
|
|
@@ -217,6 +221,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
217
221
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
218
222
|
timestamp: number;
|
|
219
223
|
};
|
|
224
|
+
workersBasePath: string | undefined;
|
|
220
225
|
goNextPage: () => void;
|
|
221
226
|
goPreviousPage: () => void;
|
|
222
227
|
label: import("../../type-source").LabelType;
|
|
@@ -287,6 +292,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
287
292
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
288
293
|
timestamp: number;
|
|
289
294
|
};
|
|
295
|
+
workersBasePath: string | undefined;
|
|
290
296
|
goNextPage: () => void;
|
|
291
297
|
goPreviousPage: () => void;
|
|
292
298
|
label: import("../../type-source").LabelType;
|
|
@@ -326,6 +332,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
326
332
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
327
333
|
timestamp: number;
|
|
328
334
|
};
|
|
335
|
+
workersBasePath: string | undefined;
|
|
329
336
|
goNextPage: () => void;
|
|
330
337
|
goPreviousPage: () => void;
|
|
331
338
|
label: import("../../type-source").LabelType;
|
|
@@ -364,6 +371,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
364
371
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
365
372
|
timestamp: number;
|
|
366
373
|
};
|
|
374
|
+
workersBasePath: string | undefined;
|
|
367
375
|
goNextPage: () => void;
|
|
368
376
|
goPreviousPage: () => void;
|
|
369
377
|
label: import("../../type-source").LabelType;
|
|
@@ -403,6 +411,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
403
411
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
404
412
|
timestamp: number;
|
|
405
413
|
};
|
|
414
|
+
workersBasePath: string | undefined;
|
|
406
415
|
goNextPage: () => void;
|
|
407
416
|
goPreviousPage: () => void;
|
|
408
417
|
label: import("../../type-source").LabelType;
|
|
@@ -439,6 +448,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
439
448
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
440
449
|
timestamp: number;
|
|
441
450
|
};
|
|
451
|
+
workersBasePath: string | undefined;
|
|
442
452
|
goNextPage: () => void;
|
|
443
453
|
goPreviousPage: () => void;
|
|
444
454
|
label: import("../../type-source").LabelType;
|
|
@@ -479,6 +489,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
479
489
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
480
490
|
timestamp: number;
|
|
481
491
|
};
|
|
492
|
+
workersBasePath: string | undefined;
|
|
482
493
|
goNextPage: () => void;
|
|
483
494
|
goPreviousPage: () => void;
|
|
484
495
|
label: import("../../type-source").LabelType;
|
|
@@ -514,6 +525,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
514
525
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
515
526
|
timestamp: number;
|
|
516
527
|
};
|
|
528
|
+
workersBasePath: string | undefined;
|
|
517
529
|
goNextPage: () => void;
|
|
518
530
|
goPreviousPage: () => void;
|
|
519
531
|
label: import("../../type-source").LabelType;
|
|
@@ -554,6 +566,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
554
566
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
555
567
|
timestamp: number;
|
|
556
568
|
};
|
|
569
|
+
workersBasePath: string | undefined;
|
|
557
570
|
goNextPage: () => void;
|
|
558
571
|
goPreviousPage: () => void;
|
|
559
572
|
label: import("../../type-source").LabelType;
|
|
@@ -593,6 +606,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
593
606
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
594
607
|
timestamp: number;
|
|
595
608
|
};
|
|
609
|
+
workersBasePath: string | undefined;
|
|
596
610
|
goNextPage: () => void;
|
|
597
611
|
goPreviousPage: () => void;
|
|
598
612
|
label: import("../../type-source").LabelType;
|
|
@@ -631,6 +645,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
631
645
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
632
646
|
timestamp: number;
|
|
633
647
|
};
|
|
648
|
+
workersBasePath: string | undefined;
|
|
634
649
|
goNextPage: () => void;
|
|
635
650
|
goPreviousPage: () => void;
|
|
636
651
|
label: import("../../type-source").LabelType;
|
|
@@ -666,6 +681,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
666
681
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
667
682
|
timestamp: number;
|
|
668
683
|
};
|
|
684
|
+
workersBasePath: string | undefined;
|
|
669
685
|
goNextPage: () => void;
|
|
670
686
|
goPreviousPage: () => void;
|
|
671
687
|
label: import("../../type-source").LabelType;
|
|
@@ -703,6 +719,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
703
719
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
704
720
|
timestamp: number;
|
|
705
721
|
};
|
|
722
|
+
workersBasePath: string | undefined;
|
|
706
723
|
goNextPage: () => void;
|
|
707
724
|
goPreviousPage: () => void;
|
|
708
725
|
label: import("../../type-source").LabelType;
|
|
@@ -737,6 +754,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
737
754
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
738
755
|
timestamp: number;
|
|
739
756
|
};
|
|
757
|
+
workersBasePath: string | undefined;
|
|
740
758
|
goNextPage: () => void;
|
|
741
759
|
goPreviousPage: () => void;
|
|
742
760
|
label: import("../../type-source").LabelType;
|
|
@@ -771,6 +789,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
771
789
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
772
790
|
timestamp: number;
|
|
773
791
|
};
|
|
792
|
+
workersBasePath: string | undefined;
|
|
774
793
|
goNextPage: () => void;
|
|
775
794
|
goPreviousPage: () => void;
|
|
776
795
|
label: import("../../type-source").LabelType;
|
|
@@ -806,6 +825,7 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
806
825
|
status: import("../../use-suggesters").SuggesterStatus;
|
|
807
826
|
timestamp: number;
|
|
808
827
|
};
|
|
828
|
+
workersBasePath: string | undefined;
|
|
809
829
|
goNextPage: () => void;
|
|
810
830
|
goPreviousPage: () => void;
|
|
811
831
|
label: import("../../type-source").LabelType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ComponentType, ControlType, LunaticSource, Variable } from './type-source';
|
|
3
2
|
import { type ExpressionLogger } from './commons/execute-expression/create-execute-expression';
|
|
3
|
+
import type { ComponentType, ControlType, LunaticSource, Variable } from './type-source';
|
|
4
4
|
import { SuggesterStatus } from './use-suggesters';
|
|
5
5
|
export type LunaticComponentDefinition<T extends ComponentType['componentType'] = ComponentType['componentType']> = ComponentType & {
|
|
6
6
|
componentType: T;
|
|
@@ -142,4 +142,5 @@ export type LunaticState = {
|
|
|
142
142
|
status: SuggesterStatus;
|
|
143
143
|
timestamp: number;
|
|
144
144
|
};
|
|
145
|
+
workersBasePath?: string;
|
|
145
146
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type FunctionComponent } from 'react';
|
|
2
2
|
import type { LunaticState } from './type';
|
|
3
|
-
import type { LunaticSource } from './type-source';
|
|
4
3
|
import type { LunaticComponentType } from '../components/type';
|
|
5
|
-
|
|
4
|
+
import type { LunaticSource } from './type-source';
|
|
5
|
+
declare function useLunatic(source: LunaticSource, data: Partial<Record<"CALCULATED" | "EXTERNAL", Record<string, unknown>> & {
|
|
6
6
|
COLLECTED: Record<string, import("./type").LunaticCollectedValue>;
|
|
7
|
-
}> | undefined, { features, preferences, savingType, onChange, management, shortcut, initialPage, lastReachedPage, autoSuggesterLoading, activeControls, getReferentiel, custom, withOverview, missing, missingStrategy, missingShortcut, dontKnowButton, refusedButton, }: {
|
|
7
|
+
}> | undefined, { features, preferences, savingType, onChange, management, shortcut, initialPage, lastReachedPage, autoSuggesterLoading, activeControls, getReferentiel, custom, withOverview, missing, missingStrategy, missingShortcut, dontKnowButton, refusedButton, workersBasePath, }: {
|
|
8
8
|
features?: LunaticState['features'];
|
|
9
9
|
preferences?: LunaticState['preferences'];
|
|
10
10
|
savingType?: LunaticState['savingType'];
|
|
@@ -26,11 +26,12 @@ declare function useLunatic(source: LunaticSource, data: Partial<Record<"EXTERNA
|
|
|
26
26
|
};
|
|
27
27
|
dontKnowButton?: string;
|
|
28
28
|
refusedButton?: string;
|
|
29
|
+
workersBasePath?: string;
|
|
29
30
|
}): {
|
|
30
31
|
getComponents: ({ only, except, }?: {
|
|
31
32
|
only?: (keyof {
|
|
32
33
|
InputNumber: import("../components/type").LunaticBaseProps<number | null> & {
|
|
33
|
-
min
|
|
34
|
+
min?: number | undefined;
|
|
34
35
|
max: number;
|
|
35
36
|
decimals: number;
|
|
36
37
|
unit?: string | undefined;
|
|
@@ -232,6 +233,7 @@ declare function useLunatic(source: LunaticSource, data: Partial<Record<"EXTERNA
|
|
|
232
233
|
};
|
|
233
234
|
Suggester: import("../components/type").LunaticBaseProps<string | null> & {
|
|
234
235
|
storeName: string;
|
|
236
|
+
workersBasePath?: string | undefined;
|
|
235
237
|
getSuggesterStatus: (name: string) => {
|
|
236
238
|
status: import("./use-suggesters").SuggesterStatus;
|
|
237
239
|
timestamp: number;
|
|
@@ -278,7 +280,7 @@ declare function useLunatic(source: LunaticSource, data: Partial<Record<"EXTERNA
|
|
|
278
280
|
})[] | undefined;
|
|
279
281
|
except?: (keyof {
|
|
280
282
|
InputNumber: import("../components/type").LunaticBaseProps<number | null> & {
|
|
281
|
-
min
|
|
283
|
+
min?: number | undefined;
|
|
282
284
|
max: number;
|
|
283
285
|
decimals: number;
|
|
284
286
|
unit?: string | undefined;
|
|
@@ -480,6 +482,7 @@ declare function useLunatic(source: LunaticSource, data: Partial<Record<"EXTERNA
|
|
|
480
482
|
};
|
|
481
483
|
Suggester: import("../components/type").LunaticBaseProps<string | null> & {
|
|
482
484
|
storeName: string;
|
|
485
|
+
workersBasePath?: string | undefined;
|
|
483
486
|
getSuggesterStatus: (name: string) => {
|
|
484
487
|
status: import("./use-suggesters").SuggesterStatus;
|
|
485
488
|
timestamp: number;
|