project-booster-vue 10.15.2 → 10.15.3
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/package.json +1 -1
- package/src/components/rework/navigation/MPbNavigation.vue +1 -1
- package/src/components/rework/question/MPbQuestion.vue +2 -2
- package/src/components/rework/question/city-search/MPbCitySearch.vue +9 -1
- package/src/components/rework/question/space-input/MPbSpaceInput.vue +9 -1
- package/src/components/rework/restitution/MPbRestitutionList.vue +2 -9
- package/src/components/scenario/scenarii/attic-insulation.json +2 -1
- package/src/components/scenario/scenarii/estimator-external-wall-insulation.json +2 -1
- package/src/components/scenario/scenarii/solar-panel.json +76 -101
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
v-for="answer in displayedAnswers"
|
|
32
32
|
:key="`pb-question__answers-${answer.code}`"
|
|
33
33
|
:class="`
|
|
34
|
-
|
|
34
|
+
column-full
|
|
35
35
|
${payload.viewModel.widthFromM ? 'column-' + payload.viewModel.widthFromM : 'column-1of3'}
|
|
36
36
|
${payload.viewModel.widthFromL ? 'column-' + payload.viewModel.widthFromL : 'column-1of4'}
|
|
37
37
|
`"
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
width="full"
|
|
155
155
|
size="l"
|
|
156
156
|
theme="primary"
|
|
157
|
-
@click="handleHelpClick(helpItem.action)"
|
|
157
|
+
@click.prevent="handleHelpClick(helpItem.action)"
|
|
158
158
|
>
|
|
159
159
|
{{ helpItem.label }}
|
|
160
160
|
</m-link>
|
|
@@ -409,7 +409,15 @@ export default defineComponent({
|
|
|
409
409
|
return this.selectedCity?.postalCode + ' ' + this.selectedCity?.name + ', ' + this.selectedCity?.region;
|
|
410
410
|
},
|
|
411
411
|
nextStep({ answers, nextStep }: { answers: any; nextStep: any }) {
|
|
412
|
-
callAction(
|
|
412
|
+
callAction(
|
|
413
|
+
nextStep,
|
|
414
|
+
[
|
|
415
|
+
{
|
|
416
|
+
city: this.selectedCity,
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
this.$emit,
|
|
420
|
+
);
|
|
413
421
|
},
|
|
414
422
|
sanitizeCerberusAttribut,
|
|
415
423
|
formatEvent,
|
|
@@ -232,7 +232,15 @@ const isShowingFooter = computed(() => {
|
|
|
232
232
|
});
|
|
233
233
|
|
|
234
234
|
const nextStep = ({ answers, nextStep }: { answers: any; nextStep: any }) => {
|
|
235
|
-
callAction(
|
|
235
|
+
callAction(
|
|
236
|
+
nextStep,
|
|
237
|
+
[
|
|
238
|
+
{
|
|
239
|
+
space: space.value,
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
$emit,
|
|
243
|
+
);
|
|
236
244
|
};
|
|
237
245
|
|
|
238
246
|
onMounted(() => {
|
|
@@ -380,20 +380,13 @@ $responsive-breakpoint: 'm';
|
|
|
380
380
|
margin: 0 auto;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
&__call {
|
|
384
|
-
margin-left: $mu050;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
&__save,
|
|
388
383
|
&__call {
|
|
389
384
|
width: 100%;
|
|
390
|
-
|
|
391
|
-
&:first-child {
|
|
392
|
-
margin: 0 $mu100 $mu050 0;
|
|
393
|
-
}
|
|
385
|
+
margin: 0 0 $mu050 0;
|
|
394
386
|
|
|
395
387
|
@include set-from-screen($responsive-breakpoint) {
|
|
396
388
|
width: auto;
|
|
389
|
+
margin: 0 $mu050 0 0;
|
|
397
390
|
}
|
|
398
391
|
|
|
399
392
|
button {
|
|
@@ -287,7 +287,8 @@
|
|
|
287
287
|
"viewModel": {
|
|
288
288
|
"backLabel": "Question précédente",
|
|
289
289
|
"label": "Dans ce logement, vous êtes ?",
|
|
290
|
-
"answersComponent": "MPbCard"
|
|
290
|
+
"answersComponent": "MPbCard",
|
|
291
|
+
"forceOneCardPerLineOnMobile": true
|
|
291
292
|
},
|
|
292
293
|
"answers": {
|
|
293
294
|
"OWNER": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"component": "MPbProducts",
|
|
26
26
|
"payload": {
|
|
27
27
|
"viewModel": {
|
|
28
|
-
"label": "
|
|
28
|
+
"label": "Estimez le coût de votre projet d'installation de panneaux solaires",
|
|
29
29
|
"defaultProduct": {
|
|
30
30
|
"designation": "Installation de panneaux photovoltaïques"
|
|
31
31
|
}
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"type": "warning",
|
|
74
74
|
"title": "Nous attirons votre attention !",
|
|
75
75
|
"content": "Nous ne realisons pas de projets de panneau photovoltaïque dans les appartements dans la mesure où votre toit est partagé",
|
|
76
|
-
"buttonText": "Voir d'autres solutions pour faire des économies
|
|
76
|
+
"buttonText": "Voir d'autres solutions pour faire des économies d'énergie",
|
|
77
77
|
"buttonHref": "https://www.leroymerlin.fr/economie-energie/"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -91,10 +91,11 @@
|
|
|
91
91
|
},
|
|
92
92
|
"slots": {
|
|
93
93
|
"beforeContent": {
|
|
94
|
+
"label": "Estimez le coût de votre projet",
|
|
94
95
|
"display": true,
|
|
95
96
|
"sizeXlWidth": true,
|
|
96
97
|
"component": "MPbProgress",
|
|
97
|
-
"totalStep":
|
|
98
|
+
"totalStep": 6,
|
|
98
99
|
"currentStep": 1
|
|
99
100
|
}
|
|
100
101
|
}
|
|
@@ -116,85 +117,20 @@
|
|
|
116
117
|
"backLabel": "Question précédente",
|
|
117
118
|
"label": "Dans quelle ville aura lieu les travaux ?",
|
|
118
119
|
"placeholder": "Code postal, Ville",
|
|
119
|
-
"actionLabel": "Continuer"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"nextStep": {
|
|
123
|
-
"code": "LMFR_SOLAR_PANEL_QUESTION_LINKY"
|
|
124
|
-
},
|
|
125
|
-
"slots": {
|
|
126
|
-
"beforeContent": {
|
|
127
|
-
"display": true,
|
|
128
|
-
"component": "MPbProgress",
|
|
129
|
-
"totalStep": 5,
|
|
130
|
-
"currentStep": 2
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"LMFR_SOLAR_PANEL_QUESTION_LINKY": {
|
|
135
|
-
"code": "LMFR_SOLAR_PANEL_QUESTION_LINKY",
|
|
136
|
-
"type": "STEP",
|
|
137
|
-
"component": "MPbQuestion",
|
|
138
|
-
"payload": {
|
|
139
|
-
"viewModel": {
|
|
140
|
-
"label": "Votre logement est-il équipé d’un compteur Linky ?",
|
|
141
|
-
"answersComponent": "MPbCard",
|
|
142
|
-
"progressBar": true,
|
|
143
|
-
"widthFromL": "1of3",
|
|
144
|
-
"forceOneCardPerLineOnMobile": true
|
|
145
|
-
},
|
|
146
|
-
"answers": {
|
|
147
|
-
"YES": {
|
|
148
|
-
"code": "YES",
|
|
149
|
-
"viewModel": {
|
|
150
|
-
"title": "Oui"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"NO": {
|
|
154
|
-
"code": "NO",
|
|
155
|
-
"viewModel": {
|
|
156
|
-
"title": "Non"
|
|
157
|
-
},
|
|
158
|
-
"notification": {
|
|
159
|
-
"type": "warning",
|
|
160
|
-
"content": "Le compteur électrique Linky vous permet d'être facturé selon votre consommation électrique réelle. Sans ce compteur nous ne pouvons pas installer de panneaux solaires. Pour l’installer, nous vous invitons à vous rapprocher d'Enedis",
|
|
161
|
-
"buttonText": "Voir d'autres solutions pour faire des économies de chauffage",
|
|
162
|
-
"buttonHref": "https://www.leroymerlin.fr/economie-energie/"
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"helpArea": [
|
|
167
|
-
{
|
|
168
|
-
"type": "link",
|
|
169
|
-
"label": "À quoi ressemble un compteur Linky ?",
|
|
170
|
-
"action": {
|
|
171
|
-
"type": "MODAL",
|
|
172
|
-
"viewModelDialog": {
|
|
173
|
-
"headerTitle": "À quoi ressemble un compteur Linky ?",
|
|
174
|
-
"htmlContent": "<b style='font-size:18px;'>Le compteur Linky ressemble à un boîtier rectangulaire en plastique. Il a un écran qui affiche la consommation d'électricité en kilowattheures (kWh)</b><br/><br/><p>C’est un compteur d'électricité intelligent installé par Enedis en France. Il permet de mesurer la consommation d'électricité en temps réel et de transmettre les données sans intervention humaine grâce à une communication sans fil.</p><br/>",
|
|
175
|
-
"imgUrl": "https://storage.googleapis.com/project-booster-media/energyrenovation/linky.png"
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
]
|
|
180
|
-
},
|
|
181
|
-
"nextStep": {
|
|
182
|
-
"conditionals": [
|
|
183
|
-
{
|
|
184
|
-
"conditions": ["isAnswerMatching('LMFR_SOLAR_PANEL_QUESTION_LINKY', 'YES')"],
|
|
185
|
-
"nextStep": {
|
|
186
|
-
"code": "LMFR_SOLAR_PANEL_QUESTION_EXPOSED_ROOF_AREA"
|
|
187
|
-
}
|
|
120
|
+
"actionLabel": "Continuer",
|
|
121
|
+
"nextStep": {
|
|
122
|
+
"code": "LMFR_SOLAR_PANEL_QUESTION_ELECTRICITY_COMSUMPTION"
|
|
188
123
|
}
|
|
189
|
-
|
|
124
|
+
}
|
|
190
125
|
},
|
|
191
126
|
"slots": {
|
|
192
127
|
"beforeContent": {
|
|
128
|
+
"label": "Estimez le coût de votre projet",
|
|
193
129
|
"display": true,
|
|
194
|
-
"sizeXlWidth": true,
|
|
195
130
|
"component": "MPbProgress",
|
|
196
|
-
"totalStep":
|
|
197
|
-
"currentStep":
|
|
131
|
+
"totalStep": 6,
|
|
132
|
+
"currentStep": 2,
|
|
133
|
+
"sizeXlWidth": true
|
|
198
134
|
}
|
|
199
135
|
}
|
|
200
136
|
},
|
|
@@ -249,7 +185,7 @@
|
|
|
249
185
|
"type": "MODAL",
|
|
250
186
|
"viewModelDialog": {
|
|
251
187
|
"headerTitle": "Comment calculer cette surface de toiture ?",
|
|
252
|
-
"htmlContent": "<b style='font-size:18px;'>Il est obligatoire de positionner ses panneaux solaires sur une toiture exposée au sud, est ou ouest.</b><br/><br/><p> Pour calculer la surface de votre toiture exposée au sud, nous vous conseillons d
|
|
188
|
+
"htmlContent": "<b style='font-size:18px;'>Il est obligatoire de positionner ses panneaux solaires sur une toiture exposée au sud, est ou ouest.</b><br/><br/><p> Pour calculer la surface de votre toiture exposée au sud, nous vous conseillons d'utiliser <u>Geoportail</u>. Dans les outils cartographiques : trouvez l'onglet \"Mesures\" et l'outil \"Mesurer une surface\" pour tracer la surface de votre toiture éligible.</p><br/>",
|
|
253
189
|
"imgUrl": "https://storage.googleapis.com/project-booster-media/energyrenovation/roof_area_exposure.png",
|
|
254
190
|
"linkText": "Utiliser Geoportail",
|
|
255
191
|
"hrefLink": "https://www.geoportail.gouv.fr/"
|
|
@@ -263,14 +199,62 @@
|
|
|
263
199
|
},
|
|
264
200
|
"slots": {
|
|
265
201
|
"beforeContent": {
|
|
202
|
+
"label": "Estimez le coût de votre projet",
|
|
266
203
|
"display": true,
|
|
267
204
|
"component": "MPbProgress",
|
|
268
205
|
"sizeXlWidth": true,
|
|
269
|
-
"totalStep":
|
|
206
|
+
"totalStep": 6,
|
|
270
207
|
"currentStep": 4
|
|
271
208
|
}
|
|
272
209
|
}
|
|
273
210
|
},
|
|
211
|
+
"LMFR_SOLAR_PANEL_QUESTION_ELECTRICITY_ECONOMY_PERCENTAGE_GOAL": {
|
|
212
|
+
"code": "LMFR_SOLAR_PANEL_QUESTION_ELECTRICITY_ECONOMY_PERCENTAGE_GOAL",
|
|
213
|
+
"type": "STEP",
|
|
214
|
+
"component": "MPbQuestion",
|
|
215
|
+
"payload": {
|
|
216
|
+
"viewModel": {
|
|
217
|
+
"label": "Quelle baisse de facture souhaitez-vous atteindre ?",
|
|
218
|
+
"answersComponent": "MPbCard",
|
|
219
|
+
"progressBar": true,
|
|
220
|
+
"widthFromL": "always-full",
|
|
221
|
+
"forceOneCardPerLineOnMobile": true
|
|
222
|
+
},
|
|
223
|
+
"answers": {
|
|
224
|
+
"15_PERCENT": {
|
|
225
|
+
"code": "15_PERCENT",
|
|
226
|
+
"viewModel": {
|
|
227
|
+
"title": "-15% et alimenter mes petits équipements quotidiennement"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"50_PERCENT": {
|
|
231
|
+
"code": "50_PERCENT",
|
|
232
|
+
"viewModel": {
|
|
233
|
+
"title": "-50% et produire ma consommation sur toute la journée"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"80_PERCENT": {
|
|
237
|
+
"code": "80_PERCENT",
|
|
238
|
+
"viewModel": {
|
|
239
|
+
"title": "-80% et utiliser mon énergie de jour comme de nuit"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"nextStep": {
|
|
245
|
+
"code": "SUMMARY"
|
|
246
|
+
},
|
|
247
|
+
"slots": {
|
|
248
|
+
"beforeContent": {
|
|
249
|
+
"label": "Estimez le coût de votre projet",
|
|
250
|
+
"display": true,
|
|
251
|
+
"component": "MPbProgress",
|
|
252
|
+
"sizeXlWidth": true,
|
|
253
|
+
"totalStep": 6,
|
|
254
|
+
"currentStep": 5
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
274
258
|
"LMFR_SOLAR_PANEL_QUESTION_ELECTRICITY_COMSUMPTION": {
|
|
275
259
|
"code": "LMFR_SOLAR_PANEL_QUESTION_ELECTRICITY_COMSUMPTION",
|
|
276
260
|
"type": "STEP",
|
|
@@ -285,7 +269,7 @@
|
|
|
285
269
|
"notification": {
|
|
286
270
|
"type": "info",
|
|
287
271
|
"title": "Trouvez facilement cette information :",
|
|
288
|
-
"content": "<ul style='list-style:none; padding:0; margin:0;'><li>- En ligne via un compte client en ligne ou une application mobile.</li><li>- Sur votre facture d
|
|
272
|
+
"content": "<ul style='list-style:none; padding:0; margin:0;'><li>- En ligne via un compte client en ligne ou une application mobile.</li><li>- Sur votre facture d'électricité.</li></ul>"
|
|
289
273
|
}
|
|
290
274
|
},
|
|
291
275
|
"answers": {
|
|
@@ -307,34 +291,34 @@
|
|
|
307
291
|
"title": "4 000 à 8 000 kWh"
|
|
308
292
|
}
|
|
309
293
|
},
|
|
310
|
-
"
|
|
311
|
-
"code": "
|
|
294
|
+
"BETWEEN_8000_AND_12000": {
|
|
295
|
+
"code": "BETWEEN_8000_AND_12000",
|
|
312
296
|
"viewModel": {
|
|
313
|
-
"title": "
|
|
297
|
+
"title": "8 000 à 12 000 kWh"
|
|
314
298
|
}
|
|
315
299
|
},
|
|
316
|
-
"
|
|
317
|
-
"code": "
|
|
300
|
+
"MORE_THAN_12000": {
|
|
301
|
+
"code": "MORE_THAN_12000",
|
|
318
302
|
"viewModel": {
|
|
319
|
-
"title": "
|
|
303
|
+
"title": "Plus de 12 000 kWh"
|
|
320
304
|
}
|
|
321
305
|
}
|
|
322
306
|
}
|
|
323
307
|
},
|
|
324
308
|
"nextStep": {
|
|
325
|
-
"code": "
|
|
309
|
+
"code": "LMFR_SOLAR_PANEL_QUESTION_ELECTRICITY_ECONOMY_PERCENTAGE_GOAL"
|
|
326
310
|
},
|
|
327
311
|
"slots": {
|
|
328
312
|
"beforeContent": {
|
|
313
|
+
"label": "Estimez le coût de votre projet",
|
|
329
314
|
"display": true,
|
|
330
315
|
"component": "MPbProgress",
|
|
331
316
|
"sizeXlWidth": true,
|
|
332
|
-
"totalStep":
|
|
317
|
+
"totalStep": 6,
|
|
333
318
|
"currentStep": 5
|
|
334
319
|
}
|
|
335
320
|
}
|
|
336
321
|
},
|
|
337
|
-
|
|
338
322
|
"SUMMARY": {
|
|
339
323
|
"code": "SUMMARY",
|
|
340
324
|
"type": "STEP",
|
|
@@ -469,10 +453,7 @@
|
|
|
469
453
|
},
|
|
470
454
|
"slots": {
|
|
471
455
|
"beforeContent": {
|
|
472
|
-
"display":
|
|
473
|
-
"component": "MPbProgress",
|
|
474
|
-
"totalStep": 5,
|
|
475
|
-
"currentStep": 2
|
|
456
|
+
"display": false
|
|
476
457
|
}
|
|
477
458
|
}
|
|
478
459
|
},
|
|
@@ -487,9 +468,10 @@
|
|
|
487
468
|
"display": false
|
|
488
469
|
},
|
|
489
470
|
"beforeContent": {
|
|
471
|
+
"label": "Estimez le coût de votre projet",
|
|
490
472
|
"display": true,
|
|
491
473
|
"component": "MPbProgress",
|
|
492
|
-
"totalStep":
|
|
474
|
+
"totalStep": 6,
|
|
493
475
|
"currentStep": 1
|
|
494
476
|
}
|
|
495
477
|
},
|
|
@@ -536,14 +518,7 @@
|
|
|
536
518
|
"path": "city.postalCode"
|
|
537
519
|
}
|
|
538
520
|
},
|
|
539
|
-
"metadata": [
|
|
540
|
-
{
|
|
541
|
-
"attribut": "productRef",
|
|
542
|
-
"type": "string",
|
|
543
|
-
"answerCode": "LMFR_SOLAR_PANEL_DISPLAY_PRODUCT",
|
|
544
|
-
"path": "product.code"
|
|
545
|
-
}
|
|
546
|
-
]
|
|
521
|
+
"metadata": []
|
|
547
522
|
},
|
|
548
523
|
"callToActions": [
|
|
549
524
|
{
|