project-booster-vue 10.16.2 → 10.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "10.16.2",
3
+ "version": "10.16.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -207,10 +207,12 @@ $responsive-breakpoint: 'm';
207
207
 
208
208
  .m-pb-exit-options {
209
209
  width: calc(100% - $mu250);
210
+ max-width: 100%;
210
211
  margin: 4rem auto;
211
212
 
212
213
  @include set-from-screen($responsive-breakpoint) {
213
214
  width: 100%;
215
+ max-width: 720px;
214
216
  }
215
217
 
216
218
  &__title {
@@ -388,7 +388,7 @@ $answers-apparition-duration: '0.5s';
388
388
  padding: $mu200 $mu125 $mu100 $mu125;
389
389
 
390
390
  @include set-from-screen($responsive-breakpoint) {
391
- padding: 0;
391
+ padding: $mu200 0 0 0;
392
392
  width: 100%;
393
393
  }
394
394
  }
@@ -22,7 +22,11 @@
22
22
  />
23
23
  </div>
24
24
  </transition>
25
- <div class="pb-scenario__step-container" :style="`min-height: ${minHeight};`">
25
+ <div
26
+ class="pb-scenario__step-container"
27
+ :class="{ auto: state.currentStep?.slots?.beforeContent?.component != 'MPbProgress' }"
28
+ :style="`min-height: ${minHeight};`"
29
+ >
26
30
  <div class="pb-scenario__step-container__before">
27
31
  <div
28
32
  class="pb-scenario__step-container__before-step xl"
@@ -795,6 +799,10 @@ $slide-sticky-bottom-animation-delay: $slide-animation-duration + 0.45s;
795
799
  @include set-from-screen($responsive-breakpoint) {
796
800
  width: 720px;
797
801
  margin: 0 auto;
802
+
803
+ &.auto {
804
+ width: auto;
805
+ }
798
806
  }
799
807
 
800
808
  &__before-step {
@@ -750,7 +750,7 @@
750
750
  "display": true,
751
751
  "component": "MPbProgress",
752
752
  "totalStep": 13,
753
- "currentStep": 1,
753
+ "currentStep": 8,
754
754
  "sizeXlWidth": true,
755
755
  "label": "Votre projet de salle de bains"
756
756
  }
@@ -820,7 +820,7 @@
820
820
  "display": true,
821
821
  "component": "MPbProgress",
822
822
  "totalStep": 13,
823
- "currentStep": 1,
823
+ "currentStep": 7,
824
824
  "sizeXlWidth": true,
825
825
  "label": "Votre projet de salle de bains"
826
826
  }
@@ -151,22 +151,13 @@
151
151
  "LMFR_QUESTION_WORK_START_DATE": {
152
152
  "code": "LMFR_QUESTION_WORK_START_DATE",
153
153
  "type": "STEP",
154
- "component": "MPbQuestion",
155
- "slots": {
156
- "beforeContent": {
157
- "display": true,
158
- "component": "MPbProgress",
159
- "totalStep": 5,
160
- "currentStep": 1,
161
- "sizeXlWidth": true
162
- }
163
- },
154
+ "component": "PbQuestion",
164
155
  "payload": {
165
156
  "viewModel": {
166
157
  "backLabel": "Retour",
167
158
  "label": "Quand souhaitez-vous commencer vos travaux ?",
168
159
  "forceOneCardPerLineOnMobile": true,
169
- "answersComponent": "MPbCard"
160
+ "answersComponent": "PbCard"
170
161
  },
171
162
  "answers": {
172
163
  "AS_SOON_AS_POSSIBLE": {
@@ -206,22 +197,13 @@
206
197
  "LMFR_QUESTION_BUDGET": {
207
198
  "code": "LMFR_QUESTION_BUDGET",
208
199
  "type": "STEP",
209
- "component": "MPbQuestion",
210
- "slots": {
211
- "beforeContent": {
212
- "display": true,
213
- "component": "MPbProgress",
214
- "totalStep": 5,
215
- "currentStep": 2,
216
- "sizeXlWidth": true
217
- }
218
- },
200
+ "component": "PbQuestion",
219
201
  "payload": {
220
202
  "viewModel": {
221
203
  "label": "Avez-vous une idée du budget de votre cuisine (mobilier et équipements) ?",
222
204
  "subtitle": "Votre conseiller veillera à respecter votre budget",
223
205
  "forceOneCardPerLineOnMobile": true,
224
- "answersComponent": "MPbCard"
206
+ "answersComponent": "PbCard"
225
207
  },
226
208
  "answers": {
227
209
  "BETWEEN_1500_AND_2000_EUROS": {
@@ -269,16 +251,7 @@
269
251
  "LMFR_QUESTION_INSTALLATION": {
270
252
  "code": "LMFR_QUESTION_INSTALLATION",
271
253
  "type": "STEP",
272
- "component": "MPbQuestion",
273
- "slots": {
274
- "beforeContent": {
275
- "display": true,
276
- "component": "MPbProgress",
277
- "totalStep": 5,
278
- "currentStep": 3,
279
- "sizeXlWidth": true
280
- }
281
- },
254
+ "component": "PbQuestion",
282
255
  "payload": {
283
256
  "viewModel": {
284
257
  "label": "Qui posera votre cuisine ?",
@@ -287,7 +260,7 @@
287
260
  "label": "*Nos artisans partenaires sont rigoureusement sélectionnés et vos travaux sont garantis jusqu'à 10 ans. Vous pouvez également bénéficier de la TVA réduite à 10% (au lieu de 20%) sur les produits éligibles et la pose. Les travaux doivent être réalisés dans un lieu d’habitation achevé depuis plus de 2 ans (agrandissements exclus). Sans condition de revenu.",
288
261
  "theme": "gray"
289
262
  },
290
- "answersComponent": "MPbCard"
263
+ "answersComponent": "PbCard"
291
264
  },
292
265
  "answers": {
293
266
  "BY_MYSELF": {
@@ -327,12 +300,12 @@
327
300
  "LMFR_QUESTION_PLAN": {
328
301
  "code": "LMFR_QUESTION_PLAN",
329
302
  "type": "STEP",
330
- "component": "MPbQuestion",
303
+ "component": "PbQuestion",
331
304
  "payload": {
332
305
  "viewModel": {
333
306
  "label": " Avez-vous déjà un plan avec les mesures de votre cuisine ?",
334
307
  "forceOneCardPerLineOnMobile": true,
335
- "answersComponent": "MPbCard"
308
+ "answersComponent": "PbCard"
336
309
  },
337
310
  "answers": {
338
311
  "HAVE_SIMULATION": {
@@ -437,13 +410,13 @@
437
410
  "LMFR_QUESTION_SCENARIO_NO_SIMULATION": {
438
411
  "code": "LMFR_QUESTION_SCENARIO_NO_SIMULATION",
439
412
  "type": "STEP",
440
- "component": "MPbQuestion",
413
+ "component": "PbQuestion",
441
414
  "payload": {
442
415
  "viewModel": {
443
416
  "label": "Veuillez-nous excuser, nous n’avons trouvé aucun plan",
444
417
  "widthFromL": "1of3",
445
418
  "forceOneCardPerLineOnMobile": true,
446
- "answersComponent": "MPbCard"
419
+ "answersComponent": "PbCard"
447
420
  },
448
421
  "answers": {
449
422
  "NO_PLAN": {
@@ -482,13 +455,13 @@
482
455
  "LMFR_QUESTION_SCENARIO_SIMULATION_NOT_FOUND": {
483
456
  "code": "LMFR_QUESTION_SCENARIO_SIMULATION_NOT_FOUND",
484
457
  "type": "STEP",
485
- "component": "MPbQuestion",
458
+ "component": "PbQuestion",
486
459
  "payload": {
487
460
  "viewModel": {
488
461
  "label": "Vous ne trouvez pas votre plan",
489
462
  "widthFromL": "1of3",
490
463
  "forceOneCardPerLineOnMobile": true,
491
- "answersComponent": "MPbCard"
464
+ "answersComponent": "PbCard"
492
465
  },
493
466
  "answers": {
494
467
  "NO_PLAN": {
@@ -548,13 +521,13 @@
548
521
  "LMFR_QUESTION_PLAN_INFO": {
549
522
  "code": "LMFR_QUESTION_PLAN_INFO",
550
523
  "type": "STEP",
551
- "component": "MPbQuestion",
524
+ "component": "PbQuestion",
552
525
  "payload": {
553
526
  "viewModel": {
554
527
  "label": "${answers.LMFR_QUESTION_PLAN[0].code === 'HAVE_PLAN' ? 'Sur votre plan, vérifiez que vous avez les bonnes mesures :' : 'Réalisez rapidement un plan avec les mesures de votre pièce en 3 étapes'}",
555
528
  "widthFromL": "1of3",
556
529
  "forceOneCardPerLineOnMobile": true,
557
- "answersComponent": "MPbCard",
530
+ "answersComponent": "PbCard",
558
531
  "videoBlock": {
559
532
  "buttonLabel": "Voir le guide en vidéo (1min)",
560
533
  "icon": "https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Media_Play_24px.svg",
@@ -662,7 +635,7 @@
662
635
  "payload": {
663
636
  "viewModel": {
664
637
  "label": "Vos plans de cuisine",
665
- "answersComponent": "MPbCard",
638
+ "answersComponent": "PbCard",
666
639
  "showMore": {
667
640
  "itemsPerPage": 4,
668
641
  "label": "Afficher plus de documents"
@@ -749,14 +722,14 @@
749
722
  "LMFR_QUESTION_PICTURE_INFO": {
750
723
  "code": "LMFR_QUESTION_PICTURE_INFO",
751
724
  "type": "STEP",
752
- "component": "MPbQuestion",
725
+ "component": "PbQuestion",
753
726
  "payload": {
754
727
  "viewModel": {
755
728
  "label": "Si possible, ajoutez des photos de votre cuisine actuelle",
756
729
  "subtitle": "Aidez votre conseiller à bien visualiser votre pièce, ajoutez par exemple :",
757
730
  "widthFromL": "1of3",
758
731
  "forceOneCardPerLineOnMobile": true,
759
- "answersComponent": "MPbCard"
732
+ "answersComponent": "PbCard"
760
733
  },
761
734
  "skippable": [
762
735
  {
@@ -838,7 +811,7 @@
838
811
  "label": "Les photos de votre cuisine",
839
812
  "addTitle": "Ajouter une photo",
840
813
  "addText": " ",
841
- "answersComponent": "MPbCard",
814
+ "answersComponent": "PbCard",
842
815
  "showMore": {
843
816
  "itemsPerPage": 4,
844
817
  "label": "Afficher plus de photos"