vue-intergrall-plugins 1.1.1 → 1.1.3

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.
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .email-from .from {
17
- font-size: .75rem;
17
+ font-size: 12px;
18
18
  font-weight: bold;
19
19
  white-space: nowrap;
20
20
  text-overflow: ellipsis;
@@ -32,7 +32,7 @@
32
32
  white-space: nowrap;
33
33
  overflow: hidden;
34
34
  margin-left: 5px;
35
- font-size: .75rem;
35
+ font-size: 12px;
36
36
  color: gray;
37
37
  text-overflow: ellipsis;
38
38
  }
@@ -3,9 +3,10 @@
3
3
  :class="['email-item box-shadow-active', isOpen ? isOpenClass : `${isClosedClass} cursor-pointer`, showInfos ? 'info-open' : '', origem, customClass]"
4
4
  @click="openByItem($event)">
5
5
  <div v-if="showInfos" class="email-overlay"></div>
6
- <div class="email-author" v-if="autor" :class="[origem, isMainEmail ? 'main' : '']" @click.stop="toggleIsOpen">
6
+ <div class="email-author" v-if="autor" :class="[origem, isMainEmail ? 'main' : '']" @click.stop="toggleIsOpen"
7
+ :key="autor">
7
8
  <fa-icon :icon="['fas', 'reply']" :class="[origem]" :title="`Enviado por: ${autor}`" />
8
- <p class="email-author-name" v-text="returnAuthorName()" :title="returnAuthorName()"></p>
9
+ <p class="email-author-name" v-text="returnAuthorName" :title="returnAuthorName"></p>
9
10
  <fa-icon :icon="['fas', origem === 'outros' ? 'user' : 'headset']"
10
11
  :title="`E-mail ${origem === 'outros' ? 'recebido' : 'enviado'}`" class="email-to-svg" />
11
12
  </div>
@@ -254,6 +255,22 @@ export default {
254
255
  return !this.html.includes(anexo.name);
255
256
  })
256
257
  },
258
+ returnAuthorName() {
259
+ if (!this.from || !this.from.length) return this.autor || ''
260
+ const { email, name } = this.from[0]
261
+ if (!name) return email
262
+ if (!email) return name
263
+ if (this.isOpen) return `${name} (${email})`
264
+ return name
265
+ },
266
+ formattedToName() {
267
+ return (name, index, length) => {
268
+ let addVirgulaDps = index < length - 1
269
+ let addVirgulaAntes = index === 1 && length >= 2
270
+ const text = index === 0 ? `Para: ${name || ''}` : name ? `${addVirgulaAntes ? ', ' : ''}${name}${addVirgulaDps ? ', ' : ''}` : '';
271
+ return text
272
+ }
273
+ }
257
274
  },
258
275
  watch: {
259
276
  isOpen: 'updateIframeContent'
@@ -276,14 +293,6 @@ export default {
276
293
 
277
294
  this.$nextTick(this.updateIframeContent())
278
295
  },
279
- returnAuthorName() {
280
- if (!this.from || !this.from.length) return this.autor || ''
281
- const { email, name } = this.from[0]
282
- if (!name) return email
283
- if (!email) return name
284
- if (this.isOpen) return `${name} (${email})`
285
- return name
286
- },
287
296
  gerarMensagemEstilizada(msg) {
288
297
  try {
289
298
  const currentStyles = [
@@ -455,20 +464,6 @@ export default {
455
464
  closeActions() {
456
465
  this.actionsOpen = false;
457
466
  },
458
- formattedName(name, index, length, isOpen) {
459
- if (!name) return '--';
460
- return `${name || '--'}${index !== length - 1 && !isOpen ? ', ' : ''}`;
461
- },
462
- formattedMail(email, index, length, isOpen) {
463
- if (!email) return ''
464
- return `<${email || '--'}${index !== length - 1 && isOpen ? '>, ' : '>'}`;
465
- },
466
- formattedToName(name, index, length) {
467
- let addVirgulaDps = index < length - 1
468
- let addVirgulaAntes = index === 1 && length >= 2
469
- const text = index === 0 ? `Para: ${name || ''}` : name ? `${addVirgulaAntes ? ', ' : ''}${name}${addVirgulaDps ? ', ' : ''}` : '';
470
- return text
471
- },
472
467
  returnMainValue() {
473
468
  if (this.isMainEmail) return this.htmlEntityToEmoji(this.replaceUnicodeWithEmoji(this.assunto)) || '(Sem assunto)'
474
469
  return ''
@@ -640,7 +635,7 @@ export default {
640
635
  }
641
636
 
642
637
  .email-author.main {
643
- font-size: 1.025rem;
638
+ font-size: 16.4px;
644
639
  }
645
640
 
646
641
  .email-item.principal {
@@ -683,13 +678,13 @@ export default {
683
678
 
684
679
  .email-subject {
685
680
  margin: 5px 0 0 0;
686
- font-size: 1.025rem;
681
+ font-size: 16.4px;
687
682
  cursor: pointer;
688
683
  }
689
684
 
690
685
  .email-date {
691
686
  --width: 245px;
692
- font-size: .8rem;
687
+ font-size: 12.8px;
693
688
  text-overflow: ellipsis;
694
689
  white-space: nowrap;
695
690
  overflow: hidden;
@@ -768,7 +763,7 @@ export default {
768
763
  padding: 5px 10px;
769
764
  cursor: pointer;
770
765
  transition: background-color 150ms ease-in-out;
771
- font-size: .9rem;
766
+ font-size: 14.4px;
772
767
  user-select: none;
773
768
  }
774
769
 
@@ -798,7 +793,7 @@ export default {
798
793
  width: 100%;
799
794
  max-width: 100%;
800
795
  padding: 15px;
801
- font-size: .9rem;
796
+ font-size: 14.4px;
802
797
  color: #222;
803
798
  }
804
799
 
@@ -830,7 +825,7 @@ export default {
830
825
 
831
826
  .email-to-btn {
832
827
  padding: 0 5px;
833
- font-size: .9rem;
828
+ font-size: 14.4px;
834
829
  cursor: pointer;
835
830
  color: #666;
836
831
  }
@@ -855,11 +850,11 @@ export default {
855
850
 
856
851
  .email-info {
857
852
  width: 100%;
858
- font-size: .8rem;
853
+ font-size: 12.8px;
859
854
  }
860
855
 
861
856
  .email-info>span {
862
- font-size: .75rem;
857
+ font-size: 12px;
863
858
  color: gray;
864
859
  margin-right: 3px;
865
860
  }
@@ -868,7 +863,7 @@ export default {
868
863
  display: flex;
869
864
  align-items: center;
870
865
  height: 5px;
871
- font-size: .75rem;
866
+ font-size: 12px;
872
867
  font-weight: bold;
873
868
  transform: translateY(-2px);
874
869
  width: 100%;
@@ -880,12 +875,12 @@ export default {
880
875
  }
881
876
 
882
877
  .email-subject-span {
883
- font-size: .7rem;
878
+ font-size: 11.2px;
884
879
  color: gray;
885
880
  }
886
881
 
887
882
  .email-to-svg {
888
- font-size: .85rem;
883
+ font-size: 13.6px;
889
884
  }
890
885
 
891
886
  .email-custom-buttons {
@@ -895,7 +890,7 @@ export default {
895
890
  top: 5px;
896
891
  right: 5px;
897
892
  z-index: 1;
898
- font-size: .8rem;
893
+ font-size: 12.8px;
899
894
  }
900
895
 
901
896
  .menu-mensagem {
@@ -17,7 +17,7 @@
17
17
 
18
18
  .email-to .to,
19
19
  .email-to .additional {
20
- font-size: .7rem;
20
+ font-size: 11.2px;
21
21
  text-overflow: ellipsis;
22
22
  white-space: nowrap;
23
23
  overflow: hidden;
@@ -401,7 +401,7 @@ export default {
401
401
  }
402
402
 
403
403
  .alert svg {
404
- font-size: 1.025em;
404
+ font-size: 16.4px;
405
405
  margin-right: 2px;
406
406
  }
407
407
 
@@ -648,7 +648,7 @@ svg {
648
648
  flex-direction: column;
649
649
  margin-top: 10px;
650
650
  margin-bottom: 5px;
651
- font-size: 0.9em;
651
+ font-size: 14.4px;
652
652
  }
653
653
 
654
654
  .card-interatividade-title {
@@ -659,7 +659,7 @@ svg {
659
659
  .card-interatividade-list {
660
660
  margin: 0;
661
661
  padding: 0;
662
- font-size: 0.9em;
662
+ font-size: 14.4px;
663
663
  }
664
664
 
665
665
  .card-interatividade-list hr {
@@ -290,8 +290,8 @@ export default {
290
290
 
291
291
  if (this.tipo_origem) {
292
292
  tooltipStar += `${this.dictionary["tipo_origem"]}: ${this.dictionary[`tipo_origem_${this.tipo_origem}`]
293
- ? this.dictionary[`tipo_origem_${this.tipo_origem}`]
294
- : this.tipo_origem
293
+ ? this.dictionary[`tipo_origem_${this.tipo_origem}`]
294
+ : this.tipo_origem
295
295
  }<br/>`;
296
296
  }
297
297
 
@@ -956,16 +956,16 @@ export default {
956
956
  }
957
957
 
958
958
  .info-mapa li.title {
959
- font-size: 0.85em;
959
+ font-size: 13.6px;
960
960
  }
961
961
 
962
962
  .info-mapa li.address,
963
963
  .info-mapa li.url {
964
- font-size: 0.85em;
964
+ font-size: 13.6px;
965
965
  }
966
966
 
967
967
  .info-mapa li.url {
968
- font-size: 0.85em;
968
+ font-size: 13.6px;
969
969
  }
970
970
 
971
971
  .tooltip-list {
@@ -999,7 +999,7 @@ export default {
999
999
  }
1000
1000
 
1001
1001
  .mensagem .reaction {
1002
- $size: 1.8em;
1002
+ $size: 28.8px;
1003
1003
  width: $size;
1004
1004
  height: $size;
1005
1005
  min-width: $size;
@@ -1027,11 +1027,11 @@ export default {
1027
1027
  align-items: center;
1028
1028
  background-color: rgba(100, 100, 100, 0.4);
1029
1029
  padding: 5px;
1030
- font-size: 1.3em;
1031
- min-width: 1.8em;
1032
- min-height: 1.8em;
1033
- max-width: 1.8em;
1034
- max-height: 1.8em;
1030
+ font-size: 20.8px;
1031
+ min-width: 28.8px;
1032
+ min-height: 28.8px;
1033
+ max-width: 28.8px;
1034
+ max-height: 28.8px;
1035
1035
  }
1036
1036
 
1037
1037
  .reaction>span {
@@ -1,26 +1,14 @@
1
1
  <template>
2
2
  <div class="interatividade">
3
- <div
4
- v-if="
5
- interatividade &&
6
- interatividade.parameters &&
7
- interatividade.parameters.button &&
8
- interatividade.parameters.button.length
9
- "
10
- >
11
- <div
12
- v-for="(button, index) in interatividade.parameters.button"
13
- :key="index"
14
- class="interatividade-btn"
15
- >
3
+ <div v-if="
4
+ interatividade &&
5
+ interatividade.parameters &&
6
+ interatividade.parameters.button &&
7
+ interatividade.parameters.button.length
8
+ ">
9
+ <div v-for="(button, index) in interatividade.parameters.button" :key="index" class="interatividade-btn">
16
10
  <p v-if="!button.url" v-html="button.text" class="interatividade-titulo"></p>
17
- <a
18
- v-else
19
- :href="button.url"
20
- target="_blank"
21
- rel="noreferrer noopener"
22
- class="interatividade-link"
23
- >
11
+ <a v-else :href="button.url" target="_blank" rel="noreferrer noopener" class="interatividade-link">
24
12
  <p v-html="button.text" class="interatividade-titulo"></p>
25
13
  <fa-icon :icon="['fas', 'external-link-square-alt']" />
26
14
  </a>
@@ -28,107 +16,60 @@
28
16
  </div>
29
17
 
30
18
  <!-- Tudo aqui abaixo TEORICAMENTE e antigo e nao devera mais cair nas situacoes -->
31
- <div
32
- v-if="
33
- interatividade &&
34
- interatividade.parameters &&
35
- interatividade.parameters.button &&
36
- (interatividade.parameters.button.type === 'dynamicURL' ||
37
- interatividade.parameters.button.type === 'staticURL')
38
- "
39
- class="interatividade-btn"
40
- >
41
- <a
42
- :href="interatividade.parameters.button.text"
43
- target="_blank"
44
- rel="noreferrer noopener"
45
- class="interatividade-link"
46
- >
19
+ <div v-if="
20
+ interatividade &&
21
+ interatividade.parameters &&
22
+ interatividade.parameters.button &&
23
+ (interatividade.parameters.button.type === 'dynamicURL' ||
24
+ interatividade.parameters.button.type === 'staticURL')
25
+ " class="interatividade-btn">
26
+ <a :href="interatividade.parameters.button.text" target="_blank" rel="noreferrer noopener"
27
+ class="interatividade-link">
47
28
  Acessar <fa-icon :icon="['fas', 'external-link-square-alt']" />
48
29
  </a>
49
30
  </div>
50
- <div
51
- v-if="
52
- interatividade &&
53
- interatividade.parameters &&
54
- interatividade.parameters.button &&
55
- interatividade.parameters.button.type === 'phoneNumber'
56
- "
57
- class="interatividade-btn"
58
- >
59
- <p
60
- class="interatividade-titulo"
61
- :title="`${interatividade.parameters.button.text} (${interatividade.parameters.button.phoneNumber})`"
62
- v-text="
63
- `${interatividade.parameters.button.text} (${interatividade.parameters.button.phoneNumber})`
64
- "
65
- ></p>
31
+ <div v-if="
32
+ interatividade &&
33
+ interatividade.parameters &&
34
+ interatividade.parameters.button &&
35
+ interatividade.parameters.button.type === 'phoneNumber'
36
+ " class="interatividade-btn">
37
+ <p class="interatividade-titulo"
38
+ :title="`${interatividade.parameters.button.text} (${interatividade.parameters.button.phoneNumber})`" v-text="`${interatividade.parameters.button.text} (${interatividade.parameters.button.phoneNumber})`
39
+ "></p>
66
40
  </div>
67
- <div
68
- v-if="
69
- interatividade &&
70
- interatividade.parameters &&
71
- interatividade.parameters.button &&
72
- interatividade.parameters.button.type === 'quickReply'
73
- "
74
- class="interatividade-btn"
75
- >
76
- <p
77
- class="interatividade-titulo"
78
- :title="`${interatividade.parameters.button.text}`"
79
- v-text="`${interatividade.parameters.button.text}`"
80
- ></p>
41
+ <div v-if="
42
+ interatividade &&
43
+ interatividade.parameters &&
44
+ interatividade.parameters.button &&
45
+ interatividade.parameters.button.type === 'quickReply'
46
+ " class="interatividade-btn">
47
+ <p class="interatividade-titulo" :title="`${interatividade.parameters.button.text}`"
48
+ v-text="`${interatividade.parameters.button.text}`"></p>
81
49
  </div>
82
50
  <transition name="show-x">
83
- <InteratividadePopup
84
- v-if="listaEstaAberta"
85
- :lista="listaExpandida"
86
- :titulo="objItens.list.title"
87
- @close="listaEstaAberta = false"
88
- />
51
+ <InteratividadePopup v-if="listaEstaAberta" :lista="listaExpandida" :titulo="objItens.list.title"
52
+ @close="listaEstaAberta = false" />
89
53
  </transition>
90
54
  <template v-if="arrBotoes.length">
91
- <div
92
- v-for="(btn, index) in arrBotoes"
93
- :key="index"
94
- :title="btn.titulo"
95
- class="interatividade-btn"
96
- >
55
+ <div v-for="(btn, index) in arrBotoes" :key="index" :title="btn.titulo" class="interatividade-btn">
97
56
  <p v-html="btn.titulo" class="interatividade-titulo"></p>
98
57
  </div>
99
58
  </template>
100
59
  <template v-else-if="Object.keys(objItens).length">
101
- <div
102
- class="interatividade-lista"
103
- :class="tipoBotoes == 'listItem' ? 'bg-none' : ''"
104
- >
105
- <div
106
- class="interatividade-lista-conteudo"
107
- :class="tipoBotoes == 'listItem' ? 'border-bottom-none padding-none' : ''"
108
- >
109
- <p
110
- v-if="objItens.header && objItens.header.text"
111
- v-html="objItens.header.text"
112
- class="interatividade-lista-titulo"
113
- ></p>
114
- <p
115
- v-if="objItens.body && objItens.body.text"
116
- v-html="objItens.body.text"
117
- class="interatividade-lista-corpo"
118
- ></p>
119
- <p
120
- v-if="objItens.footer && objItens.footer.text"
121
- v-html="objItens.footer.text"
122
- class="interatividade-lista-rodape"
123
- ></p>
60
+ <div class="interatividade-lista" :class="tipoBotoes == 'listItem' ? 'bg-none' : ''">
61
+ <div class="interatividade-lista-conteudo"
62
+ :class="tipoBotoes == 'listItem' ? 'border-bottom-none padding-none' : ''">
63
+ <p v-if="objItens.header && objItens.header.text" v-html="objItens.header.text"
64
+ class="interatividade-lista-titulo"></p>
65
+ <p v-if="objItens.body && objItens.body.text" v-html="objItens.body.text" class="interatividade-lista-corpo">
66
+ </p>
67
+ <p v-if="objItens.footer && objItens.footer.text" v-html="objItens.footer.text"
68
+ class="interatividade-lista-rodape"></p>
124
69
  </div>
125
- <p
126
- v-if="objItens.list && objItens.list.title"
127
- v-html="objItens.list.title"
128
- @click="expandirLista"
129
- :class="tipoBotoes == 'listItem' ? 'bg-white border-radius-5 mt-5' : ''"
130
- class="interatividade-lista-link"
131
- ></p>
70
+ <p v-if="objItens.list && objItens.list.title" v-html="objItens.list.title" @click="expandirLista"
71
+ :class="tipoBotoes == 'listItem' ? 'bg-white border-radius-5 mt-5' : ''" class="interatividade-lista-link">
72
+ </p>
132
73
  </div>
133
74
  </template>
134
75
  </div>
@@ -234,7 +175,7 @@ export default {
234
175
 
235
176
  .interatividade-lista-titulo {
236
177
  font-weight: bold;
237
- font-size: 1.2em;
178
+ font-size: 19.2px;
238
179
  margin-bottom: 10px;
239
180
  }
240
181
 
@@ -71,7 +71,7 @@ export default {
71
71
  padding: 4px 10px;
72
72
  background-color: #333;
73
73
  color: #fff;
74
- font-size: 1.2em;
74
+ font-size: 19.2px;
75
75
  display: flex;
76
76
  justify-content: space-between;
77
77
  align-items: center;
@@ -80,7 +80,7 @@ export default {
80
80
  .interatividade-popup-titulo h1 svg {
81
81
  color: #e74c3c;
82
82
  cursor: pointer;
83
- font-size: 0.9em;
83
+ font-size: 14.4px;
84
84
  }
85
85
 
86
86
  .interatividade-popup-item {
@@ -89,7 +89,7 @@ export default {
89
89
  }
90
90
 
91
91
  .interatividade-popup-item-desc {
92
- font-size: 0.9em;
92
+ font-size: 14.4px;
93
93
  color: #767676;
94
94
  }
95
95
  </style>
@@ -137,7 +137,7 @@ export default {
137
137
 
138
138
  .link-preview-author {
139
139
  margin: 5px;
140
- font-size: 0.615em;
140
+ font-size: 9.84px;
141
141
  font-weight: bold;
142
142
  }
143
143
 
@@ -162,7 +162,7 @@ export default {
162
162
  background-color: #2626261a;
163
163
  padding: 5px;
164
164
  margin: 5px;
165
- font-size: 0.83em;
165
+ font-size: 13.28px;
166
166
  border-radius: 5px;
167
167
  }
168
168
 
@@ -51,7 +51,7 @@
51
51
  @click="triggerInputFile(`header-${pIndex}`)" v-tippy="{ placement: 'right' }" :content="headerFiles[0].name
52
52
  " />
53
53
  </template>
54
- <fa-icon v-else class="select-image" :icon="['fas', 'video']" style="font-size: 1.2rem"
54
+ <fa-icon v-else class="select-image" :icon="['fas', 'video']" style="font-size: 19.2px"
55
55
  @click="triggerInputFile(`header-${pIndex}`)" v-tippy="{ placement: 'right' }"
56
56
  :content="`Selecionar anexo`" />
57
57
  </div>