project-booster-vue 8.103.2 → 8.104.2

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.
Files changed (44) hide show
  1. package/package.json +1 -1
  2. package/src/components/appointment/PbAppointment.stories.mdx +2 -2
  3. package/src/components/appointment/PbAppointmentStartSection.vue +1 -1
  4. package/src/components/appointment/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-appointment-feature-appointment-recovery-1-snap.png +0 -0
  5. package/src/components/appointment/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-appointment-feature-start-appointment-1-snap.png +0 -0
  6. package/src/components/appointment/default-payload.json +45 -128
  7. package/src/components/appointment/default-selected-scenarios.json +113 -230
  8. package/src/components/cards/PbCard.vue +23 -8
  9. package/src/components/items/PbItemsList.vue +32 -10
  10. package/src/components/pedagogy/PbPedagogy.vue +19 -3
  11. package/src/components/pedagogy/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-pedagogy-101-sandbox-1-snap.png +0 -0
  12. package/src/components/question/PbQuestion-Features-Answers-Decorated.stories.mdx +2 -1
  13. package/src/components/question/PbQuestion-Features-Question-Footer.stories.mdx +59 -0
  14. package/src/components/question/PbQuestion.vue +17 -19
  15. package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-scenario-/360/237/246/240-questions-/360/237/246/240-pb-question-features-question-footer-scalability-1-snap.png +0 -0
  16. package/src/components/question/list-select/PbListSelect-Answers-ShowMore.stories.mdx +89 -0
  17. package/src/components/question/list-select/PbListSelect.vue +10 -0
  18. package/src/components/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-scenario-/360/237/246/240-questions-/360/237/246/240-pb-list-select-features-answers-show-more-showcase-show-more-color-and-position-properties-1-snap.png +0 -0
  19. package/src/components/question/upload-document/PbUploadDocument.vue +9 -1
  20. package/src/components/question/upload-document/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-scenario-/360/237/246/240-questions-/360/237/246/240-pb-upload-document-101-sandbox-1-snap.png +0 -0
  21. package/src/components/question/upload-document/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-scenario-/360/237/246/240-questions-/360/237/246/240-pb-upload-document-feature-show-more-show-more-documents-1-snap.png +0 -0
  22. package/src/components/scenario/PbScenario-Features-Nested.stories.mdx +1 -0
  23. package/src/components/scenario/PbScenario-Features-Test.stories.mdx +113 -0
  24. package/src/components/scenario/PbScenario.vue +311 -250
  25. package/src/components/scenario/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-scenario-/360/237/246/240-pb-scenario-vad-101-sandbox-1-snap.png +0 -0
  26. package/src/components/scenario/scenarii/appointment-qualification-kitchen.json +592 -0
  27. package/src/pages/project/project-hub/PbProjectHub.vue +3 -1
  28. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-1-snap.png +0 -0
  29. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-authorization-error-1-snap.png +0 -0
  30. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-categories-error-1-snap.png +0 -0
  31. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-load-error-1-snap.png +0 -0
  32. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-planner-error-1-snap.png +0 -0
  33. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-with-categories-1-snap.png +0 -0
  34. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-with-creation-error-1-snap.png +0 -0
  35. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-with-estimate-save-1-snap.png +0 -0
  36. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-with-estimate-save-error-1-snap.png +0 -0
  37. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-with-media-1-snap.png +0 -0
  38. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-without-configurations-1-snap.png +0 -0
  39. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-without-configurators-1-snap.png +0 -0
  40. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-without-estimates-1-snap.png +0 -0
  41. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-without-estimators-1-snap.png +0 -0
  42. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-without-loading-1-snap.png +0 -0
  43. package/src/pages/project/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-js-image-storyshots-project-booster-components-/360/237/246/240-pb-project-hub-showcase-without-tools-1-snap.png +0 -0
  44. package/src/pages/project/projects/PbProjects.stories.js +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "8.103.2",
3
+ "version": "8.104.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "test:unit": "vue-cli-service test:unit --forceExit --detectOpenHandles",
@@ -51,11 +51,11 @@ import { documentThumbnailResolver, uploadDocumentResolver } from '../../service
51
51
 
52
52
  The `PbAppointment` component to make an appointment.
53
53
 
54
- ## StartAppointment
54
+ ## Start Appointment
55
55
 
56
56
  <Canvas>
57
57
  <Story
58
- name="Feature - showcaseWithAppointment"
58
+ name="Feature - Start Appointment"
59
59
  parameters={{
60
60
  controls: { disable: true },
61
61
  msw: [
@@ -94,7 +94,7 @@ $responsive-breakpoint: 'm';
94
94
 
95
95
  .pb-appointment-section {
96
96
  height: 100%;
97
- margin-top: $mu500;
97
+ padding-top: $mu500;
98
98
 
99
99
  &__content {
100
100
  padding: $mu100;
@@ -62,7 +62,7 @@
62
62
  {
63
63
  "conditions": ["isAnswerMatching('START_SCENARIO', 'CONTINUE')"],
64
64
  "nextStep": {
65
- "code": "LMFR_QUESTION_WORK_START_DATE"
65
+ "code": "LMFR_QUESTION_SCENARIO"
66
66
  }
67
67
  },
68
68
  {
@@ -74,6 +74,18 @@
74
74
  ]
75
75
  }
76
76
  },
77
+ "LMFR_QUESTION_SCENARIO": {
78
+ "code": "LMFR_QUESTION_SCENARIO",
79
+ "type": "SCENARIO",
80
+ "stepCode": "LMFR_QUESTION_WORK_START_DATE",
81
+ "nextStep": {
82
+ "code": "__END__"
83
+ },
84
+ "trackProgress": true,
85
+ "slots": {
86
+ "stickyTop": { "component": "PbProgressBarHeader" }
87
+ }
88
+ },
77
89
  "LMFR_QUESTION_WORK_START_DATE": {
78
90
  "code": "LMFR_QUESTION_WORK_START_DATE",
79
91
  "type": "STEP",
@@ -115,7 +127,6 @@
115
127
  }
116
128
  }
117
129
  },
118
-
119
130
  "nextStep": {
120
131
  "code": "LMFR_QUESTION_BUDGET"
121
132
  }
@@ -126,7 +137,7 @@
126
137
  "component": "PbQuestion",
127
138
  "payload": {
128
139
  "viewModel": {
129
- "label": "Avez-vous une idée du budget votre cuisine (mobilier et équipements) ?",
140
+ "label": "Avez-vous une idée du budget de votre cuisine (mobilier et équipements) ?",
130
141
  "subtitle": "Votre conseiller veillera à respecter votre budget",
131
142
  "answersComponent": "PbCard"
132
143
  },
@@ -186,7 +197,6 @@
186
197
  },
187
198
  "answersComponent": "PbCard"
188
199
  },
189
-
190
200
  "answers": {
191
201
  "BY_MYSELF": {
192
202
  "code": "BY_MYSELF",
@@ -231,7 +241,6 @@
231
241
  "label": " Avez-vous déjà un plan avec les mesures de votre cuisine ?",
232
242
  "answersComponent": "PbCard"
233
243
  },
234
-
235
244
  "answers": {
236
245
  "HAVE_PLAN": {
237
246
  "code": "HAVE_PLAN",
@@ -251,30 +260,28 @@
251
260
  }
252
261
  },
253
262
  "nextStep": {
254
- "conditionals": [
255
- {
256
- "conditions": ["isAnswerMatching('LMFR_QUESTION_PLAN', 'HAVE_PLAN')"],
257
- "nextStep": {
258
- "code": "LMFR_QUESTION_HAVE_PLAN"
259
- }
260
- },
261
- {
262
- "conditions": ["isAnswerMatching('LMFR_QUESTION_PLAN', 'DONT_HAVE_PLAN')"],
263
- "nextStep": {
264
- "code": "LMFR_QUESTION_DONT_HAVE_PLAN"
265
- }
266
- }
267
- ]
263
+ "code": "LMFR_QUESTION_SCENARIO_PLAN"
264
+ }
265
+ },
266
+ "LMFR_QUESTION_SCENARIO_PLAN": {
267
+ "code": "LMFR_QUESTION_SCENARIO_PLAN",
268
+ "type": "SCENARIO",
269
+ "stepCode": "LMFR_QUESTION_PLAN_INFO",
270
+ "nextStep": {
271
+ "code": "__END__"
272
+ },
273
+ "slots": {
274
+ "stickyTop": { "component": "PbProgressBarHeader" }
268
275
  }
269
276
  },
270
- "LMFR_QUESTION_HAVE_PLAN": {
271
- "code": "LMFR_QUESTION_HAVE_PLAN",
277
+ "LMFR_QUESTION_PLAN_INFO": {
278
+ "code": "LMFR_QUESTION_PLAN_INFO",
272
279
  "type": "STEP",
273
280
  "component": "PbQuestion",
274
281
  "payload": {
275
282
  "viewModel": {
276
- "label": "Sur votre plan, vérifiez que vous avez les bonnes mesures :",
277
- "subtitle": "Votre conseiller aura besoin de ces mesures pour créer votre plan de cuisine en 3D.",
283
+ "label": "${getAnswerValue('LMFR_QUESTION_PLAN', 'value') === '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'}",
284
+ "subtitle": "${getAnswerValue('LMFR_QUESTION_PLAN', 'value') === 'HAVE_PLAN' ? 'Votre conseiller aura besoin de ces mesures pour créer votre plan de cuisine en 3D.' : 'Sur une feuille, dessinez la pièce et reportez les bonnes mesures, prenez une photo du plan et ajoutez la.'}",
278
285
  "widthFromL": "1of3",
279
286
  "forceOneCardPerLineOnMobile": true,
280
287
  "answersComponent": "PbCard",
@@ -304,7 +311,6 @@
304
311
  }
305
312
  }
306
313
  ],
307
-
308
314
  "answers": {
309
315
  "1": {
310
316
  "viewModel": {
@@ -315,7 +321,7 @@
315
321
  "headerTitle": "Exemple de mesures des dimensions de la pièce sur le plan",
316
322
  "imageUrl": "https://storage.googleapis.com/project-booster-media/vad/plans/plan-etape-01.png",
317
323
  "title": "Mesurez les dimensions de la pièce",
318
- "text": "Mesurez les dimensions de votre pièce. <br/> <span class='text-bold'>Longueur, largeur, hauteur. </span> <br/> Reportez ces mesures sur votre plan."
324
+ "text": "Mesurez les dimensions de votre pièce : <br/> <span class='text-bold'>longueur, largeur, hauteur. </span> <br/> Reportez ces mesures sur votre plan."
319
325
  }
320
326
  }
321
327
  },
@@ -337,7 +343,6 @@
337
343
  "title": "Les emplacements des éléments fixes",
338
344
  "linkLabel": "Voir la liste des éléments fixes",
339
345
  "image": "https://storage.googleapis.com/project-booster-media/vad/plans/Qualif-RDV-Elements-fixes.png",
340
-
341
346
  "dialog": {
342
347
  "headerTitle": "Exemple de placement des éléments fixes sur le plan",
343
348
  "imageUrl": "https://storage.googleapis.com/project-booster-media/vad/plans/plan-etape-03.png",
@@ -349,103 +354,6 @@
349
354
  }
350
355
  }
351
356
  },
352
- "LMFR_QUESTION_DONT_HAVE_PLAN": {
353
- "code": "LMFR_QUESTION_DONT_HAVE_PLAN",
354
- "type": "STEP",
355
- "component": "PbQuestion",
356
- "payload": {
357
- "viewModel": {
358
- "label": "Réalisez rapidement un plan avec les mesures de votre pièce en 3 étapes",
359
- "subtitle": "Sur une feuille, dessinez la pièce et reportez les bonnes mesures, prenez une photo du plan et ajoutez la.",
360
- "answersComponent": "PbCard",
361
- "forceOneCardPerLineOnMobile": true,
362
- "widthFromL": "1of3",
363
- "video": {
364
- "src": "https://players.brightcove.net/2812541250001/SkgXKciHDZ_default/index.html?videoId=6270735637001&autoplay=play",
365
- "theme": "bordered",
366
- "label": "Voir le guide en vidéo",
367
- "icon": "https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Media_Play_24px.svg"
368
- }
369
- },
370
- "skippable": [
371
- {
372
- "label": "Ajouter un plan plus tard",
373
- "theme": "bordered",
374
- "width": "full",
375
- "nextStep": {
376
- "code": "ADD_PLAN_LATER"
377
- }
378
- },
379
- {
380
- "label": "Ajouter un plan",
381
- "theme": "solid",
382
- "width": "full",
383
- "widthFromM": "fit",
384
- "nextStep": {
385
- "code": "LMFR_QUESTION_ADD_PLAN"
386
- }
387
- }
388
- ],
389
- "answers": {
390
- "1": {
391
- "viewModel": {
392
- "title": "Mesurez les dimensions de la pièce",
393
- "linkLabel": "Voir un exemple",
394
- "image": "https://storage.googleapis.com/project-booster-media/vad/plans/Qualif-RDV-VAD-Mesures-Dimension-Piece.png",
395
- "dialog": {
396
- "headerTitle": "Exemple de mesures des dimensions de la pièce sur le plan",
397
- "imageUrl": "https://storage.googleapis.com/project-booster-media/vad/plans/plan-etape-01.png",
398
- "title": "Mesurez les dimensions de la pièce",
399
- "text": "Mesurez les dimensions de votre pièce. <br/> <span class='text-bold'>Longueur, largeur, hauteur. </span> <br/> Reportez ces mesures sur votre plan."
400
- }
401
- }
402
- },
403
- "2": {
404
- "viewModel": {
405
- "title": "Mesurez et placez les portes et fenêtres",
406
- "linkLabel": "Voir un exemple",
407
- "image": "https://storage.googleapis.com/project-booster-media/vad/plans/Qualif-RDV-Piece-Portes-et-fenetres.png",
408
- "dialog": {
409
- "headerTitle": "Exemple de placement des portes et fenêtres sur le plan",
410
- "imageUrl": "https://storage.googleapis.com/project-booster-media/vad/plans/plan-etape-02.png",
411
- "title": "Mesurez et placez les portes et fenêtres",
412
- "text": "Mesurez la <span class='text-bold'> largeur </span> et la <span class='text-bold'> hauteur </span> des portes et fenêtres, puis <span class='text-bold'> leur distance avec les murs. </span> <br/> Mesurez la <span class='text-bold'> hauteur des seuils </span> de fenêtres et indiquez le <span class='text-bold'> sens d’ouverture </span> des portes."
413
- }
414
- }
415
- },
416
- "3": {
417
- "viewModel": {
418
- "title": "Repérez les emplacements des éléments fixes",
419
- "linkLabel": "Voir la liste des éléments fixes",
420
- "image": "https://storage.googleapis.com/project-booster-media/vad/plans/Qualif-RDV-Elements-fixes.png",
421
-
422
- "dialog": {
423
- "headerTitle": "Exemple de placement des éléments fixes sur le plan",
424
- "imageUrl": "https://storage.googleapis.com/project-booster-media/vad/plans/plan-etape-03.png",
425
- "title": "Repérez l'emplacement des éléments fixes",
426
- "text": "Situez les <span class='text-bold'> les canalisations d’eau </span> et de <span class='text-bold'> gaz </span>, les <span class='text-bold'> prises électriques </span>, les tuyaux, la sortie de <span class='text-bold'> hotte </span> et de la <span class='text-bold'> ventilation </span>. <br/> Placez également les <span class='text-bold'>radiateurs</span>, <span class='text-bold'>chauffe-eau </span> et <span class='text-bold'>colonne technique </span>."
427
- }
428
- }
429
- }
430
- }
431
- },
432
- "nextStep": {
433
- "conditionals": [
434
- {
435
- "conditions": ["isAnswerMatching('LMFR_QUESTION_DONT_HAVE_PLAN', 'ADD_PLAN_LATER')"],
436
- "nextStep": {
437
- "code": "ADD_PLAN_LATER"
438
- }
439
- },
440
- {
441
- "conditions": ["isAnswerMatching('LMFR_QUESTION_DONT_HAVE_PLAN', 'ADD_PLAN')"],
442
- "nextStep": {
443
- "code": "LMFR_QUESTION_ADD_PLAN"
444
- }
445
- }
446
- ]
447
- }
448
- },
449
357
  "LMFR_QUESTION_ADD_PLAN": {
450
358
  "code": "LMFR_QUESTION_ADD_PLAN",
451
359
  "type": "STEP",
@@ -454,6 +362,10 @@
454
362
  "viewModel": {
455
363
  "label": "Vos plans de cuisine",
456
364
  "answersComponent": "PbCard",
365
+ "showMore": {
366
+ "itemsPerPage": 4,
367
+ "label": "Afficher plus des documents"
368
+ },
457
369
  "mediaPayload": {
458
370
  "viewModel": {
459
371
  "title": "Ajouter un plan",
@@ -472,7 +384,7 @@
472
384
  "documentTypes": [
473
385
  {
474
386
  "code": "HAND_DRAWN_PLAN",
475
- "label": "Un plan fait moi même"
387
+ "label": "Un plan fait moi-même"
476
388
  },
477
389
  {
478
390
  "code": "ARCHITECT_PLAN",
@@ -563,7 +475,7 @@
563
475
  "viewModel": {
564
476
  "value": "3",
565
477
  "url": "https://www.leroymerlin.fr/inspiration/les-meilleures-idees-pour-chaque-piece/cuisine/",
566
- "image": "https://images.ctfassets.net/8q8qvv8j6cpk/59igdEVBhIa37nrfbnGs4V/252c4bb73bf865a68b53036fba6dba21/carrelage.jpg",
478
+ "image": "https://storage.googleapis.com/project-booster-media/vad/fin-de-parcours/inspiration-cuisine.jpg",
567
479
  "title": "Des idées et conseils pour votre cuisine",
568
480
  "width": "full",
569
481
  "widthFromM": "1of3",
@@ -571,6 +483,9 @@
571
483
  }
572
484
  }
573
485
  ]
486
+ },
487
+ "slots": {
488
+ "stickyTop": { "display": false }
574
489
  }
575
490
  },
576
491
  "START_LATER": {
@@ -612,7 +527,7 @@
612
527
  "viewModel": {
613
528
  "value": "3",
614
529
  "url": "https://www.leroymerlin.fr/inspiration/les-meilleures-idees-pour-chaque-piece/cuisine/",
615
- "image": "https://images.ctfassets.net/8q8qvv8j6cpk/59igdEVBhIa37nrfbnGs4V/252c4bb73bf865a68b53036fba6dba21/carrelage.jpg",
530
+ "image": "https://storage.googleapis.com/project-booster-media/vad/fin-de-parcours/inspiration-cuisine.jpg",
616
531
  "title": "Des idées et conseils pour votre cuisine",
617
532
  "width": "full",
618
533
  "widthFromM": "1of3",
@@ -622,7 +537,6 @@
622
537
  ]
623
538
  }
624
539
  },
625
-
626
540
  "__END__": {
627
541
  "code": "__END__",
628
542
  "type": "END",
@@ -662,7 +576,7 @@
662
576
  "viewModel": {
663
577
  "value": "3",
664
578
  "url": "https://www.leroymerlin.fr/inspiration/les-meilleures-idees-pour-chaque-piece/cuisine/",
665
- "image": "https://images.ctfassets.net/8q8qvv8j6cpk/59igdEVBhIa37nrfbnGs4V/252c4bb73bf865a68b53036fba6dba21/carrelage.jpg",
579
+ "image": "https://storage.googleapis.com/project-booster-media/vad/fin-de-parcours/inspiration-cuisine.jpg",
666
580
  "title": "Des idées et conseils pour votre cuisine",
667
581
  "width": "full",
668
582
  "widthFromM": "1of3",
@@ -670,6 +584,9 @@
670
584
  }
671
585
  }
672
586
  ]
587
+ },
588
+ "slots": {
589
+ "stickyTop": { "display": false }
673
590
  }
674
591
  }
675
592
  }