vue-intergrall-plugins 1.0.92 → 1.0.94
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/dist/vue-intergrall-plugins.esm.js +36 -22
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +56 -45
- package/package.json +1 -1
- package/src/lib-components/Chat/StandardMessages.vue +7 -1
- package/src/lib-components/Email/EmailExpanded.vue +1 -0
- package/src/lib-components/Email/EmailItem.vue +1 -1
|
@@ -4806,12 +4806,12 @@ var __vue_component__$x = /*#__PURE__*/normalizeComponent({
|
|
|
4806
4806
|
render: __vue_render__$o,
|
|
4807
4807
|
staticRenderFns: __vue_staticRenderFns__$o
|
|
4808
4808
|
}, __vue_inject_styles__$o, __vue_script__$o, __vue_scope_id__$o, __vue_is_functional_template__$o, __vue_module_identifier__$o, false, undefined, undefined, undefined);
|
|
4809
|
-
var RemainingCharacters = __vue_component__$x;var domain = window.location.hostname ==
|
|
4809
|
+
var RemainingCharacters = __vue_component__$x;var domain = window.location.hostname == "localhost" ? "https://linux07" : "https://".concat(window.location.hostname) + "/im";
|
|
4810
4810
|
var route = "/smartChannel/v1/api.php";
|
|
4811
4811
|
// const route = `atdHumano/middleware/smartchannel_api.php`
|
|
4812
4812
|
|
|
4813
4813
|
var baseURL = "".concat(domain).concat(route);
|
|
4814
|
-
var dev = window.location.hostname ==
|
|
4814
|
+
var dev = window.location.hostname == "localhost" ? "&teste=eloteste" : "";var standardMessages = {
|
|
4815
4815
|
methods: {
|
|
4816
4816
|
getStandardMessages: function getStandardMessages(type, token) {
|
|
4817
4817
|
var _this = this;
|
|
@@ -4820,7 +4820,7 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
4820
4820
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4821
4821
|
while (1) switch (_context.prev = _context.next) {
|
|
4822
4822
|
case 0:
|
|
4823
|
-
url = "".concat(baseURL, "/messages/").concat(type, "?token_cliente=").concat(token).concat(dev);
|
|
4823
|
+
url = "".concat(baseURL, "/messages/").concat(type, "?token_cliente=").concat(token).concat(_this.$root.$reqTeste || dev);
|
|
4824
4824
|
if (_this.$root.$httpRequest) {
|
|
4825
4825
|
_context.next = 3;
|
|
4826
4826
|
break;
|
|
@@ -4837,19 +4837,20 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
4837
4837
|
break;
|
|
4838
4838
|
}
|
|
4839
4839
|
return _context.abrupt("return", {
|
|
4840
|
-
msg_ret:
|
|
4840
|
+
msg_ret: "Retorno incorreto das mensagens formatadas",
|
|
4841
|
+
error: true
|
|
4841
4842
|
});
|
|
4842
4843
|
case 9:
|
|
4843
4844
|
data = response.data;
|
|
4844
4845
|
tipo = data.tipo, nivel = data.nivel, conteudo = data.conteudo, msg_ret = data.msg_ret, st_ret = data.st_ret;
|
|
4845
|
-
if (tipo) _this.$emit(
|
|
4846
|
-
if (!(st_ret ===
|
|
4846
|
+
if (tipo) _this.$emit("set-message-type", tipo);
|
|
4847
|
+
if (!(st_ret === "OK")) {
|
|
4847
4848
|
_context.next = 16;
|
|
4848
4849
|
break;
|
|
4849
4850
|
}
|
|
4850
4851
|
return _context.abrupt("return", conteudo ? conteudo : nivel);
|
|
4851
4852
|
case 16:
|
|
4852
|
-
if (!(st_ret ===
|
|
4853
|
+
if (!(st_ret === "AVISO")) {
|
|
4853
4854
|
_context.next = 20;
|
|
4854
4855
|
break;
|
|
4855
4856
|
}
|
|
@@ -4858,8 +4859,12 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
4858
4859
|
});
|
|
4859
4860
|
case 20:
|
|
4860
4861
|
return _context.abrupt("return", msg_ret ? {
|
|
4861
|
-
msg_ret: msg_ret
|
|
4862
|
-
|
|
4862
|
+
msg_ret: msg_ret,
|
|
4863
|
+
error: true
|
|
4864
|
+
} : {
|
|
4865
|
+
msg_ret: "Erro ao buscar mensagens formatadas",
|
|
4866
|
+
error: true
|
|
4867
|
+
});
|
|
4863
4868
|
case 21:
|
|
4864
4869
|
_context.next = 27;
|
|
4865
4870
|
break;
|
|
@@ -4868,7 +4873,8 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
4868
4873
|
_context.t0 = _context["catch"](3);
|
|
4869
4874
|
console.error("Erro na requisicao para o servidor (2)", _context.t0);
|
|
4870
4875
|
return _context.abrupt("return", {
|
|
4871
|
-
msg_ret: _context.t0.message ? _context.t0.message : _context.t0
|
|
4876
|
+
msg_ret: _context.t0.message ? _context.t0.message : _context.t0,
|
|
4877
|
+
error: true
|
|
4872
4878
|
});
|
|
4873
4879
|
case 27:
|
|
4874
4880
|
case "end":
|
|
@@ -4966,15 +4972,20 @@ var script$n = {
|
|
|
4966
4972
|
this.getStandardMessages(cod, this.token_cliente).then(function (data) {
|
|
4967
4973
|
_this.loadingReq = false;
|
|
4968
4974
|
if (data) {
|
|
4969
|
-
if (data.msg_ret)
|
|
4970
|
-
|
|
4971
|
-
|
|
4975
|
+
if (data.msg_ret) {
|
|
4976
|
+
if (data.error) throw new Error(data.msg_ret);
|
|
4977
|
+
return _this.$toasted.global.defaultInfo({
|
|
4978
|
+
msg: data.msg_ret
|
|
4979
|
+
});
|
|
4980
|
+
}
|
|
4972
4981
|
return _this.showFormattedMessage(data, selectionIndex);
|
|
4973
4982
|
}
|
|
4974
4983
|
_this.$toasted.global.defaultError({
|
|
4975
4984
|
msg: data && data.msg_ret ? data.msg_ret : 'Problema com as mensagens formatadas. Contate o suporte.'
|
|
4976
4985
|
});
|
|
4977
4986
|
_this.$emit("error-standard-message");
|
|
4987
|
+
_this.closeStandardMessages();
|
|
4988
|
+
_this.loadingReq = false;
|
|
4978
4989
|
}).catch(function (e) {
|
|
4979
4990
|
_this.loadingReq = false;
|
|
4980
4991
|
_this.$toasted.global.defaultError({
|
|
@@ -5166,7 +5177,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
5166
5177
|
/* style */
|
|
5167
5178
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
5168
5179
|
if (!inject) return;
|
|
5169
|
-
inject("data-v-
|
|
5180
|
+
inject("data-v-7abf5d83_0", {
|
|
5170
5181
|
source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}.loading-message{background-color:#555!important}",
|
|
5171
5182
|
map: undefined,
|
|
5172
5183
|
media: undefined
|
|
@@ -5175,7 +5186,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
5175
5186
|
/* scoped */
|
|
5176
5187
|
var __vue_scope_id__$n = undefined;
|
|
5177
5188
|
/* module identifier */
|
|
5178
|
-
var __vue_module_identifier__$n = "data-v-
|
|
5189
|
+
var __vue_module_identifier__$n = "data-v-7abf5d83";
|
|
5179
5190
|
/* functional template */
|
|
5180
5191
|
var __vue_is_functional_template__$n = false;
|
|
5181
5192
|
/* style inject shadow dom */
|
|
@@ -10570,19 +10581,19 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10570
10581
|
return _vm.openByItem($event);
|
|
10571
10582
|
}
|
|
10572
10583
|
}
|
|
10573
|
-
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-
|
|
10584
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-64f18177></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem, _vm.isMainEmail ? 'main' : '']) + " data-v-64f18177>", "</div>", [_c('fa-icon', {
|
|
10574
10585
|
class: [_vm.origem],
|
|
10575
10586
|
attrs: {
|
|
10576
10587
|
"icon": ['fas', 'reply'],
|
|
10577
10588
|
"title": "Enviado por: " + _vm.autor
|
|
10578
10589
|
}
|
|
10579
|
-
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName()) + " class=\"email-author-name\" data-v-
|
|
10590
|
+
}), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName()) + " class=\"email-author-name\" data-v-64f18177>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName())) + "</p> "), _c('fa-icon', {
|
|
10580
10591
|
staticClass: "email-to-svg",
|
|
10581
10592
|
attrs: {
|
|
10582
10593
|
"icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset'],
|
|
10583
10594
|
"title": "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')
|
|
10584
10595
|
}
|
|
10585
|
-
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-
|
|
10596
|
+
})], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-64f18177>", "</div>", _vm._l(_vm.customButtons, function (button, index) {
|
|
10586
10597
|
return _c('span', {
|
|
10587
10598
|
directives: [{
|
|
10588
10599
|
name: "show",
|
|
@@ -10613,7 +10624,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10613
10624
|
"innerHTML": _vm._s(button.svgIcon)
|
|
10614
10625
|
}
|
|
10615
10626
|
})], 1);
|
|
10616
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-
|
|
10627
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-64f18177>", "</div>", _vm._l(_vm.customActionButtons, function (button, index) {
|
|
10617
10628
|
return _c('button', {
|
|
10618
10629
|
directives: [{
|
|
10619
10630
|
name: "show",
|
|
@@ -10643,8 +10654,8 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10643
10654
|
domProps: {
|
|
10644
10655
|
"innerHTML": _vm._s(button.svgIcon)
|
|
10645
10656
|
}
|
|
10646
|
-
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-
|
|
10647
|
-
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-
|
|
10657
|
+
}), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-64f18177>" + _vm._ssrEscape(_vm._s(button.label)) + "</span>" : "<!---->"))], 2);
|
|
10658
|
+
}), 0) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-64f18177>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-64f18177>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> "), _vm._ssrNode("<div class=\"header-container\" data-v-64f18177>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, "email-header-content" + (_vm.isOpen ? ' open' : '')) + " data-v-64f18177>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-64f18177>", "</div>", [_vm.para && _vm.para.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-64f18177>", "</div>", [_vm._l(_vm.paraCopia, function (recipient, index) {
|
|
10648
10659
|
return _c('EmailTo', {
|
|
10649
10660
|
key: "to-" + index,
|
|
10650
10661
|
attrs: {
|
|
@@ -10655,13 +10666,13 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10655
10666
|
});
|
|
10656
10667
|
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\"" + _vm._ssrStyle(null, null, {
|
|
10657
10668
|
display: _vm.isOpen ? '' : 'none'
|
|
10658
|
-
}) + " data-v-
|
|
10669
|
+
}) + " data-v-64f18177>", "</div>", [_c('fa-icon', {
|
|
10659
10670
|
attrs: {
|
|
10660
10671
|
"icon": ['fas', 'caret-down']
|
|
10661
10672
|
}
|
|
10662
|
-
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-
|
|
10673
|
+
})], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-64f18177><span class=\"email-subject-span\" data-v-64f18177>" + _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, {
|
|
10663
10674
|
display: _vm.formattedDate ? '' : 'none'
|
|
10664
|
-
}) + " data-v-
|
|
10675
|
+
}) + " data-v-64f18177>", "</span>", [_c('fa-icon', {
|
|
10665
10676
|
attrs: {
|
|
10666
10677
|
"icon": ['fas', 'calendar']
|
|
10667
10678
|
}
|
|
@@ -10682,12 +10693,12 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10682
10693
|
}
|
|
10683
10694
|
}
|
|
10684
10695
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
10685
|
-
return "<li class=\"email-info\" data-v-
|
|
10696
|
+
return "<li class=\"email-info\" data-v-64f18177><span data-v-64f18177>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
10686
10697
|
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
10687
10698
|
active: _vm.actionsOpen
|
|
10688
10699
|
}, {
|
|
10689
10700
|
main: _vm.isMainEmail
|
|
10690
|
-
}]) + " data-v-
|
|
10701
|
+
}]) + " data-v-64f18177><span data-v-64f18177></span> <span data-v-64f18177></span> <span data-v-64f18177></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
10691
10702
|
directives: [{
|
|
10692
10703
|
name: "clickaway",
|
|
10693
10704
|
rawName: "v-clickaway",
|
|
@@ -10700,7 +10711,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10700
10711
|
$event.stopPropagation();
|
|
10701
10712
|
}
|
|
10702
10713
|
}
|
|
10703
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
10714
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-64f18177>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
|
|
10704
10715
|
attrs: {
|
|
10705
10716
|
"name": "show-y-top"
|
|
10706
10717
|
}
|
|
@@ -10735,7 +10746,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
10735
10746
|
staticClass: "email-raw"
|
|
10736
10747
|
}, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()], 1)]), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length ? _vm._ssrNode("<div class=\"email-files\"" + _vm._ssrStyle(null, null, {
|
|
10737
10748
|
display: _vm.isOpen || _vm.isMainEmail ? '' : 'none'
|
|
10738
|
-
}) + " data-v-
|
|
10749
|
+
}) + " data-v-64f18177>", "</div>", _vm._l(_vm.filteredFiles, function (anexo, index) {
|
|
10739
10750
|
return _c('EmailFile', {
|
|
10740
10751
|
key: index,
|
|
10741
10752
|
attrs: {
|
|
@@ -10750,20 +10761,20 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
10750
10761
|
/* style */
|
|
10751
10762
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
10752
10763
|
if (!inject) return;
|
|
10753
|
-
inject("data-v-
|
|
10754
|
-
source: ".show-y-top-enter-active[data-v-
|
|
10764
|
+
inject("data-v-64f18177_0", {
|
|
10765
|
+
source: ".show-y-top-enter-active[data-v-64f18177],.show-y-top-leave-enter[data-v-64f18177]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-64f18177],.show-y-top-leave-to[data-v-64f18177]{opacity:0;transform:translateY(-2%)}",
|
|
10755
10766
|
map: undefined,
|
|
10756
10767
|
media: undefined
|
|
10757
|
-
}), inject("data-v-
|
|
10768
|
+
}), inject("data-v-64f18177_1", {
|
|
10758
10769
|
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:1.025rem}.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:1.025rem;cursor:pointer}.email-date{--width:245px;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:absolute;right:0;top:0;min-width:var(--width);width:var(--width);max-width:var(--width);display:flex;justify-content:flex-end;gap:3px;align-items:center}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;background-color:#fff;position:relative;max-width:100%}.email-actions{align-self:flex-end;display:flex;border-radius:10px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:5px 7px;background-color:#ddd;position:absolute;right:0;top:30px;z-index:1}.email-actions.main{top:10px}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;min-width:4px;min-height:4px;max-width:4px;max-height:4px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:45px;width:250px;top:5px;margin:0;list-style-type:none;padding:0;border-radius:5px;z-index:1}.email-action{background-color:#dfdfdf;padding:5px 10px;cursor:pointer;transition:background-color 150ms ease-in-out;font-size:.9rem;user-select:none}.email-action:nth-child(1){border-top-left-radius:5px;border-top-right-radius:5px}.email-action:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.email-action:hover{background-color:#ccc}.email-html{width:100%;min-width:300px;max-width:100%;border:none;overflow:auto}.email-raw{width:100%;max-width:100%;padding:15px;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%;margin-top:5px}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:5px;max-width:100%;min-width:250px;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap;flex:1;gap:5px}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-325px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;max-height:300px;overflow-y:auto;overflow-x:hidden;width:300px;display:flex;flex-direction:column;gap:5px;margin:0;cursor:default}.email-info{width:100%;font-size:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:.75rem;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:.7rem;color:gray}.email-to-svg{font-size:.85rem}.email-custom-buttons{display:flex;gap:7px;position:absolute;top:5px;right:5px;z-index:1;font-size:.8rem}.menu-mensagem{cursor:pointer;padding:1px;opacity:.7;transition:opacity .1s ease-in-out}.menu-mensagem:active,.menu-mensagem:focus,.menu-mensagem:hover{opacity:1}.email-error-content{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:5px;padding:10px}.email-error-content p{margin:0;color:#e74c3c}.email-error-content button{border:1px solid #ccc;border-radius:3px;padding:5px 10px;background-color:#fff;cursor:pointer;transition:background-color 150ms ease-in-out}.email-error-content button:hover{background-color:#eee}",
|
|
10759
10770
|
map: undefined,
|
|
10760
10771
|
media: undefined
|
|
10761
10772
|
});
|
|
10762
10773
|
};
|
|
10763
10774
|
/* scoped */
|
|
10764
|
-
var __vue_scope_id__$1 = "data-v-
|
|
10775
|
+
var __vue_scope_id__$1 = "data-v-64f18177";
|
|
10765
10776
|
/* module identifier */
|
|
10766
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
10777
|
+
var __vue_module_identifier__$1 = "data-v-64f18177";
|
|
10767
10778
|
/* functional template */
|
|
10768
10779
|
var __vue_is_functional_template__$1 = false;
|
|
10769
10780
|
/* style inject shadow dom */
|
|
@@ -10855,13 +10866,13 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10855
10866
|
on: {
|
|
10856
10867
|
"click": _vm.close
|
|
10857
10868
|
}
|
|
10858
|
-
}, [_vm._ssrNode("<div class=\"email-blocker-content konecta-box-shadow\" data-v-
|
|
10859
|
-
return "<span data-v-
|
|
10860
|
-
}) : "<span data-v-
|
|
10861
|
-
return "<span data-v-
|
|
10862
|
-
}) : "<span data-v-
|
|
10863
|
-
return "<tr data-v-
|
|
10864
|
-
}) : "<!---->") + " "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<tr data-v-
|
|
10869
|
+
}, [_vm._ssrNode("<div class=\"email-blocker-content konecta-box-shadow\" data-v-c8b609d0>", "</div>", [_vm._ssrNode("<svg fill=\"var(--exit-button-color)\" width=\"18px\" height=\"18px\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\" stroke=\"var(--exit-button-color)\" class=\"btn-exit\" data-v-c8b609d0><g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\" data-v-c8b609d0></g> <g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\" data-v-c8b609d0></g> <g id=\"SVGRepo_iconCarrier\" data-v-c8b609d0><path d=\"M 7.21875 5.78125 L 5.78125 7.21875 L 14.5625 16 L 5.78125 24.78125 L 7.21875 26.21875 L 16 17.4375 L 24.78125 26.21875 L 26.21875 24.78125 L 17.4375 16 L 26.21875 7.21875 L 24.78125 5.78125 L 16 14.5625 Z\" data-v-c8b609d0></path></g></svg> <h1 class=\"email-title\" data-v-c8b609d0>" + _vm._ssrEscape(_vm._s(_vm.assunto ? _vm.replaceUnicodeWithEmoji(_vm.htmlEntityToEmoji(_vm.assunto)) : '(Sem assunto)')) + "</h1> "), _vm._ssrNode("<table class=\"email-content-table\" data-v-c8b609d0>", "</table>", [_vm._ssrNode("<tbody data-v-c8b609d0>", "</tbody>", [_vm._ssrNode("<tr data-v-c8b609d0><th data-v-c8b609d0>\n De:\n </th> <td data-v-c8b609d0>" + (_vm.from && _vm.from.length ? _vm._ssrList(_vm.from, function (sender, index) {
|
|
10870
|
+
return "<span data-v-c8b609d0>" + _vm._ssrEscape("\n " + _vm._s(_vm.formattedName(sender.name, index, _vm.from.length, true)) + "\n " + _vm._s(_vm.formattedMail(sender.mail, index, _vm.from.length, true)) + "\n ") + "</span>";
|
|
10871
|
+
}) : "<span data-v-c8b609d0> -- </span>") + "</td></tr> <tr data-v-c8b609d0><th data-v-c8b609d0>\n Para:\n </th> <td data-v-c8b609d0>" + (_vm.para && _vm.para.length ? _vm._ssrList(_vm.para, function (recipient, index) {
|
|
10872
|
+
return "<span data-v-c8b609d0>" + _vm._ssrEscape("\n " + _vm._s(_vm.formattedToName(recipient.name, index, _vm.para.length)) + "\n " + _vm._s("<" + recipient.mail + ">") + "\n ") + "</span>";
|
|
10873
|
+
}) : "<span data-v-c8b609d0> -- </span>") + "</td></tr> " + (_vm.dataHora ? "<tr data-v-c8b609d0><th data-v-c8b609d0>Data:</th> <td data-v-c8b609d0>" + _vm._ssrEscape(_vm._s(_vm.formataDataHora(_vm.dataHora, true, false)) + " - " + _vm._s(_vm.formattedDate)) + "</td></tr>" : "<!---->") + " " + (_vm.additionalTableData && _vm.additionalTableData.length ? _vm._ssrList(_vm.additionalTableData, function (data, index) {
|
|
10874
|
+
return "<tr data-v-c8b609d0><th data-v-c8b609d0>" + _vm._ssrEscape(_vm._s(data.label)) + "</th> <td data-v-c8b609d0>" + _vm._ssrEscape(_vm._s(data.value)) + "</td></tr>";
|
|
10875
|
+
}) : "<!---->") + " "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<tr data-v-c8b609d0>", "</tr>", [_vm._ssrNode("<th data-v-c8b609d0>Anexos:</th> "), _vm._ssrNode("<td data-v-c8b609d0>", "</td>", [_vm._ssrNode("<div class=\"email-file-content\" data-v-c8b609d0>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
|
|
10865
10876
|
return _c('EmailFile', {
|
|
10866
10877
|
key: index,
|
|
10867
10878
|
attrs: {
|
|
@@ -10869,23 +10880,23 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10869
10880
|
"dominio": _vm.dominio
|
|
10870
10881
|
}
|
|
10871
10882
|
});
|
|
10872
|
-
}), 1)])], 2) : _vm._e()], 2)]), _vm._ssrNode(" <hr class=\"email-divisor\" data-v-
|
|
10883
|
+
}), 1)])], 2) : _vm._e()], 2)]), _vm._ssrNode(" <hr class=\"email-divisor\" data-v-c8b609d0> <div class=\"email-raw-content\" data-v-c8b609d0><h2 data-v-c8b609d0>Mensagem original</h2> <div data-v-c8b609d0>" + _vm._ssrEscape(_vm._s(_vm.html || _vm.mensagem)) + "</div></div>")], 2)]);
|
|
10873
10884
|
};
|
|
10874
10885
|
var __vue_staticRenderFns__ = [];
|
|
10875
10886
|
|
|
10876
10887
|
/* style */
|
|
10877
10888
|
var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
|
|
10878
10889
|
if (!inject) return;
|
|
10879
|
-
inject("data-v-
|
|
10880
|
-
source: ".btn-exit[data-v-
|
|
10890
|
+
inject("data-v-c8b609d0_0", {
|
|
10891
|
+
source: ".btn-exit[data-v-c8b609d0]{cursor:pointer;position:absolute;top:15px;right:15px;z-index:1}.konecta-box-shadow[data-v-c8b609d0]{box-shadow:var(--konecta-box-shadow)}.email-blocker[data-v-c8b609d0]{--konecta-pink:#d54286;--konecta-light:#f8f9fa;--konecta-dark:#212529;--white:#fff;--white-shadow:rgba(255, 255, 255, 0.5);--konecta-box-shadow:0 5px 15px rgba(0, 0, 0, 0.5);--gray-3:#e2e6ea;--exit-button-color:#999;font-family:Roboto,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:99;background-color:var(--white-shadow);overflow:visible}.email-blocker-content[data-v-c8b609d0]{width:90%;height:90%;min-width:300px;min-height:300px;max-width:90%;max-height:90%;overflow:hidden auto;position:relative;background-color:var(--white);color:var(--konecta-dark);border-radius:6px}.email-title[data-v-c8b609d0]{font-size:1.1rem;width:100%;background-color:var(--konecta-light);color:var(--konecta-pink);border-bottom:1px solid var(--gray-3);padding:15px;display:flex;align-items:center;justify-content:space-between;border-top-left-radius:6px;border-top-right-radius:6px;margin:0 0 10px 0;position:relative}.email-content-table[data-v-c8b609d0]{padding:0;margin:0 10px 10px;font-size:.95rem;border-collapse:collapse;width:calc(100% - 20px)}.email-content-table td[data-v-c8b609d0],.email-content-table th[data-v-c8b609d0]{border:solid thin var(--gray-3)}.email-content-table th[data-v-c8b609d0]{min-width:100px;text-align:left;vertical-align:text-top;padding:12px 20px;font-weight:400;border-right:unset}.email-divisor[data-v-c8b609d0]{margin-top:15px;margin-bottom:10px;height:1px;width:100%;background:var(--gray-3);border:unset}.email-content-table td[data-v-c8b609d0]{padding:8px;border-left:unset}.email-raw-content[data-v-c8b609d0]{display:flex;flex-direction:column;gap:10px;padding:0 15px 15px;max-width:100%}.email-raw-content h2[data-v-c8b609d0]{margin:0;padding:0;font-size:1rem}.email-file-content[data-v-c8b609d0]{display:flex;gap:10px;flex-wrap:wrap;align-items:center}",
|
|
10881
10892
|
map: undefined,
|
|
10882
10893
|
media: undefined
|
|
10883
10894
|
});
|
|
10884
10895
|
};
|
|
10885
10896
|
/* scoped */
|
|
10886
|
-
var __vue_scope_id__ = "data-v-
|
|
10897
|
+
var __vue_scope_id__ = "data-v-c8b609d0";
|
|
10887
10898
|
/* module identifier */
|
|
10888
|
-
var __vue_module_identifier__ = "data-v-
|
|
10899
|
+
var __vue_module_identifier__ = "data-v-c8b609d0";
|
|
10889
10900
|
/* functional template */
|
|
10890
10901
|
var __vue_is_functional_template__ = false;
|
|
10891
10902
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -141,11 +141,17 @@ export default {
|
|
|
141
141
|
this.getStandardMessages(cod, this.token_cliente).then((data) => {
|
|
142
142
|
this.loadingReq = false
|
|
143
143
|
if (data) {
|
|
144
|
-
if (data.msg_ret)
|
|
144
|
+
if (data.msg_ret) {
|
|
145
|
+
if (data.error) throw new Error(data.msg_ret)
|
|
146
|
+
|
|
147
|
+
return this.$toasted.global.defaultInfo({ msg: data.msg_ret })
|
|
148
|
+
}
|
|
145
149
|
return this.showFormattedMessage(data, selectionIndex)
|
|
146
150
|
}
|
|
147
151
|
this.$toasted.global.defaultError({ msg: data && data.msg_ret ? data.msg_ret : 'Problema com as mensagens formatadas. Contate o suporte.' })
|
|
148
152
|
this.$emit("error-standard-message")
|
|
153
|
+
this.closeStandardMessages()
|
|
154
|
+
this.loadingReq = false
|
|
149
155
|
}).catch(e => {
|
|
150
156
|
this.loadingReq = false
|
|
151
157
|
this.$toasted.global.defaultError({ msg: e && e.message ? e.message : e })
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:class="`${button.customClass || 'email-custom-action-button'}`" v-tippy :content="button.tippyContent">
|
|
24
24
|
<fa-icon :icon="['fas', button.icon || 'question-circle']" v-if="!button.svgIcon" />
|
|
25
25
|
<span v-else v-html="button.svgIcon" :class="button.svgClass ? button.svgClass : ''"></span>
|
|
26
|
-
<span v-if="button.label" class="email-custom-action-label"></span>
|
|
26
|
+
<span v-if="button.label" class="email-custom-action-label" v-text="button.label"></span>
|
|
27
27
|
</button>
|
|
28
28
|
</div>
|
|
29
29
|
<div class="email-header" @click.stop="toggleIsOpen">
|