project-booster-vue 10.4.0 → 10.4.2
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/rework/cards/MPbCards.vue +1 -3
- package/src/components/rework/media/upload/MPbMediaUpload.vue +12 -1
- package/src/components/rework/question/space-input/MPbSpaceInput.vue +1 -2
- package/src/components/rework/question/upload-document/MPbUploadDocument.vue +5 -3
- package/src/components/trezor/PbTrezor.vue +10 -8
package/package.json
CHANGED
|
@@ -390,7 +390,6 @@ $responsive-breakpoint: 's';
|
|
|
390
390
|
&__image-container {
|
|
391
391
|
padding: $mu050 $mu050 0 $mu050;
|
|
392
392
|
position: relative;
|
|
393
|
-
width: calc(100% - $mu100);
|
|
394
393
|
|
|
395
394
|
& > div {
|
|
396
395
|
border-radius: 5px;
|
|
@@ -518,14 +517,13 @@ $responsive-breakpoint: 's';
|
|
|
518
517
|
color: #000;
|
|
519
518
|
height: 100%;
|
|
520
519
|
max-width: 100%;
|
|
521
|
-
@include set-font-face('semi-bold');
|
|
522
520
|
|
|
523
521
|
.a11y-high-contrast & {
|
|
524
522
|
color: $color-grey-800;
|
|
525
523
|
}
|
|
526
524
|
|
|
527
525
|
@include set-from-screen($responsive-breakpoint) {
|
|
528
|
-
@include set-font-scale('
|
|
526
|
+
@include set-font-scale('05', 'l');
|
|
529
527
|
}
|
|
530
528
|
}
|
|
531
529
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
>
|
|
17
17
|
<div class="mc-button__label">{{ payload.viewModel.uploadDocumentTitle }}</div>
|
|
18
18
|
<input
|
|
19
|
-
class="pb-media-upload__form-input"
|
|
19
|
+
class="pb-media-upload__form-input js-media-upload-document"
|
|
20
20
|
type="file"
|
|
21
21
|
ref="pbMediaUploadFormInput"
|
|
22
22
|
:title="payload.viewModel.title"
|
|
@@ -307,6 +307,10 @@ export default defineComponent({
|
|
|
307
307
|
type: Boolean,
|
|
308
308
|
default: false,
|
|
309
309
|
},
|
|
310
|
+
showDialogFile: {
|
|
311
|
+
type: Boolean,
|
|
312
|
+
default: false,
|
|
313
|
+
},
|
|
310
314
|
},
|
|
311
315
|
|
|
312
316
|
data() {
|
|
@@ -411,6 +415,13 @@ export default defineComponent({
|
|
|
411
415
|
fileName() {
|
|
412
416
|
this.$store.dispatch(this.storePrefix + 'nameChanged');
|
|
413
417
|
},
|
|
418
|
+
showDialogFile() {
|
|
419
|
+
const fileInput = document.querySelector<HTMLElement>('.js-media-upload-document');
|
|
420
|
+
|
|
421
|
+
if (fileInput) {
|
|
422
|
+
fileInput.click();
|
|
423
|
+
}
|
|
424
|
+
},
|
|
414
425
|
},
|
|
415
426
|
|
|
416
427
|
mounted() {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</m-flex>
|
|
33
33
|
<m-flex>
|
|
34
34
|
<m-text-input
|
|
35
|
-
:name="`text-input-${
|
|
35
|
+
:name="`text-input-${componentId}`"
|
|
36
36
|
type="number"
|
|
37
37
|
step="0.01"
|
|
38
38
|
ref="pbSpaceInputTextInput"
|
|
@@ -140,7 +140,6 @@ import { MModal } from '@mozaic-ds/vue-3';
|
|
|
140
140
|
import { SpaceInputPayload } from '@/components/question/space-input/SpaceInput';
|
|
141
141
|
import { ScenarioStepAnswer } from '@/types/pb/Scenario';
|
|
142
142
|
import { decorate } from '@/services/decorate';
|
|
143
|
-
import { id } from 'date-fns/locale';
|
|
144
143
|
import { sanitizeCerberusAttribut } from '@/services/sanitize';
|
|
145
144
|
import { EmitEventName } from '../../services/emit';
|
|
146
145
|
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
:store-module-name="storeModuleName"
|
|
108
108
|
@display-dialog="handleDisplayDialogEvent"
|
|
109
109
|
@media-uploaded="handleMediaUploaded"
|
|
110
|
+
:show-dialog-file="inputField"
|
|
110
111
|
ref="pbMediaUpload"
|
|
111
112
|
/>
|
|
112
113
|
</div>
|
|
@@ -197,6 +198,7 @@ const props = defineProps({
|
|
|
197
198
|
const store = useStore();
|
|
198
199
|
let storeModuleName = ref(props.payload.viewModel.mediaPayload.viewModel.type);
|
|
199
200
|
const $emit = defineEmits(['go-back', 'step-completed']);
|
|
201
|
+
const inputField = ref(false);
|
|
200
202
|
|
|
201
203
|
// Documents pagination
|
|
202
204
|
const lastItemIndex = ref(1);
|
|
@@ -210,7 +212,7 @@ const thumbnailUrl = computed(() => store.getters[storeModuleName.value + '/getT
|
|
|
210
212
|
onMounted(() => {
|
|
211
213
|
store.dispatch(storeModuleName.value + '/sendEvent', { eventName: 'start', file: null });
|
|
212
214
|
if (props.payload.viewModel.startOpened) {
|
|
213
|
-
|
|
215
|
+
inputField.value = !inputField.value;
|
|
214
216
|
}
|
|
215
217
|
});
|
|
216
218
|
|
|
@@ -236,7 +238,7 @@ const navigateTo = (viewModel: UploadDocumentViewModel) => {
|
|
|
236
238
|
|
|
237
239
|
const handleDisplayDialogEvent = (event: Event) => {
|
|
238
240
|
if (!event) {
|
|
239
|
-
|
|
241
|
+
inputField.value = !inputField.value;
|
|
240
242
|
}
|
|
241
243
|
};
|
|
242
244
|
|
|
@@ -275,7 +277,7 @@ const skipQuestion = (button: UploadDocumentMultiSelectAction) => {
|
|
|
275
277
|
};
|
|
276
278
|
|
|
277
279
|
const displayDocumentDialog = () => {
|
|
278
|
-
|
|
280
|
+
inputField.value = !inputField.value;
|
|
279
281
|
};
|
|
280
282
|
|
|
281
283
|
const handleMediaUploaded = () => {
|
|
@@ -137,31 +137,33 @@
|
|
|
137
137
|
<div class="ml-flexy">
|
|
138
138
|
<div class="pb-trezor__form__col ml-flexy__col--5of6 no-padding">
|
|
139
139
|
<m-flex v-if="isCollaborator" class="pb-trezor__form__row space" direction="column">
|
|
140
|
-
<label class="pb-trezor__form__label"
|
|
141
|
-
|
|
142
|
-
>
|
|
140
|
+
<label class="pb-trezor__form__label">
|
|
141
|
+
Partenaire à privilégier<span> - sous réserve de disponibilité</span>
|
|
142
|
+
</label>
|
|
143
143
|
<div class="pb-trezor__form__cards-container">
|
|
144
144
|
<m-pb-card
|
|
145
145
|
v-for="partner in partners"
|
|
146
146
|
:key="partner.id"
|
|
147
|
-
:title="partner.name"
|
|
147
|
+
:title="escape(partner.name)"
|
|
148
148
|
:selected="formData.values.selectedPreferredPartner == partner.id"
|
|
149
|
+
:data-cerberus="sanitizeCerberusAttribut('PB-TREZOR', 'PREFERRED_PARTNER')"
|
|
149
150
|
@card-click="handleSelectPartner(partner)"
|
|
150
151
|
/>
|
|
151
152
|
</div>
|
|
152
153
|
</m-flex>
|
|
153
154
|
|
|
154
155
|
<m-flex v-if="isCollaborator" class="pb-trezor__form__row space" direction="column">
|
|
155
|
-
<label class="pb-trezor__form__label"
|
|
156
|
-
|
|
157
|
-
>
|
|
156
|
+
<label class="pb-trezor__form__label">
|
|
157
|
+
Commentaire du collaborateur<span> - minimum 10 caractères</span>
|
|
158
|
+
</label>
|
|
158
159
|
<div class="pb-trezor__form__textarea-container">
|
|
159
160
|
<textarea
|
|
160
161
|
class="pb-trezor__textarea"
|
|
161
162
|
v-model="formData.values.comment"
|
|
162
163
|
placeholder="Votre texte ici.."
|
|
163
|
-
:required="false"
|
|
164
164
|
rows="5"
|
|
165
|
+
:required="false"
|
|
166
|
+
:data-cerberus="sanitizeCerberusAttribut('PB-TREZOR', 'COLLABORATOR_COMMENT')"
|
|
165
167
|
/>
|
|
166
168
|
<label class="mc-field__error-message">{{ formData.errors.comment }}</label>
|
|
167
169
|
</div>
|