vue-intergrall-plugins 0.0.179 → 0.0.182

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.179",
3
+ "version": "0.0.182",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -1,6 +1,11 @@
1
1
  <template>
2
2
  <div :class="'mensagem__'+origem" v-if="origem && !erro" :id="`a${messageIndex ? messageIndex : randomizeValue}`">
3
- <div class="mensagem" :class="{mapa, 'hist-msg' : histMsg}">
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 && this.interatividade.formulario > 1){
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 && this.interatividade.formulario > 1){
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;