vue-intergrall-plugins 1.0.1 → 1.0.2
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.css +3419 -0
- package/dist/vue-intergrall-plugins.esm.js +7483 -6119
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +7610 -5106
- package/package.json +7 -6
- package/src/lib-components/Buttons/IconButton.vue +1 -1
- package/src/lib-components/Buttons/SimpleButton.vue +1 -1
- package/src/lib-components/Cards/Card.vue +1 -1
- package/src/lib-components/Cards/CardFile.vue +1 -1
- package/src/lib-components/Chat/BtnEmojis.vue +1 -13
- package/src/lib-components/Chat/BtnFiles.vue +1 -1
- package/src/lib-components/Chat/ExpandTextarea.vue +297 -270
- package/src/lib-components/Chat/MultipleFilePreview.vue +1 -1
- package/src/lib-components/Chat/Picker.vue +1 -1
- package/src/lib-components/Chat/SingleFilePreview.vue +1 -1
- package/src/lib-components/Chat/SkeletonPicker.vue +1 -1
- package/src/lib-components/Chat/StandardMessages.vue +1 -1
- package/src/lib-components/Chat/TextFooter.vue +1 -13
- package/src/lib-components/Loader/Loader.vue +1 -1
- package/src/lib-components/Messages/AnexoMensagem.vue +1 -1
- package/src/lib-components/Messages/ChatMessages.vue +1 -1
- package/src/lib-components/Messages/InteratividadeBotoes.vue +120 -122
- package/src/lib-components/Messages/InteratividadeFormulario.vue +291 -276
- package/src/lib-components/Messages/InteratividadePopup.vue +1 -1
- package/src/lib-components/Scroll/ScrollContent.vue +1 -1
- package/src/lib-components/Templates/TemplateGenerator.vue +299 -259
|
@@ -36,7 +36,7 @@ export default {
|
|
|
36
36
|
}
|
|
37
37
|
</script>
|
|
38
38
|
|
|
39
|
-
<style>
|
|
39
|
+
<style scoped>
|
|
40
40
|
.box-shadow {
|
|
41
41
|
-webkit-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
42
42
|
-moz-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
@@ -641,19 +641,7 @@ export default {
|
|
|
641
641
|
};
|
|
642
642
|
</script>
|
|
643
643
|
|
|
644
|
-
<style>
|
|
645
|
-
.toasted svg {
|
|
646
|
-
margin-right: 10px;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
.d-none {
|
|
650
|
-
display: none;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
ul {
|
|
654
|
-
list-style-type: none;
|
|
655
|
-
}
|
|
656
|
-
|
|
644
|
+
<style scoped>
|
|
657
645
|
.text-footer-container {
|
|
658
646
|
display: flex;
|
|
659
647
|
justify-content: center;
|
|
@@ -1,165 +1,163 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="interatividade">
|
|
3
3
|
<transition name="show-x">
|
|
4
|
-
<InteratividadePopup
|
|
4
|
+
<InteratividadePopup
|
|
5
|
+
v-if="listaEstaAberta"
|
|
6
|
+
:lista="listaExpandida"
|
|
7
|
+
:titulo="objItens.list.title"
|
|
8
|
+
@close="listaEstaAberta = false"
|
|
9
|
+
/>
|
|
5
10
|
</transition>
|
|
6
11
|
<template v-if="arrBotoes.length">
|
|
7
|
-
<div
|
|
12
|
+
<div
|
|
13
|
+
v-for="(btn, index) in arrBotoes"
|
|
14
|
+
:key="index"
|
|
15
|
+
:title="btn.titulo"
|
|
16
|
+
class="interatividade-btn"
|
|
17
|
+
>
|
|
8
18
|
<p v-html="btn.titulo" class="interatividade-titulo"></p>
|
|
9
19
|
</div>
|
|
10
20
|
</template>
|
|
11
21
|
<template v-else-if="Object.keys(objItens).length">
|
|
12
|
-
<div
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
<div
|
|
23
|
+
class="interatividade-lista"
|
|
24
|
+
:class="tipoBotoes == 'listItem' ? 'bg-none' : ''"
|
|
25
|
+
>
|
|
26
|
+
<div
|
|
27
|
+
class="interatividade-lista-conteudo"
|
|
28
|
+
:class="tipoBotoes == 'listItem' ? 'border-bottom-none padding-none' : ''"
|
|
29
|
+
>
|
|
30
|
+
<p
|
|
31
|
+
v-if="objItens.header && objItens.header.text"
|
|
32
|
+
v-html="objItens.header.text"
|
|
33
|
+
class="interatividade-lista-titulo"
|
|
34
|
+
></p>
|
|
35
|
+
<p
|
|
36
|
+
v-if="objItens.body && objItens.body.text"
|
|
37
|
+
v-html="objItens.body.text"
|
|
38
|
+
class="interatividade-lista-corpo"
|
|
39
|
+
></p>
|
|
40
|
+
<p
|
|
41
|
+
v-if="objItens.footer && objItens.footer.text"
|
|
42
|
+
v-html="objItens.footer.text"
|
|
43
|
+
class="interatividade-lista-rodape"
|
|
44
|
+
></p>
|
|
17
45
|
</div>
|
|
18
|
-
<p
|
|
46
|
+
<p
|
|
47
|
+
v-if="objItens.list && objItens.list.title"
|
|
48
|
+
v-html="objItens.list.title"
|
|
49
|
+
@click="expandirLista"
|
|
50
|
+
:class="tipoBotoes == 'listItem' ? 'bg-white border-radius-5 mt-5' : ''"
|
|
51
|
+
class="interatividade-lista-link"
|
|
52
|
+
></p>
|
|
19
53
|
</div>
|
|
20
54
|
</template>
|
|
21
55
|
</div>
|
|
22
56
|
</template>
|
|
23
57
|
|
|
24
58
|
<script>
|
|
25
|
-
import InteratividadePopup from
|
|
59
|
+
import InteratividadePopup from "./InteratividadePopup";
|
|
26
60
|
|
|
27
61
|
export default {
|
|
28
|
-
components: {InteratividadePopup},
|
|
62
|
+
components: { InteratividadePopup },
|
|
29
63
|
data() {
|
|
30
64
|
return {
|
|
31
|
-
listaEstaAberta: false
|
|
32
|
-
}
|
|
65
|
+
listaEstaAberta: false,
|
|
66
|
+
};
|
|
33
67
|
},
|
|
34
68
|
props: {
|
|
35
69
|
interatividade: {
|
|
36
70
|
type: Object,
|
|
37
|
-
required: true
|
|
38
|
-
}
|
|
71
|
+
required: true,
|
|
72
|
+
},
|
|
39
73
|
},
|
|
40
74
|
computed: {
|
|
41
75
|
tipoBotoes() {
|
|
42
|
-
return this.interatividade.tipo
|
|
76
|
+
return this.interatividade.tipo;
|
|
43
77
|
},
|
|
44
78
|
arrBotoes() {
|
|
45
|
-
const { botoes } = this.interatividade
|
|
46
|
-
return botoes ? botoes : []
|
|
79
|
+
const { botoes } = this.interatividade;
|
|
80
|
+
return botoes ? botoes : [];
|
|
47
81
|
},
|
|
48
82
|
objItens() {
|
|
49
|
-
const { itens } = this.interatividade
|
|
50
|
-
return itens ? itens : {}
|
|
83
|
+
const { itens } = this.interatividade;
|
|
84
|
+
return itens ? itens : {};
|
|
51
85
|
},
|
|
52
86
|
listaExpandida() {
|
|
53
87
|
try {
|
|
54
|
-
const { list } = this.objItens
|
|
55
|
-
const { sections } = list
|
|
56
|
-
return sections ? sections : []
|
|
57
|
-
}catch(e) {
|
|
58
|
-
console.error("Erro ao definir a lista a ser expandida")
|
|
59
|
-
console.error(e)
|
|
60
|
-
return []
|
|
88
|
+
const { list } = this.objItens;
|
|
89
|
+
const { sections } = list;
|
|
90
|
+
return sections ? sections : [];
|
|
91
|
+
} catch (e) {
|
|
92
|
+
console.error("Erro ao definir a lista a ser expandida");
|
|
93
|
+
console.error(e);
|
|
94
|
+
return [];
|
|
61
95
|
}
|
|
62
|
-
}
|
|
96
|
+
},
|
|
63
97
|
},
|
|
64
98
|
methods: {
|
|
65
99
|
expandirLista() {
|
|
66
|
-
this.listaEstaAberta = !this.listaEstaAberta
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
100
|
+
this.listaEstaAberta = !this.listaEstaAberta;
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
};
|
|
70
104
|
</script>
|
|
71
105
|
|
|
72
|
-
<style>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.mt-5 {
|
|
98
|
-
margin-top: 5px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.interatividade-btn {
|
|
102
|
-
width: 100%;
|
|
103
|
-
display: flex;
|
|
104
|
-
justify-content: center;
|
|
105
|
-
align-items: center;
|
|
106
|
-
background-color: #FFF;
|
|
107
|
-
color: #111B21;
|
|
108
|
-
padding: 10px 12px;
|
|
109
|
-
border-radius: 5px;
|
|
110
|
-
margin-bottom: 10px;
|
|
111
|
-
}
|
|
112
|
-
.interatividade-btn:nth-child(1) {
|
|
113
|
-
margin-top: 10px
|
|
114
|
-
}
|
|
115
|
-
.interatividade-titulo {
|
|
116
|
-
white-space: nowrap;
|
|
117
|
-
text-overflow: ellipsis;
|
|
118
|
-
overflow: hidden;
|
|
119
|
-
max-width: 100%;
|
|
120
|
-
margin: 0;
|
|
121
|
-
padding: 0;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.interatividade-lista {
|
|
125
|
-
width: 100%;
|
|
126
|
-
min-width: 200px;
|
|
127
|
-
border-radius: 15px;
|
|
128
|
-
background-color: #FFF;
|
|
129
|
-
color: #333;
|
|
130
|
-
margin: 10px 0;
|
|
131
|
-
}
|
|
106
|
+
<style scoped>
|
|
107
|
+
.interatividade-btn {
|
|
108
|
+
width: 100%;
|
|
109
|
+
display: flex;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
align-items: center;
|
|
112
|
+
background-color: #fff;
|
|
113
|
+
color: #111b21;
|
|
114
|
+
padding: 10px 12px;
|
|
115
|
+
border-radius: 5px;
|
|
116
|
+
margin-bottom: 10px;
|
|
117
|
+
}
|
|
118
|
+
.interatividade-btn:nth-child(1) {
|
|
119
|
+
margin-top: 10px;
|
|
120
|
+
}
|
|
121
|
+
.interatividade-titulo {
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
text-overflow: ellipsis;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
max-width: 100%;
|
|
126
|
+
margin: 0;
|
|
127
|
+
padding: 0;
|
|
128
|
+
}
|
|
132
129
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
130
|
+
.interatividade-lista {
|
|
131
|
+
width: 100%;
|
|
132
|
+
min-width: 200px;
|
|
133
|
+
border-radius: 15px;
|
|
134
|
+
background-color: #fff;
|
|
135
|
+
color: #333;
|
|
136
|
+
margin: 10px 0;
|
|
137
|
+
}
|
|
139
138
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
139
|
+
.interatividade-lista-conteudo {
|
|
140
|
+
padding: 10px;
|
|
141
|
+
border-bottom: 1px solid #d7d7d7;
|
|
142
|
+
}
|
|
143
|
+
.interatividade-lista-titulo {
|
|
144
|
+
font-weight: bold;
|
|
145
|
+
font-size: 1.2em;
|
|
146
|
+
margin-bottom: 10px;
|
|
147
|
+
}
|
|
148
|
+
.interatividade-lista-rodape {
|
|
149
|
+
color: #818181;
|
|
150
|
+
margin-top: 5px;
|
|
151
|
+
}
|
|
152
|
+
.interatividade-lista-link {
|
|
153
|
+
width: 100%;
|
|
154
|
+
text-align: center;
|
|
155
|
+
padding: 10px;
|
|
156
|
+
color: rgb(0, 110, 255);
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
transition: color 200ms ease-in-out;
|
|
159
|
+
}
|
|
160
|
+
.interatividade-lista-link:hover {
|
|
161
|
+
color: rgb(0, 98, 143);
|
|
162
|
+
}
|
|
165
163
|
</style>
|