project-booster-vue 9.43.0 → 9.43.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/package.json +1 -1
- package/src/components/question/city-search/PbCitySearch.vue +7 -2
- package/src/components/trezor/PbTrezor.vue +0 -19
- package/src/components/trezor/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-trezor-pb-trezor-/360/237/246/240-101-sandbox-1-snap.png +0 -0
- package/src/components/trezor/default-payload.json +1 -6
package/package.json
CHANGED
|
@@ -341,15 +341,20 @@ export default defineComponent({
|
|
|
341
341
|
selectedCity.geometry.location.lat(),
|
|
342
342
|
selectedCity.geometry.location.lng(),
|
|
343
343
|
);
|
|
344
|
+
|
|
344
345
|
const postalCode =
|
|
345
|
-
|
|
346
|
+
selectedCity.address_components.filter((field) => field.types.includes('postal_code'))[0]?.short_name ||
|
|
346
347
|
placeData.postalCode;
|
|
347
348
|
|
|
349
|
+
const region =
|
|
350
|
+
selectedCity.address_components.filter((field) => field.types.includes('administrative_area_level_1'))[0]
|
|
351
|
+
?.short_name || '';
|
|
352
|
+
|
|
348
353
|
this.selectedCity = {
|
|
349
354
|
inseeCode: placeData.inseeCode,
|
|
350
355
|
postalCode: postalCode,
|
|
351
356
|
name: placeData.name,
|
|
352
|
-
region:
|
|
357
|
+
region: region,
|
|
353
358
|
};
|
|
354
359
|
|
|
355
360
|
this.searchKeyword = this.selectedCityToKeyword();
|
|
@@ -35,17 +35,6 @@
|
|
|
35
35
|
></m-text-input>
|
|
36
36
|
</m-flex>
|
|
37
37
|
|
|
38
|
-
<m-flex class="pb-trezor__form__row">
|
|
39
|
-
<m-text-input
|
|
40
|
-
v-model="formData.values.surface"
|
|
41
|
-
:error="formData.errors.surface"
|
|
42
|
-
type="text"
|
|
43
|
-
label="Surface"
|
|
44
|
-
:required="true"
|
|
45
|
-
class="pb-trezor__input"
|
|
46
|
-
></m-text-input>
|
|
47
|
-
</m-flex>
|
|
48
|
-
|
|
49
38
|
<m-flex class="pb-trezor__form__row">
|
|
50
39
|
<m-text-input
|
|
51
40
|
v-model="formData.values.zipcode"
|
|
@@ -197,11 +186,6 @@ export default defineComponent({
|
|
|
197
186
|
props.payload.viewModel.defaultValue?.zipcode?.answerCode,
|
|
198
187
|
props.payload.viewModel.defaultValue?.zipcode?.path,
|
|
199
188
|
) || null;
|
|
200
|
-
const surface =
|
|
201
|
-
getAnswerValue(
|
|
202
|
-
props.payload.viewModel.defaultValue?.surface?.answerCode,
|
|
203
|
-
props.payload.viewModel.defaultValue?.surface?.path,
|
|
204
|
-
) || null;
|
|
205
189
|
|
|
206
190
|
let formData = ref<any>({
|
|
207
191
|
values: {
|
|
@@ -209,7 +193,6 @@ export default defineComponent({
|
|
|
209
193
|
firstname: '',
|
|
210
194
|
zipcode: zipcode,
|
|
211
195
|
email: '',
|
|
212
|
-
surface: surface,
|
|
213
196
|
phone: '',
|
|
214
197
|
optin: false,
|
|
215
198
|
optinPartners: false,
|
|
@@ -220,7 +203,6 @@ export default defineComponent({
|
|
|
220
203
|
zipcode: '',
|
|
221
204
|
email: '',
|
|
222
205
|
phone: '',
|
|
223
|
-
surface: '',
|
|
224
206
|
},
|
|
225
207
|
});
|
|
226
208
|
|
|
@@ -230,7 +212,6 @@ export default defineComponent({
|
|
|
230
212
|
zipcode: string().required(),
|
|
231
213
|
email: string().email().required(),
|
|
232
214
|
phone: string().required(),
|
|
233
|
-
surface: string().required(),
|
|
234
215
|
optin: boolean(),
|
|
235
216
|
optinPartners: boolean(),
|
|
236
217
|
});
|
|
@@ -7,10 +7,6 @@
|
|
|
7
7
|
"zipcode": {
|
|
8
8
|
"answerCode": "LMFR_PREVIOUS_QUESTION",
|
|
9
9
|
"path": "value"
|
|
10
|
-
},
|
|
11
|
-
"surface": {
|
|
12
|
-
"answerCode": "LMFR_PREVIOUS_QUESTION",
|
|
13
|
-
"path": "space"
|
|
14
10
|
}
|
|
15
11
|
},
|
|
16
12
|
"translationErrors": {
|
|
@@ -18,8 +14,7 @@
|
|
|
18
14
|
"firstname": "Le prénom est requis",
|
|
19
15
|
"zipcode": "Le code postal est requis",
|
|
20
16
|
"email": "Votre adresse mail est requise",
|
|
21
|
-
"phone": "Votre numéro de téléphone est requis"
|
|
22
|
-
"surface": "Veuillez indiquer la surface de votre logement"
|
|
17
|
+
"phone": "Votre numéro de téléphone est requis"
|
|
23
18
|
}
|
|
24
19
|
},
|
|
25
20
|
"callToActions": [
|