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
|
@@ -4814,22 +4814,23 @@ const __vue_component__$x = /*#__PURE__*/normalizeComponent({
|
|
|
4814
4814
|
}, __vue_inject_styles__$o, __vue_script__$o, __vue_scope_id__$o, __vue_is_functional_template__$o, __vue_module_identifier__$o, false, undefined, undefined, undefined);
|
|
4815
4815
|
var RemainingCharacters = __vue_component__$x;
|
|
4816
4816
|
|
|
4817
|
-
const domain = window.location.hostname ==
|
|
4817
|
+
const domain = window.location.hostname == "localhost" ? `https://linux07` : `https://${window.location.hostname}` + "/im";
|
|
4818
4818
|
const route = `/smartChannel/v1/api.php`;
|
|
4819
4819
|
// const route = `atdHumano/middleware/smartchannel_api.php`
|
|
4820
4820
|
|
|
4821
4821
|
const baseURL = `${domain}${route}`;
|
|
4822
|
-
const dev = window.location.hostname ==
|
|
4822
|
+
const dev = window.location.hostname == "localhost" ? "&teste=eloteste" : "";
|
|
4823
4823
|
|
|
4824
4824
|
const standardMessages = {
|
|
4825
4825
|
methods: {
|
|
4826
4826
|
async getStandardMessages(type, token) {
|
|
4827
|
-
const url = `${baseURL}/messages/${type}?token_cliente=${token}${dev}`;
|
|
4827
|
+
const url = `${baseURL}/messages/${type}?token_cliente=${token}${this.$root.$reqTeste || dev}`;
|
|
4828
4828
|
if (!this.$root.$httpRequest) return false;
|
|
4829
4829
|
try {
|
|
4830
4830
|
const response = await this.$root.$httpRequest.get(url);
|
|
4831
4831
|
if (typeof response != "object" || typeof response.data != "object") return {
|
|
4832
|
-
msg_ret:
|
|
4832
|
+
msg_ret: "Retorno incorreto das mensagens formatadas",
|
|
4833
|
+
error: true
|
|
4833
4834
|
};
|
|
4834
4835
|
const {
|
|
4835
4836
|
data
|
|
@@ -4841,22 +4842,27 @@ const standardMessages = {
|
|
|
4841
4842
|
msg_ret,
|
|
4842
4843
|
st_ret
|
|
4843
4844
|
} = data;
|
|
4844
|
-
if (tipo) this.$emit(
|
|
4845
|
-
if (st_ret ===
|
|
4845
|
+
if (tipo) this.$emit("set-message-type", tipo);
|
|
4846
|
+
if (st_ret === "OK") {
|
|
4846
4847
|
return conteudo ? conteudo : nivel;
|
|
4847
|
-
} else if (st_ret ===
|
|
4848
|
+
} else if (st_ret === "AVISO") {
|
|
4848
4849
|
return {
|
|
4849
4850
|
msg_ret
|
|
4850
4851
|
};
|
|
4851
4852
|
} else {
|
|
4852
4853
|
return msg_ret ? {
|
|
4853
|
-
msg_ret
|
|
4854
|
-
|
|
4854
|
+
msg_ret,
|
|
4855
|
+
error: true
|
|
4856
|
+
} : {
|
|
4857
|
+
msg_ret: "Erro ao buscar mensagens formatadas",
|
|
4858
|
+
error: true
|
|
4859
|
+
};
|
|
4855
4860
|
}
|
|
4856
4861
|
} catch (error) {
|
|
4857
4862
|
console.error("Erro na requisicao para o servidor (2)", error);
|
|
4858
4863
|
return {
|
|
4859
|
-
msg_ret: error.message ? error.message : error
|
|
4864
|
+
msg_ret: error.message ? error.message : error,
|
|
4865
|
+
error: true
|
|
4860
4866
|
};
|
|
4861
4867
|
}
|
|
4862
4868
|
}
|
|
@@ -4948,15 +4954,20 @@ var script$n = {
|
|
|
4948
4954
|
this.getStandardMessages(cod, this.token_cliente).then(data => {
|
|
4949
4955
|
this.loadingReq = false;
|
|
4950
4956
|
if (data) {
|
|
4951
|
-
if (data.msg_ret)
|
|
4952
|
-
|
|
4953
|
-
|
|
4957
|
+
if (data.msg_ret) {
|
|
4958
|
+
if (data.error) throw new Error(data.msg_ret);
|
|
4959
|
+
return this.$toasted.global.defaultInfo({
|
|
4960
|
+
msg: data.msg_ret
|
|
4961
|
+
});
|
|
4962
|
+
}
|
|
4954
4963
|
return this.showFormattedMessage(data, selectionIndex);
|
|
4955
4964
|
}
|
|
4956
4965
|
this.$toasted.global.defaultError({
|
|
4957
4966
|
msg: data && data.msg_ret ? data.msg_ret : 'Problema com as mensagens formatadas. Contate o suporte.'
|
|
4958
4967
|
});
|
|
4959
4968
|
this.$emit("error-standard-message");
|
|
4969
|
+
this.closeStandardMessages();
|
|
4970
|
+
this.loadingReq = false;
|
|
4960
4971
|
}).catch(e => {
|
|
4961
4972
|
this.loadingReq = false;
|
|
4962
4973
|
this.$toasted.global.defaultError({
|
|
@@ -5152,7 +5163,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
5152
5163
|
/* style */
|
|
5153
5164
|
const __vue_inject_styles__$n = function (inject) {
|
|
5154
5165
|
if (!inject) return;
|
|
5155
|
-
inject("data-v-
|
|
5166
|
+
inject("data-v-7abf5d83_0", {
|
|
5156
5167
|
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}",
|
|
5157
5168
|
map: undefined,
|
|
5158
5169
|
media: undefined
|
|
@@ -11353,7 +11364,10 @@ var __vue_render__$1 = function () {
|
|
|
11353
11364
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11354
11365
|
}
|
|
11355
11366
|
}), _vm._v(" "), button.label ? _c('span', {
|
|
11356
|
-
staticClass: "email-custom-action-label"
|
|
11367
|
+
staticClass: "email-custom-action-label",
|
|
11368
|
+
domProps: {
|
|
11369
|
+
"textContent": _vm._s(button.label)
|
|
11370
|
+
}
|
|
11357
11371
|
}) : _vm._e()], 1);
|
|
11358
11372
|
}), 0) : _vm._e(), _vm._v(" "), _c('div', {
|
|
11359
11373
|
staticClass: "email-header",
|
|
@@ -11541,18 +11555,18 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
11541
11555
|
/* style */
|
|
11542
11556
|
const __vue_inject_styles__$1 = function (inject) {
|
|
11543
11557
|
if (!inject) return;
|
|
11544
|
-
inject("data-v-
|
|
11545
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11558
|
+
inject("data-v-64f18177_0", {
|
|
11559
|
+
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%)}",
|
|
11546
11560
|
map: undefined,
|
|
11547
11561
|
media: undefined
|
|
11548
|
-
}), inject("data-v-
|
|
11562
|
+
}), inject("data-v-64f18177_1", {
|
|
11549
11563
|
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}",
|
|
11550
11564
|
map: undefined,
|
|
11551
11565
|
media: undefined
|
|
11552
11566
|
});
|
|
11553
11567
|
};
|
|
11554
11568
|
/* scoped */
|
|
11555
|
-
const __vue_scope_id__$1 = "data-v-
|
|
11569
|
+
const __vue_scope_id__$1 = "data-v-64f18177";
|
|
11556
11570
|
/* module identifier */
|
|
11557
11571
|
const __vue_module_identifier__$1 = undefined;
|
|
11558
11572
|
/* functional template */
|
|
@@ -11739,14 +11753,14 @@ var __vue_staticRenderFns__ = [];
|
|
|
11739
11753
|
/* style */
|
|
11740
11754
|
const __vue_inject_styles__ = function (inject) {
|
|
11741
11755
|
if (!inject) return;
|
|
11742
|
-
inject("data-v-
|
|
11743
|
-
source: ".btn-exit[data-v-
|
|
11756
|
+
inject("data-v-c8b609d0_0", {
|
|
11757
|
+
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}",
|
|
11744
11758
|
map: undefined,
|
|
11745
11759
|
media: undefined
|
|
11746
11760
|
});
|
|
11747
11761
|
};
|
|
11748
11762
|
/* scoped */
|
|
11749
|
-
const __vue_scope_id__ = "data-v-
|
|
11763
|
+
const __vue_scope_id__ = "data-v-c8b609d0";
|
|
11750
11764
|
/* module identifier */
|
|
11751
11765
|
const __vue_module_identifier__ = undefined;
|
|
11752
11766
|
/* functional template */
|