vue-intergrall-plugins 1.1.27 → 1.1.29
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.
|
@@ -10691,6 +10691,10 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10691
10691
|
default: function _default() {
|
|
10692
10692
|
return {};
|
|
10693
10693
|
}
|
|
10694
|
+
},
|
|
10695
|
+
jaMarcadoSpam: {
|
|
10696
|
+
type: Boolean,
|
|
10697
|
+
default: false
|
|
10694
10698
|
}
|
|
10695
10699
|
},
|
|
10696
10700
|
data: function data() {
|
|
@@ -10701,7 +10705,8 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10701
10705
|
showInfos: false,
|
|
10702
10706
|
isIframeLoading: true,
|
|
10703
10707
|
hasError: false,
|
|
10704
|
-
errorCount: 0
|
|
10708
|
+
errorCount: 0,
|
|
10709
|
+
scrollToFile: false
|
|
10705
10710
|
};
|
|
10706
10711
|
},
|
|
10707
10712
|
computed: {
|
|
@@ -10792,20 +10797,28 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10792
10797
|
},
|
|
10793
10798
|
methods: {
|
|
10794
10799
|
openAndScrollToAttachments: function openAndScrollToAttachments() {
|
|
10795
|
-
var _this3 = this;
|
|
10796
10800
|
if (!this.isOpen) {
|
|
10801
|
+
this.scrollToFile = true;
|
|
10802
|
+
this.isIframeLoading = true;
|
|
10797
10803
|
this.isOpen = true;
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
behavior: 'smooth',
|
|
10803
|
-
block: 'center'
|
|
10804
|
-
});
|
|
10805
|
-
}
|
|
10806
|
-
});
|
|
10804
|
+
} else if (!this.isIframeLoading) {
|
|
10805
|
+
this.scrollToAttachments();
|
|
10806
|
+
} else {
|
|
10807
|
+
this.scrollToFile = true;
|
|
10807
10808
|
}
|
|
10808
10809
|
},
|
|
10810
|
+
scrollToAttachments: function scrollToAttachments() {
|
|
10811
|
+
var _this3 = this;
|
|
10812
|
+
this.$nextTick(function () {
|
|
10813
|
+
var files = _this3.$el.querySelector('.email-files');
|
|
10814
|
+
if (files) {
|
|
10815
|
+
files.scrollIntoView({
|
|
10816
|
+
behavior: 'smooth',
|
|
10817
|
+
block: 'center'
|
|
10818
|
+
});
|
|
10819
|
+
}
|
|
10820
|
+
});
|
|
10821
|
+
},
|
|
10809
10822
|
handleTryAgain: function handleTryAgain() {
|
|
10810
10823
|
this.isOpen = true;
|
|
10811
10824
|
this.isIframeLoading = true;
|
|
@@ -10951,6 +10964,10 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10951
10964
|
}
|
|
10952
10965
|
iframe.style.height = "".concat(value, "px");
|
|
10953
10966
|
emailParent.style.minHeight = "".concat(value, "px");
|
|
10967
|
+
if (_this5.scrollToFile) {
|
|
10968
|
+
_this5.scrollToFile = false;
|
|
10969
|
+
_this5.scrollToAttachments();
|
|
10970
|
+
}
|
|
10954
10971
|
}, 100);
|
|
10955
10972
|
}
|
|
10956
10973
|
if (_this5.isIframeLoading) _this5.isIframeLoading = false;
|
|
@@ -10975,10 +10992,13 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10975
10992
|
},
|
|
10976
10993
|
toggleIsOpen: function toggleIsOpen() {
|
|
10977
10994
|
this.isOpen = !this.isOpen;
|
|
10978
|
-
if (
|
|
10995
|
+
if (this.isOpen) {
|
|
10996
|
+
this.isIframeLoading = true; // <-- Adicione esta linha
|
|
10997
|
+
} else {
|
|
10979
10998
|
this.actionsOpen = false;
|
|
10980
10999
|
this.openMessage = false;
|
|
10981
11000
|
this.showInfos = false;
|
|
11001
|
+
this.scrollToFile = false;
|
|
10982
11002
|
}
|
|
10983
11003
|
},
|
|
10984
11004
|
adjustMaxWidth: function adjustMaxWidth() {
|
|
@@ -11055,17 +11075,17 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11055
11075
|
return _vm.openByItem($event);
|
|
11056
11076
|
}
|
|
11057
11077
|
}
|
|
11058
|
-
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-
|
|
11078
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-46262355></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem, _vm.isMainEmail ? 'main' : '']) + " data-v-46262355>", "</div>", [_vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.statusTitle) + " data-v-46262355>", "</span>", [_c('fa-icon', {
|
|
11059
11079
|
class: [_vm.origem],
|
|
11060
11080
|
attrs: {
|
|
11061
11081
|
"icon": ['fas', _vm.status !== 'C' ? 'reply' : 'times']
|
|
11062
11082
|
}
|
|
11063
|
-
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-
|
|
11083
|
+
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-46262355>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName)) + "</p> "), _vm._ssrNode("<span" + _vm._ssrAttr("title", "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')) + " data-v-46262355>", "</span>", [_c('fa-icon', {
|
|
11064
11084
|
staticClass: "email-to-svg",
|
|
11065
11085
|
attrs: {
|
|
11066
11086
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset']
|
|
11067
11087
|
}
|
|
11068
|
-
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-
|
|
11088
|
+
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-46262355>", "</div>", _vm._l(_vm.customButtons, function (button, index) {
|
|
11069
11089
|
return _c('span', {
|
|
11070
11090
|
directives: [{
|
|
11071
11091
|
name: "show",
|
|
@@ -11096,8 +11116,17 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11096
11116
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11097
11117
|
}
|
|
11098
11118
|
})], 1);
|
|
11099
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"
|
|
11100
|
-
|
|
11119
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length && _vm.customActionButtons[0].type === 'ja-spam' ? _vm._ssrNode("<div class=\"ja-marcado-spam\" data-v-46262355>", "</div>", [_vm._ssrNode("<span data-v-46262355>", "</span>", [_c('fa-icon', {
|
|
11120
|
+
staticStyle: {
|
|
11121
|
+
"color": "#FF0000",
|
|
11122
|
+
"margin-right": "8px",
|
|
11123
|
+
"font-size": "16px"
|
|
11124
|
+
},
|
|
11125
|
+
attrs: {
|
|
11126
|
+
"icon": ['fas', 'exclamation-triangle']
|
|
11127
|
+
}
|
|
11128
|
+
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].label) + "\n "))], 2), _vm._ssrNode(" <div class=\"ja-marcado-spam-buttons\" data-v-46262355><button class=\"btn-nao-spam\" data-v-46262355>" + _vm._ssrEscape(_vm._s(_vm.customActionButtons[0].btn1.label)) + "</button> <button class=\"btn-e-spam\" data-v-46262355>" + _vm._ssrEscape(_vm._s(_vm.customActionButtons[0].btn2.label)) + "</button></div>")], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-46262355>", "</div>", [_vm._l(_vm.customActionButtons, function (button, index) {
|
|
11129
|
+
return [button.type !== 'ja-spam' ? _c('button', {
|
|
11101
11130
|
directives: [{
|
|
11102
11131
|
name: "show",
|
|
11103
11132
|
rawName: "v-show",
|
|
@@ -11126,8 +11155,8 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11126
11155
|
domProps: {
|
|
11127
11156
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11128
11157
|
}
|
|
11129
|
-
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-
|
|
11130
|
-
}),
|
|
11158
|
+
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-46262355>" + _vm._ssrEscape(_vm._s(button.label)) + "</span>" : "<!---->"))], 2) : _vm._e()];
|
|
11159
|
+
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-46262355>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-46262355>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> " + (_vm.status === 'C' ? "<div" + _vm._ssrClass("divBtnReplyEmail", [_vm.isOpen ? 'reply-email-open' : '']) + " data-v-46262355><strong class=\"strongMsg\" data-v-46262355>" + _vm._ssrEscape(_vm._s(_vm.status_msg) + " ") + "</strong> " + (_vm.hasReplyEmail ? "<button class=\"btnReplyEmail\" data-v-46262355><strong data-v-46262355>Reenviar</strong></button>" : "<!---->") + "</div>" : "<!---->") + " "), _vm._ssrNode("<div class=\"header-container\" data-v-46262355>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, "email-header-content" + (_vm.isOpen ? ' open' : '')) + " data-v-46262355>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-46262355>", "</div>", [_vm.para && _vm.para.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-46262355>", "</div>", [_vm._l(_vm.paraCopia, function (recipient, index) {
|
|
11131
11160
|
return _c('EmailTo', {
|
|
11132
11161
|
key: "to-" + recipient.email,
|
|
11133
11162
|
attrs: {
|
|
@@ -11138,13 +11167,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11138
11167
|
});
|
|
11139
11168
|
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\"" + _vm._ssrStyle(null, null, {
|
|
11140
11169
|
display: _vm.isOpen ? '' : 'none'
|
|
11141
|
-
}) + " data-v-
|
|
11170
|
+
}) + " data-v-46262355>", "</div>", [_c('fa-icon', {
|
|
11142
11171
|
attrs: {
|
|
11143
11172
|
"icon": ['fas', 'caret-down']
|
|
11144
11173
|
}
|
|
11145
|
-
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-
|
|
11174
|
+
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-46262355><span class=\"email-subject-span\" data-v-46262355>" + _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, {
|
|
11146
11175
|
display: _vm.formattedDate ? '' : 'none'
|
|
11147
|
-
}) + " data-v-
|
|
11176
|
+
}) + " data-v-46262355>", "</span>", [_c('fa-icon', {
|
|
11148
11177
|
attrs: {
|
|
11149
11178
|
"icon": ['fas', 'calendar']
|
|
11150
11179
|
}
|
|
@@ -11165,12 +11194,12 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11165
11194
|
}
|
|
11166
11195
|
}
|
|
11167
11196
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
11168
|
-
return "<li class=\"email-info\" data-v-
|
|
11197
|
+
return "<li class=\"email-info\" data-v-46262355><span data-v-46262355>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
11169
11198
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
11170
11199
|
active: _vm.actionsOpen
|
|
11171
11200
|
}, {
|
|
11172
11201
|
main: _vm.isMainEmail
|
|
11173
|
-
}]) + " data-v-
|
|
11202
|
+
}]) + " data-v-46262355><span data-v-46262355></span> <span data-v-46262355></span> <span data-v-46262355></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
11174
11203
|
directives: [{
|
|
11175
11204
|
name: "clickaway",
|
|
11176
11205
|
rawName: "v-clickaway",
|
|
@@ -11183,13 +11212,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11183
11212
|
$event.stopPropagation();
|
|
11184
11213
|
}
|
|
11185
11214
|
}
|
|
11186
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
11215
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-46262355>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-content\"" + _vm._ssrStyle(null, null, {
|
|
11187
11216
|
display: _vm.isOpen ? '' : 'none'
|
|
11188
|
-
}) + " data-v-
|
|
11217
|
+
}) + " data-v-46262355>", "</div>", [_vm.isIframeLoading ? _c('VueLoader') : _vm._e(), _vm._ssrNode(" " + (_vm.hasError ? "<div class=\"email-error-content\" data-v-46262355><p data-v-46262355>Erro ao carregar o e-mail</p> <button class=\"box-shadow\" data-v-46262355>Tentar novamente</button></div>" : "<!---->") + " <iframe" + _vm._ssrClass(null, "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')) + _vm._ssrStyle(null, null, {
|
|
11189
11218
|
display: !_vm.hasError ? '' : 'none'
|
|
11190
|
-
}) + " data-v-
|
|
11219
|
+
}) + " data-v-46262355></iframe> " + (_vm.openMessage ? "<span class=\"email-raw\" data-v-46262355>" + _vm._ssrEscape(_vm._s(_vm.mensagem)) + "</span>" : "<!---->"))], 2), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length ? _vm._ssrNode("<div class=\"email-files\"" + _vm._ssrStyle(null, null, {
|
|
11191
11220
|
display: _vm.isOpen ? '' : 'none'
|
|
11192
|
-
}) + " data-v-
|
|
11221
|
+
}) + " data-v-46262355>", "</div>", _vm._l(_vm.filteredFiles, function (anexo, index) {
|
|
11193
11222
|
return _c('EmailFile', {
|
|
11194
11223
|
key: index,
|
|
11195
11224
|
attrs: {
|
|
@@ -11197,31 +11226,31 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11197
11226
|
"dominio": _vm.dominio
|
|
11198
11227
|
}
|
|
11199
11228
|
});
|
|
11200
|
-
}), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\" data-v-
|
|
11229
|
+
}), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\" data-v-46262355>", "</div>", [_vm._ssrNode("<span class=\"clip-icon\" data-v-46262355>", "</span>", [_c('fa-icon', {
|
|
11201
11230
|
attrs: {
|
|
11202
11231
|
"icon": ['fas', 'paperclip']
|
|
11203
11232
|
}
|
|
11204
|
-
}), _vm._ssrNode(" <span class=\"clip-badge\" data-v-
|
|
11233
|
+
}), _vm._ssrNode(" <span class=\"clip-badge\" data-v-46262355>" + _vm._ssrEscape(_vm._s(_vm.filteredFiles.length)) + "</span>")], 2)]) : _vm._e()], 2);
|
|
11205
11234
|
};
|
|
11206
11235
|
var __vue_staticRenderFns__$1 = [];
|
|
11207
11236
|
|
|
11208
11237
|
/* style */
|
|
11209
11238
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
11210
11239
|
if (!inject) return;
|
|
11211
|
-
inject("data-v-
|
|
11212
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11240
|
+
inject("data-v-46262355_0", {
|
|
11241
|
+
source: ".show-y-top-enter-active[data-v-46262355],.show-y-top-leave-enter[data-v-46262355]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-46262355],.show-y-top-leave-to[data-v-46262355]{opacity:0;transform:translateY(-2%)}",
|
|
11213
11242
|
map: undefined,
|
|
11214
11243
|
media: undefined
|
|
11215
|
-
}), inject("data-v-
|
|
11216
|
-
source: ".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{--konecta-gray-3:#515050;--konecta-light:#f8f9fa;--blue-silver-4:#dae0e5;--email-principal:#faa732;--email-outros:#86b7fe;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}.divBtnReplyEmail{display:flex;align-items:center;background-color:#f0adad;border-radius:6px;padding:7px 9px;margin:5px 0;gap:8px}.reply-email-open{width:calc(100% - 10px - 45px)!important}.btnReplyEmail{display:block;background-color:#faa732;border:1px solid #da8205;margin:8px 0 8px 5px;padding:5px 10px 5px 10px;font-size:14.4px;font-weight:700;border-radius:3px;color:#000;cursor:pointer}.strongMsg{flex:1;font-size:13px}.email-custom-action-buttons{display:flex;gap:7px;align-items:center;flex-wrap:wrap;max-width:100%;cursor:default}.email-custom-action-button{margin-top:10px;background-color:var(--konecta-light)!important;color:var(--konecta-dark)!important;border:1px solid var(--blue-silver-4)!important;flex:1;min-width:100px;display:flex;align-items:center;justify-content:center;gap:5px;padding:5px;overflow:hidden;border-radius:5px;text-overflow:ellipsis;white-space:nowrap;transition:all .1s ease-in-out;max-width:100%;cursor:pointer}.email-custom-action-button:hover{background-color:#e9ecef!important}.email-custom-action-button:disabled{background-color:var(--konecta-gray-3)!important;border:1px solid #25282b!important;cursor:not-allowed!important}.email-item.outros{border-left:3px solid var(--email-outros)}.email-author-name{margin:0 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-author.outros{color:var(--email-outros)}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:var(--email-principal)}.email-author.main{font-size:16.4px}.email-item.principal{border-left:3px solid var(--email-principal)}.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:16.4px;cursor:pointer}.email-date{--width:245px;font-size:12.8px;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:14.4px;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:14.4px;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:14.4px;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:12.8px}.email-info>span{font-size:12px;color:gray;margin-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:12px;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:11.2px;color:gray}.email-to-svg{font-size:13.6px}.email-custom-buttons{display:flex;gap:7px;position:absolute;top:5px;right:5px;z-index:1;font-size:12.8px}.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}.btnReplyEmail:active,.btnReplyEmail:hover{background-color:#da8205;color:#000}.email-attachments-clip{display:flex;cursor:pointer;margin-top:5px}.clip-icon{position:relative;font-size:
|
|
11244
|
+
}), inject("data-v-46262355_1", {
|
|
11245
|
+
source: ".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{--konecta-gray-3:#515050;--konecta-light:#f8f9fa;--blue-silver-4:#dae0e5;--email-principal:#faa732;--email-outros:#86b7fe;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}.divBtnReplyEmail{display:flex;align-items:center;background-color:#f0adad;border-radius:6px;padding:7px 9px;margin:5px 0;gap:8px}.reply-email-open{width:calc(100% - 10px - 45px)!important}.btnReplyEmail{display:block;background-color:#faa732;border:1px solid #da8205;margin:8px 0 8px 5px;padding:5px 10px 5px 10px;font-size:14.4px;font-weight:700;border-radius:3px;color:#000;cursor:pointer}.strongMsg{flex:1;font-size:13px}.email-custom-action-buttons{display:flex;gap:7px;align-items:center;flex-wrap:wrap;max-width:100%;cursor:default}.email-custom-action-button{margin-top:10px;background-color:var(--konecta-light)!important;color:var(--konecta-dark)!important;border:1px solid var(--blue-silver-4)!important;flex:1;min-width:100px;display:flex;align-items:center;justify-content:center;gap:5px;padding:5px;overflow:hidden;border-radius:5px;text-overflow:ellipsis;white-space:nowrap;transition:all .1s ease-in-out;max-width:100%;cursor:pointer}.email-custom-action-button:hover{background-color:#e9ecef!important}.email-custom-action-button:disabled{background-color:var(--konecta-gray-3)!important;border:1px solid #25282b!important;cursor:not-allowed!important}.email-item.outros{border-left:3px solid var(--email-outros)}.email-author-name{margin:0 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-author.outros{color:var(--email-outros)}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:var(--email-principal)}.email-author.main{font-size:16.4px}.email-item.principal{border-left:3px solid var(--email-principal)}.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:16.4px;cursor:pointer}.email-date{--width:245px;font-size:12.8px;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:14.4px;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:14.4px;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:14.4px;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:12.8px}.email-info>span{font-size:12px;color:gray;margin-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:12px;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:11.2px;color:gray}.email-to-svg{font-size:13.6px}.email-custom-buttons{display:flex;gap:7px;position:absolute;top:5px;right:5px;z-index:1;font-size:12.8px}.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}.btnReplyEmail:active,.btnReplyEmail:hover{background-color:#da8205;color:#000}.email-attachments-clip{display:flex;cursor:pointer;margin-top:5px}.clip-icon{position:relative;font-size:22px;color:#999;transform:rotate(-15deg)}.clip-badge{position:absolute;transform:rotate(15deg);top:0;right:-15px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#999 40%,#515050 100%);color:#fff;border-radius:50%;min-width:22px;height:22px;font-size:12.4px;border:1px solid #fff;filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .18));text-align:center;padding:0 4px;box-sizing:border-box}.clip-icon:hover{color:#777}.clip-icon:hover .clip-badge{background:linear-gradient(135deg,#999 20%,#515050 70%);filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .28))}",
|
|
11217
11246
|
map: undefined,
|
|
11218
11247
|
media: undefined
|
|
11219
11248
|
});
|
|
11220
11249
|
};
|
|
11221
11250
|
/* scoped */
|
|
11222
|
-
var __vue_scope_id__$1 = "data-v-
|
|
11251
|
+
var __vue_scope_id__$1 = "data-v-46262355";
|
|
11223
11252
|
/* module identifier */
|
|
11224
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
11253
|
+
var __vue_module_identifier__$1 = "data-v-46262355";
|
|
11225
11254
|
/* functional template */
|
|
11226
11255
|
var __vue_is_functional_template__$1 = false;
|
|
11227
11256
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -19,14 +19,36 @@
|
|
|
19
19
|
<span v-else v-html="button.svgIcon" :class="button.svgClass ? button.svgClass : ''"></span>
|
|
20
20
|
</span>
|
|
21
21
|
</div>
|
|
22
|
+
<div
|
|
23
|
+
v-if="customActionButtons && customActionButtons.length && customActionButtons[0].type === 'ja-spam'"
|
|
24
|
+
:key="customActionButtons[0].id"
|
|
25
|
+
class="ja-marcado-spam"
|
|
26
|
+
>
|
|
27
|
+
<span>
|
|
28
|
+
<fa-icon :icon="['fas', 'exclamation-triangle']" style="color:#FF0000; margin-right:8px; font-size:16px;" />
|
|
29
|
+
{{ customActionButtons[0].label }}
|
|
30
|
+
</span>
|
|
31
|
+
<div @click.stop class="ja-marcado-spam-buttons">
|
|
32
|
+
<button class="btn-nao-spam" @click="customActionButtons[0].btn1.callback">{{ customActionButtons[0].btn1.label }}</button>
|
|
33
|
+
<button class="btn-e-spam" @click="customActionButtons[0].btn2.callback">{{ customActionButtons[0].btn2.label }}</button>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
22
36
|
<div class="email-custom-action-buttons" v-if="customActionButtons && customActionButtons.length" @click.stop>
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
<template v-for="(button, index) in customActionButtons">
|
|
38
|
+
<button
|
|
39
|
+
v-if="button.type !== 'ja-spam'"
|
|
40
|
+
:key="button.id || index"
|
|
41
|
+
v-show="button.use"
|
|
42
|
+
@click="button.callback(returnParams(button.params))"
|
|
43
|
+
:class="`${button.customClass || 'email-custom-action-button'}`"
|
|
44
|
+
v-tippy
|
|
45
|
+
:content="button.tippyContent"
|
|
46
|
+
>
|
|
47
|
+
<fa-icon :icon="['fas', button.icon || 'question-circle']" v-if="!button.svgIcon" />
|
|
48
|
+
<span v-else v-html="button.svgIcon" :class="button.svgClass ? button.svgClass : ''"></span>
|
|
49
|
+
<span v-if="button.label" class="email-custom-action-label" v-text="button.label"></span>
|
|
50
|
+
</button>
|
|
51
|
+
</template>
|
|
30
52
|
</div>
|
|
31
53
|
<div class="email-header" @click.stop="toggleIsOpen">
|
|
32
54
|
<p class="email-subject" :title="returnMainValue()">
|
|
@@ -231,6 +253,10 @@ export default {
|
|
|
231
253
|
type: Object,
|
|
232
254
|
default: () => ({}),
|
|
233
255
|
},
|
|
256
|
+
jaMarcadoSpam: {
|
|
257
|
+
type: Boolean,
|
|
258
|
+
default: false
|
|
259
|
+
},
|
|
234
260
|
},
|
|
235
261
|
data() {
|
|
236
262
|
return {
|
|
@@ -240,7 +266,8 @@ export default {
|
|
|
240
266
|
showInfos: false,
|
|
241
267
|
isIframeLoading: true,
|
|
242
268
|
hasError: false,
|
|
243
|
-
errorCount: 0
|
|
269
|
+
errorCount: 0,
|
|
270
|
+
scrollToFile: false,
|
|
244
271
|
};
|
|
245
272
|
},
|
|
246
273
|
computed: {
|
|
@@ -340,15 +367,23 @@ export default {
|
|
|
340
367
|
methods: {
|
|
341
368
|
openAndScrollToAttachments() {
|
|
342
369
|
if (!this.isOpen) {
|
|
370
|
+
this.scrollToFile = true;
|
|
371
|
+
this.isIframeLoading = true;
|
|
343
372
|
this.isOpen = true;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
}
|
|
349
|
-
});
|
|
373
|
+
} else if (!this.isIframeLoading) {
|
|
374
|
+
this.scrollToAttachments();
|
|
375
|
+
} else {
|
|
376
|
+
this.scrollToFile = true;
|
|
350
377
|
}
|
|
351
378
|
},
|
|
379
|
+
scrollToAttachments() {
|
|
380
|
+
this.$nextTick(() => {
|
|
381
|
+
const files = this.$el.querySelector('.email-files');
|
|
382
|
+
if (files) {
|
|
383
|
+
files.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
},
|
|
352
387
|
handleTryAgain() {
|
|
353
388
|
this.isOpen = true
|
|
354
389
|
this.isIframeLoading = true
|
|
@@ -488,6 +523,10 @@ export default {
|
|
|
488
523
|
}
|
|
489
524
|
iframe.style.height = `${value}px`;
|
|
490
525
|
emailParent.style.minHeight = `${value}px`
|
|
526
|
+
if (this.scrollToFile) {
|
|
527
|
+
this.scrollToFile = false;
|
|
528
|
+
this.scrollToAttachments();
|
|
529
|
+
}
|
|
491
530
|
}, 100)
|
|
492
531
|
}
|
|
493
532
|
|
|
@@ -512,10 +551,13 @@ export default {
|
|
|
512
551
|
},
|
|
513
552
|
toggleIsOpen() {
|
|
514
553
|
this.isOpen = !this.isOpen;
|
|
515
|
-
if (
|
|
554
|
+
if (this.isOpen) {
|
|
555
|
+
this.isIframeLoading = true; // <-- Adicione esta linha
|
|
556
|
+
} else {
|
|
516
557
|
this.actionsOpen = false;
|
|
517
558
|
this.openMessage = false;
|
|
518
|
-
this.showInfos = false
|
|
559
|
+
this.showInfos = false;
|
|
560
|
+
this.scrollToFile = false;
|
|
519
561
|
}
|
|
520
562
|
},
|
|
521
563
|
adjustMaxWidth() {
|
|
@@ -1064,25 +1106,30 @@ export default {
|
|
|
1064
1106
|
|
|
1065
1107
|
.clip-icon {
|
|
1066
1108
|
position: relative;
|
|
1067
|
-
font-size:
|
|
1109
|
+
font-size: 22px;
|
|
1068
1110
|
color: #999;
|
|
1069
1111
|
transform: rotate(-15deg);
|
|
1070
1112
|
}
|
|
1071
1113
|
|
|
1072
1114
|
.clip-badge {
|
|
1115
|
+
position: absolute;
|
|
1073
1116
|
transform: rotate(15deg);
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1117
|
+
top: 0px;
|
|
1118
|
+
right: -15px;
|
|
1119
|
+
display: flex;
|
|
1120
|
+
align-items: center;
|
|
1121
|
+
justify-content: center;
|
|
1122
|
+
background: linear-gradient(135deg, #999 40%, #515050 100%);
|
|
1123
|
+
color: #fff;
|
|
1124
|
+
border-radius: 50%;
|
|
1125
|
+
min-width: 22px;
|
|
1126
|
+
height: 22px;
|
|
1127
|
+
font-size: 12.4px;
|
|
1128
|
+
border: 1px solid #fff;
|
|
1129
|
+
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18));
|
|
1130
|
+
text-align: center;
|
|
1131
|
+
padding: 0 4px;
|
|
1132
|
+
box-sizing: border-box;
|
|
1086
1133
|
}
|
|
1087
1134
|
|
|
1088
1135
|
.clip-icon:hover {
|