vue-intergrall-plugins 0.0.293 → 0.0.295
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.
|
@@ -13828,7 +13828,8 @@ var script$5 = {
|
|
|
13828
13828
|
AnexoMensagem,
|
|
13829
13829
|
InteratividadeBotoes,
|
|
13830
13830
|
InteratividadeFormulario,
|
|
13831
|
-
LinkPreview
|
|
13831
|
+
LinkPreview,
|
|
13832
|
+
Picker
|
|
13832
13833
|
},
|
|
13833
13834
|
props: ["smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector", "replyMessage", "isReply", "defaultReplyMessage", "showReplyIcon", "showControlFiles", "showMenu", "id_ext_msg"],
|
|
13834
13835
|
|
|
@@ -13868,7 +13869,9 @@ var script$5 = {
|
|
|
13868
13869
|
disableDefaultUI: false
|
|
13869
13870
|
},
|
|
13870
13871
|
isMenuOpen: false,
|
|
13871
|
-
showMenuOptions: false
|
|
13872
|
+
showMenuOptions: false,
|
|
13873
|
+
isEmojisOpen: false,
|
|
13874
|
+
messageReaction: ""
|
|
13872
13875
|
};
|
|
13873
13876
|
},
|
|
13874
13877
|
|
|
@@ -13907,20 +13910,30 @@ var script$5 = {
|
|
|
13907
13910
|
let tooltipStar = "";
|
|
13908
13911
|
|
|
13909
13912
|
if (this.iniDialogo == 1) {
|
|
13910
|
-
tooltipStar += this.dictionary[
|
|
13913
|
+
tooltipStar += this.dictionary["ini_sessao"] + "<br/>";
|
|
13911
13914
|
} else {
|
|
13912
|
-
tooltipStar += this.dictionary[
|
|
13915
|
+
tooltipStar += this.dictionary["ini_sessao_padrao"] + "<br/>";
|
|
13913
13916
|
}
|
|
13914
13917
|
|
|
13915
|
-
tooltipStar += this.dialogoId ? this.dictionary[
|
|
13916
|
-
tooltipStar += this.dialogoOrigem ? this.dictionary[
|
|
13917
|
-
tooltipStar += this.expSessao ? this.dictionary[
|
|
13918
|
+
tooltipStar += this.dialogoId ? this.dictionary["id_conversa"] + " - " + this.dialogoId + "<br/>" : "";
|
|
13919
|
+
tooltipStar += this.dialogoOrigem ? this.dictionary["origem_conversa"] + " - " + this.dialogoOrigem + "<br/>" : "";
|
|
13920
|
+
tooltipStar += this.expSessao ? this.dictionary["expiracao_sessao"] + " - " + formataTimezoneData(this.expSessao) + "<br/>" : "";
|
|
13918
13921
|
return tooltipStar;
|
|
13919
13922
|
},
|
|
13920
13923
|
|
|
13921
13924
|
validadeSeq() {
|
|
13922
13925
|
if (this.seq && this.seq.substring(0, 2) == "HW") return true;
|
|
13923
13926
|
this.reply = "reply reply-with-2-icons";
|
|
13927
|
+
return false;
|
|
13928
|
+
},
|
|
13929
|
+
|
|
13930
|
+
hasAnyMenu() {
|
|
13931
|
+
if (!this.showMenu || typeof this.showMenu !== "object") return false;
|
|
13932
|
+
|
|
13933
|
+
for (let key in this.showMenu) {
|
|
13934
|
+
if (this.showMenu.hasOwnProperty(key) && this.showMenu[key] === true) return true;
|
|
13935
|
+
}
|
|
13936
|
+
|
|
13924
13937
|
return false;
|
|
13925
13938
|
}
|
|
13926
13939
|
|
|
@@ -13943,7 +13956,7 @@ var script$5 = {
|
|
|
13943
13956
|
|
|
13944
13957
|
responderMensagemHandler() {
|
|
13945
13958
|
if (this.isMenuOpen) this.closeMenu();
|
|
13946
|
-
this.$emit(
|
|
13959
|
+
this.$emit("responder-mensagem", {
|
|
13947
13960
|
messageIndex: this.messageIndex,
|
|
13948
13961
|
autor: this.autor,
|
|
13949
13962
|
origem: this.origem,
|
|
@@ -13964,9 +13977,32 @@ var script$5 = {
|
|
|
13964
13977
|
});
|
|
13965
13978
|
},
|
|
13966
13979
|
|
|
13980
|
+
reagirMensagemHandler() {
|
|
13981
|
+
if (this.isMenuOpen) this.closeMenu();
|
|
13982
|
+
this.isEmojisOpen = !this.isEmojisOpen;
|
|
13983
|
+
},
|
|
13984
|
+
|
|
13985
|
+
addReaction(emoji) {
|
|
13986
|
+
this.messageReaction = this.messageReaction && this.messageReaction.hexa === emoji.hexa ? "" : {
|
|
13987
|
+
hexa: emoji.hexa,
|
|
13988
|
+
finalEmoji: emoji.finalEmoji
|
|
13989
|
+
};
|
|
13990
|
+
this.isEmojisOpen = false;
|
|
13991
|
+
this.$emit("reagir-mensagem", {
|
|
13992
|
+
emoji,
|
|
13993
|
+
seq: this.seq,
|
|
13994
|
+
id_ext_msg: this.id_ext_msg,
|
|
13995
|
+
hasEmojiReaction: this.messageReaction ? true : false
|
|
13996
|
+
});
|
|
13997
|
+
},
|
|
13998
|
+
|
|
13999
|
+
closeEmojis() {
|
|
14000
|
+
this.isEmojisOpen = false;
|
|
14001
|
+
},
|
|
14002
|
+
|
|
13967
14003
|
validateInterativity() {
|
|
13968
14004
|
try {
|
|
13969
|
-
if (this.interatividade && this.interatividade.formulario && this.interatividade.formulario.length || this.interatividade.list && this.interatividade.tipo ==
|
|
14005
|
+
if (this.interatividade && this.interatividade.formulario && this.interatividade.formulario.length || this.interatividade.list && this.interatividade.tipo == "listItem") {
|
|
13970
14006
|
return true;
|
|
13971
14007
|
}
|
|
13972
14008
|
|
|
@@ -13997,7 +14033,7 @@ var script$5 = {
|
|
|
13997
14033
|
},
|
|
13998
14034
|
|
|
13999
14035
|
removeUrlStickerByString(url) {
|
|
14000
|
-
let msg = this.message.replace(`KSTICKERK ${url}`,
|
|
14036
|
+
let msg = this.message.replace(`KSTICKERK ${url}`, "");
|
|
14001
14037
|
return msg;
|
|
14002
14038
|
},
|
|
14003
14039
|
|
|
@@ -14015,7 +14051,7 @@ var script$5 = {
|
|
|
14015
14051
|
setCorMsg() {
|
|
14016
14052
|
try {
|
|
14017
14053
|
const root = document.documentElement;
|
|
14018
|
-
root.style.setProperty(
|
|
14054
|
+
root.style.setProperty("--message-color", this.corMsg);
|
|
14019
14055
|
this.adjustFontColor(this.corMsg);
|
|
14020
14056
|
} catch (e) {
|
|
14021
14057
|
console.error("Erro ao atribuir a cor as mensagens");
|
|
@@ -14099,16 +14135,16 @@ var script$5 = {
|
|
|
14099
14135
|
l = Math.round(l);
|
|
14100
14136
|
h = Math.round(360 * h);
|
|
14101
14137
|
const root = document.documentElement;
|
|
14102
|
-
root.style.setProperty(
|
|
14103
|
-
root.style.setProperty(
|
|
14104
|
-
root.style.setProperty(
|
|
14138
|
+
root.style.setProperty("--text-color", l <= 50 ? "#FFF" : "#111B21");
|
|
14139
|
+
root.style.setProperty("--files-bg", l <= 50 ? "rgba(255, 255, 255, 0.1)" : "rgba(100, 100, 100, 0.1)");
|
|
14140
|
+
root.style.setProperty("--files-bg-hover", l <= 50 ? "rgba(255, 255, 255, 0.3)" : "rgba(100, 100, 100, 0.3)");
|
|
14105
14141
|
} catch (e) {
|
|
14106
14142
|
console.error("Erro ao ajustar a cor da mensagem: ", e);
|
|
14107
14143
|
}
|
|
14108
14144
|
},
|
|
14109
14145
|
|
|
14110
14146
|
formatMsg(msg) {
|
|
14111
|
-
if (this.status ==
|
|
14147
|
+
if (this.status == "O") return this.dictionary.msg_excluida ? this.dictionary.msg_excluida : "MENSAGEM DELETADA";
|
|
14112
14148
|
const regex = /(\n| )/g;
|
|
14113
14149
|
if (regex.test(msg)) msg = msg.replace(regex, "<br>");
|
|
14114
14150
|
return msg;
|
|
@@ -14217,7 +14253,7 @@ var __vue_render__$5 = function () {
|
|
|
14217
14253
|
return _vm.abrirPopup(info.value);
|
|
14218
14254
|
}
|
|
14219
14255
|
}
|
|
14220
|
-
}, [_vm._v("
|
|
14256
|
+
}, [_vm._v("\n " + _vm._s(info.textLink) + " "), _c('fa-icon', {
|
|
14221
14257
|
attrs: {
|
|
14222
14258
|
"icon": ['fas', 'map-marker-alt']
|
|
14223
14259
|
}
|
|
@@ -14429,10 +14465,10 @@ var __vue_render__$5 = function () {
|
|
|
14429
14465
|
domProps: {
|
|
14430
14466
|
"innerHTML": _vm._s(_vm.autor)
|
|
14431
14467
|
}
|
|
14432
|
-
}), _vm._v(" "), _vm.
|
|
14468
|
+
}), _vm._v(" "), _vm.hasAnyMenu ? _c('div', {
|
|
14433
14469
|
staticClass: "menu-primario",
|
|
14434
14470
|
class: _vm.origem
|
|
14435
|
-
}, [_c('span', {
|
|
14471
|
+
}, [_vm.showMenu.reply ? _c('span', {
|
|
14436
14472
|
directives: [{
|
|
14437
14473
|
name: "tippy",
|
|
14438
14474
|
rawName: "v-tippy"
|
|
@@ -14448,7 +14484,35 @@ var __vue_render__$5 = function () {
|
|
|
14448
14484
|
attrs: {
|
|
14449
14485
|
"icon": ['fas', 'reply']
|
|
14450
14486
|
}
|
|
14451
|
-
})], 1)
|
|
14487
|
+
})], 1) : _vm._e(), _vm._v(" "), _vm.showMenu.reaction ? _c('span', {
|
|
14488
|
+
directives: [{
|
|
14489
|
+
name: "tippy",
|
|
14490
|
+
rawName: "v-tippy"
|
|
14491
|
+
}],
|
|
14492
|
+
staticClass: "menu-mensagem",
|
|
14493
|
+
attrs: {
|
|
14494
|
+
"content": _vm.dictionary.tit_reagir_msg
|
|
14495
|
+
},
|
|
14496
|
+
on: {
|
|
14497
|
+
"click": _vm.reagirMensagemHandler
|
|
14498
|
+
}
|
|
14499
|
+
}, [_c('fa-icon', {
|
|
14500
|
+
attrs: {
|
|
14501
|
+
"icon": ['fas', 'smile']
|
|
14502
|
+
}
|
|
14503
|
+
})], 1) : _vm._e()]) : _vm._e(), _vm._v(" "), _vm.isEmojisOpen ? _c('div', {
|
|
14504
|
+
directives: [{
|
|
14505
|
+
name: "on-clickaway",
|
|
14506
|
+
rawName: "v-on-clickaway",
|
|
14507
|
+
value: _vm.closeEmojis,
|
|
14508
|
+
expression: "closeEmojis"
|
|
14509
|
+
}],
|
|
14510
|
+
staticClass: "emoji-message-container"
|
|
14511
|
+
}, [_c('Picker', {
|
|
14512
|
+
on: {
|
|
14513
|
+
"insert-emoji": _vm.addReaction
|
|
14514
|
+
}
|
|
14515
|
+
})], 1) : _vm._e(), _vm._v(" "), _vm.isMenuOpen ? _c('transition', {
|
|
14452
14516
|
attrs: {
|
|
14453
14517
|
"name": "fade",
|
|
14454
14518
|
"mode": "out-in"
|
|
@@ -14462,11 +14526,33 @@ var __vue_render__$5 = function () {
|
|
|
14462
14526
|
}],
|
|
14463
14527
|
staticClass: "menu-flutuante",
|
|
14464
14528
|
class: _vm.origem
|
|
14465
|
-
}, [_c('li', {
|
|
14529
|
+
}, [_vm.showMenu.reply ? _c('li', {
|
|
14466
14530
|
on: {
|
|
14467
14531
|
"click": _vm.responderMensagemHandler
|
|
14468
14532
|
}
|
|
14469
|
-
}, [_c('span', [_vm._v(" " + _vm._s(_vm.dictionary.tit_responder_msg) + " ")])])
|
|
14533
|
+
}, [_c('span', [_vm._v(" " + _vm._s(_vm.dictionary.tit_responder_msg) + " ")])]) : _vm._e(), _vm._v(" "), _vm.showMenu.reaction ? _c('li', {
|
|
14534
|
+
on: {
|
|
14535
|
+
"click": _vm.reagirMensagemHandler
|
|
14536
|
+
}
|
|
14537
|
+
}, [_c('span', [_vm._v(" " + _vm._s(_vm.dictionary.tit_reagir_msg) + " ")])]) : _vm._e()])]) : _vm._e(), _vm._v(" "), _vm.messageReaction ? _c('transition', {
|
|
14538
|
+
attrs: {
|
|
14539
|
+
"name": "fade",
|
|
14540
|
+
"mode": "out-in"
|
|
14541
|
+
}
|
|
14542
|
+
}, [_c('span', {
|
|
14543
|
+
directives: [{
|
|
14544
|
+
name: "tippy",
|
|
14545
|
+
rawName: "v-tippy"
|
|
14546
|
+
}],
|
|
14547
|
+
staticClass: "reaction",
|
|
14548
|
+
attrs: {
|
|
14549
|
+
"content": _vm.dictionary.tit_mensagem_reagida + " " + _vm.messageReaction.finalEmoji
|
|
14550
|
+
}
|
|
14551
|
+
}, [_c('span', {
|
|
14552
|
+
domProps: {
|
|
14553
|
+
"innerHTML": _vm._s(_vm.messageReaction.finalEmoji)
|
|
14554
|
+
}
|
|
14555
|
+
})])]) : _vm._e()], 2)], 1) : _vm._e();
|
|
14470
14556
|
};
|
|
14471
14557
|
|
|
14472
14558
|
var __vue_staticRenderFns__$5 = [];
|
|
@@ -14474,8 +14560,8 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
14474
14560
|
|
|
14475
14561
|
const __vue_inject_styles__$5 = function (inject) {
|
|
14476
14562
|
if (!inject) return;
|
|
14477
|
-
inject("data-v-
|
|
14478
|
-
source: ":root{--message-color:#373737;--text-color:#
|
|
14563
|
+
inject("data-v-1c16a2ec_0", {
|
|
14564
|
+
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:20px 7px 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:hover .menu-primario{visibility:visible;opacity:1}.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}.menu-primario{visibility:hidden;opacity:0;transition:opacity 150ms ease-in-out;position:absolute;font-size:.7rem;top:3px;display:flex;gap:5px;padding:2px 4px}.menu-primario.principal{left:4px;color:var(--text-color);background-color:var(--message-color)}.menu-primario.outros{right:4px;color:var(--text-color);background-color:#fff}.menu-primario.outros>span:nth-child(1){order:10}.menu-mensagem{cursor:pointer;padding:1px}.menu-flutuante{background-color:#fff;-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);border-radius:10px;position:absolute;top:20px;width:120px;min-height:50px;height:50px;max-height:50px;overflow-x:hidden;overflow-y:auto;margin:0;padding:0;display:flex;flex-direction:column;z-index:1}.menu-flutuante.principal{left:3px}.menu-flutuante.outros{right:3px}.menu-flutuante li{transition:background-color .3s ease-in-out;width:100%;cursor:pointer;padding:5px 10px;display:flex;align-items:center}.menu-flutuante li:hover{background-color:#e9e9e9}.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}.emoji-message-container{position:absolute;top:0;left:0;right:0}.emoji-message-container .sm-emoji-picker{height:200px;width:90%!important}.emoji-message-container .sm-emoji-picker .sm-emoji-header{overflow-x:auto;overflow-y:hidden}.reaction{position:absolute;bottom:0;border-radius:50%;display:flex;justify-content:center;align-items:center;background-color:rgba(100,100,100,.4);padding:5px;font-size:1.3em}.reaction>span{display:block;transform:translateY(-1px)}.mensagem__outros .reaction{right:-30px}.mensagem__principal .reaction{left:-30px}",
|
|
14479
14565
|
map: undefined,
|
|
14480
14566
|
media: undefined
|
|
14481
14567
|
});
|