project-booster-vue 9.59.3 → 9.61.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
CHANGED
|
@@ -9,7 +9,11 @@
|
|
|
9
9
|
AS_SOON_AS_POSSIBLE: 'Dès que possible',
|
|
10
10
|
IN_LESS_THAN_TWO_WEEKS: 'Dans moins de 15 jours',
|
|
11
11
|
IN_LESS_THAN_THREE_MONTHS: 'Dans moins de 3 mois',
|
|
12
|
+
IN_THREE_MONTHS: 'Dans 3 mois',
|
|
12
13
|
IN_MORE_THAN_THREE_MONTHS: 'Dans plus de 3 mois',
|
|
14
|
+
IN_SIX_MONTHS: 'Dans 6 mois',
|
|
15
|
+
IN_MORE_THAN_SIX_MONTHS: 'Dans plus de 6 mois',
|
|
16
|
+
DO_NOT_KNOW_YET: 'Je ne sais pas',
|
|
13
17
|
}[attribute.value]
|
|
14
18
|
"
|
|
15
19
|
:image="
|
|
@@ -22,6 +26,14 @@
|
|
|
22
26
|
'https://storage.googleapis.com/project-booster-media/project-attributes/work-start-date/in-less-than-three-months.jpg',
|
|
23
27
|
IN_MORE_THAN_THREE_MONTHS:
|
|
24
28
|
'https://storage.googleapis.com/project-booster-media/project-attributes/work-start-date/in-more-than-three-months.jpg',
|
|
29
|
+
IN_THREE_MONTHS:
|
|
30
|
+
'https://storage.googleapis.com/project-booster-media/project-attributes/work-start-date/as-soon-as-possible.jpg',
|
|
31
|
+
IN_SIX_MONTHS:
|
|
32
|
+
'https://storage.googleapis.com/project-booster-media/project-attributes/work-start-date/as-soon-as-possible.jpg',
|
|
33
|
+
IN_MORE_THAN_SIX_MONTHS:
|
|
34
|
+
'https://storage.googleapis.com/project-booster-media/project-attributes/work-start-date/as-soon-as-possible.jpg',
|
|
35
|
+
DO_NOT_KNOW_YET:
|
|
36
|
+
'https://storage.googleapis.com/project-booster-media/project-attributes/work-start-date/as-soon-as-possible.jpg',
|
|
25
37
|
}[attribute.value]
|
|
26
38
|
"
|
|
27
39
|
/>
|
|
@@ -71,18 +83,50 @@
|
|
|
71
83
|
label="Budget"
|
|
72
84
|
:value="
|
|
73
85
|
{
|
|
86
|
+
BETWEEN_1000_AND_3000_EUROS: '1000-3000€',
|
|
74
87
|
BETWEEN_1500_AND_2000_EUROS: '1500-2000 €',
|
|
75
88
|
BETWEEN_2000_AND_3000_EUROS: '2000-3000 €',
|
|
76
89
|
BETWEEN_3000_AND_4000_EUROS: '3000-4000 €',
|
|
90
|
+
BETWEEN_3000_AND_6000_EUROS: '3000-6000€',
|
|
77
91
|
BETWEEN_4000_AND_5000_EUROS: '4000-5000 €',
|
|
78
92
|
MORE_THAN_5000_EUROS: 'Plus de 5000 €',
|
|
93
|
+
BETWEEN_5000_AND_7000_EUROS: '5000-7000€',
|
|
94
|
+
MORE_THAN_6000_EUROS: 'Plus de 6000€',
|
|
95
|
+
BETWEEN_7000_AND_10000_EUROS: '7000-10000€',
|
|
96
|
+
MORE_THAN_10000_EUROS: 'Plus de 10000€',
|
|
79
97
|
DO_NOT_KNOW_YET: 'Pas d\'idée de budget',
|
|
80
98
|
}[attribute.value]
|
|
81
99
|
"
|
|
82
|
-
image="https://storage.googleapis.com/project-booster-media/project-attributes/budget/budget-attribute.jpg
|
|
83
|
-
"
|
|
100
|
+
image="https://storage.googleapis.com/project-booster-media/project-attributes/budget/budget-attribute.jpg"
|
|
84
101
|
/>
|
|
85
102
|
</template>
|
|
103
|
+
|
|
104
|
+
<div class="pb-project-attributes__section-title">
|
|
105
|
+
<h2>Les éléments que vous souhaitez installer</h2>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<ul class="pb-project-attributes__works">
|
|
109
|
+
<template v-for="[attributeId, attribute] of displayedProjectAttributes" :key="attributeId">
|
|
110
|
+
<template v-if="attributeId === 'bathroomStyle' && isArray(attribute.value)">
|
|
111
|
+
<li v-for="value in JSON.parse(attribute.value)">Style: {{ bathroomStyle[value] }}</li>
|
|
112
|
+
</template>
|
|
113
|
+
<template v-else-if="attributeId === 'bathroomStyle'">
|
|
114
|
+
<li>Style: {{ bathroomStyle[attribute.value] }}</li>
|
|
115
|
+
</template>
|
|
116
|
+
</template>
|
|
117
|
+
<template v-for="[attributeId, attribute] of displayedProjectAttributes" :key="attributeId">
|
|
118
|
+
<template v-if="attributeId === 'works' && isArray(attribute.value)">
|
|
119
|
+
<li v-for="value in JSON.parse(attribute.value)">
|
|
120
|
+
{{ works[value] }}
|
|
121
|
+
</li>
|
|
122
|
+
</template>
|
|
123
|
+
<template v-else-if="attributeId === 'works'">
|
|
124
|
+
<li>
|
|
125
|
+
{{ works[attribute.value] }}
|
|
126
|
+
</li>
|
|
127
|
+
</template>
|
|
128
|
+
</template>
|
|
129
|
+
</ul>
|
|
86
130
|
</m-flexy>
|
|
87
131
|
</template>
|
|
88
132
|
|
|
@@ -96,6 +140,28 @@ export default defineComponent({
|
|
|
96
140
|
|
|
97
141
|
components: { MFlexy, PbProjectAttribute },
|
|
98
142
|
|
|
143
|
+
data() {
|
|
144
|
+
return {
|
|
145
|
+
works: {
|
|
146
|
+
FURNITURES: 'Meubles',
|
|
147
|
+
SHOWER: 'Douche',
|
|
148
|
+
BATHTUB: 'Baignoire',
|
|
149
|
+
WC: 'WC',
|
|
150
|
+
COVERING_FLOOR: 'Revêtement sol',
|
|
151
|
+
COVERING_WALL: 'Revêtement mûr',
|
|
152
|
+
REPLACE_BATHTUB_TO_SHOWER: 'Remplacer une baignoire par une douche',
|
|
153
|
+
},
|
|
154
|
+
bathroomStyle: {
|
|
155
|
+
NATURAL: 'Naturel',
|
|
156
|
+
INDUSTRIAL: 'Industriel',
|
|
157
|
+
GLAMOR_CHIC: 'Glamour',
|
|
158
|
+
DESIGN: 'Design',
|
|
159
|
+
CHARME: 'Charme',
|
|
160
|
+
NEO: 'Néo-classique',
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
|
|
99
165
|
props: {
|
|
100
166
|
/**
|
|
101
167
|
* The project attributes
|
|
@@ -106,6 +172,12 @@ export default defineComponent({
|
|
|
106
172
|
},
|
|
107
173
|
},
|
|
108
174
|
|
|
175
|
+
methods: {
|
|
176
|
+
isArray(value: any) {
|
|
177
|
+
return value.includes('[') ? true : false;
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
|
|
109
181
|
computed: {
|
|
110
182
|
displayedProjectAttributes() {
|
|
111
183
|
return Object.entries(this.projectAttributes);
|
|
@@ -126,5 +198,30 @@ $responsive-breakpoint: 'l';
|
|
|
126
198
|
.pb-project-attributes {
|
|
127
199
|
align-items: stretch;
|
|
128
200
|
height: 100%;
|
|
201
|
+
|
|
202
|
+
&__section-title {
|
|
203
|
+
width: 100%;
|
|
204
|
+
@include set-font-face('semi-bold');
|
|
205
|
+
@include set-font-scale('05', 'm');
|
|
206
|
+
|
|
207
|
+
color: $color-grey-800;
|
|
208
|
+
margin-left: $mu100;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&__works {
|
|
212
|
+
list-style: none;
|
|
213
|
+
margin: 0;
|
|
214
|
+
padding: 0 $mu100;
|
|
215
|
+
width: 100%;
|
|
216
|
+
|
|
217
|
+
li {
|
|
218
|
+
@include set-font-face('semi-bold');
|
|
219
|
+
|
|
220
|
+
margin: 0;
|
|
221
|
+
padding: $mu125 $mu025;
|
|
222
|
+
border-bottom: 1px solid $color-primary-02-200;
|
|
223
|
+
width: 100%;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
129
226
|
}
|
|
130
227
|
</style>
|
|
@@ -712,7 +712,7 @@
|
|
|
712
712
|
"code": "NATURAL",
|
|
713
713
|
"viewModel": {
|
|
714
714
|
"title": "Nature",
|
|
715
|
-
"image": "https://storage.googleapis.com/project-booster-media/bathroom/
|
|
715
|
+
"image": "https://storage.googleapis.com/project-booster-media/bathroom/styles/nature.jpg"
|
|
716
716
|
},
|
|
717
717
|
"meta": {
|
|
718
718
|
"ranking": 1
|
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
"code": "INDUSTRIAL",
|
|
723
723
|
"viewModel": {
|
|
724
724
|
"title": "Industriel",
|
|
725
|
-
"image": "https://storage.googleapis.com/project-booster-media/bathroom/
|
|
725
|
+
"image": "https://storage.googleapis.com/project-booster-media/bathroom/styles/industriel.jpg"
|
|
726
726
|
},
|
|
727
727
|
"meta": {
|
|
728
728
|
"ranking": 2
|
|
@@ -732,7 +732,7 @@
|
|
|
732
732
|
"code": "GLAMOR_CHIC",
|
|
733
733
|
"viewModel": {
|
|
734
734
|
"title": "Glamour Chic",
|
|
735
|
-
"image": "https://storage.googleapis.com/project-booster-media/bathroom/
|
|
735
|
+
"image": "https://storage.googleapis.com/project-booster-media/bathroom/styles/glamour.jpg"
|
|
736
736
|
},
|
|
737
737
|
"meta": {
|
|
738
738
|
"ranking": 3
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
"code": "DESIGN",
|
|
743
743
|
"viewModel": {
|
|
744
744
|
"title": "Design",
|
|
745
|
-
"image": "https://storage.googleapis.com/project-booster-media/bathroom/
|
|
745
|
+
"image": "https://storage.googleapis.com/project-booster-media/bathroom/styles/design.jpg"
|
|
746
746
|
},
|
|
747
747
|
"meta": {
|
|
748
748
|
"ranking": 2
|
|
@@ -752,11 +752,21 @@
|
|
|
752
752
|
"code": "CHARME",
|
|
753
753
|
"viewModel": {
|
|
754
754
|
"title": "Charme",
|
|
755
|
-
"image": "https://storage.googleapis.com/project-booster-media/bathroom/
|
|
755
|
+
"image": "https://storage.googleapis.com/project-booster-media/bathroom/styles/charme.jpg"
|
|
756
756
|
},
|
|
757
757
|
"meta": {
|
|
758
758
|
"ranking": 3
|
|
759
759
|
}
|
|
760
|
+
},
|
|
761
|
+
"NEO": {
|
|
762
|
+
"code": "NEO",
|
|
763
|
+
"viewModel": {
|
|
764
|
+
"title": "Néo-classique",
|
|
765
|
+
"image": "https://storage.googleapis.com/project-booster-media/bathroom/styles/neo-classique.jpg"
|
|
766
|
+
},
|
|
767
|
+
"meta": {
|
|
768
|
+
"ranking": 4
|
|
769
|
+
}
|
|
760
770
|
}
|
|
761
771
|
}
|
|
762
772
|
}
|
|
@@ -228,6 +228,26 @@
|
|
|
228
228
|
"budget": {
|
|
229
229
|
"value": "BETWEEN_2000_AND_3000_EUROS",
|
|
230
230
|
"date": "2019-08-23T13:53:25.137541515Z"
|
|
231
|
+
},
|
|
232
|
+
"works": {
|
|
233
|
+
"id": "7cfd6d6a-6c39-404d-9186-255ce4e86703",
|
|
234
|
+
"name": "works",
|
|
235
|
+
"value": "SHOWER",
|
|
236
|
+
"date": "2022-07-21T15:06:58.33537Z",
|
|
237
|
+
"inhabitantProjectId": "caf335a6-95f1-4903-83bd-3c8fcd2881b3",
|
|
238
|
+
"businessUnit": "001",
|
|
239
|
+
"ownerId": "90817164",
|
|
240
|
+
"creatorId": "90817164"
|
|
241
|
+
},
|
|
242
|
+
"bathroomStyle": {
|
|
243
|
+
"id": "7cfd6d6a-6c39-404d-9186-255ce4e86703",
|
|
244
|
+
"name": "bathroomStyle",
|
|
245
|
+
"value": "INDUSTRIAL",
|
|
246
|
+
"date": "2022-07-21T15:06:58.33537Z",
|
|
247
|
+
"inhabitantProjectId": "caf335a6-95f1-4903-83bd-3c8fcd2881b3",
|
|
248
|
+
"businessUnit": "001",
|
|
249
|
+
"ownerId": "90817164",
|
|
250
|
+
"creatorId": "90817164"
|
|
231
251
|
}
|
|
232
252
|
}
|
|
233
253
|
},
|