project-booster-vue 8.128.2 → 8.128.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 +1 -1
- package/src/components/cards/PbCard.vue +8 -2
- package/src/components/question/PbQuestion.vue +1 -0
- package/src/components/question/upload-document/PbUploadDocument.vue +2 -2
- package/src/components/question/upload-document/pictures-payload.json +2 -0
- package/src/components/scenario/scenarii/appointment-qualification-kitchen.json +2 -0
- package/src/services/api/appointmentQualificationsApi.js +5 -1
- package/src/services/api/configApi.js +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
class="pb-card"
|
|
4
4
|
:class="`${!buttonLabel && !linkLabel && !flattened ? 'pb-card--hoverable pb-card--clickable' : ''} ${
|
|
5
5
|
disabled ? 'pb-card--disabled' : ''
|
|
6
|
-
}
|
|
6
|
+
}${flattened ? 'pb-card--no-pointer-events' : ''} ${
|
|
7
|
+
cardMinRatio && cardMinRatio !== 'auto' ? 'm-ratio-container--' + cardMinRatio : ''
|
|
8
|
+
}`"
|
|
7
9
|
:align-items="alignHorizontal"
|
|
8
10
|
:role="!buttonLabel ? 'button' : 'article'"
|
|
9
11
|
:style="`min-height: ${cardMinHeight}`"
|
|
@@ -318,7 +320,7 @@ export default {
|
|
|
318
320
|
* Defines if the card is flatenned (borders instead of shadows, no interaction available)
|
|
319
321
|
*/
|
|
320
322
|
flattened: {
|
|
321
|
-
type: Boolean,
|
|
323
|
+
type: [Boolean, String],
|
|
322
324
|
default: false,
|
|
323
325
|
},
|
|
324
326
|
},
|
|
@@ -390,6 +392,10 @@ $responsive-breakpoint: 's';
|
|
|
390
392
|
width: 100%;
|
|
391
393
|
}
|
|
392
394
|
|
|
395
|
+
&--no-pointer-events {
|
|
396
|
+
pointer-events: none;
|
|
397
|
+
}
|
|
398
|
+
|
|
393
399
|
&__image {
|
|
394
400
|
&--disabled {
|
|
395
401
|
filter: grayscale(100%);
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
:selectable="!!payload.multiSelect"
|
|
69
69
|
:selected="selectedAnswers[answer.code]"
|
|
70
70
|
:disabled="isAnswerDisabled(answer)"
|
|
71
|
+
:flattened="decorate(answer.viewModel.flattened, payload.defaultDecoratorValue)"
|
|
71
72
|
@card-click="answer.viewModel.href ? '' : selectAnswer(payload.code, answer)"
|
|
72
73
|
@button-click="handleAnswerButtonClick"
|
|
73
74
|
@link-click="handleLinkClick(answer)"
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
<pb-card
|
|
43
43
|
class="pb-configurations-import__answer-card"
|
|
44
44
|
:image="ADD_ICON"
|
|
45
|
-
title="Ajouter un plan"
|
|
46
|
-
text="Une photo ou image du plan"
|
|
45
|
+
:title="payload.viewModel.addTitle || 'Ajouter un plan'"
|
|
46
|
+
:text="payload.viewModel.addText || 'Une photo ou image du plan'"
|
|
47
47
|
@card-click="displayDocumentDialog"
|
|
48
48
|
/>
|
|
49
49
|
</div>
|
|
@@ -2,9 +2,13 @@ import axios from 'axios';
|
|
|
2
2
|
import he from 'he';
|
|
3
3
|
|
|
4
4
|
export const clientApi = axios.create({
|
|
5
|
-
baseURL:
|
|
5
|
+
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateAppointmentQualificationClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|