vue-intergrall-plugins 1.1.2 → 1.1.4
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 +31 -35
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +65 -94
- package/package.json +1 -1
- package/src/lib-components/Email/EmailExpanded.vue +3 -3
- package/src/lib-components/Email/EmailFile.vue +3 -3
- package/src/lib-components/Email/EmailFrom.vue +2 -2
- package/src/lib-components/Email/EmailItem.vue +21 -23
- package/src/lib-components/Email/EmailTo.vue +1 -1
- package/src/lib-components/Messages/AnexoMensagem.vue +1 -1
- package/src/lib-components/Messages/CardMessages.vue +2 -2
- package/src/lib-components/Messages/ChatMessages.vue +11 -11
- package/src/lib-components/Messages/InteratividadeBotoes.vue +50 -109
- package/src/lib-components/Messages/InteratividadePopup.vue +3 -3
- package/src/lib-components/Messages/LinkPreview.vue +2 -2
- package/src/lib-components/Templates/TemplateSingle.vue +1 -1
|
@@ -75,18 +75,16 @@
|
|
|
75
75
|
</li>
|
|
76
76
|
</ul>
|
|
77
77
|
</div>
|
|
78
|
-
<
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
<button class="box-shadow" @click="handleTryAgain()">Tentar novamente</button>
|
|
84
|
-
</div>
|
|
85
|
-
<iframe v-show="!hasError" ref="emailIframe"
|
|
86
|
-
:class="`email-html ${isIframeLoading ? 'visibility-hidden' : ''}`"></iframe>
|
|
87
|
-
<span class="email-raw" v-if="openMessage">{{ mensagem }}</span>
|
|
78
|
+
<div class="email-content" v-show="isOpen" ref="emailIframeParent">
|
|
79
|
+
<VueLoader v-if="isIframeLoading" />
|
|
80
|
+
<div v-if="hasError" class="email-error-content">
|
|
81
|
+
<p>Erro ao carregar o e-mail</p>
|
|
82
|
+
<button class="box-shadow" @click="handleTryAgain()">Tentar novamente</button>
|
|
88
83
|
</div>
|
|
89
|
-
|
|
84
|
+
<iframe v-show="!hasError" ref="emailIframe"
|
|
85
|
+
:class="`email-html ${isIframeLoading ? 'visibility-hidden' : ''}`"></iframe>
|
|
86
|
+
<span class="email-raw" v-if="openMessage">{{ mensagem }}</span>
|
|
87
|
+
</div>
|
|
90
88
|
<div v-if="filteredFiles && filteredFiles.length" class="email-files" v-show="isOpen || isMainEmail">
|
|
91
89
|
<EmailFile v-for="(anexo, index) in filteredFiles" :key="index" :anexo="anexo" :dominio="dominio" />
|
|
92
90
|
</div>
|
|
@@ -635,7 +633,7 @@ export default {
|
|
|
635
633
|
}
|
|
636
634
|
|
|
637
635
|
.email-author.main {
|
|
638
|
-
font-size:
|
|
636
|
+
font-size: 16.4px;
|
|
639
637
|
}
|
|
640
638
|
|
|
641
639
|
.email-item.principal {
|
|
@@ -678,13 +676,13 @@ export default {
|
|
|
678
676
|
|
|
679
677
|
.email-subject {
|
|
680
678
|
margin: 5px 0 0 0;
|
|
681
|
-
font-size:
|
|
679
|
+
font-size: 16.4px;
|
|
682
680
|
cursor: pointer;
|
|
683
681
|
}
|
|
684
682
|
|
|
685
683
|
.email-date {
|
|
686
684
|
--width: 245px;
|
|
687
|
-
font-size: .
|
|
685
|
+
font-size: 12.8px;
|
|
688
686
|
text-overflow: ellipsis;
|
|
689
687
|
white-space: nowrap;
|
|
690
688
|
overflow: hidden;
|
|
@@ -763,7 +761,7 @@ export default {
|
|
|
763
761
|
padding: 5px 10px;
|
|
764
762
|
cursor: pointer;
|
|
765
763
|
transition: background-color 150ms ease-in-out;
|
|
766
|
-
font-size: .
|
|
764
|
+
font-size: 14.4px;
|
|
767
765
|
user-select: none;
|
|
768
766
|
}
|
|
769
767
|
|
|
@@ -793,7 +791,7 @@ export default {
|
|
|
793
791
|
width: 100%;
|
|
794
792
|
max-width: 100%;
|
|
795
793
|
padding: 15px;
|
|
796
|
-
font-size: .
|
|
794
|
+
font-size: 14.4px;
|
|
797
795
|
color: #222;
|
|
798
796
|
}
|
|
799
797
|
|
|
@@ -825,7 +823,7 @@ export default {
|
|
|
825
823
|
|
|
826
824
|
.email-to-btn {
|
|
827
825
|
padding: 0 5px;
|
|
828
|
-
font-size: .
|
|
826
|
+
font-size: 14.4px;
|
|
829
827
|
cursor: pointer;
|
|
830
828
|
color: #666;
|
|
831
829
|
}
|
|
@@ -850,11 +848,11 @@ export default {
|
|
|
850
848
|
|
|
851
849
|
.email-info {
|
|
852
850
|
width: 100%;
|
|
853
|
-
font-size: .
|
|
851
|
+
font-size: 12.8px;
|
|
854
852
|
}
|
|
855
853
|
|
|
856
854
|
.email-info>span {
|
|
857
|
-
font-size:
|
|
855
|
+
font-size: 12px;
|
|
858
856
|
color: gray;
|
|
859
857
|
margin-right: 3px;
|
|
860
858
|
}
|
|
@@ -863,7 +861,7 @@ export default {
|
|
|
863
861
|
display: flex;
|
|
864
862
|
align-items: center;
|
|
865
863
|
height: 5px;
|
|
866
|
-
font-size:
|
|
864
|
+
font-size: 12px;
|
|
867
865
|
font-weight: bold;
|
|
868
866
|
transform: translateY(-2px);
|
|
869
867
|
width: 100%;
|
|
@@ -875,12 +873,12 @@ export default {
|
|
|
875
873
|
}
|
|
876
874
|
|
|
877
875
|
.email-subject-span {
|
|
878
|
-
font-size: .
|
|
876
|
+
font-size: 11.2px;
|
|
879
877
|
color: gray;
|
|
880
878
|
}
|
|
881
879
|
|
|
882
880
|
.email-to-svg {
|
|
883
|
-
font-size: .
|
|
881
|
+
font-size: 13.6px;
|
|
884
882
|
}
|
|
885
883
|
|
|
886
884
|
.email-custom-buttons {
|
|
@@ -890,7 +888,7 @@ export default {
|
|
|
890
888
|
top: 5px;
|
|
891
889
|
right: 5px;
|
|
892
890
|
z-index: 1;
|
|
893
|
-
font-size: .
|
|
891
|
+
font-size: 12.8px;
|
|
894
892
|
}
|
|
895
893
|
|
|
896
894
|
.menu-mensagem {
|
|
@@ -648,7 +648,7 @@ svg {
|
|
|
648
648
|
flex-direction: column;
|
|
649
649
|
margin-top: 10px;
|
|
650
650
|
margin-bottom: 5px;
|
|
651
|
-
font-size:
|
|
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:
|
|
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
|
-
|
|
294
|
-
|
|
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:
|
|
959
|
+
font-size: 13.6px;
|
|
960
960
|
}
|
|
961
961
|
|
|
962
962
|
.info-mapa li.address,
|
|
963
963
|
.info-mapa li.url {
|
|
964
|
-
font-size:
|
|
964
|
+
font-size: 13.6px;
|
|
965
965
|
}
|
|
966
966
|
|
|
967
967
|
.info-mapa li.url {
|
|
968
|
-
font-size:
|
|
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:
|
|
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:
|
|
1031
|
-
min-width:
|
|
1032
|
-
min-height:
|
|
1033
|
-
max-width:
|
|
1034
|
-
max-height:
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
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
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
class="interatividade-lista-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
127
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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>
|