@inseefr/lunatic 3.5.3 → 3.5.4
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/components/Input/Input.spec.js +6 -0
- package/components/Input/Input.spec.js.map +1 -1
- package/components/InputNumber/InputNumber.spec.js +6 -0
- package/components/InputNumber/InputNumber.spec.js.map +1 -1
- package/components/InputNumber/InputNumberThousand.js +1 -1
- package/components/InputNumber/InputNumberThousand.js.map +1 -1
- package/components/Textarea/Textarea.js +1 -1
- package/components/Textarea/Textarea.js.map +1 -1
- package/components/Textarea/Textarea.spec.js +7 -0
- package/components/Textarea/Textarea.spec.js.map +1 -1
- package/esm/components/Input/Input.spec.js +6 -0
- package/esm/components/Input/Input.spec.js.map +1 -1
- package/esm/components/InputNumber/InputNumber.spec.js +6 -0
- package/esm/components/InputNumber/InputNumber.spec.js.map +1 -1
- package/esm/components/InputNumber/InputNumberThousand.js +1 -1
- package/esm/components/InputNumber/InputNumberThousand.js.map +1 -1
- package/esm/components/Textarea/Textarea.js +1 -1
- package/esm/components/Textarea/Textarea.js.map +1 -1
- package/esm/components/Textarea/Textarea.spec.js +7 -0
- package/esm/components/Textarea/Textarea.spec.js.map +1 -1
- package/esm/hooks/use-track-changes.js +2 -1
- package/esm/hooks/use-track-changes.js.map +1 -1
- package/esm/stories/overview/sourceWithHierarchy.json +32 -32
- package/esm/type.source.d.ts +1 -1
- package/esm/use-lunatic/commons/fill-components/fill-component.spec.js +1 -1
- package/esm/use-lunatic/commons/fill-components/fill-component.spec.js.map +1 -1
- package/esm/use-lunatic/commons/fill-components/fill-components.js +1 -1
- package/esm/use-lunatic/commons/fill-components/fill-components.js.map +1 -1
- package/esm/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +11 -7
- package/esm/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -1
- package/esm/use-lunatic/commons/variables/get-questionnaire-data.js +1 -0
- package/esm/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -1
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.d.ts +11 -1
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.js +38 -1
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -1
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js +33 -0
- package/esm/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
- package/esm/use-lunatic/reducer/reducer.js +9 -0
- package/esm/use-lunatic/reducer/reducer.js.map +1 -1
- package/esm/use-lunatic/reducer/reducerInitializer.js +1 -1
- package/esm/use-lunatic/reducer/reducerInitializer.js.map +1 -1
- package/esm/use-lunatic/type.d.ts +2 -0
- package/hooks/use-track-changes.js +2 -1
- package/hooks/use-track-changes.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Input/Input.spec.tsx +9 -0
- package/src/components/InputNumber/InputNumber.spec.tsx +9 -0
- package/src/components/InputNumber/InputNumberThousand.tsx +1 -0
- package/src/components/InputNumber/__snapshots__/InputNumber.spec.tsx.snap +2 -0
- package/src/components/Textarea/Textarea.spec.tsx +10 -0
- package/src/components/Textarea/Textarea.tsx +1 -0
- package/src/hooks/use-track-changes.ts +2 -1
- package/src/stories/behaviour/cleaning/loop.json +4 -4
- package/src/stories/behaviour/cleaning/source-loop.json +1 -1
- package/src/stories/behaviour/cleaning/source.json +2 -2
- package/src/stories/behaviour/controls/boucles-n.json +2 -2
- package/src/stories/behaviour/controls/simple-numeric.json +19 -19
- package/src/stories/behaviour/controls/simple.json +7 -7
- package/src/stories/behaviour/filter/source.json +3 -3
- package/src/stories/behaviour/filter/sourceLoop.json +3 -3
- package/src/stories/behaviour/missing/source.json +6 -6
- package/src/stories/behaviour/others/V2_DeclarationsSimples.json +14 -14
- package/src/stories/behaviour/others/V2_MinMaxSum_Boucles.json +5 -5
- package/src/stories/behaviour/others/V2_QuestSimple_Boucles.json +28 -28
- package/src/stories/behaviour/others/V2_TCMRallyeGames.json +24 -24
- package/src/stories/behaviour/others/test-dylan.json +5 -5
- package/src/stories/behaviour/resizing/source-resizing-cleaning.json +2 -2
- package/src/stories/behaviour/resizing/source.json +5 -5
- package/src/stories/checkbox-boolean/source.json +1 -1
- package/src/stories/checkbox-one/source.json +1 -1
- package/src/stories/checkbox-one/sourceDetail.json +1 -1
- package/src/stories/date-picker/source.json +1 -1
- package/src/stories/disabled/source.json +5 -5
- package/src/stories/dropdown/source.json +2 -2
- package/src/stories/duration/mois.json +1 -1
- package/src/stories/duration/time.json +1 -1
- package/src/stories/input-number/source-big-number.json +1 -1
- package/src/stories/input-number/source-euro.json +2 -2
- package/src/stories/overview/sourceLoop.json +12 -12
- package/src/stories/overview/sourceWithHierarchy.json +32 -32
- package/src/stories/question/source.json +2 -2
- package/src/stories/questionnaires/logement/source-sequence.json +216 -216
- package/src/stories/questionnaires/logement/source-sum.json +189 -189
- package/src/stories/questionnaires/logement/source.json +216 -216
- package/src/stories/questionnaires/recensement/source.json +85 -85
- package/src/stories/questionnaires/rp/source.json +8 -8
- package/src/stories/questionnaires/simpsons/source.json +34 -34
- package/src/stories/radio/source.json +1 -1
- package/src/stories/radio/sourceDetail.json +1 -1
- package/src/stories/radio/sourceHorizontal.json +1 -1
- package/src/stories/roundabout/source.json +3 -3
- package/src/stories/suggester/source-arbitrary-response.json +2 -2
- package/src/stories/suggester/source-error.json +2 -2
- package/src/stories/suggester/source-multiline.json +2 -2
- package/src/stories/suggester/source-option-responses.json +2 -2
- package/src/stories/suggester/source.json +5 -5
- package/src/stories/summary/source.json +4 -4
- package/src/stories/switch/data-forced.json +2 -2
- package/src/stories/switch/source.json +2 -2
- package/src/stories/table/source-colspan.json +1 -1
- package/src/stories/table/source.json +1 -1
- package/src/stories/table/table-dynamique.json +1 -1
- package/src/stories/text/source-roster.json +1 -1
- package/src/stories/text/source-table.json +1 -1
- package/src/type.source.ts +1 -1
- package/src/use-lunatic/commons/fill-components/fill-component.spec.ts +1 -1
- package/src/use-lunatic/commons/fill-components/fill-components.ts +1 -1
- package/src/use-lunatic/commons/variables/behaviours/resizing-behaviour.ts +14 -6
- package/src/use-lunatic/commons/variables/get-questionnaire-data.ts +1 -0
- package/src/use-lunatic/commons/variables/lunatic-variables-store.spec.ts +37 -0
- package/src/use-lunatic/commons/variables/lunatic-variables-store.ts +43 -1
- package/src/use-lunatic/reducer/reducer.ts +11 -0
- package/src/use-lunatic/reducer/reducerInitializer.tsx +2 -1
- package/src/use-lunatic/type.ts +2 -0
- package/src/use-lunatic/use-lunatic.test.ts +1 -1
- package/stories/overview/sourceWithHierarchy.json +32 -32
- package/tsconfig.build.tsbuildinfo +1 -1
- package/type.source.d.ts +1 -1
- package/use-lunatic/commons/fill-components/fill-component.spec.js +1 -1
- package/use-lunatic/commons/fill-components/fill-component.spec.js.map +1 -1
- package/use-lunatic/commons/fill-components/fill-components.js +1 -1
- package/use-lunatic/commons/fill-components/fill-components.js.map +1 -1
- package/use-lunatic/commons/variables/behaviours/resizing-behaviour.js +11 -7
- package/use-lunatic/commons/variables/behaviours/resizing-behaviour.js.map +1 -1
- package/use-lunatic/commons/variables/get-questionnaire-data.js +1 -0
- package/use-lunatic/commons/variables/get-questionnaire-data.js.map +1 -1
- package/use-lunatic/commons/variables/lunatic-variables-store.d.ts +11 -1
- package/use-lunatic/commons/variables/lunatic-variables-store.js +38 -1
- package/use-lunatic/commons/variables/lunatic-variables-store.js.map +1 -1
- package/use-lunatic/commons/variables/lunatic-variables-store.spec.js +33 -0
- package/use-lunatic/commons/variables/lunatic-variables-store.spec.js.map +1 -1
- package/use-lunatic/reducer/reducer.js +9 -0
- package/use-lunatic/reducer/reducer.js.map +1 -1
- package/use-lunatic/reducer/reducerInitializer.js +1 -1
- package/use-lunatic/reducer/reducerInitializer.js.map +1 -1
- package/use-lunatic/type.d.ts +2 -0
package/package.json
CHANGED
|
@@ -93,6 +93,15 @@ describe('Input', () => {
|
|
|
93
93
|
expect(input).toHaveValue('toto');
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
+
it('should handle required', () => {
|
|
97
|
+
const { container } = render(<Input {...baseProps} required />);
|
|
98
|
+
|
|
99
|
+
const input = container.querySelector('input[type="text"]');
|
|
100
|
+
|
|
101
|
+
expect(input).toHaveAttribute('required');
|
|
102
|
+
expect(input).toHaveAttribute('aria-required', 'true');
|
|
103
|
+
});
|
|
104
|
+
|
|
96
105
|
it('should display input value from the start when user leave input', () => {
|
|
97
106
|
const setSelectionRangeMock = vi.fn();
|
|
98
107
|
const { container } = render(<Input {...baseProps} />);
|
|
@@ -106,6 +106,15 @@ describe('InputNumber', () => {
|
|
|
106
106
|
expect(input).toHaveValue('123');
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
+
it('should handle required', () => {
|
|
110
|
+
const { container } = render(<InputNumber {...baseProps} required />);
|
|
111
|
+
|
|
112
|
+
const input = container.querySelector('input[type="text"]');
|
|
113
|
+
|
|
114
|
+
expect(input).toHaveAttribute('required');
|
|
115
|
+
expect(input).toHaveAttribute('aria-required', 'true');
|
|
116
|
+
});
|
|
117
|
+
|
|
109
118
|
it('renders with unit', () => {
|
|
110
119
|
const { container } = render(<InputNumber {...baseProps} unit="kg" />);
|
|
111
120
|
|
|
@@ -8,6 +8,7 @@ exports[`InputNumber > renders without crashing 1`] = `
|
|
|
8
8
|
<input
|
|
9
9
|
aria-invalid="false"
|
|
10
10
|
aria-labelledby="label-number"
|
|
11
|
+
aria-required="false"
|
|
11
12
|
class=""
|
|
12
13
|
id="number"
|
|
13
14
|
inputmode="numeric"
|
|
@@ -28,6 +29,7 @@ exports[`InputNumber > should handle readOnly 1`] = `
|
|
|
28
29
|
<input
|
|
29
30
|
aria-invalid="false"
|
|
30
31
|
aria-labelledby="label-number"
|
|
32
|
+
aria-required="false"
|
|
31
33
|
class=""
|
|
32
34
|
id="number"
|
|
33
35
|
inputmode="numeric"
|
|
@@ -61,4 +61,14 @@ describe('Textarea', () => {
|
|
|
61
61
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
|
|
62
62
|
);
|
|
63
63
|
});
|
|
64
|
+
|
|
65
|
+
it('should handle required', () => {
|
|
66
|
+
const { container } = render(<Textarea {...baseProps} required />);
|
|
67
|
+
|
|
68
|
+
const textarea = container.querySelector('textarea');
|
|
69
|
+
|
|
70
|
+
expect(textarea).toBeInTheDocument();
|
|
71
|
+
expect(textarea).toHaveAttribute('required');
|
|
72
|
+
expect(textarea).toHaveAttribute('aria-required', 'true');
|
|
73
|
+
});
|
|
64
74
|
});
|
|
@@ -43,13 +43,14 @@ export function useTrackChanges(
|
|
|
43
43
|
'getChangedData() cannot be used without enabling tracking mode, add "trackChanges: true" to useLunatic options'
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
|
+
store.commit();
|
|
46
47
|
const data = getDataRef.current(Array.from(changedVariables.current));
|
|
47
48
|
if (reset) {
|
|
48
49
|
resetChangedData();
|
|
49
50
|
}
|
|
50
51
|
return data;
|
|
51
52
|
},
|
|
52
|
-
[enabledRef, getDataRef, resetChangedData]
|
|
53
|
+
[enabledRef, getDataRef, resetChangedData, store]
|
|
53
54
|
);
|
|
54
55
|
|
|
55
56
|
return {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
{
|
|
25
25
|
"id": "m8ilsr46",
|
|
26
26
|
"componentType": "RosterForLoop",
|
|
27
|
-
"
|
|
27
|
+
"isMandatory": false,
|
|
28
28
|
"page": "2",
|
|
29
29
|
"lines": {
|
|
30
30
|
"min": { "value": "1", "type": "VTL" },
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
{
|
|
79
79
|
"id": "m8ilvkbt",
|
|
80
80
|
"componentType": "Input",
|
|
81
|
-
"
|
|
81
|
+
"isMandatory": false,
|
|
82
82
|
"page": "3.2",
|
|
83
83
|
"maxLength": 249,
|
|
84
84
|
"response": { "name": "CETTEQUEST" }
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
{
|
|
102
102
|
"id": "m8iljjiu",
|
|
103
103
|
"componentType": "Input",
|
|
104
|
-
"
|
|
104
|
+
"isMandatory": false,
|
|
105
105
|
"page": "3.3",
|
|
106
106
|
"maxLength": 249,
|
|
107
107
|
"response": { "name": "ONLY_LAURENT" }
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
{
|
|
125
125
|
"id": "m8ili0k6",
|
|
126
126
|
"componentType": "Input",
|
|
127
|
-
"
|
|
127
|
+
"isMandatory": false,
|
|
128
128
|
"page": "3.4",
|
|
129
129
|
"maxLength": 249,
|
|
130
130
|
"response": { "name": "ONLY_TROIS_LAURENT" }
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"type": "VTL|MD",
|
|
84
84
|
"value": "\"➡ 1. \" || \"Origine\""
|
|
85
85
|
},
|
|
86
|
-
"
|
|
86
|
+
"isMandatory": false,
|
|
87
87
|
"bindingDependencies": ["ORIGIN"],
|
|
88
88
|
"response": {
|
|
89
89
|
"name": "ORIGIN"
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"type": "VTL|MD",
|
|
113
113
|
"value": "\"➡ 2. \" || \"Ville de france\""
|
|
114
114
|
},
|
|
115
|
-
"
|
|
115
|
+
"isMandatory": false,
|
|
116
116
|
"bindingDependencies": ["CITY"],
|
|
117
117
|
"response": {
|
|
118
118
|
"name": "CITY"
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"type": "VTL|MD",
|
|
111
111
|
"value": "\"➡ 1. \" || \"\"question 1 : Q1\" \""
|
|
112
112
|
},
|
|
113
|
-
"
|
|
113
|
+
"isMandatory": false,
|
|
114
114
|
"maxLength": 5,
|
|
115
115
|
"declarations": [
|
|
116
116
|
{
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"type": "VTL|MD",
|
|
178
178
|
"value": "\"Avez-vous des remarques concernant l'enquête ou des commentaires ?\""
|
|
179
179
|
},
|
|
180
|
-
"
|
|
180
|
+
"isMandatory": false,
|
|
181
181
|
"maxLength": 2000
|
|
182
182
|
}
|
|
183
183
|
],
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
{
|
|
65
65
|
"id": "k0dzbfek",
|
|
66
66
|
"componentType": "InputNumber",
|
|
67
|
-
"
|
|
67
|
+
"isMandatory": false,
|
|
68
68
|
"page": "2",
|
|
69
69
|
"min": 0,
|
|
70
70
|
"max": 100,
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
{
|
|
133
133
|
"id": "kd0a6rn3",
|
|
134
134
|
"componentType": "InputNumber",
|
|
135
|
-
"
|
|
135
|
+
"isMandatory": false,
|
|
136
136
|
"page": "3",
|
|
137
137
|
"min": 0,
|
|
138
138
|
"max": 100,
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
{
|
|
179
179
|
"id": "kd0a8h62",
|
|
180
180
|
"componentType": "InputNumber",
|
|
181
|
-
"
|
|
181
|
+
"isMandatory": false,
|
|
182
182
|
"page": "4",
|
|
183
183
|
"min": 0,
|
|
184
184
|
"max": 100,
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
{
|
|
239
239
|
"id": "kd0a4t4f",
|
|
240
240
|
"componentType": "InputNumber",
|
|
241
|
-
"
|
|
241
|
+
"isMandatory": false,
|
|
242
242
|
"page": "5",
|
|
243
243
|
"min": 0,
|
|
244
244
|
"max": 100,
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
{
|
|
299
299
|
"id": "kd0ac92p",
|
|
300
300
|
"componentType": "InputNumber",
|
|
301
|
-
"
|
|
301
|
+
"isMandatory": false,
|
|
302
302
|
"page": "6",
|
|
303
303
|
"min": 0,
|
|
304
304
|
"max": 100,
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
{
|
|
359
359
|
"id": "k1cahy88",
|
|
360
360
|
"componentType": "InputNumber",
|
|
361
|
-
"
|
|
361
|
+
"isMandatory": false,
|
|
362
362
|
"page": "7",
|
|
363
363
|
"min": 0,
|
|
364
364
|
"max": 9,
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
{
|
|
408
408
|
"id": "kd0ch7pf",
|
|
409
409
|
"componentType": "InputNumber",
|
|
410
|
-
"
|
|
410
|
+
"isMandatory": false,
|
|
411
411
|
"page": "8",
|
|
412
412
|
"min": 0,
|
|
413
413
|
"max": 9,
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
{
|
|
470
470
|
"id": "kd0aamy0",
|
|
471
471
|
"componentType": "InputNumber",
|
|
472
|
-
"
|
|
472
|
+
"isMandatory": false,
|
|
473
473
|
"page": "9",
|
|
474
474
|
"min": -100,
|
|
475
475
|
"max": 100,
|
|
@@ -631,7 +631,7 @@
|
|
|
631
631
|
{
|
|
632
632
|
"id": "kd0aa5ah",
|
|
633
633
|
"componentType": "InputNumber",
|
|
634
|
-
"
|
|
634
|
+
"isMandatory": false,
|
|
635
635
|
"page": "10",
|
|
636
636
|
"min": -100,
|
|
637
637
|
"max": 100,
|
|
@@ -708,7 +708,7 @@
|
|
|
708
708
|
{
|
|
709
709
|
"id": "l5qvuk9e",
|
|
710
710
|
"componentType": "InputNumber",
|
|
711
|
-
"
|
|
711
|
+
"isMandatory": false,
|
|
712
712
|
"page": "11",
|
|
713
713
|
"min": -100,
|
|
714
714
|
"max": 100,
|
|
@@ -765,7 +765,7 @@
|
|
|
765
765
|
{
|
|
766
766
|
"id": "l5qvtc2l",
|
|
767
767
|
"componentType": "InputNumber",
|
|
768
|
-
"
|
|
768
|
+
"isMandatory": false,
|
|
769
769
|
"page": "12",
|
|
770
770
|
"min": -100,
|
|
771
771
|
"max": 100,
|
|
@@ -822,7 +822,7 @@
|
|
|
822
822
|
{
|
|
823
823
|
"id": "kd0c3h3b",
|
|
824
824
|
"componentType": "InputNumber",
|
|
825
|
-
"
|
|
825
|
+
"isMandatory": false,
|
|
826
826
|
"page": "13",
|
|
827
827
|
"min": 0,
|
|
828
828
|
"max": 1000000000,
|
|
@@ -929,7 +929,7 @@
|
|
|
929
929
|
{
|
|
930
930
|
"id": "kd0achk0",
|
|
931
931
|
"componentType": "InputNumber",
|
|
932
|
-
"
|
|
932
|
+
"isMandatory": false,
|
|
933
933
|
"page": "15",
|
|
934
934
|
"min": -100,
|
|
935
935
|
"max": 100,
|
|
@@ -974,7 +974,7 @@
|
|
|
974
974
|
{
|
|
975
975
|
"id": "kd0bl558",
|
|
976
976
|
"componentType": "InputNumber",
|
|
977
|
-
"
|
|
977
|
+
"isMandatory": false,
|
|
978
978
|
"page": "16",
|
|
979
979
|
"min": -100,
|
|
980
980
|
"max": 100,
|
|
@@ -1092,7 +1092,7 @@
|
|
|
1092
1092
|
{
|
|
1093
1093
|
"id": "l5qt3xu9",
|
|
1094
1094
|
"componentType": "InputNumber",
|
|
1095
|
-
"
|
|
1095
|
+
"isMandatory": false,
|
|
1096
1096
|
"page": "17",
|
|
1097
1097
|
"min": 0,
|
|
1098
1098
|
"max": 100,
|
|
@@ -1149,7 +1149,7 @@
|
|
|
1149
1149
|
{
|
|
1150
1150
|
"id": "kd0bu8xz",
|
|
1151
1151
|
"componentType": "InputNumber",
|
|
1152
|
-
"
|
|
1152
|
+
"isMandatory": false,
|
|
1153
1153
|
"page": "18",
|
|
1154
1154
|
"min": -400,
|
|
1155
1155
|
"max": 400,
|
|
@@ -1237,7 +1237,7 @@
|
|
|
1237
1237
|
{
|
|
1238
1238
|
"id": "k0gj7g4v",
|
|
1239
1239
|
"componentType": "InputNumber",
|
|
1240
|
-
"
|
|
1240
|
+
"isMandatory": false,
|
|
1241
1241
|
"page": "19",
|
|
1242
1242
|
"min": -200,
|
|
1243
1243
|
"max": 200,
|
|
@@ -1345,7 +1345,7 @@
|
|
|
1345
1345
|
{
|
|
1346
1346
|
"id": "kd0bx24r",
|
|
1347
1347
|
"componentType": "InputNumber",
|
|
1348
|
-
"
|
|
1348
|
+
"isMandatory": false,
|
|
1349
1349
|
"page": "20",
|
|
1350
1350
|
"min": -400,
|
|
1351
1351
|
"max": 400,
|
|
@@ -1439,7 +1439,7 @@
|
|
|
1439
1439
|
{
|
|
1440
1440
|
"id": "kd0c2j4a",
|
|
1441
1441
|
"componentType": "InputNumber",
|
|
1442
|
-
"
|
|
1442
|
+
"isMandatory": false,
|
|
1443
1443
|
"page": "21",
|
|
1444
1444
|
"min": -400,
|
|
1445
1445
|
"max": 400,
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"type": "VTL|MD",
|
|
184
184
|
"value": "\"➡ 1. \" || \"Controle sur booleen\""
|
|
185
185
|
},
|
|
186
|
-
"
|
|
186
|
+
"isMandatory": false
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"componentType": "Input",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"type": "VTL|MD",
|
|
240
240
|
"value": "\"➡ 2. \" || \"Controle sur du texte < 255\""
|
|
241
241
|
},
|
|
242
|
-
"
|
|
242
|
+
"isMandatory": false,
|
|
243
243
|
"maxLength": 15,
|
|
244
244
|
"declarations": [
|
|
245
245
|
{
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
"type": "VTL|MD",
|
|
345
345
|
"value": "\"➡ 3. \" || \"Controle sur code\""
|
|
346
346
|
},
|
|
347
|
-
"
|
|
347
|
+
"isMandatory": false,
|
|
348
348
|
"declarations": [
|
|
349
349
|
{
|
|
350
350
|
"declarationType": "INSTRUCTION",
|
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
"type": "VTL|MD",
|
|
409
409
|
"value": "\"➡ 4. \" || \"Controle sur date AAAA-MM-JJ (saisie entre 31/12/1990 et 31/12/2040)\""
|
|
410
410
|
},
|
|
411
|
-
"
|
|
411
|
+
"isMandatory": false,
|
|
412
412
|
"declarations": [
|
|
413
413
|
{
|
|
414
414
|
"declarationType": "INSTRUCTION",
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
"type": "VTL|MD",
|
|
487
487
|
"value": "\"➡ 5. \" || \"Controle sur date AAAA-MM (manque lunatic)\""
|
|
488
488
|
},
|
|
489
|
-
"
|
|
489
|
+
"isMandatory": false,
|
|
490
490
|
"declarations": [
|
|
491
491
|
{
|
|
492
492
|
"declarationType": "INSTRUCTION",
|
|
@@ -555,7 +555,7 @@
|
|
|
555
555
|
"type": "VTL|MD",
|
|
556
556
|
"value": "\"➡ 6. \" || \"Controle sur date AAAA (si supérieur à 2020) manque lunatic\""
|
|
557
557
|
},
|
|
558
|
-
"
|
|
558
|
+
"isMandatory": false,
|
|
559
559
|
"declarations": [
|
|
560
560
|
{
|
|
561
561
|
"declarationType": "INSTRUCTION",
|
|
@@ -620,7 +620,7 @@
|
|
|
620
620
|
"type": "VTL|MD",
|
|
621
621
|
"value": "\"Avez-vous des remarques concernant l'enquête ou des commentaires ?\""
|
|
622
622
|
},
|
|
623
|
-
"
|
|
623
|
+
"isMandatory": false,
|
|
624
624
|
"maxLength": 2000
|
|
625
625
|
}
|
|
626
626
|
],
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"response": {
|
|
94
94
|
"name": "NAME"
|
|
95
95
|
},
|
|
96
|
-
"
|
|
96
|
+
"isMandatory": false,
|
|
97
97
|
"maxLength": 249,
|
|
98
98
|
"componentType": "Input"
|
|
99
99
|
}
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"response": {
|
|
152
152
|
"name": "AGE"
|
|
153
153
|
},
|
|
154
|
-
"
|
|
154
|
+
"isMandatory": false,
|
|
155
155
|
"description": {
|
|
156
156
|
"type": "TXT",
|
|
157
157
|
"value": "Format attendu : un nombre entre 1 et 200"
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"response": {
|
|
207
207
|
"name": "APPLE"
|
|
208
208
|
},
|
|
209
|
-
"
|
|
209
|
+
"isMandatory": false,
|
|
210
210
|
"orientation": "vertical",
|
|
211
211
|
"componentType": "Radio"
|
|
212
212
|
}
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"response": {
|
|
153
153
|
"name": "NBHAB"
|
|
154
154
|
},
|
|
155
|
-
"
|
|
155
|
+
"isMandatory": false,
|
|
156
156
|
"description": {
|
|
157
157
|
"type": "TXT",
|
|
158
158
|
"value": "Format attendu : un nombre entre 1 et 10"
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"response": {
|
|
210
210
|
"name": "NAME"
|
|
211
211
|
},
|
|
212
|
-
"
|
|
212
|
+
"isMandatory": false,
|
|
213
213
|
"maxLength": 249,
|
|
214
214
|
"componentType": "Input"
|
|
215
215
|
}
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
"response": {
|
|
312
312
|
"name": "AGE"
|
|
313
313
|
},
|
|
314
|
-
"
|
|
314
|
+
"isMandatory": false,
|
|
315
315
|
"description": {
|
|
316
316
|
"type": "TXT",
|
|
317
317
|
"value": "Format attendu : un nombre entre 1 et 200"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
{
|
|
40
40
|
"id": "kze792d8",
|
|
41
41
|
"componentType": "InputNumber",
|
|
42
|
-
"
|
|
42
|
+
"isMandatory": false,
|
|
43
43
|
"page": "2",
|
|
44
44
|
"min": 0,
|
|
45
45
|
"max": 10,
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
{
|
|
166
166
|
"id": "ksyjvi40",
|
|
167
167
|
"componentType": "Input",
|
|
168
|
-
"
|
|
168
|
+
"isMandatory": false,
|
|
169
169
|
"maxLength": 249,
|
|
170
170
|
"label": {
|
|
171
171
|
"value": "\"prénom\"",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
{
|
|
198
198
|
"id": "nomksyjvi40",
|
|
199
199
|
"componentType": "Input",
|
|
200
|
-
"
|
|
200
|
+
"isMandatory": false,
|
|
201
201
|
"maxLength": 249,
|
|
202
202
|
"label": {
|
|
203
203
|
"value": "\"Nom\"",
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
{
|
|
311
311
|
"id": "ksyke448",
|
|
312
312
|
"componentType": "InputNumber",
|
|
313
|
-
"
|
|
313
|
+
"isMandatory": false,
|
|
314
314
|
"page": "5.1",
|
|
315
315
|
"min": 0,
|
|
316
316
|
"max": 100,
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
{
|
|
468
468
|
"id": "ku2pxugf",
|
|
469
469
|
"componentType": "Input",
|
|
470
|
-
"
|
|
470
|
+
"isMandatory": false,
|
|
471
471
|
"page": "7",
|
|
472
472
|
"maxLength": 249,
|
|
473
473
|
"label": {
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
{
|
|
585
585
|
"id": "COMMENT-QUESTION",
|
|
586
586
|
"componentType": "Textarea",
|
|
587
|
-
"
|
|
587
|
+
"isMandatory": false,
|
|
588
588
|
"page": "10",
|
|
589
589
|
"maxLength": 2000,
|
|
590
590
|
"label": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
{
|
|
88
88
|
"id": "kanyduey",
|
|
89
89
|
"componentType": "Textarea",
|
|
90
|
-
"
|
|
90
|
+
"isMandatory": false,
|
|
91
91
|
"page": "3",
|
|
92
92
|
"maxLength": 255,
|
|
93
93
|
"label": {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
{
|
|
121
121
|
"id": "kzfdehqy",
|
|
122
122
|
"componentType": "Textarea",
|
|
123
|
-
"
|
|
123
|
+
"isMandatory": false,
|
|
124
124
|
"page": "4",
|
|
125
125
|
"maxLength": 255,
|
|
126
126
|
"label": {
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
{
|
|
146
146
|
"id": "kzfdsuhw",
|
|
147
147
|
"componentType": "Textarea",
|
|
148
|
-
"
|
|
148
|
+
"isMandatory": false,
|
|
149
149
|
"page": "5",
|
|
150
150
|
"maxLength": 255,
|
|
151
151
|
"label": {
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
{
|
|
171
171
|
"id": "kanye45b",
|
|
172
172
|
"componentType": "Textarea",
|
|
173
|
-
"
|
|
173
|
+
"isMandatory": false,
|
|
174
174
|
"page": "6",
|
|
175
175
|
"maxLength": 255,
|
|
176
176
|
"label": {
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
{
|
|
204
204
|
"id": "kzfds450",
|
|
205
205
|
"componentType": "Textarea",
|
|
206
|
-
"
|
|
206
|
+
"isMandatory": false,
|
|
207
207
|
"page": "7",
|
|
208
208
|
"maxLength": 255,
|
|
209
209
|
"label": {
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
{
|
|
229
229
|
"id": "kzfdnpeb",
|
|
230
230
|
"componentType": "Textarea",
|
|
231
|
-
"
|
|
231
|
+
"isMandatory": false,
|
|
232
232
|
"page": "8",
|
|
233
233
|
"maxLength": 255,
|
|
234
234
|
"label": {
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
{
|
|
254
254
|
"id": "kzwo41pm",
|
|
255
255
|
"componentType": "Textarea",
|
|
256
|
-
"
|
|
256
|
+
"isMandatory": false,
|
|
257
257
|
"page": "9",
|
|
258
258
|
"maxLength": 255,
|
|
259
259
|
"label": {
|
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
{
|
|
279
279
|
"id": "kanywetv",
|
|
280
280
|
"componentType": "Textarea",
|
|
281
|
-
"
|
|
281
|
+
"isMandatory": false,
|
|
282
282
|
"page": "10",
|
|
283
283
|
"maxLength": 255,
|
|
284
284
|
"label": {
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
{
|
|
361
361
|
"id": "kanyscwo",
|
|
362
362
|
"componentType": "Textarea",
|
|
363
|
-
"
|
|
363
|
+
"isMandatory": false,
|
|
364
364
|
"page": "12",
|
|
365
365
|
"maxLength": 255,
|
|
366
366
|
"label": {
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
{
|
|
412
412
|
"id": "kanz8hgh",
|
|
413
413
|
"componentType": "Textarea",
|
|
414
|
-
"
|
|
414
|
+
"isMandatory": false,
|
|
415
415
|
"page": "13",
|
|
416
416
|
"maxLength": 255,
|
|
417
417
|
"label": {
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
{
|
|
498
498
|
"id": "kao1aya7",
|
|
499
499
|
"componentType": "Textarea",
|
|
500
|
-
"
|
|
500
|
+
"isMandatory": false,
|
|
501
501
|
"page": "15",
|
|
502
502
|
"maxLength": 255,
|
|
503
503
|
"label": {
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
{
|
|
552
552
|
"id": "kanyicbv",
|
|
553
553
|
"componentType": "Textarea",
|
|
554
|
-
"
|
|
554
|
+
"isMandatory": false,
|
|
555
555
|
"page": "16",
|
|
556
556
|
"maxLength": 255,
|
|
557
557
|
"label": {
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
{
|
|
585
585
|
"id": "kanyu00b",
|
|
586
586
|
"componentType": "Textarea",
|
|
587
|
-
"
|
|
587
|
+
"isMandatory": false,
|
|
588
588
|
"page": "17",
|
|
589
589
|
"maxLength": 255,
|
|
590
590
|
"label": {
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
{
|
|
639
639
|
"id": "kanz18h6",
|
|
640
640
|
"componentType": "CheckboxOne",
|
|
641
|
-
"
|
|
641
|
+
"isMandatory": false,
|
|
642
642
|
"page": "18",
|
|
643
643
|
"label": {
|
|
644
644
|
"value": "\"➡ 14. \" || \"Q11 saut de lignes dans les modalités de réponses (ne marche pas je crois)\"",
|