project-booster-vue 8.121.0 → 8.121.1
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
|
@@ -170,11 +170,11 @@ export default {
|
|
|
170
170
|
const updateSelectedAnswers = () => {
|
|
171
171
|
selectedAnswers.value = displayedAnswers.value
|
|
172
172
|
.filter((answer) => !!answer.selected)
|
|
173
|
-
.map((answer) => ({ key: answer.code, value:
|
|
173
|
+
.map((answer) => ({ key: answer.code, value: answer.selected }));
|
|
174
174
|
};
|
|
175
175
|
const handleSelectionChange = (items) => {
|
|
176
176
|
selectedAnswers.value = Object.entries(items)
|
|
177
|
-
.filter(([
|
|
177
|
+
.filter(([_, value]) => !!value)
|
|
178
178
|
.map(([key, value]) => ({ key, value }));
|
|
179
179
|
Object.entries(items).map(([key, value]) => {
|
|
180
180
|
displayedAnswers.value.map((answer) => {
|
|
@@ -191,6 +191,9 @@ export default {
|
|
|
191
191
|
|
|
192
192
|
// Pagination
|
|
193
193
|
const itemsPerPage = computed(() => {
|
|
194
|
+
if (selectedAnswers.value.length > 0) {
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
194
197
|
return props.payload?.viewModel?.showMore?.minItemsDisplayed ?? null;
|
|
195
198
|
});
|
|
196
199
|
|
|
@@ -132,8 +132,14 @@ const generateStory = (jsonLocation) => () => ({
|
|
|
132
132
|
this.hasScenario = true;
|
|
133
133
|
});
|
|
134
134
|
},
|
|
135
|
+
methods: {
|
|
136
|
+
handleScenarioEvent(event) {
|
|
137
|
+
console.log('Event', event);
|
|
138
|
+
},
|
|
139
|
+
},
|
|
135
140
|
// eslint-disable-next-line
|
|
136
|
-
template:
|
|
141
|
+
template:
|
|
142
|
+
'<pb-scenario v-if="hasScenario" :scenarios="scenarios" :runtime-options="runtimeOptions" @scenario-event="handleScenarioEvent" />',
|
|
137
143
|
});
|
|
138
144
|
|
|
139
145
|
export const estimateNewConstructionProd = generateStory(
|