vue-intergrall-plugins 1.0.60 → 1.0.62
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.
|
@@ -10061,8 +10061,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
10061
10061
|
/* style */
|
|
10062
10062
|
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
10063
10063
|
if (!inject) return;
|
|
10064
|
-
inject("data-v-
|
|
10065
|
-
source: ".email-file{display:flex;align-items:center;justify-content:flex-end;flex-direction:column;min-width:50px;width:auto;max-width:100px;height:70px;position:relative}.anexo-img{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.anexo-img:hover{opacity:1}.anexo-img img{max-width:100%;
|
|
10064
|
+
inject("data-v-40b9eea6_0", {
|
|
10065
|
+
source: ".email-file{display:flex;align-items:center;justify-content:flex-end;flex-direction:column;min-width:50px;width:auto;max-width:100px;height:70px;position:relative}.anexo-img{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.anexo-img:hover{opacity:1}.anexo-img img{max-width:100%;font-size:.8rem}.anexo-video{width:100%;height:100%;max-width:100%}.anexo-video video{max-width:100%;max-height:100%}.box-shadow{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.anexo-icone{display:flex;justify-content:center;align-items:center;font-size:30px;cursor:pointer}.anexo-icone:hover{opacity:1}.anexo-icone:visited{color:inherit}.anexo-icone.pdf{position:relative}.anexo-icone.pdf svg{color:#e74c3c}.anexo-icone.pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px}.anexo-icone.doc{color:#15517f}.anexo-icone.doc::after{content:\"\";position:absolute;width:20px;height:20px}.anexo-download{position:absolute;top:0;right:0;border-radius:5px;padding:5px;display:flex;justify-content:center;align-items:center;color:#222;background-color:#fff;z-index:1;font-size:.8rem;cursor:pointer}.anexo-name{max-width:100%;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 0 5px 0;height:20px}.anexo-icone,.anexo-img,.anexo-video{max-height:calc(100% - 20px)}",
|
|
10066
10066
|
map: undefined,
|
|
10067
10067
|
media: undefined
|
|
10068
10068
|
});
|
|
@@ -10070,7 +10070,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
10070
10070
|
/* scoped */
|
|
10071
10071
|
var __vue_scope_id__$3 = undefined;
|
|
10072
10072
|
/* module identifier */
|
|
10073
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
10073
|
+
var __vue_module_identifier__$3 = "data-v-40b9eea6";
|
|
10074
10074
|
/* functional template */
|
|
10075
10075
|
var __vue_is_functional_template__$3 = false;
|
|
10076
10076
|
/* style inject shadow dom */
|
|
@@ -10369,15 +10369,41 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10369
10369
|
});
|
|
10370
10370
|
},
|
|
10371
10371
|
toggleShowInfos: function toggleShowInfos() {
|
|
10372
|
+
var _this3 = this;
|
|
10372
10373
|
this.showInfos = !this.showInfos;
|
|
10374
|
+
if (this.showInfos) {
|
|
10375
|
+
this.$nextTick(function () {
|
|
10376
|
+
_this3.adjustTopPosition();
|
|
10377
|
+
});
|
|
10378
|
+
}
|
|
10379
|
+
},
|
|
10380
|
+
adjustTopPosition: function adjustTopPosition() {
|
|
10381
|
+
var ulElement = this.$refs.emailToInfos;
|
|
10382
|
+
if (!ulElement) return;
|
|
10383
|
+
var ulHeight = ulElement.offsetHeight;
|
|
10384
|
+
var margin = 25;
|
|
10385
|
+
var maxHeight = 300;
|
|
10386
|
+
var finalHeight = ulHeight < maxHeight ? ulHeight + margin : maxHeight + margin;
|
|
10387
|
+
ulElement.style.bottom = "-".concat(finalHeight, "px");
|
|
10373
10388
|
},
|
|
10374
10389
|
toggleIsOpen: function toggleIsOpen() {
|
|
10390
|
+
var _this4 = this;
|
|
10375
10391
|
this.isOpen = !this.isOpen;
|
|
10376
10392
|
if (!this.isOpen) {
|
|
10377
10393
|
this.actionsOpen = false;
|
|
10378
10394
|
this.openMessage = false;
|
|
10395
|
+
} else {
|
|
10396
|
+
this.$nextTick(function () {
|
|
10397
|
+
_this4.adjustMaxWidth();
|
|
10398
|
+
});
|
|
10379
10399
|
}
|
|
10380
10400
|
},
|
|
10401
|
+
adjustMaxWidth: function adjustMaxWidth() {
|
|
10402
|
+
var toContainer = this.$refs.emailToContainer;
|
|
10403
|
+
var dateContainer = this.$refs.emailDate;
|
|
10404
|
+
if (!toContainer || !dateContainer) return;
|
|
10405
|
+
toContainer.style.maxWidth = "calc(100% - ".concat(dateContainer.offsetWidth, "px)");
|
|
10406
|
+
},
|
|
10381
10407
|
toggleActions: function toggleActions() {
|
|
10382
10408
|
this.actionsOpen = !this.actionsOpen;
|
|
10383
10409
|
},
|
|
@@ -10436,19 +10462,19 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10436
10462
|
return _vm.openByItem($event);
|
|
10437
10463
|
}
|
|
10438
10464
|
}
|
|
10439
|
-
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-
|
|
10465
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-0eb3dd45></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem]) + " data-v-0eb3dd45>", "</div>", [_c('fa-icon', {
|
|
10440
10466
|
class: [_vm.origem],
|
|
10441
10467
|
attrs: {
|
|
10442
10468
|
"icon": ['fas', 'reply'],
|
|
10443
10469
|
"title": "Enviado por: " + _vm.autor
|
|
10444
10470
|
}
|
|
10445
|
-
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName()) + " class=\"email-author-name\" data-v-
|
|
10471
|
+
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName()) + " class=\"email-author-name\" data-v-0eb3dd45>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName())) + "</p> "), _c('fa-icon', {
|
|
10446
10472
|
staticClass: "email-to-svg",
|
|
10447
10473
|
attrs: {
|
|
10448
10474
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset'],
|
|
10449
10475
|
"title": "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')
|
|
10450
10476
|
}
|
|
10451
|
-
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-
|
|
10477
|
+
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-0eb3dd45>", "</div>", _vm._l(_vm.customButtons, function (button, index) {
|
|
10452
10478
|
return _c('span', {
|
|
10453
10479
|
directives: [{
|
|
10454
10480
|
name: "show",
|
|
@@ -10479,7 +10505,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10479
10505
|
"innerHTML": _vm._s(button.svgIcon)
|
|
10480
10506
|
}
|
|
10481
10507
|
})], 1);
|
|
10482
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-
|
|
10508
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-0eb3dd45>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-0eb3dd45>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> "), _vm._ssrNode("<div class=\"header-container\" data-v-0eb3dd45>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-0eb3dd45>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-0eb3dd45>", "</div>", [_vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-0eb3dd45>", "</div>", [_vm._l(_vm.para, function (recipient, index) {
|
|
10483
10509
|
return _c('EmailTo', {
|
|
10484
10510
|
key: "to-" + index,
|
|
10485
10511
|
attrs: {
|
|
@@ -10488,11 +10514,11 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10488
10514
|
"showMail": _vm.para.length === 1
|
|
10489
10515
|
}
|
|
10490
10516
|
});
|
|
10491
|
-
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-
|
|
10517
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-0eb3dd45>", "</div>", [_c('fa-icon', {
|
|
10492
10518
|
attrs: {
|
|
10493
10519
|
"icon": ['fas', 'caret-down']
|
|
10494
10520
|
}
|
|
10495
|
-
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-
|
|
10521
|
+
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-0eb3dd45><span class=\"email-subject-span\" data-v-0eb3dd45>" + _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-0eb3dd45>", "</span>", [_c('fa-icon', {
|
|
10496
10522
|
attrs: {
|
|
10497
10523
|
"icon": ['fas', 'calendar']
|
|
10498
10524
|
}
|
|
@@ -10505,6 +10531,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10505
10531
|
},
|
|
10506
10532
|
expression: "() => showInfos = false"
|
|
10507
10533
|
}],
|
|
10534
|
+
ref: "emailToInfos",
|
|
10508
10535
|
staticClass: "email-to-infos box-shadow",
|
|
10509
10536
|
on: {
|
|
10510
10537
|
"click": function click($event) {
|
|
@@ -10512,10 +10539,10 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10512
10539
|
}
|
|
10513
10540
|
}
|
|
10514
10541
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
10515
|
-
return "<li class=\"email-info\" data-v-
|
|
10542
|
+
return "<li class=\"email-info\" data-v-0eb3dd45><span data-v-0eb3dd45>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
10516
10543
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
10517
10544
|
active: _vm.actionsOpen
|
|
10518
|
-
}]) + " data-v-
|
|
10545
|
+
}]) + " data-v-0eb3dd45><span data-v-0eb3dd45></span> <span data-v-0eb3dd45></span> <span data-v-0eb3dd45></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
10519
10546
|
directives: [{
|
|
10520
10547
|
name: "clickaway",
|
|
10521
10548
|
rawName: "v-clickaway",
|
|
@@ -10528,7 +10555,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10528
10555
|
$event.stopPropagation();
|
|
10529
10556
|
}
|
|
10530
10557
|
}
|
|
10531
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
10558
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-0eb3dd45>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
|
|
10532
10559
|
attrs: {
|
|
10533
10560
|
"name": "show-y-top"
|
|
10534
10561
|
}
|
|
@@ -10546,7 +10573,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10546
10573
|
class: "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')
|
|
10547
10574
|
}), _vm._v(" "), _vm.openMessage ? _c('span', {
|
|
10548
10575
|
staticClass: "email-raw"
|
|
10549
|
-
}, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()], 1)]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-
|
|
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-0eb3dd45>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
|
|
10550
10577
|
return _c('EmailFile', {
|
|
10551
10578
|
key: index,
|
|
10552
10579
|
attrs: {
|
|
@@ -10561,20 +10588,20 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
10561
10588
|
/* style */
|
|
10562
10589
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
10563
10590
|
if (!inject) return;
|
|
10564
|
-
inject("data-v-
|
|
10565
|
-
source: ".show-y-top-enter-active[data-v-
|
|
10591
|
+
inject("data-v-0eb3dd45_0", {
|
|
10592
|
+
source: ".show-y-top-enter-active[data-v-0eb3dd45],.show-y-top-leave-enter[data-v-0eb3dd45]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-0eb3dd45],.show-y-top-leave-to[data-v-0eb3dd45]{opacity:0;transform:translateY(-2%)}",
|
|
10566
10593
|
map: undefined,
|
|
10567
10594
|
media: undefined
|
|
10568
|
-
}), inject("data-v-
|
|
10569
|
-
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 5px 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}.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}",
|
|
10595
|
+
}), inject("data-v-0eb3dd45_1", {
|
|
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 5px 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}",
|
|
10570
10597
|
map: undefined,
|
|
10571
10598
|
media: undefined
|
|
10572
10599
|
});
|
|
10573
10600
|
};
|
|
10574
10601
|
/* scoped */
|
|
10575
|
-
var __vue_scope_id__$1 = "data-v-
|
|
10602
|
+
var __vue_scope_id__$1 = "data-v-0eb3dd45";
|
|
10576
10603
|
/* module identifier */
|
|
10577
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
10604
|
+
var __vue_module_identifier__$1 = "data-v-0eb3dd45";
|
|
10578
10605
|
/* functional template */
|
|
10579
10606
|
var __vue_is_functional_template__$1 = false;
|
|
10580
10607
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -75,17 +75,18 @@ export default {
|
|
|
75
75
|
|
|
76
76
|
.anexo-img img {
|
|
77
77
|
max-width: 100%;
|
|
78
|
-
max-height: 100%;
|
|
79
78
|
font-size: .8rem;
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
.anexo-video {
|
|
83
82
|
width: 100%;
|
|
84
83
|
height: 100%;
|
|
84
|
+
max-width: 100%;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.anexo-video video {
|
|
88
88
|
max-width: 100%;
|
|
89
|
+
max-height: 100%;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
.box-shadow {
|
|
@@ -161,5 +162,12 @@ export default {
|
|
|
161
162
|
text-overflow: ellipsis;
|
|
162
163
|
white-space: nowrap;
|
|
163
164
|
padding: 2px 0 5px 0;
|
|
165
|
+
height: 20px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.anexo-img,
|
|
169
|
+
.anexo-video,
|
|
170
|
+
.anexo-icone {
|
|
171
|
+
max-height: calc(100% - 20px);
|
|
164
172
|
}
|
|
165
173
|
</style>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class="email-header-content">
|
|
26
26
|
<div class="email-header-infos">
|
|
27
27
|
<template v-if="para && para.length && isOpen">
|
|
28
|
-
<div class="email-to-from-container">
|
|
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"
|
|
31
31
|
:showMail="para.length === 1" />
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
{{ formattedDate }}
|
|
46
46
|
</span>
|
|
47
47
|
</div>
|
|
48
|
-
<ul v-if="showInfos" class="email-to-infos box-shadow" v-clickaway="() => showInfos = false"
|
|
48
|
+
<ul v-if="showInfos" ref="emailToInfos" class="email-to-infos box-shadow" v-clickaway="() => showInfos = false"
|
|
49
|
+
@click.stop>
|
|
49
50
|
<li v-for="(info, index) in mailInfos" :key="`info-${index}`" class="email-info">
|
|
50
51
|
<span v-text="info.label"></span>
|
|
51
52
|
{{ info.value }}
|
|
@@ -269,14 +270,38 @@ export default {
|
|
|
269
270
|
},
|
|
270
271
|
toggleShowInfos() {
|
|
271
272
|
this.showInfos = !this.showInfos;
|
|
273
|
+
if (this.showInfos) {
|
|
274
|
+
this.$nextTick(() => {
|
|
275
|
+
this.adjustTopPosition();
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
adjustTopPosition() {
|
|
280
|
+
const ulElement = this.$refs.emailToInfos;
|
|
281
|
+
if (!ulElement) return
|
|
282
|
+
const ulHeight = ulElement.offsetHeight;
|
|
283
|
+
const margin = 25
|
|
284
|
+
const maxHeight = 300
|
|
285
|
+
const finalHeight = ulHeight < maxHeight ? ulHeight + margin : maxHeight + margin
|
|
286
|
+
ulElement.style.bottom = `-${finalHeight}px`;
|
|
272
287
|
},
|
|
273
288
|
toggleIsOpen() {
|
|
274
289
|
this.isOpen = !this.isOpen;
|
|
275
290
|
if (!this.isOpen) {
|
|
276
291
|
this.actionsOpen = false;
|
|
277
292
|
this.openMessage = false
|
|
293
|
+
} else {
|
|
294
|
+
this.$nextTick(() => {
|
|
295
|
+
this.adjustMaxWidth()
|
|
296
|
+
})
|
|
278
297
|
}
|
|
279
298
|
},
|
|
299
|
+
adjustMaxWidth() {
|
|
300
|
+
const toContainer = this.$refs.emailToContainer
|
|
301
|
+
const dateContainer = this.$refs.emailDate
|
|
302
|
+
if (!toContainer || !dateContainer) return
|
|
303
|
+
toContainer.style.maxWidth = `calc(100% - ${dateContainer.offsetWidth}px)`
|
|
304
|
+
},
|
|
280
305
|
toggleActions() {
|
|
281
306
|
this.actionsOpen = !this.actionsOpen;
|
|
282
307
|
},
|
|
@@ -576,6 +601,7 @@ export default {
|
|
|
576
601
|
flex-wrap: wrap;
|
|
577
602
|
width: 100%;
|
|
578
603
|
cursor: default;
|
|
604
|
+
margin-top: 5px;
|
|
579
605
|
}
|
|
580
606
|
|
|
581
607
|
.email-header-content,
|