project-booster-vue 10.17.0 → 10.17.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 (46) hide show
  1. package/package.json +1 -1
  2. package/src/components/restitution/PbRestitution.vue +1 -0
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-align-horizontal-1-snap.png +0 -0
  10. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-align-text-1-snap.png +0 -0
  11. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-align-vertical-1-snap.png +0 -0
  12. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-degradations-1-snap.png +0 -0
  13. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-image-1-snap.png +0 -0
  14. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-image-title-1-snap.png +0 -0
  15. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-min-card-ratio-1-snap.png +0 -0
  16. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-selected-1-snap.png +0 -0
  17. package/src/components/rework/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-cards-m-pb-card-/360/237/247/254-features-text-1-snap.png +0 -0
  18. package/src/components/rework/navigation/MPbNavigation.vue +1 -1
  19. package/src/components/rework/question/MPbQuestion.vue +26 -20
  20. package/src/components/rework/question/city-search/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-city-search-/360/237/246/240-showcase-feature-customize-1-snap.png +0 -0
  21. package/src/components/rework/question/configurations-import/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-configurations-import-/360/237/246/240-with-simulations-linked-1-snap.png +0 -0
  22. package/src/components/rework/question/dimensions-input/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-dimensions-input-/360/237/246/240-101-sandbox-1-snap.png +0 -0
  23. package/src/components/rework/question/dimensions-input/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-dimensions-input-/360/237/246/240-showcase-feature-customize-1-snap.png +0 -0
  24. package/src/components/rework/question/dimensions-input/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-dimensions-input-/360/237/246/240-showcase-feature-previous-value-from-answer-1-snap.png +0 -0
  25. package/src/components/rework/question/dimensions-input/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-dimensions-input-/360/237/246/240-showcase-feature-previous-value-from-default-1-snap.png +0 -0
  26. package/src/components/rework/question/incremental-amount-input/MPbIncrementalAmountInput.vue +2 -6
  27. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-list-select-/360/237/246/240-101-sandbox-1-snap.png +0 -0
  28. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-list-select-/360/237/246/240-features-answers-skippable-showcase-feature-skippable-1-snap.png +0 -0
  29. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-list-select-/360/237/246/240-showcase-mono-select-1-snap.png +0 -0
  30. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-list-select-/360/237/246/240-showcase-multiselect-1-snap.png +0 -0
  31. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-list-select-/360/237/246/240-showcase-multiselect-dynamic-label-1-snap.png +0 -0
  32. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-rework-questions-m-pb-list-select-/360/237/246/240-showcase-pagination-1-snap.png +0 -0
  33. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-m-pb-list-select-/360/237/246/240-features-answers-multiple-showcase-feature-multiple-1-snap.png +0 -0
  34. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-m-pb-list-select-/360/237/246/240-features-answers-next-step-showcase-feature-next-step-1-snap.png +0 -0
  35. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-m-pb-list-select-/360/237/246/240-features-answers-show-more-showcase-feature-show-more-1-snap.png +0 -0
  36. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-m-pb-list-select-/360/237/246/240-features-answers-show-more-showcase-show-more-color-and-position-properties-1-snap.png +0 -0
  37. package/src/components/rework/question/list-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-m-pb-list-select-/360/237/246/240-features-answers-single-showcase-feature-single-1-snap.png +0 -0
  38. package/src/components/rework/question/space-input/MPbSpaceInput.vue +1 -2
  39. package/src/components/rework/restitution/MPbRestitutionList.vue +1 -1
  40. package/src/components/rework/styles/global.scss +4 -0
  41. package/src/components/scenario/PbScenario.vue +2 -11
  42. package/src/components/scenario/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-pb-scenario-/360/237/246/240-features-skippable-answers-skippable-event-with-default-answer-1-snap.png +0 -0
  43. package/src/components/scenario/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-pb-scenario-/360/237/246/240-features-skippable-answers-skippable-event-with-empty-array-1-snap.png +0 -0
  44. package/src/components/scenario/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-pb-scenario-/360/237/246/240-features-skippable-answers-skippable-without-event-1-snap.png +0 -0
  45. package/src/components/scenario/scenarii/estimator-attic-insulation.json +1 -10
  46. package/src/types/pb/Scenario.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "10.17.0",
3
+ "version": "10.17.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -312,6 +312,7 @@ $space-left-mobile: $mu100;
312
312
 
313
313
  @include set-from-screen($responsive-breakpoint) {
314
314
  padding: $space-top $space-left;
315
+ max-width: 650px;
315
316
  }
316
317
 
317
318
  &__header {
@@ -90,7 +90,7 @@ const props = defineProps({
90
90
  */
91
91
  backButtonLabel: {
92
92
  type: String,
93
- default: 'Précédent',
93
+ default: 'Étape précédente',
94
94
  },
95
95
  /**
96
96
  * Next button label
@@ -230,11 +230,15 @@
230
230
  <transition-group name="pb-question__actions--animated" mode="out-in">
231
231
  <div
232
232
  ref="pbQuestionActionsButtonsValidate"
233
- class="pb-question__actions-container row-flex"
233
+ :class="`pb-question__actions-container row-flex ${!payload.viewModel?.hideNextStep ? '' : 'justify-start'}`"
234
234
  key="validate"
235
- v-if="!payload.viewModel.disableNavigation"
235
+ v-if="!payload.viewModel?.disableNavigation"
236
236
  >
237
- <div class="pb-question__actions-container__column">
237
+ <div
238
+ :class="`pb-question__actions-container__column row-flex ${
239
+ !payload.viewModel?.hideNextStep ? '' : 'justify-start'
240
+ }`"
241
+ >
238
242
  <m-button
239
243
  :label="backButtonLabel"
240
244
  theme="bordered-neutral"
@@ -263,7 +267,10 @@
263
267
  >
264
268
  </m-button>
265
269
  </div>
266
- <div class="pb-question__actions-container__column" v-if="!skippables || hasAnswersSelected">
270
+ <div
271
+ :class="`pb-question__actions-container__column ${!payload.viewModel?.hideNextStep ? '' : 'justify-start'}`"
272
+ v-if="(!skippables || hasAnswersSelected) && !payload.viewModel?.hideNextStep"
273
+ >
267
274
  <m-button
268
275
  class="pb-question__actions-buttons-button"
269
276
  :class="{ 'js-cdl': trackingStatus }"
@@ -278,7 +285,10 @@
278
285
  :data-cdl-click="eventData"
279
286
  />
280
287
  </div>
281
- <div v-else-if="skippables && !hasAnswersSelected" class="pb-question__actions-container__column">
288
+ <div
289
+ v-else-if="skippables && !hasAnswersSelected && !payload.viewModel?.hideNextStep"
290
+ class="pb-question__actions-container__column"
291
+ >
282
292
  <m-button
283
293
  v-for="button in skippables"
284
294
  :key="button?.label"
@@ -330,7 +340,7 @@
330
340
  :modalTitle="helpDialog?.viewModelDialog.watermark || helpDialog?.viewModelDialog.headerTitle"
331
341
  :open="displayDialogHelp"
332
342
  @update:open="displayDialogHelp = false"
333
- class="mc-modal--overflow"
343
+ class="mc-modal--overflow pb-question__dialog"
334
344
  v-if="helpDialog && helpDialog?.type === 'MODAL'"
335
345
  >
336
346
  <template #default>
@@ -760,18 +770,6 @@ const activateShowMoreAnimation = () => {
760
770
  showAnswerDelay.value = 40;
761
771
  };
762
772
 
763
- const navigateTo = (viewModel: ScenarioStepViewModel) => {
764
- if (viewModel.backLink) {
765
- (<any>window).location = decorate(props.answers, props.runtimeOptions, viewModel.backLink, '');
766
- } else {
767
- /**
768
- * Emitted when go back link is clicked
769
- * @event go-back
770
- */
771
- $emit('go-back');
772
- }
773
- };
774
-
775
773
  const handleAnswerButtonClick = (event: Event) => {
776
774
  $store.dispatch('sendEventToBus', {
777
775
  code: 'ANSWER-BUTTON-CLICKED',
@@ -1256,7 +1254,7 @@ $answers-apparition-duration: '0.5s';
1256
1254
  margin-bottom: $mu050;
1257
1255
 
1258
1256
  @include set-from-screen($responsive-breakpoint) {
1259
- justify-content: flex-end !important;
1257
+ justify-content: flex-end;
1260
1258
  order: 2;
1261
1259
  }
1262
1260
  }
@@ -1497,6 +1495,14 @@ $answers-apparition-duration: '0.5s';
1497
1495
  $responsive-breakpoint: 'm';
1498
1496
 
1499
1497
  .pb-question {
1498
+ &__dialog {
1499
+ h4 {
1500
+ @include set-font-scale('06', 'm');
1501
+
1502
+ margin: $mu050 0 $mu150 0;
1503
+ }
1504
+ }
1505
+
1500
1506
  &__dialog-help {
1501
1507
  &__title {
1502
1508
  @include set-font-scale('06', 'm');
@@ -1526,7 +1532,7 @@ $responsive-breakpoint: 'm';
1526
1532
  background-position: center;
1527
1533
  background-repeat: no-repeat;
1528
1534
  background-size: 100% auto;
1529
- padding: 90px 0;
1535
+ padding: 120px 0;
1530
1536
  margin-bottom: 50px;
1531
1537
  }
1532
1538
 
@@ -196,7 +196,7 @@ $responsive-breakpoint: 'm';
196
196
 
197
197
  flex-grow: 1;
198
198
  margin: 0 auto;
199
- width: calc(100% - #{$mu200});
199
+ width: 100%;
200
200
  padding-top: $mu200;
201
201
 
202
202
  @include set-from-screen($responsive-breakpoint) {
@@ -265,12 +265,8 @@ $responsive-breakpoint: 'm';
265
265
  display: flex;
266
266
  flex-direction: column;
267
267
  flex-grow: 1;
268
- padding: 0 $mu050;
268
+ padding: 0;
269
269
  width: 100%;
270
-
271
- @include set-from-screen($responsive-breakpoint) {
272
- width: 720px;
273
- }
274
270
  }
275
271
 
276
272
  &__form {
@@ -324,8 +324,7 @@ $responsive-breakpoint: 'm';
324
324
  @include set-from-screen($responsive-breakpoint) {
325
325
  @include set-font-scale('07', 'm');
326
326
 
327
- width: 710px;
328
- padding: $mu250 $mu100 $mu050 0;
327
+ padding: $mu250 0 $mu050 0;
329
328
  text-align: left;
330
329
  }
331
330
  }
@@ -334,7 +334,7 @@ $responsive-breakpoint: 'm';
334
334
 
335
335
  &__back-button {
336
336
  align-self: flex-start;
337
- left: 0;
337
+ left: 22px;
338
338
  opacity: 1;
339
339
  padding: $mu100 0 $mu100 $mu100;
340
340
  position: absolute;
@@ -11,6 +11,10 @@
11
11
  }
12
12
  }
13
13
 
14
+ &.justify-start {
15
+ justify-content: flex-start !important;
16
+ }
17
+
14
18
  &.justify-center {
15
19
  justify-content: center;
16
20
  }
@@ -22,11 +22,7 @@
22
22
  />
23
23
  </div>
24
24
  </transition>
25
- <div
26
- class="pb-scenario__step-container"
27
- :class="{ auto: state.currentStep?.slots?.beforeContent?.component != 'MPbProgress' }"
28
- :style="`min-height: ${minHeight};`"
29
- >
25
+ <div class="pb-scenario__step-container" :style="`min-height: ${minHeight};`">
30
26
  <div class="pb-scenario__step-container__before">
31
27
  <div
32
28
  class="pb-scenario__step-container__before-step xl"
@@ -802,17 +798,12 @@ $slide-sticky-bottom-animation-delay: $slide-animation-duration + 0.45s;
802
798
 
803
799
  @include set-from-screen($responsive-breakpoint) {
804
800
  width: 720px;
805
- margin: 0 auto;
806
-
807
- &.auto {
808
- width: 100%;
809
- }
801
+ margin: 7.5rem auto 0;
810
802
  }
811
803
 
812
804
  &__before-step {
813
805
  width: 100%;
814
806
  margin: 0 auto;
815
- padding-top: 7.5rem;
816
807
 
817
808
  @include set-from-screen($responsive-breakpoint) {
818
809
  width: 561px;
@@ -2392,20 +2392,11 @@
2392
2392
  "code": "LMFR_ATTIC_INSULATION_ADVICE_FOR_LESSEE",
2393
2393
  "type": "STEP",
2394
2394
  "component": "MPbQuestion",
2395
- "slots": {
2396
- "beforeContent": {
2397
- "display": true,
2398
- "component": "MPbProgress",
2399
- "totalStep": 5,
2400
- "currentStep": 1,
2401
- "sizeXlWidth": true
2402
- }
2403
- },
2404
2395
  "payload": {
2405
2396
  "viewModel": {
2406
2397
  "label": "Pour aller plus loin dans votre projet",
2407
2398
  "answersComponent": "MPbCard",
2408
- "disableNavigation": true
2399
+ "hideNextStep": true
2409
2400
  },
2410
2401
  "answers": {
2411
2402
  "DISCOVER_OUR_HEATERS": {
@@ -178,6 +178,7 @@ export interface ScenarioStepViewModel {
178
178
  forceOneCardPerLineOnMobile?: boolean;
179
179
  alwaysDisplaySkippable?: boolean;
180
180
  disableNavigation?: boolean;
181
+ hideNextStep?: boolean;
181
182
  decoratorStripe?: {
182
183
  length: string;
183
184
  };