vue-intergrall-plugins 0.0.198 → 0.0.201
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 +29 -19
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +31 -22
- package/package.json +1 -1
- package/src/lib-components/Messages/AnexoMensagem.vue +4 -0
- package/src/lib-components/Messages/ChatMessages.vue +1 -1
- package/src/lib-components/Messages/LinkPreview.vue +15 -9
|
@@ -8269,7 +8269,10 @@ axios_1.default = _default;
|
|
|
8269
8269
|
var axios = axios_1;
|
|
8270
8270
|
|
|
8271
8271
|
vue.prototype.$httpRequest = axios;
|
|
8272
|
-
const
|
|
8272
|
+
const domain = window.location.hostname == 'localhost' ? `https://linux07` : `https://${window.location.hostname}` + "/im";
|
|
8273
|
+
const route = `/im/smartChannel/v1/api.php/`; // const route = `atdHumano/middleware/smartchannel_api.php`
|
|
8274
|
+
|
|
8275
|
+
const baseURL = `${domain}${route}`;
|
|
8273
8276
|
const dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';
|
|
8274
8277
|
|
|
8275
8278
|
const standardMessages = {
|
|
@@ -8279,7 +8282,7 @@ const standardMessages = {
|
|
|
8279
8282
|
return this.$httpRequest({
|
|
8280
8283
|
method: 'get',
|
|
8281
8284
|
url: `${baseURL}/messages/${type}?token_cliente=${token}${dev}` // headers: {
|
|
8282
|
-
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
8285
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1UzakpwZmViWkc1Y1M4dm9rRnBOdFY2WEYxaTh0ZllLWEkzV0ljRTd0M0dxeSIsIm1hbmFnZXIiOiJNS1VxQnBrRlIzQk5ING02Q2J3d2ltNGw1d3dJd3d4YjQ0YXd3aFk1VXd3aW00bDV3d2szSWZJV2RGc2dFRjhjdEhoOVB2eCIsImhhc19pbmZvcyI6dHJ1ZSwibnJvcyI6WyIyOCJdLCJhdXRoIjoiTUtVYXNtV3NNSnpZdmV2R2VQYTRubkZqdHRWR3gxODl6RnRWNDVtVUdFN1JlazAiLCJpYXQiOjE2NDg2NTkwNjQsImV4cCI6MTY0ODc0NTQ2NH0.vdwahP7qSwLJ8qYdQsG-ydL1Y-tzf6Frt0rnd9fYpIU"
|
|
8283
8286
|
// }
|
|
8284
8287
|
|
|
8285
8288
|
}).then(response => {
|
|
@@ -11884,7 +11887,11 @@ var script$6 = {
|
|
|
11884
11887
|
},
|
|
11885
11888
|
|
|
11886
11889
|
validarAnexo() {
|
|
11887
|
-
let status = true;
|
|
11890
|
+
let status = true; //caso for audio ou documento ignorar
|
|
11891
|
+
|
|
11892
|
+
if (this.anexo.docAnexo || this.anexo.audio) {
|
|
11893
|
+
return true;
|
|
11894
|
+
}
|
|
11888
11895
|
|
|
11889
11896
|
if (!this.anexo.name) {
|
|
11890
11897
|
this.imgMsgErro = this.dictionary.img_com_erro_nome;
|
|
@@ -12076,8 +12083,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
12076
12083
|
|
|
12077
12084
|
const __vue_inject_styles__$6 = function (inject) {
|
|
12078
12085
|
if (!inject) return;
|
|
12079
|
-
inject("data-v-
|
|
12080
|
-
source: ".fade-enter-active[data-v-
|
|
12086
|
+
inject("data-v-19808158_0", {
|
|
12087
|
+
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}",
|
|
12081
12088
|
map: undefined,
|
|
12082
12089
|
media: undefined
|
|
12083
12090
|
});
|
|
@@ -12085,7 +12092,7 @@ const __vue_inject_styles__$6 = function (inject) {
|
|
|
12085
12092
|
/* scoped */
|
|
12086
12093
|
|
|
12087
12094
|
|
|
12088
|
-
const __vue_scope_id__$6 = "data-v-
|
|
12095
|
+
const __vue_scope_id__$6 = "data-v-19808158";
|
|
12089
12096
|
/* module identifier */
|
|
12090
12097
|
|
|
12091
12098
|
const __vue_module_identifier__$6 = undefined;
|
|
@@ -12318,7 +12325,7 @@ var script$4 = {
|
|
|
12318
12325
|
const response = await this.$httpRequest({
|
|
12319
12326
|
method: 'get',
|
|
12320
12327
|
url: `${baseURL}/preview?url=${encodedURL}${dev}` // headers: {
|
|
12321
|
-
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
12328
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
|
|
12322
12329
|
// }
|
|
12323
12330
|
|
|
12324
12331
|
});
|
|
@@ -12349,7 +12356,7 @@ var script$4 = {
|
|
|
12349
12356
|
author
|
|
12350
12357
|
} = og;
|
|
12351
12358
|
if (image) this.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
|
|
12352
|
-
if (author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name :
|
|
12359
|
+
if (author || site_name || title) this.linkPreview.author = title ? title : author ? author : site_name ? site_name : "";
|
|
12353
12360
|
if (og.description) this.linkPreview.description = og.description;
|
|
12354
12361
|
}
|
|
12355
12362
|
|
|
@@ -12399,7 +12406,10 @@ var __vue_render__$4 = function () {
|
|
|
12399
12406
|
"alt": "Imagem referente ao link"
|
|
12400
12407
|
}
|
|
12401
12408
|
})]) : _vm._e(), _vm._v(" "), _vm.linkPreview.author ? _c('div', {
|
|
12402
|
-
staticClass: "link-preview-author"
|
|
12409
|
+
staticClass: "link-preview-author",
|
|
12410
|
+
class: {
|
|
12411
|
+
'mb-0': _vm.linkPreview.description
|
|
12412
|
+
}
|
|
12403
12413
|
}, [_c('h1', {
|
|
12404
12414
|
domProps: {
|
|
12405
12415
|
"textContent": _vm._s(_vm.linkPreview.author)
|
|
@@ -12418,8 +12428,8 @@ var __vue_staticRenderFns__$4 = [];
|
|
|
12418
12428
|
|
|
12419
12429
|
const __vue_inject_styles__$4 = function (inject) {
|
|
12420
12430
|
if (!inject) return;
|
|
12421
|
-
inject("data-v-
|
|
12422
|
-
source: ".link-preview[data-v-
|
|
12431
|
+
inject("data-v-0ab9360e_0", {
|
|
12432
|
+
source: ".link-preview[data-v-0ab9360e]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin:5px 0;border-radius:5px;opacity:.95;transition:opacity .3s ease-in-out;font-size:.85rem}.link-preview-image[data-v-0ab9360e]{display:flex;justify-content:center;align-items:center;padding:1px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-author[data-v-0ab9360e]{margin:5px;font-size:.615em;font-weight:700}.link-preview-author.mb-0[data-v-0ab9360e]{margin-bottom:0}.link-preview-author h1[data-v-0ab9360e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-0ab9360e]{min-width:100px;max-width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-infos[data-v-0ab9360e]{background-color:#2626261a;padding:5px;margin:5px;font-size:.83em;border-radius:5px}.link-preview[data-v-0ab9360e]:hover{opacity:1}.link-preview:hover .link-preview-infos p[data-v-0ab9360e]{text-decoration:underline}",
|
|
12423
12433
|
map: undefined,
|
|
12424
12434
|
media: undefined
|
|
12425
12435
|
});
|
|
@@ -12427,7 +12437,7 @@ const __vue_inject_styles__$4 = function (inject) {
|
|
|
12427
12437
|
/* scoped */
|
|
12428
12438
|
|
|
12429
12439
|
|
|
12430
|
-
const __vue_scope_id__$4 = "data-v-
|
|
12440
|
+
const __vue_scope_id__$4 = "data-v-0ab9360e";
|
|
12431
12441
|
/* module identifier */
|
|
12432
12442
|
|
|
12433
12443
|
const __vue_module_identifier__$4 = undefined;
|
|
@@ -12669,11 +12679,7 @@ var __vue_render__$3 = function () {
|
|
|
12669
12679
|
mapa: _vm.mapa,
|
|
12670
12680
|
'hist-msg': _vm.histMsg
|
|
12671
12681
|
}
|
|
12672
|
-
}, [_vm.
|
|
12673
|
-
attrs: {
|
|
12674
|
-
"message": _vm.message
|
|
12675
|
-
}
|
|
12676
|
-
}) : _vm._e(), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
|
|
12682
|
+
}, [_vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
|
|
12677
12683
|
return _c('div', {
|
|
12678
12684
|
key: index,
|
|
12679
12685
|
staticClass: "mensagem-anexo"
|
|
@@ -12729,7 +12735,11 @@ var __vue_render__$3 = function () {
|
|
|
12729
12735
|
"icon": ['fas', 'map-marker-alt']
|
|
12730
12736
|
}
|
|
12731
12737
|
})], 1)], 2);
|
|
12732
|
-
}), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('
|
|
12738
|
+
}), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.link && !_vm.mapa ? _c('LinkPreview', {
|
|
12739
|
+
attrs: {
|
|
12740
|
+
"message": _vm.message
|
|
12741
|
+
}
|
|
12742
|
+
}) : _vm._e(), _vm._v(" "), _c('p', {
|
|
12733
12743
|
domProps: {
|
|
12734
12744
|
"innerHTML": _vm._s(_vm.validateInterativity() ? '' : _vm.formatMsg(_vm.message))
|
|
12735
12745
|
}
|
|
@@ -12926,7 +12936,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
12926
12936
|
|
|
12927
12937
|
const __vue_inject_styles__$3 = function (inject) {
|
|
12928
12938
|
if (!inject) return;
|
|
12929
|
-
inject("data-v-
|
|
12939
|
+
inject("data-v-257d4492_0", {
|
|
12930
12940
|
source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
|
|
12931
12941
|
map: undefined,
|
|
12932
12942
|
media: undefined
|