vue-intergrall-plugins 0.0.127 → 0.0.131
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 +470 -267
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +446 -265
- package/package.json +1 -1
- package/src/lib-components/Buttons/IconButton.vue +27 -0
- package/src/lib-components/Buttons/SimpleButton.vue +134 -0
- package/src/lib-components/Messages/CardMessages.vue +6 -6
- package/src/lib-components/Messages/ChatMessages.vue +1 -1
package/package.json
CHANGED
|
@@ -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>
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
<div class="card-right">
|
|
16
16
|
<div class="card-datas">
|
|
17
|
-
<div v-if="data_cri" class="card-data" :title="`${dictionary.data_criacao}: ${origem === 'outros' ? formataTimezoneData(data_cri) :
|
|
18
|
-
<span v-text="origem === 'outros' ? formataTimezoneData(data_cri) :
|
|
17
|
+
<div v-if="data_cri" class="card-data" :title="`${dictionary.data_criacao}: ${origem === 'outros' ? formataTimezoneData(data_cri) : returnFormataDataHora(data_cri)}`">
|
|
18
|
+
<span v-text="origem === 'outros' ? formataTimezoneData(data_cri) : returnFormataDataHora(data_cri)"></span>
|
|
19
19
|
</div>
|
|
20
|
-
<div v-if="data_mod" class="card-data" :title="`${dictionary.data_mod}: ${origem === 'outros' ? formataTimezoneData(data_mod) :
|
|
21
|
-
<span v-text="origem === 'outros' ? formataTimezoneData(data_mod) :
|
|
20
|
+
<div v-if="data_mod" class="card-data" :title="`${dictionary.data_mod}: ${origem === 'outros' ? formataTimezoneData(data_mod) : returnFormataDataHora(data_mod)}`">
|
|
21
|
+
<span v-text="origem === 'outros' ? formataTimezoneData(data_mod) : returnFormataDataHora(data_mod)"></span>
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="card-expand" @click="expandirCard()" v-if="hasExpand">
|
|
@@ -135,8 +135,8 @@ export default {
|
|
|
135
135
|
formataTimezoneData(timezoneData) {
|
|
136
136
|
return formataTimezoneData(timezoneData)
|
|
137
137
|
},
|
|
138
|
-
|
|
139
|
-
return formataDataHora(dataHora)
|
|
138
|
+
returnFormataDataHora(dataHora) {
|
|
139
|
+
return formataDataHora(dataHora, false, false, this.dictionary)
|
|
140
140
|
},
|
|
141
141
|
expandirCard() {
|
|
142
142
|
this.$emit("expand-card", this.$props)
|
|
@@ -50,7 +50,7 @@ import InteratividadeBotoes from "./InteratividadeBotoes"
|
|
|
50
50
|
|
|
51
51
|
export default {
|
|
52
52
|
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"],
|
|
53
|
+
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"],
|
|
54
54
|
data(){
|
|
55
55
|
return{
|
|
56
56
|
strTooltipAux: "",
|