vue-intergrall-plugins 1.0.35 → 1.0.37
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.
|
@@ -10321,7 +10321,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10321
10321
|
var _c = _vm._self._c || _h;
|
|
10322
10322
|
return _c('div', {
|
|
10323
10323
|
class: ['email-item box-shadow', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass]
|
|
10324
|
-
}, [_vm._ssrNode("<div class=\"email-header\" data-v-
|
|
10324
|
+
}, [_vm._ssrNode("<div class=\"email-header\" data-v-7d5e37b1>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-7d5e37b1>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-7d5e37b1>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)') + " class=\"email-subject\" data-v-7d5e37b1>" + _vm._ssrEscape("\n " + _vm._s(_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.tratarTextoLongo(_vm.assunto, 30))) || '(Sem assunto)') + "\n ") + "</p> "), _vm.from && _vm.from.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-7d5e37b1>", "</div>", _vm._l(_vm.from, function (sender, index) {
|
|
10325
10325
|
return _c('EmailFrom', {
|
|
10326
10326
|
key: "from-" + index,
|
|
10327
10327
|
attrs: {
|
|
@@ -10330,7 +10330,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10330
10330
|
"showMail": _vm.isOpen
|
|
10331
10331
|
}
|
|
10332
10332
|
});
|
|
10333
|
-
}), 1)] : _vm._e(), _vm._ssrNode(" "), _vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-
|
|
10333
|
+
}), 1)] : _vm._e(), _vm._ssrNode(" "), _vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-7d5e37b1>", "</div>", [_vm._l(_vm.para, function (recipient, index) {
|
|
10334
10334
|
return _c('EmailTo', {
|
|
10335
10335
|
key: "to-" + index,
|
|
10336
10336
|
attrs: {
|
|
@@ -10339,7 +10339,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10339
10339
|
"showMail": _vm.para.length === 1
|
|
10340
10340
|
}
|
|
10341
10341
|
});
|
|
10342
|
-
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-
|
|
10342
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-7d5e37b1>", "</div>", [_c('fa-icon', {
|
|
10343
10343
|
attrs: {
|
|
10344
10344
|
"icon": ['fas', 'caret-down']
|
|
10345
10345
|
}
|
|
@@ -10359,14 +10359,14 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10359
10359
|
}
|
|
10360
10360
|
}
|
|
10361
10361
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
10362
|
-
return "<li class=\"email-info\" data-v-
|
|
10363
|
-
}))]) : _vm._e()], 2)] : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + " class=\"email-date\" data-v-
|
|
10362
|
+
return "<li class=\"email-info\" data-v-7d5e37b1><span data-v-7d5e37b1>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
10363
|
+
}))]) : _vm._e()], 2)] : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + " class=\"email-date\" data-v-7d5e37b1>", "</span>", [_c('fa-icon', {
|
|
10364
10364
|
attrs: {
|
|
10365
10365
|
"icon": ['fas', 'calendar']
|
|
10366
10366
|
}
|
|
10367
10367
|
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.formattedDate) + "\n "))], 2), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
10368
10368
|
active: _vm.actionsOpen
|
|
10369
|
-
}]) + " data-v-
|
|
10369
|
+
}]) + " data-v-7d5e37b1><span data-v-7d5e37b1></span> <span data-v-7d5e37b1></span> <span data-v-7d5e37b1></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
10370
10370
|
directives: [{
|
|
10371
10371
|
name: "clickaway",
|
|
10372
10372
|
rawName: "v-clickaway",
|
|
@@ -10379,7 +10379,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10379
10379
|
$event.stopPropagation();
|
|
10380
10380
|
}
|
|
10381
10381
|
}
|
|
10382
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
10382
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-7d5e37b1>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
|
|
10383
10383
|
attrs: {
|
|
10384
10384
|
"name": "show-y-top"
|
|
10385
10385
|
}
|
|
@@ -10392,7 +10392,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10392
10392
|
}
|
|
10393
10393
|
}), _vm._v(" "), _vm.openMessage ? _c('span', {
|
|
10394
10394
|
staticClass: "email-raw"
|
|
10395
|
-
}, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()]) : _vm._e()]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-
|
|
10395
|
+
}, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()]) : _vm._e()]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-7d5e37b1>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
|
|
10396
10396
|
return _c('EmailFile', {
|
|
10397
10397
|
key: index,
|
|
10398
10398
|
attrs: {
|
|
@@ -10407,20 +10407,20 @@ var __vue_staticRenderFns__ = [];
|
|
|
10407
10407
|
/* style */
|
|
10408
10408
|
var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
|
|
10409
10409
|
if (!inject) return;
|
|
10410
|
-
inject("data-v-
|
|
10411
|
-
source: ".show-y-top-enter-active[data-v-
|
|
10410
|
+
inject("data-v-7d5e37b1_0", {
|
|
10411
|
+
source: ".show-y-top-enter-active[data-v-7d5e37b1],.show-y-top-leave-enter[data-v-7d5e37b1]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-7d5e37b1],.show-y-top-leave-to[data-v-7d5e37b1]{opacity:0;transform:translateY(-2%)}",
|
|
10412
10412
|
map: undefined,
|
|
10413
10413
|
media: undefined
|
|
10414
|
-
}), inject("data-v-
|
|
10415
|
-
source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-item{flex:1;margin:0 0 10px 0;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;position:relative}.email-header-content{display:flex;align-items:center;margin:10px;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:0 0 5px 0;font-weight:700;font-size:.95rem}.email-date{--width:245px;font-size:.8rem;margin-right:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-width:var(--width);width:var(--width);max-width:var(--width)}.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:10px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:5px 7px;background-color:#ddd;position:absolute;right:5px;top:5px;z-index:1}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:45px;width:250px;top:5px;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{width:100%;max-width:100%;padding:10px}.email-raw{width:100%;max-width:100%;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:10px;max-width:100%;display:flex;flex-wrap:wrap;flex:1;gap:5px}.email-to-from-container:last-child{margin-bottom:0}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-300px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;height:300px;max-height:300px;overflow-y:auto;overflow-x:hidden;width:300px;display:flex;flex-direction:column;gap:5px;margin:0;cursor:default}.email-info{width:100%;font-size:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-left:5px}",
|
|
10414
|
+
}), inject("data-v-7d5e37b1_1", {
|
|
10415
|
+
source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-item{flex:1;margin:0 0 10px 0;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;position:relative;overflow:hidden}.email-header-content{display:flex;align-items:center;margin:10px;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:0 0 5px 0;font-weight:700;font-size:.95rem}.email-date{--width:245px;font-size:.8rem;margin-right:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-width:var(--width);width:var(--width);max-width:var(--width)}.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:10px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:5px 7px;background-color:#ddd;position:absolute;right:5px;top:5px;z-index:1}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:45px;width:250px;top:5px;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{width:100%;max-width:100%;padding:10px}.email-raw{width:100%;max-width:100%;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:10px;max-width:100%;display:flex;flex-wrap:wrap;flex:1;gap:5px}.email-to-from-container:last-child{margin-bottom:0}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-300px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;height:300px;max-height:300px;overflow-y:auto;overflow-x:hidden;width:300px;display:flex;flex-direction:column;gap:5px;margin:0;cursor:default}.email-info{width:100%;font-size:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-left:5px}",
|
|
10416
10416
|
map: undefined,
|
|
10417
10417
|
media: undefined
|
|
10418
10418
|
});
|
|
10419
10419
|
};
|
|
10420
10420
|
/* scoped */
|
|
10421
|
-
var __vue_scope_id__ = "data-v-
|
|
10421
|
+
var __vue_scope_id__ = "data-v-7d5e37b1";
|
|
10422
10422
|
/* module identifier */
|
|
10423
|
-
var __vue_module_identifier__ = "data-v-
|
|
10423
|
+
var __vue_module_identifier__ = "data-v-7d5e37b1";
|
|
10424
10424
|
/* functional template */
|
|
10425
10425
|
var __vue_is_functional_template__ = false;
|
|
10426
10426
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -143,12 +143,22 @@ export default {
|
|
|
143
143
|
},
|
|
144
144
|
cleanHtml() {
|
|
145
145
|
const defaultOptions = {
|
|
146
|
-
allowedTags: [
|
|
146
|
+
allowedTags: [
|
|
147
|
+
'a', 'b', 'br', 'div', 'i', 'p', 'span', 'strong', 'u', 'ul', 'ol', 'li', 'img', 'link', 'center', 'em', 'blockquote',
|
|
148
|
+
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'table', 'tr', 'td', 'th', 'thead', 'tbody', 'fieldset', 'input', 'textarea', 'hr',
|
|
149
|
+
'del', 'header', 'footer', 'section', 'article', 'nav', 'aside', 'figure', 'figcaption', 'address', 'abbr', 'code', 'pre',
|
|
150
|
+
'small', 'sub', 'sup', 'mark', 'wbr', 'q', 'cite', 'time', 'var', 'kbd', 'samp', 'dfn'
|
|
151
|
+
],
|
|
147
152
|
allowedAttributes: {
|
|
148
|
-
'a': ['href'],
|
|
149
|
-
'img': ['src', 'width', 'height', 'alt'],
|
|
150
|
-
'link': ['rel', 'href'],
|
|
151
|
-
'
|
|
153
|
+
'a': ['href', 'name', 'target', 'title'],
|
|
154
|
+
'img': ['src', 'width', 'height', 'alt', 'title'],
|
|
155
|
+
'link': ['rel', 'href', 'type'],
|
|
156
|
+
'input': ['type', 'name', 'value', 'placeholder', 'maxlength', 'minlength', 'size', 'readonly', 'disabled'],
|
|
157
|
+
'textarea': ['name', 'rows', 'cols', 'placeholder', 'maxlength', 'minlength', 'readonly', 'disabled'],
|
|
158
|
+
'table': ['border', 'cellpadding', 'cellspacing', 'width', 'height'],
|
|
159
|
+
'th': ['colspan', 'rowspan'],
|
|
160
|
+
'td': ['colspan', 'rowspan'],
|
|
161
|
+
'*': ['style', 'class', 'id', 'title', 'align', 'valign', 'dir', 'lang', 'tabindex', 'accesskey', 'data-*', 'dir']
|
|
152
162
|
}
|
|
153
163
|
};
|
|
154
164
|
return this.$sanitize(this.html, this.sanitizeOptions || defaultOptions);
|
|
@@ -259,6 +269,7 @@ export default {
|
|
|
259
269
|
border-top-right-radius: 5px;
|
|
260
270
|
border-top-left-radius: 5px;
|
|
261
271
|
position: relative;
|
|
272
|
+
overflow: hidden;
|
|
262
273
|
}
|
|
263
274
|
|
|
264
275
|
.email-header-content {
|