@inseefr/lunatic 2.4.5-mvp-eap → 2.4.6-allDecla
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/commons/components/combo-box/combo-box-content.js +5 -2
- package/lib/components/commons/components/combo-box/combo-box.js +16 -16
- package/lib/components/commons/components/combo-box/combo-box.scss +1 -0
- package/lib/components/commons/components/combo-box/panel/panel.js +4 -2
- package/lib/components/commons/components/combo-box/state-management/reduce-on-init.js +1 -4
- package/lib/components/commons/components/dragger/dragger.scss +7 -7
- package/lib/components/commons/components/is-network/use-online-status.spec.js +0 -4
- package/lib/components/commons/components/lunatic-component-without-label.js +4 -11
- package/lib/components/commons/components/md-label/md-label.js +2 -1
- package/lib/components/commons/components/orchestrated-component.js +3 -4
- package/lib/components/commons/create-row-orchestrator.js +2 -2
- package/lib/components/component-set/html/component-set-components.js +6 -2
- package/lib/components/component-set/lunatic-component-set.js +3 -1
- package/lib/components/declarations/declarations.spec.js +0 -1
- package/lib/components/dropdown/html/dropdown-simple/simple-label-renderer.js +1 -1
- package/lib/components/dropdown/html/dropdown-simple/simple-option-renderer.js +5 -7
- package/lib/components/dropdown/html/dropdown-writable/writable-label-renderer.js +1 -1
- package/lib/components/dropdown/html/dropdown-writable/writable-option-renderer.js +1 -1
- package/lib/components/dropdown/html/dropdown.scss +0 -3
- package/lib/components/dropdown/lunatic-dropdown.js +0 -1
- package/lib/components/index.js +14 -0
- package/lib/components/input-number/html/input-number.js +1 -2
- package/lib/components/input-number/html/input-number.scss +1 -1
- package/lib/components/input-number/lunatic-input-number.js +0 -2
- package/lib/components/loop/loop.js +4 -6
- package/lib/components/loop/roster-for-loop/body.js +52 -0
- package/lib/components/loop/roster-for-loop/header.js +34 -0
- package/lib/components/loop/roster-for-loop/roster-for-loop-orchestrator.js +0 -1
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +33 -45
- package/lib/components/loop/roster-for-loop/roster-table.js +17 -22
- package/lib/components/loop/roster-for-loop/roster.scss +34 -30
- package/lib/components/loop/roster-for-loop/row.js +31 -84
- package/lib/components/modal-controls/modal-controls.spec.js +0 -14
- package/lib/components/pairwise-links/pairwise-links.js +3 -2
- package/lib/components/pairwise-links/row.js +0 -1
- package/lib/components/questions/question-context.js +21 -7
- package/lib/components/questions/question-context.scss +1 -0
- package/lib/components/questions/question-information.js +19 -5
- package/lib/components/questions/question-information.scss +1 -0
- package/lib/components/roundabout/components/roundabout.scss +0 -3
- package/lib/components/sequence/html/sequence.js +13 -6
- package/lib/components/sequence/html/sequence.scss +13 -0
- package/lib/components/sequence/lunatic-sequence.js +1 -5
- package/lib/components/sequence/sequence.spec.js +0 -3
- package/lib/components/suggester/html/default-style.scss +1 -6
- package/lib/components/suggester/html/suggester.js +12 -31
- package/lib/components/suggester/idb-suggester/check-store.js +2 -1
- package/lib/components/suggester/idb-suggester/idb-suggester.js +7 -10
- package/lib/components/suggester/lunatic-suggester.js +4 -31
- package/lib/components/suggester-loader-widget/loader-row.js +2 -1
- package/lib/components/switch/html/switch.scss +0 -2
- package/lib/components/switch/lunatic-switch.js +1 -1
- package/lib/src/components/commons/components/combo-box/combo-box.d.ts +4 -4
- package/lib/src/components/commons/components/combo-box/combo-box.stories.d.ts +2 -2
- package/lib/src/components/commons/components/combo-box/panel/panel.d.ts +1 -1
- package/lib/src/components/commons/components/combo-box/state-management/actions.d.ts +4 -4
- package/lib/src/components/commons/components/lunatic-component-without-label.d.ts +1 -1
- package/lib/src/components/commons/components/orchestrated-component.d.ts +3 -3
- package/lib/src/components/commons/create-row-orchestrator.d.ts +4 -5
- package/lib/src/components/component-set/html/component-set-components.d.ts +3 -2
- package/lib/src/components/dropdown/html/dropdown-writable/dropdown-writable.d.ts +1 -1
- package/lib/src/components/dropdown/html/dropdown.d.ts +1 -2
- package/lib/src/components/index.d.ts +2 -0
- package/lib/src/components/input-number/html/input-number.d.ts +0 -1
- package/lib/src/components/loop/block-for-loop/block-for-loop-ochestrator.d.ts +3 -11
- package/lib/src/components/loop/block-for-loop/block-for-loop.d.ts +1 -5
- package/lib/src/components/loop/commons/handle-row-button.d.ts +1 -2
- package/lib/src/components/loop/roster-for-loop/body.d.ts +12 -0
- package/lib/src/components/loop/roster-for-loop/header.d.ts +9 -0
- package/lib/src/components/loop/roster-for-loop/roster-for-loop-orchestrator.d.ts +3 -11
- package/lib/src/components/loop/roster-for-loop/roster-for-loop.d.ts +4 -8
- package/lib/src/components/loop/roster-for-loop/roster-table.d.ts +3 -3
- package/lib/src/components/loop/roster-for-loop/row.d.ts +2 -3
- package/lib/src/components/questions/question-context.d.ts +1 -2
- package/lib/src/components/questions/question-information.d.ts +1 -2
- package/lib/src/components/sequence/html/sequence.d.ts +1 -1
- package/lib/src/components/sequence/lunatic-sequence.d.ts +1 -1
- package/lib/src/components/suggester/html/suggester.d.ts +4 -6
- package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +3 -4
- package/lib/src/components/suggester/idb-suggester/suggester-notification.d.ts +1 -3
- package/lib/src/components/suggester/lunatic-suggester.d.ts +1 -1
- package/lib/src/components/type.d.ts +7 -28
- package/lib/src/hooks/use-ref-sync.d.ts +1 -1
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +16 -61
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +0 -36
- package/lib/src/use-lunatic/reducer/commons/is-loop-component.d.ts +2 -2
- package/lib/src/use-lunatic/reducer/commons/resize-array-variable.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/overview/overview-on-init.d.ts +1 -1
- package/lib/src/use-lunatic/reducer/reduce-update-state.d.ts +1 -106
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +1 -1
- package/lib/src/use-lunatic/type-source.d.ts +1 -11
- package/lib/src/use-lunatic/type.d.ts +1 -1
- package/lib/src/utils/logger.d.ts +6 -0
- package/lib/stories/component-set/data2.json +7 -0
- package/lib/stories/component-set/source2.json +31 -31
- package/lib/stories/custom-mui/suggester-mui/suggester-mui.js +0 -1
- package/lib/stories/input/input.stories.js +9 -1
- package/lib/stories/input/source-with-question.json +74 -0
- package/lib/stories/input-number/input-number.stories.js +1 -8
- package/lib/stories/loop/block-for-loop.stories.js +8 -1
- package/lib/stories/loop/roster-for-loop.stories.js +1 -8
- package/lib/stories/loop/source-with-header.json +3 -15
- package/lib/stories/questionnaires/simpsons/simpsons.stories.js +2 -1
- package/lib/stories/sequence/afterInSeq.json +293 -0
- package/lib/stories/sequence/sequence.stories.js +12 -8
- package/lib/stories/sequence/source-declarations.json +9 -0
- package/lib/stories/suggester/suggester-workers.stories.js +7 -6
- package/lib/stories/suggester/suggester.stories.js +5 -18
- package/lib/stories/utils/orchestrator.js +4 -3
- package/lib/use-lunatic/commons/calculated-variables.js +1 -1
- package/lib/use-lunatic/commons/compile-controls.js +1 -1
- package/lib/use-lunatic/commons/execute-expression/create-execute-expression.js +1 -4
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +1 -1
- package/lib/use-lunatic/commons/get-component-value/get-component-value.js +0 -8
- package/lib/use-lunatic/commons/load-suggesters.js +46 -46
- package/lib/use-lunatic/initial-state.js +0 -1
- package/lib/use-lunatic/reducer/reducer.js +0 -1
- package/lib/utils/logger.js +44 -0
- package/lib/utils/suggester-workers/append-to-index/create-append-task.js +2 -1
- package/lib/utils/suggester-workers/create-worker-ts.js +2 -1
- package/lib/utils/suggester-workers/create-worker.js +2 -1
- package/package.json +1 -1
- package/lib/components/questions/type.js +0 -5
- package/lib/hooks/use-did-change.js +0 -19
- package/lib/src/components/questions/type.d.ts +0 -4
- package/lib/src/hooks/use-did-change.d.ts +0 -4
- package/lib/stories/input-number/source-dynamic.json +0 -41
- package/lib/stories/questionnaires/EAP/data-eap.json +0 -46
- package/lib/stories/questionnaires/EAP/eap.stories.js +0 -71
- package/lib/stories/questionnaires/EAP/source-eap.json +0 -433
- package/lib/stories/sequence/source-questions.json +0 -19
- package/lib/stories/suggester/multipleResponses.json +0 -100
|
@@ -6,6 +6,6 @@ import { LunaticComponentDefinition } from './type';
|
|
|
6
6
|
* des composant à part entière.
|
|
7
7
|
* D'autres composant pourraient un jour figurer ici.
|
|
8
8
|
*/
|
|
9
|
-
export declare function replaceComponentSequence(components: Array<LunaticComponentDefinition>): ((import("./type-source").ComponentTypeBase & import("./type-source").ComponentSequenceType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentSubSequenceType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentRosterForLoopType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentLoopType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentTableType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentNumberType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentDatePickerType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentCheckboxGroupType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentCheckboxBooleanType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentRadioType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentFilterDescriptionType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentDropdownType) | (import("./type-source").ComponentTypeBase & import("./type-source").
|
|
9
|
+
export declare function replaceComponentSequence(components: Array<LunaticComponentDefinition>): ((import("./type-source").ComponentTypeBase & import("./type-source").ComponentSequenceType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentSubSequenceType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentRosterForLoopType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentLoopType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentTableType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentNumberType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentDatePickerType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentCheckboxGroupType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentCheckboxBooleanType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentRadioType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentFilterDescriptionType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentDropdownType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentPairWiseLinksType) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentRoundaboutType) | (import("./type-source").ComponentTypeBase & {
|
|
10
10
|
componentType: "Input" | "CheckboxOne" | "Textarea";
|
|
11
11
|
}) | (import("./type-source").ComponentTypeBase & import("./type-source").ComponentComponentSet))[];
|
|
@@ -79,7 +79,7 @@ export type ComponentTypeBase = {
|
|
|
79
79
|
mandatory?: boolean;
|
|
80
80
|
page: string;
|
|
81
81
|
};
|
|
82
|
-
export type ComponentType = (ComponentTypeBase & ComponentSequenceType) | (ComponentTypeBase & ComponentSubSequenceType) | (ComponentTypeBase & ComponentRosterForLoopType) | (ComponentTypeBase & ComponentLoopType) | (ComponentTypeBase & ComponentTableType) | (ComponentTypeBase & ComponentNumberType) | (ComponentTypeBase & ComponentDatePickerType) | (ComponentTypeBase & ComponentCheckboxGroupType) | (ComponentTypeBase & ComponentCheckboxBooleanType) | (ComponentTypeBase & ComponentRadioType) | (ComponentTypeBase & ComponentFilterDescriptionType) | (ComponentTypeBase & ComponentDropdownType) | (ComponentTypeBase &
|
|
82
|
+
export type ComponentType = (ComponentTypeBase & ComponentSequenceType) | (ComponentTypeBase & ComponentSubSequenceType) | (ComponentTypeBase & ComponentRosterForLoopType) | (ComponentTypeBase & ComponentLoopType) | (ComponentTypeBase & ComponentTableType) | (ComponentTypeBase & ComponentNumberType) | (ComponentTypeBase & ComponentDatePickerType) | (ComponentTypeBase & ComponentCheckboxGroupType) | (ComponentTypeBase & ComponentCheckboxBooleanType) | (ComponentTypeBase & ComponentRadioType) | (ComponentTypeBase & ComponentFilterDescriptionType) | (ComponentTypeBase & ComponentDropdownType) | (ComponentTypeBase & ComponentPairWiseLinksType) | (ComponentTypeBase & ComponentRoundaboutType) | (ComponentTypeBase & {
|
|
83
83
|
componentType: 'Input' | 'CheckboxOne' | 'Textarea';
|
|
84
84
|
}) | (ComponentTypeBase & ComponentComponentSet);
|
|
85
85
|
export type ComponentSequenceType = {
|
|
@@ -119,7 +119,6 @@ export type ComponentRosterForLoopType = {
|
|
|
119
119
|
format?: string;
|
|
120
120
|
dateFormat?: string;
|
|
121
121
|
unit?: string;
|
|
122
|
-
dynamicUnit?: LabelType;
|
|
123
122
|
options: {
|
|
124
123
|
value: string;
|
|
125
124
|
label: LabelType;
|
|
@@ -160,7 +159,6 @@ export type ComponentTableType = {
|
|
|
160
159
|
export type ComponentNumberType = {
|
|
161
160
|
componentType: 'InputNumber';
|
|
162
161
|
unit: string;
|
|
163
|
-
dynamicUnit?: LabelType;
|
|
164
162
|
response: ResponseType;
|
|
165
163
|
min?: number;
|
|
166
164
|
max?: number;
|
|
@@ -201,14 +199,6 @@ export type ComponentDropdownType = {
|
|
|
201
199
|
}[];
|
|
202
200
|
response: ResponseType;
|
|
203
201
|
};
|
|
204
|
-
export type ComponentSuggesterType = {
|
|
205
|
-
componentType: 'Suggester';
|
|
206
|
-
response?: ResponseType;
|
|
207
|
-
responses?: Array<{
|
|
208
|
-
id: string;
|
|
209
|
-
response: ResponseType;
|
|
210
|
-
}>;
|
|
211
|
-
};
|
|
212
202
|
export type ComponentFilterDescriptionType = {
|
|
213
203
|
componentType: 'FilterDescription';
|
|
214
204
|
filterDescription: boolean;
|
|
@@ -115,41 +115,11 @@
|
|
|
115
115
|
"depth": 1,
|
|
116
116
|
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
117
117
|
"label": {
|
|
118
|
-
"value": "\"## Who are you
|
|
118
|
+
"value": "\"## Who are you?\"",
|
|
119
119
|
"type":"VTL|MD"
|
|
120
120
|
},
|
|
121
121
|
"description": { "value": "\"This is your opportunity to tell me about yourself!\"", "type": "VTL|MD" },
|
|
122
122
|
"components": [
|
|
123
|
-
{
|
|
124
|
-
"id": "color",
|
|
125
|
-
"componentType": "Input",
|
|
126
|
-
"mandatory": false,
|
|
127
|
-
"maxLength": 20,
|
|
128
|
-
"label": {
|
|
129
|
-
"value": "\"Favourite Color?\"))",
|
|
130
|
-
"type": "VTL|MD"
|
|
131
|
-
},
|
|
132
|
-
"conditionFilter": {
|
|
133
|
-
"value": "true",
|
|
134
|
-
"type": "VTL"
|
|
135
|
-
},
|
|
136
|
-
"controls": [
|
|
137
|
-
{
|
|
138
|
-
"criticality": "WARN",
|
|
139
|
-
"errorMessage": {
|
|
140
|
-
"type": "VTL",
|
|
141
|
-
"value": "\"booleen pas coché et on affiche un message un peu long histoire de tester le truc \""
|
|
142
|
-
},
|
|
143
|
-
"typeOfControl": "CONSISTENCY",
|
|
144
|
-
"control": {
|
|
145
|
-
"type": "VTL",
|
|
146
|
-
"value": "false"
|
|
147
|
-
},
|
|
148
|
-
"id": "kfxmjupm-CI-0"
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"response": { "name": "COLOR" }
|
|
152
|
-
},
|
|
153
123
|
{
|
|
154
124
|
"id": "sexe",
|
|
155
125
|
"componentType": "Radio",
|
|
@@ -173,6 +143,36 @@
|
|
|
173
143
|
],
|
|
174
144
|
"response": { "name": "SEXE" }
|
|
175
145
|
},
|
|
146
|
+
{
|
|
147
|
+
"id": "color",
|
|
148
|
+
"componentType": "Input",
|
|
149
|
+
"mandatory": false,
|
|
150
|
+
"maxLength": 20,
|
|
151
|
+
"label": {
|
|
152
|
+
"value": "\"Favourite Color?\"))",
|
|
153
|
+
"type": "VTL|MD"
|
|
154
|
+
},
|
|
155
|
+
"conditionFilter": {
|
|
156
|
+
"value": "not(isnull(SEXE))",
|
|
157
|
+
"type": "VTL"
|
|
158
|
+
},
|
|
159
|
+
"controls": [
|
|
160
|
+
{
|
|
161
|
+
"id": "j4nw5cqz",
|
|
162
|
+
"typeOfControl": "CONSISTENCY",
|
|
163
|
+
"criticality": "WARN",
|
|
164
|
+
"control": {
|
|
165
|
+
"value": "COLOR <> \"Green\"",
|
|
166
|
+
"type": "VTL"
|
|
167
|
+
},
|
|
168
|
+
"errorMessage": {
|
|
169
|
+
"value": "\"Green is the worst colour!!!\"",
|
|
170
|
+
"type": "VTL|MD"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"response": { "name": "COLOR" }
|
|
175
|
+
},
|
|
176
176
|
{
|
|
177
177
|
"id": "j4nw5cqz",
|
|
178
178
|
"componentType": "Dropdown",
|
|
@@ -258,7 +258,6 @@ function SuggesterMui(_ref7) {
|
|
|
258
258
|
var onChangeEx = (0, _react.useCallback)(function (e) {
|
|
259
259
|
onChange(e.target.value);
|
|
260
260
|
setSearch(e.target.value);
|
|
261
|
-
console.log(e.target.value);
|
|
262
261
|
}, [onChange]);
|
|
263
262
|
var onDelete = (0, _react.useCallback)(function () {
|
|
264
263
|
setSearch('');
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.Default = void 0;
|
|
6
|
+
exports["default"] = exports.WithQuestion = exports.Default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
|
|
9
9
|
var _source = _interopRequireDefault(require("./source"));
|
|
10
|
+
var _sourceWithQuestion = _interopRequireDefault(require("./source-with-question"));
|
|
10
11
|
var _data = _interopRequireDefault(require("./data"));
|
|
11
12
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
12
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -33,4 +34,11 @@ Default.args = {
|
|
|
33
34
|
id: 'input',
|
|
34
35
|
source: _source["default"],
|
|
35
36
|
data: _data["default"]
|
|
37
|
+
};
|
|
38
|
+
var WithQuestion = Template.bind({});
|
|
39
|
+
exports.WithQuestion = WithQuestion;
|
|
40
|
+
WithQuestion.args = {
|
|
41
|
+
id: 'input',
|
|
42
|
+
source: _sourceWithQuestion["default"],
|
|
43
|
+
data: _data["default"]
|
|
36
44
|
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"components": [
|
|
3
|
+
{
|
|
4
|
+
"componentType": "QuestionInformation",
|
|
5
|
+
"label": { "value": "\"Question Information\"", "type": "VTL|MD" },
|
|
6
|
+
"description": { "value": "\"Question Information description\"", "type": "VTL|MD" },
|
|
7
|
+
"page": "1"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"componentType": "Input",
|
|
11
|
+
"label": {
|
|
12
|
+
"value": "\"Prénom de l'occupant principal.\"",
|
|
13
|
+
"type": "VTL|MD"
|
|
14
|
+
},
|
|
15
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
16
|
+
"maxLength": 30,
|
|
17
|
+
"id": "name",
|
|
18
|
+
"response": {
|
|
19
|
+
"name": "PRENOM"
|
|
20
|
+
},
|
|
21
|
+
"page": "1"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"componentType": "QuestionContext",
|
|
25
|
+
"label": { "value": "\"Question Context\"", "type": "VTL|MD" },
|
|
26
|
+
"description": { "value": "\"Question Context description\"", "type": "VTL|MD" },
|
|
27
|
+
"page": "1"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"componentType": "Input",
|
|
31
|
+
"label": {
|
|
32
|
+
"value": "\"Nom de l'occupant principal.\"",
|
|
33
|
+
"type": "VTL|MD"
|
|
34
|
+
},
|
|
35
|
+
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
36
|
+
"maxLength": 30,
|
|
37
|
+
"id": "surname",
|
|
38
|
+
"description": {
|
|
39
|
+
"value": "\"For example, Bob.\"",
|
|
40
|
+
"type": "VTL|MD"
|
|
41
|
+
},
|
|
42
|
+
"response": {
|
|
43
|
+
"name": "NOM"
|
|
44
|
+
},
|
|
45
|
+
"page": "1"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"variables": [
|
|
49
|
+
{
|
|
50
|
+
"variableType": "COLLECTED",
|
|
51
|
+
"name": "NOM",
|
|
52
|
+
"componentRef": "name",
|
|
53
|
+
"values": {
|
|
54
|
+
"PREVIOUS": null,
|
|
55
|
+
"COLLECTED": null,
|
|
56
|
+
"FORCED": null,
|
|
57
|
+
"EDITED": null,
|
|
58
|
+
"INPUTED": null
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"variableType": "COLLECTED",
|
|
63
|
+
"name": "PRENOM",
|
|
64
|
+
"componentRef": "name",
|
|
65
|
+
"values": {
|
|
66
|
+
"PREVIOUS": null,
|
|
67
|
+
"COLLECTED": null,
|
|
68
|
+
"FORCED": null,
|
|
69
|
+
"EDITED": null,
|
|
70
|
+
"INPUTED": null
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.UnitEuros = exports.ThousandSeparator = exports.
|
|
6
|
+
exports["default"] = exports.UnitEuros = exports.ThousandSeparator = exports.Default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
9
9
|
var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
|
|
10
10
|
var _source = _interopRequireDefault(require("./source"));
|
|
11
|
-
var _sourceDynamic = _interopRequireDefault(require("./source-dynamic"));
|
|
12
11
|
var _sourceEuros = _interopRequireDefault(require("./source-euros"));
|
|
13
12
|
var _sourceThansand = _interopRequireDefault(require("./source-thansand"));
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -45,12 +44,6 @@ UnitEuros.args = {
|
|
|
45
44
|
source: _sourceEuros["default"],
|
|
46
45
|
unit: '€'
|
|
47
46
|
};
|
|
48
|
-
var DynamicUnit = Template.bind({});
|
|
49
|
-
exports.DynamicUnit = DynamicUnit;
|
|
50
|
-
DynamicUnit.args = {
|
|
51
|
-
id: 'input-number-dynamic',
|
|
52
|
-
source: _sourceDynamic["default"]
|
|
53
|
-
};
|
|
54
47
|
var ThousandSeparator = Template.bind({});
|
|
55
48
|
exports.ThousandSeparator = ThousandSeparator;
|
|
56
49
|
ThousandSeparator.args = {
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.Default = void 0;
|
|
6
|
+
exports["default"] = exports.WithHeader = exports.Default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
|
|
9
9
|
var _sourceBloc = _interopRequireDefault(require("./source-bloc.json"));
|
|
10
|
+
var _sourceWithHeader = _interopRequireDefault(require("./source-with-header.json"));
|
|
10
11
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -31,4 +32,10 @@ exports.Default = Default;
|
|
|
31
32
|
Default.args = {
|
|
32
33
|
id: 'bloc-for-loop',
|
|
33
34
|
source: _sourceBloc["default"]
|
|
35
|
+
};
|
|
36
|
+
var WithHeader = Template.bind({});
|
|
37
|
+
exports.WithHeader = WithHeader;
|
|
38
|
+
WithHeader.args = {
|
|
39
|
+
id: 'bloc-for-loop-headers',
|
|
40
|
+
source: _sourceWithHeader["default"]
|
|
34
41
|
};
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.Default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _orchestrator = _interopRequireDefault(require("../utils/orchestrator"));
|
|
9
9
|
var _sourceRoster = _interopRequireDefault(require("./source-roster"));
|
|
10
10
|
var _defaultArgTypes = _interopRequireDefault(require("../utils/default-arg-types"));
|
|
11
|
-
var _sourceWithHeader = _interopRequireDefault(require("./source-with-header.json"));
|
|
12
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
13
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -32,10 +31,4 @@ exports.Default = Default;
|
|
|
32
31
|
Default.args = {
|
|
33
32
|
id: 'roster-for-loop',
|
|
34
33
|
source: _sourceRoster["default"]
|
|
35
|
-
};
|
|
36
|
-
var WithHeader = Template.bind({});
|
|
37
|
-
exports.WithHeader = WithHeader;
|
|
38
|
-
WithHeader.args = {
|
|
39
|
-
id: 'roster-for-loop-headers',
|
|
40
|
-
source: _sourceWithHeader["default"]
|
|
41
34
|
};
|
|
@@ -14,21 +14,9 @@
|
|
|
14
14
|
{
|
|
15
15
|
"id": "loop-prenom",
|
|
16
16
|
"componentType": "RosterForLoop",
|
|
17
|
-
"
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
"label": {
|
|
21
|
-
"value": "Prénom",
|
|
22
|
-
"type": "VTL|MD"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"headerCell": true,
|
|
27
|
-
"label": {
|
|
28
|
-
"value": "Age",
|
|
29
|
-
"type": "VTL|MD"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
17
|
+
"headers": [
|
|
18
|
+
{ "headerCell": true, "label": "Prénom" },
|
|
19
|
+
{ "headerCell": true, "label": "Age" }
|
|
32
20
|
],
|
|
33
21
|
"label": { "value": "\"Ajouter un individu\"", "type": "VTL|MD" },
|
|
34
22
|
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
@@ -10,6 +10,7 @@ var _defaultArgTypes = _interopRequireDefault(require("../../utils/default-arg-t
|
|
|
10
10
|
var _e2e = require("../../../../tests/utils/e2e");
|
|
11
11
|
var _source = _interopRequireDefault(require("./source"));
|
|
12
12
|
var _timer = require("../../../../tests/utils/timer");
|
|
13
|
+
var _logger = require("../../../utils/logger");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
16
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -535,7 +536,7 @@ With_Missing.args = {
|
|
|
535
536
|
pagination: true,
|
|
536
537
|
missing: true,
|
|
537
538
|
missingStrategy: function missingStrategy() {
|
|
538
|
-
|
|
539
|
+
_logger.Logger.info('your strategy has been applied');
|
|
539
540
|
},
|
|
540
541
|
dontKnowButton: 'I dunno',
|
|
541
542
|
refusedButton: 'Oh no!',
|