project-booster-vue 10.4.0 → 10.4.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
|
@@ -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() {
|
|
@@ -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 = () => {
|