project-booster-vue 10.21.2 → 10.22.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/rework/navigation/MPbNavigation.vue +1 -1
- package/src/components/rework/question/dimensions-input/MPbDimensionsInput.vue +2 -2
- package/src/components/scenario/scenarii/appointment-qualification-kitchen.json +2 -1
- package/src/components/scenario/scenarii/estimator-floor.json +28 -7
- package/src/components/scenario/scenarii/estimator-kitchen.json +46 -87
- package/src/components/scenario/scenarii/estimator-roof-floor.json +37 -16
package/package.json
CHANGED
|
@@ -144,7 +144,7 @@ const emitClickEvent = (nextStep: any) => {
|
|
|
144
144
|
} else if (nextStep.conditionals) {
|
|
145
145
|
let toNextStep = null;
|
|
146
146
|
nextStep.conditionals.forEach((condition: any) => {
|
|
147
|
-
const valid = areConditionsValid(condition, props.answers, props.runtimeOptions);
|
|
147
|
+
const valid = areConditionsValid(condition.conditions, props.answers, props.runtimeOptions);
|
|
148
148
|
if (valid) {
|
|
149
149
|
toNextStep = condition.nextStep;
|
|
150
150
|
$emit('next-step', {
|
|
@@ -177,7 +177,8 @@
|
|
|
177
177
|
"backLabel": "Retour",
|
|
178
178
|
"label": "Quand souhaitez-vous commencer vos travaux ?",
|
|
179
179
|
"forceOneCardPerLineOnMobile": true,
|
|
180
|
-
"answersComponent": "MPbCard"
|
|
180
|
+
"answersComponent": "MPbCard",
|
|
181
|
+
"hideBackButton": true
|
|
181
182
|
},
|
|
182
183
|
"answers": {
|
|
183
184
|
"AS_SOON_AS_POSSIBLE": {
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
"businessUnit": "001",
|
|
8
8
|
"webAnalytics": {
|
|
9
9
|
"category": "Matériaux de construction",
|
|
10
|
-
"scenario": "Estimation-budget-cout-sol"
|
|
10
|
+
"scenario": "Estimation-budget-cout-sol",
|
|
11
|
+
"tracking": true
|
|
11
12
|
},
|
|
12
13
|
"projectName": "Estimation sol"
|
|
13
14
|
},
|
|
@@ -294,7 +295,7 @@
|
|
|
294
295
|
"MEDIUM": {
|
|
295
296
|
"code": "OVERLAY",
|
|
296
297
|
"viewModel": {
|
|
297
|
-
"title": "Anglaise",
|
|
298
|
+
"title": "À l'Anglaise",
|
|
298
299
|
"text": "Lames parallèles et joints répartis irrégulièrement",
|
|
299
300
|
"image": "https://storage.googleapis.com/project-booster-media/floor/ground/floor-parquet-english-style.png"
|
|
300
301
|
},
|
|
@@ -317,7 +318,7 @@
|
|
|
317
318
|
"code": "HERRINGBONE_PARQUET",
|
|
318
319
|
"viewModel": {
|
|
319
320
|
"title": "Bâtons rompus",
|
|
320
|
-
"text": "Lames
|
|
321
|
+
"text": "Lames de dimensions uniformes, posées à angle droit les unes par rapport aux autres",
|
|
321
322
|
"image": "https://storage.googleapis.com/project-booster-media/floor/ground/floor-parquet-broken-sticks.png"
|
|
322
323
|
},
|
|
323
324
|
"meta": {
|
|
@@ -436,15 +437,15 @@
|
|
|
436
437
|
"nextStep": {
|
|
437
438
|
"conditionals": [
|
|
438
439
|
{
|
|
439
|
-
"conditions": ["
|
|
440
|
+
"conditions": ["isAnswerMatching('LMFR_FLOOR_QUESTION_NEW', 'CARPET')"],
|
|
440
441
|
"nextStep": {
|
|
441
|
-
"code": "
|
|
442
|
+
"code": "LMFR_FLOOR_QUESTION_DIMENSION"
|
|
442
443
|
}
|
|
443
444
|
},
|
|
444
445
|
{
|
|
445
|
-
"conditions": ["isAnswerMatching('LMFR_FLOOR_QUESTION_NEW', 'CARPET')"],
|
|
446
|
+
"conditions": ["!isAnswerMatching('LMFR_FLOOR_QUESTION_NEW', 'CARPET')"],
|
|
446
447
|
"nextStep": {
|
|
447
|
-
"code": "
|
|
448
|
+
"code": "LMFR_FLOOR_QUESTION_ROOM_TYPE"
|
|
448
449
|
}
|
|
449
450
|
}
|
|
450
451
|
]
|
|
@@ -1263,6 +1264,16 @@
|
|
|
1263
1264
|
"nextStep": {
|
|
1264
1265
|
"code": "LMFR_FLOOR_QUESTION_INSTALLATION"
|
|
1265
1266
|
},
|
|
1267
|
+
"slots": {
|
|
1268
|
+
"beforeContent": {
|
|
1269
|
+
"display": true,
|
|
1270
|
+
"component": "MPbProgress",
|
|
1271
|
+
"totalStep": 9,
|
|
1272
|
+
"currentStep": 8,
|
|
1273
|
+
"sizeXlWidth": true,
|
|
1274
|
+
"label": "Estimer le budget de votre revêtement de sol"
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1266
1277
|
"payload": {
|
|
1267
1278
|
"viewModel": {
|
|
1268
1279
|
"label": "Quelle gamme de parquet choisissez-vous ?",
|
|
@@ -1311,6 +1322,16 @@
|
|
|
1311
1322
|
"code": "LMFR_FLOOR_QUESTION_QUALITY_RANGE_CARPET",
|
|
1312
1323
|
"type": "STEP",
|
|
1313
1324
|
"component": "MPbQuestion",
|
|
1325
|
+
"slots": {
|
|
1326
|
+
"beforeContent": {
|
|
1327
|
+
"display": true,
|
|
1328
|
+
"component": "MPbProgress",
|
|
1329
|
+
"totalStep": 9,
|
|
1330
|
+
"currentStep": 8,
|
|
1331
|
+
"sizeXlWidth": true,
|
|
1332
|
+
"label": "Estimer le budget de votre revêtement de sol"
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1314
1335
|
"nextStep": {
|
|
1315
1336
|
"code": "LMFR_FLOOR_QUESTION_INSTALLATION"
|
|
1316
1337
|
},
|
|
@@ -26,9 +26,10 @@
|
|
|
26
26
|
"beforeContent": {
|
|
27
27
|
"display": true,
|
|
28
28
|
"component": "MPbProgress",
|
|
29
|
-
"totalStep":
|
|
29
|
+
"totalStep": 12,
|
|
30
30
|
"currentStep": 1,
|
|
31
|
-
"sizeXlWidth": true
|
|
31
|
+
"sizeXlWidth": true,
|
|
32
|
+
"label": "Estimer votre budget cuisine"
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
"nextStep": {
|
|
@@ -40,7 +41,8 @@
|
|
|
40
41
|
"label": "Quelles couleurs pour les façades de vos meubles ?",
|
|
41
42
|
"answersComponent": "MPbCard",
|
|
42
43
|
"forceOneCardPerLineOnMobile": true,
|
|
43
|
-
"alwaysDisplaySkippable": true
|
|
44
|
+
"alwaysDisplaySkippable": true,
|
|
45
|
+
"hideBackButton": true
|
|
44
46
|
},
|
|
45
47
|
"skippable": {
|
|
46
48
|
"isAnswer": true,
|
|
@@ -91,9 +93,10 @@
|
|
|
91
93
|
"beforeContent": {
|
|
92
94
|
"display": true,
|
|
93
95
|
"component": "MPbProgress",
|
|
94
|
-
"totalStep":
|
|
96
|
+
"totalStep": 12,
|
|
95
97
|
"currentStep": 2,
|
|
96
|
-
"sizeXlWidth": true
|
|
98
|
+
"sizeXlWidth": true,
|
|
99
|
+
"label": "Estimer votre budget cuisine"
|
|
97
100
|
}
|
|
98
101
|
},
|
|
99
102
|
"nextStep": {
|
|
@@ -155,9 +158,10 @@
|
|
|
155
158
|
"beforeContent": {
|
|
156
159
|
"display": true,
|
|
157
160
|
"component": "MPbProgress",
|
|
158
|
-
"totalStep":
|
|
161
|
+
"totalStep": 12,
|
|
159
162
|
"currentStep": 3,
|
|
160
|
-
"sizeXlWidth": true
|
|
163
|
+
"sizeXlWidth": true,
|
|
164
|
+
"label": "Estimer votre budget cuisine"
|
|
161
165
|
}
|
|
162
166
|
},
|
|
163
167
|
"nextStep": {
|
|
@@ -217,9 +221,10 @@
|
|
|
217
221
|
"beforeContent": {
|
|
218
222
|
"display": true,
|
|
219
223
|
"component": "MPbProgress",
|
|
220
|
-
"totalStep":
|
|
224
|
+
"totalStep": 12,
|
|
221
225
|
"currentStep": 4,
|
|
222
|
-
"sizeXlWidth": true
|
|
226
|
+
"sizeXlWidth": true,
|
|
227
|
+
"label": "Estimer votre budget cuisine"
|
|
223
228
|
}
|
|
224
229
|
},
|
|
225
230
|
"payload": {
|
|
@@ -282,9 +287,10 @@
|
|
|
282
287
|
"beforeContent": {
|
|
283
288
|
"display": true,
|
|
284
289
|
"component": "MPbProgress",
|
|
285
|
-
"totalStep":
|
|
290
|
+
"totalStep": 12,
|
|
286
291
|
"currentStep": 5,
|
|
287
|
-
"sizeXlWidth": true
|
|
292
|
+
"sizeXlWidth": true,
|
|
293
|
+
"label": "Estimer votre budget cuisine"
|
|
288
294
|
}
|
|
289
295
|
},
|
|
290
296
|
"payload": {
|
|
@@ -352,9 +358,10 @@
|
|
|
352
358
|
"beforeContent": {
|
|
353
359
|
"display": true,
|
|
354
360
|
"component": "MPbProgress",
|
|
355
|
-
"totalStep":
|
|
361
|
+
"totalStep": 12,
|
|
356
362
|
"currentStep": 6,
|
|
357
|
-
"sizeXlWidth": true
|
|
363
|
+
"sizeXlWidth": true,
|
|
364
|
+
"label": "Estimer votre budget cuisine"
|
|
358
365
|
}
|
|
359
366
|
},
|
|
360
367
|
"payload": {
|
|
@@ -399,21 +406,13 @@
|
|
|
399
406
|
"code": "APPLIANCES_SELECTION"
|
|
400
407
|
},
|
|
401
408
|
"slots": {
|
|
402
|
-
"stickyBottom": {
|
|
403
|
-
"component": "PbSmartProgressionPrice",
|
|
404
|
-
"payload": {
|
|
405
|
-
"title": "Votre cuisine se situe entre",
|
|
406
|
-
"maxPrice": 15000,
|
|
407
|
-
"priceBarHidden": true
|
|
408
|
-
},
|
|
409
|
-
"display": true
|
|
410
|
-
},
|
|
411
409
|
"beforeContent": {
|
|
412
410
|
"display": true,
|
|
413
411
|
"component": "MPbProgress",
|
|
414
|
-
"totalStep":
|
|
412
|
+
"totalStep": 12,
|
|
415
413
|
"currentStep": 7,
|
|
416
|
-
"sizeXlWidth": true
|
|
414
|
+
"sizeXlWidth": true,
|
|
415
|
+
"label": "Estimer votre budget cuisine"
|
|
417
416
|
}
|
|
418
417
|
},
|
|
419
418
|
"payload": {
|
|
@@ -474,21 +473,13 @@
|
|
|
474
473
|
"code": "LMFR_KITCHEN_QUESTION_DUMP"
|
|
475
474
|
},
|
|
476
475
|
"slots": {
|
|
477
|
-
"stickyBottom": {
|
|
478
|
-
"component": "PbSmartProgressionPrice",
|
|
479
|
-
"payload": {
|
|
480
|
-
"title": "Votre cuisine se situe entre",
|
|
481
|
-
"maxPrice": 15000,
|
|
482
|
-
"priceBarHidden": true
|
|
483
|
-
},
|
|
484
|
-
"display": true
|
|
485
|
-
},
|
|
486
476
|
"beforeContent": {
|
|
487
477
|
"display": true,
|
|
488
478
|
"component": "MPbProgress",
|
|
489
|
-
"totalStep":
|
|
490
|
-
"currentStep":
|
|
491
|
-
"sizeXlWidth": true
|
|
479
|
+
"totalStep": 12,
|
|
480
|
+
"currentStep": 10,
|
|
481
|
+
"sizeXlWidth": true,
|
|
482
|
+
"label": "Estimer votre budget cuisine"
|
|
492
483
|
}
|
|
493
484
|
},
|
|
494
485
|
"payload": {
|
|
@@ -525,21 +516,13 @@
|
|
|
525
516
|
"code": "LMFR_KITCHEN_QUESTION_INSTALLATION"
|
|
526
517
|
},
|
|
527
518
|
"slots": {
|
|
528
|
-
"stickyBottom": {
|
|
529
|
-
"component": "PbSmartProgressionPrice",
|
|
530
|
-
"payload": {
|
|
531
|
-
"title": "Votre cuisine se situe entre",
|
|
532
|
-
"maxPrice": 15000,
|
|
533
|
-
"priceBarHidden": true
|
|
534
|
-
},
|
|
535
|
-
"display": true
|
|
536
|
-
},
|
|
537
519
|
"beforeContent": {
|
|
538
520
|
"display": true,
|
|
539
521
|
"component": "MPbProgress",
|
|
540
|
-
"totalStep":
|
|
541
|
-
"currentStep":
|
|
542
|
-
"sizeXlWidth": true
|
|
522
|
+
"totalStep": 12,
|
|
523
|
+
"currentStep": 11,
|
|
524
|
+
"sizeXlWidth": true,
|
|
525
|
+
"label": "Estimer votre budget cuisine"
|
|
543
526
|
}
|
|
544
527
|
},
|
|
545
528
|
"payload": {
|
|
@@ -574,21 +557,13 @@
|
|
|
574
557
|
"code": "SUMMARY"
|
|
575
558
|
},
|
|
576
559
|
"slots": {
|
|
577
|
-
"stickyBottom": {
|
|
578
|
-
"component": "PbSmartProgressionPrice",
|
|
579
|
-
"payload": {
|
|
580
|
-
"title": "Votre cuisine se situe entre",
|
|
581
|
-
"maxPrice": 15000,
|
|
582
|
-
"priceBarHidden": true
|
|
583
|
-
},
|
|
584
|
-
"display": true
|
|
585
|
-
},
|
|
586
560
|
"beforeContent": {
|
|
587
561
|
"display": true,
|
|
588
562
|
"component": "MPbProgress",
|
|
589
|
-
"totalStep":
|
|
590
|
-
"currentStep":
|
|
591
|
-
"sizeXlWidth": true
|
|
563
|
+
"totalStep": 12,
|
|
564
|
+
"currentStep": 12,
|
|
565
|
+
"sizeXlWidth": true,
|
|
566
|
+
"label": "Estimer votre budget cuisine"
|
|
592
567
|
}
|
|
593
568
|
},
|
|
594
569
|
"payload": {
|
|
@@ -779,9 +754,10 @@
|
|
|
779
754
|
"beforeContent": {
|
|
780
755
|
"display": true,
|
|
781
756
|
"component": "MPbProgress",
|
|
782
|
-
"totalStep":
|
|
757
|
+
"totalStep": 12,
|
|
783
758
|
"currentStep": 11,
|
|
784
|
-
"sizeXlWidth": true
|
|
759
|
+
"sizeXlWidth": true,
|
|
760
|
+
"label": "Estimer votre budget cuisine"
|
|
785
761
|
}
|
|
786
762
|
},
|
|
787
763
|
"payload": {
|
|
@@ -828,16 +804,6 @@
|
|
|
828
804
|
"APPLIANCES_SELECTION": {
|
|
829
805
|
"code": "APPLIANCES_SELECTION",
|
|
830
806
|
"type": "SCENARIO",
|
|
831
|
-
"slots": {
|
|
832
|
-
"stickyBottom": {
|
|
833
|
-
"component": "PbSmartProgressionPrice",
|
|
834
|
-
"payload": {
|
|
835
|
-
"title": "Votre cuisine se situe entre",
|
|
836
|
-
"maxPrice": 15000,
|
|
837
|
-
"priceBarHidden": true
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
},
|
|
841
807
|
"stepCode": "LMFR_KITCHEN_QUESTION_CUSTOMIZE_APPLIANCES",
|
|
842
808
|
"nextStep": {
|
|
843
809
|
"code": "LMFR_KITCHEN_QUESTION_DELIVERY"
|
|
@@ -851,9 +817,10 @@
|
|
|
851
817
|
"beforeContent": {
|
|
852
818
|
"display": true,
|
|
853
819
|
"component": "MPbProgress",
|
|
854
|
-
"totalStep":
|
|
855
|
-
"currentStep":
|
|
856
|
-
"sizeXlWidth": true
|
|
820
|
+
"totalStep": 12,
|
|
821
|
+
"currentStep": 8,
|
|
822
|
+
"sizeXlWidth": true,
|
|
823
|
+
"label": "Estimer votre budget cuisine"
|
|
857
824
|
}
|
|
858
825
|
},
|
|
859
826
|
"payload": {
|
|
@@ -935,21 +902,13 @@
|
|
|
935
902
|
"code": null
|
|
936
903
|
},
|
|
937
904
|
"slots": {
|
|
938
|
-
"stickyBottom": {
|
|
939
|
-
"component": "PbSmartProgressionPrice",
|
|
940
|
-
"payload": {
|
|
941
|
-
"title": "Votre cuisine se situe entre",
|
|
942
|
-
"maxPrice": 15000,
|
|
943
|
-
"priceBarHidden": true
|
|
944
|
-
},
|
|
945
|
-
"display": true
|
|
946
|
-
},
|
|
947
905
|
"beforeContent": {
|
|
948
906
|
"display": true,
|
|
949
907
|
"component": "MPbProgress",
|
|
950
|
-
"totalStep":
|
|
951
|
-
"currentStep":
|
|
952
|
-
"sizeXlWidth": true
|
|
908
|
+
"totalStep": 12,
|
|
909
|
+
"currentStep": 9,
|
|
910
|
+
"sizeXlWidth": true,
|
|
911
|
+
"label": "Estimer votre budget cuisine"
|
|
953
912
|
}
|
|
954
913
|
},
|
|
955
914
|
"payload": {
|
|
@@ -44,9 +44,10 @@
|
|
|
44
44
|
"beforeContent": {
|
|
45
45
|
"display": true,
|
|
46
46
|
"component": "MPbProgress",
|
|
47
|
-
"totalStep":
|
|
47
|
+
"totalStep": 4,
|
|
48
48
|
"currentStep": 1,
|
|
49
|
-
"sizeXlWidth": true
|
|
49
|
+
"sizeXlWidth": true,
|
|
50
|
+
"label": "Votre projet d'isolation de votre toiture"
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
"payload": {
|
|
@@ -116,9 +117,10 @@
|
|
|
116
117
|
"beforeContent": {
|
|
117
118
|
"display": true,
|
|
118
119
|
"component": "MPbProgress",
|
|
119
|
-
"totalStep":
|
|
120
|
+
"totalStep": 4,
|
|
120
121
|
"currentStep": 2,
|
|
121
|
-
"sizeXlWidth": true
|
|
122
|
+
"sizeXlWidth": true,
|
|
123
|
+
"label": "Votre projet d'isolation de votre toiture"
|
|
122
124
|
}
|
|
123
125
|
},
|
|
124
126
|
"payload": {
|
|
@@ -172,9 +174,10 @@
|
|
|
172
174
|
"beforeContent": {
|
|
173
175
|
"display": true,
|
|
174
176
|
"component": "MPbProgress",
|
|
175
|
-
"totalStep":
|
|
176
|
-
"currentStep":
|
|
177
|
-
"sizeXlWidth": true
|
|
177
|
+
"totalStep": 4,
|
|
178
|
+
"currentStep": 3,
|
|
179
|
+
"sizeXlWidth": true,
|
|
180
|
+
"label": "Votre projet d'isolation de votre toiture"
|
|
178
181
|
}
|
|
179
182
|
},
|
|
180
183
|
"payload": {
|
|
@@ -210,9 +213,10 @@
|
|
|
210
213
|
"beforeContent": {
|
|
211
214
|
"display": true,
|
|
212
215
|
"component": "MPbProgress",
|
|
213
|
-
"totalStep":
|
|
216
|
+
"totalStep": 4,
|
|
214
217
|
"currentStep": 3,
|
|
215
|
-
"sizeXlWidth": true
|
|
218
|
+
"sizeXlWidth": true,
|
|
219
|
+
"label": "Votre projet d'isolation de votre toiture"
|
|
216
220
|
}
|
|
217
221
|
},
|
|
218
222
|
"payload": {
|
|
@@ -270,9 +274,10 @@
|
|
|
270
274
|
"beforeContent": {
|
|
271
275
|
"display": true,
|
|
272
276
|
"component": "MPbProgress",
|
|
273
|
-
"totalStep":
|
|
277
|
+
"totalStep": 4,
|
|
274
278
|
"currentStep": 4,
|
|
275
|
-
"sizeXlWidth": true
|
|
279
|
+
"sizeXlWidth": true,
|
|
280
|
+
"label": "Votre projet d'isolation de votre toiture"
|
|
276
281
|
}
|
|
277
282
|
},
|
|
278
283
|
"payload": {
|
|
@@ -582,13 +587,18 @@
|
|
|
582
587
|
"LMFR_IVH_FLOOR_QUESTION_SURFACE_AREA": {
|
|
583
588
|
"code": "LMFR_IVH_FLOOR_QUESTION_SURFACE_AREA",
|
|
584
589
|
"type": "STEP",
|
|
585
|
-
"component": "
|
|
586
|
-
"nextStep": {
|
|
587
|
-
"code": "LMFR_IVH_FLOOR_QUESTION_INSTALLATION"
|
|
588
|
-
},
|
|
590
|
+
"component": "MPbSpaceInput",
|
|
589
591
|
"slots": {
|
|
590
592
|
"stickyBottom": {
|
|
591
593
|
"display": false
|
|
594
|
+
},
|
|
595
|
+
"beforeContent": {
|
|
596
|
+
"display": true,
|
|
597
|
+
"component": "MPbProgress",
|
|
598
|
+
"totalStep": 4,
|
|
599
|
+
"currentStep": 2,
|
|
600
|
+
"sizeXlWidth": true,
|
|
601
|
+
"label": "Votre projet d'isolation de votre toiture"
|
|
592
602
|
}
|
|
593
603
|
},
|
|
594
604
|
"payload": {
|
|
@@ -606,7 +616,10 @@
|
|
|
606
616
|
"backLabel": "Question précédente",
|
|
607
617
|
"label": "Quelle est la surface à isoler ?",
|
|
608
618
|
"placeholder": "Surface en mètres carrés",
|
|
609
|
-
"actionLabel": "Continuer"
|
|
619
|
+
"actionLabel": "Continuer",
|
|
620
|
+
"nextStep": {
|
|
621
|
+
"code": "LMFR_IVH_FLOOR_QUESTION_INSTALLATION"
|
|
622
|
+
}
|
|
610
623
|
}
|
|
611
624
|
}
|
|
612
625
|
},
|
|
@@ -635,6 +648,14 @@
|
|
|
635
648
|
"slots": {
|
|
636
649
|
"stickyBottom": {
|
|
637
650
|
"display": true
|
|
651
|
+
},
|
|
652
|
+
"beforeContent": {
|
|
653
|
+
"display": true,
|
|
654
|
+
"component": "MPbProgress",
|
|
655
|
+
"totalStep": 4,
|
|
656
|
+
"currentStep": 3,
|
|
657
|
+
"sizeXlWidth": true,
|
|
658
|
+
"label": "Votre projet d'isolation de votre toiture"
|
|
638
659
|
}
|
|
639
660
|
},
|
|
640
661
|
"payload": {
|