vue-intergrall-plugins 0.0.178 → 0.0.181
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 +22 -14
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +84 -31
- package/package.json +1 -1
- package/src/lib-components/Messages/ChatMessages.vue +8 -7
- package/src/lib-components/Messages/InteratividadeFormulario.vue +11 -2
|
@@ -11040,7 +11040,7 @@ var script$4 = {
|
|
|
11040
11040
|
methods: {
|
|
11041
11041
|
validateInterativity: function validateInterativity() {
|
|
11042
11042
|
try {
|
|
11043
|
-
if (this.interatividade.formulario) {
|
|
11043
|
+
if (this.interatividade.formulario && this.interatividade.formulario.length) {
|
|
11044
11044
|
return true;
|
|
11045
11045
|
}
|
|
11046
11046
|
} catch (error) {
|
|
@@ -11048,6 +11048,8 @@ var script$4 = {
|
|
|
11048
11048
|
}
|
|
11049
11049
|
},
|
|
11050
11050
|
verifyInfoAditional: function verifyInfoAditional() {
|
|
11051
|
+
var _this = this;
|
|
11052
|
+
|
|
11051
11053
|
try {
|
|
11052
11054
|
var formulario = this.interatividade.formulario;
|
|
11053
11055
|
formulario = formulario ? formulario : [];
|
|
@@ -11064,7 +11066,13 @@ var script$4 = {
|
|
|
11064
11066
|
});
|
|
11065
11067
|
|
|
11066
11068
|
if (foundInfos) {
|
|
11067
|
-
this.informacao = foundInfos
|
|
11069
|
+
this.informacao = foundInfos.map(function (info) {
|
|
11070
|
+
if (info.TIPO_TEXTO == 1) {
|
|
11071
|
+
info.TEXTO = info.TEXTO == 'S' ? _this.dictionary.msg_sim : _this.dictionary.msg_nao;
|
|
11072
|
+
}
|
|
11073
|
+
|
|
11074
|
+
return info;
|
|
11075
|
+
});
|
|
11068
11076
|
}
|
|
11069
11077
|
|
|
11070
11078
|
if (foundInfosAdd) {
|
|
@@ -11089,10 +11097,10 @@ var __vue_render__$4 = function __vue_render__() {
|
|
|
11089
11097
|
|
|
11090
11098
|
return _c('div', {
|
|
11091
11099
|
staticClass: "interatividade"
|
|
11092
|
-
}, [_vm._ssrNode(_vm.informacao.length ? "<div class=\"interatividade-form-header\" data-v-
|
|
11093
|
-
return "<div class=\"interatividade-info-form\" data-v-
|
|
11094
|
-
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-
|
|
11095
|
-
return "<div class=\"interatividade-add-info-form\" data-v-
|
|
11100
|
+
}, [_vm._ssrNode(_vm.informacao.length ? "<div class=\"interatividade-form-header\" data-v-7c3f68fa>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_abertura_reclamacao) + "\n ") + "</div> <div class=\"interatividade-form-body\" data-v-7c3f68fa>" + _vm._ssrList(_vm.informacao, function (form) {
|
|
11101
|
+
return "<div class=\"interatividade-info-form\" data-v-7c3f68fa>" + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-titulo-form\" data-v-7c3f68fa>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO)) + "</p>" : "<!---->") + " " + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-description-form\" data-v-7c3f68fa>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div>";
|
|
11102
|
+
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-7c3f68fa>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_info_adicional) + "\n ") + "</div>" : "<!---->") + " <div class=\"interatividade-form-body\" data-v-7c3f68fa>" + _vm._ssrList(_vm.informacaoAdicional, function (form) {
|
|
11103
|
+
return "<div class=\"interatividade-add-info-form\" data-v-7c3f68fa><div class=\"divisor-form-info-aditional\" data-v-7c3f68fa><div class=\"info-aditional\" data-v-7c3f68fa>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-titulo-form\" data-v-7c3f68fa>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO + ': ')) + "</p>" : "<!---->") + "</div> <div class=\"info-aditional\" data-v-7c3f68fa>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-description-form\" data-v-7c3f68fa>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div></div></div>";
|
|
11096
11104
|
}) + "</div></div>" : "<!---->")]);
|
|
11097
11105
|
};
|
|
11098
11106
|
|
|
@@ -11101,8 +11109,8 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
11101
11109
|
|
|
11102
11110
|
var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
11103
11111
|
if (!inject) return;
|
|
11104
|
-
inject("data-v-
|
|
11105
|
-
source: ".show-x-enter-active[data-v-
|
|
11112
|
+
inject("data-v-7c3f68fa_0", {
|
|
11113
|
+
source: ".show-x-enter-active[data-v-7c3f68fa],.show-x-leave-enter[data-v-7c3f68fa]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-7c3f68fa],.show-x-leave-to[data-v-7c3f68fa]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-7c3f68fa]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-7c3f68fa]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-7c3f68fa]{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:.9rem}.interatividade-form-body[data-v-7c3f68fa]{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[data-v-7c3f68fa]{margin:10px 0}.interatividade-titulo-form[data-v-7c3f68fa]{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden;max-width:100%;margin:0;padding:0;padding-top:5px}.interatividade-description-form[data-v-7c3f68fa]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-7c3f68fa]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-7c3f68fa]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-7c3f68fa]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-7c3f68fa]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-7c3f68fa]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-7c3f68fa]:hover{color:#00628f}",
|
|
11106
11114
|
map: undefined,
|
|
11107
11115
|
media: undefined
|
|
11108
11116
|
});
|
|
@@ -11110,10 +11118,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
|
|
|
11110
11118
|
/* scoped */
|
|
11111
11119
|
|
|
11112
11120
|
|
|
11113
|
-
var __vue_scope_id__$4 = "data-v-
|
|
11121
|
+
var __vue_scope_id__$4 = "data-v-7c3f68fa";
|
|
11114
11122
|
/* module identifier */
|
|
11115
11123
|
|
|
11116
|
-
var __vue_module_identifier__$4 = "data-v-
|
|
11124
|
+
var __vue_module_identifier__$4 = "data-v-7c3f68fa";
|
|
11117
11125
|
/* functional template */
|
|
11118
11126
|
|
|
11119
11127
|
var __vue_is_functional_template__$4 = false;
|
|
@@ -35990,9 +35998,11 @@ var script$3 = {
|
|
|
35990
35998
|
methods: {
|
|
35991
35999
|
validateInterativity: function validateInterativity() {
|
|
35992
36000
|
try {
|
|
35993
|
-
if (this.interatividade.formulario) {
|
|
36001
|
+
if (this.interatividade.formulario && this.interatividade.formulario.length) {
|
|
35994
36002
|
return true;
|
|
35995
36003
|
}
|
|
36004
|
+
|
|
36005
|
+
return false;
|
|
35996
36006
|
} catch (error) {
|
|
35997
36007
|
return false;
|
|
35998
36008
|
}
|
|
@@ -36114,11 +36124,22 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
36114
36124
|
attrs: {
|
|
36115
36125
|
"id": "a" + (_vm.messageIndex ? _vm.messageIndex : _vm.randomizeValue)
|
|
36116
36126
|
}
|
|
36117
|
-
}, [_vm.
|
|
36118
|
-
|
|
36119
|
-
|
|
36120
|
-
|
|
36121
|
-
|
|
36127
|
+
}, [_vm.interatividade && _vm.validateInterativity() ? _c('InteratividadeFormulario', {
|
|
36128
|
+
attrs: {
|
|
36129
|
+
"interatividade": _vm.interatividade,
|
|
36130
|
+
"dictionary": _vm.dictionary
|
|
36131
|
+
}
|
|
36132
|
+
}) : _c('div', {
|
|
36133
|
+
staticClass: "mensagem",
|
|
36134
|
+
class: {
|
|
36135
|
+
mapa: _vm.mapa,
|
|
36136
|
+
'hist-msg': _vm.histMsg
|
|
36137
|
+
}
|
|
36138
|
+
}, [_vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
|
|
36139
|
+
return _c('div', {
|
|
36140
|
+
key: index,
|
|
36141
|
+
staticClass: "mensagem-anexo"
|
|
36142
|
+
}, [_c('AnexoMensagem', {
|
|
36122
36143
|
attrs: {
|
|
36123
36144
|
"dictionary": _vm.dictionary,
|
|
36124
36145
|
"anexo": anexo,
|
|
@@ -36129,7 +36150,15 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
36129
36150
|
"abrir-imagem": _vm.abrirImagem
|
|
36130
36151
|
}
|
|
36131
36152
|
})], 1);
|
|
36132
|
-
}) : _vm._e(), _vm.
|
|
36153
|
+
}) : _vm._e(), _vm._v(" "), _vm.urlSticker ? _c('img', {
|
|
36154
|
+
staticClass: "default-stick-size",
|
|
36155
|
+
attrs: {
|
|
36156
|
+
"src": _vm.urlSticker,
|
|
36157
|
+
"title": _vm.urlFileName
|
|
36158
|
+
}
|
|
36159
|
+
}) : _vm._e(), _vm._v(" "), _vm.mapa ? _c('div', {
|
|
36160
|
+
staticClass: "mensagem-div-mapa"
|
|
36161
|
+
}, [_c('GmapMap', {
|
|
36133
36162
|
staticClass: "msg-mapa",
|
|
36134
36163
|
attrs: {
|
|
36135
36164
|
"id": "mapa_" + _vm.seq,
|
|
@@ -36141,22 +36170,41 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
36141
36170
|
attrs: {
|
|
36142
36171
|
"position": _vm.marker
|
|
36143
36172
|
}
|
|
36144
|
-
})], 1), _vm.
|
|
36145
|
-
|
|
36173
|
+
})], 1), _vm._v(" "), _vm.infos.length ? _c('ul', {
|
|
36174
|
+
staticClass: "info-mapa"
|
|
36175
|
+
}, _vm._l(_vm.infos, function (info, index) {
|
|
36176
|
+
return _c('li', {
|
|
36177
|
+
key: index,
|
|
36178
|
+
class: info.classe
|
|
36179
|
+
}, [!info.link ? [_vm._v(" " + _vm._s(info.value) + " ")] : _c('a', {
|
|
36180
|
+
attrs: {
|
|
36181
|
+
"href": info.value
|
|
36182
|
+
},
|
|
36183
|
+
on: {
|
|
36184
|
+
"click": function click($event) {
|
|
36185
|
+
$event.preventDefault();
|
|
36186
|
+
return _vm.abrirPopup(info.value);
|
|
36187
|
+
}
|
|
36188
|
+
}
|
|
36189
|
+
}, [_vm._v(" " + _vm._s(info.textLink) + " "), _c('fa-icon', {
|
|
36146
36190
|
attrs: {
|
|
36147
36191
|
"icon": ['fas', 'map-marker-alt']
|
|
36148
36192
|
}
|
|
36149
|
-
})],
|
|
36150
|
-
}), 0) : _vm._e()],
|
|
36193
|
+
})], 1)], 2);
|
|
36194
|
+
}), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('p', {
|
|
36195
|
+
domProps: {
|
|
36196
|
+
"innerHTML": _vm._s(_vm.validateInterativity() ? '' : _vm.formatMsg(_vm.message))
|
|
36197
|
+
}
|
|
36198
|
+
}), _vm._v(" "), _vm.interatividade ? _c('InteratividadeBotoes', {
|
|
36151
36199
|
attrs: {
|
|
36152
36200
|
"interatividade": _vm.interatividade
|
|
36153
36201
|
}
|
|
36154
|
-
}) : _vm._e(), _vm.
|
|
36155
|
-
|
|
36156
|
-
|
|
36157
|
-
"
|
|
36202
|
+
}) : _vm._e(), _vm._v(" "), _c('span', {
|
|
36203
|
+
staticClass: "horario-envio",
|
|
36204
|
+
domProps: {
|
|
36205
|
+
"textContent": _vm._s(_vm.horario)
|
|
36158
36206
|
}
|
|
36159
|
-
})
|
|
36207
|
+
}), _vm._v(" "), _c('transition', {
|
|
36160
36208
|
attrs: {
|
|
36161
36209
|
"name": "fade",
|
|
36162
36210
|
"mode": "out-in"
|
|
@@ -36179,7 +36227,7 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
36179
36227
|
attrs: {
|
|
36180
36228
|
"icon": ['fas', 'reply']
|
|
36181
36229
|
}
|
|
36182
|
-
})], 1) : _vm._e()]), _vm.
|
|
36230
|
+
})], 1) : _vm._e()]), _vm._v(" "), _vm.validadeSeq ? _c('transition', {
|
|
36183
36231
|
attrs: {
|
|
36184
36232
|
"name": "fade",
|
|
36185
36233
|
"mode": "out-in"
|
|
@@ -36224,7 +36272,7 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
36224
36272
|
"fill": "#808080",
|
|
36225
36273
|
"d": "M224 122.8c-72.7 0-131.8 59.1-131.9 131.8 0 24.9 7 49.2 20.2 70.1l3.1 5-13.3 48.6 49.9-13.1 4.8 2.9c20.2 12 43.4 18.4 67.1 18.4h.1c72.6 0 133.3-59.1 133.3-131.8 0-35.2-15.2-68.3-40.1-93.2-25-25-58-38.7-93.2-38.7zm77.5 188.4c-3.3 9.3-19.1 17.7-26.7 18.8-12.6 1.9-22.4.9-47.5-9.9-39.7-17.2-65.7-57.2-67.7-59.8-2-2.6-16.2-21.5-16.2-41s10.2-29.1 13.9-33.1c3.6-4 7.9-5 10.6-5 2.6 0 5.3 0 7.6.1 2.4.1 5.7-.9 8.9 6.8 3.3 7.9 11.2 27.4 12.2 29.4s1.7 4.3.3 6.9c-7.6 15.2-15.7 14.6-11.6 21.6 15.3 26.3 30.6 35.4 53.9 47.1 4 2 6.3 1.7 8.6-1 2.3-2.6 9.9-11.6 12.5-15.5 2.6-4 5.3-3.3 8.9-2 3.6 1.3 23.1 10.9 27.1 12.9s6.6 3 7.6 4.6c.9 1.9.9 9.9-2.4 19.1zM400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM223.9 413.2c-26.6 0-52.7-6.7-75.8-19.3L64 416l22.5-82.2c-13.9-24-21.2-51.3-21.2-79.3C65.4 167.1 136.5 96 223.9 96c42.4 0 82.2 16.5 112.2 46.5 29.9 30 47.9 69.8 47.9 112.2 0 87.4-72.7 158.5-160.1 158.5z"
|
|
36226
36274
|
}
|
|
36227
|
-
})])]) : _vm._e()]) : _vm._e(), _vm.
|
|
36275
|
+
})])]) : _vm._e()]) : _vm._e(), _vm._v(" "), _c('transition', {
|
|
36228
36276
|
attrs: {
|
|
36229
36277
|
"name": "fade",
|
|
36230
36278
|
"mode": "out-in"
|
|
@@ -36327,7 +36375,12 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
36327
36375
|
attrs: {
|
|
36328
36376
|
"icon": ['fas', 'hourglass']
|
|
36329
36377
|
}
|
|
36330
|
-
})], 1) : _vm._e()]), _vm.
|
|
36378
|
+
})], 1) : _vm._e()]), _vm._v(" "), _c('span', {
|
|
36379
|
+
staticClass: "autor-mensagem",
|
|
36380
|
+
domProps: {
|
|
36381
|
+
"textContent": _vm._s(_vm.autor)
|
|
36382
|
+
}
|
|
36383
|
+
})], 2)], 1) : _vm._e();
|
|
36331
36384
|
};
|
|
36332
36385
|
|
|
36333
36386
|
var __vue_staticRenderFns__$3 = [];
|
|
@@ -36335,7 +36388,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
36335
36388
|
|
|
36336
36389
|
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
36337
36390
|
if (!inject) return;
|
|
36338
|
-
inject("data-v-
|
|
36391
|
+
inject("data-v-a8e32c04_0", {
|
|
36339
36392
|
source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.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:.85rem;word-break:break-word}.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:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.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 .check{display:none}.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:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
|
|
36340
36393
|
map: undefined,
|
|
36341
36394
|
media: undefined
|
|
@@ -36347,7 +36400,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
36347
36400
|
var __vue_scope_id__$3 = undefined;
|
|
36348
36401
|
/* module identifier */
|
|
36349
36402
|
|
|
36350
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
36403
|
+
var __vue_module_identifier__$3 = "data-v-a8e32c04";
|
|
36351
36404
|
/* functional template */
|
|
36352
36405
|
|
|
36353
36406
|
var __vue_is_functional_template__$3 = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="'mensagem__'+origem" v-if="origem && !erro" :id="`a${messageIndex ? messageIndex : randomizeValue}`">
|
|
3
|
-
<
|
|
3
|
+
<InteratividadeFormulario
|
|
4
|
+
v-if="interatividade && validateInterativity()"
|
|
5
|
+
:interatividade="interatividade"
|
|
6
|
+
:dictionary="dictionary"
|
|
7
|
+
/>
|
|
8
|
+
<div v-else class="mensagem" :class="{mapa, 'hist-msg' : histMsg}">
|
|
4
9
|
<template v-if="anexos && anexos.length">
|
|
5
10
|
<div class="mensagem-anexo" v-for="(anexo, index) in anexos" :key="index">
|
|
6
11
|
<AnexoMensagem :dictionary="dictionary" :anexo="anexo" :origemExterna="origemExterna" :dominio="dominio" @abrir-imagem="abrirImagem"/>
|
|
@@ -30,11 +35,6 @@
|
|
|
30
35
|
v-if="interatividade"
|
|
31
36
|
:interatividade="interatividade"
|
|
32
37
|
/>
|
|
33
|
-
<InteratividadeFormulario
|
|
34
|
-
v-if="interatividade"
|
|
35
|
-
:interatividade="interatividade"
|
|
36
|
-
:dictionary="dictionary"
|
|
37
|
-
/>
|
|
38
38
|
<span class="horario-envio" v-text="horario"></span>
|
|
39
39
|
<transition name="fade" mode="out-in">
|
|
40
40
|
<span :class="reply" v-if="hasReply && (status == 'C' || status == 'T')" v-tippy :content="msgReply ? msgReply : 'Fazer reenvio da mensagem'" @click="$emit('replyMsg')"> <fa-icon :icon="['fas', 'reply']" /> </span>
|
|
@@ -155,9 +155,10 @@ export default {
|
|
|
155
155
|
methods: {
|
|
156
156
|
validateInterativity(){
|
|
157
157
|
try {
|
|
158
|
-
if(this.interatividade.formulario){
|
|
158
|
+
if(this.interatividade.formulario && this.interatividade.formulario.length){
|
|
159
159
|
return true;
|
|
160
160
|
}
|
|
161
|
+
return false;
|
|
161
162
|
} catch (error) {
|
|
162
163
|
return false;
|
|
163
164
|
}
|
|
@@ -57,7 +57,7 @@ export default {
|
|
|
57
57
|
methods: {
|
|
58
58
|
validateInterativity(){
|
|
59
59
|
try {
|
|
60
|
-
if(this.interatividade.formulario){
|
|
60
|
+
if(this.interatividade.formulario && this.interatividade.formulario.length){
|
|
61
61
|
return true;
|
|
62
62
|
}
|
|
63
63
|
} catch (error) {
|
|
@@ -74,7 +74,12 @@ export default {
|
|
|
74
74
|
let foundInfosAdd = formulario.filter(f => f.TIPO_TEXTO > 999);
|
|
75
75
|
let foundInfos = formulario.filter(f => f.TIPO_TEXTO < 1000);
|
|
76
76
|
if(foundInfos){
|
|
77
|
-
this.informacao = foundInfos
|
|
77
|
+
this.informacao = foundInfos.map(info => {
|
|
78
|
+
if(info.TIPO_TEXTO == 1){
|
|
79
|
+
info.TEXTO = info.TEXTO == 'S' ? this.dictionary.msg_sim : this.dictionary.msg_nao
|
|
80
|
+
}
|
|
81
|
+
return info
|
|
82
|
+
})
|
|
78
83
|
}
|
|
79
84
|
if(foundInfosAdd){
|
|
80
85
|
this.informacaoAdicional = foundInfosAdd;
|
|
@@ -126,8 +131,12 @@ export default {
|
|
|
126
131
|
}
|
|
127
132
|
.interatividade-form-body{
|
|
128
133
|
padding: 0px 10px;
|
|
134
|
+
background: white;
|
|
129
135
|
border-right: 1px solid rgb(239, 239, 239);
|
|
130
136
|
border-left: 1px solid rgb(239, 239, 239);
|
|
137
|
+
border-bottom-left-radius: 10px;
|
|
138
|
+
border-bottom-right-radius: 10px;
|
|
139
|
+
padding-bottom: 10px;
|
|
131
140
|
}
|
|
132
141
|
.interatividade {
|
|
133
142
|
margin: 10px 0;
|