project-booster-vue 8.115.1 → 8.115.5
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
|
@@ -54,10 +54,11 @@
|
|
|
54
54
|
@click="skipQuestion"
|
|
55
55
|
/>
|
|
56
56
|
<m-button
|
|
57
|
-
v-if="hasSelectedAnswers"
|
|
57
|
+
v-if="hasSelectedAnswers || payload.multiSelect.alwaysDisplayMultiSelectButton"
|
|
58
58
|
class="pb-list-select__validate-button"
|
|
59
59
|
size="m"
|
|
60
60
|
size-from-l="l"
|
|
61
|
+
:disabled="!hasSelectedAnswers"
|
|
61
62
|
:label="validateButtonProps.label"
|
|
62
63
|
:left-icon="validateButtonProps.leftIcon"
|
|
63
64
|
:right-icon="validateButtonProps.rightIcon"
|
|
@@ -163,13 +164,26 @@ export default {
|
|
|
163
164
|
} else {
|
|
164
165
|
displayedAnswers = props.payload?.answers ? Object.values(props.payload.answers) : [];
|
|
165
166
|
}
|
|
167
|
+
updateSelectedAnswers();
|
|
166
168
|
return displayedAnswers;
|
|
167
169
|
});
|
|
168
170
|
|
|
171
|
+
const updateSelectedAnswers = () => {
|
|
172
|
+
for (const answerCode in props.payload.answers) {
|
|
173
|
+
if (props.payload.answers[answerCode].selected) {
|
|
174
|
+
selectedAnswers.value.push({ key: answerCode, value: true });
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
169
178
|
const handleSelectionChange = (items) => {
|
|
170
179
|
selectedAnswers.value = Object.entries(items)
|
|
171
180
|
.filter(([key, value]) => !!value)
|
|
172
|
-
.map(([key, value]) =>
|
|
181
|
+
.map(([key, value]) => {
|
|
182
|
+
displayedAnswers.value.map((answer) => {
|
|
183
|
+
answer.code === key ? (answer['selected'] = true) : (answer['selected'] = false);
|
|
184
|
+
});
|
|
185
|
+
return { key, value };
|
|
186
|
+
});
|
|
173
187
|
};
|
|
174
188
|
|
|
175
189
|
const hasSelectedAnswers = computed(() => {
|
|
@@ -352,6 +366,7 @@ export default {
|
|
|
352
366
|
skipQuestion,
|
|
353
367
|
submitAnswers,
|
|
354
368
|
decorateBoolean,
|
|
369
|
+
updateSelectedAnswers,
|
|
355
370
|
};
|
|
356
371
|
},
|
|
357
372
|
};
|
|
@@ -73,10 +73,13 @@ export default {
|
|
|
73
73
|
$responsive-breakpoint: 'l';
|
|
74
74
|
|
|
75
75
|
.pb-restitution-exit {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
margin: $mu350 0;
|
|
77
|
+
|
|
78
|
+
@include set-from-screen('m') {
|
|
79
|
+
margin: $mu300 0;
|
|
80
|
+
}
|
|
79
81
|
|
|
82
|
+
&__section {
|
|
80
83
|
&-title {
|
|
81
84
|
@include set-font-face('semi-bold');
|
|
82
85
|
@include set-font-scale('07', 'm');
|
|
@@ -12,7 +12,13 @@
|
|
|
12
12
|
ratio="16x9"
|
|
13
13
|
/>
|
|
14
14
|
<m-flex
|
|
15
|
-
v-if="
|
|
15
|
+
v-if="
|
|
16
|
+
tempTask.viewModel.completions &&
|
|
17
|
+
tempTask.state &&
|
|
18
|
+
tempTask.state.enabled &&
|
|
19
|
+
!tempTask.state.done &&
|
|
20
|
+
tempTask.id
|
|
21
|
+
"
|
|
16
22
|
class="pb-task-details__header-action"
|
|
17
23
|
gap="0.5rem"
|
|
18
24
|
>
|
|
@@ -219,8 +219,8 @@ export default {
|
|
|
219
219
|
};
|
|
220
220
|
try {
|
|
221
221
|
const event = {
|
|
222
|
-
inhabitantProjectId: clickedCardInfo.project.
|
|
223
|
-
businessUnit: clickedCardInfo.project.
|
|
222
|
+
inhabitantProjectId: clickedCardInfo.project.id,
|
|
223
|
+
businessUnit: clickedCardInfo.project.businessUnit,
|
|
224
224
|
section: clickedCardInfo.section,
|
|
225
225
|
clickedCard: formatCard(clickedCardInfo.product),
|
|
226
226
|
possibleCards: state.products[clickedCardInfo.section].map((card) => {
|