project-booster-vue 9.59.3 → 9.60.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,42 @@
|
|
|
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 === 'works' && isArray(attribute.value)">
|
|
111
|
+
<li v-for="value in JSON.parse(attribute.value)">
|
|
112
|
+
{{ works[value] }}
|
|
113
|
+
</li>
|
|
114
|
+
</template>
|
|
115
|
+
<template v-else-if="attributeId === 'works'">
|
|
116
|
+
<li>
|
|
117
|
+
{{ works[attribute.value] }}
|
|
118
|
+
</li>
|
|
119
|
+
</template>
|
|
120
|
+
</template>
|
|
121
|
+
</ul>
|
|
86
122
|
</m-flexy>
|
|
87
123
|
</template>
|
|
88
124
|
|
|
@@ -96,6 +132,20 @@ export default defineComponent({
|
|
|
96
132
|
|
|
97
133
|
components: { MFlexy, PbProjectAttribute },
|
|
98
134
|
|
|
135
|
+
data() {
|
|
136
|
+
return {
|
|
137
|
+
works: {
|
|
138
|
+
FURNITURES: 'Meubles',
|
|
139
|
+
SHOWER: 'Douche',
|
|
140
|
+
BATHTUB: 'Baignoire',
|
|
141
|
+
WC: 'WC',
|
|
142
|
+
COVERING_FLOOR: 'Revêtement sol',
|
|
143
|
+
COVERING_WALL: 'Revêtement mûr',
|
|
144
|
+
REPLACE_BATHTUB_TO_SHOWER: 'Remplacer une baignoire par une douche',
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
},
|
|
148
|
+
|
|
99
149
|
props: {
|
|
100
150
|
/**
|
|
101
151
|
* The project attributes
|
|
@@ -106,6 +156,12 @@ export default defineComponent({
|
|
|
106
156
|
},
|
|
107
157
|
},
|
|
108
158
|
|
|
159
|
+
methods: {
|
|
160
|
+
isArray(value: any) {
|
|
161
|
+
return value.includes('[') ? true : false;
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
|
|
109
165
|
computed: {
|
|
110
166
|
displayedProjectAttributes() {
|
|
111
167
|
return Object.entries(this.projectAttributes);
|
|
@@ -126,5 +182,30 @@ $responsive-breakpoint: 'l';
|
|
|
126
182
|
.pb-project-attributes {
|
|
127
183
|
align-items: stretch;
|
|
128
184
|
height: 100%;
|
|
185
|
+
|
|
186
|
+
&__section-title {
|
|
187
|
+
width: 100%;
|
|
188
|
+
@include set-font-face('semi-bold');
|
|
189
|
+
@include set-font-scale('05', 'm');
|
|
190
|
+
|
|
191
|
+
color: $color-grey-800;
|
|
192
|
+
margin-left: $mu100;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&__works {
|
|
196
|
+
list-style: none;
|
|
197
|
+
margin: 0;
|
|
198
|
+
padding: 0 $mu100;
|
|
199
|
+
width: 100%;
|
|
200
|
+
|
|
201
|
+
li {
|
|
202
|
+
@include set-font-face('semi-bold');
|
|
203
|
+
|
|
204
|
+
margin: 0;
|
|
205
|
+
padding: $mu125 $mu025;
|
|
206
|
+
border-bottom: 1px solid $color-primary-02-200;
|
|
207
|
+
width: 100%;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
129
210
|
}
|
|
130
211
|
</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
|
},
|