project-booster-vue 10.24.1 → 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,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 -
|
|
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 -
|
|
214
|
+
Pergola bioclimatique - Motorisée : <span>{{ bioclimaticPergolaMotorized[attribute.value] }}</span>
|
|
188
215
|
</li>
|
|
189
216
|
</template>
|
|
190
217
|
<template v-if="attributeId === 'bioclimaticPergolaMaterialType'">
|
|
@@ -193,16 +220,15 @@
|
|
|
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>
|
|
199
229
|
|
|
200
|
-
<div
|
|
201
|
-
|
|
202
|
-
v-for="[attributeId, attribute] of displayedProjectAttributes"
|
|
203
|
-
:key="attributeId"
|
|
204
|
-
>
|
|
205
|
-
<p v-if="attributeId === 'comment'" v-html="attribute.value"></p>
|
|
230
|
+
<div class="pb-project-attributes__details" v-if="getCommentAttribute">
|
|
231
|
+
<p v-html="getCommentAttribute"></p>
|
|
206
232
|
</div>
|
|
207
233
|
</m-flexy>
|
|
208
234
|
</template>
|
|
@@ -230,7 +256,17 @@ export default defineComponent({
|
|
|
230
256
|
COVERING_FLOOR: 'Revêtement sol',
|
|
231
257
|
COVERING_WALL: 'Revêtement mûr',
|
|
232
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',
|
|
233
265
|
},
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Bathroom appointment qualification
|
|
269
|
+
*/
|
|
234
270
|
bathroomStyle: {
|
|
235
271
|
NATURAL: 'Naturel',
|
|
236
272
|
INDUSTRIAL: 'Industriel',
|
|
@@ -348,6 +384,19 @@ export default defineComponent({
|
|
|
348
384
|
displayedProjectAttributes() {
|
|
349
385
|
return Object.entries(this.projectAttributes);
|
|
350
386
|
},
|
|
387
|
+
|
|
388
|
+
getCommentAttribute(): string | null {
|
|
389
|
+
const commentAttribute = Object.entries(this.projectAttributes).find(
|
|
390
|
+
([attributeId]) => attributeId === 'comment',
|
|
391
|
+
);
|
|
392
|
+
return commentAttribute ? commentAttribute[1].value : null;
|
|
393
|
+
},
|
|
394
|
+
|
|
395
|
+
isRigidSpaWanted(): boolean {
|
|
396
|
+
return Object.entries(this.projectAttributes).some(
|
|
397
|
+
([attributeId, attribute]) => attributeId === 'works' && attribute.value.includes('RIGID_SPA'),
|
|
398
|
+
);
|
|
399
|
+
},
|
|
351
400
|
},
|
|
352
401
|
});
|
|
353
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": "
|
|
31
|
+
"stepCode": "LMFR_QUESTION_PROJECT_TYPE"
|
|
32
32
|
},
|
|
33
33
|
|
|
34
|
-
"
|
|
35
|
-
"code": "
|
|
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
|
-
"
|
|
62
|
-
"code": "
|
|
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
|
-
"
|
|
71
|
-
"code": "
|
|
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": "
|
|
82
|
+
"code": "LMFR_QUESTION_CONSTRUCTION_DATE"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
|
|
86
|
-
"
|
|
87
|
-
"code": "
|
|
86
|
+
"LMFR_QUESTION_CONSTRUCTION_DATE": {
|
|
87
|
+
"code": "LMFR_QUESTION_CONSTRUCTION_DATE",
|
|
88
88
|
"type": "STEP",
|
|
89
89
|
"component": "MPbQuestion",
|
|
90
90
|
"slots": {
|