@inseefr/lunatic 2.6.2-rc.1 → 2.6.3-rc.1
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/index.js +4 -4
- package/lib/components/loop/block-for-loop.js +6 -10
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +27 -35
- package/lib/components/lunatic-components.js +16 -5
- package/lib/components/pairwise-links/pairwise-links.js +27 -30
- package/lib/components/table/lunatic-table.js +22 -13
- package/lib/components/table/{header.js → table-header.js} +3 -5
- package/lib/hooks/use-track-changes.js +50 -0
- package/lib/src/components/index.d.ts +2 -2
- package/lib/src/components/loop/block-for-loop.d.ts +3 -4
- package/lib/src/components/loop/roster-for-loop/roster-for-loop.d.ts +3 -4
- package/lib/src/components/lunatic-components.d.ts +5 -3
- package/lib/src/components/pairwise-links/pairwise-links.d.ts +1 -2
- package/lib/src/components/table/lunatic-table.d.ts +1 -1
- package/lib/src/components/table/{header.d.ts → table-header.d.ts} +2 -2
- package/lib/src/components/type.d.ts +5 -6
- package/lib/src/hooks/use-track-changes.d.ts +9 -0
- package/lib/src/use-lunatic/actions.d.ts +3 -16
- package/lib/src/use-lunatic/commons/compile-controls.d.ts +3 -2
- package/lib/src/use-lunatic/commons/component.d.ts +22 -0
- package/lib/src/use-lunatic/commons/fill-components/fill-component-value.d.ts +2 -3
- package/lib/src/use-lunatic/commons/fill-components/fill-components.d.ts +6 -0
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +107 -122
- package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +112 -0
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +53 -89
- package/lib/src/use-lunatic/commons/get-compatible-vtl-expression.d.ts +1 -0
- package/lib/src/use-lunatic/commons/index.d.ts +0 -3
- package/lib/src/use-lunatic/commons/variables/behaviours/cleaning-behaviour.d.ts +7 -0
- package/lib/src/use-lunatic/commons/variables/behaviours/missing-behaviour.d.ts +7 -0
- package/lib/src/use-lunatic/commons/variables/behaviours/resizing-behaviour.d.ts +7 -0
- package/lib/src/use-lunatic/commons/variables/get-questionnaire-data.d.ts +4 -0
- package/lib/src/use-lunatic/commons/variables/lunatic-variables-store.d.ts +77 -0
- package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +10 -8
- package/lib/src/use-lunatic/reducer/reduce-handle-change.d.ts +6 -0
- package/lib/src/use-lunatic/reducer/reduce-on-init.d.ts +1 -12
- package/lib/src/use-lunatic/type-source.d.ts +7 -21
- package/lib/src/use-lunatic/type.d.ts +13 -11
- package/lib/src/use-lunatic/use-lunatic.d.ts +33 -56
- package/lib/src/utils/array.d.ts +6 -1
- package/lib/src/utils/env.d.ts +1 -0
- package/lib/src/utils/number.d.ts +4 -0
- package/lib/src/utils/variables.d.ts +5 -0
- package/lib/src/utils/vtl.d.ts +14 -0
- package/lib/use-lunatic/actions.js +3 -3
- package/lib/use-lunatic/commons/compile-controls.js +3 -5
- package/lib/use-lunatic/commons/component.js +22 -0
- package/lib/use-lunatic/commons/execute-condition-filter.js +1 -9
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +2 -3
- package/lib/use-lunatic/commons/fill-components/fill-component-value.js +21 -7
- package/lib/use-lunatic/commons/fill-components/fill-components.js +5 -3
- package/lib/use-lunatic/commons/{execute-expression/get-safety-expression.js → fill-components/fill-iterations.js} +30 -20
- package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +6 -13
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +58 -5
- package/lib/use-lunatic/commons/get-compatible-vtl-expression.js +1 -0
- package/lib/use-lunatic/commons/index.js +0 -21
- package/lib/use-lunatic/commons/variables/behaviours/cleaning-behaviour.js +39 -0
- package/lib/use-lunatic/commons/variables/behaviours/missing-behaviour.js +47 -0
- package/lib/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +78 -0
- package/lib/use-lunatic/{reducer/reduce-handle-change/reduce-variables-array.js → commons/variables/get-questionnaire-data.js} +53 -32
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +330 -0
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.spec.js +216 -0
- package/lib/use-lunatic/initial-state.js +5 -2
- package/lib/use-lunatic/reducer/overview/overview-on-change.js +1 -1
- package/lib/use-lunatic/reducer/{reduce-handle-change/reduce-variables-simple.js → reduce-handle-change.js} +15 -14
- package/lib/use-lunatic/reducer/reduce-on-init.js +89 -181
- package/lib/use-lunatic/reducer/reducer.js +2 -2
- package/lib/use-lunatic/reducer/resolve-component-controls/resolve-simple-control.js +2 -4
- package/lib/use-lunatic/use-lunatic.js +18 -14
- package/lib/use-lunatic/use-lunatic.test.js +131 -2
- package/lib/utils/array.js +57 -6
- package/lib/utils/array.spec.js +30 -0
- package/lib/utils/env.js +10 -0
- package/lib/utils/get-component-value.js +3 -9
- package/lib/utils/number.js +13 -1
- package/lib/utils/variables.js +37 -0
- package/lib/utils/vtl.js +100 -0
- package/package.json +1 -1
- package/lib/components/loop/utils/get-initial-nb-rows.js +0 -17
- package/lib/components/pairwise-links/index.js +0 -13
- package/lib/components/pairwise-links/orchestrator.js +0 -71
- package/lib/components/pairwise-links/row.js +0 -74
- package/lib/components/table/cell.js +0 -89
- package/lib/components/table/index.js +0 -13
- package/lib/components/table/row.js +0 -40
- package/lib/components/table/table-orchestrator.js +0 -35
- package/lib/src/components/loop/utils/get-initial-nb-rows.d.ts +0 -4
- package/lib/src/components/pairwise-links/index.d.ts +0 -1
- package/lib/src/components/pairwise-links/orchestrator.d.ts +0 -6
- package/lib/src/components/pairwise-links/row.d.ts +0 -7
- package/lib/src/components/table/cell.d.ts +0 -19
- package/lib/src/components/table/index.d.ts +0 -1
- package/lib/src/components/table/row.d.ts +0 -18
- package/lib/src/components/table/table-orchestrator.d.ts +0 -4
- package/lib/src/use-lunatic/commons/calculated-variables.d.ts +0 -8
- package/lib/src/use-lunatic/commons/execute-expression/create-execute-expression.d.ts +0 -9
- package/lib/src/use-lunatic/commons/execute-expression/create-memoizer.d.ts +0 -8
- package/lib/src/use-lunatic/commons/execute-expression/create-refresh-calculated.d.ts +0 -24
- package/lib/src/use-lunatic/commons/execute-expression/execute-expression.d.ts +0 -11
- package/lib/src/use-lunatic/commons/execute-expression/get-expressions-variables.d.ts +0 -7
- package/lib/src/use-lunatic/commons/execute-expression/get-expressions-variables.spec.d.ts +0 -1
- package/lib/src/use-lunatic/commons/execute-expression/get-safety-expression.d.ts +0 -6
- package/lib/src/use-lunatic/commons/execute-expression/index.d.ts +0 -1
- package/lib/src/use-lunatic/commons/get-component-value/get-component-value.d.ts +0 -6
- package/lib/src/use-lunatic/commons/get-component-value/index.d.ts +0 -1
- package/lib/src/use-lunatic/commons/get-data.d.ts +0 -26
- package/lib/src/use-lunatic/reducer/reduce-handle-change/index.d.ts +0 -1
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.d.ts +0 -7
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.spec.d.ts +0 -1
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.d.ts +0 -4
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.d.ts +0 -15
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-missing.d.ts +0 -7
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-resizing.d.ts +0 -4
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-array.d.ts +0 -14
- package/lib/src/use-lunatic/reducer/reduce-handle-change/reduce-variables-simple.d.ts +0 -9
- package/lib/src/use-lunatic/reducer/reduce-on-init.spec.d.ts +0 -1
- package/lib/src/utils/vtl/dataset-builder.d.ts +0 -5
- package/lib/src/utils/vtl/index.d.ts +0 -1
- package/lib/use-lunatic/commons/calculated-variables.js +0 -104
- package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +0 -233
- package/lib/use-lunatic/commons/execute-expression/create-execute-expression.spec.js +0 -155
- package/lib/use-lunatic/commons/execute-expression/create-memoizer.js +0 -63
- package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.js +0 -149
- package/lib/use-lunatic/commons/execute-expression/create-refresh-calculated.spec.js +0 -130
- package/lib/use-lunatic/commons/execute-expression/execute-expression.js +0 -90
- package/lib/use-lunatic/commons/execute-expression/execute-expression.spec.js +0 -38
- package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.js +0 -40
- package/lib/use-lunatic/commons/execute-expression/get-expressions-variables.spec.js +0 -31
- package/lib/use-lunatic/commons/execute-expression/index.js +0 -13
- package/lib/use-lunatic/commons/get-component-value/get-component-value.js +0 -174
- package/lib/use-lunatic/commons/get-component-value/index.js +0 -13
- package/lib/use-lunatic/commons/get-data.js +0 -80
- package/lib/use-lunatic/reducer/reduce-handle-change/__mocks__/source-cleaning-loop.json +0 -792
- package/lib/use-lunatic/reducer/reduce-handle-change/index.js +0 -13
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.js +0 -72
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-cleaning.spec.js +0 -46
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-handle-change.js +0 -115
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-links-variable.js +0 -89
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-missing.js +0 -88
- package/lib/use-lunatic/reducer/reduce-handle-change/reduce-resizing.js +0 -110
- package/lib/use-lunatic/reducer/reduce-on-init.spec.js +0 -17
- package/lib/utils/vtl/dataset-builder.js +0 -27
- package/lib/utils/vtl/index.js +0 -13
- /package/lib/src/use-lunatic/commons/{execute-expression/create-refresh-calculated.spec.d.ts → variables/lunatic-variables-store.spec.d.ts} +0 -0
- /package/lib/src/{use-lunatic/commons/execute-expression/execute-expression.spec.d.ts → utils/array.spec.d.ts} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { LunaticComponentDefinition } from '../type';
|
|
3
|
+
export declare function hasResponse(component: unknown): component is {
|
|
4
|
+
response: {
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare function hasResponses(component: unknown): component is {
|
|
9
|
+
responses?: Array<{
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
description?: ReactNode;
|
|
12
|
+
response: {
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
export declare function hasBody(component: unknown): component is {
|
|
18
|
+
body: LunaticComponentDefinition<'Table'>['body'];
|
|
19
|
+
};
|
|
20
|
+
export declare function hasComponentType(component: unknown): component is {
|
|
21
|
+
componentType: string;
|
|
22
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { LunaticComponentDefinition, LunaticState } from '../../type';
|
|
2
2
|
export type FilledProps = {
|
|
3
|
-
value
|
|
3
|
+
value?: unknown;
|
|
4
4
|
};
|
|
5
|
-
declare function fillComponentValue(component: LunaticComponentDefinition, state: LunaticState): LunaticComponentDefinition & FilledProps;
|
|
6
|
-
export default fillComponentValue;
|
|
5
|
+
export declare function fillComponentValue(component: LunaticComponentDefinition, state: LunaticState): LunaticComponentDefinition & FilledProps;
|
|
@@ -10,6 +10,12 @@ export type FilledLunaticComponentProps<T = LunaticComponentDefinition['componen
|
|
|
10
10
|
}> & FilledManagementProps & FilledValueProps & FilledMissingResponseProps & FilledHandlersProps & FilledPaginationProps & {
|
|
11
11
|
conditionFilter?: boolean;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Fill component with elements from the state
|
|
15
|
+
*
|
|
16
|
+
* Force typing for this function since it's doo dynamic
|
|
17
|
+
*/
|
|
18
|
+
export declare const fillComponent: (component: LunaticComponentDefinition, state: LunaticState) => FilledLunaticComponentProps;
|
|
13
19
|
/**
|
|
14
20
|
* Fill components with values coming from the state, and interpret VTL expression
|
|
15
21
|
*/
|
|
@@ -14,12 +14,13 @@ export type FilledProps = {
|
|
|
14
14
|
declare function fillFromState(component: LunaticComponentDefinition, state: LunaticState): {
|
|
15
15
|
handleChange: (response: {
|
|
16
16
|
name: string;
|
|
17
|
-
}, value: any, args?:
|
|
17
|
+
}, value: any, args?: {
|
|
18
|
+
iteration?: number[] | undefined;
|
|
19
|
+
} | undefined) => void;
|
|
18
20
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
19
|
-
iteration?: number | undefined;
|
|
20
|
-
linksIterations?: number[] | undefined;
|
|
21
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
21
|
+
iteration?: number | number[] | undefined;
|
|
22
22
|
bindingDependencies?: string[] | undefined;
|
|
23
|
+
deps?: string[] | undefined;
|
|
23
24
|
} | undefined) => T;
|
|
24
25
|
preferences: ["COLLECTED"];
|
|
25
26
|
goToPage: (page: {
|
|
@@ -48,12 +49,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
48
49
|
} | {
|
|
49
50
|
handleChange: (response: {
|
|
50
51
|
name: string;
|
|
51
|
-
}, value: any, args?:
|
|
52
|
+
}, value: any, args?: {
|
|
53
|
+
iteration?: number[] | undefined;
|
|
54
|
+
} | undefined) => void;
|
|
52
55
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
53
|
-
iteration?: number | undefined;
|
|
54
|
-
linksIterations?: number[] | undefined;
|
|
55
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
56
|
+
iteration?: number | number[] | undefined;
|
|
56
57
|
bindingDependencies?: string[] | undefined;
|
|
58
|
+
deps?: string[] | undefined;
|
|
57
59
|
} | undefined) => T;
|
|
58
60
|
preferences: ["COLLECTED"];
|
|
59
61
|
goToPage: (page: {
|
|
@@ -83,12 +85,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
83
85
|
} | {
|
|
84
86
|
handleChange: (response: {
|
|
85
87
|
name: string;
|
|
86
|
-
}, value: any, args?:
|
|
88
|
+
}, value: any, args?: {
|
|
89
|
+
iteration?: number[] | undefined;
|
|
90
|
+
} | undefined) => void;
|
|
87
91
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
88
|
-
iteration?: number | undefined;
|
|
89
|
-
linksIterations?: number[] | undefined;
|
|
90
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
92
|
+
iteration?: number | number[] | undefined;
|
|
91
93
|
bindingDependencies?: string[] | undefined;
|
|
94
|
+
deps?: string[] | undefined;
|
|
92
95
|
} | undefined) => T;
|
|
93
96
|
preferences: ["COLLECTED"];
|
|
94
97
|
goToPage: (page: {
|
|
@@ -129,37 +132,20 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
129
132
|
colspan?: number | undefined;
|
|
130
133
|
rowspan?: number | undefined;
|
|
131
134
|
}[];
|
|
132
|
-
body: {
|
|
133
|
-
label
|
|
134
|
-
|
|
135
|
-
format?: string | undefined;
|
|
136
|
-
dateFormat?: string | undefined;
|
|
137
|
-
unit?: string | undefined;
|
|
138
|
-
options: {
|
|
139
|
-
value: string;
|
|
140
|
-
label: import("../../type-source").LabelType;
|
|
141
|
-
}[];
|
|
142
|
-
response: import("../../type-source").ResponseType;
|
|
143
|
-
bindingDependencies: string[];
|
|
144
|
-
componentType?: import("../../type-source").ComponentTypeEnum | undefined;
|
|
145
|
-
maxLength?: number | undefined;
|
|
146
|
-
min?: number | undefined;
|
|
147
|
-
max?: number | undefined;
|
|
148
|
-
decimals?: number | undefined;
|
|
149
|
-
colspan?: number | undefined;
|
|
150
|
-
rowspan?: number | undefined;
|
|
151
|
-
id?: string | undefined;
|
|
152
|
-
}[];
|
|
135
|
+
body: (import("../../type-source").ComponentType | {
|
|
136
|
+
label: import("../../type-source").LabelType;
|
|
137
|
+
})[][];
|
|
153
138
|
positioning: "HORIZONTAL";
|
|
154
139
|
} | {
|
|
155
140
|
handleChange: (response: {
|
|
156
141
|
name: string;
|
|
157
|
-
}, value: any, args?:
|
|
142
|
+
}, value: any, args?: {
|
|
143
|
+
iteration?: number[] | undefined;
|
|
144
|
+
} | undefined) => void;
|
|
158
145
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
159
|
-
iteration?: number | undefined;
|
|
160
|
-
linksIterations?: number[] | undefined;
|
|
161
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
146
|
+
iteration?: number | number[] | undefined;
|
|
162
147
|
bindingDependencies?: string[] | undefined;
|
|
148
|
+
deps?: string[] | undefined;
|
|
163
149
|
} | undefined) => T;
|
|
164
150
|
preferences: ["COLLECTED"];
|
|
165
151
|
goToPage: (page: {
|
|
@@ -198,12 +184,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
198
184
|
} | {
|
|
199
185
|
handleChange: (response: {
|
|
200
186
|
name: string;
|
|
201
|
-
}, value: any, args?:
|
|
187
|
+
}, value: any, args?: {
|
|
188
|
+
iteration?: number[] | undefined;
|
|
189
|
+
} | undefined) => void;
|
|
202
190
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
203
|
-
iteration?: number | undefined;
|
|
204
|
-
linksIterations?: number[] | undefined;
|
|
205
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
191
|
+
iteration?: number | number[] | undefined;
|
|
206
192
|
bindingDependencies?: string[] | undefined;
|
|
193
|
+
deps?: string[] | undefined;
|
|
207
194
|
} | undefined) => T;
|
|
208
195
|
preferences: ["COLLECTED"];
|
|
209
196
|
goToPage: (page: {
|
|
@@ -243,37 +230,20 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
243
230
|
colspan?: number | undefined;
|
|
244
231
|
rowspan?: number | undefined;
|
|
245
232
|
}[];
|
|
246
|
-
body: {
|
|
247
|
-
label
|
|
248
|
-
|
|
249
|
-
format?: string | undefined;
|
|
250
|
-
dateFormat?: string | undefined;
|
|
251
|
-
unit?: string | undefined;
|
|
252
|
-
options: {
|
|
253
|
-
value: string;
|
|
254
|
-
label: import("../../type-source").LabelType;
|
|
255
|
-
}[];
|
|
256
|
-
response: import("../../type-source").ResponseType;
|
|
257
|
-
bindingDependencies: string[];
|
|
258
|
-
componentType?: import("../../type-source").ComponentTypeEnum | undefined;
|
|
259
|
-
maxLength?: number | undefined;
|
|
260
|
-
min?: number | undefined;
|
|
261
|
-
max?: number | undefined;
|
|
262
|
-
decimals?: number | undefined;
|
|
263
|
-
colspan?: number | undefined;
|
|
264
|
-
rowspan?: number | undefined;
|
|
265
|
-
id?: string | undefined;
|
|
266
|
-
}[];
|
|
233
|
+
body: (import("../../type-source").ComponentType | {
|
|
234
|
+
label: import("../../type-source").LabelType;
|
|
235
|
+
})[][];
|
|
267
236
|
positioning: "HORIZONTAL";
|
|
268
237
|
} | {
|
|
269
238
|
handleChange: (response: {
|
|
270
239
|
name: string;
|
|
271
|
-
}, value: any, args?:
|
|
240
|
+
}, value: any, args?: {
|
|
241
|
+
iteration?: number[] | undefined;
|
|
242
|
+
} | undefined) => void;
|
|
272
243
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
273
|
-
iteration?: number | undefined;
|
|
274
|
-
linksIterations?: number[] | undefined;
|
|
275
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
244
|
+
iteration?: number | number[] | undefined;
|
|
276
245
|
bindingDependencies?: string[] | undefined;
|
|
246
|
+
deps?: string[] | undefined;
|
|
277
247
|
} | undefined) => T;
|
|
278
248
|
preferences: ["COLLECTED"];
|
|
279
249
|
goToPage: (page: {
|
|
@@ -307,12 +277,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
307
277
|
} | {
|
|
308
278
|
handleChange: (response: {
|
|
309
279
|
name: string;
|
|
310
|
-
}, value: any, args?:
|
|
280
|
+
}, value: any, args?: {
|
|
281
|
+
iteration?: number[] | undefined;
|
|
282
|
+
} | undefined) => void;
|
|
311
283
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
312
|
-
iteration?: number | undefined;
|
|
313
|
-
linksIterations?: number[] | undefined;
|
|
314
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
284
|
+
iteration?: number | number[] | undefined;
|
|
315
285
|
bindingDependencies?: string[] | undefined;
|
|
286
|
+
deps?: string[] | undefined;
|
|
316
287
|
} | undefined) => T;
|
|
317
288
|
preferences: ["COLLECTED"];
|
|
318
289
|
goToPage: (page: {
|
|
@@ -345,12 +316,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
345
316
|
} | {
|
|
346
317
|
handleChange: (response: {
|
|
347
318
|
name: string;
|
|
348
|
-
}, value: any, args?:
|
|
319
|
+
}, value: any, args?: {
|
|
320
|
+
iteration?: number[] | undefined;
|
|
321
|
+
} | undefined) => void;
|
|
349
322
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
350
|
-
iteration?: number | undefined;
|
|
351
|
-
linksIterations?: number[] | undefined;
|
|
352
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
323
|
+
iteration?: number | number[] | undefined;
|
|
353
324
|
bindingDependencies?: string[] | undefined;
|
|
325
|
+
deps?: string[] | undefined;
|
|
354
326
|
} | undefined) => T;
|
|
355
327
|
preferences: ["COLLECTED"];
|
|
356
328
|
goToPage: (page: {
|
|
@@ -384,12 +356,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
384
356
|
} | {
|
|
385
357
|
handleChange: (response: {
|
|
386
358
|
name: string;
|
|
387
|
-
}, value: any, args?:
|
|
359
|
+
}, value: any, args?: {
|
|
360
|
+
iteration?: number[] | undefined;
|
|
361
|
+
} | undefined) => void;
|
|
388
362
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
389
|
-
iteration?: number | undefined;
|
|
390
|
-
linksIterations?: number[] | undefined;
|
|
391
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
363
|
+
iteration?: number | number[] | undefined;
|
|
392
364
|
bindingDependencies?: string[] | undefined;
|
|
365
|
+
deps?: string[] | undefined;
|
|
393
366
|
} | undefined) => T;
|
|
394
367
|
preferences: ["COLLECTED"];
|
|
395
368
|
goToPage: (page: {
|
|
@@ -420,12 +393,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
420
393
|
} | {
|
|
421
394
|
handleChange: (response: {
|
|
422
395
|
name: string;
|
|
423
|
-
}, value: any, args?:
|
|
396
|
+
}, value: any, args?: {
|
|
397
|
+
iteration?: number[] | undefined;
|
|
398
|
+
} | undefined) => void;
|
|
424
399
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
425
|
-
iteration?: number | undefined;
|
|
426
|
-
linksIterations?: number[] | undefined;
|
|
427
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
400
|
+
iteration?: number | number[] | undefined;
|
|
428
401
|
bindingDependencies?: string[] | undefined;
|
|
402
|
+
deps?: string[] | undefined;
|
|
429
403
|
} | undefined) => T;
|
|
430
404
|
preferences: ["COLLECTED"];
|
|
431
405
|
goToPage: (page: {
|
|
@@ -460,12 +434,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
460
434
|
} | {
|
|
461
435
|
handleChange: (response: {
|
|
462
436
|
name: string;
|
|
463
|
-
}, value: any, args?:
|
|
437
|
+
}, value: any, args?: {
|
|
438
|
+
iteration?: number[] | undefined;
|
|
439
|
+
} | undefined) => void;
|
|
464
440
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
465
|
-
iteration?: number | undefined;
|
|
466
|
-
linksIterations?: number[] | undefined;
|
|
467
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
441
|
+
iteration?: number | number[] | undefined;
|
|
468
442
|
bindingDependencies?: string[] | undefined;
|
|
443
|
+
deps?: string[] | undefined;
|
|
469
444
|
} | undefined) => T;
|
|
470
445
|
preferences: ["COLLECTED"];
|
|
471
446
|
goToPage: (page: {
|
|
@@ -495,12 +470,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
495
470
|
} | {
|
|
496
471
|
handleChange: (response: {
|
|
497
472
|
name: string;
|
|
498
|
-
}, value: any, args?:
|
|
473
|
+
}, value: any, args?: {
|
|
474
|
+
iteration?: number[] | undefined;
|
|
475
|
+
} | undefined) => void;
|
|
499
476
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
500
|
-
iteration?: number | undefined;
|
|
501
|
-
linksIterations?: number[] | undefined;
|
|
502
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
477
|
+
iteration?: number | number[] | undefined;
|
|
503
478
|
bindingDependencies?: string[] | undefined;
|
|
479
|
+
deps?: string[] | undefined;
|
|
504
480
|
} | undefined) => T;
|
|
505
481
|
preferences: ["COLLECTED"];
|
|
506
482
|
goToPage: (page: {
|
|
@@ -535,12 +511,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
535
511
|
} | {
|
|
536
512
|
handleChange: (response: {
|
|
537
513
|
name: string;
|
|
538
|
-
}, value: any, args?:
|
|
514
|
+
}, value: any, args?: {
|
|
515
|
+
iteration?: number[] | undefined;
|
|
516
|
+
} | undefined) => void;
|
|
539
517
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
540
|
-
iteration?: number | undefined;
|
|
541
|
-
linksIterations?: number[] | undefined;
|
|
542
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
518
|
+
iteration?: number | number[] | undefined;
|
|
543
519
|
bindingDependencies?: string[] | undefined;
|
|
520
|
+
deps?: string[] | undefined;
|
|
544
521
|
} | undefined) => T;
|
|
545
522
|
preferences: ["COLLECTED"];
|
|
546
523
|
goToPage: (page: {
|
|
@@ -571,15 +548,17 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
571
548
|
symLinks: {
|
|
572
549
|
[variableName: string]: Record<string, string>;
|
|
573
550
|
};
|
|
551
|
+
components: import("../../type-source").ComponentType[];
|
|
574
552
|
} | {
|
|
575
553
|
handleChange: (response: {
|
|
576
554
|
name: string;
|
|
577
|
-
}, value: any, args?:
|
|
555
|
+
}, value: any, args?: {
|
|
556
|
+
iteration?: number[] | undefined;
|
|
557
|
+
} | undefined) => void;
|
|
578
558
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
579
|
-
iteration?: number | undefined;
|
|
580
|
-
linksIterations?: number[] | undefined;
|
|
581
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
559
|
+
iteration?: number | number[] | undefined;
|
|
582
560
|
bindingDependencies?: string[] | undefined;
|
|
561
|
+
deps?: string[] | undefined;
|
|
583
562
|
} | undefined) => T;
|
|
584
563
|
preferences: ["COLLECTED"];
|
|
585
564
|
goToPage: (page: {
|
|
@@ -612,12 +591,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
612
591
|
} | {
|
|
613
592
|
handleChange: (response: {
|
|
614
593
|
name: string;
|
|
615
|
-
}, value: any, args?:
|
|
594
|
+
}, value: any, args?: {
|
|
595
|
+
iteration?: number[] | undefined;
|
|
596
|
+
} | undefined) => void;
|
|
616
597
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
617
|
-
iteration?: number | undefined;
|
|
618
|
-
linksIterations?: number[] | undefined;
|
|
619
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
598
|
+
iteration?: number | number[] | undefined;
|
|
620
599
|
bindingDependencies?: string[] | undefined;
|
|
600
|
+
deps?: string[] | undefined;
|
|
621
601
|
} | undefined) => T;
|
|
622
602
|
preferences: ["COLLECTED"];
|
|
623
603
|
goToPage: (page: {
|
|
@@ -647,12 +627,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
647
627
|
} | {
|
|
648
628
|
handleChange: (response: {
|
|
649
629
|
name: string;
|
|
650
|
-
}, value: any, args?:
|
|
630
|
+
}, value: any, args?: {
|
|
631
|
+
iteration?: number[] | undefined;
|
|
632
|
+
} | undefined) => void;
|
|
651
633
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
652
|
-
iteration?: number | undefined;
|
|
653
|
-
linksIterations?: number[] | undefined;
|
|
654
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
634
|
+
iteration?: number | number[] | undefined;
|
|
655
635
|
bindingDependencies?: string[] | undefined;
|
|
636
|
+
deps?: string[] | undefined;
|
|
656
637
|
} | undefined) => T;
|
|
657
638
|
preferences: ["COLLECTED"];
|
|
658
639
|
goToPage: (page: {
|
|
@@ -684,12 +665,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
684
665
|
} | {
|
|
685
666
|
handleChange: (response: {
|
|
686
667
|
name: string;
|
|
687
|
-
}, value: any, args?:
|
|
668
|
+
}, value: any, args?: {
|
|
669
|
+
iteration?: number[] | undefined;
|
|
670
|
+
} | undefined) => void;
|
|
688
671
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
689
|
-
iteration?: number | undefined;
|
|
690
|
-
linksIterations?: number[] | undefined;
|
|
691
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
672
|
+
iteration?: number | number[] | undefined;
|
|
692
673
|
bindingDependencies?: string[] | undefined;
|
|
674
|
+
deps?: string[] | undefined;
|
|
693
675
|
} | undefined) => T;
|
|
694
676
|
preferences: ["COLLECTED"];
|
|
695
677
|
goToPage: (page: {
|
|
@@ -718,12 +700,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
718
700
|
} | {
|
|
719
701
|
handleChange: (response: {
|
|
720
702
|
name: string;
|
|
721
|
-
}, value: any, args?:
|
|
703
|
+
}, value: any, args?: {
|
|
704
|
+
iteration?: number[] | undefined;
|
|
705
|
+
} | undefined) => void;
|
|
722
706
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
723
|
-
iteration?: number | undefined;
|
|
724
|
-
linksIterations?: number[] | undefined;
|
|
725
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
707
|
+
iteration?: number | number[] | undefined;
|
|
726
708
|
bindingDependencies?: string[] | undefined;
|
|
709
|
+
deps?: string[] | undefined;
|
|
727
710
|
} | undefined) => T;
|
|
728
711
|
preferences: ["COLLECTED"];
|
|
729
712
|
goToPage: (page: {
|
|
@@ -752,12 +735,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
752
735
|
} | {
|
|
753
736
|
handleChange: (response: {
|
|
754
737
|
name: string;
|
|
755
|
-
}, value: any, args?:
|
|
738
|
+
}, value: any, args?: {
|
|
739
|
+
iteration?: number[] | undefined;
|
|
740
|
+
} | undefined) => void;
|
|
756
741
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
757
|
-
iteration?: number | undefined;
|
|
758
|
-
linksIterations?: number[] | undefined;
|
|
759
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
742
|
+
iteration?: number | number[] | undefined;
|
|
760
743
|
bindingDependencies?: string[] | undefined;
|
|
744
|
+
deps?: string[] | undefined;
|
|
761
745
|
} | undefined) => T;
|
|
762
746
|
preferences: ["COLLECTED"];
|
|
763
747
|
goToPage: (page: {
|
|
@@ -787,12 +771,13 @@ declare function fillFromState(component: LunaticComponentDefinition, state: Lun
|
|
|
787
771
|
} | {
|
|
788
772
|
handleChange: (response: {
|
|
789
773
|
name: string;
|
|
790
|
-
}, value: any, args?:
|
|
774
|
+
}, value: any, args?: {
|
|
775
|
+
iteration?: number[] | undefined;
|
|
776
|
+
} | undefined) => void;
|
|
791
777
|
executeExpression: <T extends unknown = unknown>(expression: unknown, args?: {
|
|
792
|
-
iteration?: number | undefined;
|
|
793
|
-
linksIterations?: number[] | undefined;
|
|
794
|
-
logging?: import("../execute-expression/create-execute-expression").ExpressionLogger | undefined;
|
|
778
|
+
iteration?: number | number[] | undefined;
|
|
795
779
|
bindingDependencies?: string[] | undefined;
|
|
780
|
+
deps?: string[] | undefined;
|
|
796
781
|
} | undefined) => T;
|
|
797
782
|
preferences: ["COLLECTED"];
|
|
798
783
|
goToPage: (page: {
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { LunaticComponentDefinition, LunaticState } from '../../type';
|
|
2
|
+
/**
|
|
3
|
+
* Fill the number of iterations for loop components without "iterations" expression
|
|
4
|
+
*/
|
|
5
|
+
export declare function fillIterations(component: LunaticComponentDefinition, state: LunaticState): (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").ComponentTableType & {
|
|
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").ComponentNumberType & {
|
|
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").ComponentDatePickerType & {
|
|
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").ComponentCheckboxGroupType & {
|
|
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").ComponentCheckboxBooleanType & {
|
|
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").ComponentRadioType & {
|
|
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").ComponentFilterDescriptionType & {
|
|
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").ComponentDropdownType & {
|
|
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").ComponentPairWiseLinksType & {
|
|
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").ComponentRoundaboutType & {
|
|
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").ComponentSuggesterType & {
|
|
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").ComponentInputOrTextareaType & {
|
|
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 & {
|
|
34
|
+
componentType: "CheckboxOne";
|
|
35
|
+
} & {
|
|
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: "ConfirmationModal";
|
|
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 & import("../../type-source").ComponentComponentSetType & {
|
|
42
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
43
|
+
}) | (import("../../type-source").ComponentTypeBase & import("../../type-source").ComponentQuestionExplicationType & {
|
|
44
|
+
componentType: "Sequence" | "Subsequence" | "RosterForLoop" | "Loop" | "Table" | "Input" | "InputNumber" | "Datepicker" | "CheckboxGroup" | "CheckboxOne" | "CheckboxBoolean" | "Radio" | "Dropdown" | "Textarea" | "FilterDescription" | "PairwiseLinks" | "Suggester" | "ConfirmationModal" | "ComponentSet" | "Roundabout" | "QuestionExplication";
|
|
45
|
+
}) | {
|
|
46
|
+
iterations: number;
|
|
47
|
+
label: import("../../type-source").LabelType;
|
|
48
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
49
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
50
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
51
|
+
id: string;
|
|
52
|
+
bindingDependencies?: string[] | undefined;
|
|
53
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
54
|
+
mandatory?: boolean | undefined;
|
|
55
|
+
page: string;
|
|
56
|
+
componentType: "Loop";
|
|
57
|
+
loopDependencies: string[];
|
|
58
|
+
lines: {
|
|
59
|
+
min: import("../../type-source").LabelType;
|
|
60
|
+
max: import("../../type-source").LabelType;
|
|
61
|
+
};
|
|
62
|
+
components: import("../../type-source").ComponentType[];
|
|
63
|
+
maxPage: string;
|
|
64
|
+
depth: number;
|
|
65
|
+
paginatedLoop: boolean;
|
|
66
|
+
} | {
|
|
67
|
+
iterations: number;
|
|
68
|
+
label: import("../../type-source").LabelType;
|
|
69
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
70
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
71
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
72
|
+
id: string;
|
|
73
|
+
bindingDependencies?: string[] | undefined;
|
|
74
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
75
|
+
mandatory?: boolean | undefined;
|
|
76
|
+
page: string;
|
|
77
|
+
componentType: "Roundabout";
|
|
78
|
+
components: import("../../type-source").ComponentType[];
|
|
79
|
+
locked: boolean;
|
|
80
|
+
expressions: Record<string, import("../../type-source").LabelType>;
|
|
81
|
+
} | {
|
|
82
|
+
iterations: number;
|
|
83
|
+
label: import("../../type-source").LabelType;
|
|
84
|
+
declarations?: import("../../type-source").DeclarationType[] | undefined;
|
|
85
|
+
conditionFilter: import("../../type-source").ConditionFilterType;
|
|
86
|
+
controls?: import("../../type-source").ControlType[] | undefined;
|
|
87
|
+
id: string;
|
|
88
|
+
bindingDependencies?: string[] | undefined;
|
|
89
|
+
hierarchy: import("../../type-source").Hierarchy;
|
|
90
|
+
mandatory?: boolean | undefined;
|
|
91
|
+
page: string;
|
|
92
|
+
componentType: "RosterForLoop";
|
|
93
|
+
components: import("../../type-source").ComponentType[];
|
|
94
|
+
lines: {
|
|
95
|
+
min: import("../../type-source").LabelType;
|
|
96
|
+
max: import("../../type-source").LabelType;
|
|
97
|
+
};
|
|
98
|
+
header: {
|
|
99
|
+
value: string;
|
|
100
|
+
label: string | import("../../type-source").LabelType;
|
|
101
|
+
options: {
|
|
102
|
+
value: string;
|
|
103
|
+
label: import("../../type-source").LabelType;
|
|
104
|
+
}[];
|
|
105
|
+
colspan?: number | undefined;
|
|
106
|
+
rowspan?: number | undefined;
|
|
107
|
+
}[];
|
|
108
|
+
body: (import("../../type-source").ComponentType | {
|
|
109
|
+
label: import("../../type-source").LabelType;
|
|
110
|
+
})[][];
|
|
111
|
+
positioning: "HORIZONTAL";
|
|
112
|
+
};
|