@inseefr/lunatic 2.7.20-rc.2 → 2.7.21
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/checkbox/commons/checkbox-option.spec.js +2 -2
- package/lib/components/commons/components/combo-box/combo-box-content.js +0 -1
- package/lib/components/commons/components/combo-box/combo-box.stories.js +2 -2
- package/lib/components/commons/components/combo-box/panel/option-container.spec.js +2 -2
- package/lib/components/commons/components/html-table/th.spec.js +2 -2
- package/lib/components/commons/components/html-table/thead.spec.js +2 -2
- package/lib/components/commons/components/lunatic-component-with-label.js +2 -2
- package/lib/components/commons/components/lunatic-component-without-label.js +2 -2
- package/lib/components/commons/components/md-label/link.js +2 -2
- package/lib/components/commons/components/md-label/md-label.js +2 -2
- package/lib/components/commons/components/md-label/router-link.js +2 -2
- package/lib/components/commons/components/missing/missing.js +2 -2
- package/lib/components/commons/components/orchestrated-component.js +2 -2
- package/lib/components/commons/create-customizable-field.js +2 -2
- package/lib/components/component-set/lunatic-component-set.js +2 -2
- package/lib/components/datepicker/html/datepicker.js +2 -2
- package/lib/components/declarations/declarations-after-text.js +2 -2
- package/lib/components/declarations/declarations-before-text.js +3 -5
- package/lib/components/declarations/declarations-detachable.js +2 -4
- package/lib/components/dropdown/html/dropdown-writable/writable-option-renderer.js +2 -2
- package/lib/components/duration/durationInput.js +2 -2
- package/lib/components/loop/block-for-loop.js +4 -4
- package/lib/components/loop/loop.js +2 -2
- package/lib/components/loop/roster-for-loop/roster-for-loop.js +2 -2
- package/lib/components/lunatic-components.js +2 -2
- package/lib/components/modal-controls/modal-controls.js +2 -2
- package/lib/components/pairwise-links/pairwise-links.js +2 -2
- package/lib/components/question-explication/question-explication.spec.js +2 -2
- package/lib/components/sequence/sequence.spec.js +2 -3
- package/lib/components/subsequence/subsequence.spec.js +2 -2
- package/lib/components/suggester/html/suggester.js +5 -4
- package/lib/components/suggester/idb-suggester/idb-suggester.js +4 -1
- package/lib/components/suggester/lunatic-suggester.js +2 -0
- package/lib/components/suggester-loader-widget/widget.js +2 -2
- package/lib/i18n/build-dictionary.js +2 -2
- package/lib/i18n/index.js +2 -2
- package/lib/src/components/declarations/declarations-before-text.d.ts +2 -2
- package/lib/src/components/declarations/declarations-detachable.d.ts +2 -2
- package/lib/src/components/sequence/html/sequence.d.ts +1 -1
- package/lib/src/components/suggester/html/suggester.d.ts +1 -0
- package/lib/src/components/suggester/idb-suggester/idb-suggester.d.ts +2 -2
- package/lib/src/components/suggester/lunatic-suggester.d.ts +1 -1
- package/lib/src/components/type.d.ts +3 -2
- package/lib/src/index.d.ts +4 -0
- package/lib/src/use-lunatic/commons/fill-components/fill-component-required.d.ts +28 -32
- package/lib/src/use-lunatic/commons/fill-components/fill-from-state.d.ts +6 -6
- package/lib/src/use-lunatic/commons/fill-components/fill-iterations.d.ts +20 -24
- package/lib/src/use-lunatic/commons/fill-components/fill-specific-expression.d.ts +11 -11
- package/lib/src/use-lunatic/commons/use-components-from-state.d.ts +1 -1
- package/lib/src/use-lunatic/commons/variables/lunatic-variables-store.d.ts +4 -2
- package/lib/src/use-lunatic/replace-component-sequence.d.ts +1 -5
- package/lib/src/use-lunatic/type-source.d.ts +2 -5
- package/lib/src/use-lunatic/use-lunatic.d.ts +9 -7
- package/lib/stories/behaviour/cleaning/cleaning.stories.js +2 -2
- package/lib/stories/behaviour/controls/controls-externes.stories.js +2 -2
- package/lib/stories/behaviour/controls/controls.stories.js +2 -2
- package/lib/stories/behaviour/missing/missing.stories.js +2 -2
- package/lib/stories/behaviour/others/test.stories.js +2 -2
- package/lib/stories/behaviour/paste/source.json +44337 -5678
- package/lib/stories/behaviour/paste/test.stories.js +2 -2
- package/lib/stories/behaviour/performance/performance.stories.js +2 -2
- package/lib/stories/behaviour/resizing/resizing.stories.js +2 -2
- package/lib/stories/checkbox-boolean/checkboxBoolean.stories.js +2 -2
- package/lib/stories/checkbox-group/checkbox-group.stories.js +2 -2
- package/lib/stories/checkbox-one/checkboxOne.stories.js +2 -2
- package/lib/stories/component-set/component-set.stories.js +2 -2
- package/lib/stories/declaration/input.stories.js +2 -2
- package/lib/stories/disabled/disabled.stories.js +2 -2
- package/lib/stories/dropdown/dropdown.stories.js +2 -2
- package/lib/stories/duration/duration.stories.js +2 -2
- package/lib/stories/filter-description/filter-description.stories.js +2 -2
- package/lib/stories/input/input.stories.js +2 -2
- package/lib/stories/input-number/input-number.stories.js +2 -2
- package/lib/stories/loop/loop.stories.js +2 -2
- package/lib/stories/loop/roster-for-loop.stories.js +2 -2
- package/lib/stories/markdown/markdown.stories.js +2 -2
- package/lib/stories/modal/modal.stories.js +2 -2
- package/lib/stories/overview/overview.stories.js +2 -2
- package/lib/stories/pairwise/pairwise-links.stories.js +2 -2
- package/lib/stories/question/question.stories.js +4 -8
- package/lib/stories/question-context/question-context.stories.js +2 -2
- package/lib/stories/question-explication/question-explication.stories.js +2 -2
- package/lib/stories/question-information/question-information.stories.js +2 -2
- package/lib/stories/questionnaires/logement/logement.stories.js +2 -2
- package/lib/stories/questionnaires/recensement/recensement.stories.js +2 -2
- package/lib/stories/questionnaires/recensement/source.json +2 -2
- package/lib/stories/questionnaires/rp/rp.stories.js +2 -2
- package/lib/stories/questionnaires/simpsons/simpsons.stories.js +2 -2
- package/lib/stories/questionnaires2023/bySequence/ticWeb.stories.js +2 -2
- package/lib/stories/questionnaires2023/famille/famille.stories.js +2 -2
- package/lib/stories/questionnaires2023/simpsons/simpsons.stories.js +2 -2
- package/lib/stories/questionnaires2023/ticTel/ticWeb.stories.js +2 -2
- package/lib/stories/questionnaires2023/ticWeb/ticWeb.stories.js +2 -2
- package/lib/stories/radio/radio.stories.js +2 -2
- package/lib/stories/roundabout/roundabout.stories.js +2 -2
- package/lib/stories/sequence/sequence.stories.js +2 -2
- package/lib/stories/suggester/source-component-set.json +54 -8
- package/lib/stories/suggester/source.json +327 -182
- package/lib/stories/suggester/suggester.stories.js +3 -17
- package/lib/stories/summary/summary.stories.js +2 -2
- package/lib/stories/switch/switch.stories.js +2 -2
- package/lib/stories/table/table.stories.js +2 -2
- package/lib/stories/textarea/textarea.stories.js +2 -2
- package/lib/stories/utils/default-arg-types.js +2 -2
- package/lib/stories/utils/orchestrator.js +3 -2
- package/lib/stories/utils/referentiel.js +5 -14
- package/lib/use-lunatic/commons/check-loops.js +2 -2
- package/lib/use-lunatic/commons/compile-controls.js +2 -2
- package/lib/use-lunatic/commons/create-map-pages.js +2 -2
- package/lib/use-lunatic/commons/fill-components/fill-component-expressions.js +2 -2
- package/lib/use-lunatic/commons/fill-components/fill-component-required.js +2 -2
- package/lib/use-lunatic/commons/fill-components/fill-component-value.js +2 -2
- package/lib/use-lunatic/commons/fill-components/fill-from-state.js +2 -2
- package/lib/use-lunatic/commons/fill-components/fill-iterations.js +2 -2
- package/lib/use-lunatic/commons/fill-components/fill-management.js +2 -2
- package/lib/use-lunatic/commons/fill-components/fill-missing-response.js +2 -2
- package/lib/use-lunatic/commons/fill-components/fill-pagination.js +2 -2
- package/lib/use-lunatic/commons/fill-components/fill-specific-expression.js +2 -2
- package/lib/use-lunatic/commons/page-navigation.js +2 -2
- package/lib/use-lunatic/commons/page-navigation.spec.js +2 -2
- package/lib/use-lunatic/commons/variables/get-questionnaire-data.js +2 -2
- package/lib/use-lunatic/commons/variables/lunatic-variables-store.js +30 -4
- package/lib/use-lunatic/reducer/commons/auto-explore-loop.js +2 -2
- package/lib/use-lunatic/reducer/overview/overview-on-change.js +2 -2
- package/lib/use-lunatic/reducer/overview/overview-on-init.js +2 -2
- package/lib/use-lunatic/reducer/reduce-go-next-page.js +2 -2
- package/lib/use-lunatic/reducer/reduce-go-previous-page.js +2 -2
- package/lib/use-lunatic/reducer/reduce-go-to-page.js +2 -2
- package/lib/use-lunatic/reducer/reduce-handle-change.js +2 -2
- package/lib/use-lunatic/reducer/reduce-on-init.js +4 -4
- package/lib/use-lunatic/reducer/reduce-on-set-waiting.js +2 -2
- package/lib/use-lunatic/reducer/reduce-update-state.js +2 -2
- package/lib/use-lunatic/use-lunatic.test.js +2 -2
- package/lib/use-lunatic/use-suggesters.js +2 -2
- package/lib/utils/array.js +0 -1
- package/lib/utils/idb-tools/idb-bulk-insert.js +2 -2
- package/lib/utils/logger.js +2 -2
- package/lib/utils/suggester-workers/append-to-index/prepare-entities.js +2 -2
- package/lib/utils/suggester-workers/append-to-index/store-messages.js +2 -2
- package/lib/utils/suggester-workers/commons-tokenizer/create-entity-tokenizer.js +2 -2
- package/lib/utils/suggester-workers/commons-tokenizer/create-fields-tokenizer.js +2 -2
- package/lib/utils/suggester-workers/commons-tokenizer/create-filter-stop-words.js +2 -2
- package/lib/utils/suggester-workers/commons-tokenizer/filters/create-filter-stop-words.js +2 -2
- package/lib/utils/suggester-workers/commons-tokenizer/filters/filter-synonyms.js +2 -2
- package/lib/utils/suggester-workers/find-best-label/find-best-label.js +2 -2
- package/lib/utils/suggester-workers/searching/compute-score.js +2 -2
- package/lib/utils/suggester-workers/searching/searching.js +2 -2
- package/package.json +13 -18
- package/workers-release/lunatic-append-worker-0.3.0.js +1 -1
- package/workers-release/lunatic-label-worker-0.3.0.js +1 -1
- package/workers-release/lunatic-search-worker-0.3.0.js +1 -1
- package/lib/stories/suggester/simple.json +0 -168
|
@@ -1,254 +1,399 @@
|
|
|
1
1
|
{
|
|
2
|
-
"maxPage": "4",
|
|
3
2
|
"suggesters": [
|
|
4
3
|
{
|
|
5
|
-
"
|
|
4
|
+
"responseNames": ["VARIABLE_COMMUNE"],
|
|
5
|
+
"name": "L_COMMUNEPASSEE-1-2-0",
|
|
6
6
|
"fields": [
|
|
7
7
|
{
|
|
8
8
|
"name": "label",
|
|
9
9
|
"rules": ["[\\w]+"],
|
|
10
10
|
"language": "French",
|
|
11
|
-
"min":
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
"min": 3,
|
|
12
|
+
"stemmer": false
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"queryParser": {
|
|
16
|
+
"type": "tokenized",
|
|
17
|
+
"params": {
|
|
18
|
+
"language": "French",
|
|
19
|
+
"pattern": "[\\w.]+",
|
|
20
|
+
"min": 3,
|
|
21
|
+
"stemmer": false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"version": "1"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"responseNames": ["VARIABLE_PAYS"],
|
|
28
|
+
"name": "L_PAYS-1-2-0",
|
|
29
|
+
"fields": [
|
|
30
|
+
{
|
|
31
|
+
"name": "label",
|
|
32
|
+
"rules": ["[\\w]+"],
|
|
33
|
+
"language": "French",
|
|
34
|
+
"min": 3,
|
|
35
|
+
"stemmer": false
|
|
36
|
+
}
|
|
14
37
|
],
|
|
15
38
|
"queryParser": {
|
|
16
39
|
"type": "tokenized",
|
|
17
|
-
"params": {
|
|
40
|
+
"params": {
|
|
41
|
+
"language": "French",
|
|
42
|
+
"pattern": "[\\w.]+",
|
|
43
|
+
"min": 3,
|
|
44
|
+
"stemmer": false
|
|
45
|
+
}
|
|
18
46
|
},
|
|
19
47
|
"version": "1"
|
|
20
48
|
},
|
|
21
49
|
{
|
|
22
|
-
"
|
|
50
|
+
"responseNames": ["VARIABLE_NATIONALITE"],
|
|
51
|
+
"name": "L_NATIONALITE-1-2-0",
|
|
23
52
|
"fields": [
|
|
24
53
|
{
|
|
25
54
|
"name": "label",
|
|
26
55
|
"rules": ["[\\w]+"],
|
|
27
56
|
"language": "French",
|
|
28
|
-
"min":
|
|
29
|
-
|
|
30
|
-
|
|
57
|
+
"min": 3,
|
|
58
|
+
"stemmer": false
|
|
59
|
+
}
|
|
31
60
|
],
|
|
32
61
|
"queryParser": {
|
|
33
62
|
"type": "tokenized",
|
|
34
|
-
"params": {
|
|
63
|
+
"params": {
|
|
64
|
+
"language": "French",
|
|
65
|
+
"pattern": "[\\w.]+",
|
|
66
|
+
"min": 3,
|
|
67
|
+
"stemmer": false
|
|
68
|
+
}
|
|
35
69
|
},
|
|
36
70
|
"version": "1"
|
|
37
71
|
},
|
|
38
72
|
{
|
|
39
|
-
"
|
|
73
|
+
"responseNames": ["VARIABLE_PCS"],
|
|
74
|
+
"name": "L_PCS_HOMMES-1-5-0",
|
|
75
|
+
"fields": [
|
|
76
|
+
{
|
|
77
|
+
"name": "label",
|
|
78
|
+
"rules": ["[\\w]+"],
|
|
79
|
+
"language": "French",
|
|
80
|
+
"min": 3,
|
|
81
|
+
"stemmer": false,
|
|
82
|
+
"synonyms": {
|
|
83
|
+
"accueil": ["ACCEUIL"],
|
|
84
|
+
"échafaudage": ["ECHAFFAUDAGE"],
|
|
85
|
+
"URSSAF": ["URSAF", "URSAFF"],
|
|
86
|
+
"ingénierie": ["INGENIEURIE", "INGENERIE", "INGIENERIE"],
|
|
87
|
+
"construction": ["CONSTRUCTEUR"],
|
|
88
|
+
"distribution": ["DISTRIBUTEUR"],
|
|
89
|
+
"fabrication": ["FABRICANT"],
|
|
90
|
+
"abattoir": ["ABATOIR", "ABBATOIR", "ABATOIRE", "ABATTOIRE"],
|
|
91
|
+
"ascenseur": ["ASCENCEUR"],
|
|
92
|
+
"ascenseurs": ["ASCENCEURS"],
|
|
93
|
+
"assenseur": ["ASSENCEUR"],
|
|
94
|
+
"assenseurs": ["ASSENCEURS"],
|
|
95
|
+
"joaillerie": ["JOAILLIER"],
|
|
96
|
+
"agroalimentaire": ["AGGROALIMANTAIRE", "AGROALIMANTAIRE"],
|
|
97
|
+
"alimentaires": ["ALIMANTAIRE"],
|
|
98
|
+
"alimentaires": ["ALIMANTAIRES"],
|
|
99
|
+
"agroalimentaires": ["AGGROALIMANTAIRES", "AGROALIMENTAIRES"]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"queryParser": {
|
|
104
|
+
"type": "tokenized",
|
|
105
|
+
"params": {
|
|
106
|
+
"language": "French",
|
|
107
|
+
"pattern": "[\\w.]+",
|
|
108
|
+
"min": 3,
|
|
109
|
+
"stemmer": false
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"version": "1",
|
|
113
|
+
"meloto": true,
|
|
114
|
+
"stopWords": [
|
|
115
|
+
"a",
|
|
116
|
+
"au",
|
|
117
|
+
"dans",
|
|
118
|
+
"de",
|
|
119
|
+
"des",
|
|
120
|
+
"du",
|
|
121
|
+
"en",
|
|
122
|
+
"er",
|
|
123
|
+
"la",
|
|
124
|
+
"le",
|
|
125
|
+
"ou",
|
|
126
|
+
"sur",
|
|
127
|
+
"d",
|
|
128
|
+
"l",
|
|
129
|
+
"aux",
|
|
130
|
+
"dans",
|
|
131
|
+
"un",
|
|
132
|
+
"une",
|
|
133
|
+
"pour",
|
|
134
|
+
"avec",
|
|
135
|
+
"chez",
|
|
136
|
+
"par",
|
|
137
|
+
"les"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"responseNames": ["VARIABLE_BAILLEURS_SOCIAUX"],
|
|
142
|
+
"name": "bailleurs_sociaux-1-5-0",
|
|
40
143
|
"fields": [
|
|
41
|
-
{
|
|
42
|
-
|
|
43
|
-
|
|
144
|
+
{
|
|
145
|
+
"name": "label",
|
|
146
|
+
"rules": ["[\\w]+"],
|
|
147
|
+
"language": "French",
|
|
148
|
+
"min": 3,
|
|
149
|
+
"stemmer": false
|
|
150
|
+
}
|
|
44
151
|
],
|
|
45
|
-
"queryParser": {
|
|
152
|
+
"queryParser": {
|
|
153
|
+
"type": "tokenized",
|
|
154
|
+
"params": {
|
|
155
|
+
"language": "French",
|
|
156
|
+
"pattern": "[\\w.]+",
|
|
157
|
+
"min": 3,
|
|
158
|
+
"stemmer": false
|
|
159
|
+
}
|
|
160
|
+
},
|
|
46
161
|
"version": "1"
|
|
47
162
|
}
|
|
48
163
|
],
|
|
49
164
|
"components": [
|
|
50
165
|
{
|
|
51
|
-
"
|
|
52
|
-
"componentType": "InputNumber",
|
|
53
|
-
"mandatory": false,
|
|
54
|
-
"min": 1,
|
|
55
|
-
"max": 4,
|
|
56
|
-
"decimals": 0,
|
|
57
|
-
"label": { "value": "\"Number of inhabitants\"", "type": "VTL|MD" },
|
|
58
|
-
"conditionFilter": { "value": "true", "type": "VTL" },
|
|
166
|
+
"componentType": "Suggester",
|
|
59
167
|
"response": {
|
|
60
|
-
"name": "
|
|
168
|
+
"name": "VARIABLECO"
|
|
169
|
+
},
|
|
170
|
+
"storeName": "L_COMMUNEPASSEE-1-2-0",
|
|
171
|
+
"hierarchy": {
|
|
172
|
+
"sequence": {
|
|
173
|
+
"id": "lt4fhgd6",
|
|
174
|
+
"page": "1",
|
|
175
|
+
"label": {
|
|
176
|
+
"type": "VTL|MD",
|
|
177
|
+
"value": "\"I - \" || \"Sequence\""
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"conditionFilter": {
|
|
182
|
+
"type": "VTL",
|
|
183
|
+
"value": "true"
|
|
184
|
+
},
|
|
185
|
+
"id": "lt4ezymk",
|
|
186
|
+
"page": "1",
|
|
187
|
+
"label": {
|
|
188
|
+
"type": "VTL|MD",
|
|
189
|
+
"value": "\"➡ 1. \" || \"Variable Commune\""
|
|
61
190
|
},
|
|
62
|
-
"
|
|
191
|
+
"mandatory": false,
|
|
192
|
+
"maxLength": 249
|
|
63
193
|
},
|
|
64
194
|
{
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
"conditionFilter": {
|
|
71
|
-
|
|
195
|
+
"componentType": "Suggester",
|
|
196
|
+
"response": {
|
|
197
|
+
"name": "VARIABLEPA"
|
|
198
|
+
},
|
|
199
|
+
"storeName": "L_PAYS-1-2-0",
|
|
200
|
+
"conditionFilter": {
|
|
201
|
+
"type": "VTL",
|
|
202
|
+
"value": "true"
|
|
203
|
+
},
|
|
204
|
+
"id": "lt4fjoev",
|
|
72
205
|
"page": "2",
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"mandatory": false,
|
|
80
|
-
"response": {
|
|
81
|
-
"name": "PRENOM"
|
|
82
|
-
},
|
|
83
|
-
"page": "2"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
206
|
+
"label": {
|
|
207
|
+
"type": "VTL|MD",
|
|
208
|
+
"value": "\"➡ 2. \" || \"Variable Pays\""
|
|
209
|
+
},
|
|
210
|
+
"mandatory": false,
|
|
211
|
+
"maxLength": 249
|
|
86
212
|
},
|
|
87
213
|
{
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"conditionFilter": {
|
|
94
|
-
|
|
214
|
+
"componentType": "Suggester",
|
|
215
|
+
"storeName": "L_NATIONALITE-1-2-0",
|
|
216
|
+
"response": {
|
|
217
|
+
"name": "VARIABLENA"
|
|
218
|
+
},
|
|
219
|
+
"conditionFilter": {
|
|
220
|
+
"type": "VTL",
|
|
221
|
+
"value": "true"
|
|
222
|
+
},
|
|
223
|
+
"id": "lt4f6i2y",
|
|
95
224
|
"page": "3",
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
"response": {
|
|
125
|
-
"name": "NAF"
|
|
126
|
-
},
|
|
127
|
-
"page": "3.2"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"id": "sugg2",
|
|
131
|
-
"componentType": "Suggester",
|
|
132
|
-
"mandatory": false,
|
|
133
|
-
"label": "PRENOM || \" what's your favorite NAF code? (without stop words)\"",
|
|
134
|
-
"storeName": "naf-rev2-stop",
|
|
135
|
-
"conditionFilter": {
|
|
136
|
-
"value": "not(isnull(PRENOM))",
|
|
137
|
-
"type": "VTL"
|
|
138
|
-
},
|
|
139
|
-
"response": {
|
|
140
|
-
"name": "NAF_STOP"
|
|
141
|
-
},
|
|
142
|
-
"page": "3.2",
|
|
143
|
-
"declarations": [
|
|
144
|
-
{
|
|
145
|
-
"id": "kb9hi4j0-krnoclfe",
|
|
146
|
-
"declarationType": "INSTRUCTION",
|
|
147
|
-
"position": "BEFORE_QUESTION_TEXT",
|
|
148
|
-
"label": {
|
|
149
|
-
"value": "\"Test declaration before\"",
|
|
150
|
-
"type": "VTL|MD"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"id": "kb9hi4j0-krnoclfe",
|
|
155
|
-
"declarationType": "HELP",
|
|
156
|
-
"position": "AFTER_QUESTION_TEXT",
|
|
157
|
-
"label": {
|
|
158
|
-
"value": "\"Test description from declaration\"",
|
|
159
|
-
"type": "VTL|MD"
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"id": "sugg-communes",
|
|
166
|
-
"componentType": "Suggester",
|
|
167
|
-
"mandatory": false,
|
|
168
|
-
"label": {
|
|
169
|
-
"value": "PRENOM || \" what's your favorite city?\"",
|
|
170
|
-
"type": "VTL|MD"
|
|
171
|
-
},
|
|
172
|
-
"storeName": "cog-communes",
|
|
173
|
-
"conditionFilter": {
|
|
174
|
-
"value": "not(isnull(PRENOM))",
|
|
175
|
-
"type": "VTL"
|
|
176
|
-
},
|
|
177
|
-
"response": {
|
|
178
|
-
"name": "CITY"
|
|
179
|
-
},
|
|
180
|
-
"page": "3.3"
|
|
181
|
-
}
|
|
182
|
-
]
|
|
225
|
+
"label": {
|
|
226
|
+
"type": "VTL|MD",
|
|
227
|
+
"value": "\"➡ 3. \" || \"Variable Nationalité\""
|
|
228
|
+
},
|
|
229
|
+
"mandatory": false,
|
|
230
|
+
"maxLength": 249
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"componentType": "Suggester",
|
|
234
|
+
"storeName": "L_PCS_HOMMES-1-5-0",
|
|
235
|
+
"response": {
|
|
236
|
+
"name": "VARIABLE_P"
|
|
237
|
+
},
|
|
238
|
+
|
|
239
|
+
"conditionFilter": {
|
|
240
|
+
"type": "VTL",
|
|
241
|
+
"value": "true"
|
|
242
|
+
},
|
|
243
|
+
"id": "lt4f9q1o",
|
|
244
|
+
"page": "4",
|
|
245
|
+
"label": {
|
|
246
|
+
"type": "VTL|MD",
|
|
247
|
+
"value": "\"➡ 4. \" || \"VARIABLE_PCS\""
|
|
248
|
+
},
|
|
249
|
+
"allowArbitraryOption": true,
|
|
250
|
+
"mandatory": false,
|
|
251
|
+
"maxLength": 249
|
|
183
252
|
},
|
|
184
253
|
{
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
|
|
189
|
-
|
|
254
|
+
"componentType": "Suggester",
|
|
255
|
+
"storeName": "bailleurs_sociaux-1-5-0",
|
|
256
|
+
"response": {
|
|
257
|
+
"name": "VARIABLE_B"
|
|
258
|
+
},
|
|
259
|
+
"conditionFilter": {
|
|
260
|
+
"type": "VTL",
|
|
261
|
+
"value": "true"
|
|
262
|
+
},
|
|
263
|
+
"id": "lt4f8uba",
|
|
264
|
+
"page": "5",
|
|
265
|
+
"label": {
|
|
266
|
+
"type": "VTL|MD",
|
|
267
|
+
"value": "\"➡ 5. \" || \"VARIABLE_BAILLEURS_SOCIAUX\""
|
|
268
|
+
},
|
|
269
|
+
"mandatory": false,
|
|
270
|
+
"maxLength": 249
|
|
190
271
|
}
|
|
191
272
|
],
|
|
273
|
+
"pagination": "question",
|
|
274
|
+
"resizing": {},
|
|
275
|
+
"label": {
|
|
276
|
+
"type": "VTL|MD",
|
|
277
|
+
"value": "Suggester"
|
|
278
|
+
},
|
|
279
|
+
"lunaticModelVersion": "2.5.0",
|
|
280
|
+
"modele": "SUGGESTER",
|
|
281
|
+
"enoCoreVersion": "2.7.1",
|
|
282
|
+
"generatingDate": "27-02-2024 13:43:43",
|
|
283
|
+
"missing": false,
|
|
284
|
+
"id": "lt4f6mib",
|
|
285
|
+
"maxPage": "5",
|
|
192
286
|
"variables": [
|
|
193
287
|
{
|
|
194
288
|
"variableType": "COLLECTED",
|
|
195
|
-
"name": "NUM",
|
|
196
|
-
"componentRef": "nn",
|
|
197
289
|
"values": {
|
|
198
|
-
"PREVIOUS": null,
|
|
199
290
|
"COLLECTED": null,
|
|
291
|
+
"EDITED": null,
|
|
292
|
+
"INPUTED": null,
|
|
200
293
|
"FORCED": null,
|
|
294
|
+
"PREVIOUS": null
|
|
295
|
+
},
|
|
296
|
+
"name": "COMMENT_QE"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"variableType": "COLLECTED",
|
|
300
|
+
"values": {
|
|
301
|
+
"COLLECTED": null,
|
|
201
302
|
"EDITED": null,
|
|
202
|
-
"INPUTED": null
|
|
203
|
-
|
|
303
|
+
"INPUTED": null,
|
|
304
|
+
"FORCED": null,
|
|
305
|
+
"PREVIOUS": null
|
|
306
|
+
},
|
|
307
|
+
"name": "VARIABLECO"
|
|
204
308
|
},
|
|
205
309
|
{
|
|
206
310
|
"variableType": "COLLECTED",
|
|
207
|
-
"name": "PRENOM",
|
|
208
|
-
"componentRef": "idLoop",
|
|
209
311
|
"values": {
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
}
|
|
312
|
+
"COLLECTED": null,
|
|
313
|
+
"EDITED": null,
|
|
314
|
+
"INPUTED": null,
|
|
315
|
+
"FORCED": null,
|
|
316
|
+
"PREVIOUS": null
|
|
317
|
+
},
|
|
318
|
+
"name": "VARIABLEPA"
|
|
216
319
|
},
|
|
217
320
|
{
|
|
218
321
|
"variableType": "COLLECTED",
|
|
219
|
-
"name": "NAF",
|
|
220
|
-
"componentRef": "idLoopInd",
|
|
221
322
|
"values": {
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
}
|
|
323
|
+
"COLLECTED": null,
|
|
324
|
+
"EDITED": null,
|
|
325
|
+
"INPUTED": null,
|
|
326
|
+
"FORCED": null,
|
|
327
|
+
"PREVIOUS": null
|
|
328
|
+
},
|
|
329
|
+
"name": "VARIABLENA"
|
|
228
330
|
},
|
|
229
331
|
{
|
|
230
332
|
"variableType": "COLLECTED",
|
|
231
|
-
"name": "NAF_STOP",
|
|
232
|
-
"componentRef": "idLoopInd",
|
|
233
333
|
"values": {
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
"
|
|
237
|
-
"
|
|
238
|
-
"
|
|
239
|
-
}
|
|
334
|
+
"COLLECTED": null,
|
|
335
|
+
"EDITED": null,
|
|
336
|
+
"INPUTED": null,
|
|
337
|
+
"FORCED": null,
|
|
338
|
+
"PREVIOUS": null
|
|
339
|
+
},
|
|
340
|
+
"name": "VARIABLE_P"
|
|
240
341
|
},
|
|
241
342
|
{
|
|
242
343
|
"variableType": "COLLECTED",
|
|
243
|
-
"name": "CITY",
|
|
244
|
-
"componentRef": "idLoopInd",
|
|
245
344
|
"values": {
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
}
|
|
345
|
+
"COLLECTED": null,
|
|
346
|
+
"EDITED": null,
|
|
347
|
+
"INPUTED": null,
|
|
348
|
+
"FORCED": null,
|
|
349
|
+
"PREVIOUS": null
|
|
350
|
+
},
|
|
351
|
+
"name": "VARIABLE_B"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"variableType": "CALCULATED",
|
|
355
|
+
"expression": {
|
|
356
|
+
"type": "VTL",
|
|
357
|
+
"value": "true"
|
|
358
|
+
},
|
|
359
|
+
"name": "FILTER_RESULT_VARIABLECO",
|
|
360
|
+
"inFilter": "false"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"variableType": "CALCULATED",
|
|
364
|
+
"expression": {
|
|
365
|
+
"type": "VTL",
|
|
366
|
+
"value": "true"
|
|
367
|
+
},
|
|
368
|
+
"name": "FILTER_RESULT_VARIABLEPA",
|
|
369
|
+
"inFilter": "false"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"variableType": "CALCULATED",
|
|
373
|
+
"expression": {
|
|
374
|
+
"type": "VTL",
|
|
375
|
+
"value": "true"
|
|
376
|
+
},
|
|
377
|
+
"name": "FILTER_RESULT_VARIABLENA",
|
|
378
|
+
"inFilter": "false"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"variableType": "CALCULATED",
|
|
382
|
+
"expression": {
|
|
383
|
+
"type": "VTL",
|
|
384
|
+
"value": "true"
|
|
385
|
+
},
|
|
386
|
+
"name": "FILTER_RESULT_VARIABLE_P",
|
|
387
|
+
"inFilter": "false"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"variableType": "CALCULATED",
|
|
391
|
+
"expression": {
|
|
392
|
+
"type": "VTL",
|
|
393
|
+
"value": "true"
|
|
394
|
+
},
|
|
395
|
+
"name": "FILTER_RESULT_VARIABLE_B",
|
|
396
|
+
"inFilter": "false"
|
|
252
397
|
}
|
|
253
398
|
]
|
|
254
399
|
}
|
|
@@ -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 = exports.ComponentSet = 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 _referentiel = require("../utils/referentiel");
|
|
11
|
-
var _simple = _interopRequireDefault(require("./simple"));
|
|
12
11
|
var _source = _interopRequireDefault(require("./source"));
|
|
13
12
|
var _sourceComponentSet = _interopRequireDefault(require("./source-component-set"));
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -17,8 +16,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
17
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
18
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
-
function _toPropertyKey(
|
|
21
|
-
function _toPrimitive(
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
20
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
21
|
var stories = {
|
|
23
22
|
title: 'Components/Suggester',
|
|
24
23
|
component: _orchestrator["default"],
|
|
@@ -36,19 +35,6 @@ Default.args = {
|
|
|
36
35
|
getReferentiel: _referentiel.getReferentiel,
|
|
37
36
|
pagination: true
|
|
38
37
|
};
|
|
39
|
-
var Simple = exports.Simple = Template.bind({});
|
|
40
|
-
Simple.args = {
|
|
41
|
-
source: _simple["default"],
|
|
42
|
-
getReferentiel: _referentiel.getReferentiel,
|
|
43
|
-
autoSuggesterLoading: true,
|
|
44
|
-
missing: {
|
|
45
|
-
table: {
|
|
46
|
-
disable: false
|
|
47
|
-
},
|
|
48
|
-
control: 'boolean',
|
|
49
|
-
defaultValue: true
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
38
|
var ComponentSet = exports.ComponentSet = Template.bind({});
|
|
53
39
|
ComponentSet.args = {
|
|
54
40
|
source: _sourceComponentSet["default"],
|
|
@@ -15,8 +15,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
15
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
16
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
17
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
-
function _toPropertyKey(
|
|
19
|
-
function _toPrimitive(
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
20
|
var stories = {
|
|
21
21
|
title: 'Components/Summary',
|
|
22
22
|
component: _orchestrator["default"],
|
|
@@ -17,8 +17,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
19
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
-
function _toPropertyKey(
|
|
21
|
-
function _toPrimitive(
|
|
20
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
21
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
22
|
var stories = {
|
|
23
23
|
title: 'Components/Switch',
|
|
24
24
|
component: _orchestrator["default"],
|
|
@@ -22,8 +22,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
22
22
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
23
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
24
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
-
function _toPropertyKey(
|
|
26
|
-
function _toPrimitive(
|
|
25
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
26
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
27
27
|
var stories = {
|
|
28
28
|
title: 'Components/Table',
|
|
29
29
|
component: _orchestrator["default"],
|