project-booster-vue 10.15.0 → 10.15.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/README.md CHANGED
@@ -32,6 +32,7 @@ Team: project-booster@adeo.com
32
32
  - Anthony Pillot: anthony.pillot@ext.leroymerlin.fr
33
33
  - Maxime Drecourt: maxime.drecourt@ext.adeo.com
34
34
  - Yassine Bourakba: yassine.bourakba@ext.adeo.com
35
+ - Samir Aliche: samir.aliche@ext.adeo.com
35
36
 
36
37
  ## Get started
37
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "10.15.0",
3
+ "version": "10.15.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -32,10 +32,10 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@contentful/rich-text-html-renderer": "15.0.0",
35
- "@mozaic-ds/css-dev-tools": "^1.47.0",
35
+ "@mozaic-ds/css-dev-tools": "^1.63.0",
36
36
  "@mozaic-ds/icons": "^1.49.0",
37
37
  "@mozaic-ds/styles": "^1.49.1",
38
- "@mozaic-ds/vue-3": "^0.35.1",
38
+ "@mozaic-ds/vue-3": "^0.49.5",
39
39
  "@mozaic-ds/web-fonts": "^1.22.0",
40
40
  "@types/lodash.isempty": "4.4.6",
41
41
  "@vue/test-utils": "^2.2.6",
@@ -45,7 +45,7 @@
45
45
  "contentful": "9.1.12",
46
46
  "core-js": "3.21.1",
47
47
  "date-fns": "2.22.1",
48
- "firebase": "8.6.7",
48
+ "firebase": "10.0.0",
49
49
  "hooper": "nicoinch/hooper#1.0.5",
50
50
  "lodash.clonedeep": "4.5.0",
51
51
  "lodash.debounce": "4.0.8",
@@ -57,7 +57,6 @@
57
57
  "object-hash": "3.0.0",
58
58
  "object-path": "0.11.8",
59
59
  "ramda": "0.26.1",
60
- "request": "2.88.0",
61
60
  "svg-injector": "1.1.3",
62
61
  "uuid": "8.3.2",
63
62
  "vee-validate": "4.4.5",
@@ -71,7 +70,7 @@
71
70
  "yup": "0.32.9"
72
71
  },
73
72
  "devDependencies": {
74
- "@babel/core": "7.16.0",
73
+ "@babel/core": "7.22.9",
75
74
  "@babel/helper-skip-transparent-expression-wrappers": "7.16.0",
76
75
  "@babel/plugin-proposal-class-properties": "7.16.0",
77
76
  "@babel/plugin-proposal-nullish-coalescing-operator": "7.16.0",
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div class="pb-restitution-list__modal__details__totals" justify-content="space-between" align-items="center">
127
- <div><strong>Montant total</strong>&nbsp; (aides déduites)</div>
127
+ <div><strong>Montant total</strong>&nbsp;(aides déduites)</div>
128
128
  <div class="space-mx">entre</div>
129
129
  <div>
130
130
  <strong
@@ -1,17 +1,5 @@
1
1
  <template>
2
2
  <form class="pb-city-search" @submit.prevent="handleFormValidation">
3
- <div class="pb-city-search__back-button-container row-flex align-stretch">
4
- <m-link
5
- :left-icon="BACK_ICON"
6
- :class="{
7
- 'pb-city-search__back-button': true,
8
- 'pb-city-search__back-button--hidden':
9
- !showBackButton && !decorate(answers, runtimeOptions, payload.viewModel.forceBackButton),
10
- }"
11
- @click.once="$emit('go-back')"
12
- >{{ computedPayload.viewModel.backLabel }}</m-link
13
- >
14
- </div>
15
3
  <div class="pb-city-search__form">
16
4
  <div class="pb-city-search__title">
17
5
  {{ computedPayload.viewModel.label }}
@@ -9,8 +9,7 @@
9
9
  "backLabel": "Question précédente",
10
10
  "label": "Quelle est votre surface ?",
11
11
  "placeholder": "Votre surface",
12
- "actionLabel": "Continuer",
13
- "unitLabel": "m²",
12
+ "actionLabel": "Étape suivante",
14
13
  "image": null,
15
14
  "nextStep": {
16
15
  "code": "Code"
@@ -78,7 +78,7 @@
78
78
  <template #default>
79
79
  <div class="pb-restitution-list__modal__details" direction="column">
80
80
  <div class="pb-restitution-list__modal__details__totals" justify-content="space-between" align-items="center">
81
- <div><strong>Montant total</strong>&nbsp; (aides déduites)</div>
81
+ <div><strong>Montant total</strong>&nbsp;(aides déduites)</div>
82
82
  <div class="space-mx">entre</div>
83
83
  <div>
84
84
  <strong
@@ -12,7 +12,7 @@
12
12
 
13
13
  <div class="pb-restitution-list-block__body__row unbordered">
14
14
  <div class="pb-restitution-list-block__body__row__title full">
15
- <div><strong>Montant total</strong> (aides déduites)</div>
15
+ <div><strong>Montant total</strong>&nbsp;(aides déduites)</div>
16
16
  <div class="pb-restitution-list-block__body__row__title__amount">
17
17
  <div>entre</div>
18
18
  <strong>{{ formattedPriceRange(summary.cost.min) }}</strong> et
@@ -318,20 +318,9 @@
318
318
  "progressBar": true,
319
319
  "widthFromL": "1of2",
320
320
  "forceOneCardPerLineOnMobile": true,
321
- "callToActions": [
322
- {
323
- "label": "Précédent",
324
- "nextStep": "__BACK__",
325
- "theme": "bordered-primary-02",
326
- "icon": "ArrowBack48"
327
- },
328
- {
329
- "label": "Étape suivante",
330
- "nextStep": "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_WALL_OPENING",
331
- "icon": "ArrowNext48",
332
- "iconPosition": "right"
333
- }
334
- ]
321
+ "nextStep": {
322
+ "code": "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_WALL_OPENING"
323
+ }
335
324
  },
336
325
  "helpArea": [
337
326
  {
@@ -346,9 +335,6 @@
346
335
  }
347
336
  }
348
337
  ]
349
- },
350
- "nextStep": {
351
- "code": "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_WALL_OPENING"
352
338
  }
353
339
  },
354
340
  "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_WALL_OPENING": {
@@ -385,24 +371,10 @@
385
371
  },
386
372
  "label": "Combien d’ouvertures y a-t-il sur vos murs à isoler ?",
387
373
  "placeholder": "Nombre d'ouverture(s)",
388
- "callToActions": [
389
- {
390
- "label": "Précédent",
391
- "nextStep": "__BACK__",
392
- "theme": "bordered-primary-02",
393
- "icon": "ArrowBack48"
394
- },
395
- {
396
- "label": "Étape suivante",
397
- "nextStep": "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_BIOSOURCED_MATERIALS",
398
- "icon": "ArrowNext48",
399
- "iconPosition": "right"
400
- }
401
- ]
374
+ "nextStep": {
375
+ "code": "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_BIOSOURCED_MATERIALS"
376
+ }
402
377
  }
403
- },
404
- "nextStep": {
405
- "code": "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_BIOSOURCED_MATERIALS"
406
378
  }
407
379
  },
408
380
  "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_BIOSOURCED_MATERIALS": {
@@ -450,6 +422,7 @@
450
422
  "type": "link",
451
423
  "label": "Que sont les isolants biosourcés ?",
452
424
  "action": {
425
+ "type": "MODAL",
453
426
  "viewModelDialog": {
454
427
  "watermark": "Définition et avantage",
455
428
  "headerTitle": "Que sont les isolants biosourcés ?",
@@ -532,29 +505,16 @@
532
505
  }
533
506
  },
534
507
  "viewModel": {
508
+ "actionLabel": "Etape suivante",
535
509
  "label": "Dans quelle ville aura lieu les travaux ?",
536
510
  "placeholder": "Code postal, Ville",
537
511
  "progressBar": true,
538
512
  "widthFromL": "1of2",
539
513
  "forceOneCardPerLineOnMobile": true,
540
- "callToActions": [
541
- {
542
- "label": "Précédent",
543
- "nextStep": "Code",
544
- "theme": "bordered-primary-02",
545
- "icon": "ArrowBack48"
546
- },
547
- {
548
- "label": "Etape suivante",
549
- "nextStep": "Code",
550
- "icon": "ArrowNext48",
551
- "iconPosition": "right"
552
- }
553
- ]
514
+ "nextStep": {
515
+ "code": "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_INHABITANTS_COUNT"
516
+ }
554
517
  }
555
- },
556
- "nextStep": {
557
- "code": "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_INHABITANTS_COUNT"
558
518
  }
559
519
  },
560
520
  "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_INHABITANTS_COUNT": {
@@ -575,6 +535,7 @@
575
535
  "value": "${getAnswerValue('LMFR_WALL_EXTERNAL_INSULATION_QUESTION_INHABITANTS_COUNT', 'value')}"
576
536
  },
577
537
  "viewModel": {
538
+ "actionLabel": "Terminer",
578
539
  "backLabel": "Question précédente",
579
540
  "label": "Combien de personnes composent votre foyer fiscal ?",
580
541
  "subtitle": "Le montant de vos aides peut varier en fonction de la taille de votre ménage.",
@@ -583,11 +544,11 @@
583
544
  "defaultValue": 1,
584
545
  "progressBar": true,
585
546
  "widthFromL": "1of2",
586
- "forceOneCardPerLineOnMobile": true
547
+ "forceOneCardPerLineOnMobile": true,
548
+ "nextStep": {
549
+ "code": "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_INCOME"
550
+ }
587
551
  }
588
- },
589
- "nextStep": {
590
- "code": "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_INCOME"
591
552
  }
592
553
  },
593
554
  "LMFR_WALL_EXTERNAL_INSULATION_QUESTION_INCOME": {
@@ -108,6 +108,7 @@ export interface ScenarioStepAnswer {
108
108
  }
109
109
 
110
110
  export interface ScenarioStepDialog {
111
+ type: string;
111
112
  viewModelDialog: {
112
113
  watermark?: string; // is the upper grey text that is displayed in the modal
113
114
  headerTitle: string;
@@ -153,15 +154,17 @@ export interface ScenarioStepPayload {
153
154
  multiSelect?: ScenarioStepMultiSelectOptions;
154
155
  defaultDecoratorValue?: string;
155
156
  code?: string;
156
- helpArea?: {
157
- label: string;
158
- type: string;
159
- action: string;
160
- };
157
+ helpArea?: ScenarioStepHelpArea[];
161
158
  redirectLink?: any;
162
159
  analytics: any;
163
160
  }
164
161
 
162
+ export interface ScenarioStepHelpArea {
163
+ label: string;
164
+ type: string;
165
+ action: ScenarioStepDialog;
166
+ }
167
+
165
168
  export interface ScenarioStepViewModel {
166
169
  title?: string;
167
170
  subtitle?: string;