project-booster-vue 9.44.0 → 9.44.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/PbQuestion.vue +10 -4
- package/src/components/restitution/PbRestitutionList.vue +11 -14
- package/src/components/restitution/PbRestitutionListBlock.vue +6 -31
- package/src/components/restitution/PbRestitutionListLine.vue +8 -21
- package/src/types/pb/Restitution.ts +0 -1
package/package.json
CHANGED
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
class="pb-question__dialog-help"
|
|
285
285
|
v-model:show-dialog="displayDialogHelp"
|
|
286
286
|
width="771px"
|
|
287
|
-
height="
|
|
287
|
+
height="512px"
|
|
288
288
|
maxHeight="100vh"
|
|
289
289
|
>
|
|
290
290
|
<template #header v-if="helpDialog">
|
|
@@ -1277,15 +1277,21 @@ $answers-apparition-duration: '0.5s';
|
|
|
1277
1277
|
.pb-question {
|
|
1278
1278
|
&__dialog-help {
|
|
1279
1279
|
&__title {
|
|
1280
|
-
padding: $mu250 $mu250
|
|
1281
|
-
|
|
1280
|
+
padding: $mu250 $mu250 $mu050 $mu250;
|
|
1281
|
+
|
|
1282
|
+
h2 {
|
|
1283
|
+
@include set-font-scale('06', 'm');
|
|
1284
|
+
margin-bottom: 0;
|
|
1285
|
+
}
|
|
1282
1286
|
}
|
|
1283
1287
|
|
|
1284
1288
|
&__body {
|
|
1285
1289
|
padding: 0 $mu250;
|
|
1286
1290
|
@include set-font-scale('06', 'm');
|
|
1287
1291
|
&__image {
|
|
1288
|
-
background-
|
|
1292
|
+
background-position: center;
|
|
1293
|
+
background-repeat: no-repeat;
|
|
1294
|
+
background-size: 100% auto;
|
|
1289
1295
|
padding: 120px 0;
|
|
1290
1296
|
}
|
|
1291
1297
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
:left-icon="BACK_ICON"
|
|
13
13
|
:label="payload.backLabel || 'Modifier l\'estimation'"
|
|
14
14
|
class="pb-restitution-list__back-button"
|
|
15
|
-
@click.once="
|
|
15
|
+
@click.once="$emit('go-back')"
|
|
16
16
|
/>
|
|
17
17
|
</m-flex>
|
|
18
18
|
<div class="pb-restitution-list__title">{{ payload?.viewModel?.title }}</div>
|
|
@@ -20,9 +20,7 @@
|
|
|
20
20
|
<div class="pb-restitution-list__line">
|
|
21
21
|
<pb-restitution-list-block
|
|
22
22
|
@button="handleShowDialog"
|
|
23
|
-
|
|
24
|
-
:key="component.componentId"
|
|
25
|
-
:payload="component"
|
|
23
|
+
:payload="summary"
|
|
26
24
|
:legalMentions="payload?.viewModel?.legalMentions"
|
|
27
25
|
></pb-restitution-list-block>
|
|
28
26
|
</div>
|
|
@@ -79,8 +77,12 @@
|
|
|
79
77
|
|
|
80
78
|
<div class="pb-restitution-list__modal__details__row">
|
|
81
79
|
<div v-for="component in summary.components" :key="component.details">
|
|
82
|
-
<div
|
|
83
|
-
|
|
80
|
+
<div
|
|
81
|
+
class="pb-restitution-list__modal__details__row__title"
|
|
82
|
+
:class="{ green: component.componentId == 'AID' }"
|
|
83
|
+
justify-content="space-between"
|
|
84
|
+
>
|
|
85
|
+
<div v-html="component.title"></div>
|
|
84
86
|
<div v-if="component.cost.min != component.cost.max">
|
|
85
87
|
<strong>
|
|
86
88
|
{{ formattedPriceRange(component.cost.min) }} et
|
|
@@ -155,16 +157,11 @@ import MLink from '../mozaic/link/MLink.vue';
|
|
|
155
157
|
import PbProjectItemSave from '../projects/project-item-save/PbProjectItemSave.vue';
|
|
156
158
|
import MNotification from '../mozaic/notifications/MNotification.vue';
|
|
157
159
|
import { NotificationOptions } from '@/types/pb/Notification';
|
|
158
|
-
import {
|
|
159
|
-
RestitutionListPayload,
|
|
160
|
-
RestitutionPayloadAction,
|
|
161
|
-
RestitutionPayloadCallToAction,
|
|
162
|
-
} from '@/types/pb/Restitution';
|
|
160
|
+
import { RestitutionListPayload, RestitutionPayloadCallToAction } from '@/types/pb/Restitution';
|
|
163
161
|
import { ScenarioStepAnswer } from '@/types/pb/Scenario';
|
|
164
162
|
import PbRestitutionListBlock from './PbRestitutionListBlock.vue';
|
|
165
163
|
import { Project } from '../../types/pb/Project';
|
|
166
164
|
import { areConditionsValid } from '../../services/scenarioConditionals';
|
|
167
|
-
import { priceFormatter } from '@/services/priceFormatter';
|
|
168
165
|
const BACK_ICON =
|
|
169
166
|
'https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Navigation_Arrow_Arrow--Left_16px.svg';
|
|
170
167
|
|
|
@@ -352,7 +349,7 @@ $responsive-breakpoint: 'm';
|
|
|
352
349
|
&__title {
|
|
353
350
|
@include set-font-face('semi-bold');
|
|
354
351
|
@include set-font-scale('10', 's');
|
|
355
|
-
padding: $
|
|
352
|
+
padding: $mu250 0 0 $mu100;
|
|
356
353
|
text-align: left;
|
|
357
354
|
|
|
358
355
|
&::after {
|
|
@@ -441,7 +438,7 @@ $responsive-breakpoint: 'm';
|
|
|
441
438
|
background: $color-primary-01-100;
|
|
442
439
|
border-radius: 4px;
|
|
443
440
|
color: $color-grey-600;
|
|
444
|
-
margin-
|
|
441
|
+
margin-bottom: 10px;
|
|
445
442
|
padding: $mu075;
|
|
446
443
|
position: relative;
|
|
447
444
|
@include set-font-scale('05', 's');
|
|
@@ -1,39 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<m-flex align-items="center" direction="column"
|
|
2
|
+
<m-flex align-items="center" direction="column">
|
|
3
3
|
<m-flex :class="`pb-restitution-list-block`" direction="column" ref="pbRestitutionListBlock">
|
|
4
4
|
<div class="pb-restitution-list-block__title" v-html="summary.subprojectTemplateLabel"></div>
|
|
5
5
|
|
|
6
6
|
<div class="pb-restitution-list-block__body" v-if="payload">
|
|
7
|
-
<div class="pb-restitution-list-line">
|
|
8
|
-
<div class="pb-restitution-list-line__title" v-html="summary.components[0].title"></div>
|
|
9
|
-
<div class="pb-restitution-list-line__price">
|
|
10
|
-
<div class="pb-restitution-list-line__price__min">
|
|
11
|
-
{{ formattedPriceRange(summary.components[0].cost.min) }} et
|
|
12
|
-
</div>
|
|
13
|
-
<div class="pb-restitution-list-line__price__max">
|
|
14
|
-
{{ formattedPriceRange(summary.components[0].cost.max) }}
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
7
|
<pb-restitution-list-line
|
|
20
|
-
v-for="
|
|
21
|
-
:key="
|
|
22
|
-
:
|
|
23
|
-
:line="line"
|
|
8
|
+
v-for="component in payload.components"
|
|
9
|
+
:key="component.componentId"
|
|
10
|
+
:line="component"
|
|
24
11
|
></pb-restitution-list-line>
|
|
25
12
|
|
|
26
|
-
<div v-for="aidComponent in summary.components" :key="aidComponent.componentId">
|
|
27
|
-
<div v-if="aidComponent.componentId === 'AID'">
|
|
28
|
-
<pb-restitution-list-line
|
|
29
|
-
:key="aidComponent.title"
|
|
30
|
-
:component="aidComponent"
|
|
31
|
-
:line="aidComponent"
|
|
32
|
-
:renovAid="true"
|
|
33
|
-
></pb-restitution-list-line>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
13
|
<div class="pb-restitution-list-block__body__row unbordered">
|
|
38
14
|
<div class="pb-restitution-list-block__body__row__title full">
|
|
39
15
|
<div><strong>Montant total</strong> (aides déduites)</div>
|
|
@@ -67,7 +43,7 @@ import MFlex from '../mozaic/flex/MFlex.vue';
|
|
|
67
43
|
import MButton from '../mozaic/buttons/MButton.vue';
|
|
68
44
|
import PbRestitutionListLine from './PbRestitutionListLine.vue';
|
|
69
45
|
import { mapGetters } from 'vuex';
|
|
70
|
-
import {
|
|
46
|
+
import { Restitution } from '@/types/pb/Restitution';
|
|
71
47
|
|
|
72
48
|
export default defineComponent({
|
|
73
49
|
components: {
|
|
@@ -77,8 +53,7 @@ export default defineComponent({
|
|
|
77
53
|
},
|
|
78
54
|
props: {
|
|
79
55
|
payload: {
|
|
80
|
-
type: Object as PropType<
|
|
81
|
-
default: () => ({}),
|
|
56
|
+
type: Object as PropType<Restitution>,
|
|
82
57
|
required: true,
|
|
83
58
|
},
|
|
84
59
|
legalMentions: {
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="pb-restitution-list-line" :class="{ green:
|
|
3
|
-
<div class="pb-restitution-list-line__title" v-html="line.
|
|
4
|
-
<div class="pb-restitution-list-line__price" v-if="!renovAid">
|
|
5
|
-
<div class="pb-restitution-list-line__price__min">
|
|
6
|
-
{{ formattedPriceRange(line.cost.min) }} et {{ formattedPriceRange(line.cost.max) }}
|
|
7
|
-
</div>
|
|
8
|
-
<div class="pb-restitution-list-line__price__max">{{ formattedPriceRange(line.cost.max) }}</div>
|
|
9
|
-
</div>
|
|
2
|
+
<div class="pb-restitution-list-line" :class="{ green: line.componentId == 'AID' }">
|
|
3
|
+
<div class="pb-restitution-list-line__title" v-html="line.title"></div>
|
|
10
4
|
<div class="pb-restitution-list-line__price">
|
|
11
|
-
<span v-if="line
|
|
12
|
-
<span v-else>{{ formattedPriceRange(line
|
|
5
|
+
<span v-if="line?.cost?.min === line?.cost?.max">{{ formattedPriceRange(line?.cost?.min) }}</span>
|
|
6
|
+
<span v-else>{{ formattedPriceRange(line?.cost?.min) }} et {{ formattedPriceRange(line?.cost?.max) }}</span>
|
|
13
7
|
</div>
|
|
14
8
|
</div>
|
|
15
9
|
</template>
|
|
16
10
|
|
|
17
11
|
<script lang="ts">
|
|
18
|
-
import { defineComponent } from 'vue';
|
|
12
|
+
import { defineComponent, PropType } from 'vue';
|
|
19
13
|
import MFlex from '../mozaic/flex/MFlex.vue';
|
|
14
|
+
import { RestitutionComponent } from '@/types/pb/Restitution';
|
|
20
15
|
|
|
21
16
|
export default defineComponent({
|
|
22
17
|
components: {
|
|
@@ -24,16 +19,8 @@ export default defineComponent({
|
|
|
24
19
|
},
|
|
25
20
|
props: {
|
|
26
21
|
line: {
|
|
27
|
-
type: Object
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
renovAid: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: () => false,
|
|
33
|
-
},
|
|
34
|
-
formatPriceRange: {
|
|
35
|
-
type: Function,
|
|
36
|
-
default: () => '',
|
|
22
|
+
type: Object as PropType<RestitutionComponent>,
|
|
23
|
+
required: true,
|
|
37
24
|
},
|
|
38
25
|
},
|
|
39
26
|
methods: {
|