vue-intergrall-plugins 0.0.286 → 0.0.288

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.
Files changed (41) hide show
  1. package/README.md +185 -185
  2. package/dist/vue-intergrall-plugins.esm.js +501 -398
  3. package/dist/vue-intergrall-plugins.min.js +1 -1
  4. package/dist/vue-intergrall-plugins.ssr.js +520 -433
  5. package/package.json +65 -65
  6. package/src/lib-components/Buttons/IconButton.vue +27 -27
  7. package/src/lib-components/Buttons/SimpleButton.vue +140 -140
  8. package/src/lib-components/Cards/Card.vue +412 -412
  9. package/src/lib-components/Cards/CardCheck.vue +35 -35
  10. package/src/lib-components/Cards/CardFile.vue +157 -157
  11. package/src/lib-components/Chat/AudioSpeedControl.vue +60 -0
  12. package/src/lib-components/Chat/BtnDownloadAllFiles.vue +32 -32
  13. package/src/lib-components/Chat/BtnEmojis.vue +124 -124
  14. package/src/lib-components/Chat/BtnExpand.vue +17 -17
  15. package/src/lib-components/Chat/BtnFiles.vue +415 -415
  16. package/src/lib-components/Chat/BtnMic.vue +60 -60
  17. package/src/lib-components/Chat/BtnScreenShare.vue +32 -32
  18. package/src/lib-components/Chat/BtnStandardMessages.vue +17 -17
  19. package/src/lib-components/Chat/ExpandTextarea.vue +410 -410
  20. package/src/lib-components/Chat/MultipleFilePreview.vue +266 -266
  21. package/src/lib-components/Chat/Picker.vue +368 -368
  22. package/src/lib-components/Chat/RemainingCharacters.vue +28 -28
  23. package/src/lib-components/Chat/SingleFilePreview.vue +94 -94
  24. package/src/lib-components/Chat/SkeletonPicker.vue +110 -110
  25. package/src/lib-components/Chat/StandardMessages.vue +245 -245
  26. package/src/lib-components/Chat/TextFooter.vue +1075 -817
  27. package/src/lib-components/Email/EmailFile.vue +125 -125
  28. package/src/lib-components/Email/EmailItem.vue +185 -185
  29. package/src/lib-components/Loader/Loader.vue +78 -78
  30. package/src/lib-components/Messages/AnexoMensagem.vue +458 -385
  31. package/src/lib-components/Messages/CardAttachment.vue +61 -61
  32. package/src/lib-components/Messages/CardMessages.vue +460 -460
  33. package/src/lib-components/Messages/ChatMessages.vue +715 -715
  34. package/src/lib-components/Messages/InteratividadeBotoes.vue +165 -165
  35. package/src/lib-components/Messages/InteratividadeFormulario.vue +392 -392
  36. package/src/lib-components/Messages/InteratividadePopup.vue +88 -88
  37. package/src/lib-components/Messages/LinkPreview.vue +163 -163
  38. package/src/lib-components/Scroll/ScrollContent.vue +150 -150
  39. package/src/lib-components/Templates/TemplateGenerator.vue +576 -576
  40. package/src/lib-components/Templates/TemplateMessage.vue +83 -83
  41. package/src/lib-components/Templates/TemplateSingle.vue +481 -481
@@ -1,165 +1,165 @@
1
- <template>
2
- <div class="interatividade">
3
- <transition name="show-x">
4
- <InteratividadePopup v-if="listaEstaAberta" :lista="listaExpandida" :titulo="objItens.list.title" @close="listaEstaAberta = false" />
5
- </transition>
6
- <template v-if="arrBotoes.length">
7
- <div v-for="(btn, index) in arrBotoes" :key="index" :title="btn.titulo" class="interatividade-btn">
8
- <p v-html="btn.titulo" class="interatividade-titulo"></p>
9
- </div>
10
- </template>
11
- <template v-else-if="Object.keys(objItens).length">
12
- <div class="interatividade-lista" :class="tipoBotoes == 'listItem' ? 'bg-none' : ''">
13
- <div class="interatividade-lista-conteudo" :class="tipoBotoes == 'listItem' ? 'border-bottom-none padding-none' : ''">
14
- <p v-if="objItens.header && objItens.header.text" v-html="objItens.header.text" class="interatividade-lista-titulo"></p>
15
- <p v-if="objItens.body && objItens.body.text" v-html="objItens.body.text" class="interatividade-lista-corpo"></p>
16
- <p v-if="objItens.footer && objItens.footer.text" v-html="objItens.footer.text" class="interatividade-lista-rodape"></p>
17
- </div>
18
- <p v-if="objItens.list && objItens.list.title" v-html="objItens.list.title" @click="expandirLista" :class="tipoBotoes == 'listItem' ? 'bg-white border-radius-5 mt-5' : ''" class="interatividade-lista-link"></p>
19
- </div>
20
- </template>
21
- </div>
22
- </template>
23
-
24
- <script>
25
- import InteratividadePopup from './InteratividadePopup'
26
-
27
- export default {
28
- components: {InteratividadePopup},
29
- data() {
30
- return {
31
- listaEstaAberta: false
32
- }
33
- },
34
- props: {
35
- interatividade: {
36
- type: Object,
37
- required: true
38
- }
39
- },
40
- computed: {
41
- tipoBotoes() {
42
- return this.interatividade.tipo
43
- },
44
- arrBotoes() {
45
- const { botoes } = this.interatividade
46
- return botoes ? botoes : []
47
- },
48
- objItens() {
49
- const { itens } = this.interatividade
50
- return itens ? itens : {}
51
- },
52
- listaExpandida() {
53
- 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 []
61
- }
62
- }
63
- },
64
- methods: {
65
- expandirLista() {
66
- this.listaEstaAberta = !this.listaEstaAberta
67
- }
68
- }
69
- }
70
- </script>
71
-
72
- <style>
73
- .show-x-enter-active,
74
- .show-x-leave-enter {
75
- opacity: 1;
76
- transform: translateX(0);
77
- transition: all 200ms linear;
78
- }
79
- .show-x-enter,
80
- .show-x-leave-to {
81
- opacity: 0;
82
- transform: translateX(5%);
83
- }
84
-
85
- .bg-none {
86
- background-color: transparent!important;
87
- }
88
-
89
- .bg-white {
90
- background-color: #FFF;
91
- }
92
-
93
- .border-radius-5 {
94
- border-radius: 5px
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
- }
132
-
133
- .border-bottom-none {
134
- border-bottom: none!important;
135
- }
136
- .padding-none {
137
- padding: unset!important;
138
- }
139
-
140
- .interatividade-lista-conteudo {
141
- padding: 10px;
142
- border-bottom: 1px solid #D7D7D7;
143
- }
144
- .interatividade-lista-titulo {
145
- font-weight: bold;
146
- font-size: 1.2em;
147
- margin-bottom: 10px;
148
- }
149
- .interatividade-lista-rodape {
150
- color: #818181;
151
- margin-top: 5px;
152
- }
153
- .interatividade-lista-link {
154
- width: 100%;
155
- text-align: center;
156
- padding: 10px;
157
- color: rgb(0, 110, 255);
158
- cursor: pointer;
159
- transition: color 200ms ease-in-out;
160
- }
161
- .interatividade-lista-link:hover {
162
- color: rgb(0, 98, 143);
163
- }
164
-
165
- </style>
1
+ <template>
2
+ <div class="interatividade">
3
+ <transition name="show-x">
4
+ <InteratividadePopup v-if="listaEstaAberta" :lista="listaExpandida" :titulo="objItens.list.title" @close="listaEstaAberta = false" />
5
+ </transition>
6
+ <template v-if="arrBotoes.length">
7
+ <div v-for="(btn, index) in arrBotoes" :key="index" :title="btn.titulo" class="interatividade-btn">
8
+ <p v-html="btn.titulo" class="interatividade-titulo"></p>
9
+ </div>
10
+ </template>
11
+ <template v-else-if="Object.keys(objItens).length">
12
+ <div class="interatividade-lista" :class="tipoBotoes == 'listItem' ? 'bg-none' : ''">
13
+ <div class="interatividade-lista-conteudo" :class="tipoBotoes == 'listItem' ? 'border-bottom-none padding-none' : ''">
14
+ <p v-if="objItens.header && objItens.header.text" v-html="objItens.header.text" class="interatividade-lista-titulo"></p>
15
+ <p v-if="objItens.body && objItens.body.text" v-html="objItens.body.text" class="interatividade-lista-corpo"></p>
16
+ <p v-if="objItens.footer && objItens.footer.text" v-html="objItens.footer.text" class="interatividade-lista-rodape"></p>
17
+ </div>
18
+ <p v-if="objItens.list && objItens.list.title" v-html="objItens.list.title" @click="expandirLista" :class="tipoBotoes == 'listItem' ? 'bg-white border-radius-5 mt-5' : ''" class="interatividade-lista-link"></p>
19
+ </div>
20
+ </template>
21
+ </div>
22
+ </template>
23
+
24
+ <script>
25
+ import InteratividadePopup from './InteratividadePopup'
26
+
27
+ export default {
28
+ components: {InteratividadePopup},
29
+ data() {
30
+ return {
31
+ listaEstaAberta: false
32
+ }
33
+ },
34
+ props: {
35
+ interatividade: {
36
+ type: Object,
37
+ required: true
38
+ }
39
+ },
40
+ computed: {
41
+ tipoBotoes() {
42
+ return this.interatividade.tipo
43
+ },
44
+ arrBotoes() {
45
+ const { botoes } = this.interatividade
46
+ return botoes ? botoes : []
47
+ },
48
+ objItens() {
49
+ const { itens } = this.interatividade
50
+ return itens ? itens : {}
51
+ },
52
+ listaExpandida() {
53
+ 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 []
61
+ }
62
+ }
63
+ },
64
+ methods: {
65
+ expandirLista() {
66
+ this.listaEstaAberta = !this.listaEstaAberta
67
+ }
68
+ }
69
+ }
70
+ </script>
71
+
72
+ <style>
73
+ .show-x-enter-active,
74
+ .show-x-leave-enter {
75
+ opacity: 1;
76
+ transform: translateX(0);
77
+ transition: all 200ms linear;
78
+ }
79
+ .show-x-enter,
80
+ .show-x-leave-to {
81
+ opacity: 0;
82
+ transform: translateX(5%);
83
+ }
84
+
85
+ .bg-none {
86
+ background-color: transparent!important;
87
+ }
88
+
89
+ .bg-white {
90
+ background-color: #FFF;
91
+ }
92
+
93
+ .border-radius-5 {
94
+ border-radius: 5px
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
+ }
132
+
133
+ .border-bottom-none {
134
+ border-bottom: none!important;
135
+ }
136
+ .padding-none {
137
+ padding: unset!important;
138
+ }
139
+
140
+ .interatividade-lista-conteudo {
141
+ padding: 10px;
142
+ border-bottom: 1px solid #D7D7D7;
143
+ }
144
+ .interatividade-lista-titulo {
145
+ font-weight: bold;
146
+ font-size: 1.2em;
147
+ margin-bottom: 10px;
148
+ }
149
+ .interatividade-lista-rodape {
150
+ color: #818181;
151
+ margin-top: 5px;
152
+ }
153
+ .interatividade-lista-link {
154
+ width: 100%;
155
+ text-align: center;
156
+ padding: 10px;
157
+ color: rgb(0, 110, 255);
158
+ cursor: pointer;
159
+ transition: color 200ms ease-in-out;
160
+ }
161
+ .interatividade-lista-link:hover {
162
+ color: rgb(0, 98, 143);
163
+ }
164
+
165
+ </style>