vue-intergrall-plugins 1.0.79 → 1.0.81
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 +21 -99
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +16 -66
- package/package.json +1 -1
- package/src/lib-components/Messages/ChatMessages.vue +33 -37
- package/src/lib-components/Messages/InteratividadeBotoes.vue +41 -42
- package/src/lib-components/Messages/InteratividadeFormulario.vue +55 -131
|
@@ -2935,14 +2935,7 @@ var resetTargets = function resetTargets($el, inputClass, parentClass, defaultHe
|
|
|
2935
2935
|
parentTargets.forEach(function (target) {
|
|
2936
2936
|
target.style.height = defaultHeight;
|
|
2937
2937
|
});
|
|
2938
|
-
};function
|
|
2939
|
-
if (!data || data == '1111-11-11') return '';
|
|
2940
|
-
data = data.split("-");
|
|
2941
|
-
data = data.reverse();
|
|
2942
|
-
data = data.join("/");
|
|
2943
|
-
return data;
|
|
2944
|
-
}
|
|
2945
|
-
function formataDataHora(dataHora, origem, cortarSegundos, dicionario) {
|
|
2938
|
+
};function formataDataHora(dataHora, origem, cortarSegundos, dicionario) {
|
|
2946
2939
|
dicionario = dicionario ? dicionario : {
|
|
2947
2940
|
msg_divisao_data_hora: ' - '
|
|
2948
2941
|
};
|
|
@@ -7685,11 +7678,6 @@ var InteratividadePopup = __vue_component__$l;var script$e = {
|
|
|
7685
7678
|
type: Object,
|
|
7686
7679
|
required: true
|
|
7687
7680
|
},
|
|
7688
|
-
infoCanal: {
|
|
7689
|
-
type: [Object, Array],
|
|
7690
|
-
required: false,
|
|
7691
|
-
default: {}
|
|
7692
|
-
},
|
|
7693
7681
|
dominio: {
|
|
7694
7682
|
type: String,
|
|
7695
7683
|
required: true
|
|
@@ -7703,32 +7691,6 @@ var InteratividadePopup = __vue_component__$l;var script$e = {
|
|
|
7703
7691
|
required: false
|
|
7704
7692
|
}
|
|
7705
7693
|
},
|
|
7706
|
-
computed: {
|
|
7707
|
-
situation: function situation() {
|
|
7708
|
-
try {
|
|
7709
|
-
var SITUACAO = this.infoCanal.SITUACAO;
|
|
7710
|
-
return SITUACAO ? SITUACAO : null;
|
|
7711
|
-
} catch (e) {
|
|
7712
|
-
console.error("Erro ao gerar a situacao do atendimento");
|
|
7713
|
-
console.error(e);
|
|
7714
|
-
}
|
|
7715
|
-
},
|
|
7716
|
-
deadline: function deadline() {
|
|
7717
|
-
try {
|
|
7718
|
-
var _this$infoCanal = this.infoCanal,
|
|
7719
|
-
PRAZO = _this$infoCanal.PRAZO,
|
|
7720
|
-
NOME_CAMPO_PRAZO = _this$infoCanal.NOME_CAMPO_PRAZO;
|
|
7721
|
-
return {
|
|
7722
|
-
text: PRAZO ? formataData(PRAZO) : "---",
|
|
7723
|
-
title: NOME_CAMPO_PRAZO ? NOME_CAMPO_PRAZO : this.dictionary.tit_prazo
|
|
7724
|
-
};
|
|
7725
|
-
} catch (e) {
|
|
7726
|
-
console.error("Erro ao gerar o prazo do atendimento");
|
|
7727
|
-
console.error(e);
|
|
7728
|
-
return {};
|
|
7729
|
-
}
|
|
7730
|
-
}
|
|
7731
|
-
},
|
|
7732
7694
|
mounted: function mounted() {
|
|
7733
7695
|
if (this.validateInterativity()) {
|
|
7734
7696
|
this.verifyInfoAditional();
|
|
@@ -7804,12 +7766,7 @@ var __vue_render__$e = function __vue_render__() {
|
|
|
7804
7766
|
var _c = _vm._self._c || _h;
|
|
7805
7767
|
return _c('div', {
|
|
7806
7768
|
staticClass: "interatividade"
|
|
7807
|
-
}, [_vm.
|
|
7808
|
-
staticClass: "mr-5",
|
|
7809
|
-
attrs: {
|
|
7810
|
-
"icon": ['fas', 'calendar']
|
|
7811
|
-
}
|
|
7812
|
-
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.formataDataHora(_vm.infoCanal.DATA_ABERTURA)) + "\n "))], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"interatividade-form-body\">", "</div>", [_vm._ssrNode(_vm._ssrList(_vm.informacao, function (form) {
|
|
7769
|
+
}, [_vm.informacao.length ? [_vm._ssrNode("<div class=\"interatividade-form-body\">", "</div>", [_vm._ssrNode(_vm._ssrList(_vm.informacao, function (form) {
|
|
7813
7770
|
return "<div class=\"interatividade-info-form\">" + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-titulo-form\">" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO)) + "</p>" : "<!---->") + " " + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-description-form\">" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div>";
|
|
7814
7771
|
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\">" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_info_adicional) + "\n ") + "</div>" : "<!---->") + " <div class=\"interatividade-form-body\">" + _vm._ssrList(_vm.informacaoAdicional, function (form) {
|
|
7815
7772
|
return "<div class=\"interatividade-add-info-form\"><div class=\"divisor-form-info-aditional\"><div class=\"info-aditional\">" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-titulo-form\">" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO + ': ')) + "</p>" : "<!---->") + "</div> <div class=\"info-aditional\">" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-description-form\">" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div></div></div>";
|
|
@@ -7841,7 +7798,7 @@ var __vue_staticRenderFns__$e = [];
|
|
|
7841
7798
|
/* style */
|
|
7842
7799
|
var __vue_inject_styles__$e = function __vue_inject_styles__(inject) {
|
|
7843
7800
|
if (!inject) return;
|
|
7844
|
-
inject("data-v-
|
|
7801
|
+
inject("data-v-3090f7e0_0", {
|
|
7845
7802
|
source: ".divisor-form-info-aditional{display:flex;align-items:center;justify-content:space-around}.info-aditional{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header{background-color:#efefef;margin-top:5px;border-top-right-radius:10px;border-top-left-radius:10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;justify-content:space-between;display:flex;color:#333;font-weight:700;font-size:14.4px}.interatividade-form-body{padding:0 10px;background:#fff;border-right:1px solid #efefef;border-left:1px solid #efefef;border-bottom-left-radius:10px;border-bottom-right-radius:10px;padding-bottom:10px}.interatividade{margin:10px 0}.interatividade-titulo-form{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden;max-width:100%;margin:0;padding:0;padding-top:5px}.interatividade-description-form{overflow:hidden;max-width:100%;margin:0;padding:0}.text-dark{color:#333}.ml-3{margin-left:3px}.flex-wrap{flex-wrap:wrap}.align-items-center{align-items:center}.d-flex{display:flex}.align-items-end{align-items:flex-end}.flex-column{flex-direction:column}.text-bold{font-weight:700}.m-5{margin:5px}.mb-5{margin-bottom:5px}.mx-5{margin-left:5px;margin-right:5px}.cursor-pointer{cursor:pointer}.bg-dark-white-2{background-color:#f7f7f7}.border-radius-10{border-radius:10px}.w-100{width:100%}.overflow-hidden{overflow:hidden}.mt-10{margin-top:10px}.flex-wrap{flex-wrap:wrap}.d-flex{display:flex}.p-10{padding:10px}.mb-5{margin-bottom:5px}.mb-10{margin-bottom:10px}.d-flex-center{display:flex;justify-content:center;align-items:center}.fs-_85{font-size:13.6px}.text-ellipsis{text-overflow:ellipsis}.text-left{text-align:left}.text-ellipsis{white-space:nowrap;overflow:hidden}.ml-5{margin-left:5px}.text-shadow{text-shadow:0 0 #000}.justify-content-between{justify-content:space-between}.mr-5{margin-right:5px}",
|
|
7846
7803
|
map: undefined,
|
|
7847
7804
|
media: undefined
|
|
@@ -7850,7 +7807,7 @@ var __vue_inject_styles__$e = function __vue_inject_styles__(inject) {
|
|
|
7850
7807
|
/* scoped */
|
|
7851
7808
|
var __vue_scope_id__$e = undefined;
|
|
7852
7809
|
/* module identifier */
|
|
7853
|
-
var __vue_module_identifier__$e = "data-v-
|
|
7810
|
+
var __vue_module_identifier__$e = "data-v-3090f7e0";
|
|
7854
7811
|
/* functional template */
|
|
7855
7812
|
var __vue_is_functional_template__$e = false;
|
|
7856
7813
|
/* style inject shadow dom */
|
|
@@ -8639,7 +8596,11 @@ var __vue_render__$9 = function __vue_render__() {
|
|
|
8639
8596
|
var _c = _vm._self._c || _h;
|
|
8640
8597
|
return _c('div', {
|
|
8641
8598
|
staticClass: "interatividade"
|
|
8642
|
-
}, [_c('
|
|
8599
|
+
}, [_vm.interatividade.parameters && _vm.interatividade.parameters.button && _vm.interatividade.parameters.button.type === 'dynamicURL' ? _vm._ssrNode("<div class=\"interatividade-btn\">", "</div>", [_vm._ssrNode("<a" + _vm._ssrAttr("href", _vm.interatividade.parameters.button.text) + " target=\"_blank\" rel=\"noreferrer noopener\" class=\"interatividade-link\">", "</a>", [_vm._ssrNode("\n Acessar "), _c('fa-icon', {
|
|
8600
|
+
attrs: {
|
|
8601
|
+
"icon": ['fas', 'external-link-square-alt']
|
|
8602
|
+
}
|
|
8603
|
+
})], 2)]) : _vm._e(), _vm._ssrNode(" "), _c('transition', {
|
|
8643
8604
|
attrs: {
|
|
8644
8605
|
"name": "show-x"
|
|
8645
8606
|
}
|
|
@@ -8662,8 +8623,8 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
8662
8623
|
/* style */
|
|
8663
8624
|
var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
8664
8625
|
if (!inject) return;
|
|
8665
|
-
inject("data-v-
|
|
8666
|
-
source: ".interatividade-btn{width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff;color:#111b21;padding:10px 12px;border-radius:5px;margin-bottom:10px}.interatividade-btn:nth-child(1){margin-top:10px}.interatividade-titulo{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape{color:#818181;margin-top:5px}.interatividade-lista-link{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link:hover{color:#00628f}",
|
|
8626
|
+
inject("data-v-27e0dc81_0", {
|
|
8627
|
+
source: ".interatividade-btn{width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff;color:#111b21;padding:10px 12px;border-radius:5px;margin-bottom:10px}.interatividade-link{color:#0c5c8f!important;text-decoration:none;display:flex;align-items:center;justify-content:center;width:100%;gap:5px}.interatividade-btn:nth-child(1){margin-top:10px}.interatividade-titulo{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape{color:#818181;margin-top:5px}.interatividade-lista-link{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link:hover{color:#00628f}",
|
|
8667
8628
|
map: undefined,
|
|
8668
8629
|
media: undefined
|
|
8669
8630
|
});
|
|
@@ -8671,7 +8632,7 @@ var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
|
8671
8632
|
/* scoped */
|
|
8672
8633
|
var __vue_scope_id__$9 = undefined;
|
|
8673
8634
|
/* module identifier */
|
|
8674
|
-
var __vue_module_identifier__$9 = "data-v-
|
|
8635
|
+
var __vue_module_identifier__$9 = "data-v-27e0dc81";
|
|
8675
8636
|
/* functional template */
|
|
8676
8637
|
var __vue_is_functional_template__$9 = false;
|
|
8677
8638
|
/* style inject shadow dom */
|
|
@@ -8858,7 +8819,6 @@ var LinkPreview = __vue_component__$d;var script$7 = {
|
|
|
8858
8819
|
data: function data() {
|
|
8859
8820
|
return {
|
|
8860
8821
|
strTooltipAux: "",
|
|
8861
|
-
linkAux: "",
|
|
8862
8822
|
urlSticker: "",
|
|
8863
8823
|
urlFileName: "",
|
|
8864
8824
|
message: "",
|
|
@@ -8866,15 +8826,6 @@ var LinkPreview = __vue_component__$d;var script$7 = {
|
|
|
8866
8826
|
center: {},
|
|
8867
8827
|
marker: {},
|
|
8868
8828
|
infos: [],
|
|
8869
|
-
infoCanalTeste: {
|
|
8870
|
-
PRAZO: "2022-05-05",
|
|
8871
|
-
SITUACAO: {
|
|
8872
|
-
cod: "3",
|
|
8873
|
-
desc: "Em analise pelo fornecedor",
|
|
8874
|
-
cor: "#03A64A"
|
|
8875
|
-
},
|
|
8876
|
-
DATA_ABERTURA: "2022-05-03 09:43:43"
|
|
8877
|
-
},
|
|
8878
8829
|
mapOptions: {
|
|
8879
8830
|
zoomControl: true,
|
|
8880
8831
|
mapTypeControl: false,
|
|
@@ -9007,7 +8958,7 @@ var LinkPreview = __vue_component__$d;var script$7 = {
|
|
|
9007
8958
|
},
|
|
9008
8959
|
validateInterativity: function validateInterativity() {
|
|
9009
8960
|
try {
|
|
9010
|
-
if (this.interatividade && this.interatividade.formulario && this.interatividade.formulario.length || this.interatividade.list && this.interatividade.tipo == "listItem") {
|
|
8961
|
+
if (this.interatividade && this.interatividade.formulario && this.interatividade.formulario.length || this.interatividade && this.interatividade.list && this.interatividade.tipo == "listItem") {
|
|
9011
8962
|
return true;
|
|
9012
8963
|
}
|
|
9013
8964
|
return false;
|
|
@@ -9131,7 +9082,7 @@ var LinkPreview = __vue_component__$d;var script$7 = {
|
|
|
9131
9082
|
scrollToMessage: function scrollToMessage() {
|
|
9132
9083
|
this.$emit("scrollToMessage", {
|
|
9133
9084
|
currentElem: this.$el,
|
|
9134
|
-
|
|
9085
|
+
isReply: this.isReply
|
|
9135
9086
|
});
|
|
9136
9087
|
},
|
|
9137
9088
|
formatMsg: function formatMsg(msg) {
|
|
@@ -9174,7 +9125,6 @@ var __vue_render__$7 = function __vue_render__() {
|
|
|
9174
9125
|
attrs: {
|
|
9175
9126
|
"interatividade": _vm.interatividade,
|
|
9176
9127
|
"dominio": _vm.dominio,
|
|
9177
|
-
"infoCanal": _vm.infoCanalTeste,
|
|
9178
9128
|
"anexos": _vm.anexos,
|
|
9179
9129
|
"dictionary": _vm.dictionary
|
|
9180
9130
|
}
|
|
@@ -9610,7 +9560,7 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
9610
9560
|
/* style */
|
|
9611
9561
|
var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
9612
9562
|
if (!inject) return;
|
|
9613
|
-
inject("data-v-
|
|
9563
|
+
inject("data-v-0f47ea80_0", {
|
|
9614
9564
|
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:12px;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:12px;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:9.6px;color:#67a332;width:14.4px;height:14.4px;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:11.2px}.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:6.4px;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:11.2px;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:9.6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.menu-primario{transition:opacity 150ms ease-in-out;position:absolute;font-size:11.2px;top:2px;display:flex;gap:5px;padding:2px 4px}.menu-primario.principal{left:2px;color:var(--text-color);background-color:var(--message-color)}.menu-primario.outros{right:2px;color:var(--text-color);background-color:#fff}.menu-primario.outros>span:nth-child(1){order:10}.menu-mensagem{cursor:pointer;padding:1px;opacity:.7;transition:opacity .1s ease-in-out}.menu-mensagem:active,.menu-mensagem:focus,.menu-mensagem:hover{opacity:1}.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;z-index:1;width:300px;height:250px}.emoji-message-container .sm-emoji-picker{width:300px;height:250px}.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;min-width:1.8em;min-height:1.8em;max-width:1.8em;max-height:1.8em}.reaction>span{display:block;transform:translateY(-1px)}.mensagem__outros .reaction{right:-30px}.mensagem__principal .reaction{left:-30px}",
|
|
9615
9565
|
map: undefined,
|
|
9616
9566
|
media: undefined
|
|
@@ -9619,7 +9569,7 @@ var __vue_inject_styles__$7 = function __vue_inject_styles__(inject) {
|
|
|
9619
9569
|
/* scoped */
|
|
9620
9570
|
var __vue_scope_id__$7 = undefined;
|
|
9621
9571
|
/* module identifier */
|
|
9622
|
-
var __vue_module_identifier__$7 = "data-v-
|
|
9572
|
+
var __vue_module_identifier__$7 = "data-v-0f47ea80";
|
|
9623
9573
|
/* functional template */
|
|
9624
9574
|
var __vue_is_functional_template__$7 = false;
|
|
9625
9575
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="'mensagem__' + origem" v-if="origem && !erro" :id="`a${messageIndex ? messageIndex : randomizeValue}`">
|
|
3
3
|
<InteratividadeFormulario v-if="interatividade && validateInterativity()" :interatividade="interatividade"
|
|
4
|
-
:dominio="dominio" :
|
|
4
|
+
:dominio="dominio" :anexos="anexos" :dictionary="dictionary" />
|
|
5
5
|
<div v-else class="mensagem" :class="{ mapa, 'hist-msg': histMsg, 'max-w-60': link && !mapa }">
|
|
6
6
|
<!-- Estilo da mensagem do tipo reply (que foi respondida) -->
|
|
7
7
|
<div v-if="isReply && replyMessage" class="mensagem-reply" :class="`message-reply-${origem}`">
|
|
@@ -156,7 +156,7 @@ import InteratividadeFormulario from "./InteratividadeFormulario";
|
|
|
156
156
|
import Picker from "../Chat/Picker";
|
|
157
157
|
import { formataTimezoneData } from "../../services/textFormatting";
|
|
158
158
|
import LinkPreview from "./LinkPreview";
|
|
159
|
-
import Clickaway from
|
|
159
|
+
import Clickaway from "@/directives/clickaway";
|
|
160
160
|
|
|
161
161
|
export default {
|
|
162
162
|
components: {
|
|
@@ -215,12 +215,11 @@ export default {
|
|
|
215
215
|
if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
|
|
216
216
|
},
|
|
217
217
|
directives: {
|
|
218
|
-
clickaway: Clickaway
|
|
218
|
+
clickaway: Clickaway,
|
|
219
219
|
},
|
|
220
220
|
data() {
|
|
221
221
|
return {
|
|
222
222
|
strTooltipAux: "",
|
|
223
|
-
linkAux: "",
|
|
224
223
|
urlSticker: "",
|
|
225
224
|
urlFileName: "",
|
|
226
225
|
message: "",
|
|
@@ -228,11 +227,6 @@ export default {
|
|
|
228
227
|
center: {},
|
|
229
228
|
marker: {},
|
|
230
229
|
infos: [],
|
|
231
|
-
infoCanalTeste: {
|
|
232
|
-
PRAZO: "2022-05-05",
|
|
233
|
-
SITUACAO: { cod: "3", desc: "Em analise pelo fornecedor", cor: "#03A64A" },
|
|
234
|
-
DATA_ABERTURA: "2022-05-03 09:43:43",
|
|
235
|
-
},
|
|
236
230
|
mapOptions: {
|
|
237
231
|
zoomControl: true,
|
|
238
232
|
mapTypeControl: false,
|
|
@@ -296,8 +290,8 @@ export default {
|
|
|
296
290
|
|
|
297
291
|
if (this.tipo_origem) {
|
|
298
292
|
tooltipStar += `${this.dictionary["tipo_origem"]}: ${this.dictionary[`tipo_origem_${this.tipo_origem}`]
|
|
299
|
-
|
|
300
|
-
|
|
293
|
+
? this.dictionary[`tipo_origem_${this.tipo_origem}`]
|
|
294
|
+
: this.tipo_origem
|
|
301
295
|
}<br/>`;
|
|
302
296
|
}
|
|
303
297
|
|
|
@@ -380,7 +374,9 @@ export default {
|
|
|
380
374
|
(this.interatividade &&
|
|
381
375
|
this.interatividade.formulario &&
|
|
382
376
|
this.interatividade.formulario.length) ||
|
|
383
|
-
(this.interatividade
|
|
377
|
+
(this.interatividade &&
|
|
378
|
+
this.interatividade.list &&
|
|
379
|
+
this.interatividade.tipo == "listItem")
|
|
384
380
|
) {
|
|
385
381
|
return true;
|
|
386
382
|
}
|
|
@@ -519,8 +515,8 @@ export default {
|
|
|
519
515
|
scrollToMessage() {
|
|
520
516
|
this.$emit("scrollToMessage", {
|
|
521
517
|
currentElem: this.$el,
|
|
522
|
-
|
|
523
|
-
})
|
|
518
|
+
isReply: this.isReply,
|
|
519
|
+
});
|
|
524
520
|
},
|
|
525
521
|
formatMsg(msg) {
|
|
526
522
|
if (this.status == "O")
|
|
@@ -799,7 +795,7 @@ export default {
|
|
|
799
795
|
.menu-mensagem {
|
|
800
796
|
cursor: pointer;
|
|
801
797
|
padding: 1px;
|
|
802
|
-
opacity: .7;
|
|
798
|
+
opacity: 0.7;
|
|
803
799
|
transition: opacity 100ms ease-in-out;
|
|
804
800
|
}
|
|
805
801
|
|
|
@@ -913,8 +909,8 @@ export default {
|
|
|
913
909
|
}
|
|
914
910
|
|
|
915
911
|
/* .mensagem__outros .check{
|
|
916
|
-
|
|
917
|
-
|
|
912
|
+
display: none
|
|
913
|
+
} */
|
|
918
914
|
.mensagem__outros>.autor-mensagem {
|
|
919
915
|
left: 5px;
|
|
920
916
|
color: #333;
|
|
@@ -976,27 +972,27 @@ export default {
|
|
|
976
972
|
}
|
|
977
973
|
|
|
978
974
|
/* .emoji-message-container {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
975
|
+
z-index: 1;
|
|
976
|
+
overflow: hidden;
|
|
977
|
+
width: 300px;
|
|
978
|
+
height: 250px;
|
|
979
|
+
|
|
980
|
+
>.sm-emoji-picker {
|
|
981
|
+
position: relative;
|
|
982
|
+
width: 300px;
|
|
983
|
+
height: 250px;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
983
986
|
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
width: $size;
|
|
994
|
-
height: $size;
|
|
995
|
-
min-width: $size;
|
|
996
|
-
min-height: $size;
|
|
997
|
-
max-width: $size;
|
|
998
|
-
max-height: $size;
|
|
999
|
-
} */
|
|
987
|
+
.mensagem .reaction {
|
|
988
|
+
$size: 1.8em;
|
|
989
|
+
width: $size;
|
|
990
|
+
height: $size;
|
|
991
|
+
min-width: $size;
|
|
992
|
+
min-height: $size;
|
|
993
|
+
max-width: $size;
|
|
994
|
+
max-height: $size;
|
|
995
|
+
} */
|
|
1000
996
|
|
|
1001
997
|
.emoji-message-container .sm-emoji-picker {
|
|
1002
998
|
width: 300px;
|
|
@@ -1,55 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="interatividade">
|
|
3
|
+
<div v-if="
|
|
4
|
+
interatividade.parameters &&
|
|
5
|
+
interatividade.parameters.button &&
|
|
6
|
+
interatividade.parameters.button.type === 'dynamicURL'
|
|
7
|
+
" class="interatividade-btn">
|
|
8
|
+
<a :href="interatividade.parameters.button.text" target="_blank" rel="noreferrer noopener"
|
|
9
|
+
class="interatividade-link">
|
|
10
|
+
Acessar <fa-icon :icon="['fas', 'external-link-square-alt']" />
|
|
11
|
+
</a>
|
|
12
|
+
</div>
|
|
3
13
|
<transition name="show-x">
|
|
4
|
-
<InteratividadePopup
|
|
5
|
-
|
|
6
|
-
:lista="listaExpandida"
|
|
7
|
-
:titulo="objItens.list.title"
|
|
8
|
-
@close="listaEstaAberta = false"
|
|
9
|
-
/>
|
|
14
|
+
<InteratividadePopup v-if="listaEstaAberta" :lista="listaExpandida" :titulo="objItens.list.title"
|
|
15
|
+
@close="listaEstaAberta = false" />
|
|
10
16
|
</transition>
|
|
11
17
|
<template v-if="arrBotoes.length">
|
|
12
|
-
<div
|
|
13
|
-
v-for="(btn, index) in arrBotoes"
|
|
14
|
-
:key="index"
|
|
15
|
-
:title="btn.titulo"
|
|
16
|
-
class="interatividade-btn"
|
|
17
|
-
>
|
|
18
|
+
<div v-for="(btn, index) in arrBotoes" :key="index" :title="btn.titulo" class="interatividade-btn">
|
|
18
19
|
<p v-html="btn.titulo" class="interatividade-titulo"></p>
|
|
19
20
|
</div>
|
|
20
21
|
</template>
|
|
21
22
|
<template v-else-if="Object.keys(objItens).length">
|
|
22
|
-
<div
|
|
23
|
-
class="interatividade-lista"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class="interatividade-lista-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
v-if="objItens.header && objItens.header.text"
|
|
32
|
-
v-html="objItens.header.text"
|
|
33
|
-
class="interatividade-lista-titulo"
|
|
34
|
-
></p>
|
|
35
|
-
<p
|
|
36
|
-
v-if="objItens.body && objItens.body.text"
|
|
37
|
-
v-html="objItens.body.text"
|
|
38
|
-
class="interatividade-lista-corpo"
|
|
39
|
-
></p>
|
|
40
|
-
<p
|
|
41
|
-
v-if="objItens.footer && objItens.footer.text"
|
|
42
|
-
v-html="objItens.footer.text"
|
|
43
|
-
class="interatividade-lista-rodape"
|
|
44
|
-
></p>
|
|
23
|
+
<div class="interatividade-lista" :class="tipoBotoes == 'listItem' ? 'bg-none' : ''">
|
|
24
|
+
<div class="interatividade-lista-conteudo"
|
|
25
|
+
:class="tipoBotoes == 'listItem' ? 'border-bottom-none padding-none' : ''">
|
|
26
|
+
<p v-if="objItens.header && objItens.header.text" v-html="objItens.header.text"
|
|
27
|
+
class="interatividade-lista-titulo"></p>
|
|
28
|
+
<p v-if="objItens.body && objItens.body.text" v-html="objItens.body.text" class="interatividade-lista-corpo">
|
|
29
|
+
</p>
|
|
30
|
+
<p v-if="objItens.footer && objItens.footer.text" v-html="objItens.footer.text"
|
|
31
|
+
class="interatividade-lista-rodape"></p>
|
|
45
32
|
</div>
|
|
46
|
-
<p
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@click="expandirLista"
|
|
50
|
-
:class="tipoBotoes == 'listItem' ? 'bg-white border-radius-5 mt-5' : ''"
|
|
51
|
-
class="interatividade-lista-link"
|
|
52
|
-
></p>
|
|
33
|
+
<p v-if="objItens.list && objItens.list.title" v-html="objItens.list.title" @click="expandirLista"
|
|
34
|
+
:class="tipoBotoes == 'listItem' ? 'bg-white border-radius-5 mt-5' : ''" class="interatividade-lista-link">
|
|
35
|
+
</p>
|
|
53
36
|
</div>
|
|
54
37
|
</template>
|
|
55
38
|
</div>
|
|
@@ -115,9 +98,21 @@ export default {
|
|
|
115
98
|
border-radius: 5px;
|
|
116
99
|
margin-bottom: 10px;
|
|
117
100
|
}
|
|
101
|
+
|
|
102
|
+
.interatividade-link {
|
|
103
|
+
color: #0c5c8f !important;
|
|
104
|
+
text-decoration: none;
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
width: 100%;
|
|
109
|
+
gap: 5px;
|
|
110
|
+
}
|
|
111
|
+
|
|
118
112
|
.interatividade-btn:nth-child(1) {
|
|
119
113
|
margin-top: 10px;
|
|
120
114
|
}
|
|
115
|
+
|
|
121
116
|
.interatividade-titulo {
|
|
122
117
|
white-space: nowrap;
|
|
123
118
|
text-overflow: ellipsis;
|
|
@@ -140,15 +135,18 @@ export default {
|
|
|
140
135
|
padding: 10px;
|
|
141
136
|
border-bottom: 1px solid #d7d7d7;
|
|
142
137
|
}
|
|
138
|
+
|
|
143
139
|
.interatividade-lista-titulo {
|
|
144
140
|
font-weight: bold;
|
|
145
141
|
font-size: 1.2em;
|
|
146
142
|
margin-bottom: 10px;
|
|
147
143
|
}
|
|
144
|
+
|
|
148
145
|
.interatividade-lista-rodape {
|
|
149
146
|
color: #818181;
|
|
150
147
|
margin-top: 5px;
|
|
151
148
|
}
|
|
149
|
+
|
|
152
150
|
.interatividade-lista-link {
|
|
153
151
|
width: 100%;
|
|
154
152
|
text-align: center;
|
|
@@ -157,6 +155,7 @@ export default {
|
|
|
157
155
|
cursor: pointer;
|
|
158
156
|
transition: color 200ms ease-in-out;
|
|
159
157
|
}
|
|
158
|
+
|
|
160
159
|
.interatividade-lista-link:hover {
|
|
161
160
|
color: rgb(0, 98, 143);
|
|
162
161
|
}
|