vue-intergrall-plugins 1.0.62 → 1.0.63
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.
|
@@ -10302,6 +10302,7 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10302
10302
|
},
|
|
10303
10303
|
mounted: function mounted() {
|
|
10304
10304
|
this.updateIframeContent();
|
|
10305
|
+
this.adjustMaxWidth();
|
|
10305
10306
|
if (this.refKey) this.$root.$refs["".concat(refKey)] = this;
|
|
10306
10307
|
},
|
|
10307
10308
|
methods: {
|
|
@@ -10387,22 +10388,20 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10387
10388
|
ulElement.style.bottom = "-".concat(finalHeight, "px");
|
|
10388
10389
|
},
|
|
10389
10390
|
toggleIsOpen: function toggleIsOpen() {
|
|
10390
|
-
var _this4 = this;
|
|
10391
10391
|
this.isOpen = !this.isOpen;
|
|
10392
10392
|
if (!this.isOpen) {
|
|
10393
10393
|
this.actionsOpen = false;
|
|
10394
10394
|
this.openMessage = false;
|
|
10395
|
-
} else {
|
|
10396
|
-
this.$nextTick(function () {
|
|
10397
|
-
_this4.adjustMaxWidth();
|
|
10398
|
-
});
|
|
10399
10395
|
}
|
|
10400
10396
|
},
|
|
10401
10397
|
adjustMaxWidth: function adjustMaxWidth() {
|
|
10402
|
-
var
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10398
|
+
var _this4 = this;
|
|
10399
|
+
this.$nextTick(function () {
|
|
10400
|
+
var toContainer = _this4.$refs.emailToContainer;
|
|
10401
|
+
var dateContainer = _this4.$refs.emailDate;
|
|
10402
|
+
if (!toContainer || !dateContainer) return;
|
|
10403
|
+
toContainer.style.maxWidth = "calc(100% - ".concat(dateContainer.offsetWidth, "px)");
|
|
10404
|
+
});
|
|
10406
10405
|
},
|
|
10407
10406
|
toggleActions: function toggleActions() {
|
|
10408
10407
|
this.actionsOpen = !this.actionsOpen;
|
|
@@ -10462,19 +10461,19 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10462
10461
|
return _vm.openByItem($event);
|
|
10463
10462
|
}
|
|
10464
10463
|
}
|
|
10465
|
-
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-
|
|
10464
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-6c9eeb82></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem]) + " data-v-6c9eeb82>", "</div>", [_c('fa-icon', {
|
|
10466
10465
|
class: [_vm.origem],
|
|
10467
10466
|
attrs: {
|
|
10468
10467
|
"icon": ['fas', 'reply'],
|
|
10469
10468
|
"title": "Enviado por: " + _vm.autor
|
|
10470
10469
|
}
|
|
10471
|
-
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName()) + " class=\"email-author-name\" data-v-
|
|
10470
|
+
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName()) + " class=\"email-author-name\" data-v-6c9eeb82>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName())) + "</p> "), _c('fa-icon', {
|
|
10472
10471
|
staticClass: "email-to-svg",
|
|
10473
10472
|
attrs: {
|
|
10474
10473
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset'],
|
|
10475
10474
|
"title": "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')
|
|
10476
10475
|
}
|
|
10477
|
-
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-
|
|
10476
|
+
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-6c9eeb82>", "</div>", _vm._l(_vm.customButtons, function (button, index) {
|
|
10478
10477
|
return _c('span', {
|
|
10479
10478
|
directives: [{
|
|
10480
10479
|
name: "show",
|
|
@@ -10505,7 +10504,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10505
10504
|
"innerHTML": _vm._s(button.svgIcon)
|
|
10506
10505
|
}
|
|
10507
10506
|
})], 1);
|
|
10508
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-
|
|
10507
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-6c9eeb82>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-6c9eeb82>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> "), _vm._ssrNode("<div class=\"header-container\" data-v-6c9eeb82>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-6c9eeb82>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-6c9eeb82>", "</div>", [_vm.para && _vm.para.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-6c9eeb82>", "</div>", [_vm._l(_vm.para, function (recipient, index) {
|
|
10509
10508
|
return _c('EmailTo', {
|
|
10510
10509
|
key: "to-" + index,
|
|
10511
10510
|
attrs: {
|
|
@@ -10514,11 +10513,11 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10514
10513
|
"showMail": _vm.para.length === 1
|
|
10515
10514
|
}
|
|
10516
10515
|
});
|
|
10517
|
-
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-
|
|
10516
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-6c9eeb82>", "</div>", [_c('fa-icon', {
|
|
10518
10517
|
attrs: {
|
|
10519
10518
|
"icon": ['fas', 'caret-down']
|
|
10520
10519
|
}
|
|
10521
|
-
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-
|
|
10520
|
+
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-6c9eeb82><span class=\"email-subject-span\" data-v-6c9eeb82>" + _vm._ssrEscape(_vm._s("Assunto: " + (_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)'))) + "</span></div>" : "<!---->"))], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + _vm._ssrClass(null, "email-date " + (_vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass)) + " data-v-6c9eeb82>", "</span>", [_c('fa-icon', {
|
|
10522
10521
|
attrs: {
|
|
10523
10522
|
"icon": ['fas', 'calendar']
|
|
10524
10523
|
}
|
|
@@ -10539,10 +10538,10 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10539
10538
|
}
|
|
10540
10539
|
}
|
|
10541
10540
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
10542
|
-
return "<li class=\"email-info\" data-v-
|
|
10541
|
+
return "<li class=\"email-info\" data-v-6c9eeb82><span data-v-6c9eeb82>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
10543
10542
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
10544
10543
|
active: _vm.actionsOpen
|
|
10545
|
-
}]) + " data-v-
|
|
10544
|
+
}]) + " data-v-6c9eeb82><span data-v-6c9eeb82></span> <span data-v-6c9eeb82></span> <span data-v-6c9eeb82></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
10546
10545
|
directives: [{
|
|
10547
10546
|
name: "clickaway",
|
|
10548
10547
|
rawName: "v-clickaway",
|
|
@@ -10555,7 +10554,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10555
10554
|
$event.stopPropagation();
|
|
10556
10555
|
}
|
|
10557
10556
|
}
|
|
10558
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
10557
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-6c9eeb82>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
|
|
10559
10558
|
attrs: {
|
|
10560
10559
|
"name": "show-y-top"
|
|
10561
10560
|
}
|
|
@@ -10573,7 +10572,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10573
10572
|
class: "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')
|
|
10574
10573
|
}), _vm._v(" "), _vm.openMessage ? _c('span', {
|
|
10575
10574
|
staticClass: "email-raw"
|
|
10576
|
-
}, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()], 1)]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-
|
|
10575
|
+
}, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()], 1)]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-6c9eeb82>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
|
|
10577
10576
|
return _c('EmailFile', {
|
|
10578
10577
|
key: index,
|
|
10579
10578
|
attrs: {
|
|
@@ -10588,20 +10587,20 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
10588
10587
|
/* style */
|
|
10589
10588
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
10590
10589
|
if (!inject) return;
|
|
10591
|
-
inject("data-v-
|
|
10592
|
-
source: ".show-y-top-enter-active[data-v-
|
|
10590
|
+
inject("data-v-6c9eeb82_0", {
|
|
10591
|
+
source: ".show-y-top-enter-active[data-v-6c9eeb82],.show-y-top-leave-enter[data-v-6c9eeb82]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-6c9eeb82],.show-y-top-leave-to[data-v-6c9eeb82]{opacity:0;transform:translateY(-2%)}",
|
|
10593
10592
|
map: undefined,
|
|
10594
10593
|
media: undefined
|
|
10595
|
-
}), inject("data-v-
|
|
10596
|
-
source: "@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);.visibility-hidden{visibility:hidden}.box-shadow-active{box-shadow:0 0 4px 2px rgba(0,0,0,.25)!important}.bg-dark-white-2{background-color:#f7f7f7}.bg-white{background-color:#fff}.cursor-pointer{cursor:pointer}.email-overlay{width:100%;height:100%;background-color:transparent;z-index:1;position:absolute;top:0;left:0}.email-item{font-family:Roboto,sans-serif;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%;overflow:hidden;position:relative}.email-item.outros{border-left:3px solid #33b8df}.email-author-name{margin:0 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-author.outros{color:#33b8df}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:#ebb552}.email-item.principal{border-left:3px solid #ebb552}.email-item.info-open{overflow:visible}.email-header{width:100%;display:flex;flex-direction:column;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:visible}.header-container{display:flex;overflow:hidden;position:relative}.email-header-content{display:flex;align-items:center;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:0 0
|
|
10594
|
+
}), inject("data-v-6c9eeb82_1", {
|
|
10595
|
+
source: "@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);.visibility-hidden{visibility:hidden}.box-shadow-active{box-shadow:0 0 4px 2px rgba(0,0,0,.25)!important}.bg-dark-white-2{background-color:#f7f7f7}.bg-white{background-color:#fff}.cursor-pointer{cursor:pointer}.email-overlay{width:100%;height:100%;background-color:transparent;z-index:1;position:absolute;top:0;left:0}.email-item{font-family:Roboto,sans-serif;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%;overflow:hidden;position:relative}.email-item.outros{border-left:3px solid #33b8df}.email-author-name{margin:0 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-author.outros{color:#33b8df}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:#ebb552}.email-item.principal{border-left:3px solid #ebb552}.email-item.info-open{overflow:visible}.email-header{width:100%;display:flex;flex-direction:column;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:visible}.header-container{display:flex;overflow:hidden;position:relative}.email-header-content{display:flex;align-items:center;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:5px 0 0 0;font-size:1.025rem;cursor:pointer}.email-date{--width:245px;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:absolute;right:0;top:0;min-width:var(--width);width:var(--width);max-width:var(--width);display:flex;justify-content:flex-end;gap:3px;align-items:center}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;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;min-width:4px;min-height:4px;max-width:4px;max-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%;min-width:300px;max-width:100%;border:none;overflow:auto}.email-raw{width:100%;max-width:100%;padding:15px;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%;cursor:default;margin-top:5px}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:5px;max-width:100%;min-width:250px;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap;flex:1;gap:5px}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-325px;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-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:.75rem;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:.7rem;color:gray}.email-to-svg{font-size:.85rem}.email-custom-buttons{display:flex;gap:7px;position:absolute;top:5px;right:5px;z-index:1;font-size:.8rem}.menu-mensagem{cursor:pointer;padding:1px}",
|
|
10597
10596
|
map: undefined,
|
|
10598
10597
|
media: undefined
|
|
10599
10598
|
});
|
|
10600
10599
|
};
|
|
10601
10600
|
/* scoped */
|
|
10602
|
-
var __vue_scope_id__$1 = "data-v-
|
|
10601
|
+
var __vue_scope_id__$1 = "data-v-6c9eeb82";
|
|
10603
10602
|
/* module identifier */
|
|
10604
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
10603
|
+
var __vue_module_identifier__$1 = "data-v-6c9eeb82";
|
|
10605
10604
|
/* functional template */
|
|
10606
10605
|
var __vue_is_functional_template__$1 = false;
|
|
10607
10606
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<div class="header-container">
|
|
25
25
|
<div class="email-header-content">
|
|
26
26
|
<div class="email-header-infos">
|
|
27
|
-
<template v-if="para && para.length
|
|
27
|
+
<template v-if="para && para.length">
|
|
28
28
|
<div class="email-to-from-container" ref="emailToContainer">
|
|
29
29
|
<EmailTo v-for="(recipient, index) in para" :key="`to-${index}`"
|
|
30
30
|
:currentName="formattedToName(recipient.name, index, para.length)" :mail="recipient.mail"
|
|
@@ -210,6 +210,7 @@ export default {
|
|
|
210
210
|
},
|
|
211
211
|
mounted() {
|
|
212
212
|
this.updateIframeContent();
|
|
213
|
+
this.adjustMaxWidth()
|
|
213
214
|
|
|
214
215
|
if (this.refKey) this.$root.$refs[`${refKey}`] = this
|
|
215
216
|
},
|
|
@@ -290,17 +291,15 @@ export default {
|
|
|
290
291
|
if (!this.isOpen) {
|
|
291
292
|
this.actionsOpen = false;
|
|
292
293
|
this.openMessage = false
|
|
293
|
-
} else {
|
|
294
|
-
this.$nextTick(() => {
|
|
295
|
-
this.adjustMaxWidth()
|
|
296
|
-
})
|
|
297
294
|
}
|
|
298
295
|
},
|
|
299
296
|
adjustMaxWidth() {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
297
|
+
this.$nextTick(() => {
|
|
298
|
+
const toContainer = this.$refs.emailToContainer
|
|
299
|
+
const dateContainer = this.$refs.emailDate
|
|
300
|
+
if (!toContainer || !dateContainer) return
|
|
301
|
+
toContainer.style.maxWidth = `calc(100% - ${dateContainer.offsetWidth}px)`
|
|
302
|
+
})
|
|
304
303
|
},
|
|
305
304
|
toggleActions() {
|
|
306
305
|
this.actionsOpen = !this.actionsOpen;
|
|
@@ -479,7 +478,7 @@ export default {
|
|
|
479
478
|
}
|
|
480
479
|
|
|
481
480
|
.email-subject {
|
|
482
|
-
margin: 0 0
|
|
481
|
+
margin: 5px 0 0 0;
|
|
483
482
|
font-size: 1.025rem;
|
|
484
483
|
cursor: pointer;
|
|
485
484
|
}
|