vue-intergrall-plugins 0.0.129 → 0.0.133

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.129",
3
+ "version": "0.0.133",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -0,0 +1,27 @@
1
+ <template>
2
+ <span class="simple-btn--icon" :class="{'custom' : !showFaIcon}">
3
+ <fa-icon v-if="showFaIcon" :icon="icon" />
4
+ <span v-else v-html="icon" />
5
+ </span>
6
+ </template>
7
+
8
+ <script>
9
+ export default {
10
+ props: {
11
+ icon: [String, Array],
12
+ default: ""
13
+ },
14
+ computed: {
15
+ showFaIcon() {
16
+ return Array.isArray(this.icon) && this.icon.length
17
+ }
18
+ }
19
+ }
20
+ </script>
21
+
22
+ <style>
23
+ .simple-btn--icon.custom > span {
24
+ width: 20px;
25
+ height: 20px;
26
+ }
27
+ </style>
@@ -0,0 +1,134 @@
1
+ <template>
2
+ <div class="simple-btn default-btn-style"
3
+ :style="`background-color: ${bg}; color: ${color};${aditionalStyle}`"
4
+ :class="[customClass]"
5
+ @click="$emit(emitter, params)"
6
+ >
7
+ <template v-if="faIcon.length || svgIcon">
8
+ <template v-if="!btnCustom">
9
+ <IconButton :icon="faIcon.length ? faIcon : svgIcon" />
10
+ </template>
11
+ <span class="icon-container default-btn-style" :style="`background-color: ${bg};`" v-else>
12
+ <IconButton :icon="faIcon.length ? faIcon : svgIcon" />
13
+ </span>
14
+ </template>
15
+ <span class="simple-btn--text" v-text="btnText"></span>
16
+ </div>
17
+ </template>
18
+
19
+ <script>
20
+ import IconButton from './IconButton'
21
+
22
+ export default {
23
+ components: { IconButton },
24
+ props: {
25
+ emitter: {
26
+ type: String,
27
+ required: true
28
+ },
29
+ params: {
30
+ type: [String, Object, Array, Number, Boolean],
31
+ required: false,
32
+ default: ''
33
+ },
34
+ bg: {
35
+ type: String,
36
+ required: true
37
+ },
38
+ color: {
39
+ type: String,
40
+ required: true
41
+ },
42
+ aditionalStyle: {
43
+ type: String,
44
+ default: ''
45
+ },
46
+ btnText: {
47
+ type: [String, Number],
48
+ default: ""
49
+ },
50
+ faIcon: {
51
+ type: Array,
52
+ default: () => { return [] }
53
+ },
54
+ svgIcon: {
55
+ type: String,
56
+ default: ""
57
+ },
58
+ customClass: {
59
+ type: String,
60
+ default: ''
61
+ },
62
+ btnCustom: {
63
+ type: Boolean,
64
+ default: false
65
+ }
66
+ }
67
+ }
68
+ </script>
69
+
70
+ <style>
71
+ .default-btn-style {
72
+ transition-duration: 300ms;
73
+ user-select: none;
74
+ cursor: pointer;
75
+ box-shadow: inset 0 -2px rgba(0, 0, 0, 0.2);
76
+ opacity: .9;
77
+ border-radius: 5px;
78
+ display: flex;
79
+ justify-content: center;
80
+ align-items: center;
81
+ padding: 5px;
82
+ cursor: pointer;
83
+ }
84
+ .default-btn-style:hover{
85
+ opacity: 1;
86
+ }
87
+ .default-btn-style:active{
88
+ opacity: 1;
89
+ box-shadow: inset 0 -1px rgba(0, 0, 0, 0.2);
90
+ -webkit-transform: translateY(1px);
91
+ -moz-transform: translateY(1px);
92
+ -o-transform: translateY(1px);
93
+ -ms-transform: translateY(1px);
94
+ transform: translateY(1px);
95
+ }
96
+
97
+ .simple-btn {
98
+ position: relative;
99
+ }
100
+
101
+ .simple-btn--icon {
102
+ display: flex;
103
+ justify-content: center;
104
+ align-items: center;
105
+ margin-right: 5px;
106
+ }
107
+ .simple-btn--icon.custom {
108
+ min-width: 25px;
109
+ }
110
+
111
+ .simple-btn--text {
112
+ white-space: nowrap;
113
+ text-overflow: ellipsis;
114
+ overflow: hidden;
115
+ }
116
+
117
+ .icon-container {
118
+ position: absolute;
119
+ left: -15px;
120
+ padding: 5px;
121
+ width: 40px;
122
+ height: 40px;
123
+ display: flex;
124
+ justify-content: center;
125
+ align-items: center;
126
+ border-radius: 50%;
127
+ }
128
+ .icon-container svg {
129
+ color: rgba(255, 255, 255, .5);
130
+ width: 23px;
131
+ height: 23px;
132
+ }
133
+
134
+ </style>
@@ -29,6 +29,9 @@
29
29
  :interatividade="interatividade"
30
30
  />
31
31
  <span class="horario-envio" v-text="horario"></span>
32
+ <transition name="fade" mode="out-in">
33
+ <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>
34
+ </transition>
32
35
  <transition name="fade" mode="out-in">
33
36
  <span class="check" v-if="status == 'D'" :content="contentTooltip" v-tippy key="check-padrao"> <fa-icon :icon="['fas', 'check']" /> </span>
34
37
  <span class="check cinza" v-else-if="status == 'Q'" :content="contentTooltip" v-tippy key="check-cinza"> <fa-icon :icon="['fas', 'check']" /> </span>
@@ -50,7 +53,7 @@ import InteratividadeBotoes from "./InteratividadeBotoes"
50
53
 
51
54
  export default {
52
55
  components: { AnexoMensagem, InteratividadeBotoes },
53
- props: ["messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade"],
56
+ props: ["smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply"],
54
57
  data(){
55
58
  return{
56
59
  strTooltipAux: "",
@@ -195,6 +198,26 @@ export default {
195
198
  overflow: hidden;
196
199
  }
197
200
 
201
+ .reply {
202
+ cursor: pointer;
203
+ position: absolute;
204
+ right: 30px;
205
+ bottom: 5px;
206
+ font-size: .6rem;
207
+ color: #67a332;
208
+ width: .9rem;
209
+ height: .9rem;
210
+ display: flex;
211
+ justify-content: center;
212
+ align-items: center;
213
+ border-radius: 50%;
214
+ background-color: #FFF;
215
+ }
216
+ .reply svg {
217
+ margin-top: -1px;
218
+ margin-right: -1px;
219
+ }
220
+
198
221
  .check{
199
222
  cursor: pointer;
200
223
  position: absolute;