vue-intergrall-plugins 1.0.61 → 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.
|
@@ -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 */
|
|
@@ -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: {
|
|
@@ -10369,7 +10370,22 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10369
10370
|
});
|
|
10370
10371
|
},
|
|
10371
10372
|
toggleShowInfos: function toggleShowInfos() {
|
|
10373
|
+
var _this3 = this;
|
|
10372
10374
|
this.showInfos = !this.showInfos;
|
|
10375
|
+
if (this.showInfos) {
|
|
10376
|
+
this.$nextTick(function () {
|
|
10377
|
+
_this3.adjustTopPosition();
|
|
10378
|
+
});
|
|
10379
|
+
}
|
|
10380
|
+
},
|
|
10381
|
+
adjustTopPosition: function adjustTopPosition() {
|
|
10382
|
+
var ulElement = this.$refs.emailToInfos;
|
|
10383
|
+
if (!ulElement) return;
|
|
10384
|
+
var ulHeight = ulElement.offsetHeight;
|
|
10385
|
+
var margin = 25;
|
|
10386
|
+
var maxHeight = 300;
|
|
10387
|
+
var finalHeight = ulHeight < maxHeight ? ulHeight + margin : maxHeight + margin;
|
|
10388
|
+
ulElement.style.bottom = "-".concat(finalHeight, "px");
|
|
10373
10389
|
},
|
|
10374
10390
|
toggleIsOpen: function toggleIsOpen() {
|
|
10375
10391
|
this.isOpen = !this.isOpen;
|
|
@@ -10378,6 +10394,15 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10378
10394
|
this.openMessage = false;
|
|
10379
10395
|
}
|
|
10380
10396
|
},
|
|
10397
|
+
adjustMaxWidth: function adjustMaxWidth() {
|
|
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
|
+
});
|
|
10405
|
+
},
|
|
10381
10406
|
toggleActions: function toggleActions() {
|
|
10382
10407
|
this.actionsOpen = !this.actionsOpen;
|
|
10383
10408
|
},
|
|
@@ -10436,19 +10461,19 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10436
10461
|
return _vm.openByItem($event);
|
|
10437
10462
|
}
|
|
10438
10463
|
}
|
|
10439
|
-
}, [_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', {
|
|
10440
10465
|
class: [_vm.origem],
|
|
10441
10466
|
attrs: {
|
|
10442
10467
|
"icon": ['fas', 'reply'],
|
|
10443
10468
|
"title": "Enviado por: " + _vm.autor
|
|
10444
10469
|
}
|
|
10445
|
-
}), _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', {
|
|
10446
10471
|
staticClass: "email-to-svg",
|
|
10447
10472
|
attrs: {
|
|
10448
10473
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset'],
|
|
10449
10474
|
"title": "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')
|
|
10450
10475
|
}
|
|
10451
|
-
})], 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) {
|
|
10452
10477
|
return _c('span', {
|
|
10453
10478
|
directives: [{
|
|
10454
10479
|
name: "show",
|
|
@@ -10479,7 +10504,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10479
10504
|
"innerHTML": _vm._s(button.svgIcon)
|
|
10480
10505
|
}
|
|
10481
10506
|
})], 1);
|
|
10482
|
-
}), 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) {
|
|
10483
10508
|
return _c('EmailTo', {
|
|
10484
10509
|
key: "to-" + index,
|
|
10485
10510
|
attrs: {
|
|
@@ -10488,11 +10513,11 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10488
10513
|
"showMail": _vm.para.length === 1
|
|
10489
10514
|
}
|
|
10490
10515
|
});
|
|
10491
|
-
}), _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', {
|
|
10492
10517
|
attrs: {
|
|
10493
10518
|
"icon": ['fas', 'caret-down']
|
|
10494
10519
|
}
|
|
10495
|
-
})], 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', {
|
|
10496
10521
|
attrs: {
|
|
10497
10522
|
"icon": ['fas', 'calendar']
|
|
10498
10523
|
}
|
|
@@ -10505,6 +10530,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10505
10530
|
},
|
|
10506
10531
|
expression: "() => showInfos = false"
|
|
10507
10532
|
}],
|
|
10533
|
+
ref: "emailToInfos",
|
|
10508
10534
|
staticClass: "email-to-infos box-shadow",
|
|
10509
10535
|
on: {
|
|
10510
10536
|
"click": function click($event) {
|
|
@@ -10512,10 +10538,10 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10512
10538
|
}
|
|
10513
10539
|
}
|
|
10514
10540
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
10515
|
-
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>";
|
|
10516
10542
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
10517
10543
|
active: _vm.actionsOpen
|
|
10518
|
-
}]) + " 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', {
|
|
10519
10545
|
directives: [{
|
|
10520
10546
|
name: "clickaway",
|
|
10521
10547
|
rawName: "v-clickaway",
|
|
@@ -10528,7 +10554,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10528
10554
|
$event.stopPropagation();
|
|
10529
10555
|
}
|
|
10530
10556
|
}
|
|
10531
|
-
}, [_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', {
|
|
10532
10558
|
attrs: {
|
|
10533
10559
|
"name": "show-y-top"
|
|
10534
10560
|
}
|
|
@@ -10546,7 +10572,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10546
10572
|
class: "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')
|
|
10547
10573
|
}), _vm._v(" "), _vm.openMessage ? _c('span', {
|
|
10548
10574
|
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-
|
|
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) {
|
|
10550
10576
|
return _c('EmailFile', {
|
|
10551
10577
|
key: index,
|
|
10552
10578
|
attrs: {
|
|
@@ -10561,20 +10587,20 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
10561
10587
|
/* style */
|
|
10562
10588
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
10563
10589
|
if (!inject) return;
|
|
10564
|
-
inject("data-v-
|
|
10565
|
-
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%)}",
|
|
10566
10592
|
map: undefined,
|
|
10567
10593
|
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
|
|
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}",
|
|
10570
10596
|
map: undefined,
|
|
10571
10597
|
media: undefined
|
|
10572
10598
|
});
|
|
10573
10599
|
};
|
|
10574
10600
|
/* scoped */
|
|
10575
|
-
var __vue_scope_id__$1 = "data-v-
|
|
10601
|
+
var __vue_scope_id__$1 = "data-v-6c9eeb82";
|
|
10576
10602
|
/* module identifier */
|
|
10577
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
10603
|
+
var __vue_module_identifier__$1 = "data-v-6c9eeb82";
|
|
10578
10604
|
/* functional template */
|
|
10579
10605
|
var __vue_is_functional_template__$1 = false;
|
|
10580
10606
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -75,7 +75,6 @@ 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
|
|
|
@@ -83,12 +82,11 @@ export default {
|
|
|
83
82
|
width: 100%;
|
|
84
83
|
height: 100%;
|
|
85
84
|
max-width: 100%;
|
|
86
|
-
max-height: 100%;
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
.anexo-video video {
|
|
90
88
|
max-width: 100%;
|
|
91
|
-
max-height:
|
|
89
|
+
max-height: 100%;
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
.box-shadow {
|
|
@@ -164,5 +162,12 @@ export default {
|
|
|
164
162
|
text-overflow: ellipsis;
|
|
165
163
|
white-space: nowrap;
|
|
166
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);
|
|
167
172
|
}
|
|
168
173
|
</style>
|
|
@@ -24,8 +24,8 @@
|
|
|
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
|
|
28
|
-
<div class="email-to-from-container">
|
|
27
|
+
<template v-if="para && para.length">
|
|
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 }}
|
|
@@ -209,6 +210,7 @@ export default {
|
|
|
209
210
|
},
|
|
210
211
|
mounted() {
|
|
211
212
|
this.updateIframeContent();
|
|
213
|
+
this.adjustMaxWidth()
|
|
212
214
|
|
|
213
215
|
if (this.refKey) this.$root.$refs[`${refKey}`] = this
|
|
214
216
|
},
|
|
@@ -269,6 +271,20 @@ export default {
|
|
|
269
271
|
},
|
|
270
272
|
toggleShowInfos() {
|
|
271
273
|
this.showInfos = !this.showInfos;
|
|
274
|
+
if (this.showInfos) {
|
|
275
|
+
this.$nextTick(() => {
|
|
276
|
+
this.adjustTopPosition();
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
adjustTopPosition() {
|
|
281
|
+
const ulElement = this.$refs.emailToInfos;
|
|
282
|
+
if (!ulElement) return
|
|
283
|
+
const ulHeight = ulElement.offsetHeight;
|
|
284
|
+
const margin = 25
|
|
285
|
+
const maxHeight = 300
|
|
286
|
+
const finalHeight = ulHeight < maxHeight ? ulHeight + margin : maxHeight + margin
|
|
287
|
+
ulElement.style.bottom = `-${finalHeight}px`;
|
|
272
288
|
},
|
|
273
289
|
toggleIsOpen() {
|
|
274
290
|
this.isOpen = !this.isOpen;
|
|
@@ -277,6 +293,14 @@ export default {
|
|
|
277
293
|
this.openMessage = false
|
|
278
294
|
}
|
|
279
295
|
},
|
|
296
|
+
adjustMaxWidth() {
|
|
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
|
+
})
|
|
303
|
+
},
|
|
280
304
|
toggleActions() {
|
|
281
305
|
this.actionsOpen = !this.actionsOpen;
|
|
282
306
|
},
|
|
@@ -454,7 +478,7 @@ export default {
|
|
|
454
478
|
}
|
|
455
479
|
|
|
456
480
|
.email-subject {
|
|
457
|
-
margin: 0 0
|
|
481
|
+
margin: 5px 0 0 0;
|
|
458
482
|
font-size: 1.025rem;
|
|
459
483
|
cursor: pointer;
|
|
460
484
|
}
|
|
@@ -576,6 +600,7 @@ export default {
|
|
|
576
600
|
flex-wrap: wrap;
|
|
577
601
|
width: 100%;
|
|
578
602
|
cursor: default;
|
|
603
|
+
margin-top: 5px;
|
|
579
604
|
}
|
|
580
605
|
|
|
581
606
|
.email-header-content,
|