vue-intergrall-plugins 0.0.176 → 0.0.177
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 +45 -40
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +52 -109
- package/package.json +1 -1
- package/src/lib-components/Messages/ChatMessages.vue +7 -13
- package/src/lib-components/Messages/InteratividadeFormulario.vue +30 -16
|
@@ -12077,32 +12077,46 @@ var script$4 = {
|
|
|
12077
12077
|
},
|
|
12078
12078
|
|
|
12079
12079
|
mounted() {
|
|
12080
|
-
this.
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
computed: {
|
|
12084
|
-
arrBotoes() {
|
|
12085
|
-
const {
|
|
12086
|
-
formulario
|
|
12087
|
-
} = this.interatividade;
|
|
12088
|
-
return formulario ? formulario : [];
|
|
12080
|
+
if (this.validateInterativity()) {
|
|
12081
|
+
this.verifyInfoAditional();
|
|
12089
12082
|
}
|
|
12090
|
-
|
|
12091
12083
|
},
|
|
12084
|
+
|
|
12092
12085
|
methods: {
|
|
12086
|
+
validateInterativity() {
|
|
12087
|
+
try {
|
|
12088
|
+
if (this.interatividade.formulario) {
|
|
12089
|
+
return true;
|
|
12090
|
+
}
|
|
12091
|
+
} catch (error) {
|
|
12092
|
+
return false;
|
|
12093
|
+
}
|
|
12094
|
+
},
|
|
12095
|
+
|
|
12093
12096
|
verifyInfoAditional() {
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12097
|
+
try {
|
|
12098
|
+
let {
|
|
12099
|
+
formulario
|
|
12100
|
+
} = this.informacao;
|
|
12101
|
+
formulario = formulario ? formulario : [];
|
|
12099
12102
|
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
+
if (!formulario.length) {
|
|
12104
|
+
return;
|
|
12105
|
+
}
|
|
12103
12106
|
|
|
12104
|
-
|
|
12105
|
-
|
|
12107
|
+
let foundInfosAdd = formulario.filter(f => f.TIPO_TEXTO > 999);
|
|
12108
|
+
let foundInfos = formulario.filter(f => f.TIPO_TEXTO < 1000);
|
|
12109
|
+
|
|
12110
|
+
if (foundInfos) {
|
|
12111
|
+
this.informacao = foundInfos;
|
|
12112
|
+
}
|
|
12113
|
+
|
|
12114
|
+
if (foundInfosAdd) {
|
|
12115
|
+
this.informacaoAdicional = foundInfosAdd;
|
|
12116
|
+
}
|
|
12117
|
+
} catch (e) {
|
|
12118
|
+
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
12119
|
+
console.error(e);
|
|
12106
12120
|
}
|
|
12107
12121
|
}
|
|
12108
12122
|
|
|
@@ -12174,8 +12188,8 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
12174
12188
|
|
|
12175
12189
|
const __vue_inject_styles__$4 = function (inject) {
|
|
12176
12190
|
if (!inject) return;
|
|
12177
|
-
inject("data-v-
|
|
12178
|
-
source: ".show-x-enter-active[data-v-
|
|
12191
|
+
inject("data-v-17b895f7_0", {
|
|
12192
|
+
source: ".show-x-enter-active[data-v-17b895f7],.show-x-leave-enter[data-v-17b895f7]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-17b895f7],.show-x-leave-to[data-v-17b895f7]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-17b895f7]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-17b895f7]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-17b895f7]{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-17b895f7]{padding:0 10px;border-right:1px solid #efefef;border-left:1px solid #efefef}.interatividade[data-v-17b895f7]{margin:10px 0}.interatividade-titulo-form[data-v-17b895f7]{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-17b895f7]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-17b895f7]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-17b895f7]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-17b895f7]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-17b895f7]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-17b895f7]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-17b895f7]:hover{color:#00628f}",
|
|
12179
12193
|
map: undefined,
|
|
12180
12194
|
media: undefined
|
|
12181
12195
|
});
|
|
@@ -12183,7 +12197,7 @@ const __vue_inject_styles__$4 = function (inject) {
|
|
|
12183
12197
|
/* scoped */
|
|
12184
12198
|
|
|
12185
12199
|
|
|
12186
|
-
const __vue_scope_id__$4 = "data-v-
|
|
12200
|
+
const __vue_scope_id__$4 = "data-v-17b895f7";
|
|
12187
12201
|
/* module identifier */
|
|
12188
12202
|
|
|
12189
12203
|
const __vue_module_identifier__$4 = undefined;
|
|
@@ -39702,23 +39716,14 @@ var script$3 = {
|
|
|
39702
39716
|
},
|
|
39703
39717
|
|
|
39704
39718
|
methods: {
|
|
39705
|
-
|
|
39706
|
-
|
|
39707
|
-
|
|
39708
|
-
|
|
39709
|
-
return false;
|
|
39710
|
-
}
|
|
39711
|
-
|
|
39712
|
-
for (const forms of interatividade.formulario) {
|
|
39713
|
-
if (forms.TIPO_TEXTO < 1000) {
|
|
39714
|
-
estrutura += `
|
|
39715
|
-
<div class="title-consumidor-card">${forms.DESC_TIPO_TEXTO}</div>
|
|
39716
|
-
<div class="description-consumidor-card">${forms.TEXTO}</div>
|
|
39717
|
-
`;
|
|
39719
|
+
validateInterativity() {
|
|
39720
|
+
try {
|
|
39721
|
+
if (this.interatividade.formulario) {
|
|
39722
|
+
return true;
|
|
39718
39723
|
}
|
|
39724
|
+
} catch (error) {
|
|
39725
|
+
return false;
|
|
39719
39726
|
}
|
|
39720
|
-
|
|
39721
|
-
return estrutura;
|
|
39722
39727
|
},
|
|
39723
39728
|
|
|
39724
39729
|
validadeUrlToMsg() {
|
|
@@ -39913,7 +39918,7 @@ var __vue_render__$3 = function () {
|
|
|
39913
39918
|
})], 1)], 2);
|
|
39914
39919
|
}), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('p', {
|
|
39915
39920
|
domProps: {
|
|
39916
|
-
"innerHTML": _vm._s(_vm.
|
|
39921
|
+
"innerHTML": _vm._s(_vm.validateInterativity() ? '' : _vm.formatMsg(_vm.message))
|
|
39917
39922
|
}
|
|
39918
39923
|
}), _vm._v(" "), _vm.interatividade ? _c('InteratividadeBotoes', {
|
|
39919
39924
|
attrs: {
|
|
@@ -40113,7 +40118,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
40113
40118
|
|
|
40114
40119
|
const __vue_inject_styles__$3 = function (inject) {
|
|
40115
40120
|
if (!inject) return;
|
|
40116
|
-
inject("data-v-
|
|
40121
|
+
inject("data-v-f09a6b36_0", {
|
|
40117
40122
|
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}",
|
|
40118
40123
|
map: undefined,
|
|
40119
40124
|
media: undefined
|