vue-intergrall-plugins 0.0.221 → 0.0.224
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 +61 -19
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +63 -21
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +27 -4
- package/src/lib-components/Chat/StandardMessages.vue +12 -4
- package/src/lib-components/Chat/TextFooter.vue +2 -0
- package/src/lib-components/Email/EmailFile.vue +1 -1
|
@@ -3550,6 +3550,31 @@ 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
|
+
console.log(arr);
|
|
3571
|
+
str = arr.join(","); // str = str && str.endsWith(".,") ? str.slice(0, -1) : str
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
console.log(str);
|
|
3575
|
+
if (this.fileSettings.multiple) return str ? str : "image/*,application/*";
|
|
3576
|
+
if (this.isDoc) return str ? str : "application/*";
|
|
3577
|
+
return str ? str : "image/*";
|
|
3553
3578
|
}
|
|
3554
3579
|
},
|
|
3555
3580
|
watch: {
|
|
@@ -3914,7 +3939,7 @@ var __vue_render__$n = function __vue_render__() {
|
|
|
3914
3939
|
attrs: {
|
|
3915
3940
|
"icon": ['fas', 'server']
|
|
3916
3941
|
}
|
|
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) + "
|
|
3942
|
+
})], 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
3943
|
attrs: {
|
|
3919
3944
|
"name": "fade"
|
|
3920
3945
|
}
|
|
@@ -3973,7 +3998,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
3973
3998
|
|
|
3974
3999
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
3975
4000
|
if (!inject) return;
|
|
3976
|
-
inject("data-v-
|
|
4001
|
+
inject("data-v-cc9b8f50_0", {
|
|
3977
4002
|
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
4003
|
map: undefined,
|
|
3979
4004
|
media: undefined
|
|
@@ -3985,7 +4010,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
3985
4010
|
var __vue_scope_id__$n = undefined;
|
|
3986
4011
|
/* module identifier */
|
|
3987
4012
|
|
|
3988
|
-
var __vue_module_identifier__$n = "data-v-
|
|
4013
|
+
var __vue_module_identifier__$n = "data-v-cc9b8f50";
|
|
3989
4014
|
/* functional template */
|
|
3990
4015
|
|
|
3991
4016
|
var __vue_is_functional_template__$n = false;
|
|
@@ -7972,6 +7997,10 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
7972
7997
|
var script$k = {
|
|
7973
7998
|
mixins: [standardMessages],
|
|
7974
7999
|
props: {
|
|
8000
|
+
hasStandardMessages: {
|
|
8001
|
+
type: Boolean,
|
|
8002
|
+
default: false
|
|
8003
|
+
},
|
|
7975
8004
|
dictionary: {
|
|
7976
8005
|
type: Object,
|
|
7977
8006
|
default: {},
|
|
@@ -8054,19 +8083,28 @@ var script$k = {
|
|
|
8054
8083
|
this.loadingReq = true;
|
|
8055
8084
|
this.getStandardMessages(cod, this.token_cliente).then(function (data) {
|
|
8056
8085
|
_this.loadingReq = false;
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8086
|
+
|
|
8087
|
+
if (data) {
|
|
8088
|
+
if (data.msg_ret) return _this.$toasted.global.defaultInfo({
|
|
8089
|
+
msg: data.msg_ret
|
|
8090
|
+
});
|
|
8091
|
+
if (data) return _this.showFormattedMessage(data, selectionIndex);
|
|
8092
|
+
}
|
|
8061
8093
|
|
|
8062
8094
|
_this.$toasted.global.defaultError();
|
|
8095
|
+
|
|
8096
|
+
_this.$emit("error-standard-message");
|
|
8063
8097
|
}).catch(function (e) {
|
|
8064
8098
|
_this.loadingReq = false;
|
|
8065
8099
|
|
|
8066
|
-
_this.$toasted.global.defaultError(
|
|
8100
|
+
_this.$toasted.global.defaultError({
|
|
8101
|
+
msg: e && e.message ? e.message : e
|
|
8102
|
+
});
|
|
8067
8103
|
|
|
8068
8104
|
_this.closeStandardMessages();
|
|
8069
8105
|
|
|
8106
|
+
_this.$emit("error-standard-message");
|
|
8107
|
+
|
|
8070
8108
|
console.error("Error in getStandardMessages: ", e);
|
|
8071
8109
|
});
|
|
8072
8110
|
} catch (e) {
|
|
@@ -8180,7 +8218,7 @@ var __vue_render__$k = function __vue_render__() {
|
|
|
8180
8218
|
|
|
8181
8219
|
var _c = _vm._self._c || _h;
|
|
8182
8220
|
|
|
8183
|
-
return _c('div', {
|
|
8221
|
+
return _vm.hasStandardMessages ? _c('div', {
|
|
8184
8222
|
staticClass: "text-footer-hsm-container"
|
|
8185
8223
|
}, [_vm._ssrNode("<div class=\"transition-selects\">", "</div>", [_c('transition', {
|
|
8186
8224
|
attrs: {
|
|
@@ -8255,7 +8293,7 @@ var __vue_render__$k = function __vue_render__() {
|
|
|
8255
8293
|
slot: "no-options"
|
|
8256
8294
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])])], 1) : _vm.key_2 && _vm.loadingReq ? _c('div', {
|
|
8257
8295
|
staticClass: "loader-select"
|
|
8258
|
-
}, [_c('VueLoader')], 1) : _vm._e()])], 2)]);
|
|
8296
|
+
}, [_c('VueLoader')], 1) : _vm._e()])], 2)]) : _vm._e();
|
|
8259
8297
|
};
|
|
8260
8298
|
|
|
8261
8299
|
var __vue_staticRenderFns__$k = [];
|
|
@@ -8263,7 +8301,7 @@ var __vue_staticRenderFns__$k = [];
|
|
|
8263
8301
|
|
|
8264
8302
|
var __vue_inject_styles__$k = function __vue_inject_styles__(inject) {
|
|
8265
8303
|
if (!inject) return;
|
|
8266
|
-
inject("data-v-
|
|
8304
|
+
inject("data-v-7cd1c21b_0", {
|
|
8267
8305
|
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}",
|
|
8268
8306
|
map: undefined,
|
|
8269
8307
|
media: undefined
|
|
@@ -8275,7 +8313,7 @@ var __vue_inject_styles__$k = function __vue_inject_styles__(inject) {
|
|
|
8275
8313
|
var __vue_scope_id__$k = undefined;
|
|
8276
8314
|
/* module identifier */
|
|
8277
8315
|
|
|
8278
|
-
var __vue_module_identifier__$k = "data-v-
|
|
8316
|
+
var __vue_module_identifier__$k = "data-v-7cd1c21b";
|
|
8279
8317
|
/* functional template */
|
|
8280
8318
|
|
|
8281
8319
|
var __vue_is_functional_template__$k = false;
|
|
@@ -8883,7 +8921,8 @@ var __vue_render__$j = function __vue_render__() {
|
|
|
8883
8921
|
"backgroundColor": _vm.cssStyle.backgroundColor,
|
|
8884
8922
|
"token_cliente": _vm.formattedMessageSettings.token_cliente ? _vm.formattedMessageSettings.token_cliente : '',
|
|
8885
8923
|
"message": _vm.message,
|
|
8886
|
-
"messageType": _vm.messageType
|
|
8924
|
+
"messageType": _vm.messageType,
|
|
8925
|
+
"hasStandardMessages": _vm.formattedMessageSettings.hasStandardMessages && _vm.showStandardMessages
|
|
8887
8926
|
},
|
|
8888
8927
|
on: {
|
|
8889
8928
|
"close-standard-messages": _vm.closeStandardMessages,
|
|
@@ -8891,7 +8930,10 @@ var __vue_render__$j = function __vue_render__() {
|
|
|
8891
8930
|
"close-blocker-standard-message": _vm.closeBlockerStandardMessage,
|
|
8892
8931
|
"set-message-type": _vm.setMessageType,
|
|
8893
8932
|
"set-standard-infos": _vm.setStandardInfos,
|
|
8894
|
-
"add-standard-message": _vm.addStandardMessage
|
|
8933
|
+
"add-standard-message": _vm.addStandardMessage,
|
|
8934
|
+
"error-standard-message": function errorStandardMessage($event) {
|
|
8935
|
+
return _vm.$emit('error-standard-message');
|
|
8936
|
+
}
|
|
8895
8937
|
}
|
|
8896
8938
|
}) : _vm._e()], 1)], 2) : _vm._e();
|
|
8897
8939
|
};
|
|
@@ -8901,7 +8943,7 @@ var __vue_staticRenderFns__$j = [];
|
|
|
8901
8943
|
|
|
8902
8944
|
var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
8903
8945
|
if (!inject) return;
|
|
8904
|
-
inject("data-v-
|
|
8946
|
+
inject("data-v-7d5d938e_0", {
|
|
8905
8947
|
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}",
|
|
8906
8948
|
map: undefined,
|
|
8907
8949
|
media: undefined
|
|
@@ -8913,7 +8955,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
|
8913
8955
|
var __vue_scope_id__$j = undefined;
|
|
8914
8956
|
/* module identifier */
|
|
8915
8957
|
|
|
8916
|
-
var __vue_module_identifier__$j = "data-v-
|
|
8958
|
+
var __vue_module_identifier__$j = "data-v-7d5d938e";
|
|
8917
8959
|
/* functional template */
|
|
8918
8960
|
|
|
8919
8961
|
var __vue_is_functional_template__$j = false;
|
|
@@ -12416,7 +12458,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
12416
12458
|
}
|
|
12417
12459
|
})]) : _c('span', {
|
|
12418
12460
|
staticClass: "anexo-icone",
|
|
12419
|
-
class: [_vm.
|
|
12461
|
+
class: [_vm.iconClass],
|
|
12420
12462
|
attrs: {
|
|
12421
12463
|
"title": "Visualizar " + _vm.filename,
|
|
12422
12464
|
"target": "_blank"
|
|
@@ -12449,8 +12491,8 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
12449
12491
|
|
|
12450
12492
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
12451
12493
|
if (!inject) return;
|
|
12452
|
-
inject("data-v-
|
|
12453
|
-
source: ".anexo-img[data-v-
|
|
12494
|
+
inject("data-v-4cac2afe_0", {
|
|
12495
|
+
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}",
|
|
12454
12496
|
map: undefined,
|
|
12455
12497
|
media: undefined
|
|
12456
12498
|
});
|
|
@@ -12458,10 +12500,10 @@ var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
|
12458
12500
|
/* scoped */
|
|
12459
12501
|
|
|
12460
12502
|
|
|
12461
|
-
var __vue_scope_id__$1 = "data-v-
|
|
12503
|
+
var __vue_scope_id__$1 = "data-v-4cac2afe";
|
|
12462
12504
|
/* module identifier */
|
|
12463
12505
|
|
|
12464
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
12506
|
+
var __vue_module_identifier__$1 = "data-v-4cac2afe";
|
|
12465
12507
|
/* functional template */
|
|
12466
12508
|
|
|
12467
12509
|
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,30 @@ 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
|
+
console.log(arr)
|
|
166
|
+
str = arr.join(",")
|
|
167
|
+
// str = str && str.endsWith(".,") ? str.slice(0, -1) : str
|
|
168
|
+
}
|
|
169
|
+
console.log(str)
|
|
170
|
+
if(this.fileSettings.multiple) return str ? str : "image/*,application/*"
|
|
171
|
+
if(this.isDoc) return str ? str : "application/*"
|
|
172
|
+
return str ? str : "image/*"
|
|
173
|
+
},
|
|
151
174
|
},
|
|
152
175
|
watch: {
|
|
153
176
|
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: {},
|
|
@@ -139,13 +143,17 @@ export default {
|
|
|
139
143
|
this.loadingReq = true
|
|
140
144
|
this.getStandardMessages(cod, this.token_cliente).then((data) => {
|
|
141
145
|
this.loadingReq = false
|
|
142
|
-
if(data
|
|
143
|
-
|
|
146
|
+
if(data) {
|
|
147
|
+
if(data.msg_ret) return this.$toasted.global.defaultInfo({ msg: data.msg_ret })
|
|
148
|
+
if(data) return this.showFormattedMessage(data, selectionIndex)
|
|
149
|
+
}
|
|
144
150
|
this.$toasted.global.defaultError()
|
|
151
|
+
this.$emit("error-standard-message")
|
|
145
152
|
}).catch(e => {
|
|
146
153
|
this.loadingReq = false
|
|
147
|
-
this.$toasted.global.defaultError()
|
|
154
|
+
this.$toasted.global.defaultError({ msg: e && e.message ? e.message : e })
|
|
148
155
|
this.closeStandardMessages()
|
|
156
|
+
this.$emit("error-standard-message")
|
|
149
157
|
console.error("Error in getStandardMessages: ", e)
|
|
150
158
|
})
|
|
151
159
|
}catch(e) {
|
|
@@ -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"
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
@set-message-type="setMessageType"
|
|
95
96
|
@set-standard-infos="setStandardInfos"
|
|
96
97
|
@add-standard-message="addStandardMessage"
|
|
98
|
+
@error-standard-message="$emit('error-standard-message')"
|
|
97
99
|
/>
|
|
98
100
|
</transition>
|
|
99
101
|
</div>
|