project-booster-vue 10.24.2 → 10.24.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "10.24.2",
3
+ "version": "10.24.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,6 +1,33 @@
1
1
  <template>
2
2
  <m-flexy class="pb-project-attributes">
3
3
  <template v-for="[attributeId, attribute] of displayedProjectAttributes" :key="attributeId">
4
+ <pb-project-attribute
5
+ v-if="attributeId === 'projectType'"
6
+ label="Type de projet"
7
+ :value="
8
+ {
9
+ NEW: 'Création',
10
+ RENOVATION: 'Rénovation',
11
+ }[attribute.value]
12
+ "
13
+ :image="
14
+ {
15
+ NEW: 'https://storage.googleapis.com/project-booster-media/declaration_projet/Creation.png',
16
+ RENOVATION: 'https://storage.googleapis.com/project-booster-media/declaration_projet/Renovation.png',
17
+ }[attribute.value]
18
+ "
19
+ />
20
+ <pb-project-attribute
21
+ v-if="attributeId === 'constructionDate'"
22
+ label="Date de construction"
23
+ :value="
24
+ {
25
+ MORE_THAN_2_YEARS: 'Plus de 2 ans',
26
+ LESS_THAN_2_YEARS: 'Moins de 2 ans',
27
+ }[attribute.value]
28
+ "
29
+ image="https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Navigation_Display_Calendar_64px.svg"
30
+ />
4
31
  <pb-project-attribute
5
32
  v-if="attributeId === 'workStartDate'"
6
33
  label="Début des travaux"
@@ -157,7 +184,7 @@
157
184
  </template>
158
185
  <template v-if="attributeId === 'gateMotorized'">
159
186
  <li>
160
- Portail - Motoriser : <span>{{ gateMotorized[attribute.value] }}</span>
187
+ Portail - Motorisé : <span>{{ gateMotorized[attribute.value] }}</span>
161
188
  </li>
162
189
  </template>
163
190
  <template v-if="attributeId === 'gateMaterialType'">
@@ -184,7 +211,7 @@
184
211
  </template>
185
212
  <template v-if="attributeId === 'bioclimaticPergolaMotorized'">
186
213
  <li>
187
- Pergola bioclimatique - Motoriser : <span>{{ bioclimaticPergolaMotorized[attribute.value] }}</span>
214
+ Pergola bioclimatique - Motorisée : <span>{{ bioclimaticPergolaMotorized[attribute.value] }}</span>
188
215
  </li>
189
216
  </template>
190
217
  <template v-if="attributeId === 'bioclimaticPergolaMaterialType'">
@@ -193,6 +220,9 @@
193
220
  </li>
194
221
  </template>
195
222
  </template>
223
+ <template v-if="isRigidSpaWanted">
224
+ <li>Spa rigide - Désiré : <span>Oui</span></li>
225
+ </template>
196
226
  </ul>
197
227
 
198
228
  <div class="pb-project-attributes__section-title">Détails</div>
@@ -226,7 +256,17 @@ export default defineComponent({
226
256
  COVERING_FLOOR: 'Revêtement sol',
227
257
  COVERING_WALL: 'Revêtement mûr',
228
258
  REPLACE_BATHTUB_TO_SHOWER: 'Remplacer une baignoire par une douche',
259
+
260
+ TERRACE: 'Terrasse',
261
+ GATE: 'Portail',
262
+ FENCE: 'Clôture',
263
+ BIOCLIMATIC_PERGOLA: 'Pergola bioclimatique',
264
+ RIGID_SPA: 'Spa rigide',
229
265
  },
266
+
267
+ /**
268
+ * Bathroom appointment qualification
269
+ */
230
270
  bathroomStyle: {
231
271
  NATURAL: 'Naturel',
232
272
  INDUSTRIAL: 'Industriel',
@@ -351,6 +391,12 @@ export default defineComponent({
351
391
  );
352
392
  return commentAttribute ? commentAttribute[1].value : null;
353
393
  },
394
+
395
+ isRigidSpaWanted(): boolean {
396
+ return Object.entries(this.projectAttributes).some(
397
+ ([attributeId, attribute]) => attributeId === 'works' && attribute.value.includes('RIGID_SPA'),
398
+ );
399
+ },
354
400
  },
355
401
  });
356
402
  </script>
@@ -403,14 +403,6 @@
403
403
  <pb-consent />
404
404
  </div>
405
405
  </m-flex>
406
- <m-flex
407
- v-if="!readOnly"
408
- class="pb-project-hub__section pb-project-hub__section-separator"
409
- direction="column"
410
- full-width
411
- >
412
- <pb-m-opinion :trigger="{ page_name: 'Project-Hub' }" />
413
- </m-flex>
414
406
  <m-flex
415
407
  v-if="!readOnly"
416
408
  class="pb-project-hub__section pb-project-hub__section-separator"
@@ -28,11 +28,11 @@
28
28
  "GARDEN": {
29
29
  "code": "GARDEN",
30
30
  "type": "SCENARIO",
31
- "stepCode": "LMFR_KIND_OF_PROJECT"
31
+ "stepCode": "LMFR_QUESTION_PROJECT_TYPE"
32
32
  },
33
33
 
34
- "LMFR_KIND_OF_PROJECT": {
35
- "code": "LMFR_KIND_OF_PROJECT",
34
+ "LMFR_QUESTION_PROJECT_TYPE": {
35
+ "code": "LMFR_QUESTION_PROJECT_TYPE",
36
36
  "type": "STEP",
37
37
  "component": "MPbQuestion",
38
38
  "slots": {
@@ -58,8 +58,8 @@
58
58
  },
59
59
 
60
60
  "answers": {
61
- "NEW_PROJECT": {
62
- "code": "NEW_PROJECT",
61
+ "NEW": {
62
+ "code": "NEW",
63
63
  "viewModel": {
64
64
  "title": "Je créé mon aménagement"
65
65
  },
@@ -67,8 +67,8 @@
67
67
  "ranking": 1
68
68
  }
69
69
  },
70
- "RENOVATION_PROJECT": {
71
- "code": "RENOVATION_PROJECT",
70
+ "RENOVATION": {
71
+ "code": "RENOVATION",
72
72
  "viewModel": {
73
73
  "title": "Je rénove de l'existant"
74
74
  },
@@ -79,12 +79,12 @@
79
79
  }
80
80
  },
81
81
  "nextStep": {
82
- "code": "LMFR_QUESTION_CONSTRUCTION_AGE"
82
+ "code": "LMFR_QUESTION_CONSTRUCTION_DATE"
83
83
  }
84
84
  },
85
85
 
86
- "LMFR_QUESTION_CONSTRUCTION_AGE": {
87
- "code": "LMFR_QUESTION_CONSTRUCTION_AGE",
86
+ "LMFR_QUESTION_CONSTRUCTION_DATE": {
87
+ "code": "LMFR_QUESTION_CONSTRUCTION_DATE",
88
88
  "type": "STEP",
89
89
  "component": "MPbQuestion",
90
90
  "slots": {