vue-intergrall-plugins 0.0.199 → 0.0.202
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.
|
@@ -7779,7 +7779,10 @@ var axios_1 = axios$1;
|
|
|
7779
7779
|
// Allow use of default import syntax in TypeScript
|
|
7780
7780
|
var _default = axios$1;
|
|
7781
7781
|
axios_1.default = _default;var axios = axios_1;vue__default["default"].prototype.$httpRequest = axios;
|
|
7782
|
-
var
|
|
7782
|
+
var domain = window.location.hostname == 'localhost' ? "https://linux07" : "https://".concat(window.location.hostname) + "/im";
|
|
7783
|
+
var route = "/im/smartChannel/v1/api.php"; // const route = `atdHumano/middleware/smartchannel_api.php`
|
|
7784
|
+
|
|
7785
|
+
var baseURL = "".concat(domain).concat(route);
|
|
7783
7786
|
var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var standardMessages = {
|
|
7784
7787
|
methods: {
|
|
7785
7788
|
getStandardMessages: function getStandardMessages(type, token) {
|
|
@@ -7794,7 +7797,7 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
7794
7797
|
return _context.abrupt("return", _this.$httpRequest({
|
|
7795
7798
|
method: 'get',
|
|
7796
7799
|
url: "".concat(baseURL, "/messages/").concat(type, "?token_cliente=").concat(token).concat(dev) // headers: {
|
|
7797
|
-
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
7800
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1UzakpwZmViWkc1Y1M4dm9rRnBOdFY2WEYxaTh0ZllLWEkzV0ljRTd0M0dxeSIsIm1hbmFnZXIiOiJNS1VxQnBrRlIzQk5ING02Q2J3d2ltNGw1d3dJd3d4YjQ0YXd3aFk1VXd3aW00bDV3d2szSWZJV2RGc2dFRjhjdEhoOVB2eCIsImhhc19pbmZvcyI6dHJ1ZSwibnJvcyI6WyIyOCJdLCJhdXRoIjoiTUtVYXNtV3NNSnpZdmV2R2VQYTRubkZqdHRWR3gxODl6RnRWNDVtVUdFN1JlazAiLCJpYXQiOjE2NDg2NTkwNjQsImV4cCI6MTY0ODc0NTQ2NH0.vdwahP7qSwLJ8qYdQsG-ydL1Y-tzf6Frt0rnd9fYpIU"
|
|
7798
7801
|
// }
|
|
7799
7802
|
|
|
7800
7803
|
}).then(function (response) {
|
|
@@ -7921,6 +7924,9 @@ var script$i = {
|
|
|
7921
7924
|
_this.$toasted.global.defaultError();
|
|
7922
7925
|
}).catch(function (e) {
|
|
7923
7926
|
_this.loadingReq = false;
|
|
7927
|
+
|
|
7928
|
+
_this.$toasted.global.defaultError();
|
|
7929
|
+
|
|
7924
7930
|
console.error("Error in getStandardMessages: ", e);
|
|
7925
7931
|
});
|
|
7926
7932
|
} catch (e) {
|
|
@@ -8144,7 +8150,7 @@ var __vue_staticRenderFns__$i = [];
|
|
|
8144
8150
|
|
|
8145
8151
|
var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
8146
8152
|
if (!inject) return;
|
|
8147
|
-
inject("data-v-
|
|
8153
|
+
inject("data-v-d7521b32_0", {
|
|
8148
8154
|
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}",
|
|
8149
8155
|
map: undefined,
|
|
8150
8156
|
media: undefined
|
|
@@ -8156,7 +8162,7 @@ var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
|
8156
8162
|
var __vue_scope_id__$i = undefined;
|
|
8157
8163
|
/* module identifier */
|
|
8158
8164
|
|
|
8159
|
-
var __vue_module_identifier__$i = "data-v-
|
|
8165
|
+
var __vue_module_identifier__$i = "data-v-d7521b32";
|
|
8160
8166
|
/* functional template */
|
|
8161
8167
|
|
|
8162
8168
|
var __vue_is_functional_template__$i = false;
|
|
@@ -10876,7 +10882,11 @@ var script$6 = {
|
|
|
10876
10882
|
}
|
|
10877
10883
|
},
|
|
10878
10884
|
validarAnexo: function validarAnexo() {
|
|
10879
|
-
var status = true;
|
|
10885
|
+
var status = true; //caso for audio ou documento ignorar
|
|
10886
|
+
|
|
10887
|
+
if (this.anexo.docAnexo || this.anexo.audio) {
|
|
10888
|
+
return true;
|
|
10889
|
+
}
|
|
10880
10890
|
|
|
10881
10891
|
if (!this.anexo.name) {
|
|
10882
10892
|
this.imgMsgErro = this.dictionary.img_com_erro_nome;
|
|
@@ -11064,8 +11074,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
11064
11074
|
|
|
11065
11075
|
var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
11066
11076
|
if (!inject) return;
|
|
11067
|
-
inject("data-v-
|
|
11068
|
-
source: ".fade-enter-active[data-v-
|
|
11077
|
+
inject("data-v-19808158_0", {
|
|
11078
|
+
source: ".fade-enter-active[data-v-19808158],.fade-leave-active[data-v-19808158]{transition:opacity .5s}.fade-enter[data-v-19808158],.fade-leave-to[data-v-19808158]{opacity:0}.mensagem-div-anexo[data-v-19808158]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-19808158]{width:100%;margin-top:5px}.anexo-container .arquivo-erro[data-v-19808158],.anexo-container a[data-v-19808158]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container .arquivo-erro[data-v-19808158],.anexo-container p[data-v-19808158]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-19808158]{font-size:2rem}.anexo-container audio[data-v-19808158]{outline:0;width:100%}.anexo-container video[data-v-19808158]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-19808158]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-19808158]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.anexos-links-container svg[data-v-19808158]{cursor:pointer}.mensagem-div-anexo img[data-v-19808158]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-19808158]{width:100%;height:100%}.anexo-mensagem[data-v-19808158]{display:flex;justify-content:center;align-items:center;flex-direction:column}.alert-danger[data-v-19808158]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-19808158]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-19808158]{font-size:1.025em;margin-right:2px}",
|
|
11069
11079
|
map: undefined,
|
|
11070
11080
|
media: undefined
|
|
11071
11081
|
});
|
|
@@ -11073,10 +11083,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
|
11073
11083
|
/* scoped */
|
|
11074
11084
|
|
|
11075
11085
|
|
|
11076
|
-
var __vue_scope_id__$6 = "data-v-
|
|
11086
|
+
var __vue_scope_id__$6 = "data-v-19808158";
|
|
11077
11087
|
/* module identifier */
|
|
11078
11088
|
|
|
11079
|
-
var __vue_module_identifier__$6 = "data-v-
|
|
11089
|
+
var __vue_module_identifier__$6 = "data-v-19808158";
|
|
11080
11090
|
/* functional template */
|
|
11081
11091
|
|
|
11082
11092
|
var __vue_is_functional_template__$6 = false;
|
package/package.json
CHANGED
|
@@ -119,6 +119,10 @@ export default {
|
|
|
119
119
|
},
|
|
120
120
|
validarAnexo(){
|
|
121
121
|
let status = true;
|
|
122
|
+
//caso for audio ou documento ignorar
|
|
123
|
+
if(this.anexo.docAnexo || this.anexo.audio){
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
122
126
|
if(!this.anexo.name){
|
|
123
127
|
this.imgMsgErro = this.dictionary.img_com_erro_nome
|
|
124
128
|
status = false;
|