vue-intergrall-plugins 1.1.33 → 1.1.35
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.
- package/README.md +0 -0
- package/dist/vue-intergrall-plugins.esm.js +48 -15
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +55 -28
- package/package.json +1 -1
- package/src/lib-components/Buttons/IconButton.vue +0 -0
- package/src/lib-components/Buttons/SimpleButton.vue +0 -0
- package/src/lib-components/Cards/Card.vue +0 -0
- package/src/lib-components/Cards/CardCheck.vue +0 -0
- package/src/lib-components/Cards/CardFile.vue +0 -0
- package/src/lib-components/Chat/AudioSpeedControl.vue +0 -0
- package/src/lib-components/Chat/BtnDownloadAllFiles.vue +0 -0
- package/src/lib-components/Chat/BtnEmojis.vue +0 -0
- package/src/lib-components/Chat/BtnExpand.vue +0 -0
- package/src/lib-components/Chat/BtnFiles.vue +0 -0
- package/src/lib-components/Chat/BtnMic.vue +0 -0
- package/src/lib-components/Chat/BtnScreenShare.vue +0 -0
- package/src/lib-components/Chat/BtnStandardMessages.vue +0 -0
- package/src/lib-components/Chat/ExpandTextarea.vue +0 -0
- package/src/lib-components/Chat/MultipleFilePreview.vue +0 -0
- package/src/lib-components/Chat/Picker.vue +0 -0
- package/src/lib-components/Chat/RemainingCharacters.vue +0 -0
- package/src/lib-components/Chat/SingleFilePreview.vue +0 -0
- package/src/lib-components/Chat/SkeletonPicker.vue +0 -0
- package/src/lib-components/Chat/StandardMessages.vue +0 -0
- package/src/lib-components/Chat/TextFooter.vue +0 -0
- package/src/lib-components/Email/EmailExpanded.vue +0 -0
- package/src/lib-components/Email/EmailFile.vue +0 -0
- package/src/lib-components/Email/EmailFrom.vue +0 -0
- package/src/lib-components/Email/EmailItem.vue +52 -16
- package/src/lib-components/Email/EmailTo.vue +0 -0
- package/src/lib-components/Loader/Loader.vue +0 -0
- package/src/lib-components/Messages/AnexoMensagem.vue +0 -0
- package/src/lib-components/Messages/CardAttachment.vue +0 -0
- package/src/lib-components/Messages/CardMessages.vue +0 -0
- package/src/lib-components/Messages/ChatMessages.vue +0 -0
- package/src/lib-components/Messages/InteratividadeBotoes.vue +0 -0
- package/src/lib-components/Messages/InteratividadeContato.vue +0 -0
- package/src/lib-components/Messages/InteratividadeContatoItem.vue +0 -0
- package/src/lib-components/Messages/InteratividadeFormulario.vue +0 -0
- package/src/lib-components/Messages/InteratividadePopup.vue +0 -0
- package/src/lib-components/Messages/LinkPreview.vue +0 -0
- package/src/lib-components/Scroll/ScrollContent.vue +0 -0
- package/src/lib-components/Templates/TemplateGenerator.vue +0 -0
- package/src/lib-components/Templates/TemplateMessage.vue +0 -0
- package/src/lib-components/Templates/TemplateSingle.vue +0 -0
|
@@ -10897,10 +10897,23 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10897
10897
|
this.$nextTick(function () {
|
|
10898
10898
|
if (_this4.isOpen && _this4.isIframeLoading) {
|
|
10899
10899
|
var iframe = _this4.$refs.emailIframe;
|
|
10900
|
-
if (!iframe)
|
|
10900
|
+
if (!iframe) {
|
|
10901
|
+
console.warn('Iframe not found');
|
|
10902
|
+
_this4.isIframeLoading = false;
|
|
10903
|
+
return;
|
|
10904
|
+
}
|
|
10901
10905
|
var doc = iframe.contentDocument || iframe.contentWindow.document;
|
|
10902
|
-
if (!doc)
|
|
10903
|
-
|
|
10906
|
+
if (!doc) {
|
|
10907
|
+
console.warn('Document not found in iframe');
|
|
10908
|
+
_this4.isIframeLoading = false;
|
|
10909
|
+
return;
|
|
10910
|
+
}
|
|
10911
|
+
var content = _this4.html || '';
|
|
10912
|
+
if (!content || !content.length) {
|
|
10913
|
+
console.warn('No content to display in iframe');
|
|
10914
|
+
_this4.isIframeLoading = false;
|
|
10915
|
+
return;
|
|
10916
|
+
}
|
|
10904
10917
|
if (!/<[a-z][\s\S]*>/i.test(content)) {
|
|
10905
10918
|
content = content.replace(/\n/g, '<br>');
|
|
10906
10919
|
content = _this4.gerarMensagemEstilizada(content);
|
|
@@ -11075,17 +11088,17 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11075
11088
|
return _vm.openByItem($event);
|
|
11076
11089
|
}
|
|
11077
11090
|
}
|
|
11078
|
-
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-
|
|
11091
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-61c80520></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem, _vm.isMainEmail ? 'main' : '']) + " data-v-61c80520>", "</div>", [_vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.statusTitle) + " data-v-61c80520>", "</span>", [_c('fa-icon', {
|
|
11079
11092
|
class: [_vm.origem],
|
|
11080
11093
|
attrs: {
|
|
11081
11094
|
"icon": ['fas', _vm.status !== 'C' ? 'reply' : 'times']
|
|
11082
11095
|
}
|
|
11083
|
-
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-
|
|
11096
|
+
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-61c80520>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName)) + "</p> "), _vm._ssrNode("<span" + _vm._ssrAttr("title", "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')) + " data-v-61c80520>", "</span>", [_c('fa-icon', {
|
|
11084
11097
|
staticClass: "email-to-svg",
|
|
11085
11098
|
attrs: {
|
|
11086
11099
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset']
|
|
11087
11100
|
}
|
|
11088
|
-
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-
|
|
11101
|
+
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-61c80520>", "</div>", _vm._l(_vm.customButtons, function (button, index) {
|
|
11089
11102
|
return _c('span', {
|
|
11090
11103
|
directives: [{
|
|
11091
11104
|
name: "show",
|
|
@@ -11116,7 +11129,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11116
11129
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11117
11130
|
}
|
|
11118
11131
|
})], 1);
|
|
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-
|
|
11132
|
+
}), 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-61c80520>", "</div>", [_vm._ssrNode("<span class=\"icon-tittle-ja-spam\" data-v-61c80520>", "</span>", [_c('fa-icon', {
|
|
11120
11133
|
staticStyle: {
|
|
11121
11134
|
"color": "#FF0000",
|
|
11122
11135
|
"margin-right": "8px",
|
|
@@ -11125,7 +11138,21 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11125
11138
|
attrs: {
|
|
11126
11139
|
"icon": ['fas', 'exclamation-triangle']
|
|
11127
11140
|
}
|
|
11128
|
-
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].label) + "\n "))], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"ja-marcado-spam-buttons\" data-v-
|
|
11141
|
+
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].label) + "\n "))], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"ja-marcado-spam-buttons\" data-v-61c80520>", "</div>", [_vm._ssrNode("<button" + _vm._ssrAttr("disabled", _vm.customActionButtons[0].btn1.disabled) + " class=\"btn-nao-spam\" style=\"position: relative;\" data-v-61c80520>", "</button>", [_vm.customActionButtons[0].btn1.loading ? _c('VueLoader', {
|
|
11142
|
+
staticClass: "btn-loader",
|
|
11143
|
+
attrs: {
|
|
11144
|
+
"hasBg": false
|
|
11145
|
+
}
|
|
11146
|
+
}) : _vm._e(), _vm._ssrNode(" <span" + _vm._ssrStyle(null, {
|
|
11147
|
+
opacity: _vm.customActionButtons[0].btn1.loading ? 0 : 1
|
|
11148
|
+
}, null) + " data-v-61c80520>" + _vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].btn1.label) + "\n ") + "</span>")], 2), _vm._ssrNode(" "), _vm._ssrNode("<button" + _vm._ssrAttr("disabled", _vm.customActionButtons[0].btn2.disabled) + " class=\"btn-e-spam\" style=\"position: relative;\" data-v-61c80520>", "</button>", [_vm.customActionButtons[0].btn2.loading ? _c('VueLoader', {
|
|
11149
|
+
staticClass: "btn-loader",
|
|
11150
|
+
attrs: {
|
|
11151
|
+
"hasBg": false
|
|
11152
|
+
}
|
|
11153
|
+
}) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrStyle(null, {
|
|
11154
|
+
opacity: _vm.customActionButtons[0].btn2.loading ? 0 : 1
|
|
11155
|
+
}, null) + " data-v-61c80520>", "</span>", [_vm.customActionButtons[0].btn2.icon ? _c('fa-icon', {
|
|
11129
11156
|
staticClass: "icon-btn-encerrar-spam",
|
|
11130
11157
|
staticStyle: {
|
|
11131
11158
|
"margin-right": "6px"
|
|
@@ -11133,7 +11160,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11133
11160
|
attrs: {
|
|
11134
11161
|
"icon": ['fas', _vm.customActionButtons[0].btn2.icon === 'exit' ? 'sign-out-alt' : _vm.customActionButtons[0].btn2.icon]
|
|
11135
11162
|
}
|
|
11136
|
-
}) : _vm._e(), _vm._ssrNode(_vm._ssrEscape("\n
|
|
11163
|
+
}) : _vm._e(), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].btn2.label) + "\n "))], 2)], 2)], 2)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-61c80520>", "</div>", [_vm._l(_vm.customActionButtons, function (button, index) {
|
|
11137
11164
|
return [button.type !== 'ja-spam' ? _c('button', {
|
|
11138
11165
|
directives: [{
|
|
11139
11166
|
name: "show",
|
|
@@ -11163,8 +11190,8 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11163
11190
|
domProps: {
|
|
11164
11191
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11165
11192
|
}
|
|
11166
|
-
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-
|
|
11167
|
-
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-
|
|
11193
|
+
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-61c80520>" + _vm._ssrEscape(_vm._s(button.label)) + "</span>" : "<!---->"))], 2) : _vm._e()];
|
|
11194
|
+
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-61c80520>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-61c80520>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> " + (_vm.status === 'C' ? "<div" + _vm._ssrClass("divBtnReplyEmail", [_vm.isOpen ? 'reply-email-open' : '']) + " data-v-61c80520><strong class=\"strongMsg\" data-v-61c80520>" + _vm._ssrEscape(_vm._s(_vm.status_msg) + " ") + "</strong> " + (_vm.hasReplyEmail ? "<button class=\"btnReplyEmail\" data-v-61c80520><strong data-v-61c80520>Reenviar</strong></button>" : "<!---->") + "</div>" : "<!---->") + " "), _vm._ssrNode("<div class=\"header-container\" data-v-61c80520>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, "email-header-content" + (_vm.isOpen ? ' open' : '')) + " data-v-61c80520>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-61c80520>", "</div>", [_vm.para && _vm.para.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-61c80520>", "</div>", [_vm._l(_vm.paraCopia, function (recipient, index) {
|
|
11168
11195
|
return _c('EmailTo', {
|
|
11169
11196
|
key: "to-" + recipient.email,
|
|
11170
11197
|
attrs: {
|
|
@@ -11175,13 +11202,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11175
11202
|
});
|
|
11176
11203
|
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\"" + _vm._ssrStyle(null, null, {
|
|
11177
11204
|
display: _vm.isOpen ? '' : 'none'
|
|
11178
|
-
}) + " data-v-
|
|
11205
|
+
}) + " data-v-61c80520>", "</div>", [_c('fa-icon', {
|
|
11179
11206
|
attrs: {
|
|
11180
11207
|
"icon": ['fas', 'caret-down']
|
|
11181
11208
|
}
|
|
11182
|
-
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-
|
|
11209
|
+
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-61c80520><span class=\"email-subject-span\" data-v-61c80520>" + _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, {
|
|
11183
11210
|
display: _vm.formattedDate ? '' : 'none'
|
|
11184
|
-
}) + " data-v-
|
|
11211
|
+
}) + " data-v-61c80520>", "</span>", [_c('fa-icon', {
|
|
11185
11212
|
attrs: {
|
|
11186
11213
|
"icon": ['fas', 'calendar']
|
|
11187
11214
|
}
|
|
@@ -11202,12 +11229,12 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11202
11229
|
}
|
|
11203
11230
|
}
|
|
11204
11231
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
11205
|
-
return "<li class=\"email-info\" data-v-
|
|
11232
|
+
return "<li class=\"email-info\" data-v-61c80520><span data-v-61c80520>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
11206
11233
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
11207
11234
|
active: _vm.actionsOpen
|
|
11208
11235
|
}, {
|
|
11209
11236
|
main: _vm.isMainEmail
|
|
11210
|
-
}]) + " data-v-
|
|
11237
|
+
}]) + " data-v-61c80520><span data-v-61c80520></span> <span data-v-61c80520></span> <span data-v-61c80520></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
11211
11238
|
directives: [{
|
|
11212
11239
|
name: "clickaway",
|
|
11213
11240
|
rawName: "v-clickaway",
|
|
@@ -11220,13 +11247,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11220
11247
|
$event.stopPropagation();
|
|
11221
11248
|
}
|
|
11222
11249
|
}
|
|
11223
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
11250
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-61c80520>" + _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, {
|
|
11224
11251
|
display: _vm.isOpen ? '' : 'none'
|
|
11225
|
-
}) + " data-v-
|
|
11252
|
+
}) + " data-v-61c80520>", "</div>", [_vm.isIframeLoading ? _c('VueLoader') : _vm._e(), _vm._ssrNode(" " + (_vm.hasError ? "<div class=\"email-error-content\" data-v-61c80520><p data-v-61c80520>Erro ao carregar o e-mail</p> <button class=\"box-shadow\" data-v-61c80520>Tentar novamente</button></div>" : "<!---->") + " <iframe" + _vm._ssrClass(null, "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')) + _vm._ssrStyle(null, null, {
|
|
11226
11253
|
display: !_vm.hasError ? '' : 'none'
|
|
11227
|
-
}) + " data-v-
|
|
11254
|
+
}) + " data-v-61c80520></iframe> " + (_vm.openMessage ? "<span class=\"email-raw\" data-v-61c80520>" + _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, {
|
|
11228
11255
|
display: _vm.isOpen ? '' : 'none'
|
|
11229
|
-
}) + " data-v-
|
|
11256
|
+
}) + " data-v-61c80520>", "</div>", _vm._l(_vm.filteredFiles, function (anexo, index) {
|
|
11230
11257
|
return _c('EmailFile', {
|
|
11231
11258
|
key: index,
|
|
11232
11259
|
attrs: {
|
|
@@ -11234,31 +11261,31 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11234
11261
|
"dominio": _vm.dominio
|
|
11235
11262
|
}
|
|
11236
11263
|
});
|
|
11237
|
-
}), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\" data-v-
|
|
11264
|
+
}), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\" data-v-61c80520>", "</div>", [_vm._ssrNode("<span class=\"clip-icon\" data-v-61c80520>", "</span>", [_c('fa-icon', {
|
|
11238
11265
|
attrs: {
|
|
11239
11266
|
"icon": ['fas', 'paperclip']
|
|
11240
11267
|
}
|
|
11241
|
-
}), _vm._ssrNode(" <span class=\"clip-badge\" data-v-
|
|
11268
|
+
}), _vm._ssrNode(" <span class=\"clip-badge\" data-v-61c80520>" + _vm._ssrEscape(_vm._s(_vm.filteredFiles.length)) + "</span>")], 2)]) : _vm._e()], 2);
|
|
11242
11269
|
};
|
|
11243
11270
|
var __vue_staticRenderFns__$1 = [];
|
|
11244
11271
|
|
|
11245
11272
|
/* style */
|
|
11246
11273
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
11247
11274
|
if (!inject) return;
|
|
11248
|
-
inject("data-v-
|
|
11249
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11275
|
+
inject("data-v-61c80520_0", {
|
|
11276
|
+
source: ".show-y-top-enter-active[data-v-61c80520],.show-y-top-leave-enter[data-v-61c80520]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-61c80520],.show-y-top-leave-to[data-v-61c80520]{opacity:0;transform:translateY(-2%)}",
|
|
11250
11277
|
map: undefined,
|
|
11251
11278
|
media: undefined
|
|
11252
|
-
}), inject("data-v-
|
|
11253
|
-
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}.ja-marcado-spam{width:100%;background:#fffbe6;border:1px solid #ffe58f;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.08);padding:5px 30px;margin:9px 0 5px 0;display:flex;justify-content:space-between;align-items:center;gap:16px}.ja-marcado-spam>span{color:#614500;font-weight:500;font-size:14px;margin-bottom:0;align-self:center;align-items:center}.ja-marcado-spam-buttons{display:flex;flex-direction:column;gap:6px;align-items:flex-end}.ja-marcado-spam button{min-width:
|
|
11279
|
+
}), inject("data-v-61c80520_1", {
|
|
11280
|
+
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}.ja-marcado-spam{width:100%;background:#fffbe6;border:1px solid #ffe58f;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.08);padding:5px 30px;margin:9px 0 5px 0;display:flex;justify-content:space-between;align-items:center;gap:16px}.ja-marcado-spam>span{color:#614500;font-weight:500;font-size:14px;margin-bottom:0;align-self:center;align-items:center}.ja-marcado-spam-buttons{display:flex;flex-direction:column;gap:6px;align-items:flex-end}.ja-marcado-spam button{min-width:110px;padding:4px 10px;border:none;border-radius:5px;background:#ffe58f;color:#333;cursor:pointer;font-size:13.4px}.ja-marcado-spam-buttons .btn-nao-spam{background:#36b87b;color:var(--white);border:1px solid var(--konecta-success-hover,#309264);font-weight:700}.ja-marcado-spam-buttons .btn-nao-spam:hover{background:#309264}.ja-marcado-spam-buttons .btn-e-spam{background:#e74c3c;color:var(--white);border:1px solid var(--konecta-danger-hover,#c92e1e);font-weight:700}.ja-marcado-spam-buttons .btn-e-spam:hover{background:#c92e1e}.icon-btn-encerrar-spam{margin-right:2px}.btn-loader{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;pointer-events:none}.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))}",
|
|
11254
11281
|
map: undefined,
|
|
11255
11282
|
media: undefined
|
|
11256
11283
|
});
|
|
11257
11284
|
};
|
|
11258
11285
|
/* scoped */
|
|
11259
|
-
var __vue_scope_id__$1 = "data-v-
|
|
11286
|
+
var __vue_scope_id__$1 = "data-v-61c80520";
|
|
11260
11287
|
/* module identifier */
|
|
11261
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
11288
|
+
var __vue_module_identifier__$1 = "data-v-61c80520";
|
|
11262
11289
|
/* functional template */
|
|
11263
11290
|
var __vue_is_functional_template__$1 = false;
|
|
11264
11291
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -30,26 +30,40 @@
|
|
|
30
30
|
</span>
|
|
31
31
|
<div @click.stop class="ja-marcado-spam-buttons">
|
|
32
32
|
<button
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
:disabled="customActionButtons[0].btn1.disabled"
|
|
34
|
+
class="btn-nao-spam"
|
|
35
|
+
@click="customActionButtons[0].btn1.callback"
|
|
36
|
+
style="position: relative;"
|
|
37
|
+
>
|
|
38
|
+
<VueLoader
|
|
39
|
+
v-if="customActionButtons[0].btn1.loading"
|
|
40
|
+
:hasBg="false"
|
|
41
|
+
class="btn-loader"
|
|
42
|
+
/>
|
|
43
|
+
<span :style="{ opacity: customActionButtons[0].btn1.loading ? 0 : 1 }">
|
|
38
44
|
{{ customActionButtons[0].btn1.label }}
|
|
45
|
+
</span>
|
|
39
46
|
</button>
|
|
40
47
|
<button
|
|
41
48
|
:disabled="customActionButtons[0].btn2.disabled"
|
|
42
49
|
class="btn-e-spam"
|
|
43
50
|
@click="customActionButtons[0].btn2.callback"
|
|
51
|
+
style="position: relative;"
|
|
44
52
|
>
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
style="margin-right: 6px;"
|
|
53
|
+
<VueLoader
|
|
54
|
+
v-if="customActionButtons[0].btn2.loading"
|
|
55
|
+
:hasBg="false"
|
|
56
|
+
class="btn-loader"
|
|
50
57
|
/>
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
<span :style="{ opacity: customActionButtons[0].btn2.loading ? 0 : 1 }">
|
|
59
|
+
<fa-icon v-if="customActionButtons[0].btn2.icon"
|
|
60
|
+
class="icon-btn-encerrar-spam"
|
|
61
|
+
:icon="['fas', customActionButtons[0].btn2.icon === 'exit' ? 'sign-out-alt' : customActionButtons[0].btn2.icon]"
|
|
62
|
+
style="margin-right: 6px;"
|
|
63
|
+
/>
|
|
64
|
+
{{ customActionButtons[0].btn2.label }}
|
|
65
|
+
</span>
|
|
66
|
+
</button>
|
|
53
67
|
</div>
|
|
54
68
|
</div>
|
|
55
69
|
<div class="email-custom-action-buttons" v-if="customActionButtons && customActionButtons.length" @click.stop>
|
|
@@ -481,10 +495,23 @@ export default {
|
|
|
481
495
|
this.$nextTick(() => {
|
|
482
496
|
if (this.isOpen && this.isIframeLoading) {
|
|
483
497
|
const iframe = this.$refs.emailIframe;
|
|
484
|
-
if (!iframe)
|
|
498
|
+
if (!iframe) {
|
|
499
|
+
console.warn('Iframe not found');
|
|
500
|
+
this.isIframeLoading = false
|
|
501
|
+
return
|
|
502
|
+
}
|
|
485
503
|
const doc = iframe.contentDocument || iframe.contentWindow.document;
|
|
486
|
-
if (!doc)
|
|
487
|
-
|
|
504
|
+
if (!doc) {
|
|
505
|
+
console.warn('Document not found in iframe');
|
|
506
|
+
this.isIframeLoading = false
|
|
507
|
+
return
|
|
508
|
+
}
|
|
509
|
+
let content = this.html || ''
|
|
510
|
+
if(!content || !content.length) {
|
|
511
|
+
console.warn('No content to display in iframe');
|
|
512
|
+
this.isIframeLoading = false
|
|
513
|
+
return
|
|
514
|
+
}
|
|
488
515
|
if (!/<[a-z][\s\S]*>/i.test(content)) {
|
|
489
516
|
content = content.replace(/\n/g, '<br>');
|
|
490
517
|
content = this.gerarMensagemEstilizada(content)
|
|
@@ -775,7 +802,7 @@ export default {
|
|
|
775
802
|
}
|
|
776
803
|
|
|
777
804
|
.ja-marcado-spam button {
|
|
778
|
-
min-width:
|
|
805
|
+
min-width: 110px;
|
|
779
806
|
padding: 4px 10px;
|
|
780
807
|
border: none;
|
|
781
808
|
border-radius: 5px;
|
|
@@ -811,6 +838,15 @@ export default {
|
|
|
811
838
|
margin-right: 2px;
|
|
812
839
|
}
|
|
813
840
|
|
|
841
|
+
.btn-loader {
|
|
842
|
+
position: absolute;
|
|
843
|
+
left: 50%;
|
|
844
|
+
top: 50%;
|
|
845
|
+
transform: translate(-50%, -50%);
|
|
846
|
+
z-index: 2;
|
|
847
|
+
pointer-events: none;
|
|
848
|
+
}
|
|
849
|
+
|
|
814
850
|
.strongMsg {
|
|
815
851
|
flex: 1;
|
|
816
852
|
font-size: 13px;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|