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.
- package/package.json +1 -1
- package/src/components/restitution/PbRestitution.vue +1 -0
- 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/__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/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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/src/components/rework/navigation/MPbNavigation.vue +1 -1
- package/src/components/rework/question/MPbQuestion.vue +26 -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
- 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
- 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
- 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
- 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
- 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
- package/src/components/rework/question/incremental-amount-input/MPbIncrementalAmountInput.vue +2 -6
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/src/components/rework/question/space-input/MPbSpaceInput.vue +1 -2
- package/src/components/rework/restitution/MPbRestitutionList.vue +1 -1
- package/src/components/rework/styles/global.scss +4 -0
- package/src/components/scenario/PbScenario.vue +2 -11
- 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
- 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
- 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
- package/src/components/scenario/scenarii/estimator-attic-insulation.json +1 -10
- package/src/types/pb/Scenario.ts +1 -0
package/package.json
CHANGED
|
@@ -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
|
|
235
|
+
v-if="!payload.viewModel?.disableNavigation"
|
|
236
236
|
>
|
|
237
|
-
<div
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
1535
|
+
padding: 120px 0;
|
|
1530
1536
|
margin-bottom: 50px;
|
|
1531
1537
|
}
|
|
1532
1538
|
|
package/src/components/rework/question/incremental-amount-input/MPbIncrementalAmountInput.vue
CHANGED
|
@@ -196,7 +196,7 @@ $responsive-breakpoint: 'm';
|
|
|
196
196
|
|
|
197
197
|
flex-grow: 1;
|
|
198
198
|
margin: 0 auto;
|
|
199
|
-
width:
|
|
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
|
|
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 {
|
|
@@ -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:
|
|
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
|
-
"
|
|
2399
|
+
"hideNextStep": true
|
|
2409
2400
|
},
|
|
2410
2401
|
"answers": {
|
|
2411
2402
|
"DISCOVER_OUR_HEATERS": {
|
package/src/types/pb/Scenario.ts
CHANGED