vue-intergrall-plugins 1.1.12 → 1.1.14
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.
|
@@ -10664,6 +10664,10 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10664
10664
|
status: {
|
|
10665
10665
|
type: String,
|
|
10666
10666
|
default: ''
|
|
10667
|
+
},
|
|
10668
|
+
status_msg: {
|
|
10669
|
+
type: String,
|
|
10670
|
+
default: ''
|
|
10667
10671
|
}
|
|
10668
10672
|
},
|
|
10669
10673
|
data: function data() {
|
|
@@ -10678,6 +10682,15 @@ var EmailTo = __vue_component__$4;var script$1 = {
|
|
|
10678
10682
|
};
|
|
10679
10683
|
},
|
|
10680
10684
|
computed: {
|
|
10685
|
+
statusTitle: function statusTitle() {
|
|
10686
|
+
if (this.status !== 'C') {
|
|
10687
|
+
return "Enviado por: ".concat(this.autor);
|
|
10688
|
+
}
|
|
10689
|
+
if (!this.status_msg) {
|
|
10690
|
+
return "Enviado com erro por: ".concat(this.autor);
|
|
10691
|
+
}
|
|
10692
|
+
return "Enviado com erro por: ".concat(this.autor, " - ").concat(this.status_msg);
|
|
10693
|
+
},
|
|
10681
10694
|
paraCopia: function paraCopia() {
|
|
10682
10695
|
if (!this.copia || !this.copia.length) return this.para && this.para.length ? this.para : [];
|
|
10683
10696
|
return this.para && this.para.length ? this.para.concat(this.copia) : this.copia;
|
|
@@ -10984,17 +10997,17 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10984
10997
|
return _vm.openByItem($event);
|
|
10985
10998
|
}
|
|
10986
10999
|
}
|
|
10987
|
-
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-
|
|
11000
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-972d34ba></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem, _vm.isMainEmail ? 'main' : '']) + " data-v-972d34ba>", "</div>", [_vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.statusTitle) + " data-v-972d34ba>", "</span>", [_c('fa-icon', {
|
|
10988
11001
|
class: [_vm.origem],
|
|
10989
11002
|
attrs: {
|
|
10990
11003
|
"icon": ['fas', _vm.status !== 'C' ? 'reply' : 'times']
|
|
10991
11004
|
}
|
|
10992
|
-
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-
|
|
11005
|
+
})], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-972d34ba>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName)) + "</p> "), _vm._ssrNode("<span" + _vm._ssrAttr("title", "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')) + " data-v-972d34ba>", "</span>", [_c('fa-icon', {
|
|
10993
11006
|
staticClass: "email-to-svg",
|
|
10994
11007
|
attrs: {
|
|
10995
11008
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset']
|
|
10996
11009
|
}
|
|
10997
|
-
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-
|
|
11010
|
+
})], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-972d34ba>", "</div>", _vm._l(_vm.customButtons, function (button, index) {
|
|
10998
11011
|
return _c('span', {
|
|
10999
11012
|
directives: [{
|
|
11000
11013
|
name: "show",
|
|
@@ -11025,7 +11038,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11025
11038
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11026
11039
|
}
|
|
11027
11040
|
})], 1);
|
|
11028
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-
|
|
11041
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-972d34ba>", "</div>", _vm._l(_vm.customActionButtons, function (button, index) {
|
|
11029
11042
|
return _c('button', {
|
|
11030
11043
|
directives: [{
|
|
11031
11044
|
name: "show",
|
|
@@ -11055,8 +11068,8 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11055
11068
|
domProps: {
|
|
11056
11069
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11057
11070
|
}
|
|
11058
|
-
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-
|
|
11059
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-
|
|
11071
|
+
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-972d34ba>" + _vm._ssrEscape(_vm._s(button.label)) + "</span>" : "<!---->"))], 2);
|
|
11072
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-972d34ba>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-972d34ba>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> "), _vm._ssrNode("<div class=\"header-container\" data-v-972d34ba>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, "email-header-content" + (_vm.isOpen ? ' open' : '')) + " data-v-972d34ba>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-972d34ba>", "</div>", [_vm.para && _vm.para.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-972d34ba>", "</div>", [_vm._l(_vm.paraCopia, function (recipient, index) {
|
|
11060
11073
|
return _c('EmailTo', {
|
|
11061
11074
|
key: "to-" + recipient.email,
|
|
11062
11075
|
attrs: {
|
|
@@ -11067,13 +11080,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11067
11080
|
});
|
|
11068
11081
|
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\"" + _vm._ssrStyle(null, null, {
|
|
11069
11082
|
display: _vm.isOpen ? '' : 'none'
|
|
11070
|
-
}) + " data-v-
|
|
11083
|
+
}) + " data-v-972d34ba>", "</div>", [_c('fa-icon', {
|
|
11071
11084
|
attrs: {
|
|
11072
11085
|
"icon": ['fas', 'caret-down']
|
|
11073
11086
|
}
|
|
11074
|
-
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-
|
|
11087
|
+
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-972d34ba><span class=\"email-subject-span\" data-v-972d34ba>" + _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, {
|
|
11075
11088
|
display: _vm.formattedDate ? '' : 'none'
|
|
11076
|
-
}) + " data-v-
|
|
11089
|
+
}) + " data-v-972d34ba>", "</span>", [_c('fa-icon', {
|
|
11077
11090
|
attrs: {
|
|
11078
11091
|
"icon": ['fas', 'calendar']
|
|
11079
11092
|
}
|
|
@@ -11094,12 +11107,12 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11094
11107
|
}
|
|
11095
11108
|
}
|
|
11096
11109
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
11097
|
-
return "<li class=\"email-info\" data-v-
|
|
11110
|
+
return "<li class=\"email-info\" data-v-972d34ba><span data-v-972d34ba>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
11098
11111
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
11099
11112
|
active: _vm.actionsOpen
|
|
11100
11113
|
}, {
|
|
11101
11114
|
main: _vm.isMainEmail
|
|
11102
|
-
}]) + " data-v-
|
|
11115
|
+
}]) + " data-v-972d34ba><span data-v-972d34ba></span> <span data-v-972d34ba></span> <span data-v-972d34ba></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
11103
11116
|
directives: [{
|
|
11104
11117
|
name: "clickaway",
|
|
11105
11118
|
rawName: "v-clickaway",
|
|
@@ -11112,13 +11125,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
11112
11125
|
$event.stopPropagation();
|
|
11113
11126
|
}
|
|
11114
11127
|
}
|
|
11115
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
11128
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-972d34ba>" + _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, {
|
|
11116
11129
|
display: _vm.isOpen ? '' : 'none'
|
|
11117
|
-
}) + " data-v-
|
|
11130
|
+
}) + " data-v-972d34ba>", "</div>", [_vm.isIframeLoading ? _c('VueLoader') : _vm._e(), _vm._ssrNode(" " + (_vm.hasError ? "<div class=\"email-error-content\" data-v-972d34ba><p data-v-972d34ba>Erro ao carregar o e-mail</p> <button class=\"box-shadow\" data-v-972d34ba>Tentar novamente</button></div>" : "<!---->") + " <iframe" + _vm._ssrClass(null, "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')) + _vm._ssrStyle(null, null, {
|
|
11118
11131
|
display: !_vm.hasError ? '' : 'none'
|
|
11119
|
-
}) + " data-v-
|
|
11132
|
+
}) + " data-v-972d34ba></iframe> " + (_vm.openMessage ? "<span class=\"email-raw\" data-v-972d34ba>" + _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, {
|
|
11120
11133
|
display: _vm.isOpen || _vm.isMainEmail ? '' : 'none'
|
|
11121
|
-
}) + " data-v-
|
|
11134
|
+
}) + " data-v-972d34ba>", "</div>", _vm._l(_vm.filteredFiles, function (anexo, index) {
|
|
11122
11135
|
return _c('EmailFile', {
|
|
11123
11136
|
key: index,
|
|
11124
11137
|
attrs: {
|
|
@@ -11133,20 +11146,20 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
11133
11146
|
/* style */
|
|
11134
11147
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
11135
11148
|
if (!inject) return;
|
|
11136
|
-
inject("data-v-
|
|
11137
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11149
|
+
inject("data-v-972d34ba_0", {
|
|
11150
|
+
source: ".show-y-top-enter-active[data-v-972d34ba],.show-y-top-leave-enter[data-v-972d34ba]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-972d34ba],.show-y-top-leave-to[data-v-972d34ba]{opacity:0;transform:translateY(-2%)}",
|
|
11138
11151
|
map: undefined,
|
|
11139
11152
|
media: undefined
|
|
11140
|
-
}), inject("data-v-
|
|
11153
|
+
}), inject("data-v-972d34ba_1", {
|
|
11141
11154
|
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}.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}",
|
|
11142
11155
|
map: undefined,
|
|
11143
11156
|
media: undefined
|
|
11144
11157
|
});
|
|
11145
11158
|
};
|
|
11146
11159
|
/* scoped */
|
|
11147
|
-
var __vue_scope_id__$1 = "data-v-
|
|
11160
|
+
var __vue_scope_id__$1 = "data-v-972d34ba";
|
|
11148
11161
|
/* module identifier */
|
|
11149
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
11162
|
+
var __vue_module_identifier__$1 = "data-v-972d34ba";
|
|
11150
11163
|
/* functional template */
|
|
11151
11164
|
var __vue_is_functional_template__$1 = false;
|
|
11152
11165
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div v-if="showInfos" class="email-overlay"></div>
|
|
6
6
|
<div class="email-author" v-if="autor" :class="[origem, isMainEmail ? 'main' : '']" @click.stop="toggleIsOpen"
|
|
7
7
|
:key="autor">
|
|
8
|
-
<span :title="
|
|
8
|
+
<span :title="statusTitle"><fa-icon :icon="['fas', status !== 'C' ? 'reply' : 'times']" :class="[origem]" /></span>
|
|
9
9
|
<p class="email-author-name" v-text="returnAuthorName" :title="returnAuthorName"></p>
|
|
10
10
|
<span :title="`E-mail ${origem === 'outros' ? 'recebido' : 'enviado'}`">
|
|
11
11
|
<fa-icon :icon="['fas', origem === 'outros' ? 'user' : 'headset']" class="email-to-svg" />
|
|
@@ -192,6 +192,10 @@ export default {
|
|
|
192
192
|
status: {
|
|
193
193
|
type: String,
|
|
194
194
|
default: ''
|
|
195
|
+
},
|
|
196
|
+
status_msg: {
|
|
197
|
+
type: String,
|
|
198
|
+
default: ''
|
|
195
199
|
}
|
|
196
200
|
},
|
|
197
201
|
data() {
|
|
@@ -206,6 +210,17 @@ export default {
|
|
|
206
210
|
};
|
|
207
211
|
},
|
|
208
212
|
computed: {
|
|
213
|
+
statusTitle() {
|
|
214
|
+
if(this.status !== 'C') {
|
|
215
|
+
return `Enviado por: ${this.autor}`
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if(!this.status_msg) {
|
|
219
|
+
return `Enviado com erro por: ${this.autor}`
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
return `Enviado com erro por: ${this.autor} - ${this.status_msg}`
|
|
223
|
+
},
|
|
209
224
|
paraCopia() {
|
|
210
225
|
if (!this.copia || !this.copia.length) return this.para && this.para.length ? this.para : []
|
|
211
226
|
return this.para && this.para.length ? this.para.concat(this.copia) : this.copia
|