project-booster-vue 10.17.2 → 10.18.0
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/landing/PbProjectsLanding.vue +6 -1
- package/src/components/restitution/PbRestitution.vue +0 -1
- package/src/components/restitution/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-restitution-pb-restitution-/360/237/246/240-feature-call-to-action-with-modal-1-snap.png +0 -0
- package/src/components/restitution/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-restitution-pb-restitution-/360/237/246/240-feature-conditional-exit-options-1-snap.png +0 -0
- package/src/components/restitution/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-restitution-pb-restitution-/360/237/246/240-features-with-a-popin-save-action-1-snap.png +0 -0
- package/src/components/restitution/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-restitution-pb-restitution-/360/237/246/240-features-with-exit-options-1-snap.png +0 -0
- package/src/components/restitution/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-restitution-pb-restitution-/360/237/246/240-features-without-price-bar-1-snap.png +0 -0
- package/src/components/rework/alert/MPbAlert.stories.mdx +1 -0
- package/src/components/rework/alert/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-alert-m-pb-alert-/360/237/246/240-101-sandbox-1-snap.png +0 -0
- package/src/components/rework/products/default-payload.json +0 -1
- package/src/components/rework/question/MPbQuestion.stories.mdx +1 -0
- package/src/components/rework/question/incremental-amount-input/MPbIncrementalAmountInput.stories.mdx +1 -0
- package/src/components/rework/question/space-input/MPbSpaceInput.stories.mdx +1 -0
- package/src/components/scenario/PbScenario.vue +9 -9
- package/src/components/scenario/scenarii/appointment-qualification-kitchen.json +5 -13
- package/src/components/scenario/scenarii/estimator-floor.json +43 -15
- package/src/components/trezor/PbTrezor.stories.mdx +1 -0
- package/src/components/trezor/PbTrezor.vue +8 -4
- package/src/components/trezor/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-trezor-pb-trezor-/360/237/246/240-101-sandbox-1-snap.png +0 -0
package/package.json
CHANGED
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
<m-flexy-col
|
|
218
218
|
class="pb-projects-landing__card-container pb-projects-landing__card-container--card-fullwidth-mobile"
|
|
219
219
|
width="1of2"
|
|
220
|
-
width-from-l="
|
|
220
|
+
width-from-l="1of4"
|
|
221
221
|
v-for="item in toolsCards6"
|
|
222
222
|
:key="item.message"
|
|
223
223
|
>
|
|
@@ -435,6 +435,11 @@ export default defineComponent({
|
|
|
435
435
|
image: 'https://storage.googleapis.com/project-booster-media/landing-projet/aide-financement.png',
|
|
436
436
|
href: '/services/service-client/financement.html',
|
|
437
437
|
},
|
|
438
|
+
{
|
|
439
|
+
title: 'Votre projet de rénovation à Paris',
|
|
440
|
+
image: 'https://storage.googleapis.com/project-booster-media/landing-projet/projet-renovation-paris.jpg',
|
|
441
|
+
href: 'https://travaux.leroymerlin.fr/ ',
|
|
442
|
+
},
|
|
438
443
|
],
|
|
439
444
|
};
|
|
440
445
|
},
|
|
@@ -36,6 +36,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
|
|
|
36
36
|
return { args };
|
|
37
37
|
},
|
|
38
38
|
template: `<m-pb-incremental-amount-input
|
|
39
|
+
style="max-width:720px; margin:auto;"
|
|
39
40
|
:payload="args.payload"
|
|
40
41
|
:show-back-button="args.showBackButton"
|
|
41
42
|
:completed-event-name="args.completedEventName"
|
|
@@ -22,7 +22,11 @@
|
|
|
22
22
|
/>
|
|
23
23
|
</div>
|
|
24
24
|
</transition>
|
|
25
|
-
<div
|
|
25
|
+
<div
|
|
26
|
+
class="pb-scenario__step-container"
|
|
27
|
+
:class="{ auto: state?.displayedStep?.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"
|
|
@@ -799,19 +803,15 @@ $slide-sticky-bottom-animation-delay: $slide-animation-duration + 0.45s;
|
|
|
799
803
|
@include set-from-screen($responsive-breakpoint) {
|
|
800
804
|
width: 720px;
|
|
801
805
|
margin: 7.5rem auto 0;
|
|
806
|
+
|
|
807
|
+
&.auto {
|
|
808
|
+
width: auto;
|
|
809
|
+
}
|
|
802
810
|
}
|
|
803
811
|
|
|
804
812
|
&__before-step {
|
|
805
813
|
width: 100%;
|
|
806
814
|
margin: 0 auto;
|
|
807
|
-
|
|
808
|
-
@include set-from-screen($responsive-breakpoint) {
|
|
809
|
-
width: 561px;
|
|
810
|
-
|
|
811
|
-
&.xl {
|
|
812
|
-
width: 719px;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
817
|
|
|
@@ -233,7 +233,8 @@
|
|
|
233
233
|
"label": "Avez-vous une idée du budget de votre cuisine (mobilier et équipements) ?",
|
|
234
234
|
"subtitle": "Votre conseiller veillera à respecter votre budget",
|
|
235
235
|
"forceOneCardPerLineOnMobile": true,
|
|
236
|
-
"answersComponent": "MPbCard"
|
|
236
|
+
"answersComponent": "MPbCard",
|
|
237
|
+
"widthFromL": "auto"
|
|
237
238
|
},
|
|
238
239
|
"answers": {
|
|
239
240
|
"BETWEEN_1500_AND_2000_EUROS": {
|
|
@@ -457,22 +458,13 @@
|
|
|
457
458
|
"code": "LMFR_QUESTION_SCENARIO_NO_SIMULATION",
|
|
458
459
|
"type": "STEP",
|
|
459
460
|
"component": "MPbQuestion",
|
|
460
|
-
"slots": {
|
|
461
|
-
"beforeContent": {
|
|
462
|
-
"display": true,
|
|
463
|
-
"component": "MPbProgress",
|
|
464
|
-
"totalStep": 7,
|
|
465
|
-
"currentStep": 6,
|
|
466
|
-
"sizeXlWidth": true,
|
|
467
|
-
"label": "Votre projet cuisine"
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
461
|
"payload": {
|
|
471
462
|
"viewModel": {
|
|
472
463
|
"label": "Veuillez-nous excuser, nous n’avons trouvé aucun plan",
|
|
473
464
|
"widthFromL": "1of3",
|
|
474
465
|
"forceOneCardPerLineOnMobile": true,
|
|
475
|
-
"answersComponent": "MPbCard"
|
|
466
|
+
"answersComponent": "MPbCard",
|
|
467
|
+
"hideNextStep": true
|
|
476
468
|
},
|
|
477
469
|
"answers": {
|
|
478
470
|
"NO_PLAN": {
|
|
@@ -608,7 +600,7 @@
|
|
|
608
600
|
"skippable": [
|
|
609
601
|
{
|
|
610
602
|
"isAnswer": false,
|
|
611
|
-
"label": "
|
|
603
|
+
"label": "Passer l'étape",
|
|
612
604
|
"theme": "text-primary",
|
|
613
605
|
"width": "full",
|
|
614
606
|
"widthFromM": "fit",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"beforeContent": {
|
|
43
43
|
"display": true,
|
|
44
44
|
"component": "MPbProgress",
|
|
45
|
-
"totalStep":
|
|
45
|
+
"totalStep": 9,
|
|
46
46
|
"currentStep": 1,
|
|
47
47
|
"sizeXlWidth": true
|
|
48
48
|
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"beforeContent": {
|
|
148
148
|
"display": true,
|
|
149
149
|
"component": "MPbProgress",
|
|
150
|
-
"totalStep":
|
|
150
|
+
"totalStep": 9,
|
|
151
151
|
"currentStep": 2,
|
|
152
152
|
"sizeXlWidth": true
|
|
153
153
|
}
|
|
@@ -210,6 +210,14 @@
|
|
|
210
210
|
"slots": {
|
|
211
211
|
"stickyBottom": {
|
|
212
212
|
"display": false
|
|
213
|
+
},
|
|
214
|
+
"beforeContent": {
|
|
215
|
+
"display": true,
|
|
216
|
+
"component": "MPbProgress",
|
|
217
|
+
"totalStep": 9,
|
|
218
|
+
"currentStep": 2,
|
|
219
|
+
"sizeXlWidth": true,
|
|
220
|
+
"label": "Votre projet cuisine"
|
|
213
221
|
}
|
|
214
222
|
},
|
|
215
223
|
"payload": {
|
|
@@ -330,6 +338,14 @@
|
|
|
330
338
|
"slots": {
|
|
331
339
|
"stickyBottom": {
|
|
332
340
|
"display": false
|
|
341
|
+
},
|
|
342
|
+
"beforeContent": {
|
|
343
|
+
"display": true,
|
|
344
|
+
"component": "MPbProgress",
|
|
345
|
+
"totalStep": 9,
|
|
346
|
+
"currentStep": 2,
|
|
347
|
+
"sizeXlWidth": true,
|
|
348
|
+
"label": "Votre projet cuisine"
|
|
333
349
|
}
|
|
334
350
|
},
|
|
335
351
|
"payload": {
|
|
@@ -404,7 +420,7 @@
|
|
|
404
420
|
"beforeContent": {
|
|
405
421
|
"display": true,
|
|
406
422
|
"component": "MPbProgress",
|
|
407
|
-
"totalStep":
|
|
423
|
+
"totalStep": 9,
|
|
408
424
|
"currentStep": 3,
|
|
409
425
|
"sizeXlWidth": true,
|
|
410
426
|
"label": "Estimer vos aides pour votre projet"
|
|
@@ -594,7 +610,7 @@
|
|
|
594
610
|
"beforeContent": {
|
|
595
611
|
"display": true,
|
|
596
612
|
"component": "MPbProgress",
|
|
597
|
-
"totalStep":
|
|
613
|
+
"totalStep": 9,
|
|
598
614
|
"currentStep": 4,
|
|
599
615
|
"sizeXlWidth": true
|
|
600
616
|
}
|
|
@@ -658,8 +674,8 @@
|
|
|
658
674
|
"beforeContent": {
|
|
659
675
|
"display": true,
|
|
660
676
|
"component": "MPbProgress",
|
|
661
|
-
"totalStep":
|
|
662
|
-
"currentStep":
|
|
677
|
+
"totalStep": 9,
|
|
678
|
+
"currentStep": 4,
|
|
663
679
|
"sizeXlWidth": true
|
|
664
680
|
}
|
|
665
681
|
},
|
|
@@ -738,9 +754,10 @@
|
|
|
738
754
|
"beforeContent": {
|
|
739
755
|
"display": true,
|
|
740
756
|
"component": "MPbProgress",
|
|
741
|
-
"totalStep":
|
|
757
|
+
"totalStep": 9,
|
|
742
758
|
"currentStep": 5,
|
|
743
|
-
"sizeXlWidth": true
|
|
759
|
+
"sizeXlWidth": true,
|
|
760
|
+
"label": "Votre projet cuisine"
|
|
744
761
|
}
|
|
745
762
|
},
|
|
746
763
|
"payload": {
|
|
@@ -878,9 +895,10 @@
|
|
|
878
895
|
"beforeContent": {
|
|
879
896
|
"display": true,
|
|
880
897
|
"component": "MPbProgress",
|
|
881
|
-
"totalStep":
|
|
882
|
-
"currentStep":
|
|
883
|
-
"sizeXlWidth": true
|
|
898
|
+
"totalStep": 9,
|
|
899
|
+
"currentStep": 7,
|
|
900
|
+
"sizeXlWidth": true,
|
|
901
|
+
"label": "Votre projet cuisine"
|
|
884
902
|
}
|
|
885
903
|
},
|
|
886
904
|
"payload": {
|
|
@@ -995,7 +1013,7 @@
|
|
|
995
1013
|
"beforeContent": {
|
|
996
1014
|
"display": true,
|
|
997
1015
|
"component": "MPbProgress",
|
|
998
|
-
"totalStep":
|
|
1016
|
+
"totalStep": 9,
|
|
999
1017
|
"currentStep": 6,
|
|
1000
1018
|
"sizeXlWidth": true,
|
|
1001
1019
|
"label": "Votre projet cuisine"
|
|
@@ -1060,7 +1078,7 @@
|
|
|
1060
1078
|
"beforeContent": {
|
|
1061
1079
|
"display": true,
|
|
1062
1080
|
"component": "MPbProgress",
|
|
1063
|
-
"totalStep":
|
|
1081
|
+
"totalStep": 9,
|
|
1064
1082
|
"currentStep": 7,
|
|
1065
1083
|
"sizeXlWidth": true
|
|
1066
1084
|
}
|
|
@@ -1320,6 +1338,16 @@
|
|
|
1320
1338
|
"nextStep": {
|
|
1321
1339
|
"code": "LMFR_FLOOR_QUESTION_INSTALLATION"
|
|
1322
1340
|
},
|
|
1341
|
+
"slots": {
|
|
1342
|
+
"beforeContent": {
|
|
1343
|
+
"display": true,
|
|
1344
|
+
"component": "MPbProgress",
|
|
1345
|
+
"totalStep": 9,
|
|
1346
|
+
"currentStep": 8,
|
|
1347
|
+
"sizeXlWidth": true,
|
|
1348
|
+
"label": "Votre projet cuisine"
|
|
1349
|
+
}
|
|
1350
|
+
},
|
|
1323
1351
|
"payload": {
|
|
1324
1352
|
"viewModel": {
|
|
1325
1353
|
"label": "Quelle gamme de revêtement choisissez-vous ?",
|
|
@@ -1378,8 +1406,8 @@
|
|
|
1378
1406
|
"beforeContent": {
|
|
1379
1407
|
"display": true,
|
|
1380
1408
|
"component": "MPbProgress",
|
|
1381
|
-
"totalStep":
|
|
1382
|
-
"currentStep":
|
|
1409
|
+
"totalStep": 9,
|
|
1410
|
+
"currentStep": 9,
|
|
1383
1411
|
"sizeXlWidth": true
|
|
1384
1412
|
}
|
|
1385
1413
|
},
|
|
@@ -45,6 +45,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
|
|
|
45
45
|
return { args };
|
|
46
46
|
},
|
|
47
47
|
template: `<pb-trezor
|
|
48
|
+
style="max-width:720px; margin:auto;"
|
|
48
49
|
:payload="args.payload"
|
|
49
50
|
:show-back-button="args.showBackButton"
|
|
50
51
|
:completed-event-name="args.completedEventName"
|
|
@@ -540,7 +540,8 @@ $responsive-breakpoint: 'm';
|
|
|
540
540
|
|
|
541
541
|
.pb-trezor {
|
|
542
542
|
margin: 0 auto;
|
|
543
|
-
|
|
543
|
+
max-width: 100%;
|
|
544
|
+
width: 720px;
|
|
544
545
|
|
|
545
546
|
&__back-button {
|
|
546
547
|
align-self: flex-start;
|
|
@@ -549,6 +550,10 @@ $responsive-breakpoint: 'm';
|
|
|
549
550
|
transition: opacity 0.15s 0.5s;
|
|
550
551
|
z-index: 2;
|
|
551
552
|
|
|
553
|
+
@include set-from-screen($responsive-breakpoint) {
|
|
554
|
+
padding: $mu100 0;
|
|
555
|
+
}
|
|
556
|
+
|
|
552
557
|
&--hidden {
|
|
553
558
|
opacity: 0;
|
|
554
559
|
pointer-events: none;
|
|
@@ -564,9 +569,8 @@ $responsive-breakpoint: 'm';
|
|
|
564
569
|
position: relative;
|
|
565
570
|
|
|
566
571
|
@include set-from-screen($responsive-breakpoint) {
|
|
567
|
-
margin: auto;
|
|
568
572
|
padding: 0 0 $mu250 0;
|
|
569
|
-
|
|
573
|
+
width: 100%;
|
|
570
574
|
}
|
|
571
575
|
}
|
|
572
576
|
|
|
@@ -585,7 +589,7 @@ $responsive-breakpoint: 'm';
|
|
|
585
589
|
@include set-from-screen($responsive-breakpoint) {
|
|
586
590
|
margin: auto;
|
|
587
591
|
padding: 0;
|
|
588
|
-
width:
|
|
592
|
+
width: 100%;
|
|
589
593
|
}
|
|
590
594
|
|
|
591
595
|
&__checkbox {
|