vue-intergrall-plugins 0.0.248 → 0.0.251
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.
|
@@ -10144,7 +10144,12 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
|
|
|
10144
10144
|
case "aac":
|
|
10145
10145
|
case "audio/mpeg":
|
|
10146
10146
|
case "mpeg":
|
|
10147
|
-
|
|
10147
|
+
if (type == "oga" || type == "audio/oga") {
|
|
10148
|
+
tipoDoc = "audio/ogg";
|
|
10149
|
+
} else {
|
|
10150
|
+
tipoDoc = "audio/mpeg";
|
|
10151
|
+
}
|
|
10152
|
+
|
|
10148
10153
|
docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
|
|
10149
10154
|
nomeArquivo = name;
|
|
10150
10155
|
audio = true;
|
|
@@ -10154,7 +10159,13 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
|
|
|
10154
10159
|
case "video":
|
|
10155
10160
|
case "mp4":
|
|
10156
10161
|
case "m4v":
|
|
10157
|
-
|
|
10162
|
+
case "webm":
|
|
10163
|
+
if (type == "mp4" || type == "video/mp4" || type == "video" || type == "m4v") {
|
|
10164
|
+
tipoDoc = "video/mp4";
|
|
10165
|
+
} else {
|
|
10166
|
+
tipoDoc = "video/webm";
|
|
10167
|
+
}
|
|
10168
|
+
|
|
10158
10169
|
docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
|
|
10159
10170
|
nomeArquivo = name;
|
|
10160
10171
|
video = true;
|
|
@@ -10265,6 +10276,8 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
|
|
|
10265
10276
|
this.icon = this.fileType === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
|
|
10266
10277
|
},
|
|
10267
10278
|
downloadAllFilesHandler: function downloadAllFilesHandler() {
|
|
10279
|
+
var _this = this;
|
|
10280
|
+
|
|
10268
10281
|
try {
|
|
10269
10282
|
if (!this.$root.$refs.chatMessages || !this.$root.$refs.chatMessages.referenceSelector) return this.$emit("download-all");
|
|
10270
10283
|
var container = document.querySelector("".concat(this.$root.$refs.chatMessages.referenceSelector));
|
|
@@ -10287,6 +10300,7 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
|
|
|
10287
10300
|
var handler = handleInterval();
|
|
10288
10301
|
|
|
10289
10302
|
if (!handler) {
|
|
10303
|
+
_this.closeTippy ? _this.closeTippy() : null;
|
|
10290
10304
|
clearInterval(interval);
|
|
10291
10305
|
interval = 0;
|
|
10292
10306
|
}
|
|
@@ -11488,6 +11502,9 @@ var script$8 = {
|
|
|
11488
11502
|
}
|
|
11489
11503
|
|
|
11490
11504
|
return status;
|
|
11505
|
+
},
|
|
11506
|
+
closeTippy: function closeTippy() {
|
|
11507
|
+
this.$refs["download-multiple-trigger"] && this.$refs["download-multiple-trigger"].click();
|
|
11491
11508
|
}
|
|
11492
11509
|
}
|
|
11493
11510
|
};/* script */
|
|
@@ -11503,17 +11520,17 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
11503
11520
|
|
|
11504
11521
|
return _c('div', {
|
|
11505
11522
|
staticClass: "mensagem-div-anexo"
|
|
11506
|
-
}, [_vm._ssrNode("<div class=\"anexo-mensagem\" data-v-
|
|
11523
|
+
}, [_vm._ssrNode("<div class=\"anexo-mensagem\" data-v-f7455c68>", "</div>", [_vm.imageURL ? _vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.imageURL) + _vm._ssrAttr("alt", _vm.dictionary.alt_msg_img) + " data-v-f7455c68>", "</img>") : _vm.audio ? _vm._ssrNode("<audio controls=\"controls\" data-v-f7455c68><source" + _vm._ssrAttr("src", _vm.docURL) + _vm._ssrAttr("type", _vm.fileType) + " data-v-f7455c68>\n Sem suporte para o elemento audio\n </audio>") : _vm.video ? _vm._ssrNode("<video controls=\"controls\" data-v-f7455c68><source" + _vm._ssrAttr("src", _vm.docURL) + _vm._ssrAttr("type", _vm.fileType) + " data-v-f7455c68>\n Sem suporte para o elemento video\n </video>") : _vm.docURL ? _vm._ssrNode("<span class=\"default-doc\" data-v-f7455c68>", "</span>", [_c('fa-icon', {
|
|
11507
11524
|
class: [_vm.iconClass],
|
|
11508
11525
|
attrs: {
|
|
11509
11526
|
"icon": _vm.icon
|
|
11510
11527
|
}
|
|
11511
|
-
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.filename) + " data-v-
|
|
11528
|
+
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.filename) + " data-v-f7455c68>" + _vm._ssrEscape(_vm._s(_vm.filename)) + "</p>")], 2) : _vm._ssrNode("<span class=\"default-doc\" data-v-f7455c68>", "</span>", [_c('fa-icon', {
|
|
11512
11529
|
class: [_vm.iconClass ? _vm.iconClass : ''],
|
|
11513
11530
|
attrs: {
|
|
11514
11531
|
"icon": ['fas', 'file-alt']
|
|
11515
11532
|
}
|
|
11516
|
-
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.filename) + " data-v-
|
|
11533
|
+
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.filename) + " data-v-f7455c68>" + _vm._ssrEscape(_vm._s(_vm.filename)) + "</p>")], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"file-actions\" data-v-f7455c68>", "</div>", [_vm.imageURL ? _vm._ssrNode("<span class=\"file-action-button\" data-v-f7455c68>", "</span>", [_c('fa-icon', {
|
|
11517
11534
|
directives: [{
|
|
11518
11535
|
name: "tippy",
|
|
11519
11536
|
rawName: "v-tippy"
|
|
@@ -11522,17 +11539,19 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
11522
11539
|
"icon": ['fas', 'search-plus'],
|
|
11523
11540
|
"content": "" + _vm.dictionary.titulo_visualizar_img
|
|
11524
11541
|
}
|
|
11525
|
-
})], 1) : _vm._e(), _vm._ssrNode(" "), _vm.docURL ? _c('
|
|
11542
|
+
})], 1) : _vm._e(), _vm._ssrNode(" "), _vm.docURL ? _c('span', {
|
|
11526
11543
|
directives: [{
|
|
11527
11544
|
name: "tippy",
|
|
11528
11545
|
rawName: "v-tippy"
|
|
11529
11546
|
}],
|
|
11530
11547
|
staticClass: "file-action-button",
|
|
11531
11548
|
attrs: {
|
|
11532
|
-
"href": _vm.docURL,
|
|
11533
|
-
"target": "_blank",
|
|
11534
|
-
"rel": "noreferrer noopener",
|
|
11535
11549
|
"content": "Visualizar anexo"
|
|
11550
|
+
},
|
|
11551
|
+
on: {
|
|
11552
|
+
"click": function click($event) {
|
|
11553
|
+
return _vm.openWindowFromURL(_vm.docURL);
|
|
11554
|
+
}
|
|
11536
11555
|
}
|
|
11537
11556
|
}, [_c('fa-icon', {
|
|
11538
11557
|
attrs: {
|
|
@@ -11555,31 +11574,47 @@ var __vue_render__$8 = function __vue_render__() {
|
|
|
11555
11574
|
attrs: {
|
|
11556
11575
|
"icon": ['fas', 'download']
|
|
11557
11576
|
}
|
|
11558
|
-
})], 1) : _vm._e(), _vm._ssrNode(" "), _c('
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11577
|
+
})], 1) : _vm._e(), _vm._ssrNode(" "), _vm.imageURL || _vm.docURL ? [_c('tippy', {
|
|
11578
|
+
attrs: {
|
|
11579
|
+
"interactive": "",
|
|
11580
|
+
"theme": "light",
|
|
11581
|
+
"trigger": "click"
|
|
11582
|
+
},
|
|
11583
|
+
scopedSlots: _vm._u([{
|
|
11584
|
+
key: "trigger",
|
|
11585
|
+
fn: function fn() {
|
|
11586
|
+
return [_c('span', {
|
|
11587
|
+
ref: "download-multiple-trigger",
|
|
11588
|
+
staticClass: "file-action-button"
|
|
11589
|
+
}, [_c('fa-icon', {
|
|
11590
|
+
attrs: {
|
|
11591
|
+
"icon": ['fas', 'download']
|
|
11592
|
+
}
|
|
11593
|
+
}), _vm._v(" "), _c('fa-icon', {
|
|
11594
|
+
attrs: {
|
|
11595
|
+
"icon": ['fas', 'download']
|
|
11596
|
+
}
|
|
11597
|
+
}), _vm._v(" "), _c('fa-icon', {
|
|
11598
|
+
attrs: {
|
|
11599
|
+
"icon": ['fas', 'download']
|
|
11600
|
+
}
|
|
11601
|
+
})], 1)];
|
|
11602
|
+
},
|
|
11603
|
+
proxy: true
|
|
11604
|
+
}], null, false, 2135986953)
|
|
11605
|
+
}, [_vm._v(" "), _c('div', {
|
|
11606
|
+
staticClass: "tippy-confirmation"
|
|
11607
|
+
}, [_c('p', [_vm._v(" Deseja fazer download de todos anexos da tela? ")]), _vm._v(" "), _c('button', {
|
|
11608
|
+
staticClass: "cancel box-shadow",
|
|
11567
11609
|
on: {
|
|
11568
|
-
"click": _vm.
|
|
11610
|
+
"click": _vm.closeTippy
|
|
11569
11611
|
}
|
|
11570
|
-
}, [_c('
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
}), _vm._ssrNode(" "), _c('fa-icon', {
|
|
11575
|
-
attrs: {
|
|
11576
|
-
"icon": ['fas', 'download']
|
|
11577
|
-
}
|
|
11578
|
-
}), _vm._ssrNode(" "), _c('fa-icon', {
|
|
11579
|
-
attrs: {
|
|
11580
|
-
"icon": ['fas', 'download']
|
|
11612
|
+
}, [_vm._v(" Cancelar ")]), _vm._v(" "), _c('button', {
|
|
11613
|
+
staticClass: "confirm box-shadow",
|
|
11614
|
+
on: {
|
|
11615
|
+
"click": _vm.downloadAllFilesHandler
|
|
11581
11616
|
}
|
|
11582
|
-
})]
|
|
11617
|
+
}, [_vm._v(" Confirmar ")])])])] : _vm._e()], 2)], 2)]);
|
|
11583
11618
|
};
|
|
11584
11619
|
|
|
11585
11620
|
var __vue_staticRenderFns__$8 = [];
|
|
@@ -11587,8 +11622,12 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
11587
11622
|
|
|
11588
11623
|
var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
11589
11624
|
if (!inject) return;
|
|
11590
|
-
inject("data-v-
|
|
11591
|
-
source: ".
|
|
11625
|
+
inject("data-v-f7455c68_0", {
|
|
11626
|
+
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}",
|
|
11627
|
+
map: undefined,
|
|
11628
|
+
media: undefined
|
|
11629
|
+
}), inject("data-v-f7455c68_1", {
|
|
11630
|
+
source: ".mensagem__principal .default-doc[data-v-f7455c68]{background-color:var(--files-bg)}.mensagem__principal .default-doc[data-v-f7455c68]:hover{background-color:var(--files-bg-hover)}.mensagem__outros .default-doc[data-v-f7455c68]{background-color:rgba(100,100,100,.1)}.mensagem__outros .default-doc[data-v-f7455c68]:hover{background-color:rgba(100,100,100,.3)}.default-doc:hover p[data-v-f7455c68]{text-decoration:underline}.default-doc[data-v-f7455c68]{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-f7455c68]{font-size:1.2rem;margin-right:5px}.default-doc p[data-v-f7455c68]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-actions[data-v-f7455c68]{display:flex;justify-content:flex-end;width:100%;padding:5px}.file-actions a[data-v-f7455c68]{margin-right:0}.mensagem__principal .file-action-button[data-v-f7455c68]{background-color:var(--files-bg)}.mensagem__outros .file-action-button[data-v-f7455c68]{background-color:rgba(100,100,100,.1)}.mensagem__principal .file-action-button[data-v-f7455c68]:hover{background-color:var(--files-bg-hover)}.mensagem__outros .file-action-button[data-v-f7455c68]:hover{background-color:rgba(100,100,100,.3)}.file-action-button[data-v-f7455c68]{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-f7455c68]{margin:0}.fade-enter-active[data-v-f7455c68],.fade-leave-active[data-v-f7455c68]{transition:opacity .5s}.fade-enter[data-v-f7455c68],.fade-leave-to[data-v-f7455c68]{opacity:0}.mensagem-div-anexo[data-v-f7455c68]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-f7455c68]{width:100%;margin-top:5px;overflow:hidden;display:flex;max-height:300px}.anexo-container .arquivo-erro[data-v-f7455c68],.anexo-container a[data-v-f7455c68]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container p[data-v-f7455c68]{text-overflow:ellipsis;overflow:hidden}.anexo-container .arquivo-erro[data-v-f7455c68],.anexo-container p[data-v-f7455c68]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-f7455c68]{font-size:2rem}.anexo-mensagem audio[data-v-f7455c68]{outline:0;width:100%;margin-bottom:5px}.anexo-mensagem video[data-v-f7455c68]{flex:1;width:100%;max-width:350px;cursor:pointer;margin-bottom:5px}.anexos-links-container[data-v-f7455c68]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-f7455c68]{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-f7455c68]{cursor:pointer}.mensagem-div-anexo img[data-v-f7455c68]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-f7455c68]{width:100%;height:100%}.anexo-mensagem[data-v-f7455c68]{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%}.alert-danger[data-v-f7455c68]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-f7455c68]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-f7455c68]{font-size:1.025em;margin-right:2px}.pdf[data-v-f7455c68]{color:#e74c3c}.doc[data-v-f7455c68]{color:#006bc9}",
|
|
11592
11631
|
map: undefined,
|
|
11593
11632
|
media: undefined
|
|
11594
11633
|
});
|
|
@@ -11596,10 +11635,10 @@ var __vue_inject_styles__$8 = function __vue_inject_styles__(inject) {
|
|
|
11596
11635
|
/* scoped */
|
|
11597
11636
|
|
|
11598
11637
|
|
|
11599
|
-
var __vue_scope_id__$8 = "data-v-
|
|
11638
|
+
var __vue_scope_id__$8 = "data-v-f7455c68";
|
|
11600
11639
|
/* module identifier */
|
|
11601
11640
|
|
|
11602
|
-
var __vue_module_identifier__$8 = "data-v-
|
|
11641
|
+
var __vue_module_identifier__$8 = "data-v-f7455c68";
|
|
11603
11642
|
/* functional template */
|
|
11604
11643
|
|
|
11605
11644
|
var __vue_is_functional_template__$8 = false;
|
|
@@ -12125,6 +12164,8 @@ var script$5 = {
|
|
|
12125
12164
|
h = Math.round(360 * h);
|
|
12126
12165
|
var root = document.documentElement;
|
|
12127
12166
|
root.style.setProperty('--text-color', l <= 50 ? "#FFF" : "#111B21");
|
|
12167
|
+
root.style.setProperty('--files-bg', l <= 50 ? "rgba(255, 255, 255, 0.1)" : "rgba(100, 100, 100, 0.1)");
|
|
12168
|
+
root.style.setProperty('--files-bg-hover', l <= 50 ? "rgba(255, 255, 255, 0.3)" : "rgba(100, 100, 100, 0.3)");
|
|
12128
12169
|
} catch (e) {
|
|
12129
12170
|
console.error("Erro ao ajustar a cor da mensagem: ", e);
|
|
12130
12171
|
}
|
|
@@ -12426,8 +12467,8 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
12426
12467
|
|
|
12427
12468
|
var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
12428
12469
|
if (!inject) return;
|
|
12429
|
-
inject("data-v-
|
|
12430
|
-
source: ":root{--message-color:#373737;--text-color:#FFF;--light:80;--threshold:60}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.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}",
|
|
12470
|
+
inject("data-v-8292b8c8_0", {
|
|
12471
|
+
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{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}",
|
|
12431
12472
|
map: undefined,
|
|
12432
12473
|
media: undefined
|
|
12433
12474
|
});
|
|
@@ -12438,7 +12479,7 @@ var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
|
12438
12479
|
var __vue_scope_id__$5 = undefined;
|
|
12439
12480
|
/* module identifier */
|
|
12440
12481
|
|
|
12441
|
-
var __vue_module_identifier__$5 = "data-v-
|
|
12482
|
+
var __vue_module_identifier__$5 = "data-v-8292b8c8";
|
|
12442
12483
|
/* functional template */
|
|
12443
12484
|
|
|
12444
12485
|
var __vue_is_functional_template__$5 = false;
|
package/package.json
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
<div class="mensagem-div-anexo">
|
|
3
3
|
<div class="anexo-mensagem">
|
|
4
4
|
<img v-if="imageURL" @click="showImage(imageURL)" :src="imageURL" :alt="dictionary.alt_msg_img">
|
|
5
|
-
<audio v-else-if="audio" controls>
|
|
5
|
+
<audio v-else-if="audio" controls="controls">
|
|
6
6
|
<source :src="docURL" :type="fileType" />
|
|
7
7
|
Sem suporte para o elemento audio
|
|
8
8
|
</audio>
|
|
9
|
-
<video v-else-if="video" controls>
|
|
9
|
+
<video v-else-if="video" controls="controls">
|
|
10
10
|
<source :src="docURL" :type="fileType" />
|
|
11
11
|
Sem suporte para o elemento video
|
|
12
12
|
</video>
|
|
13
|
-
<
|
|
13
|
+
<span v-else-if="docURL" @click="openWindowFromURL(docURL)" class="default-doc">
|
|
14
14
|
<fa-icon :class="[iconClass]" :icon="icon" />
|
|
15
15
|
<p v-text="filename" :title="filename"></p>
|
|
16
|
-
</
|
|
16
|
+
</span>
|
|
17
17
|
<span v-else class="default-doc">
|
|
18
18
|
<fa-icon :class="[iconClass ? iconClass : '']" :icon="['fas', 'file-alt']" />
|
|
19
19
|
<p v-text="filename" :title="filename"></p>
|
|
@@ -23,22 +23,72 @@
|
|
|
23
23
|
<span v-if="imageURL" class="file-action-button" @click="showImage(imageURL)">
|
|
24
24
|
<fa-icon :icon="['fas', 'search-plus']" v-tippy :content="`${dictionary.titulo_visualizar_img}`" />
|
|
25
25
|
</span>
|
|
26
|
-
<
|
|
26
|
+
<span v-if="docURL" @click="openWindowFromURL(docURL)" v-tippy :content="`Visualizar anexo`" class="file-action-button">
|
|
27
27
|
<fa-icon :icon="['fas', 'search-plus']" />
|
|
28
|
-
</
|
|
28
|
+
</span>
|
|
29
29
|
<a v-if="imageURL || docURL" :href="imageURL ? imageURL : docURL" :download="`${filename}`" target="_blank" rel="noreferrer noopener" v-tippy :content="`Fazer o download do anexo`" class="file-action-button">
|
|
30
30
|
<fa-icon :icon="['fas', 'download']" />
|
|
31
31
|
</a>
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
<template v-if="imageURL || docURL">
|
|
33
|
+
<tippy
|
|
34
|
+
interactive
|
|
35
|
+
theme="light"
|
|
36
|
+
trigger="click"
|
|
37
|
+
>
|
|
38
|
+
<template v-slot:trigger>
|
|
39
|
+
<span class="file-action-button" ref="download-multiple-trigger">
|
|
40
|
+
<fa-icon :icon="['fas', 'download']" />
|
|
41
|
+
<fa-icon :icon="['fas', 'download']" />
|
|
42
|
+
<fa-icon :icon="['fas', 'download']" />
|
|
43
|
+
</span>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<div class="tippy-confirmation">
|
|
47
|
+
<p> Deseja fazer download de todos anexos da tela? </p>
|
|
48
|
+
<button class="cancel box-shadow" @click="closeTippy"> Cancelar </button>
|
|
49
|
+
<button class="confirm box-shadow" @click="downloadAllFilesHandler"> Confirmar </button>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
</tippy>
|
|
53
|
+
</template>
|
|
37
54
|
</div>
|
|
38
55
|
</div>
|
|
39
56
|
</div>
|
|
40
57
|
</template>
|
|
41
58
|
|
|
59
|
+
<style>
|
|
60
|
+
.tippy-tooltip.light-theme .tippy-backdrop {
|
|
61
|
+
background-color: #FFF;
|
|
62
|
+
}
|
|
63
|
+
.tippy-tooltip.light-theme {
|
|
64
|
+
/* .tippy-box[data-theme~='light'] { */
|
|
65
|
+
background-color: #FFF;
|
|
66
|
+
border: 1px solid #CCC;
|
|
67
|
+
color: #333;
|
|
68
|
+
-webkit-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
69
|
+
-moz-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
70
|
+
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
71
|
+
}
|
|
72
|
+
.tippy-confirmation p {
|
|
73
|
+
margin-bottom: 3px;
|
|
74
|
+
}
|
|
75
|
+
.tippy-confirmation button {
|
|
76
|
+
border: unset;
|
|
77
|
+
background-color: #F1F1F1;
|
|
78
|
+
border-radius: 3px;
|
|
79
|
+
padding: 5px 8px;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
font-size: .75rem;
|
|
82
|
+
}
|
|
83
|
+
.tippy-confirmation button.cancel {
|
|
84
|
+
border-bottom: 2px solid red;
|
|
85
|
+
margin-right: 15px;
|
|
86
|
+
}
|
|
87
|
+
.tippy-confirmation button.confirm {
|
|
88
|
+
border-bottom: 2px solid green;
|
|
89
|
+
}
|
|
90
|
+
</style>
|
|
91
|
+
|
|
42
92
|
<script>
|
|
43
93
|
import { fileHandler } from "../../mixins/fileHandler"
|
|
44
94
|
import Loader from "../Loader/Loader"
|
|
@@ -67,7 +117,7 @@ export default {
|
|
|
67
117
|
data() {
|
|
68
118
|
return {
|
|
69
119
|
imgErro: false,
|
|
70
|
-
imgMsgErro: ''
|
|
120
|
+
imgMsgErro: ''
|
|
71
121
|
}
|
|
72
122
|
},
|
|
73
123
|
mounted() {
|
|
@@ -97,6 +147,9 @@ export default {
|
|
|
97
147
|
this.isLoading = false
|
|
98
148
|
}
|
|
99
149
|
return status
|
|
150
|
+
},
|
|
151
|
+
closeTippy() {
|
|
152
|
+
this.$refs["download-multiple-trigger"] && this.$refs["download-multiple-trigger"].click()
|
|
100
153
|
}
|
|
101
154
|
}
|
|
102
155
|
}
|
|
@@ -104,13 +157,25 @@ export default {
|
|
|
104
157
|
|
|
105
158
|
<style scoped>
|
|
106
159
|
.mensagem__principal .default-doc {
|
|
107
|
-
background-color:
|
|
160
|
+
background-color: var(--files-bg);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.mensagem__principal .default-doc:hover {
|
|
164
|
+
background-color: var(--files-bg-hover);
|
|
108
165
|
}
|
|
109
166
|
|
|
110
167
|
.mensagem__outros .default-doc {
|
|
111
168
|
background-color: rgba(100, 100, 100, 0.1);
|
|
112
169
|
}
|
|
113
170
|
|
|
171
|
+
.mensagem__outros .default-doc:hover {
|
|
172
|
+
background-color: rgba(100, 100, 100, 0.3);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.default-doc:hover p {
|
|
176
|
+
text-decoration: underline;
|
|
177
|
+
}
|
|
178
|
+
|
|
114
179
|
.default-doc {
|
|
115
180
|
display: flex;
|
|
116
181
|
align-items: center;
|
|
@@ -118,6 +183,8 @@ export default {
|
|
|
118
183
|
border-radius: 5px;
|
|
119
184
|
width: 100%;
|
|
120
185
|
max-width: 100%;
|
|
186
|
+
cursor: pointer;
|
|
187
|
+
transition: background-color 150ms ease-in-out;
|
|
121
188
|
}
|
|
122
189
|
.default-doc svg {
|
|
123
190
|
font-size: 1.2rem;
|
|
@@ -140,7 +207,7 @@ export default {
|
|
|
140
207
|
}
|
|
141
208
|
|
|
142
209
|
.mensagem__principal .file-action-button {
|
|
143
|
-
background-color:
|
|
210
|
+
background-color: var(--files-bg);
|
|
144
211
|
}
|
|
145
212
|
|
|
146
213
|
.mensagem__outros .file-action-button {
|
|
@@ -148,7 +215,7 @@ export default {
|
|
|
148
215
|
}
|
|
149
216
|
|
|
150
217
|
.mensagem__principal .file-action-button:hover {
|
|
151
|
-
background-color:
|
|
218
|
+
background-color: var(--files-bg-hover);
|
|
152
219
|
}
|
|
153
220
|
|
|
154
221
|
.mensagem__outros .file-action-button:hover {
|
|
@@ -266,6 +266,8 @@ export default {
|
|
|
266
266
|
|
|
267
267
|
const root = document.documentElement
|
|
268
268
|
root.style.setProperty('--text-color', l <= 50 ? "#FFF" : "#111B21")
|
|
269
|
+
root.style.setProperty('--files-bg', l <= 50 ? "rgba(255, 255, 255, 0.1)" : "rgba(100, 100, 100, 0.1)")
|
|
270
|
+
root.style.setProperty('--files-bg-hover', l <= 50 ? "rgba(255, 255, 255, 0.3)" : "rgba(100, 100, 100, 0.3)")
|
|
269
271
|
}catch(e) {
|
|
270
272
|
console.error("Erro ao ajustar a cor da mensagem: ", e)
|
|
271
273
|
}
|
|
@@ -283,6 +285,8 @@ export default {
|
|
|
283
285
|
:root {
|
|
284
286
|
--message-color: #373737;
|
|
285
287
|
--text-color: #FFF;
|
|
288
|
+
--files-bg: rgba(255, 255, 255, 0.1);
|
|
289
|
+
--files-bg-hover: rgba(255, 255, 255, 0.1);
|
|
286
290
|
|
|
287
291
|
--light: 80;
|
|
288
292
|
--threshold: 60;
|