vue-intergrall-plugins 1.0.29 → 1.0.31
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.
|
@@ -10291,6 +10291,11 @@ var script = {
|
|
|
10291
10291
|
type: String,
|
|
10292
10292
|
required: false,
|
|
10293
10293
|
default: 'bg-light-gray-2'
|
|
10294
|
+
},
|
|
10295
|
+
sanitizeOptions: {
|
|
10296
|
+
type: Object,
|
|
10297
|
+
required: false,
|
|
10298
|
+
default: null
|
|
10294
10299
|
}
|
|
10295
10300
|
},
|
|
10296
10301
|
data: function data() {
|
|
@@ -10311,10 +10316,12 @@ var script = {
|
|
|
10311
10316
|
this.openMessage = !this.openMessage;
|
|
10312
10317
|
},
|
|
10313
10318
|
returnCleanHtml: function returnCleanHtml(html) {
|
|
10314
|
-
var options = {
|
|
10315
|
-
allowedTags: ['a', 'b', 'br', 'div', 'i', 'p', 'span', 'strong', 'u', 'ul', 'ol', 'li'],
|
|
10319
|
+
var options = this.sanitizeOptions ? this.sanitizeOptions : {
|
|
10320
|
+
allowedTags: ['a', 'b', 'br', 'div', 'i', 'p', 'span', 'strong', 'u', 'ul', 'ol', 'li', 'img', 'link'],
|
|
10316
10321
|
allowedAttributes: {
|
|
10317
10322
|
'a': ['href'],
|
|
10323
|
+
'img': ['src', 'width', 'height', 'alt'],
|
|
10324
|
+
'link': ['rel', 'href'],
|
|
10318
10325
|
'*': ['style']
|
|
10319
10326
|
}
|
|
10320
10327
|
};
|
|
@@ -10332,7 +10339,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10332
10339
|
return _c('div', {
|
|
10333
10340
|
staticClass: "email-item box-shadow",
|
|
10334
10341
|
class: "" + (_vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass)
|
|
10335
|
-
}, [_vm._ssrNode("<div class=\"email-header\" data-v-
|
|
10342
|
+
}, [_vm._ssrNode("<div class=\"email-header\" data-v-47eec7ab>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-47eec7ab>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-47eec7ab>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.assunto || '(Sem assunto)') + " class=\"email-subject\" data-v-47eec7ab>" + _vm._ssrEscape(_vm._s(_vm.tratarTextoLongo(_vm.assunto || '(Sem assunto)', 30))) + "</p> "), _vm.from && _vm.from.length ? _vm._l(_vm.from, function (ref, index) {
|
|
10336
10343
|
var name = ref.name;
|
|
10337
10344
|
var mail = ref.mail;
|
|
10338
10345
|
return _c('EmailFrom', {
|
|
@@ -10356,7 +10363,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10356
10363
|
"isLastIndex": index == _vm.para.length - 1
|
|
10357
10364
|
}
|
|
10358
10365
|
});
|
|
10359
|
-
}) : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formataDateHoraDateFns(_vm.dataHora, _vm.dataServer, _vm.dicionario)) + " class=\"email-date\" data-v-
|
|
10366
|
+
}) : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formataDateHoraDateFns(_vm.dataHora, _vm.dataServer, _vm.dicionario)) + " class=\"email-date\" data-v-47eec7ab>", "</span>", [_c('fa-icon', {
|
|
10360
10367
|
attrs: {
|
|
10361
10368
|
"icon": ['fas', 'calendar']
|
|
10362
10369
|
}
|
|
@@ -10403,7 +10410,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10403
10410
|
domProps: {
|
|
10404
10411
|
"textContent": _vm._s(_vm.mensagem)
|
|
10405
10412
|
}
|
|
10406
|
-
}) : _vm._e()]) : _vm._e()]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-
|
|
10413
|
+
}) : _vm._e()]) : _vm._e()]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-47eec7ab>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
|
|
10407
10414
|
return _c('EmailFile', {
|
|
10408
10415
|
key: index,
|
|
10409
10416
|
attrs: {
|
|
@@ -10418,20 +10425,20 @@ var __vue_staticRenderFns__ = [];
|
|
|
10418
10425
|
/* style */
|
|
10419
10426
|
var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
|
|
10420
10427
|
if (!inject) return;
|
|
10421
|
-
inject("data-v-
|
|
10422
|
-
source: ".show-y-top-enter-active[data-v-
|
|
10428
|
+
inject("data-v-47eec7ab_0", {
|
|
10429
|
+
source: ".show-y-top-enter-active[data-v-47eec7ab],.show-y-top-leave-enter[data-v-47eec7ab]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-47eec7ab],.show-y-top-leave-to[data-v-47eec7ab]{opacity:0;transform:translateY(-2%)}",
|
|
10423
10430
|
map: undefined,
|
|
10424
10431
|
media: undefined
|
|
10425
|
-
}), inject("data-v-
|
|
10426
|
-
source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-item{flex:1;margin:0 10px 10px;color:#222;min-height:60px;display:flex;flex-wrap:wrap;padding:10px;border-radius:5px;transition:all 150ms ease-in-out}.email-header{width:100%;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px}.email-header-content{display:flex;justify-content:center;align-items:center;margin:10px}.email-header-infos{display:flex;flex-direction:column}.email-subject{margin:0;font-weight:700;font-size:.9rem}.email-date{font-size:.8rem;margin-right:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:15px;background-color:#fff;position:relative}.email-actions{align-self:flex-end;display:flex;border-radius:5px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:10px 5px;background-color:#fff}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:7px;height:7px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:60px;width:250px;top:15px;margin:0;list-style-type:none;padding:0;border-radius:5px;z-index:1}.email-action{background-color:#dfdfdf;padding:5px 10px;cursor:pointer;transition:background-color 150ms ease-in-out;font-size:.9rem;user-select:none}.email-action:nth-child(1){border-top-left-radius:5px;border-top-right-radius:5px}.email-action:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.email-action:hover{background-color:#ccc}.email-html{max-width:100%;padding:10px}.email-raw{max-width:100%;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%}",
|
|
10432
|
+
}), inject("data-v-47eec7ab_1", {
|
|
10433
|
+
source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-item{flex:1;margin:0 10px 10px;color:#222;min-height:60px;display:flex;flex-wrap:wrap;padding:10px;border-radius:5px;transition:all 150ms ease-in-out;max-width:100%;width:100%}.email-header{width:100%;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px}.email-header-content{display:flex;justify-content:center;align-items:center;margin:10px}.email-header-infos{display:flex;flex-direction:column}.email-subject{margin:0;font-weight:700;font-size:.9rem}.email-date{font-size:.8rem;margin-right:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:15px;background-color:#fff;position:relative;max-width:100%}.email-actions{align-self:flex-end;display:flex;border-radius:5px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:10px 5px;background-color:#fff}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:7px;height:7px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:60px;width:250px;top:15px;margin:0;list-style-type:none;padding:0;border-radius:5px;z-index:1}.email-action{background-color:#dfdfdf;padding:5px 10px;cursor:pointer;transition:background-color 150ms ease-in-out;font-size:.9rem;user-select:none}.email-action:nth-child(1){border-top-left-radius:5px;border-top-right-radius:5px}.email-action:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.email-action:hover{background-color:#ccc}.email-html{max-width:100%;padding:10px}.email-raw{max-width:100%;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%}",
|
|
10427
10434
|
map: undefined,
|
|
10428
10435
|
media: undefined
|
|
10429
10436
|
});
|
|
10430
10437
|
};
|
|
10431
10438
|
/* scoped */
|
|
10432
|
-
var __vue_scope_id__ = "data-v-
|
|
10439
|
+
var __vue_scope_id__ = "data-v-47eec7ab";
|
|
10433
10440
|
/* module identifier */
|
|
10434
|
-
var __vue_module_identifier__ = "data-v-
|
|
10441
|
+
var __vue_module_identifier__ = "data-v-47eec7ab";
|
|
10435
10442
|
/* functional template */
|
|
10436
10443
|
var __vue_is_functional_template__ = false;
|
|
10437
10444
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -48,10 +48,10 @@ import EmailFile from "./EmailFile.vue"
|
|
|
48
48
|
import EmailTo from "./EmailTo.vue"
|
|
49
49
|
import EmailFrom from "./EmailFrom.vue"
|
|
50
50
|
import { textoLongo } from "@/mixins/formatarTexto"
|
|
51
|
-
import
|
|
51
|
+
import { mixin as clickaway } from "vue-clickaway";
|
|
52
52
|
|
|
53
53
|
export default {
|
|
54
|
-
mixins: [textoLongo,
|
|
54
|
+
mixins: [textoLongo, clickaway],
|
|
55
55
|
components: { EmailFile, EmailTo, EmailFrom },
|
|
56
56
|
props: {
|
|
57
57
|
dominio: {
|
|
@@ -116,6 +116,11 @@ export default {
|
|
|
116
116
|
type: String,
|
|
117
117
|
required: false,
|
|
118
118
|
default: 'bg-light-gray-2'
|
|
119
|
+
},
|
|
120
|
+
sanitizeOptions: {
|
|
121
|
+
type: Object,
|
|
122
|
+
required: false,
|
|
123
|
+
default: null
|
|
119
124
|
}
|
|
120
125
|
},
|
|
121
126
|
data() {
|
|
@@ -136,15 +141,17 @@ export default {
|
|
|
136
141
|
this.openMessage = !this.openMessage
|
|
137
142
|
},
|
|
138
143
|
returnCleanHtml(html) {
|
|
139
|
-
const options = {
|
|
144
|
+
const options = this.sanitizeOptions ? this.sanitizeOptions : {
|
|
140
145
|
allowedTags: [
|
|
141
|
-
'a', 'b', 'br', 'div', 'i', 'p', 'span', 'strong', 'u', 'ul', 'ol', 'li'
|
|
146
|
+
'a', 'b', 'br', 'div', 'i', 'p', 'span', 'strong', 'u', 'ul', 'ol', 'li', 'img', 'link'
|
|
142
147
|
],
|
|
143
148
|
allowedAttributes: {
|
|
144
149
|
'a': ['href'],
|
|
150
|
+
'img': ['src', 'width', 'height', 'alt'],
|
|
151
|
+
'link': ['rel', 'href'],
|
|
145
152
|
'*': ['style']
|
|
146
153
|
}
|
|
147
|
-
}
|
|
154
|
+
}
|
|
148
155
|
return this.$sanitize(html, options);
|
|
149
156
|
}
|
|
150
157
|
}
|
|
@@ -185,6 +192,8 @@ export default {
|
|
|
185
192
|
padding: 10px;
|
|
186
193
|
border-radius: 5px;
|
|
187
194
|
transition: all 150ms ease-in-out;
|
|
195
|
+
max-width: 100%;
|
|
196
|
+
width: 100%;
|
|
188
197
|
}
|
|
189
198
|
|
|
190
199
|
.email-header {
|
|
@@ -232,6 +241,7 @@ export default {
|
|
|
232
241
|
padding: 15px;
|
|
233
242
|
background-color: #FFF;
|
|
234
243
|
position: relative;
|
|
244
|
+
max-width: 100%;
|
|
235
245
|
}
|
|
236
246
|
|
|
237
247
|
.email-actions {
|