project-booster-vue 9.31.2 → 9.33.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "9.31.2",
3
+ "version": "9.33.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -65,7 +65,7 @@ export const TemplateSandbox = (args, { argTypes }) => {
65
65
  businessUnit: '001',
66
66
  correlationId: uuidv4(),
67
67
  groupId: 'groupId',
68
- calendarId: 'calendarId',
68
+ interventionIds: ['interventionId'],
69
69
  appointmentId: 'appointmentId',
70
70
  sourceDetail: 'Appointment_email',
71
71
  });
@@ -55,7 +55,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
55
55
  businessUnit: '001',
56
56
  source: 'APPOINTMENT_QUALIFICATION',
57
57
  sourceDetail: 'KITCHEN',
58
- calendarId: '375615',
58
+ interventionIds: ['375615'],
59
59
  storeId: '006',
60
60
  appointmentQualificationFormStructure: SCENARIO,
61
61
  });
@@ -48,8 +48,8 @@ export default defineComponent({
48
48
  if (props.payload?.viewModel?.calendarUrlPath) {
49
49
  url = `${baseUrl}/${props.payload.viewModel.calendarUrlPath}?`;
50
50
  } else {
51
- url = `${baseUrl}/leroy-merlin-${sessions.storeId}`;
52
- url += `?calendar_id=${sessions.calendarId}`;
51
+ url = `${baseUrl}/leroy-merlin-${sessions.storeId}?`;
52
+ url += sessions.interventionIds.map((id: string) => 'intervention_ids[]=' + id).join('&');
53
53
  url += `&vevent[str5]=${currentAppointmentQualification.inhabitantProjectId}`;
54
54
  }
55
55
 
@@ -1,11 +1,12 @@
1
1
  import { Anchor, Story, Preview, Meta, Props, ArgsTable, Source, Canvas } from '@storybook/addon-docs';
2
2
  import DEFAULT_PAYLOAD from './default-payload';
3
+ import WITH_INSTRUCTIONS from './with-instructions';
3
4
  import { nestedAppDecorator } from '../../../.storybook/nested-app-decorator';
4
5
  import PbPedagogy from './PbPedagogy';
5
6
  import store from '../../stores/store';
6
7
 
7
8
  <Meta
8
- title="Project Booster/Components/Pedagogy/ PbPedagogy 🦠"
9
+ title="Project Booster/Components/Pedagogy/PbPedagogy 🦠"
9
10
  component={PbPedagogy}
10
11
  argTypes={{
11
12
  payload: {
@@ -48,3 +49,11 @@ export const TemplateSandbox = (args, { argTypes }) => ({
48
49
  {TemplateSandbox.bind({})}
49
50
  </Story>
50
51
  </Canvas>
52
+
53
+ ## showCase
54
+
55
+ <Canvas>
56
+ <Story inline={false} height="862px" name="With instruction" args={{ payload: WITH_INSTRUCTIONS }}>
57
+ {TemplateSandbox.bind({})}
58
+ </Story>
59
+ </Canvas>
@@ -14,6 +14,13 @@
14
14
  <div class="pb-pedagogy__content-description-line-text" v-html="line.label" />
15
15
  </div>
16
16
  </m-flex>
17
+ <m-flex
18
+ class="pb-pedagogy__content__button-informations"
19
+ align-items="center"
20
+ v-if="payload.viewModel.instructionsButton"
21
+ >
22
+ {{ payload.viewModel.instructionsButton.text }}
23
+ </m-flex>
17
24
  <m-button
18
25
  v-if="payload.viewModel.downloadButton"
19
26
  :theme="payload.viewModel.downloadButton.theme"
@@ -229,6 +236,13 @@ $responsive-breakpoint: 'm';
229
236
  margin-bottom: $mu100;
230
237
  }
231
238
  }
239
+
240
+ &__button-informations {
241
+ @include set-font-scale('07', 'm');
242
+ @include set-font-face('semi-bold');
243
+ margin-bottom: calc($mu100 * -1);
244
+ margin-top: $mu200;
245
+ }
232
246
  }
233
247
 
234
248
  :deep(.pb-pedagogy__content-description-bold) {
@@ -0,0 +1,45 @@
1
+ {
2
+ "viewModel": {
3
+ "title": "Un email de rappel pour préparer votre RDV vous sera envoyé",
4
+ "icon": "https://storage.googleapis.com/project-booster-media/vad/fin-de-parcours/mail_80.svg",
5
+ "description": [
6
+ {
7
+ "label": "Les mesures et &nbsp; <span class='pb-pedagogy__content-description-bold'> plans de votre pièce </span> &nbsp; sont importants pour le rendez-vous. Ils\n permettront à votre conseiller de créer un &nbsp; <span class='pb-pedagogy__content-description-bold'> plan 3D adapté </span> &nbsp; à votre cuisine.\n <span class='pb-pedagogy__content-description-bold'> Vous pouvez les ajouter à partir à partir du mail que vous avez reçu. </span>",
8
+ "icon": "https://storage.googleapis.com/project-booster-media/vad/lm-advisor.png"
9
+ }
10
+ ],
11
+ "instructionsButton": {
12
+ "text": "Vous pouvez maintenant choisir votre créneau de RDV"
13
+ },
14
+ "downloadButton": {
15
+ "label": "Comment faire son plan ? (PDF)",
16
+ "theme": "bordered",
17
+ "href": "https://storage.googleapis.com/project-booster-media/vad/PDF/Plan_Prise-de-mesure_Leroy-Merlin.pdf"
18
+ }
19
+ },
20
+ "cards": [
21
+ {
22
+ "code": "CARD-2",
23
+ "viewModel": {
24
+ "url": "https://www.leroymerlin.fr/produits/cuisine/cuisine-equipee-delinia-id/",
25
+ "image": "https://storage.googleapis.com/project-booster-media/kitchen/kitchen-range.jpeg",
26
+ "title": "Découvrir nos gammes de cuisines",
27
+ "width": "full",
28
+ "widthFromM": "1of3",
29
+ "widthFromL": "1of3"
30
+ }
31
+ },
32
+ {
33
+ "code": "CARD-3",
34
+ "viewModel": {
35
+ "value": "3",
36
+ "url": "https://www.leroymerlin.fr/produits/cuisine/cuisine-equipee-delinia-id/",
37
+ "image": "https://images.ctfassets.net/8q8qvv8j6cpk/59igdEVBhIa37nrfbnGs4V/252c4bb73bf865a68b53036fba6dba21/carrelage.jpg",
38
+ "title": "Des idées et conseils pour votre cuisine",
39
+ "width": "full",
40
+ "widthFromM": "1of3",
41
+ "widthFromL": "1of3"
42
+ }
43
+ }
44
+ ]
45
+ }
@@ -265,15 +265,17 @@ $responsive-breakpoint: 'm';
265
265
  @include set-font-scale('07', 's');
266
266
 
267
267
  color: $color-grey-700;
268
+ margin-bottom: 10px;
268
269
  max-width: 100%;
269
270
  padding: 0 0 0 0;
271
+ text-align: center;
270
272
  width: 384px;
271
273
 
272
274
  @include set-from-screen($responsive-breakpoint) {
273
275
  @include set-font-scale('08', 'm');
274
276
 
277
+ margin-bottom: 0;
275
278
  padding: $mu250 $mu100 $mu100 $mu100;
276
- text-align: center;
277
279
  width: auto;
278
280
  }
279
281
  }