vue-intergrall-plugins 0.0.273 → 0.0.275
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.
|
@@ -10641,12 +10641,12 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
|
|
|
10641
10641
|
setIcon: function setIcon() {
|
|
10642
10642
|
this.icon = typeof this.fileType == 'string' && this.fileType.indexOf('pdf') > -1 ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10643
10643
|
},
|
|
10644
|
-
downloadAllFilesHandler: function downloadAllFilesHandler() {
|
|
10644
|
+
downloadAllFilesHandler: function downloadAllFilesHandler(referenceSelector) {
|
|
10645
10645
|
var _this = this;
|
|
10646
10646
|
|
|
10647
10647
|
try {
|
|
10648
|
-
if (!
|
|
10649
|
-
var container = document.querySelector("".concat(
|
|
10648
|
+
if (!referenceSelector) return this.$emit("download-all");
|
|
10649
|
+
var container = document.querySelector("".concat(referenceSelector));
|
|
10650
10650
|
if (!container) return this.$emit("download-all");
|
|
10651
10651
|
var currentFilesToDownload = container.querySelectorAll("a[download]");
|
|
10652
10652
|
if (!currentFilesToDownload.length) return this.$emit("download-all", {
|
|
@@ -11833,6 +11833,10 @@ var script$8 = {
|
|
|
11833
11833
|
origemExterna: {
|
|
11834
11834
|
type: Boolean,
|
|
11835
11835
|
required: false
|
|
11836
|
+
},
|
|
11837
|
+
referenceSelector: {
|
|
11838
|
+
type: String,
|
|
11839
|
+
required: true
|
|
11836
11840
|
}
|
|
11837
11841
|
},
|
|
11838
11842
|
data: function data() {
|
|
@@ -11893,17 +11897,17 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
11893
11897
|
|
|
11894
11898
|
return _c('div', {
|
|
11895
11899
|
staticClass: "mensagem-div-anexo"
|
|
11896
|
-
}, [_vm._ssrNode("<div class=\"anexo-mensagem\" data-v-
|
|
11900
|
+
}, [_vm._ssrNode("<div class=\"anexo-mensagem\" data-v-07891d07>", "</div>", [_vm.imageURL ? _vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.imageURL) + _vm._ssrAttr("alt", _vm.dictionary.alt_msg_img) + " data-v-07891d07>", "</img>") : _vm.audio ? _vm._ssrNode("<audio controls=\"controls\" data-v-07891d07><source" + _vm._ssrAttr("src", _vm.docURL) + _vm._ssrAttr("type", _vm.fileType) + " data-v-07891d07>\n Sem suporte para o elemento audio\n </audio>") : _vm.video ? _vm._ssrNode("<video controls=\"controls\" data-v-07891d07><source" + _vm._ssrAttr("src", _vm.docURL) + _vm._ssrAttr("type", _vm.fileType) + " data-v-07891d07>\n Sem suporte para o elemento video\n </video>") : _vm.docURL ? _vm._ssrNode("<span class=\"default-doc\" data-v-07891d07>", "</span>", [_c('fa-icon', {
|
|
11897
11901
|
class: [_vm.iconClass],
|
|
11898
11902
|
attrs: {
|
|
11899
11903
|
"icon": _vm.icon
|
|
11900
11904
|
}
|
|
11901
|
-
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.filename) + " data-v-
|
|
11905
|
+
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.filename) + " data-v-07891d07>" + _vm._ssrEscape(_vm._s(_vm.filename)) + "</p>")], 2) : _vm._ssrNode("<span class=\"default-doc\" data-v-07891d07>", "</span>", [_c('fa-icon', {
|
|
11902
11906
|
class: [_vm.iconClass ? _vm.iconClass : ''],
|
|
11903
11907
|
attrs: {
|
|
11904
11908
|
"icon": ['fas', 'file-alt']
|
|
11905
11909
|
}
|
|
11906
|
-
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.filename) + " data-v-
|
|
11910
|
+
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.filename) + " data-v-07891d07>" + _vm._ssrEscape(_vm._s(_vm.filename)) + "</p>")], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"file-actions\" data-v-07891d07>", "</div>", [_vm.imageURL ? _vm._ssrNode("<span class=\"file-action-button\" data-v-07891d07>", "</span>", [_c('fa-icon', {
|
|
11907
11911
|
directives: [{
|
|
11908
11912
|
name: "tippy",
|
|
11909
11913
|
rawName: "v-tippy"
|
|
@@ -11957,8 +11961,15 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
11957
11961
|
key: "trigger",
|
|
11958
11962
|
fn: function fn() {
|
|
11959
11963
|
return [_c('span', {
|
|
11964
|
+
directives: [{
|
|
11965
|
+
name: "tippy",
|
|
11966
|
+
rawName: "v-tippy"
|
|
11967
|
+
}],
|
|
11960
11968
|
ref: "download-multiple-trigger",
|
|
11961
|
-
staticClass: "file-action-button"
|
|
11969
|
+
staticClass: "file-action-button",
|
|
11970
|
+
attrs: {
|
|
11971
|
+
"content": "Fazer o download de todos anexos da conversa"
|
|
11972
|
+
}
|
|
11962
11973
|
}, [_c('fa-icon', {
|
|
11963
11974
|
attrs: {
|
|
11964
11975
|
"icon": ['fas', 'download']
|
|
@@ -11974,7 +11985,7 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
11974
11985
|
})], 1)];
|
|
11975
11986
|
},
|
|
11976
11987
|
proxy: true
|
|
11977
|
-
}], null, false,
|
|
11988
|
+
}], null, false, 3778778370)
|
|
11978
11989
|
}, [_vm._v(" "), _c('div', {
|
|
11979
11990
|
staticClass: "tippy-confirmation"
|
|
11980
11991
|
}, [_c('p', [_vm._v(" Deseja fazer download de todos anexos da tela? ")]), _vm._v(" "), _c('button', {
|
|
@@ -11985,7 +11996,9 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
11985
11996
|
}, [_vm._v(" Cancelar ")]), _vm._v(" "), _c('button', {
|
|
11986
11997
|
staticClass: "confirm box-shadow",
|
|
11987
11998
|
on: {
|
|
11988
|
-
"click":
|
|
11999
|
+
"click": function click($event) {
|
|
12000
|
+
return _vm.downloadAllFilesHandler(_vm.referenceSelector);
|
|
12001
|
+
}
|
|
11989
12002
|
}
|
|
11990
12003
|
}, [_vm._v(" Confirmar ")])])])] : _vm._e()], 2)], 2)]);
|
|
11991
12004
|
};
|
|
@@ -11995,12 +12008,12 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
11995
12008
|
|
|
11996
12009
|
var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
11997
12010
|
if (!inject) return;
|
|
11998
|
-
inject("data-v-
|
|
12011
|
+
inject("data-v-07891d07_0", {
|
|
11999
12012
|
source: ".tippy-tooltip.light-theme .tippy-backdrop{background-color:#fff}.tippy-tooltip.light-theme{background-color:#fff;border:1px solid #ccc;color:#333;-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)}.tippy-confirmation p{margin-bottom:3px}.tippy-confirmation button{border:unset;background-color:#f1f1f1;border-radius:3px;padding:5px 8px;cursor:pointer;font-size:.75rem}.tippy-confirmation button.cancel{border-bottom:2px solid red;margin-right:15px}.tippy-confirmation button.confirm{border-bottom:2px solid green}",
|
|
12000
12013
|
map: undefined,
|
|
12001
12014
|
media: undefined
|
|
12002
|
-
}), inject("data-v-
|
|
12003
|
-
source: ".mensagem__principal .default-doc[data-v-
|
|
12015
|
+
}), inject("data-v-07891d07_1", {
|
|
12016
|
+
source: ".mensagem__principal .default-doc[data-v-07891d07]{background-color:var(--files-bg)}.mensagem__principal .default-doc[data-v-07891d07]:hover{background-color:var(--files-bg-hover)}.mensagem__outros .default-doc[data-v-07891d07]{background-color:rgba(100,100,100,.1)}.mensagem__outros .default-doc[data-v-07891d07]:hover{background-color:rgba(100,100,100,.3)}.default-doc:hover p[data-v-07891d07]{text-decoration:underline}.default-doc[data-v-07891d07]{display:flex;align-items:center;padding:10px;border-radius:5px;width:100%;max-width:100%;cursor:pointer;transition:background-color 150ms ease-in-out}.default-doc svg[data-v-07891d07]{font-size:1.2rem;margin-right:5px}.default-doc p[data-v-07891d07]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-actions[data-v-07891d07]{display:flex;justify-content:flex-end;width:100%;padding:5px}.file-actions a[data-v-07891d07]{margin-right:0}.mensagem__principal .file-action-button[data-v-07891d07]{background-color:var(--files-bg)}.mensagem__outros .file-action-button[data-v-07891d07]{background-color:rgba(100,100,100,.1)}.mensagem__principal .file-action-button[data-v-07891d07]:hover{background-color:var(--files-bg-hover)}.mensagem__outros .file-action-button[data-v-07891d07]:hover{background-color:rgba(100,100,100,.3)}.file-action-button[data-v-07891d07]{display:flex;justify-content:center;align-items:center;margin-left:12px;cursor:pointer;padding:5px;border-radius:5px;transition:background-color 150ms ease-in-out}.file-action-button a[data-v-07891d07]{margin:0}.fade-enter-active[data-v-07891d07],.fade-leave-active[data-v-07891d07]{transition:opacity .5s}.fade-enter[data-v-07891d07],.fade-leave-to[data-v-07891d07]{opacity:0}.mensagem-div-anexo[data-v-07891d07]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-07891d07]{width:100%;margin-top:5px;overflow:hidden;display:flex;max-height:300px}.anexo-container .arquivo-erro[data-v-07891d07],.anexo-container a[data-v-07891d07]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container p[data-v-07891d07]{text-overflow:ellipsis;overflow:hidden}.anexo-container .arquivo-erro[data-v-07891d07],.anexo-container p[data-v-07891d07]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-07891d07]{font-size:2rem}.anexo-mensagem audio[data-v-07891d07]{outline:0;width:100%;margin-bottom:5px}.anexo-mensagem video[data-v-07891d07]{flex:1;width:100%;max-width:350px;cursor:pointer;margin-bottom:5px}.anexos-links-container[data-v-07891d07]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-07891d07]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.anexos-links-container svg[data-v-07891d07]{cursor:pointer}.mensagem-div-anexo img[data-v-07891d07]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-07891d07]{width:100%;height:100%}.anexo-mensagem[data-v-07891d07]{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%}.alert-danger[data-v-07891d07]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-07891d07]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-07891d07]{font-size:1.025em;margin-right:2px}.pdf[data-v-07891d07]{color:#e74c3c}.doc[data-v-07891d07]{color:#006bc9}",
|
|
12004
12017
|
map: undefined,
|
|
12005
12018
|
media: undefined
|
|
12006
12019
|
});
|
|
@@ -12008,10 +12021,10 @@ var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
|
12008
12021
|
/* scoped */
|
|
12009
12022
|
|
|
12010
12023
|
|
|
12011
|
-
var __vue_scope_id__$8 = "data-v-
|
|
12024
|
+
var __vue_scope_id__$8 = "data-v-07891d07";
|
|
12012
12025
|
/* module identifier */
|
|
12013
12026
|
|
|
12014
|
-
var __vue_module_identifier__$8 = "data-v-
|
|
12027
|
+
var __vue_module_identifier__$8 = "data-v-07891d07";
|
|
12015
12028
|
/* functional template */
|
|
12016
12029
|
|
|
12017
12030
|
var __vue_is_functional_template__$8 = false;
|
|
@@ -12546,6 +12559,7 @@ var script$5 = {
|
|
|
12546
12559
|
}
|
|
12547
12560
|
},
|
|
12548
12561
|
formatMsg: function formatMsg(msg) {
|
|
12562
|
+
if (this.status == 'O') return this.dictionary.msg_excluida ? this.dictionary.msg_excluida : 'MENSAGEM DELETADA';
|
|
12549
12563
|
var regex = /(\n| )/g;
|
|
12550
12564
|
if (regex.test(msg)) msg = msg.replace(regex, "<br>");
|
|
12551
12565
|
return msg;
|
|
@@ -12601,6 +12615,7 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
12601
12615
|
staticClass: "mensagem-anexo"
|
|
12602
12616
|
}, [_c('AnexoMensagem', {
|
|
12603
12617
|
attrs: {
|
|
12618
|
+
"referenceSelector": _vm.referenceSelector,
|
|
12604
12619
|
"dictionary": _vm.dictionary,
|
|
12605
12620
|
"anexo": anexo,
|
|
12606
12621
|
"origemExterna": _vm.origemExterna,
|
|
@@ -12654,7 +12669,7 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
12654
12669
|
"icon": ['fas', 'map-marker-alt']
|
|
12655
12670
|
}
|
|
12656
12671
|
})], 1)], 2);
|
|
12657
|
-
}), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.link && !_vm.mapa ? _c('LinkPreview', {
|
|
12672
|
+
}), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.link && !_vm.mapa && _vm.status != 'O' ? _c('LinkPreview', {
|
|
12658
12673
|
attrs: {
|
|
12659
12674
|
"message": _vm.message
|
|
12660
12675
|
}
|
|
@@ -12842,6 +12857,20 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
12842
12857
|
attrs: {
|
|
12843
12858
|
"icon": ['fas', 'hourglass']
|
|
12844
12859
|
}
|
|
12860
|
+
})], 1) : _vm.status == 'O' ? _c('span', {
|
|
12861
|
+
directives: [{
|
|
12862
|
+
name: "tippy",
|
|
12863
|
+
rawName: "v-tippy"
|
|
12864
|
+
}],
|
|
12865
|
+
key: "deleted",
|
|
12866
|
+
staticClass: "check vermelho",
|
|
12867
|
+
attrs: {
|
|
12868
|
+
"content": _vm.contentTooltip
|
|
12869
|
+
}
|
|
12870
|
+
}, [_c('fa-icon', {
|
|
12871
|
+
attrs: {
|
|
12872
|
+
"icon": ['fas', 'times']
|
|
12873
|
+
}
|
|
12845
12874
|
})], 1) : _vm._e()]), _vm._v(" "), _c('span', {
|
|
12846
12875
|
staticClass: "autor-mensagem",
|
|
12847
12876
|
domProps: {
|
|
@@ -12855,7 +12884,7 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
12855
12884
|
|
|
12856
12885
|
var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
12857
12886
|
if (!inject) return;
|
|
12858
|
-
inject("data-v-
|
|
12887
|
+
inject("data-v-1c5fd2d8_0", {
|
|
12859
12888
|
source: ":root{--message-color:#373737;--text-color:#FFF;--files-bg:rgba(255, 255, 255, 0.1);--files-bg-hover:rgba(255, 255, 255, 0.1);--light:80;--threshold:60}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem-reply{padding:5px 10px;font-size:.75rem;color:#666;transition:background-color 150ms ease-in-out;border-radius:5px;margin:5px 0;overflow:hidden;max-width:100%}.mensagem-reply p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-reply-principal{border-left:3px solid transparent;background-color:rgba(100,100,100,.1)}.message-reply-principal:hover{background-color:rgba(100,100,100,.2)}.message-reply-outros{background-color:#f5f5f5;border-left:3px solid var(--message-color)}.message-reply-outros:hover{background-color:#ebebeb}.mensagem-reply-vazia{display:flex;align-items:center}.mensagem-reply-vazia svg{margin-right:5px;color:#ba181b}.mensagem{padding:14px 7px;border-radius:5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.75rem;word-break:break-word;-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)}.mensagem.max-w-60{max-width:60%}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:var(--text-color)}.mensagem__principal>.mensagem .horario-envio{color:var(--text-color)}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:var(--text-color)}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.85em}.info-mapa li.url{font-size:.85em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
|
|
12860
12889
|
map: undefined,
|
|
12861
12890
|
media: undefined
|
|
@@ -12867,7 +12896,7 @@ var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
|
12867
12896
|
var __vue_scope_id__$5 = undefined;
|
|
12868
12897
|
/* module identifier */
|
|
12869
12898
|
|
|
12870
|
-
var __vue_module_identifier__$5 = "data-v-
|
|
12899
|
+
var __vue_module_identifier__$5 = "data-v-1c5fd2d8";
|
|
12871
12900
|
/* functional template */
|
|
12872
12901
|
|
|
12873
12902
|
var __vue_is_functional_template__$5 = false;
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
trigger="click"
|
|
37
37
|
>
|
|
38
38
|
<template v-slot:trigger>
|
|
39
|
-
<span class="file-action-button" ref="download-multiple-trigger">
|
|
39
|
+
<span class="file-action-button" ref="download-multiple-trigger" v-tippy :content="`Fazer o download de todos anexos da conversa`">
|
|
40
40
|
<fa-icon :icon="['fas', 'download']" />
|
|
41
41
|
<fa-icon :icon="['fas', 'download']" />
|
|
42
42
|
<fa-icon :icon="['fas', 'download']" />
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class="tippy-confirmation">
|
|
47
47
|
<p> Deseja fazer download de todos anexos da tela? </p>
|
|
48
48
|
<button class="cancel box-shadow" @click="closeTippy"> Cancelar </button>
|
|
49
|
-
<button class="confirm box-shadow" @click="downloadAllFilesHandler"> Confirmar </button>
|
|
49
|
+
<button class="confirm box-shadow" @click="downloadAllFilesHandler(referenceSelector)"> Confirmar </button>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
</tippy>
|
|
@@ -112,6 +112,10 @@ export default {
|
|
|
112
112
|
origemExterna: {
|
|
113
113
|
type: Boolean,
|
|
114
114
|
required: false
|
|
115
|
+
},
|
|
116
|
+
referenceSelector: {
|
|
117
|
+
type: String,
|
|
118
|
+
required: true
|
|
115
119
|
}
|
|
116
120
|
},
|
|
117
121
|
data() {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
<template v-if="anexos && anexos.length">
|
|
20
20
|
<div class="mensagem-anexo" v-for="(anexo, index) in anexos" :key="index">
|
|
21
|
-
<AnexoMensagem :dictionary="dictionary" :anexo="anexo" :origemExterna="origemExterna" :dominio="dominio" @abrir-imagem="abrirImagem" @download-all="$emit('download-all')"/>
|
|
21
|
+
<AnexoMensagem :referenceSelector="referenceSelector" :dictionary="dictionary" :anexo="anexo" :origemExterna="origemExterna" :dominio="dominio" @abrir-imagem="abrirImagem" @download-all="$emit('download-all')"/>
|
|
22
22
|
</div>
|
|
23
23
|
</template>
|
|
24
24
|
<img class="default-stick-size" v-if="urlSticker" :src="urlSticker" :title="urlFileName">
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
</li>
|
|
40
40
|
</ul>
|
|
41
41
|
</div>
|
|
42
|
-
<LinkPreview v-if="link && !mapa" :message="message" />
|
|
42
|
+
<LinkPreview v-if="link && !mapa && status != 'O'" :message="message" />
|
|
43
43
|
<p v-html="validateInterativity() ? '' : formatMsg(message)"></p>
|
|
44
44
|
<InteratividadeBotoes
|
|
45
45
|
v-if="interatividade"
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
<span class="check visualizado" v-else-if="status == 'L'" :content="contentTooltip" v-tippy key="double-check-visualizado"> <fa-icon :icon="['fas', 'check-double']" /> </span> <!-- Status finalizador -->
|
|
70
70
|
<span class="check vermelho" v-else-if="status == 'C' || status == 'ERRO'" :content="contentTooltip" v-tippy key="times-circle"> <fa-icon :icon="['fas', 'times-circle']" /> </span> <!-- Status finalizador -->
|
|
71
71
|
<span class="check vermelho" v-else-if="status == 'T'" :content="contentTooltip" v-tippy key="hourglass"> <fa-icon :icon="['fas', 'hourglass']" /> </span> <!-- Status finalizador -->
|
|
72
|
+
<span class="check vermelho" v-else-if="status == 'O'" :content="contentTooltip" v-tippy key="deleted"> <fa-icon :icon="['fas', 'times']" /> </span> <!-- Status de mensagem deletada -->
|
|
72
73
|
</transition>
|
|
73
74
|
|
|
74
75
|
<span class="autor-mensagem" v-html="autor"></span>
|
|
@@ -280,6 +281,7 @@ export default {
|
|
|
280
281
|
}
|
|
281
282
|
},
|
|
282
283
|
formatMsg(msg) {
|
|
284
|
+
if(this.status == 'O') return this.dictionary.msg_excluida ? this.dictionary.msg_excluida : 'MENSAGEM DELETADA'
|
|
283
285
|
const regex = /(\n| )/g
|
|
284
286
|
if(regex.test(msg)) msg = msg.replace(regex, "<br>")
|
|
285
287
|
return msg
|