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.
|
@@ -12504,13 +12504,13 @@ var __vue_component__$a = /*#__PURE__*/normalizeComponent({
|
|
|
12504
12504
|
staticRenderFns: __vue_staticRenderFns__$6
|
|
12505
12505
|
}, __vue_inject_styles__$6, __vue_script__$6, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, undefined, createInjectorSSR, undefined);
|
|
12506
12506
|
|
|
12507
|
-
var LinkPreview = __vue_component__$a
|
|
12508
|
-
var script$5 = {
|
|
12507
|
+
var LinkPreview = __vue_component__$a;var script$5 = {
|
|
12509
12508
|
components: {
|
|
12510
12509
|
AnexoMensagem: AnexoMensagem,
|
|
12511
12510
|
InteratividadeBotoes: InteratividadeBotoes,
|
|
12512
12511
|
InteratividadeFormulario: InteratividadeFormulario,
|
|
12513
|
-
LinkPreview: LinkPreview
|
|
12512
|
+
LinkPreview: LinkPreview,
|
|
12513
|
+
Picker: Picker
|
|
12514
12514
|
},
|
|
12515
12515
|
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"],
|
|
12516
12516
|
created: function created() {
|
|
@@ -12547,7 +12547,9 @@ var script$5 = {
|
|
|
12547
12547
|
disableDefaultUI: false
|
|
12548
12548
|
},
|
|
12549
12549
|
isMenuOpen: false,
|
|
12550
|
-
showMenuOptions: false
|
|
12550
|
+
showMenuOptions: false,
|
|
12551
|
+
isEmojisOpen: false,
|
|
12552
|
+
messageReaction: ""
|
|
12551
12553
|
};
|
|
12552
12554
|
},
|
|
12553
12555
|
computed: {
|
|
@@ -12580,19 +12582,28 @@ var script$5 = {
|
|
|
12580
12582
|
var tooltipStar = "";
|
|
12581
12583
|
|
|
12582
12584
|
if (this.iniDialogo == 1) {
|
|
12583
|
-
tooltipStar += this.dictionary[
|
|
12585
|
+
tooltipStar += this.dictionary["ini_sessao"] + "<br/>";
|
|
12584
12586
|
} else {
|
|
12585
|
-
tooltipStar += this.dictionary[
|
|
12587
|
+
tooltipStar += this.dictionary["ini_sessao_padrao"] + "<br/>";
|
|
12586
12588
|
}
|
|
12587
12589
|
|
|
12588
|
-
tooltipStar += this.dialogoId ? this.dictionary[
|
|
12589
|
-
tooltipStar += this.dialogoOrigem ? this.dictionary[
|
|
12590
|
-
tooltipStar += this.expSessao ? this.dictionary[
|
|
12590
|
+
tooltipStar += this.dialogoId ? this.dictionary["id_conversa"] + " - " + this.dialogoId + "<br/>" : "";
|
|
12591
|
+
tooltipStar += this.dialogoOrigem ? this.dictionary["origem_conversa"] + " - " + this.dialogoOrigem + "<br/>" : "";
|
|
12592
|
+
tooltipStar += this.expSessao ? this.dictionary["expiracao_sessao"] + " - " + formataTimezoneData(this.expSessao) + "<br/>" : "";
|
|
12591
12593
|
return tooltipStar;
|
|
12592
12594
|
},
|
|
12593
12595
|
validadeSeq: function validadeSeq() {
|
|
12594
12596
|
if (this.seq && this.seq.substring(0, 2) == "HW") return true;
|
|
12595
12597
|
this.reply = "reply reply-with-2-icons";
|
|
12598
|
+
return false;
|
|
12599
|
+
},
|
|
12600
|
+
hasAnyMenu: function hasAnyMenu() {
|
|
12601
|
+
if (!this.showMenu || _typeof(this.showMenu) !== "object") return false;
|
|
12602
|
+
|
|
12603
|
+
for (var key in this.showMenu) {
|
|
12604
|
+
if (this.showMenu.hasOwnProperty(key) && this.showMenu[key] === true) return true;
|
|
12605
|
+
}
|
|
12606
|
+
|
|
12596
12607
|
return false;
|
|
12597
12608
|
}
|
|
12598
12609
|
},
|
|
@@ -12610,7 +12621,7 @@ var script$5 = {
|
|
|
12610
12621
|
},
|
|
12611
12622
|
responderMensagemHandler: function responderMensagemHandler() {
|
|
12612
12623
|
if (this.isMenuOpen) this.closeMenu();
|
|
12613
|
-
this.$emit(
|
|
12624
|
+
this.$emit("responder-mensagem", {
|
|
12614
12625
|
messageIndex: this.messageIndex,
|
|
12615
12626
|
autor: this.autor,
|
|
12616
12627
|
origem: this.origem,
|
|
@@ -12630,9 +12641,29 @@ var script$5 = {
|
|
|
12630
12641
|
id_ext_msg: this.id_ext_msg
|
|
12631
12642
|
});
|
|
12632
12643
|
},
|
|
12644
|
+
reagirMensagemHandler: function reagirMensagemHandler() {
|
|
12645
|
+
if (this.isMenuOpen) this.closeMenu();
|
|
12646
|
+
this.isEmojisOpen = !this.isEmojisOpen;
|
|
12647
|
+
},
|
|
12648
|
+
addReaction: function addReaction(emoji) {
|
|
12649
|
+
this.messageReaction = this.messageReaction && this.messageReaction.hexa === emoji.hexa ? "" : {
|
|
12650
|
+
hexa: emoji.hexa,
|
|
12651
|
+
finalEmoji: emoji.finalEmoji
|
|
12652
|
+
};
|
|
12653
|
+
this.isEmojisOpen = false;
|
|
12654
|
+
this.$emit("reagir-mensagem", {
|
|
12655
|
+
emoji: emoji,
|
|
12656
|
+
seq: this.seq,
|
|
12657
|
+
id_ext_msg: this.id_ext_msg,
|
|
12658
|
+
hasEmojiReaction: this.messageReaction ? true : false
|
|
12659
|
+
});
|
|
12660
|
+
},
|
|
12661
|
+
closeEmojis: function closeEmojis() {
|
|
12662
|
+
this.isEmojisOpen = false;
|
|
12663
|
+
},
|
|
12633
12664
|
validateInterativity: function validateInterativity() {
|
|
12634
12665
|
try {
|
|
12635
|
-
if (this.interatividade && this.interatividade.formulario && this.interatividade.formulario.length || this.interatividade.list && this.interatividade.tipo ==
|
|
12666
|
+
if (this.interatividade && this.interatividade.formulario && this.interatividade.formulario.length || this.interatividade.list && this.interatividade.tipo == "listItem") {
|
|
12636
12667
|
return true;
|
|
12637
12668
|
}
|
|
12638
12669
|
|
|
@@ -12660,7 +12691,7 @@ var script$5 = {
|
|
|
12660
12691
|
return urlName;
|
|
12661
12692
|
},
|
|
12662
12693
|
removeUrlStickerByString: function removeUrlStickerByString(url) {
|
|
12663
|
-
var msg = this.message.replace("KSTICKERK ".concat(url),
|
|
12694
|
+
var msg = this.message.replace("KSTICKERK ".concat(url), "");
|
|
12664
12695
|
return msg;
|
|
12665
12696
|
},
|
|
12666
12697
|
getUrlSticker: function getUrlSticker() {
|
|
@@ -12675,7 +12706,7 @@ var script$5 = {
|
|
|
12675
12706
|
setCorMsg: function setCorMsg() {
|
|
12676
12707
|
try {
|
|
12677
12708
|
var root = document.documentElement;
|
|
12678
|
-
root.style.setProperty(
|
|
12709
|
+
root.style.setProperty("--message-color", this.corMsg);
|
|
12679
12710
|
this.adjustFontColor(this.corMsg);
|
|
12680
12711
|
} catch (e) {
|
|
12681
12712
|
console.error("Erro ao atribuir a cor as mensagens");
|
|
@@ -12755,15 +12786,15 @@ var script$5 = {
|
|
|
12755
12786
|
l = Math.round(l);
|
|
12756
12787
|
h = Math.round(360 * h);
|
|
12757
12788
|
var root = document.documentElement;
|
|
12758
|
-
root.style.setProperty(
|
|
12759
|
-
root.style.setProperty(
|
|
12760
|
-
root.style.setProperty(
|
|
12789
|
+
root.style.setProperty("--text-color", l <= 50 ? "#FFF" : "#111B21");
|
|
12790
|
+
root.style.setProperty("--files-bg", l <= 50 ? "rgba(255, 255, 255, 0.1)" : "rgba(100, 100, 100, 0.1)");
|
|
12791
|
+
root.style.setProperty("--files-bg-hover", l <= 50 ? "rgba(255, 255, 255, 0.3)" : "rgba(100, 100, 100, 0.3)");
|
|
12761
12792
|
} catch (e) {
|
|
12762
12793
|
console.error("Erro ao ajustar a cor da mensagem: ", e);
|
|
12763
12794
|
}
|
|
12764
12795
|
},
|
|
12765
12796
|
formatMsg: function formatMsg(msg) {
|
|
12766
|
-
if (this.status ==
|
|
12797
|
+
if (this.status == "O") return this.dictionary.msg_excluida ? this.dictionary.msg_excluida : "MENSAGEM DELETADA";
|
|
12767
12798
|
var regex = /(\n| )/g;
|
|
12768
12799
|
if (regex.test(msg)) msg = msg.replace(regex, "<br>");
|
|
12769
12800
|
return msg;
|
|
@@ -12869,7 +12900,7 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
12869
12900
|
return _vm.abrirPopup(info.value);
|
|
12870
12901
|
}
|
|
12871
12902
|
}
|
|
12872
|
-
}, [_vm._v("
|
|
12903
|
+
}, [_vm._v("\n " + _vm._s(info.textLink) + " "), _c('fa-icon', {
|
|
12873
12904
|
attrs: {
|
|
12874
12905
|
"icon": ['fas', 'map-marker-alt']
|
|
12875
12906
|
}
|
|
@@ -13081,10 +13112,10 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
13081
13112
|
domProps: {
|
|
13082
13113
|
"innerHTML": _vm._s(_vm.autor)
|
|
13083
13114
|
}
|
|
13084
|
-
}), _vm._v(" "), _vm.
|
|
13115
|
+
}), _vm._v(" "), _vm.hasAnyMenu ? _c('div', {
|
|
13085
13116
|
staticClass: "menu-primario",
|
|
13086
13117
|
class: _vm.origem
|
|
13087
|
-
}, [_c('span', {
|
|
13118
|
+
}, [_vm.showMenu.reply ? _c('span', {
|
|
13088
13119
|
directives: [{
|
|
13089
13120
|
name: "tippy",
|
|
13090
13121
|
rawName: "v-tippy"
|
|
@@ -13100,7 +13131,35 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
13100
13131
|
attrs: {
|
|
13101
13132
|
"icon": ['fas', 'reply']
|
|
13102
13133
|
}
|
|
13103
|
-
})], 1)
|
|
13134
|
+
})], 1) : _vm._e(), _vm._v(" "), _vm.showMenu.reaction ? _c('span', {
|
|
13135
|
+
directives: [{
|
|
13136
|
+
name: "tippy",
|
|
13137
|
+
rawName: "v-tippy"
|
|
13138
|
+
}],
|
|
13139
|
+
staticClass: "menu-mensagem",
|
|
13140
|
+
attrs: {
|
|
13141
|
+
"content": _vm.dictionary.tit_reagir_msg
|
|
13142
|
+
},
|
|
13143
|
+
on: {
|
|
13144
|
+
"click": _vm.reagirMensagemHandler
|
|
13145
|
+
}
|
|
13146
|
+
}, [_c('fa-icon', {
|
|
13147
|
+
attrs: {
|
|
13148
|
+
"icon": ['fas', 'smile']
|
|
13149
|
+
}
|
|
13150
|
+
})], 1) : _vm._e()]) : _vm._e(), _vm._v(" "), _vm.isEmojisOpen ? _c('div', {
|
|
13151
|
+
directives: [{
|
|
13152
|
+
name: "on-clickaway",
|
|
13153
|
+
rawName: "v-on-clickaway",
|
|
13154
|
+
value: _vm.closeEmojis,
|
|
13155
|
+
expression: "closeEmojis"
|
|
13156
|
+
}],
|
|
13157
|
+
staticClass: "emoji-message-container"
|
|
13158
|
+
}, [_c('Picker', {
|
|
13159
|
+
on: {
|
|
13160
|
+
"insert-emoji": _vm.addReaction
|
|
13161
|
+
}
|
|
13162
|
+
})], 1) : _vm._e(), _vm._v(" "), _vm.isMenuOpen ? _c('transition', {
|
|
13104
13163
|
attrs: {
|
|
13105
13164
|
"name": "fade",
|
|
13106
13165
|
"mode": "out-in"
|
|
@@ -13114,11 +13173,33 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
13114
13173
|
}],
|
|
13115
13174
|
staticClass: "menu-flutuante",
|
|
13116
13175
|
class: _vm.origem
|
|
13117
|
-
}, [_c('li', {
|
|
13176
|
+
}, [_vm.showMenu.reply ? _c('li', {
|
|
13118
13177
|
on: {
|
|
13119
13178
|
"click": _vm.responderMensagemHandler
|
|
13120
13179
|
}
|
|
13121
|
-
}, [_c('span', [_vm._v(" " + _vm._s(_vm.dictionary.tit_responder_msg) + " ")])])
|
|
13180
|
+
}, [_c('span', [_vm._v(" " + _vm._s(_vm.dictionary.tit_responder_msg) + " ")])]) : _vm._e(), _vm._v(" "), _vm.showMenu.reaction ? _c('li', {
|
|
13181
|
+
on: {
|
|
13182
|
+
"click": _vm.reagirMensagemHandler
|
|
13183
|
+
}
|
|
13184
|
+
}, [_c('span', [_vm._v(" " + _vm._s(_vm.dictionary.tit_reagir_msg) + " ")])]) : _vm._e()])]) : _vm._e(), _vm._v(" "), _vm.messageReaction ? _c('transition', {
|
|
13185
|
+
attrs: {
|
|
13186
|
+
"name": "fade",
|
|
13187
|
+
"mode": "out-in"
|
|
13188
|
+
}
|
|
13189
|
+
}, [_c('span', {
|
|
13190
|
+
directives: [{
|
|
13191
|
+
name: "tippy",
|
|
13192
|
+
rawName: "v-tippy"
|
|
13193
|
+
}],
|
|
13194
|
+
staticClass: "reaction",
|
|
13195
|
+
attrs: {
|
|
13196
|
+
"content": _vm.dictionary.tit_mensagem_reagida + " " + _vm.messageReaction.finalEmoji
|
|
13197
|
+
}
|
|
13198
|
+
}, [_c('span', {
|
|
13199
|
+
domProps: {
|
|
13200
|
+
"innerHTML": _vm._s(_vm.messageReaction.finalEmoji)
|
|
13201
|
+
}
|
|
13202
|
+
})])]) : _vm._e()], 2)], 1) : _vm._e();
|
|
13122
13203
|
};
|
|
13123
13204
|
|
|
13124
13205
|
var __vue_staticRenderFns__$5 = [];
|
|
@@ -13126,8 +13207,8 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
13126
13207
|
|
|
13127
13208
|
var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
13128
13209
|
if (!inject) return;
|
|
13129
|
-
inject("data-v-
|
|
13130
|
-
source: ":root{--message-color:#373737;--text-color:#
|
|
13210
|
+
inject("data-v-1c16a2ec_0", {
|
|
13211
|
+
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}",
|
|
13131
13212
|
map: undefined,
|
|
13132
13213
|
media: undefined
|
|
13133
13214
|
});
|
|
@@ -13138,7 +13219,7 @@ var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
|
13138
13219
|
var __vue_scope_id__$5 = undefined;
|
|
13139
13220
|
/* module identifier */
|
|
13140
13221
|
|
|
13141
|
-
var __vue_module_identifier__$5 = "data-v-
|
|
13222
|
+
var __vue_module_identifier__$5 = "data-v-1c16a2ec";
|
|
13142
13223
|
/* functional template */
|
|
13143
13224
|
|
|
13144
13225
|
var __vue_is_functional_template__$5 = false;
|