vue-intergrall-plugins 1.1.24 → 1.1.26
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.
|
@@ -10791,6 +10791,21 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10791
10791
|
}, 15000);
|
|
10792
10792
|
},
|
|
10793
10793
|
methods: {
|
|
10794
|
+
openAndScrollToAttachments: function openAndScrollToAttachments() {
|
|
10795
|
+
var _this3 = this;
|
|
10796
|
+
if (!this.isOpen) {
|
|
10797
|
+
this.isOpen = true;
|
|
10798
|
+
this.$nextTick(function () {
|
|
10799
|
+
var files = _this3.$el.querySelector('.email-files');
|
|
10800
|
+
if (files) {
|
|
10801
|
+
files.scrollIntoView({
|
|
10802
|
+
behavior: 'smooth',
|
|
10803
|
+
block: 'center'
|
|
10804
|
+
});
|
|
10805
|
+
}
|
|
10806
|
+
});
|
|
10807
|
+
}
|
|
10808
|
+
},
|
|
10794
10809
|
handleTryAgain: function handleTryAgain() {
|
|
10795
10810
|
this.isOpen = true;
|
|
10796
10811
|
this.isIframeLoading = true;
|
|
@@ -10865,17 +10880,17 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10865
10880
|
}
|
|
10866
10881
|
},
|
|
10867
10882
|
updateIframeContent: function updateIframeContent() {
|
|
10868
|
-
var
|
|
10883
|
+
var _this4 = this;
|
|
10869
10884
|
this.$nextTick(function () {
|
|
10870
|
-
if (
|
|
10871
|
-
var iframe =
|
|
10885
|
+
if (_this4.isOpen && _this4.isIframeLoading) {
|
|
10886
|
+
var iframe = _this4.$refs.emailIframe;
|
|
10872
10887
|
if (!iframe) return;
|
|
10873
10888
|
var doc = iframe.contentDocument || iframe.contentWindow.document;
|
|
10874
10889
|
if (!doc) return;
|
|
10875
|
-
var content =
|
|
10890
|
+
var content = _this4.html;
|
|
10876
10891
|
if (!/<[a-z][\s\S]*>/i.test(content)) {
|
|
10877
10892
|
content = content.replace(/\n/g, '<br>');
|
|
10878
|
-
content =
|
|
10893
|
+
content = _this4.gerarMensagemEstilizada(content);
|
|
10879
10894
|
content = "<p>".concat(content, "</p>");
|
|
10880
10895
|
}
|
|
10881
10896
|
doc.open();
|
|
@@ -10886,11 +10901,11 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10886
10901
|
var imageLoadHandler = function imageLoadHandler() {
|
|
10887
10902
|
imagesLoaded++;
|
|
10888
10903
|
if (imagesLoaded === images.length) {
|
|
10889
|
-
|
|
10904
|
+
_this4.adjustIframeHeight();
|
|
10890
10905
|
}
|
|
10891
10906
|
};
|
|
10892
10907
|
if (images.length === 0) {
|
|
10893
|
-
|
|
10908
|
+
_this4.adjustIframeHeight();
|
|
10894
10909
|
} else {
|
|
10895
10910
|
var _iterator = _createForOfIteratorHelper(images),
|
|
10896
10911
|
_step;
|
|
@@ -10910,43 +10925,43 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10910
10925
|
});
|
|
10911
10926
|
},
|
|
10912
10927
|
adjustIframeHeight: function adjustIframeHeight() {
|
|
10913
|
-
var
|
|
10928
|
+
var _this5 = this;
|
|
10914
10929
|
this.$nextTick(function () {
|
|
10915
|
-
var iframe =
|
|
10916
|
-
var emailParent =
|
|
10930
|
+
var iframe = _this5.$refs.emailIframe;
|
|
10931
|
+
var emailParent = _this5.$refs.emailIframeParent;
|
|
10917
10932
|
if (iframe && emailParent) {
|
|
10918
10933
|
setTimeout(function () {
|
|
10919
10934
|
var doc = iframe.contentDocument || iframe.contentWindow.document;
|
|
10920
10935
|
var margin = 20;
|
|
10921
10936
|
var value = doc.documentElement.offsetHeight + margin;
|
|
10922
10937
|
if (value === 0 || doc.documentElement.querySelector('body').innerHTML === '') {
|
|
10923
|
-
|
|
10924
|
-
if (
|
|
10925
|
-
|
|
10926
|
-
if (
|
|
10938
|
+
_this5.errorCount++;
|
|
10939
|
+
if (_this5.errorCount > 3) {
|
|
10940
|
+
_this5.hasError = true;
|
|
10941
|
+
if (_this5.isIframeLoading) _this5.isIframeLoading = false;
|
|
10927
10942
|
return;
|
|
10928
10943
|
}
|
|
10929
|
-
|
|
10930
|
-
|
|
10944
|
+
_this5.isIframeLoading = true;
|
|
10945
|
+
_this5.updateIframeContent();
|
|
10931
10946
|
return;
|
|
10932
10947
|
}
|
|
10933
|
-
if (
|
|
10934
|
-
|
|
10935
|
-
|
|
10948
|
+
if (_this5.hasError || _this5.errorCount > 0) {
|
|
10949
|
+
_this5.hasError = false;
|
|
10950
|
+
_this5.errorCount = 0;
|
|
10936
10951
|
}
|
|
10937
10952
|
iframe.style.height = "".concat(value, "px");
|
|
10938
10953
|
emailParent.style.minHeight = "".concat(value, "px");
|
|
10939
10954
|
}, 100);
|
|
10940
10955
|
}
|
|
10941
|
-
if (
|
|
10956
|
+
if (_this5.isIframeLoading) _this5.isIframeLoading = false;
|
|
10942
10957
|
});
|
|
10943
10958
|
},
|
|
10944
10959
|
toggleShowInfos: function toggleShowInfos() {
|
|
10945
|
-
var
|
|
10960
|
+
var _this6 = this;
|
|
10946
10961
|
this.showInfos = !this.showInfos;
|
|
10947
10962
|
if (this.showInfos) {
|
|
10948
10963
|
this.$nextTick(function () {
|
|
10949
|
-
|
|
10964
|
+
_this6.adjustTopPosition();
|
|
10950
10965
|
});
|
|
10951
10966
|
}
|
|
10952
10967
|
},
|
|
@@ -10967,10 +10982,10 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10967
10982
|
}
|
|
10968
10983
|
},
|
|
10969
10984
|
adjustMaxWidth: function adjustMaxWidth() {
|
|
10970
|
-
var
|
|
10985
|
+
var _this7 = this;
|
|
10971
10986
|
this.$nextTick(function () {
|
|
10972
|
-
var toContainer =
|
|
10973
|
-
var dateContainer =
|
|
10987
|
+
var toContainer = _this7.$refs.emailToContainer;
|
|
10988
|
+
var dateContainer = _this7.$refs.emailDate;
|
|
10974
10989
|
if (!toContainer || !dateContainer) return;
|
|
10975
10990
|
toContainer.style.maxWidth = "calc(100% - ".concat(dateContainer.offsetWidth, "px)");
|
|
10976
10991
|
});
|
|
@@ -11009,7 +11024,7 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
11009
11024
|
this.toggleIsOpen();
|
|
11010
11025
|
},
|
|
11011
11026
|
returnParams: function returnParams(params) {
|
|
11012
|
-
var
|
|
11027
|
+
var _this8 = this;
|
|
11013
11028
|
var defaultParams = {
|
|
11014
11029
|
message: this.mensagem
|
|
11015
11030
|
};
|
|
@@ -11020,7 +11035,7 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
11020
11035
|
}, params.values);
|
|
11021
11036
|
var customParams = _objectSpread2({}, params.values);
|
|
11022
11037
|
keys.forEach(function (key) {
|
|
11023
|
-
if (
|
|
11038
|
+
if (_this8[key]) customParams[key] = _this8[key];else console.warn("Cant find ".concat(key, " on 'this' instance"));
|
|
11024
11039
|
});
|
|
11025
11040
|
return Object.keys(customParams).length ? customParams : defaultParams;
|
|
11026
11041
|
}
|
|
@@ -11040,17 +11055,17 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11040
11055
|
return _vm.openByItem($event);
|
|
11041
11056
|
}
|
|
11042
11057
|
}
|
|
11043
|
-
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-
|
|
11058
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-13599806></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem, _vm.isMainEmail ? 'main' : '']) + " data-v-13599806>", "</div>", [_vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.statusTitle) + " data-v-13599806>", "</span>", [_c('fa-icon', {
|
|
11044
11059
|
class: [_vm.origem],
|
|
11045
11060
|
attrs: {
|
|
11046
11061
|
"icon": ['fas', _vm.status !== 'C' ? 'reply' : 'times']
|
|
11047
11062
|
}
|
|
11048
|
-
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-
|
|
11063
|
+
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-13599806>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName)) + "</p> "), _vm._ssrNode("<span" + _vm._ssrAttr("title", "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')) + " data-v-13599806>", "</span>", [_c('fa-icon', {
|
|
11049
11064
|
staticClass: "email-to-svg",
|
|
11050
11065
|
attrs: {
|
|
11051
11066
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset']
|
|
11052
11067
|
}
|
|
11053
|
-
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-
|
|
11068
|
+
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-13599806>", "</div>", _vm._l(_vm.customButtons, function (button, index) {
|
|
11054
11069
|
return _c('span', {
|
|
11055
11070
|
directives: [{
|
|
11056
11071
|
name: "show",
|
|
@@ -11081,7 +11096,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11081
11096
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11082
11097
|
}
|
|
11083
11098
|
})], 1);
|
|
11084
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-
|
|
11099
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-13599806>", "</div>", _vm._l(_vm.customActionButtons, function (button, index) {
|
|
11085
11100
|
return _c('button', {
|
|
11086
11101
|
directives: [{
|
|
11087
11102
|
name: "show",
|
|
@@ -11111,8 +11126,8 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11111
11126
|
domProps: {
|
|
11112
11127
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11113
11128
|
}
|
|
11114
|
-
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-
|
|
11115
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-
|
|
11129
|
+
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-13599806>" + _vm._ssrEscape(_vm._s(button.label)) + "</span>" : "<!---->"))], 2);
|
|
11130
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-13599806>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-13599806>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> " + (_vm.status === 'C' ? "<div" + _vm._ssrClass("divBtnReplyEmail", [_vm.isOpen ? 'reply-email-open' : '']) + " data-v-13599806><strong class=\"strongMsg\" data-v-13599806>" + _vm._ssrEscape(_vm._s(_vm.status_msg) + " ") + "</strong> " + (_vm.hasReplyEmail ? "<button class=\"btnReplyEmail\" data-v-13599806><strong data-v-13599806>Reenviar</strong></button>" : "<!---->") + "</div>" : "<!---->") + " "), _vm._ssrNode("<div class=\"header-container\" data-v-13599806>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, "email-header-content" + (_vm.isOpen ? ' open' : '')) + " data-v-13599806>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-13599806>", "</div>", [_vm.para && _vm.para.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-13599806>", "</div>", [_vm._l(_vm.paraCopia, function (recipient, index) {
|
|
11116
11131
|
return _c('EmailTo', {
|
|
11117
11132
|
key: "to-" + recipient.email,
|
|
11118
11133
|
attrs: {
|
|
@@ -11123,17 +11138,17 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11123
11138
|
});
|
|
11124
11139
|
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\"" + _vm._ssrStyle(null, null, {
|
|
11125
11140
|
display: _vm.isOpen ? '' : 'none'
|
|
11126
|
-
}) + " data-v-
|
|
11141
|
+
}) + " data-v-13599806>", "</div>", [_c('fa-icon', {
|
|
11127
11142
|
attrs: {
|
|
11128
11143
|
"icon": ['fas', 'caret-down']
|
|
11129
11144
|
}
|
|
11130
|
-
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-
|
|
11145
|
+
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-13599806><span class=\"email-subject-span\" data-v-13599806>" + _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, {
|
|
11131
11146
|
display: _vm.formattedDate ? '' : 'none'
|
|
11132
|
-
}) + " data-v-
|
|
11147
|
+
}) + " data-v-13599806>", "</span>", [_c('fa-icon', {
|
|
11133
11148
|
attrs: {
|
|
11134
11149
|
"icon": ['fas', 'calendar']
|
|
11135
11150
|
}
|
|
11136
|
-
}), _vm._ssrNode(_vm._ssrEscape("\n
|
|
11151
|
+
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.formattedDate) + "\n "))], 2)], 2), _vm._ssrNode(" "), _vm.showInfos ? _c('ul', {
|
|
11137
11152
|
directives: [{
|
|
11138
11153
|
name: "clickaway",
|
|
11139
11154
|
rawName: "v-clickaway",
|
|
@@ -11150,12 +11165,12 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11150
11165
|
}
|
|
11151
11166
|
}
|
|
11152
11167
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
11153
|
-
return "<li class=\"email-info\" data-v-
|
|
11168
|
+
return "<li class=\"email-info\" data-v-13599806><span data-v-13599806>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
11154
11169
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
11155
11170
|
active: _vm.actionsOpen
|
|
11156
11171
|
}, {
|
|
11157
11172
|
main: _vm.isMainEmail
|
|
11158
|
-
}]) + " data-v-
|
|
11173
|
+
}]) + " data-v-13599806><span data-v-13599806></span> <span data-v-13599806></span> <span data-v-13599806></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
11159
11174
|
directives: [{
|
|
11160
11175
|
name: "clickaway",
|
|
11161
11176
|
rawName: "v-clickaway",
|
|
@@ -11168,11 +11183,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11168
11183
|
$event.stopPropagation();
|
|
11169
11184
|
}
|
|
11170
11185
|
}
|
|
11171
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
11186
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-13599806>" + _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, {
|
|
11172
11187
|
display: _vm.isOpen ? '' : 'none'
|
|
11173
|
-
}) + " data-v-
|
|
11188
|
+
}) + " data-v-13599806>", "</div>", [_vm.isIframeLoading ? _c('VueLoader') : _vm._e(), _vm._ssrNode(" " + (_vm.hasError ? "<div class=\"email-error-content\" data-v-13599806><p data-v-13599806>Erro ao carregar o e-mail</p> <button class=\"box-shadow\" data-v-13599806>Tentar novamente</button></div>" : "<!---->") + " <iframe" + _vm._ssrClass(null, "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')) + _vm._ssrStyle(null, null, {
|
|
11174
11189
|
display: !_vm.hasError ? '' : 'none'
|
|
11175
|
-
}) + " data-v-
|
|
11190
|
+
}) + " data-v-13599806></iframe> " + (_vm.openMessage ? "<span class=\"email-raw\" data-v-13599806>" + _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
|
+
display: _vm.isOpen ? '' : 'none'
|
|
11192
|
+
}) + " data-v-13599806>", "</div>", _vm._l(_vm.filteredFiles, function (anexo, index) {
|
|
11176
11193
|
return _c('EmailFile', {
|
|
11177
11194
|
key: index,
|
|
11178
11195
|
attrs: {
|
|
@@ -11180,27 +11197,31 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11180
11197
|
"dominio": _vm.dominio
|
|
11181
11198
|
}
|
|
11182
11199
|
});
|
|
11183
|
-
}), 1) : _vm._e()
|
|
11200
|
+
}), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\" data-v-13599806>", "</div>", [_vm._ssrNode("<span class=\"clip-icon\" data-v-13599806>", "</span>", [_c('fa-icon', {
|
|
11201
|
+
attrs: {
|
|
11202
|
+
"icon": ['fas', 'paperclip']
|
|
11203
|
+
}
|
|
11204
|
+
}), _vm._ssrNode(" <span class=\"clip-badge\" data-v-13599806>" + _vm._ssrEscape(_vm._s(_vm.filteredFiles.length)) + "</span>")], 2)]) : _vm._e()], 2);
|
|
11184
11205
|
};
|
|
11185
11206
|
var __vue_staticRenderFns__$1 = [];
|
|
11186
11207
|
|
|
11187
11208
|
/* style */
|
|
11188
11209
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
11189
11210
|
if (!inject) return;
|
|
11190
|
-
inject("data-v-
|
|
11191
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11211
|
+
inject("data-v-13599806_0", {
|
|
11212
|
+
source: ".show-y-top-enter-active[data-v-13599806],.show-y-top-leave-enter[data-v-13599806]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-13599806],.show-y-top-leave-to[data-v-13599806]{opacity:0;transform:translateY(-2%)}",
|
|
11192
11213
|
map: undefined,
|
|
11193
11214
|
media: undefined
|
|
11194
|
-
}), inject("data-v-
|
|
11195
|
-
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}",
|
|
11215
|
+
}), inject("data-v-13599806_1", {
|
|
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:20px;color:#999;transform:rotate(-15deg)}.clip-badge{transform:rotate(15deg);position:absolute;top:0;right:-15px;justify-content:center;background:linear-gradient(135deg,#999 40%,#515050 100%);color:#fff;border-radius:50%;padding:0 5px;font-size:12.4px;border:1px solid #fff;filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .18));text-align:center}.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))}",
|
|
11196
11217
|
map: undefined,
|
|
11197
11218
|
media: undefined
|
|
11198
11219
|
});
|
|
11199
11220
|
};
|
|
11200
11221
|
/* scoped */
|
|
11201
|
-
var __vue_scope_id__$1 = "data-v-
|
|
11222
|
+
var __vue_scope_id__$1 = "data-v-13599806";
|
|
11202
11223
|
/* module identifier */
|
|
11203
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
11224
|
+
var __vue_module_identifier__$1 = "data-v-13599806";
|
|
11204
11225
|
/* functional template */
|
|
11205
11226
|
var __vue_is_functional_template__$1 = false;
|
|
11206
11227
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -96,9 +96,19 @@
|
|
|
96
96
|
:class="`email-html ${isIframeLoading ? 'visibility-hidden' : ''}`"></iframe>
|
|
97
97
|
<span class="email-raw" v-if="openMessage">{{ mensagem }}</span>
|
|
98
98
|
</div>
|
|
99
|
-
<div v-if="filteredFiles && filteredFiles.length" class="email-files">
|
|
99
|
+
<div v-if="filteredFiles && filteredFiles.length" class="email-files" v-show="isOpen">
|
|
100
100
|
<EmailFile v-for="(anexo, index) in filteredFiles" :key="index" :anexo="anexo" :dominio="dominio" />
|
|
101
101
|
</div>
|
|
102
|
+
<div
|
|
103
|
+
v-if="filteredFiles && filteredFiles.length && !isOpen"
|
|
104
|
+
class="email-attachments-clip cursor-pointer"
|
|
105
|
+
@click.stop="openAndScrollToAttachments"
|
|
106
|
+
>
|
|
107
|
+
<span class="clip-icon">
|
|
108
|
+
<fa-icon :icon="['fas', 'paperclip']" />
|
|
109
|
+
<span class="clip-badge">{{ filteredFiles.length }}</span>
|
|
110
|
+
</span>
|
|
111
|
+
</div>
|
|
102
112
|
</div>
|
|
103
113
|
</template>
|
|
104
114
|
|
|
@@ -328,6 +338,17 @@ export default {
|
|
|
328
338
|
}, 15000);
|
|
329
339
|
},
|
|
330
340
|
methods: {
|
|
341
|
+
openAndScrollToAttachments() {
|
|
342
|
+
if (!this.isOpen) {
|
|
343
|
+
this.isOpen = true;
|
|
344
|
+
this.$nextTick(() => {
|
|
345
|
+
const files = this.$el.querySelector('.email-files');
|
|
346
|
+
if (files) {
|
|
347
|
+
files.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
},
|
|
331
352
|
handleTryAgain() {
|
|
332
353
|
this.isOpen = true
|
|
333
354
|
this.isIframeLoading = true
|
|
@@ -1034,4 +1055,43 @@ export default {
|
|
|
1034
1055
|
background-color: #da8205;
|
|
1035
1056
|
color: #000000;
|
|
1036
1057
|
}
|
|
1058
|
+
|
|
1059
|
+
.email-attachments-clip {
|
|
1060
|
+
display: flex;
|
|
1061
|
+
cursor: pointer;
|
|
1062
|
+
margin-top: 5px;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.clip-icon {
|
|
1066
|
+
position: relative;
|
|
1067
|
+
font-size: 20px;
|
|
1068
|
+
color: #999;
|
|
1069
|
+
transform: rotate(-15deg);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.clip-badge {
|
|
1073
|
+
transform: rotate(15deg);
|
|
1074
|
+
position: absolute;
|
|
1075
|
+
top: 0px;
|
|
1076
|
+
right: -15px;
|
|
1077
|
+
justify-content: center;
|
|
1078
|
+
background: linear-gradient(135deg, #999 40%, #515050 100%);
|
|
1079
|
+
color: #fff;
|
|
1080
|
+
border-radius: 50%;
|
|
1081
|
+
padding: 0px 5px;
|
|
1082
|
+
font-size: 12.4px;
|
|
1083
|
+
border: 1px solid #fff;
|
|
1084
|
+
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18));
|
|
1085
|
+
text-align: center;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.clip-icon:hover {
|
|
1089
|
+
color: #777;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.clip-icon:hover .clip-badge {
|
|
1093
|
+
background: linear-gradient(135deg, #999 20%, #515050 70%);
|
|
1094
|
+
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.28));
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1037
1097
|
</style>
|