@inseefr/lunatic 3.4.14 → 3.4.16

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 (209) hide show
  1. package/components/shared/Label/Label.js +1 -1
  2. package/components/shared/Label/Label.js.map +1 -1
  3. package/components/shared/Label/Label.spec.js +11 -3
  4. package/components/shared/Label/Label.spec.js.map +1 -1
  5. package/esm/components/shared/Label/Label.js +1 -1
  6. package/esm/components/shared/Label/Label.js.map +1 -1
  7. package/esm/components/shared/Label/Label.spec.js +11 -3
  8. package/esm/components/shared/Label/Label.spec.js.map +1 -1
  9. package/esm/stories/overview/sourceWithHierarchy.json +5151 -0
  10. package/esm/tests/utils/lunatic.d.ts +0 -4
  11. package/esm/tests/utils/lunatic.js +0 -4
  12. package/esm/tests/utils/lunatic.js.map +1 -1
  13. package/esm/type.source.d.ts +1 -5
  14. package/esm/use-lunatic/commons/variables/get-questionnaire-data.js +0 -8
  15. package/esm/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -1
  16. package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js +0 -8
  17. package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
  18. package/esm/use-lunatic/hooks/useOverview.d.ts +1 -1
  19. package/esm/use-lunatic/hooks/useOverview.js +19 -14
  20. package/esm/use-lunatic/hooks/useOverview.js.map +1 -1
  21. package/esm/use-lunatic/hooks/useOverview.spec.d.ts +1 -0
  22. package/esm/use-lunatic/hooks/useOverview.spec.js +38 -0
  23. package/esm/use-lunatic/hooks/useOverview.spec.js.map +1 -0
  24. package/esm/use-lunatic/test.utils.d.ts +2 -0
  25. package/esm/use-lunatic/test.utils.js +13 -0
  26. package/esm/use-lunatic/test.utils.js.map +1 -0
  27. package/esm/use-lunatic/type.d.ts +0 -4
  28. package/esm/utils/constants/variable-status.d.ts +0 -4
  29. package/esm/utils/constants/variable-status.js +0 -4
  30. package/esm/utils/constants/variable-status.js.map +1 -1
  31. package/esm/utils/variables.spec.js +0 -8
  32. package/esm/utils/variables.spec.js.map +1 -1
  33. package/package.json +17 -57
  34. package/src/components/Input/__snapshots__/Input.spec.tsx.snap +11 -0
  35. package/src/components/shared/Label/Label.spec.tsx +15 -3
  36. package/src/components/shared/Label/Label.tsx +1 -1
  37. package/src/stories/accordion/source.json +1 -5
  38. package/src/stories/behaviour/cleaning/source-loop.json +3 -15
  39. package/src/stories/behaviour/cleaning/source.json +2 -10
  40. package/src/stories/behaviour/controls/boucles-n.json +2 -10
  41. package/src/stories/behaviour/controls/loop.json +2 -10
  42. package/src/stories/behaviour/controls/roundabout.json +3 -15
  43. package/src/stories/behaviour/controls/simple-numeric.json +19 -95
  44. package/src/stories/behaviour/controls/simple.json +7 -35
  45. package/src/stories/behaviour/filter/dataLoop.json +0 -8
  46. package/src/stories/behaviour/filter/source.json +0 -12
  47. package/src/stories/behaviour/filter/sourceLoop.json +0 -12
  48. package/src/stories/behaviour/missing/source.json +12 -60
  49. package/src/stories/behaviour/others/V2_DeclarationsSimples.json +14 -70
  50. package/src/stories/behaviour/others/V2_MinMaxSum_Boucles.json +5 -25
  51. package/src/stories/behaviour/others/V2_QuestSimple_Boucles.json +107 -535
  52. package/src/stories/behaviour/others/V2_TCMRallyeGames.json +33 -165
  53. package/src/stories/behaviour/others/test-dylan.json +5 -25
  54. package/src/stories/behaviour/paste/source.json +1 -5
  55. package/src/stories/behaviour/performance/source.json +4 -20
  56. package/src/stories/behaviour/resizing/source-resizing-cleaning.json +2 -10
  57. package/src/stories/behaviour/resizing/source.json +5 -25
  58. package/src/stories/checkbox-boolean/source.json +1 -5
  59. package/src/stories/checkbox-group/source.json +16 -80
  60. package/src/stories/checkbox-group/sourceCondition.json +3 -15
  61. package/src/stories/checkbox-group/sourceDetail.json +18 -90
  62. package/src/stories/checkbox-group/sourceLoop.json +2 -10
  63. package/src/stories/checkbox-one/source.json +1 -5
  64. package/src/stories/checkbox-one/sourceDetail.json +2 -10
  65. package/src/stories/date-picker/source.json +1 -5
  66. package/src/stories/declaration/source.json +2 -10
  67. package/src/stories/disabled/data.json +0 -16
  68. package/src/stories/disabled/source.json +7 -35
  69. package/src/stories/dropdown/data.json +2 -10
  70. package/src/stories/dropdown/source.json +2 -10
  71. package/src/stories/duration/mois.json +1 -5
  72. package/src/stories/duration/time.json +1 -5
  73. package/src/stories/filter-description/source-options.json +3 -15
  74. package/src/stories/input/source.json +1 -5
  75. package/src/stories/input-number/source-big-number.json +1 -5
  76. package/src/stories/input-number/source-euro.json +1 -5
  77. package/src/stories/input-number/source.json +1 -5
  78. package/src/stories/loop/source-bloc.json +2 -10
  79. package/src/stories/loop/source-paginated.json +2 -10
  80. package/src/stories/loop/source-roster.json +2 -10
  81. package/src/stories/loop/source-with-header.json +2 -10
  82. package/src/stories/overview/dataLoop.json +24 -120
  83. package/src/stories/overview/overview.stories.jsx +9 -0
  84. package/src/stories/overview/source.json +1 -5
  85. package/src/stories/overview/sourceLoop.json +24 -120
  86. package/src/stories/overview/sourceWithHierarchy.json +164 -820
  87. package/src/stories/pairwise/source.json +5 -25
  88. package/src/stories/question/source.json +2 -10
  89. package/src/stories/questionnaires/logement/data.json +0 -1288
  90. package/src/stories/questionnaires/logement/source-sequence.json +564 -2820
  91. package/src/stories/questionnaires/logement/source-sum.json +280 -1400
  92. package/src/stories/questionnaires/logement/source.json +564 -2820
  93. package/src/stories/questionnaires/recensement/source.json +106 -530
  94. package/src/stories/questionnaires/rp/source.json +8 -40
  95. package/src/stories/questionnaires/simpsons/source.json +104 -520
  96. package/src/stories/radio/source.json +1 -5
  97. package/src/stories/radio/sourceCondition.json +2 -10
  98. package/src/stories/radio/sourceDetail.json +2 -10
  99. package/src/stories/radio/sourceHorizontal.json +1 -5
  100. package/src/stories/roundabout/data1.json +0 -12
  101. package/src/stories/roundabout/data2.json +0 -16
  102. package/src/stories/roundabout/source.json +7 -35
  103. package/src/stories/suggester/source-arbitrary-response.json +6 -30
  104. package/src/stories/suggester/source-error.json +6 -30
  105. package/src/stories/suggester/source-multiline.json +0 -16
  106. package/src/stories/suggester/source-option-responses.json +5 -25
  107. package/src/stories/suggester/source.json +7 -35
  108. package/src/stories/summary/data.json +0 -16
  109. package/src/stories/summary/source.json +7 -35
  110. package/src/stories/switch/data-forced.json +2 -10
  111. package/src/stories/switch/source.json +4 -20
  112. package/src/stories/table/source-colspan.json +8 -40
  113. package/src/stories/table/table-dynamique.json +1 -5
  114. package/src/stories/text/source-roster.json +3 -15
  115. package/src/stories/text/source-table.json +9 -45
  116. package/src/stories/textarea/source.json +1 -5
  117. package/src/tests/utils/lunatic.ts +0 -4
  118. package/src/type.source.ts +1 -5
  119. package/src/use-lunatic/__snapshots__/use-lunatic.test.ts.snap +0 -1159
  120. package/src/use-lunatic/commons/variables/get-questionnaire-data.ts +0 -12
  121. package/src/use-lunatic/commons/variables/lunatic-variables-store.spec.ts +0 -8
  122. package/src/use-lunatic/hooks/useOverview.spec.ts +42 -0
  123. package/src/use-lunatic/hooks/useOverview.ts +41 -18
  124. package/src/use-lunatic/test.utils.ts +17 -0
  125. package/src/use-lunatic/type.ts +0 -4
  126. package/src/use-lunatic/use-lunatic.test.ts +2 -21
  127. package/src/utils/constants/variable-status.ts +0 -4
  128. package/src/utils/variables.spec.ts +0 -8
  129. package/stories/overview/sourceWithHierarchy.json +5151 -0
  130. package/tests/utils/lunatic.d.ts +0 -4
  131. package/tests/utils/lunatic.js +0 -4
  132. package/tests/utils/lunatic.js.map +1 -1
  133. package/tsconfig.build.tsbuildinfo +1 -1
  134. package/type.source.d.ts +1 -5
  135. package/use-lunatic/commons/variables/get-questionnaire-data.js +0 -8
  136. package/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -1
  137. package/use-lunatic/commons/variables/lunatic-variables-store.spec.js +0 -8
  138. package/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
  139. package/use-lunatic/hooks/useOverview.d.ts +1 -1
  140. package/use-lunatic/hooks/useOverview.js +19 -14
  141. package/use-lunatic/hooks/useOverview.js.map +1 -1
  142. package/use-lunatic/hooks/useOverview.spec.d.ts +1 -0
  143. package/use-lunatic/hooks/useOverview.spec.js +43 -0
  144. package/use-lunatic/hooks/useOverview.spec.js.map +1 -0
  145. package/use-lunatic/test.utils.d.ts +2 -0
  146. package/use-lunatic/test.utils.js +17 -0
  147. package/use-lunatic/test.utils.js.map +1 -0
  148. package/use-lunatic/type.d.ts +0 -4
  149. package/utils/constants/variable-status.d.ts +0 -4
  150. package/utils/constants/variable-status.js +1 -5
  151. package/utils/constants/variable-status.js.map +1 -1
  152. package/utils/variables.spec.js +0 -8
  153. package/utils/variables.spec.js.map +1 -1
  154. package/constants/component-types.d.ts +0 -1
  155. package/constants/component-types.js +0 -5
  156. package/constants/component-types.js.map +0 -1
  157. package/constants/declarations.d.ts +0 -9
  158. package/constants/declarations.js +0 -15
  159. package/constants/declarations.js.map +0 -1
  160. package/constants/event-types.d.ts +0 -10
  161. package/constants/event-types.js +0 -16
  162. package/constants/event-types.js.map +0 -1
  163. package/constants/index.d.ts +0 -5
  164. package/constants/index.js +0 -22
  165. package/constants/index.js.map +0 -1
  166. package/constants/indexedDBStore.d.ts +0 -21
  167. package/constants/indexedDBStore.js +0 -22
  168. package/constants/indexedDBStore.js.map +0 -1
  169. package/constants/supported-preferences.d.ts +0 -1
  170. package/constants/supported-preferences.js +0 -36
  171. package/constants/supported-preferences.js.map +0 -1
  172. package/constants/value-types.d.ts +0 -5
  173. package/constants/value-types.js +0 -9
  174. package/constants/value-types.js.map +0 -1
  175. package/constants/variable-types.d.ts +0 -2
  176. package/constants/variable-types.js +0 -8
  177. package/constants/variable-types.js.map +0 -1
  178. package/esm/constants/component-types.d.ts +0 -1
  179. package/esm/constants/component-types.js +0 -2
  180. package/esm/constants/component-types.js.map +0 -1
  181. package/esm/constants/declarations.d.ts +0 -9
  182. package/esm/constants/declarations.js +0 -12
  183. package/esm/constants/declarations.js.map +0 -1
  184. package/esm/constants/event-types.d.ts +0 -10
  185. package/esm/constants/event-types.js +0 -13
  186. package/esm/constants/event-types.js.map +0 -1
  187. package/esm/constants/index.d.ts +0 -5
  188. package/esm/constants/index.js +0 -6
  189. package/esm/constants/index.js.map +0 -1
  190. package/esm/constants/indexedDBStore.d.ts +0 -21
  191. package/esm/constants/indexedDBStore.js +0 -19
  192. package/esm/constants/indexedDBStore.js.map +0 -1
  193. package/esm/constants/supported-preferences.d.ts +0 -1
  194. package/esm/constants/supported-preferences.js +0 -10
  195. package/esm/constants/supported-preferences.js.map +0 -1
  196. package/esm/constants/value-types.d.ts +0 -5
  197. package/esm/constants/value-types.js +0 -6
  198. package/esm/constants/value-types.js.map +0 -1
  199. package/esm/constants/variable-types.d.ts +0 -2
  200. package/esm/constants/variable-types.js +0 -5
  201. package/esm/constants/variable-types.js.map +0 -1
  202. package/src/constants/component-types.ts +0 -1
  203. package/src/constants/declarations.ts +0 -14
  204. package/src/constants/event-types.ts +0 -13
  205. package/src/constants/index.ts +0 -5
  206. package/src/constants/indexedDBStore.ts +0 -20
  207. package/src/constants/supported-preferences.ts +0 -10
  208. package/src/constants/value-types.ts +0 -5
  209. package/src/constants/variable-types.ts +0 -4
@@ -13,10 +13,6 @@ export function getQuestionnaireData(
13
13
  COLLECTED: {} as Record<
14
14
  string,
15
15
  {
16
- EDITED: unknown;
17
- FORCED: unknown;
18
- INPUTTED: unknown;
19
- PREVIOUS: unknown;
20
16
  COLLECTED: unknown;
21
17
  }
22
18
  >,
@@ -34,10 +30,6 @@ export function getQuestionnaireData(
34
30
  variableNames.map((name) => [
35
31
  name,
36
32
  {
37
- EDITED: null,
38
- FORCED: null,
39
- INPUTTED: null,
40
- PREVIOUS: null,
41
33
  COLLECTED: store.get(name),
42
34
  },
43
35
  ])
@@ -53,10 +45,6 @@ export function getQuestionnaireData(
53
45
 
54
46
  if (variable.variableType === 'COLLECTED') {
55
47
  result.COLLECTED[variable.name] = {
56
- PREVIOUS: null,
57
- FORCED: null,
58
- EDITED: null,
59
- INPUTTED: null,
60
48
  ...variable.values,
61
49
  COLLECTED: store.get(variable.name),
62
50
  };
@@ -449,10 +449,6 @@ describe('lunatic-variables-store', () => {
449
449
  {
450
450
  name: 'PRENOM',
451
451
  values: {
452
- EDITED: null,
453
- FORCED: null,
454
- INPUTTED: null,
455
- PREVIOUS: null,
456
452
  COLLECTED: 'John',
457
453
  },
458
454
  variableType: 'COLLECTED',
@@ -460,10 +456,6 @@ describe('lunatic-variables-store', () => {
460
456
  {
461
457
  name: 'NOM',
462
458
  values: {
463
- EDITED: null,
464
- FORCED: null,
465
- INPUTTED: null,
466
- PREVIOUS: null,
467
459
  COLLECTED: '',
468
460
  },
469
461
  variableType: 'COLLECTED',
@@ -0,0 +1,42 @@
1
+ import { renderHook } from '@testing-library/react';
2
+ import { describe, expect, it } from 'vitest';
3
+ import source from '../../stories/overview/sourceWithHierarchy.json';
4
+ import { useLunatic } from '../use-lunatic';
5
+ import { dataFromObject } from '../test.utils';
6
+
7
+ describe('use-overview test with useLunatic()', () => {
8
+ it('should initialize correctly with disableFilters: false (without data)', () => {
9
+ const params = [
10
+ source as any,
11
+ dataFromObject({}),
12
+ { withOverview: true },
13
+ ] as const;
14
+ const { result } = renderHook(() => useLunatic(...params));
15
+ expect(result.current.overview.length).toBe(3);
16
+ });
17
+
18
+ it('should initialize correctly with disableFilters: false (with data)', () => {
19
+ const params = [
20
+ source as any,
21
+ dataFromObject({
22
+ READY: true,
23
+ }),
24
+ { withOverview: true },
25
+ ] as const;
26
+
27
+ const { result } = renderHook(() => useLunatic(...params));
28
+ expect(result.current.overview.length).toBe(9);
29
+ });
30
+
31
+ it('should initialize correctly with disableFilters: true (without data)', () => {
32
+ const params = [
33
+ source as any,
34
+ dataFromObject({}),
35
+ { withOverview: true, disableFilters: true },
36
+ ] as const;
37
+
38
+ const { result } = renderHook(() => useLunatic(...params));
39
+ // All elements have to be presents
40
+ expect(result.current.overview.length).toBe(9);
41
+ });
42
+ });
@@ -1,4 +1,5 @@
1
1
  import type {
2
+ LunaticOptions,
2
3
  LunaticOverviewItem,
3
4
  LunaticReducerState,
4
5
  PageTag,
@@ -25,13 +26,23 @@ export const useOverview = (
25
26
  overview,
26
27
  executeExpression,
27
28
  pager,
28
- }: Pick<LunaticReducerState, 'executeExpression' | 'overview' | 'pager'>,
29
+ options,
30
+ }: Pick<
31
+ LunaticReducerState,
32
+ 'executeExpression' | 'overview' | 'pager' | 'options'
33
+ >,
29
34
  deps: DependencyList
30
35
  ) => {
31
36
  return useMemo(
32
- () => interpretOverview(overview, executeExpression, pager),
37
+ () =>
38
+ interpretOverview(
39
+ overview,
40
+ executeExpression,
41
+ pager,
42
+ options.disableFilters
43
+ ),
33
44
  // eslint-disable-next-line react-hooks/exhaustive-deps
34
- [...deps, overview]
45
+ [...deps, overview, options.disableFilters]
35
46
  );
36
47
  };
37
48
 
@@ -41,11 +52,16 @@ export const useOverview = (
41
52
  const interpretOverview = (
42
53
  overviewItems: LunaticOverviewItem[],
43
54
  executeExpression: LunaticReducerState['executeExpression'],
44
- pager?: LunaticReducerState['pager']
55
+ pager?: LunaticReducerState['pager'],
56
+ disableFilters?: LunaticOptions['disableFilters']
45
57
  ) => {
46
58
  // Flat structure of the overview
47
59
  let items = overviewItems.reduce(
48
- (acc, item) => interpretOverviewItem(acc, item, executeExpression, pager),
60
+ (acc, item) =>
61
+ interpretOverviewItem(acc, item, executeExpression, {
62
+ pager,
63
+ disableFilters,
64
+ }),
49
65
  [] as InterpretedLunaticOverviewItem[]
50
66
  );
51
67
  // Sort using the page logic
@@ -77,7 +93,11 @@ const interpretOverviewItem = (
77
93
  items: InterpretedLunaticOverviewItem[],
78
94
  item: LunaticOverviewItem,
79
95
  executeExpression: LunaticReducerState['executeExpression'],
80
- pager?: LunaticReducerState['pager'],
96
+ state: {
97
+ pager?: LunaticReducerState['pager'];
98
+ disableFilters?: LunaticOptions['disableFilters'];
99
+ },
100
+
81
101
  iteration?: number
82
102
  ): InterpretedLunaticOverviewItem[] => {
83
103
  // We reached a loop item, we need to add it multiple time
@@ -85,19 +105,21 @@ const interpretOverviewItem = (
85
105
  const iterations = executeExpression<number>(item.iterations) ?? 0;
86
106
  return Array.from({ length: iterations }).reduce(
87
107
  (acc: InterpretedLunaticOverviewItem[], _, k) => {
88
- return interpretOverviewItem(acc, item, executeExpression, pager, k);
108
+ return interpretOverviewItem(acc, item, executeExpression, state, k);
89
109
  },
90
110
  items
91
111
  );
92
112
  }
93
113
 
94
- const isVisible = item.conditionFilter
95
- ? Boolean(
96
- executeExpression(item.conditionFilter, {
97
- iteration: iteration,
98
- })
99
- )
100
- : true;
114
+ // if disableFilters is set to true, item are visible and reached by default
115
+ const isVisible = (() => {
116
+ if (state.disableFilters || !item.conditionFilter) return true;
117
+ return Boolean(
118
+ executeExpression(item.conditionFilter, {
119
+ iteration: iteration,
120
+ })
121
+ );
122
+ })();
101
123
 
102
124
  if (!isVisible) {
103
125
  return items;
@@ -106,6 +128,10 @@ const interpretOverviewItem = (
106
128
  // Append the item to the list of items
107
129
  const page =
108
130
  `${item.pageTag}${iteration !== undefined ? `#${iteration + 1}` : ''}` as PageTag;
131
+
132
+ const reached =
133
+ pageTagComparator(state.pager ? getPageTag(state.pager) : '-1', page) >= 0;
134
+
109
135
  return [
110
136
  ...items,
111
137
  {
@@ -116,10 +142,7 @@ const interpretOverviewItem = (
116
142
  ? executeExpression(item.description, { iteration })
117
143
  : undefined,
118
144
  children: [],
119
- reached:
120
- pageTagComparator(pager ? getPageTag(pager) : '-1', page) >= 0
121
- ? true
122
- : false,
145
+ reached: reached,
123
146
  page: page,
124
147
  current: false,
125
148
  },
@@ -0,0 +1,17 @@
1
+ import { LunaticData } from './type';
2
+
3
+ export const dataFromObject = (o: Record<string, unknown>): LunaticData => {
4
+ return {
5
+ EXTERNAL: {},
6
+ COLLECTED: Object.keys(o).reduce(
7
+ (acc, k) => ({
8
+ ...acc,
9
+ [k]: {
10
+ COLLECTED: o[k],
11
+ },
12
+ }),
13
+ {}
14
+ ),
15
+ CALCULATED: {},
16
+ };
17
+ };
@@ -74,10 +74,6 @@ export type PageTag = `${number}.${number}#${number}` | `${number}`;
74
74
  export type LunaticVariable = Variable;
75
75
  export type LunaticCollectedValue = Partial<{
76
76
  COLLECTED: unknown;
77
- EDITED: unknown;
78
- FORCED: unknown;
79
- INPUTTED: unknown;
80
- PREVIOUS: unknown;
81
77
  }>;
82
78
 
83
79
  // We need a mapped type to correlate type and variableType
@@ -9,29 +9,10 @@ import sourceCheckboxGroup from '../stories/checkbox-group/source.json';
9
9
  import dataOverview from '../stories/overview/dataLoop.json';
10
10
  import sourceCleaningLoop from '../stories/behaviour/cleaning/source-loop.json';
11
11
  import sourceCleaningResizing from '../stories/behaviour/resizing/source-resizing-cleaning.json';
12
- import type { LunaticData, PageTag } from './type';
12
+ import type { PageTag } from './type';
13
13
  import { useLunatic } from './use-lunatic';
14
14
  import { useCallback } from 'react';
15
-
16
- const dataFromObject = (o: Record<string, unknown>): LunaticData => {
17
- return {
18
- EXTERNAL: {},
19
- COLLECTED: Object.keys(o).reduce(
20
- (acc, k) => ({
21
- ...acc,
22
- [k]: {
23
- EDITED: null,
24
- FORCED: null,
25
- INPUTTED: null,
26
- PREVIOUS: null,
27
- COLLECTED: o[k],
28
- },
29
- }),
30
- {}
31
- ),
32
- CALCULATED: {},
33
- };
34
- };
15
+ import { dataFromObject } from './test.utils';
35
16
 
36
17
  describe('use-lunatic()', () => {
37
18
  const defaultParams = [
@@ -1,5 +1 @@
1
- export const PREVIOUS = 'PREVIOUS' as const;
2
1
  export const COLLECTED = 'COLLECTED' as const;
3
- export const FORCED = 'FORCED' as const;
4
- export const EDITED = 'EDITED' as const;
5
- export const INPUTTED = 'INPUTTED' as const;
@@ -15,10 +15,6 @@ const data = {
15
15
  },
16
16
  PRENOMS: {
17
17
  COLLECTED: ['Paul', 'Pierre'],
18
- EDITED: [],
19
- INPUTTED: [],
20
- FORCED: [],
21
- PREVIOUS: [],
22
18
  },
23
19
  AGE: {},
24
20
  },
@@ -49,10 +45,6 @@ const loopCollectedVariable = {
49
45
  variableType: 'COLLECTED',
50
46
  values: {
51
47
  COLLECTED: [],
52
- PREVIOUS: [],
53
- FORCED: [],
54
- EDITED: [],
55
- INPUTTED: [],
56
48
  },
57
49
  name: 'PRENOMS',
58
50
  } as LunaticVariable;