@inseefr/lunatic 3.0.0-rc.26 → 3.0.0-rc.27

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.
Files changed (149) hide show
  1. package/lib/components/LunaticComponents.d.ts +7 -11
  2. package/lib/components/LunaticComponents.js +4 -1
  3. package/lib/components/LunaticComponents.js.map +1 -1
  4. package/lib/components/Table/Table.js.map +1 -1
  5. package/lib/components/library.d.ts +1 -1
  6. package/lib/components/shared/HOC/slottableComponent.d.ts +2 -2
  7. package/lib/components/shared/MDLabel/MDLabel.js +4 -1
  8. package/lib/components/shared/MDLabel/MDLabel.js.map +1 -1
  9. package/lib/components/shared/MDLabel/MDLabel.spec.js +4 -1
  10. package/lib/components/shared/MDLabel/MDLabel.spec.js.map +1 -1
  11. package/lib/components/type.d.ts +10 -10
  12. package/lib/index.d.ts +1 -1
  13. package/lib/use-lunatic/actions.d.ts +3 -52
  14. package/lib/use-lunatic/actions.js +0 -7
  15. package/lib/use-lunatic/actions.js.map +1 -1
  16. package/lib/use-lunatic/commons/check-loops.d.ts +2 -2
  17. package/lib/use-lunatic/commons/check-loops.js.map +1 -1
  18. package/lib/use-lunatic/commons/compile-controls.d.ts +2 -2
  19. package/lib/use-lunatic/commons/compile-controls.js +5 -3
  20. package/lib/use-lunatic/commons/compile-controls.js.map +1 -1
  21. package/lib/use-lunatic/commons/create-map-pages.d.ts +2 -2
  22. package/lib/use-lunatic/commons/create-map-pages.js.map +1 -1
  23. package/lib/use-lunatic/commons/execute-condition-filter.d.ts +2 -2
  24. package/lib/use-lunatic/commons/execute-condition-filter.js +3 -4
  25. package/lib/use-lunatic/commons/execute-condition-filter.js.map +1 -1
  26. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.d.ts +614 -6
  27. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +6 -13
  28. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js.map +1 -1
  29. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js +1 -1
  30. package/lib/use-lunatic/commons/fill-components/fill-component-expressions.spec.js.map +1 -1
  31. package/lib/use-lunatic/commons/fill-components/fill-components.d.ts +19 -17
  32. package/lib/use-lunatic/commons/fill-components/fill-components.js +29 -29
  33. package/lib/use-lunatic/commons/fill-components/fill-components.js.map +1 -1
  34. package/lib/use-lunatic/commons/get-components-from-state.d.ts +2 -3
  35. package/lib/use-lunatic/commons/get-components-from-state.js +1 -2
  36. package/lib/use-lunatic/commons/get-components-from-state.js.map +1 -1
  37. package/lib/use-lunatic/commons/index.d.ts +0 -3
  38. package/lib/use-lunatic/commons/index.js +0 -3
  39. package/lib/use-lunatic/commons/index.js.map +1 -1
  40. package/lib/use-lunatic/commons/page.d.ts +2 -2
  41. package/lib/use-lunatic/commons/page.js +2 -1
  42. package/lib/use-lunatic/commons/page.js.map +1 -1
  43. package/lib/use-lunatic/hooks/use-loop-variables.d.ts +2 -2
  44. package/lib/use-lunatic/hooks/use-loop-variables.js.map +1 -1
  45. package/lib/use-lunatic/hooks/use-page-has-response.d.ts +2 -2
  46. package/lib/use-lunatic/hooks/use-page-has-response.js.map +1 -1
  47. package/lib/use-lunatic/hooks/useOverview.d.ts +2 -2
  48. package/lib/use-lunatic/hooks/useOverview.js.map +1 -1
  49. package/lib/use-lunatic/props/propComponentType.d.ts +9 -0
  50. package/lib/use-lunatic/{commons/fill-components/fill-specific-expression.js → props/propComponentType.js} +21 -27
  51. package/lib/use-lunatic/props/propComponentType.js.map +1 -0
  52. package/lib/use-lunatic/props/propIterations.d.ts +7 -0
  53. package/lib/use-lunatic/props/propIterations.js +26 -0
  54. package/lib/use-lunatic/props/propIterations.js.map +1 -0
  55. package/lib/use-lunatic/props/propMissingResponse.d.ts +9 -0
  56. package/lib/use-lunatic/props/propMissingResponse.js +13 -0
  57. package/lib/use-lunatic/props/propMissingResponse.js.map +1 -0
  58. package/lib/use-lunatic/props/propValue.d.ts +6 -0
  59. package/lib/use-lunatic/props/propValue.js +28 -0
  60. package/lib/use-lunatic/props/propValue.js.map +1 -0
  61. package/lib/use-lunatic/{commons/fill-components/fill-component-value.spec.js → props/propValue.spec.js} +6 -6
  62. package/lib/use-lunatic/props/propValue.spec.js.map +1 -0
  63. package/lib/use-lunatic/reducer/commons/auto-explore-loop.d.ts +2 -2
  64. package/lib/use-lunatic/reducer/commons/auto-explore-loop.js.map +1 -1
  65. package/lib/use-lunatic/reducer/commons/validate-condition-filter.d.ts +2 -2
  66. package/lib/use-lunatic/reducer/commons/validate-condition-filter.js.map +1 -1
  67. package/lib/use-lunatic/reducer/controls/check-base-control.d.ts +2 -2
  68. package/lib/use-lunatic/reducer/controls/check-base-control.js.map +1 -1
  69. package/lib/use-lunatic/reducer/controls/check-roundabout-control.d.ts +2 -2
  70. package/lib/use-lunatic/reducer/controls/check-roundabout-control.js.map +1 -1
  71. package/lib/use-lunatic/reducer/overview/overviewOnInit.d.ts +4 -105
  72. package/lib/use-lunatic/reducer/overview/overviewOnInit.js +1 -12
  73. package/lib/use-lunatic/reducer/overview/overviewOnInit.js.map +1 -1
  74. package/lib/use-lunatic/reducer/reduce-go-next-page.d.ts +2 -2
  75. package/lib/use-lunatic/reducer/reduce-go-next-page.js.map +1 -1
  76. package/lib/use-lunatic/reducer/reduce-go-previous-page.d.ts +2 -3
  77. package/lib/use-lunatic/reducer/reduce-go-previous-page.js +1 -2
  78. package/lib/use-lunatic/reducer/reduce-go-previous-page.js.map +1 -1
  79. package/lib/use-lunatic/reducer/reduce-go-to-page.d.ts +2 -3
  80. package/lib/use-lunatic/reducer/reduce-go-to-page.js +1 -2
  81. package/lib/use-lunatic/reducer/reduce-go-to-page.js.map +1 -1
  82. package/lib/use-lunatic/reducer/reduce-handle-change.d.ts +2 -2
  83. package/lib/use-lunatic/reducer/reduce-handle-change.js.map +1 -1
  84. package/lib/use-lunatic/reducer/reducer.d.ts +2 -3
  85. package/lib/use-lunatic/reducer/reducer.js +3 -10
  86. package/lib/use-lunatic/reducer/reducer.js.map +1 -1
  87. package/lib/use-lunatic/reducer/reducerInitializer.d.ts +10 -0
  88. package/lib/use-lunatic/reducer/{reduce-on-init.js → reducerInitializer.js} +70 -72
  89. package/lib/use-lunatic/reducer/reducerInitializer.js.map +1 -0
  90. package/lib/use-lunatic/type.d.ts +77 -49
  91. package/lib/use-lunatic/use-lunatic.d.ts +23 -69
  92. package/lib/use-lunatic/use-lunatic.js +69 -74
  93. package/lib/use-lunatic/use-lunatic.js.map +1 -1
  94. package/lib/utils/object.d.ts +1 -0
  95. package/lib/utils/object.js +6 -0
  96. package/lib/utils/object.js.map +1 -1
  97. package/package.json +2 -1
  98. package/lib/stories/behaviour/cleaning/source-loop.json +0 -130
  99. package/lib/stories/behaviour/resizing/source-resizing-cleaning.json +0 -171
  100. package/lib/stories/overview/dataLoop.json +0 -189
  101. package/lib/stories/overview/source.json +0 -28
  102. package/lib/stories/overview/sourceLoop.json +0 -1423
  103. package/lib/stories/questionnaires/logement/source.json +0 -31762
  104. package/lib/stories/questionnaires2023/simpsons/source.json +0 -4728
  105. package/lib/use-lunatic/commons/fill-components/fill-component-required.d.ts +0 -442
  106. package/lib/use-lunatic/commons/fill-components/fill-component-required.js +0 -13
  107. package/lib/use-lunatic/commons/fill-components/fill-component-required.js.map +0 -1
  108. package/lib/use-lunatic/commons/fill-components/fill-component-value.d.ts +0 -5
  109. package/lib/use-lunatic/commons/fill-components/fill-component-value.js +0 -34
  110. package/lib/use-lunatic/commons/fill-components/fill-component-value.js.map +0 -1
  111. package/lib/use-lunatic/commons/fill-components/fill-component-value.spec.js.map +0 -1
  112. package/lib/use-lunatic/commons/fill-components/fill-from-state.d.ts +0 -770
  113. package/lib/use-lunatic/commons/fill-components/fill-from-state.js +0 -18
  114. package/lib/use-lunatic/commons/fill-components/fill-from-state.js.map +0 -1
  115. package/lib/use-lunatic/commons/fill-components/fill-iterations.d.ts +0 -124
  116. package/lib/use-lunatic/commons/fill-components/fill-iterations.js +0 -36
  117. package/lib/use-lunatic/commons/fill-components/fill-iterations.js.map +0 -1
  118. package/lib/use-lunatic/commons/fill-components/fill-management.d.ts +0 -6
  119. package/lib/use-lunatic/commons/fill-components/fill-management.js +0 -9
  120. package/lib/use-lunatic/commons/fill-components/fill-management.js.map +0 -1
  121. package/lib/use-lunatic/commons/fill-components/fill-missing-response.d.ts +0 -12
  122. package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +0 -20
  123. package/lib/use-lunatic/commons/fill-components/fill-missing-response.js.map +0 -1
  124. package/lib/use-lunatic/commons/fill-components/fill-pagination.d.ts +0 -9
  125. package/lib/use-lunatic/commons/fill-components/fill-pagination.js +0 -10
  126. package/lib/use-lunatic/commons/fill-components/fill-pagination.js.map +0 -1
  127. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +0 -1268
  128. package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js.map +0 -1
  129. package/lib/use-lunatic/commons/fill-components/index.d.ts +0 -1
  130. package/lib/use-lunatic/commons/fill-components/index.js +0 -2
  131. package/lib/use-lunatic/commons/fill-components/index.js.map +0 -1
  132. package/lib/use-lunatic/commons/use-components-from-state.d.ts +0 -4
  133. package/lib/use-lunatic/commons/use-components-from-state.js +0 -15
  134. package/lib/use-lunatic/commons/use-components-from-state.js.map +0 -1
  135. package/lib/use-lunatic/initial-state.d.ts +0 -3
  136. package/lib/use-lunatic/initial-state.js +0 -39
  137. package/lib/use-lunatic/initial-state.js.map +0 -1
  138. package/lib/use-lunatic/reducer/index.d.ts +0 -1
  139. package/lib/use-lunatic/reducer/index.js +0 -2
  140. package/lib/use-lunatic/reducer/index.js.map +0 -1
  141. package/lib/use-lunatic/reducer/reduce-on-init.d.ts +0 -4
  142. package/lib/use-lunatic/reducer/reduce-on-init.js.map +0 -1
  143. package/lib/use-lunatic/reducer/reduce-on-set-waiting.d.ts +0 -4
  144. package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +0 -8
  145. package/lib/use-lunatic/reducer/reduce-on-set-waiting.js.map +0 -1
  146. package/lib/use-lunatic/use-lunatic.test.d.ts +0 -1
  147. package/lib/use-lunatic/use-lunatic.test.js +0 -280
  148. package/lib/use-lunatic/use-lunatic.test.js.map +0 -1
  149. /package/lib/use-lunatic/{commons/fill-components/fill-component-value.spec.d.ts → props/propValue.spec.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { LunaticComponentDefinition, LunaticExpression, LunaticState } from '../../type';
2
+ import type { LunaticComponentDefinition, LunaticExpression, LunaticReducerState } from '../../type';
3
3
  export type DeepTranslateExpression<T> = T extends LunaticExpression ? ReactNode : T extends {
4
4
  [k: string | number]: unknown;
5
5
  } ? {
@@ -8,8 +8,616 @@ export type DeepTranslateExpression<T> = T extends LunaticExpression ? ReactNode
8
8
  /**
9
9
  * Fill props interpreting VTL expression
10
10
  */
11
- declare function fillComponentExpressions(component: LunaticComponentDefinition, state: {
12
- executeExpression: LunaticState['executeExpression'];
13
- pager: Pick<LunaticState['pager'], 'iteration' | 'linksIterations'>;
14
- }): LunaticComponentDefinition;
15
- export default fillComponentExpressions;
11
+ export declare function fillComponentExpressions(component: LunaticComponentDefinition, state: {
12
+ executeExpression: LunaticReducerState['executeExpression'];
13
+ pager: Pick<LunaticReducerState['pager'], 'iteration' | 'linksIterations'>;
14
+ }): {
15
+ label: ReactNode;
16
+ description?: ReactNode;
17
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
18
+ conditionFilter?: ReactNode;
19
+ controls?: import("../../type-source").ControlType[] | undefined;
20
+ id: string;
21
+ bindingDependencies?: string[] | undefined;
22
+ hierarchy?: {
23
+ sequence: {
24
+ label: ReactNode;
25
+ id: string;
26
+ page: string;
27
+ };
28
+ subSequence?: {
29
+ label: ReactNode;
30
+ id: string;
31
+ page: string;
32
+ } | undefined;
33
+ } | undefined;
34
+ mandatory?: boolean | undefined;
35
+ page: string;
36
+ componentType: "Sequence";
37
+ goToPage?: string | undefined;
38
+ } | {
39
+ label: ReactNode;
40
+ description?: ReactNode;
41
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
42
+ conditionFilter?: ReactNode;
43
+ controls?: import("../../type-source").ControlType[] | undefined;
44
+ id: string;
45
+ bindingDependencies?: string[] | undefined;
46
+ hierarchy?: {
47
+ sequence: {
48
+ label: ReactNode;
49
+ id: string;
50
+ page: string;
51
+ };
52
+ subSequence?: {
53
+ label: ReactNode;
54
+ id: string;
55
+ page: string;
56
+ } | undefined;
57
+ } | undefined;
58
+ mandatory?: boolean | undefined;
59
+ page: string;
60
+ componentType: "Subsequence";
61
+ goToPage?: string | undefined;
62
+ } | {
63
+ label: ReactNode;
64
+ description?: ReactNode;
65
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
66
+ conditionFilter?: ReactNode;
67
+ controls?: import("../../type-source").ControlType[] | undefined;
68
+ id: string;
69
+ bindingDependencies?: string[] | undefined;
70
+ hierarchy?: {
71
+ sequence: {
72
+ label: ReactNode;
73
+ id: string;
74
+ page: string;
75
+ };
76
+ subSequence?: {
77
+ label: ReactNode;
78
+ id: string;
79
+ page: string;
80
+ } | undefined;
81
+ } | undefined;
82
+ mandatory?: boolean | undefined;
83
+ page: string;
84
+ componentType: "RosterForLoop";
85
+ components: import("../../type-source").ComponentType[];
86
+ lines: {
87
+ min: ReactNode;
88
+ max: ReactNode;
89
+ };
90
+ header?: {
91
+ value: string;
92
+ label: string | import("../../type-source").LabelType<"VTL" | "VTL|MD">;
93
+ options: {
94
+ value: string;
95
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
96
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
97
+ }[];
98
+ colspan?: number | undefined;
99
+ rowspan?: number | undefined;
100
+ }[] | undefined;
101
+ positioning: "HORIZONTAL";
102
+ } | {
103
+ label: ReactNode;
104
+ description?: ReactNode;
105
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
106
+ conditionFilter?: ReactNode;
107
+ controls?: import("../../type-source").ControlType[] | undefined;
108
+ id: string;
109
+ bindingDependencies?: string[] | undefined;
110
+ hierarchy?: {
111
+ sequence: {
112
+ label: ReactNode;
113
+ id: string;
114
+ page: string;
115
+ };
116
+ subSequence?: {
117
+ label: ReactNode;
118
+ id: string;
119
+ page: string;
120
+ } | undefined;
121
+ } | undefined;
122
+ mandatory?: boolean | undefined;
123
+ page: string;
124
+ componentType: "Loop";
125
+ loopDependencies: string[];
126
+ components: import("../../type-source").ComponentType[];
127
+ depth: number;
128
+ paginatedLoop: true;
129
+ maxPage: string;
130
+ iterations: ReactNode;
131
+ } | {
132
+ label: ReactNode;
133
+ description?: ReactNode;
134
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
135
+ conditionFilter?: ReactNode;
136
+ controls?: import("../../type-source").ControlType[] | undefined;
137
+ id: string;
138
+ bindingDependencies?: string[] | undefined;
139
+ hierarchy?: {
140
+ sequence: {
141
+ label: ReactNode;
142
+ id: string;
143
+ page: string;
144
+ };
145
+ subSequence?: {
146
+ label: ReactNode;
147
+ id: string;
148
+ page: string;
149
+ } | undefined;
150
+ } | undefined;
151
+ mandatory?: boolean | undefined;
152
+ page: string;
153
+ componentType: "Loop";
154
+ loopDependencies: string[];
155
+ components: import("../../type-source").ComponentType[];
156
+ depth: number;
157
+ paginatedLoop: false;
158
+ lines: {
159
+ min: ReactNode;
160
+ max: ReactNode;
161
+ };
162
+ } | {
163
+ label: ReactNode;
164
+ description?: ReactNode;
165
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
166
+ conditionFilter?: ReactNode;
167
+ controls?: import("../../type-source").ControlType[] | undefined;
168
+ id: string;
169
+ bindingDependencies?: string[] | undefined;
170
+ hierarchy?: {
171
+ sequence: {
172
+ label: ReactNode;
173
+ id: string;
174
+ page: string;
175
+ };
176
+ subSequence?: {
177
+ label: ReactNode;
178
+ id: string;
179
+ page: string;
180
+ } | undefined;
181
+ } | undefined;
182
+ mandatory?: boolean | undefined;
183
+ page: string;
184
+ componentType: "Table";
185
+ header: {
186
+ value: string;
187
+ label: string | import("../../type-source").LabelType<"VTL" | "VTL|MD">;
188
+ options: {
189
+ value: string;
190
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
191
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
192
+ }[];
193
+ colspan?: number | undefined;
194
+ rowspan?: number | undefined;
195
+ }[] | undefined;
196
+ body: ({
197
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
198
+ colspan?: number | undefined;
199
+ rowspan?: number | undefined;
200
+ } | (import("../../type-source").ComponentType & {
201
+ colspan?: number | undefined;
202
+ rowspan?: number | undefined;
203
+ }))[][];
204
+ } | {
205
+ label: ReactNode;
206
+ description?: ReactNode;
207
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
208
+ conditionFilter?: ReactNode;
209
+ controls?: import("../../type-source").ControlType[] | undefined;
210
+ id: string;
211
+ bindingDependencies?: string[] | undefined;
212
+ hierarchy?: {
213
+ sequence: {
214
+ label: ReactNode;
215
+ id: string;
216
+ page: string;
217
+ };
218
+ subSequence?: {
219
+ label: ReactNode;
220
+ id: string;
221
+ page: string;
222
+ } | undefined;
223
+ } | undefined;
224
+ mandatory?: boolean | undefined;
225
+ page: string;
226
+ componentType: "InputNumber";
227
+ unit?: string | undefined;
228
+ response: {
229
+ name: string;
230
+ };
231
+ min?: number | undefined;
232
+ max?: number | undefined;
233
+ decimals?: number | undefined;
234
+ } | {
235
+ label: ReactNode;
236
+ description?: ReactNode;
237
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
238
+ conditionFilter?: ReactNode;
239
+ controls?: import("../../type-source").ControlType[] | undefined;
240
+ id: string;
241
+ bindingDependencies?: string[] | undefined;
242
+ hierarchy?: {
243
+ sequence: {
244
+ label: ReactNode;
245
+ id: string;
246
+ page: string;
247
+ };
248
+ subSequence?: {
249
+ label: ReactNode;
250
+ id: string;
251
+ page: string;
252
+ } | undefined;
253
+ } | undefined;
254
+ mandatory?: boolean | undefined;
255
+ page: string;
256
+ componentType: "Datepicker";
257
+ dateFormat: "YYYY-MM-DD" | "YYYY" | "YYYY-MM";
258
+ response: {
259
+ name: string;
260
+ };
261
+ min?: string | undefined;
262
+ max?: string | undefined;
263
+ } | {
264
+ label: ReactNode;
265
+ description?: ReactNode;
266
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
267
+ conditionFilter?: ReactNode;
268
+ controls?: import("../../type-source").ControlType[] | undefined;
269
+ id: string;
270
+ bindingDependencies?: string[] | undefined;
271
+ hierarchy?: {
272
+ sequence: {
273
+ label: ReactNode;
274
+ id: string;
275
+ page: string;
276
+ };
277
+ subSequence?: {
278
+ label: ReactNode;
279
+ id: string;
280
+ page: string;
281
+ } | undefined;
282
+ } | undefined;
283
+ mandatory?: boolean | undefined;
284
+ page: string;
285
+ componentType: "Duration";
286
+ format: "PnYnM" | "PTnHnM";
287
+ response: {
288
+ name: string;
289
+ };
290
+ } | {
291
+ label: ReactNode;
292
+ description?: ReactNode;
293
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
294
+ conditionFilter?: ReactNode;
295
+ controls?: import("../../type-source").ControlType[] | undefined;
296
+ id: string;
297
+ bindingDependencies?: string[] | undefined;
298
+ hierarchy?: {
299
+ sequence: {
300
+ label: ReactNode;
301
+ id: string;
302
+ page: string;
303
+ };
304
+ subSequence?: {
305
+ label: ReactNode;
306
+ id: string;
307
+ page: string;
308
+ } | undefined;
309
+ } | undefined;
310
+ mandatory?: boolean | undefined;
311
+ page: string;
312
+ componentType: "CheckboxGroup";
313
+ responses: {
314
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
315
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
316
+ response: import("../../type-source").ResponseType;
317
+ id: string;
318
+ }[];
319
+ } | {
320
+ label: ReactNode;
321
+ description?: ReactNode;
322
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
323
+ conditionFilter?: ReactNode;
324
+ controls?: import("../../type-source").ControlType[] | undefined;
325
+ id: string;
326
+ bindingDependencies?: string[] | undefined;
327
+ hierarchy?: {
328
+ sequence: {
329
+ label: ReactNode;
330
+ id: string;
331
+ page: string;
332
+ };
333
+ subSequence?: {
334
+ label: ReactNode;
335
+ id: string;
336
+ page: string;
337
+ } | undefined;
338
+ } | undefined;
339
+ mandatory?: boolean | undefined;
340
+ page: string;
341
+ componentType: "CheckboxBoolean";
342
+ response: {
343
+ name: string;
344
+ };
345
+ missingResponse?: {
346
+ name: string;
347
+ } | undefined;
348
+ } | {
349
+ label: ReactNode;
350
+ description?: ReactNode;
351
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
352
+ conditionFilter?: ReactNode;
353
+ controls?: import("../../type-source").ControlType[] | undefined;
354
+ id: string;
355
+ bindingDependencies?: string[] | undefined;
356
+ hierarchy?: {
357
+ sequence: {
358
+ label: ReactNode;
359
+ id: string;
360
+ page: string;
361
+ };
362
+ subSequence?: {
363
+ label: ReactNode;
364
+ id: string;
365
+ page: string;
366
+ } | undefined;
367
+ } | undefined;
368
+ mandatory?: boolean | undefined;
369
+ page: string;
370
+ componentType: "Radio";
371
+ options: {
372
+ value: string;
373
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
374
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
375
+ }[];
376
+ response: {
377
+ name: string;
378
+ };
379
+ missingResponse?: {
380
+ name: string;
381
+ } | undefined;
382
+ } | {
383
+ label: ReactNode;
384
+ description?: ReactNode;
385
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
386
+ conditionFilter?: ReactNode;
387
+ controls?: import("../../type-source").ControlType[] | undefined;
388
+ id: string;
389
+ bindingDependencies?: string[] | undefined;
390
+ hierarchy?: {
391
+ sequence: {
392
+ label: ReactNode;
393
+ id: string;
394
+ page: string;
395
+ };
396
+ subSequence?: {
397
+ label: ReactNode;
398
+ id: string;
399
+ page: string;
400
+ } | undefined;
401
+ } | undefined;
402
+ mandatory?: boolean | undefined;
403
+ page: string;
404
+ componentType: "FilterDescription";
405
+ filterDescription: boolean;
406
+ } | {
407
+ label: ReactNode;
408
+ description?: ReactNode;
409
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
410
+ conditionFilter?: ReactNode;
411
+ controls?: import("../../type-source").ControlType[] | undefined;
412
+ id: string;
413
+ bindingDependencies?: string[] | undefined;
414
+ hierarchy?: {
415
+ sequence: {
416
+ label: ReactNode;
417
+ id: string;
418
+ page: string;
419
+ };
420
+ subSequence?: {
421
+ label: ReactNode;
422
+ id: string;
423
+ page: string;
424
+ } | undefined;
425
+ } | undefined;
426
+ mandatory?: boolean | undefined;
427
+ page: string;
428
+ componentType: "Dropdown";
429
+ options: {
430
+ value: string;
431
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
432
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
433
+ }[];
434
+ response: {
435
+ name: string;
436
+ };
437
+ missingResponse?: {
438
+ name: string;
439
+ } | undefined;
440
+ } | {
441
+ description?: ReactNode;
442
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
443
+ conditionFilter?: ReactNode;
444
+ controls?: import("../../type-source").ControlType[] | undefined;
445
+ id: string;
446
+ bindingDependencies?: string[] | undefined;
447
+ hierarchy?: {
448
+ sequence: {
449
+ label: ReactNode;
450
+ id: string;
451
+ page: string;
452
+ };
453
+ subSequence?: {
454
+ label: ReactNode;
455
+ id: string;
456
+ page: string;
457
+ } | undefined;
458
+ } | undefined;
459
+ mandatory?: boolean | undefined;
460
+ page: string;
461
+ componentType: "PairwiseLinks";
462
+ xAxisIterations: ReactNode;
463
+ yAxisIterations: ReactNode;
464
+ symLinks: {
465
+ [x: string]: {
466
+ [x: string]: string | null;
467
+ };
468
+ };
469
+ components: import("../../type-source").ComponentType[];
470
+ } | {
471
+ label: ReactNode;
472
+ description?: ReactNode;
473
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
474
+ conditionFilter?: ReactNode;
475
+ controls?: import("../../type-source").ControlType[] | undefined;
476
+ id: string;
477
+ bindingDependencies?: string[] | undefined;
478
+ hierarchy?: {
479
+ sequence: {
480
+ label: ReactNode;
481
+ id: string;
482
+ page: string;
483
+ };
484
+ subSequence?: {
485
+ label: ReactNode;
486
+ id: string;
487
+ page: string;
488
+ } | undefined;
489
+ } | undefined;
490
+ mandatory?: boolean | undefined;
491
+ page: string;
492
+ componentType: "Roundabout";
493
+ components: import("../../type-source").ComponentType[];
494
+ iterations: ReactNode;
495
+ locked: boolean;
496
+ expressions: {
497
+ [x: string]: ReactNode;
498
+ };
499
+ } | {
500
+ label: ReactNode;
501
+ description?: ReactNode;
502
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
503
+ conditionFilter?: ReactNode;
504
+ controls?: import("../../type-source").ControlType[] | undefined;
505
+ id: string;
506
+ bindingDependencies?: string[] | undefined;
507
+ hierarchy?: {
508
+ sequence: {
509
+ label: ReactNode;
510
+ id: string;
511
+ page: string;
512
+ };
513
+ subSequence?: {
514
+ label: ReactNode;
515
+ id: string;
516
+ page: string;
517
+ } | undefined;
518
+ } | undefined;
519
+ mandatory?: boolean | undefined;
520
+ page: string;
521
+ componentType: "Suggester";
522
+ storeName: string;
523
+ response: {
524
+ name: string;
525
+ };
526
+ arbitrary?: {
527
+ response: {
528
+ name: string;
529
+ };
530
+ } | undefined;
531
+ optionResponses: {
532
+ name: string;
533
+ attribute: string;
534
+ }[];
535
+ } | {
536
+ label: ReactNode;
537
+ description?: ReactNode;
538
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
539
+ conditionFilter?: ReactNode;
540
+ controls?: import("../../type-source").ControlType[] | undefined;
541
+ id: string;
542
+ bindingDependencies?: string[] | undefined;
543
+ hierarchy?: {
544
+ sequence: {
545
+ label: ReactNode;
546
+ id: string;
547
+ page: string;
548
+ };
549
+ subSequence?: {
550
+ label: ReactNode;
551
+ id: string;
552
+ page: string;
553
+ } | undefined;
554
+ } | undefined;
555
+ mandatory?: boolean | undefined;
556
+ page: string;
557
+ componentType: "Input" | "Textarea";
558
+ maxLength: number;
559
+ missingResponse?: {
560
+ name: string;
561
+ } | undefined;
562
+ response: {
563
+ name: string;
564
+ };
565
+ } | {
566
+ label: ReactNode;
567
+ description?: ReactNode;
568
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
569
+ conditionFilter?: ReactNode;
570
+ controls?: import("../../type-source").ControlType[] | undefined;
571
+ id: string;
572
+ bindingDependencies?: string[] | undefined;
573
+ hierarchy?: {
574
+ sequence: {
575
+ label: ReactNode;
576
+ id: string;
577
+ page: string;
578
+ };
579
+ subSequence?: {
580
+ label: ReactNode;
581
+ id: string;
582
+ page: string;
583
+ } | undefined;
584
+ } | undefined;
585
+ mandatory?: boolean | undefined;
586
+ page: string;
587
+ componentType: "CheckboxOne";
588
+ response: {
589
+ name: string;
590
+ };
591
+ missingResponse?: {
592
+ name: string;
593
+ } | undefined;
594
+ options: {
595
+ value: string;
596
+ label: import("../../type-source").LabelType<"VTL" | "VTL|MD">;
597
+ description?: import("../../type-source").LabelType<"VTL" | "VTL|MD"> | undefined;
598
+ }[];
599
+ } | {
600
+ label: ReactNode;
601
+ description: ReactNode;
602
+ declarations?: import("../../type-source").DeclarationType[] | undefined;
603
+ conditionFilter?: ReactNode;
604
+ controls?: import("../../type-source").ControlType[] | undefined;
605
+ id: string;
606
+ bindingDependencies?: string[] | undefined;
607
+ hierarchy?: {
608
+ sequence: {
609
+ label: ReactNode;
610
+ id: string;
611
+ page: string;
612
+ };
613
+ subSequence?: {
614
+ label: ReactNode;
615
+ id: string;
616
+ page: string;
617
+ } | undefined;
618
+ } | undefined;
619
+ mandatory?: boolean | undefined;
620
+ page: string;
621
+ componentType: "Question";
622
+ components: import("../../type-source").ComponentType[];
623
+ };
@@ -3,17 +3,11 @@ import { firstValueItem } from '../../../utils/array';
3
3
  const VTL_ATTRIBUTES = [
4
4
  'label',
5
5
  'options.label',
6
- 'responses.label',
7
- 'hierarchy.label',
8
- 'hierarchy.sequence.label',
9
- 'hierarchy.subSequence.label',
10
6
  'declarations.label',
11
7
  'description',
8
+ 'responses.label',
12
9
  'responses.description',
13
10
  'options.description',
14
- // Disable controls compilation
15
- // 'controls.control',
16
- // 'controls.errorMessage',
17
11
  'controls.iterations',
18
12
  'lines.min',
19
13
  'lines.max',
@@ -88,18 +82,18 @@ function createCrawl({ executeExpression, iteration, linksIterations, }) {
88
82
  }
89
83
  function fillAttributes(component, { executeExpression, iteration, linksIterations, }) {
90
84
  const crawl = createCrawl({ executeExpression, iteration, linksIterations });
91
- return VTL_ATTRIBUTES.reduce(function (step, fullStringPath) {
85
+ return VTL_ATTRIBUTES.reduce((acc, fullStringPath) => {
92
86
  const path = fullStringPath.split('.');
93
87
  return {
94
- ...step,
95
- ...crawl(path, step),
88
+ ...acc,
89
+ ...crawl(path, acc),
96
90
  };
97
- }, { ...component });
91
+ }, component); // This is too dynamic to be typed correctly, in the future we would like to type each call to executeExpression
98
92
  }
99
93
  /**
100
94
  * Fill props interpreting VTL expression
101
95
  */
102
- function fillComponentExpressions(component, state) {
96
+ export function fillComponentExpressions(component, state) {
103
97
  const { pager, executeExpression } = state;
104
98
  const { iteration, linksIterations } = pager;
105
99
  return fillAttributes(component, {
@@ -108,5 +102,4 @@ function fillComponentExpressions(component, state) {
108
102
  linksIterations,
109
103
  });
110
104
  }
111
- export default fillComponentExpressions;
112
105
  //# sourceMappingURL=fill-component-expressions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fill-component-expressions.js","sourceRoot":"","sources":["../../../../src/use-lunatic/commons/fill-components/fill-component-expressions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAMpD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,cAAc,GAAG;IACtB,OAAO;IACP,eAAe;IACf,iBAAiB;IACjB,iBAAiB;IACjB,0BAA0B;IAC1B,6BAA6B;IAC7B,oBAAoB;IACpB,aAAa;IACb,uBAAuB;IACvB,qBAAqB;IACrB,+BAA+B;IAC/B,sB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EAAE,eAAe,EAAE,CAAC,CAAC;IAC7E,OAAO,cAAc,CAAC,MAAM,CAC3B,UAAU,IAAI,EAAE,cAAsB;QACrC,MAAM,IAAI,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACvC,OAAO;YACN,GAAG,IAAI;YACP,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC;SACpB,CAAC;IACH,CAAC,EACD,EAAE,GAAG,SAAS,EAAsB,CACpC,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,wBAAwB,CAChC,SAAqC,EACrC,KAGC;IAED,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAC7C,OAAO,cAAc,CAAC,SAAS,EAAE;QAChC,iBAAiB;QACjB,SAAS;QACT,eAAe;KACf,CAAC,CAAC;AACJ,CAAC;AAED,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"fill-component-expressions.js","sourceRoot":"","sources":["../../../../src/use-lunatic/commons/fill-components/fill-component-expressions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAOpD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,cAAc,GAAG;IACtB,OAAO;IACP,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,iBAAiB;IACjB,uBAAuB;IACvB,qBAAqB;IACrB,qBAAqB;IACrB,WAAW;IACX,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,UAAU;IACV,UAAU;IACV,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;CACtB,CAAC;AAcF,SAAS,WAAW,CAAC,EACpB,iBAAiB,EACjB,SAAS,EACT,eAAe,GACJ;IACX;;OAEG;IACH,SAAS,oBAAoB,CAAC,MAA+B,EAAE,IAAY;Q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I,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CACvC,SAAqC,EACrC,KAGC;IAED,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAC7C,OAAO,cAAc,CAAC,SAAS,EAAE;QAChC,iBAAiB;QACjB,SAAS;QACT,eAAe;KACf,CAAC,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, test } from 'vitest';
2
- import fillComponentExpressions from './fill-component-expressions';
2
+ import { fillComponentExpressions } from './fill-component-expressions';
3
3
  describe('fillComponentExpressions', () => {
4
4
  const exp = (s) => ({ value: s, type: 'VTL' });
5
5
  const component = {