vue-intergrall-plugins 1.1.81 → 1.1.83
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.
|
@@ -21350,7 +21350,7 @@ __vue_component__$4.install = install$1;var script$1 = {
|
|
|
21350
21350
|
scrollToFile: false,
|
|
21351
21351
|
htmlToPdfOptions: {
|
|
21352
21352
|
margin: [15, 0, 15, 0],
|
|
21353
|
-
filename:
|
|
21353
|
+
filename: "email.pdf",
|
|
21354
21354
|
image: {
|
|
21355
21355
|
type: 'jpeg',
|
|
21356
21356
|
quality: 0.98
|
|
@@ -21471,7 +21471,9 @@ __vue_component__$4.install = install$1;var script$1 = {
|
|
|
21471
21471
|
var subject = this.assunto || 'email';
|
|
21472
21472
|
var sanitized = subject.replace(/[^a-z0-9]/gi, '_').substring(0, 50);
|
|
21473
21473
|
var date = this.dataHora ? new Date(this.dataHora).toISOString().split('T')[0] : '';
|
|
21474
|
-
|
|
21474
|
+
var str = "email_".concat(sanitized, "_").concat(date);
|
|
21475
|
+
if (str != this.htmlToPdfOptions.filename) this.htmlToPdfOptions.filename = "".concat(str, ".pdf");
|
|
21476
|
+
return str;
|
|
21475
21477
|
}
|
|
21476
21478
|
},
|
|
21477
21479
|
watch: {
|
|
@@ -21810,7 +21812,25 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
21810
21812
|
attrs: {
|
|
21811
21813
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset']
|
|
21812
21814
|
}
|
|
21813
|
-
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.
|
|
21815
|
+
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.status && _vm.status !== 'C' ? _c('span', {
|
|
21816
|
+
directives: [{
|
|
21817
|
+
name: "tippy",
|
|
21818
|
+
rawName: "v-tippy"
|
|
21819
|
+
}],
|
|
21820
|
+
staticClass: "email-status-badge email-status-enviado",
|
|
21821
|
+
attrs: {
|
|
21822
|
+
"content": "Enviado em: " + _vm.formattedDate
|
|
21823
|
+
}
|
|
21824
|
+
}, [_vm._ssrNode("\n Enviado\n ")], 2) : _vm.status === 'C' ? _c('span', {
|
|
21825
|
+
directives: [{
|
|
21826
|
+
name: "tippy",
|
|
21827
|
+
rawName: "v-tippy"
|
|
21828
|
+
}],
|
|
21829
|
+
staticClass: "email-status-badge email-status-nao-enviado",
|
|
21830
|
+
attrs: {
|
|
21831
|
+
"content": "Erro ao enviar em: " + _vm.formattedDate
|
|
21832
|
+
}
|
|
21833
|
+
}, [_vm._ssrNode("\n Não enviado\n ")]) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-custom-buttons\">", "</div>", [_vm.customButtons && _vm.customButtons.length ? _vm._l(_vm.customButtons, function (button, index) {
|
|
21814
21834
|
return _c('span', {
|
|
21815
21835
|
directives: [{
|
|
21816
21836
|
name: "show",
|
|
@@ -21994,124 +22014,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
21994
22014
|
attrs: {
|
|
21995
22015
|
"icon": ['fas', 'paperclip']
|
|
21996
22016
|
}
|
|
21997
|
-
}), _vm._ssrNode(" <span class=\"clip-badge\">" + _vm._ssrEscape(_vm._s(_vm.filteredFiles.length)) + "</span>")], 2)]) : _vm._e(), _vm._ssrNode(" "), _c('
|
|
21998
|
-
attrs: {
|
|
21999
|
-
"name": "fade",
|
|
22000
|
-
"mode": "out-in"
|
|
22001
|
-
}
|
|
22002
|
-
}, [_vm.status == 'D' ? _c('span', {
|
|
22003
|
-
directives: [{
|
|
22004
|
-
name: "tippy",
|
|
22005
|
-
rawName: "v-tippy"
|
|
22006
|
-
}],
|
|
22007
|
-
key: "check-padrao",
|
|
22008
|
-
staticClass: "check",
|
|
22009
|
-
attrs: {
|
|
22010
|
-
"content": _vm.contentTooltip
|
|
22011
|
-
}
|
|
22012
|
-
}, [_c('fa-icon', {
|
|
22013
|
-
attrs: {
|
|
22014
|
-
"icon": ['fas', 'check']
|
|
22015
|
-
}
|
|
22016
|
-
})], 1) : _vm.status == 'Q' ? _c('span', {
|
|
22017
|
-
directives: [{
|
|
22018
|
-
name: "tippy",
|
|
22019
|
-
rawName: "v-tippy"
|
|
22020
|
-
}],
|
|
22021
|
-
key: "check-cinza",
|
|
22022
|
-
staticClass: "check cinza",
|
|
22023
|
-
attrs: {
|
|
22024
|
-
"content": _vm.contentTooltip
|
|
22025
|
-
}
|
|
22026
|
-
}, [_c('fa-icon', {
|
|
22027
|
-
attrs: {
|
|
22028
|
-
"icon": ['fas', 'check']
|
|
22029
|
-
}
|
|
22030
|
-
})], 1) : _vm.status == 'G' ? _c('span', {
|
|
22031
|
-
directives: [{
|
|
22032
|
-
name: "tippy",
|
|
22033
|
-
rawName: "v-tippy"
|
|
22034
|
-
}],
|
|
22035
|
-
key: "check-preto",
|
|
22036
|
-
staticClass: "check preto",
|
|
22037
|
-
attrs: {
|
|
22038
|
-
"content": _vm.contentTooltip
|
|
22039
|
-
}
|
|
22040
|
-
}, [_c('fa-icon', {
|
|
22041
|
-
attrs: {
|
|
22042
|
-
"icon": ['fas', 'check']
|
|
22043
|
-
}
|
|
22044
|
-
})], 1) : _vm.status == 'E' ? _c('span', {
|
|
22045
|
-
directives: [{
|
|
22046
|
-
name: "tippy",
|
|
22047
|
-
rawName: "v-tippy"
|
|
22048
|
-
}],
|
|
22049
|
-
key: "double-check-preto",
|
|
22050
|
-
staticClass: "check preto",
|
|
22051
|
-
attrs: {
|
|
22052
|
-
"content": _vm.contentTooltip
|
|
22053
|
-
}
|
|
22054
|
-
}, [_c('fa-icon', {
|
|
22055
|
-
attrs: {
|
|
22056
|
-
"icon": ['fas', 'check-double']
|
|
22057
|
-
}
|
|
22058
|
-
})], 1) : _vm.status == 'L' ? _c('span', {
|
|
22059
|
-
directives: [{
|
|
22060
|
-
name: "tippy",
|
|
22061
|
-
rawName: "v-tippy"
|
|
22062
|
-
}],
|
|
22063
|
-
key: "double-check-visualizado",
|
|
22064
|
-
staticClass: "check visualizado",
|
|
22065
|
-
attrs: {
|
|
22066
|
-
"content": _vm.contentTooltip
|
|
22067
|
-
}
|
|
22068
|
-
}, [_c('fa-icon', {
|
|
22069
|
-
attrs: {
|
|
22070
|
-
"icon": ['fas', 'check-double']
|
|
22071
|
-
}
|
|
22072
|
-
})], 1) : _vm.status == 'C' || _vm.status == 'ERRO' ? _c('span', {
|
|
22073
|
-
directives: [{
|
|
22074
|
-
name: "tippy",
|
|
22075
|
-
rawName: "v-tippy"
|
|
22076
|
-
}],
|
|
22077
|
-
key: "times-circle",
|
|
22078
|
-
staticClass: "check vermelho",
|
|
22079
|
-
attrs: {
|
|
22080
|
-
"content": _vm.contentTooltip
|
|
22081
|
-
}
|
|
22082
|
-
}, [_c('fa-icon', {
|
|
22083
|
-
attrs: {
|
|
22084
|
-
"icon": ['fas', 'times-circle']
|
|
22085
|
-
}
|
|
22086
|
-
})], 1) : _vm.status == 'T' ? _c('span', {
|
|
22087
|
-
directives: [{
|
|
22088
|
-
name: "tippy",
|
|
22089
|
-
rawName: "v-tippy"
|
|
22090
|
-
}],
|
|
22091
|
-
key: "hourglass",
|
|
22092
|
-
staticClass: "check vermelho",
|
|
22093
|
-
attrs: {
|
|
22094
|
-
"content": _vm.contentTooltip
|
|
22095
|
-
}
|
|
22096
|
-
}, [_c('fa-icon', {
|
|
22097
|
-
attrs: {
|
|
22098
|
-
"icon": ['fas', 'hourglass']
|
|
22099
|
-
}
|
|
22100
|
-
})], 1) : _vm.status == 'O' ? _c('span', {
|
|
22101
|
-
directives: [{
|
|
22102
|
-
name: "tippy",
|
|
22103
|
-
rawName: "v-tippy"
|
|
22104
|
-
}],
|
|
22105
|
-
key: "deleted",
|
|
22106
|
-
staticClass: "check vermelho",
|
|
22107
|
-
attrs: {
|
|
22108
|
-
"content": _vm.contentTooltip
|
|
22109
|
-
}
|
|
22110
|
-
}, [_c('fa-icon', {
|
|
22111
|
-
attrs: {
|
|
22112
|
-
"icon": ['fas', 'times']
|
|
22113
|
-
}
|
|
22114
|
-
})], 1) : _vm._e()]), _vm._ssrNode(" "), _c('vue-html2pdf', {
|
|
22017
|
+
}), _vm._ssrNode(" <span class=\"clip-badge\">" + _vm._ssrEscape(_vm._s(_vm.filteredFiles.length)) + "</span>")], 2)]) : _vm._e(), _vm._ssrNode(" "), _c('vue-html2pdf', {
|
|
22115
22018
|
ref: "html2pdf",
|
|
22116
22019
|
attrs: {
|
|
22117
22020
|
"show-layout": false,
|
|
@@ -22158,7 +22061,7 @@ var __vue_inject_styles__$1 = undefined;
|
|
|
22158
22061
|
/* scoped */
|
|
22159
22062
|
var __vue_scope_id__$1 = undefined;
|
|
22160
22063
|
/* module identifier */
|
|
22161
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
22064
|
+
var __vue_module_identifier__$1 = "data-v-009c1d38";
|
|
22162
22065
|
/* functional template */
|
|
22163
22066
|
var __vue_is_functional_template__$1 = false;
|
|
22164
22067
|
/* style inject */
|
package/package.json
CHANGED
|
@@ -11,6 +11,22 @@
|
|
|
11
11
|
<fa-icon :icon="['fas', origem === 'outros' ? 'user' : 'headset']" class="email-to-svg" />
|
|
12
12
|
</span>
|
|
13
13
|
</div>
|
|
14
|
+
<span
|
|
15
|
+
v-if="status && status !== 'C'"
|
|
16
|
+
class="email-status-badge email-status-enviado"
|
|
17
|
+
v-tippy
|
|
18
|
+
:content="`Enviado em: ${formattedDate}`"
|
|
19
|
+
>
|
|
20
|
+
Enviado
|
|
21
|
+
</span>
|
|
22
|
+
<span
|
|
23
|
+
v-else-if="status === 'C'"
|
|
24
|
+
class="email-status-badge email-status-nao-enviado"
|
|
25
|
+
v-tippy
|
|
26
|
+
:content="`Erro ao enviar em: ${formattedDate}`"
|
|
27
|
+
>
|
|
28
|
+
Não enviado
|
|
29
|
+
</span>
|
|
14
30
|
<div class="email-custom-buttons" @click.stop>
|
|
15
31
|
<template v-if="customButtons && customButtons.length">
|
|
16
32
|
<span v-for="(button, index) in customButtons" :key="button.id || index" v-show="button.use"
|
|
@@ -189,38 +205,6 @@
|
|
|
189
205
|
</span>
|
|
190
206
|
</div>
|
|
191
207
|
<!-- Status da mensagem -->
|
|
192
|
-
<transition name="fade" mode="out-in">
|
|
193
|
-
<span class="check" v-if="status == 'D'" :content="contentTooltip" v-tippy key="check-padrao">
|
|
194
|
-
<fa-icon :icon="['fas', 'check']" />
|
|
195
|
-
</span>
|
|
196
|
-
<span class="check cinza" v-else-if="status == 'Q'" :content="contentTooltip" v-tippy key="check-cinza">
|
|
197
|
-
<fa-icon :icon="['fas', 'check']" />
|
|
198
|
-
</span>
|
|
199
|
-
<span class="check preto" v-else-if="status == 'G'" :content="contentTooltip" v-tippy key="check-preto">
|
|
200
|
-
<fa-icon :icon="['fas', 'check']" />
|
|
201
|
-
</span>
|
|
202
|
-
<span class="check preto" v-else-if="status == 'E'" :content="contentTooltip" v-tippy key="double-check-preto">
|
|
203
|
-
<fa-icon :icon="['fas', 'check-double']" />
|
|
204
|
-
</span>
|
|
205
|
-
<span class="check visualizado" v-else-if="status == 'L'" :content="contentTooltip" v-tippy
|
|
206
|
-
key="double-check-visualizado">
|
|
207
|
-
<fa-icon :icon="['fas', 'check-double']" />
|
|
208
|
-
</span>
|
|
209
|
-
<!-- Status finalizador -->
|
|
210
|
-
<span class="check vermelho" v-else-if="status == 'C' || status == 'ERRO'" :content="contentTooltip" v-tippy
|
|
211
|
-
key="times-circle">
|
|
212
|
-
<fa-icon :icon="['fas', 'times-circle']" />
|
|
213
|
-
</span>
|
|
214
|
-
<!-- Status finalizador -->
|
|
215
|
-
<span class="check vermelho" v-else-if="status == 'T'" :content="contentTooltip" v-tippy key="hourglass">
|
|
216
|
-
<fa-icon :icon="['fas', 'hourglass']" />
|
|
217
|
-
</span>
|
|
218
|
-
<!-- Status finalizador -->
|
|
219
|
-
<span class="check vermelho" v-else-if="status == 'O'" :content="contentTooltip" v-tippy key="deleted">
|
|
220
|
-
<fa-icon :icon="['fas', 'times']" />
|
|
221
|
-
</span>
|
|
222
|
-
<!-- Status de mensagem deletada -->
|
|
223
|
-
</transition>
|
|
224
208
|
<vue-html2pdf
|
|
225
209
|
:show-layout="false"
|
|
226
210
|
:enable-download="true"
|
|
@@ -419,7 +403,7 @@ export default {
|
|
|
419
403
|
scrollToFile: false,
|
|
420
404
|
htmlToPdfOptions: {
|
|
421
405
|
margin: [15, 0, 15, 0],
|
|
422
|
-
filename:
|
|
406
|
+
filename: `email.pdf`,
|
|
423
407
|
image: {
|
|
424
408
|
type: 'jpeg',
|
|
425
409
|
quality: 0.98
|
|
@@ -546,7 +530,9 @@ export default {
|
|
|
546
530
|
const subject = this.assunto || 'email';
|
|
547
531
|
const sanitized = subject.replace(/[^a-z0-9]/gi, '_').substring(0, 50);
|
|
548
532
|
const date = this.dataHora ? new Date(this.dataHora).toISOString().split('T')[0] : '';
|
|
549
|
-
|
|
533
|
+
const str = `email_${sanitized}_${date}`
|
|
534
|
+
if(str != this.htmlToPdfOptions.filename) this.htmlToPdfOptions.filename = `${str}.pdf`;
|
|
535
|
+
return str;
|
|
550
536
|
}
|
|
551
537
|
},
|
|
552
538
|
watch: {
|