vue-intergrall-plugins 0.0.222 → 0.0.225
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/dist/vue-intergrall-plugins.esm.js +42 -13
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +43 -15
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +24 -4
- package/src/lib-components/Chat/StandardMessages.vue +5 -1
- package/src/lib-components/Chat/TextFooter.vue +1 -0
- package/src/lib-components/Email/EmailFile.vue +1 -1
|
@@ -3550,6 +3550,29 @@ var script$n = {
|
|
|
3550
3550
|
if (this.fileSettings.multiple) return "isMultiple";
|
|
3551
3551
|
if (this.isDoc) return "isDoc";
|
|
3552
3552
|
return "isMsg";
|
|
3553
|
+
},
|
|
3554
|
+
acceptedExtensions: function acceptedExtensions() {
|
|
3555
|
+
var str = "";
|
|
3556
|
+
|
|
3557
|
+
if (this.fileSettings.docsExtensions && this.fileSettings.imagesExtensions) {
|
|
3558
|
+
str = "".concat(this.fileSettings.docsExtensions.split("|").join(',')).concat(this.fileSettings.imagesExtensions.split("|").join(','));
|
|
3559
|
+
} else if (this.fileSettings.docsExtensions) {
|
|
3560
|
+
str = this.fileSettings.docsExtensions.split("|").join(',');
|
|
3561
|
+
} else if (this.fileSettings.imagesExtensions) {
|
|
3562
|
+
str = this.fileSettings.imagesExtensions.split("|").join(',');
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
if (str) {
|
|
3566
|
+
var arr = str.split(",").map(function (ext) {
|
|
3567
|
+
ext = ext && ext.startsWith(".") ? ext : ".".concat(ext);
|
|
3568
|
+
return ext;
|
|
3569
|
+
});
|
|
3570
|
+
str = arr.join(",");
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
if (this.fileSettings.multiple) return str ? str : "image/*,application/*";
|
|
3574
|
+
if (this.isDoc) return str ? str : "application/*";
|
|
3575
|
+
return str ? str : "image/*";
|
|
3553
3576
|
}
|
|
3554
3577
|
},
|
|
3555
3578
|
watch: {
|
|
@@ -3914,7 +3937,7 @@ var __vue_render__$n = function __vue_render__() {
|
|
|
3914
3937
|
attrs: {
|
|
3915
3938
|
"icon": ['fas', 'server']
|
|
3916
3939
|
}
|
|
3917
|
-
})], 1) : _vm._e()], 2) : _vm._e()]), _vm._ssrNode(" <div class=\"files-pointers d-none\">" + (_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "both-" + _vm.textId) + "
|
|
3940
|
+
})], 1) : _vm._e()], 2) : _vm._e()]), _vm._ssrNode(" <div class=\"files-pointers d-none\">" + (_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "both-" + _vm.textId) + _vm._ssrAttr("accept", _vm.acceptedExtensions) + " multiple=\"multiple\">" : "<!---->") + " " + (!_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "img-" + _vm.textId) + _vm._ssrAttr("accept", _vm.acceptedExtensions) + ">" : "<!---->") + " " + (!_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "doc-" + _vm.textId) + _vm._ssrAttr("accept", _vm.acceptedExtensions) + ">" : "<!---->") + "</div> "), _c('transition', {
|
|
3918
3941
|
attrs: {
|
|
3919
3942
|
"name": "fade"
|
|
3920
3943
|
}
|
|
@@ -3973,7 +3996,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
3973
3996
|
|
|
3974
3997
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
3975
3998
|
if (!inject) return;
|
|
3976
|
-
inject("data-v-
|
|
3999
|
+
inject("data-v-0d26cc3c_0", {
|
|
3977
4000
|
source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:unset;transform:translate(17.5px,-15px);background-color:#888;z-index:1;font-size:.5rem;width:15px;height:15px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .3s;color:#fff;font-weight:900}.files-counter:hover{opacity:1}",
|
|
3978
4001
|
map: undefined,
|
|
3979
4002
|
media: undefined
|
|
@@ -3985,7 +4008,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
3985
4008
|
var __vue_scope_id__$n = undefined;
|
|
3986
4009
|
/* module identifier */
|
|
3987
4010
|
|
|
3988
|
-
var __vue_module_identifier__$n = "data-v-
|
|
4011
|
+
var __vue_module_identifier__$n = "data-v-0d26cc3c";
|
|
3989
4012
|
/* functional template */
|
|
3990
4013
|
|
|
3991
4014
|
var __vue_is_functional_template__$n = false;
|
|
@@ -7972,6 +7995,10 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
7972
7995
|
var script$k = {
|
|
7973
7996
|
mixins: [standardMessages],
|
|
7974
7997
|
props: {
|
|
7998
|
+
hasStandardMessages: {
|
|
7999
|
+
type: Boolean,
|
|
8000
|
+
default: false
|
|
8001
|
+
},
|
|
7975
8002
|
dictionary: {
|
|
7976
8003
|
type: Object,
|
|
7977
8004
|
default: {},
|
|
@@ -8189,7 +8216,7 @@ var __vue_render__$k = function __vue_render__() {
|
|
|
8189
8216
|
|
|
8190
8217
|
var _c = _vm._self._c || _h;
|
|
8191
8218
|
|
|
8192
|
-
return _c('div', {
|
|
8219
|
+
return _vm.hasStandardMessages ? _c('div', {
|
|
8193
8220
|
staticClass: "text-footer-hsm-container"
|
|
8194
8221
|
}, [_vm._ssrNode("<div class=\"transition-selects\">", "</div>", [_c('transition', {
|
|
8195
8222
|
attrs: {
|
|
@@ -8264,7 +8291,7 @@ var __vue_render__$k = function __vue_render__() {
|
|
|
8264
8291
|
slot: "no-options"
|
|
8265
8292
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])])], 1) : _vm.key_2 && _vm.loadingReq ? _c('div', {
|
|
8266
8293
|
staticClass: "loader-select"
|
|
8267
|
-
}, [_c('VueLoader')], 1) : _vm._e()])], 2)]);
|
|
8294
|
+
}, [_c('VueLoader')], 1) : _vm._e()])], 2)]) : _vm._e();
|
|
8268
8295
|
};
|
|
8269
8296
|
|
|
8270
8297
|
var __vue_staticRenderFns__$k = [];
|
|
@@ -8272,7 +8299,7 @@ var __vue_staticRenderFns__$k = [];
|
|
|
8272
8299
|
|
|
8273
8300
|
var __vue_inject_styles__$k = function __vue_inject_styles__(inject) {
|
|
8274
8301
|
if (!inject) return;
|
|
8275
|
-
inject("data-v-
|
|
8302
|
+
inject("data-v-7cd1c21b_0", {
|
|
8276
8303
|
source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}.loading-message{background-color:#555!important}",
|
|
8277
8304
|
map: undefined,
|
|
8278
8305
|
media: undefined
|
|
@@ -8284,7 +8311,7 @@ var __vue_inject_styles__$k = function __vue_inject_styles__(inject) {
|
|
|
8284
8311
|
var __vue_scope_id__$k = undefined;
|
|
8285
8312
|
/* module identifier */
|
|
8286
8313
|
|
|
8287
|
-
var __vue_module_identifier__$k = "data-v-
|
|
8314
|
+
var __vue_module_identifier__$k = "data-v-7cd1c21b";
|
|
8288
8315
|
/* functional template */
|
|
8289
8316
|
|
|
8290
8317
|
var __vue_is_functional_template__$k = false;
|
|
@@ -8892,7 +8919,8 @@ var __vue_render__$j = function __vue_render__() {
|
|
|
8892
8919
|
"backgroundColor": _vm.cssStyle.backgroundColor,
|
|
8893
8920
|
"token_cliente": _vm.formattedMessageSettings.token_cliente ? _vm.formattedMessageSettings.token_cliente : '',
|
|
8894
8921
|
"message": _vm.message,
|
|
8895
|
-
"messageType": _vm.messageType
|
|
8922
|
+
"messageType": _vm.messageType,
|
|
8923
|
+
"hasStandardMessages": _vm.formattedMessageSettings.hasStandardMessages && _vm.showStandardMessages
|
|
8896
8924
|
},
|
|
8897
8925
|
on: {
|
|
8898
8926
|
"close-standard-messages": _vm.closeStandardMessages,
|
|
@@ -8913,7 +8941,7 @@ var __vue_staticRenderFns__$j = [];
|
|
|
8913
8941
|
|
|
8914
8942
|
var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
8915
8943
|
if (!inject) return;
|
|
8916
|
-
inject("data-v-
|
|
8944
|
+
inject("data-v-7d5d938e_0", {
|
|
8917
8945
|
source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349;margin-left:5px}.text-footer-container .text-footer-files-container .files-btn.both{font-size:.95rem;background-color:#5555ec;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(1){transform:translateX(5px)}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(2){transform:translateX(-5px)}.text-footer-container .text-footer-preview-container{width:100%;cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
|
|
8918
8946
|
map: undefined,
|
|
8919
8947
|
media: undefined
|
|
@@ -8925,7 +8953,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
|
8925
8953
|
var __vue_scope_id__$j = undefined;
|
|
8926
8954
|
/* module identifier */
|
|
8927
8955
|
|
|
8928
|
-
var __vue_module_identifier__$j = "data-v-
|
|
8956
|
+
var __vue_module_identifier__$j = "data-v-7d5d938e";
|
|
8929
8957
|
/* functional template */
|
|
8930
8958
|
|
|
8931
8959
|
var __vue_is_functional_template__$j = false;
|
|
@@ -12428,7 +12456,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
12428
12456
|
}
|
|
12429
12457
|
})]) : _c('span', {
|
|
12430
12458
|
staticClass: "anexo-icone",
|
|
12431
|
-
class: [_vm.
|
|
12459
|
+
class: [_vm.iconClass],
|
|
12432
12460
|
attrs: {
|
|
12433
12461
|
"title": "Visualizar " + _vm.filename,
|
|
12434
12462
|
"target": "_blank"
|
|
@@ -12461,8 +12489,8 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
12461
12489
|
|
|
12462
12490
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
12463
12491
|
if (!inject) return;
|
|
12464
|
-
inject("data-v-
|
|
12465
|
-
source: ".anexo-img[data-v-
|
|
12492
|
+
inject("data-v-4cac2afe_0", {
|
|
12493
|
+
source: ".anexo-img[data-v-4cac2afe]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.anexo-img[data-v-4cac2afe]:hover{opacity:1}.anexo-img img[data-v-4cac2afe]{width:95%;max-height:50px}.box-shadow[data-v-4cac2afe]{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.anexo-icone[data-v-4cac2afe]:hover{opacity:1}.anexo-icone[data-v-4cac2afe]:visited{color:inherit}.anexo-icone svg[data-v-4cac2afe]{font-size:30px;z-index:1}.anexo-icone.pdf[data-v-4cac2afe]{position:relative}.anexo-icone.pdf svg[data-v-4cac2afe]{color:#e74c3c}.anexo-icone.pdf[data-v-4cac2afe]::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.anexo-icone.doc[data-v-4cac2afe]{color:#15517f}.anexo-icone.doc[data-v-4cac2afe]::after{content:\"\";position:absolute;width:20px;height:20px;background-color:#fff}.anexo-icone[data-v-4cac2afe]{opacity:.9;transition:opacity .2s;color:#222;cursor:pointer;display:flex;justify-content:center;align-items:center}.align-items-end[data-v-4cac2afe]{align-items:flex-end}.flex-wrap[data-v-4cac2afe]{flex-wrap:wrap}.d-flex[data-v-4cac2afe]{display:flex}.mb-5[data-v-4cac2afe]{margin-bottom:5px}.mx-5[data-v-4cac2afe]{margin-left:5px;margin-right:5px}",
|
|
12466
12494
|
map: undefined,
|
|
12467
12495
|
media: undefined
|
|
12468
12496
|
});
|
|
@@ -12470,10 +12498,10 @@ var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
|
12470
12498
|
/* scoped */
|
|
12471
12499
|
|
|
12472
12500
|
|
|
12473
|
-
var __vue_scope_id__$1 = "data-v-
|
|
12501
|
+
var __vue_scope_id__$1 = "data-v-4cac2afe";
|
|
12474
12502
|
/* module identifier */
|
|
12475
12503
|
|
|
12476
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
12504
|
+
var __vue_module_identifier__$1 = "data-v-4cac2afe";
|
|
12477
12505
|
/* functional template */
|
|
12478
12506
|
|
|
12479
12507
|
var __vue_is_functional_template__$1 = false;
|
package/package.json
CHANGED
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
</transition>
|
|
26
26
|
<div class="files-pointers d-none">
|
|
27
|
-
<input v-if="fileSettings.multiple" type="file" :id="`both-${textId}`" accept="
|
|
28
|
-
<input v-if="!fileSettings.multiple" type="file" :id="`img-${textId}`" accept="
|
|
29
|
-
<input v-if="!fileSettings.multiple" type="file" :id="`doc-${textId}`" accept="
|
|
27
|
+
<input v-if="fileSettings.multiple" type="file" :id="`both-${textId}`" :accept="acceptedExtensions" multiple @change="fileUpload($event, 'both')" />
|
|
28
|
+
<input v-if="!fileSettings.multiple" type="file" :id="`img-${textId}`" :accept="acceptedExtensions" @change="fileUpload($event, 'img')" />
|
|
29
|
+
<input v-if="!fileSettings.multiple" type="file" :id="`doc-${textId}`" :accept="acceptedExtensions" @change="fileUpload($event, 'doc')" />
|
|
30
30
|
</div>
|
|
31
31
|
<transition name="fade">
|
|
32
32
|
<div class="text-footer-preview-container" @click.stop v-show="showFilePreview" :class="[previewContainerClass]" v-on-clickaway="away">
|
|
@@ -147,7 +147,27 @@ export default {
|
|
|
147
147
|
if(this.fileSettings.multiple) return "isMultiple"
|
|
148
148
|
if(this.isDoc) return "isDoc"
|
|
149
149
|
return "isMsg"
|
|
150
|
-
}
|
|
150
|
+
},
|
|
151
|
+
acceptedExtensions() {
|
|
152
|
+
let str = ""
|
|
153
|
+
if(this.fileSettings.docsExtensions && this.fileSettings.imagesExtensions) {
|
|
154
|
+
str = `${this.fileSettings.docsExtensions.split("|").join(',')}${this.fileSettings.imagesExtensions.split("|").join(',')}`
|
|
155
|
+
}else if(this.fileSettings.docsExtensions) {
|
|
156
|
+
str = this.fileSettings.docsExtensions.split("|").join(',')
|
|
157
|
+
}else if(this.fileSettings.imagesExtensions) {
|
|
158
|
+
str = this.fileSettings.imagesExtensions.split("|").join(',')
|
|
159
|
+
}
|
|
160
|
+
if(str) {
|
|
161
|
+
const arr = str.split(",").map(ext => {
|
|
162
|
+
ext = ext && ext.startsWith(".") ? ext : `.${ext}`
|
|
163
|
+
return ext
|
|
164
|
+
})
|
|
165
|
+
str = arr.join(",")
|
|
166
|
+
}
|
|
167
|
+
if(this.fileSettings.multiple) return str ? str : "image/*,application/*"
|
|
168
|
+
if(this.isDoc) return str ? str : "application/*"
|
|
169
|
+
return str ? str : "image/*"
|
|
170
|
+
},
|
|
151
171
|
},
|
|
152
172
|
watch: {
|
|
153
173
|
externalFiles() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="text-footer-hsm-container">
|
|
2
|
+
<div class="text-footer-hsm-container" v-if="hasStandardMessages">
|
|
3
3
|
<div class="transition-selects">
|
|
4
4
|
<transition name="fade" mode="out-in">
|
|
5
5
|
<div v-if="formatted_messages_2.length && key_1">
|
|
@@ -66,6 +66,10 @@ import { standardMessages } from "../../services/standardMessages"
|
|
|
66
66
|
export default {
|
|
67
67
|
mixins: [standardMessages],
|
|
68
68
|
props: {
|
|
69
|
+
hasStandardMessages: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false
|
|
72
|
+
},
|
|
69
73
|
dictionary: {
|
|
70
74
|
type: Object,
|
|
71
75
|
default: {},
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
:token_cliente="formattedMessageSettings.token_cliente ? formattedMessageSettings.token_cliente : ''"
|
|
88
88
|
:message="message"
|
|
89
89
|
:messageType="messageType"
|
|
90
|
+
:hasStandardMessages="formattedMessageSettings.hasStandardMessages && showStandardMessages"
|
|
90
91
|
|
|
91
92
|
@close-standard-messages="closeStandardMessages"
|
|
92
93
|
@open-blocker-standard-message="openBlockerStandardMessage"
|