project-booster-vue 9.62.3 → 9.62.4
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
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
50
|
|
|
51
|
-
<m-modal :modalTitle="titleModal" :open="showModal" @update:open="
|
|
51
|
+
<m-modal :modalTitle="titleModal" :open="showModal" @update:open="handleCloseModal" class="m-pb-alert__dialog">
|
|
52
52
|
<template #default>
|
|
53
53
|
<div class="m-pb-alert__dialog__iframe">
|
|
54
54
|
<iframe
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
</div>
|
|
64
64
|
</template>
|
|
65
65
|
<template #footer>
|
|
66
|
-
<m-button label="Fermer" @click.prevent="
|
|
66
|
+
<m-button label="Fermer" @click.prevent="handleCloseModal" />
|
|
67
67
|
</template>
|
|
68
68
|
</m-modal>
|
|
69
69
|
</div>
|
|
@@ -92,9 +92,14 @@ const props = defineProps({
|
|
|
92
92
|
},
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
+
const handleCloseModal = () => {
|
|
96
|
+
showModal.value = false;
|
|
97
|
+
srcModal.value = '';
|
|
98
|
+
};
|
|
99
|
+
|
|
95
100
|
const handleShowModal = (option: any) => {
|
|
96
101
|
if (option.viewModel.button.dialog) {
|
|
97
|
-
showModal.value =
|
|
102
|
+
showModal.value = true;
|
|
98
103
|
titleModal.value = option.viewModel.title;
|
|
99
104
|
srcModal.value = option.viewModel.button.dialog.src;
|
|
100
105
|
} else if (option.viewModel.button.href) {
|
|
@@ -85,7 +85,6 @@ import { ScenarioStepAnswer } from '@/types/pb/Scenario';
|
|
|
85
85
|
|
|
86
86
|
const emit = defineEmits(['go-back', 'step-completed']);
|
|
87
87
|
const message = ref('');
|
|
88
|
-
const currentIndex = ref(0);
|
|
89
88
|
|
|
90
89
|
const props = defineProps({
|
|
91
90
|
/**
|
|
@@ -119,18 +118,12 @@ const props = defineProps({
|
|
|
119
118
|
*/
|
|
120
119
|
const callAction = (action: PayloadAction) => {
|
|
121
120
|
if (action.code != '__BACK__') {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (message.value.length > 10) {
|
|
125
|
-
answers = [
|
|
121
|
+
emit('step-completed', {
|
|
122
|
+
answers: [
|
|
126
123
|
{
|
|
127
124
|
message,
|
|
128
125
|
},
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
emit('step-completed', {
|
|
133
|
-
answers,
|
|
126
|
+
],
|
|
134
127
|
nextStep: action,
|
|
135
128
|
});
|
|
136
129
|
} else {
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"conditions": [
|
|
114
|
+
"isAnswerContaining('LMFR_QUESTION_WORKS', 'REPLACE_BATHTUB_TO_SHOWER')",
|
|
114
115
|
"isAnswerContaining('LMFR_QUESTION_WORKS', 'REPLACE_BATHTUB_TO_SHOWER') && isAnswerContaining('LMFR_QUESTION_WORKS', 'FURNITURES')",
|
|
115
116
|
"isAnswerContaining('LMFR_QUESTION_WORKS', 'REPLACE_BATHTUB_TO_SHOWER') && isAnswerContaining('LMFR_QUESTION_WORKS', 'WC')",
|
|
116
117
|
"isAnswerContaining('LMFR_QUESTION_WORKS', 'REPLACE_BATHTUB_TO_SHOWER') && isAnswerContaining('LMFR_QUESTION_WORKS', 'COVERING_WALL')",
|