vue-intergrall-plugins 1.0.72 → 1.0.73
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.
|
@@ -10354,6 +10354,12 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10354
10354
|
}, 15000);
|
|
10355
10355
|
},
|
|
10356
10356
|
methods: {
|
|
10357
|
+
handleTryAgain: function handleTryAgain() {
|
|
10358
|
+
this.isOpen = true;
|
|
10359
|
+
this.isIframeLoading = true;
|
|
10360
|
+
this.hasError = false;
|
|
10361
|
+
this.$nextTick(this.updateIframeContent());
|
|
10362
|
+
},
|
|
10357
10363
|
returnAuthorName: function returnAuthorName() {
|
|
10358
10364
|
if (!this.from || !this.from.length) return this.autor || '';
|
|
10359
10365
|
var _this$from$ = this.from[0],
|
|
@@ -10550,19 +10556,19 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10550
10556
|
return _vm.openByItem($event);
|
|
10551
10557
|
}
|
|
10552
10558
|
}
|
|
10553
|
-
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-
|
|
10559
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-31b6e56a></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem, _vm.isMainEmail ? 'main' : '']) + " data-v-31b6e56a>", "</div>", [_c('fa-icon', {
|
|
10554
10560
|
class: [_vm.origem],
|
|
10555
10561
|
attrs: {
|
|
10556
10562
|
"icon": ['fas', 'reply'],
|
|
10557
10563
|
"title": "Enviado por: " + _vm.autor
|
|
10558
10564
|
}
|
|
10559
|
-
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName()) + " class=\"email-author-name\" data-v-
|
|
10565
|
+
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName()) + " class=\"email-author-name\" data-v-31b6e56a>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName())) + "</p> "), _c('fa-icon', {
|
|
10560
10566
|
staticClass: "email-to-svg",
|
|
10561
10567
|
attrs: {
|
|
10562
10568
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset'],
|
|
10563
10569
|
"title": "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')
|
|
10564
10570
|
}
|
|
10565
|
-
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-
|
|
10571
|
+
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-31b6e56a>", "</div>", _vm._l(_vm.customButtons, function (button, index) {
|
|
10566
10572
|
return _c('span', {
|
|
10567
10573
|
directives: [{
|
|
10568
10574
|
name: "show",
|
|
@@ -10593,7 +10599,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10593
10599
|
"innerHTML": _vm._s(button.svgIcon)
|
|
10594
10600
|
}
|
|
10595
10601
|
})], 1);
|
|
10596
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-
|
|
10602
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-31b6e56a>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-31b6e56a>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> "), _vm._ssrNode("<div class=\"header-container\" data-v-31b6e56a>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, "email-header-content" + (_vm.isOpen ? ' open' : '')) + " data-v-31b6e56a>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-31b6e56a>", "</div>", [_vm.para && _vm.para.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-31b6e56a>", "</div>", [_vm._l(_vm.paraCopia, function (recipient, index) {
|
|
10597
10603
|
return _c('EmailTo', {
|
|
10598
10604
|
key: "to-" + index,
|
|
10599
10605
|
attrs: {
|
|
@@ -10604,13 +10610,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10604
10610
|
});
|
|
10605
10611
|
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\"" + _vm._ssrStyle(null, null, {
|
|
10606
10612
|
display: _vm.isOpen ? '' : 'none'
|
|
10607
|
-
}) + " data-v-
|
|
10613
|
+
}) + " data-v-31b6e56a>", "</div>", [_c('fa-icon', {
|
|
10608
10614
|
attrs: {
|
|
10609
10615
|
"icon": ['fas', 'caret-down']
|
|
10610
10616
|
}
|
|
10611
|
-
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-
|
|
10617
|
+
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-31b6e56a><span class=\"email-subject-span\" data-v-31b6e56a>" + _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)) + _vm._ssrStyle(null, null, {
|
|
10612
10618
|
display: _vm.formattedDate ? '' : 'none'
|
|
10613
|
-
}) + " data-v-
|
|
10619
|
+
}) + " data-v-31b6e56a>", "</span>", [_c('fa-icon', {
|
|
10614
10620
|
attrs: {
|
|
10615
10621
|
"icon": ['fas', 'calendar']
|
|
10616
10622
|
}
|
|
@@ -10631,12 +10637,12 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10631
10637
|
}
|
|
10632
10638
|
}
|
|
10633
10639
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
10634
|
-
return "<li class=\"email-info\" data-v-
|
|
10640
|
+
return "<li class=\"email-info\" data-v-31b6e56a><span data-v-31b6e56a>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
10635
10641
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
10636
10642
|
active: _vm.actionsOpen
|
|
10637
10643
|
}, {
|
|
10638
10644
|
main: _vm.isMainEmail
|
|
10639
|
-
}]) + " data-v-
|
|
10645
|
+
}]) + " data-v-31b6e56a><span data-v-31b6e56a></span> <span data-v-31b6e56a></span> <span data-v-31b6e56a></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
10640
10646
|
directives: [{
|
|
10641
10647
|
name: "clickaway",
|
|
10642
10648
|
rawName: "v-clickaway",
|
|
@@ -10649,7 +10655,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10649
10655
|
$event.stopPropagation();
|
|
10650
10656
|
}
|
|
10651
10657
|
}
|
|
10652
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
10658
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-31b6e56a>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
|
|
10653
10659
|
attrs: {
|
|
10654
10660
|
"name": "show-y-top"
|
|
10655
10661
|
}
|
|
@@ -10668,7 +10674,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10668
10674
|
staticClass: "box-shadow",
|
|
10669
10675
|
on: {
|
|
10670
10676
|
"click": function click($event) {
|
|
10671
|
-
return _vm.
|
|
10677
|
+
return _vm.handleTryAgain();
|
|
10672
10678
|
}
|
|
10673
10679
|
}
|
|
10674
10680
|
}, [_vm._v("Tentar novamente")])]) : _vm._e(), _vm._v(" "), _c('iframe', {
|
|
@@ -10684,7 +10690,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10684
10690
|
staticClass: "email-raw"
|
|
10685
10691
|
}, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()], 1)]), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length ? _vm._ssrNode("<div class=\"email-files\"" + _vm._ssrStyle(null, null, {
|
|
10686
10692
|
display: _vm.isOpen || _vm.isMainEmail ? '' : 'none'
|
|
10687
|
-
}) + " data-v-
|
|
10693
|
+
}) + " data-v-31b6e56a>", "</div>", _vm._l(_vm.filteredFiles, function (anexo, index) {
|
|
10688
10694
|
return _c('EmailFile', {
|
|
10689
10695
|
key: index,
|
|
10690
10696
|
attrs: {
|
|
@@ -10699,20 +10705,20 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
10699
10705
|
/* style */
|
|
10700
10706
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
10701
10707
|
if (!inject) return;
|
|
10702
|
-
inject("data-v-
|
|
10703
|
-
source: ".show-y-top-enter-active[data-v-
|
|
10708
|
+
inject("data-v-31b6e56a_0", {
|
|
10709
|
+
source: ".show-y-top-enter-active[data-v-31b6e56a],.show-y-top-leave-enter[data-v-31b6e56a]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-31b6e56a],.show-y-top-leave-to[data-v-31b6e56a]{opacity:0;transform:translateY(-2%)}",
|
|
10704
10710
|
map: undefined,
|
|
10705
10711
|
media: undefined
|
|
10706
|
-
}), inject("data-v-
|
|
10712
|
+
}), inject("data-v-31b6e56a_1", {
|
|
10707
10713
|
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)}.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-author.main{font-size:1.025rem}.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:0;top:30px;z-index:1}.email-actions.main{top:10px}.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%;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;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;opacity:.7;transition:opacity .1s ease-in-out}.menu-mensagem:active,.menu-mensagem:focus,.menu-mensagem:hover{opacity:1}.email-error-content{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:5px;padding:10px}.email-error-content p{margin:0;color:#e74c3c}.email-error-content button{border:1px solid #ccc;border-radius:3px;padding:5px 10px;background-color:#fff;cursor:pointer;transition:background-color 150ms ease-in-out}.email-error-content button:hover{background-color:#eee}",
|
|
10708
10714
|
map: undefined,
|
|
10709
10715
|
media: undefined
|
|
10710
10716
|
});
|
|
10711
10717
|
};
|
|
10712
10718
|
/* scoped */
|
|
10713
|
-
var __vue_scope_id__$1 = "data-v-
|
|
10719
|
+
var __vue_scope_id__$1 = "data-v-31b6e56a";
|
|
10714
10720
|
/* module identifier */
|
|
10715
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
10721
|
+
var __vue_module_identifier__$1 = "data-v-31b6e56a";
|
|
10716
10722
|
/* functional template */
|
|
10717
10723
|
var __vue_is_functional_template__$1 = false;
|
|
10718
10724
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
<VueLoader v-if="isIframeLoading" />
|
|
71
71
|
<div v-if="hasError" class="email-error-content">
|
|
72
72
|
<p>Erro ao carregar o e-mail</p>
|
|
73
|
-
<button class="box-shadow" @click="
|
|
73
|
+
<button class="box-shadow" @click="handleTryAgain()">Tentar novamente</button>
|
|
74
74
|
</div>
|
|
75
75
|
<iframe v-show="!hasError" ref="emailIframe"
|
|
76
76
|
:class="`email-html ${isIframeLoading ? 'visibility-hidden' : ''}`"></iframe>
|
|
@@ -256,6 +256,13 @@ export default {
|
|
|
256
256
|
}, 15000);
|
|
257
257
|
},
|
|
258
258
|
methods: {
|
|
259
|
+
handleTryAgain() {
|
|
260
|
+
this.isOpen = true
|
|
261
|
+
this.isIframeLoading = true
|
|
262
|
+
this.hasError = false
|
|
263
|
+
|
|
264
|
+
this.$nextTick(this.updateIframeContent())
|
|
265
|
+
},
|
|
259
266
|
returnAuthorName() {
|
|
260
267
|
if (!this.from || !this.from.length) return this.autor || ''
|
|
261
268
|
const { mail, name } = this.from[0]
|