project-booster-vue 9.19.2 → 9.19.3
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/amount-input/PbAmountInput.vue +0 -1
- package/src/components/question/dimensions-input/PbDimensionsInput.vue +4 -5
- package/src/components/question/login-redirect/PbLoginRedirect.stories.mdx +1 -1
- package/src/components/question/name-input/PbNameInput.vue +2 -3
- package/src/components/question/space-input/PbSpaceInput.stories.mdx +1 -1
- package/src/components/question/space-input/PbSpaceInput.vue +1 -2
- package/src/types/pb/Scenario.ts +5 -0
package/package.json
CHANGED
|
@@ -55,7 +55,6 @@ import { useForm } from 'vee-validate';
|
|
|
55
55
|
import * as yup from 'yup';
|
|
56
56
|
import cloneDeep from 'lodash.clonedeep';
|
|
57
57
|
import merge from 'lodash.merge';
|
|
58
|
-
import objectPath from 'object-path';
|
|
59
58
|
import MFlex from './../../mozaic/flex/MFlex.vue';
|
|
60
59
|
import MButton from './../../mozaic/buttons/MButton.vue';
|
|
61
60
|
import MIcon from './../../mozaic/icon/MIcon.vue';
|
|
@@ -98,7 +98,6 @@ import MTextInput from './../../mozaic/text-input/MTextInput.vue';
|
|
|
98
98
|
import DEFAULT_PAYLOAD from './default-payload.json';
|
|
99
99
|
import MLink from '../../mozaic/link/MLink.vue';
|
|
100
100
|
import MIcon from '../../mozaic/icon/MIcon.vue';
|
|
101
|
-
import objectPath from 'object-path';
|
|
102
101
|
import { ref } from 'vue';
|
|
103
102
|
import { ScenarioStepAnswer } from '@/types/pb/Scenario';
|
|
104
103
|
import { DimensionsInputPayload } from '@/components/question/dimensions-input/DimensionsInput';
|
|
@@ -156,13 +155,13 @@ const computeDefaultValue = (
|
|
|
156
155
|
answers,
|
|
157
156
|
runtimeOptions,
|
|
158
157
|
computedPayload?.value?.value?.length,
|
|
159
|
-
computedPayload?.value?.defaultDecoratorValue,
|
|
158
|
+
computedPayload?.value?.defaultDecoratorValue ?? '',
|
|
160
159
|
);
|
|
161
160
|
width.value = decorate(
|
|
162
161
|
answers,
|
|
163
162
|
runtimeOptions,
|
|
164
163
|
computedPayload?.value?.value?.width,
|
|
165
|
-
computedPayload?.value?.defaultDecoratorValue,
|
|
164
|
+
computedPayload?.value?.defaultDecoratorValue ?? '',
|
|
166
165
|
);
|
|
167
166
|
}
|
|
168
167
|
|
|
@@ -243,8 +242,8 @@ export default defineComponent({
|
|
|
243
242
|
emit(props.completedEventName, {
|
|
244
243
|
answers: [
|
|
245
244
|
{
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
length: values[elementLengthId],
|
|
246
|
+
width: values[elementWidthId],
|
|
248
247
|
},
|
|
249
248
|
],
|
|
250
249
|
});
|
|
@@ -160,7 +160,7 @@ export const overridenLabelsPayload = {
|
|
|
160
160
|
buttonLabelConnect: 'Se connecter',
|
|
161
161
|
buttonLabelCreateAccount: 'Créer un compte',
|
|
162
162
|
forceRedirect: false,
|
|
163
|
-
link: '/espace-perso/espace-projets.html
|
|
163
|
+
link: '/espace-perso/espace-projets.html',
|
|
164
164
|
},
|
|
165
165
|
};
|
|
166
166
|
|
|
@@ -52,7 +52,6 @@ import { useForm } from 'vee-validate';
|
|
|
52
52
|
import * as yup from 'yup';
|
|
53
53
|
import cloneDeep from 'lodash.clonedeep';
|
|
54
54
|
import merge from 'lodash.merge';
|
|
55
|
-
import objectPath from 'object-path';
|
|
56
55
|
import MFlex from '../../mozaic/flex/MFlex.vue';
|
|
57
56
|
import MButton from '../../mozaic/buttons/MButton.vue';
|
|
58
57
|
import MLink from '../../mozaic/link/MLink.vue';
|
|
@@ -99,13 +98,13 @@ const computeDefaultValue = (
|
|
|
99
98
|
answers,
|
|
100
99
|
runtimeOptions,
|
|
101
100
|
computedPayload?.value?.value?.projectName,
|
|
102
|
-
computedPayload?.value?.defaultDecoratorValue,
|
|
101
|
+
computedPayload?.value?.defaultDecoratorValue ?? '',
|
|
103
102
|
);
|
|
104
103
|
optin.value = decorate(
|
|
105
104
|
answers,
|
|
106
105
|
runtimeOptions,
|
|
107
106
|
computedPayload?.value?.value?.optin,
|
|
108
|
-
computedPayload?.value?.defaultDecoratorValue,
|
|
107
|
+
computedPayload?.value?.defaultDecoratorValue ?? '',
|
|
109
108
|
);
|
|
110
109
|
}
|
|
111
110
|
|
|
@@ -129,7 +129,7 @@ export const valuePayload = {
|
|
|
129
129
|
<Source language="json" code={JSON.stringify(valuePayload, null, ' ')} />
|
|
130
130
|
|
|
131
131
|
The `getAnswerValue` function allows to retrieve a value from one provided answer. To retrieve a value, the first
|
|
132
|
-
parameter is the answer Id, the second is an
|
|
132
|
+
parameter is the answer Id, the second is an optional path to extract a specific value.
|
|
133
133
|
|
|
134
134
|
A `defaultDecoratorValue` value can be added as a fallback when no previous answer is found. When no default value is provided and no answer
|
|
135
135
|
is found, the component value will be empty :
|
|
@@ -87,7 +87,6 @@ import { useForm } from 'vee-validate';
|
|
|
87
87
|
import * as yup from 'yup';
|
|
88
88
|
import cloneDeep from 'lodash.clonedeep';
|
|
89
89
|
import merge from 'lodash.merge';
|
|
90
|
-
import objectPath from 'object-path';
|
|
91
90
|
import MFlex from '../../mozaic/flex/MFlex.vue';
|
|
92
91
|
import MButton from '../../mozaic/buttons/MButton.vue';
|
|
93
92
|
import MLink from '../../mozaic/link/MLink.vue';
|
|
@@ -130,7 +129,7 @@ const computeDefaultValue = (
|
|
|
130
129
|
answers,
|
|
131
130
|
runtimeOptions,
|
|
132
131
|
computedPayload?.value?.value?.space,
|
|
133
|
-
computedPayload?.value?.defaultDecoratorValue,
|
|
132
|
+
computedPayload?.value?.defaultDecoratorValue ?? '',
|
|
134
133
|
);
|
|
135
134
|
}
|
|
136
135
|
return space;
|
package/src/types/pb/Scenario.ts
CHANGED