vue-intergrall-plugins 1.0.19 → 1.0.21
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 +61 -31
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +64 -36
- package/package.json +1 -1
- package/src/lib-components/Chat/StandardMessages.vue +62 -65
- package/src/lib-components/Chat/TextFooter.vue +8 -1
- package/src/lib-components/Messages/LinkPreview.vue +15 -24
|
@@ -4902,32 +4902,42 @@ const dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';
|
|
|
4902
4902
|
const standardMessages = {
|
|
4903
4903
|
methods: {
|
|
4904
4904
|
async getStandardMessages(type, token) {
|
|
4905
|
+
const url = `${baseURL}/messages/${type}?token_cliente=${token}${dev}`;
|
|
4905
4906
|
try {
|
|
4906
|
-
|
|
4907
|
-
method: '
|
|
4908
|
-
url: `${baseURL}/messages/${type}?token_cliente=${token}${dev}`
|
|
4907
|
+
const response = await fetch(url, {
|
|
4908
|
+
method: 'GET'
|
|
4909
4909
|
// headers: {
|
|
4910
4910
|
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VUUnd3aW00bDV3d0piTHczb2xPYWtTbWxab283Q1F2MDY3V3pWR2E3VkhDQ2FMUEdsS2VQIiwibWFuYWdlciI6Ik1LVXFCcGtGUjNCTkhrbTZ5Znd3aW00bDV3d0l2Tlk0MDZrMzQ3SVdkRnNnRUY4Y3RIaDlQdngiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOltdLCJhdXRoIjoiTUtVdXdGZjdjMXd3eGI0NGF3d1F4eGlia3N2NW5YR2FxOWZVNkxMYnAzQ0tkS1NHa0RvbWV4ZiIsImlhdCI6MTY0ODgxMjYzOSwiZXhwIjoxNjQ4ODk5MDM5fQ.IMpYYLoxiX566-Y2fqNlJu0qBkEyOOTWZ25UqeOyPUs"
|
|
4911
4911
|
// }
|
|
4912
|
-
})
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4912
|
+
});
|
|
4913
|
+
if (!response.ok) {
|
|
4914
|
+
console.error('Erro na requisicao para o servidor (1)', response.statusText);
|
|
4915
|
+
return false;
|
|
4916
|
+
}
|
|
4917
|
+
const value = await response.json();
|
|
4918
|
+
const {
|
|
4919
|
+
data
|
|
4920
|
+
} = value;
|
|
4921
|
+
const {
|
|
4922
|
+
tipo,
|
|
4923
|
+
nivel,
|
|
4924
|
+
conteudo,
|
|
4925
|
+
msg_ret,
|
|
4926
|
+
st_ret
|
|
4927
|
+
} = data;
|
|
4928
|
+
if (tipo) this.$emit('set-message-type', tipo);
|
|
4929
|
+
if (st_ret === 'OK') {
|
|
4930
|
+
return conteudo ? conteudo : nivel;
|
|
4931
|
+
} else if (st_ret === 'AVISO') {
|
|
4932
|
+
return {
|
|
4925
4933
|
msg_ret
|
|
4926
|
-
}
|
|
4927
|
-
}
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4934
|
+
};
|
|
4935
|
+
} else {
|
|
4936
|
+
return false;
|
|
4937
|
+
}
|
|
4938
|
+
} catch (error) {
|
|
4939
|
+
console.error("Erro na requisicao para o servidor (2)", error);
|
|
4940
|
+
return false;
|
|
4931
4941
|
}
|
|
4932
4942
|
}
|
|
4933
4943
|
}
|
|
@@ -5021,9 +5031,11 @@ var script$l = {
|
|
|
5021
5031
|
if (data.msg_ret) return this.$toasted.global.defaultInfo({
|
|
5022
5032
|
msg: data.msg_ret
|
|
5023
5033
|
});
|
|
5024
|
-
|
|
5034
|
+
return this.showFormattedMessage(data, selectionIndex);
|
|
5025
5035
|
}
|
|
5026
|
-
this.$toasted.global.defaultError(
|
|
5036
|
+
this.$toasted.global.defaultError({
|
|
5037
|
+
msg: 'Problema com as mensagens formatadas. Contate o suporte.'
|
|
5038
|
+
});
|
|
5027
5039
|
this.$emit("error-standard-message");
|
|
5028
5040
|
}).catch(e => {
|
|
5029
5041
|
this.loadingReq = false;
|
|
@@ -5220,7 +5232,7 @@ var __vue_staticRenderFns__$l = [];
|
|
|
5220
5232
|
/* style */
|
|
5221
5233
|
const __vue_inject_styles__$l = function (inject) {
|
|
5222
5234
|
if (!inject) return;
|
|
5223
|
-
inject("data-v-
|
|
5235
|
+
inject("data-v-5427991a_0", {
|
|
5224
5236
|
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}",
|
|
5225
5237
|
map: undefined,
|
|
5226
5238
|
media: undefined
|
|
@@ -5822,7 +5834,7 @@ var __vue_render__$k = function () {
|
|
|
5822
5834
|
"message": _vm.message,
|
|
5823
5835
|
"maxCharacters": _vm.textareaSettings.maxCharacters
|
|
5824
5836
|
}
|
|
5825
|
-
}), _vm._v(" "), _vm.buttons.hasFiles || _vm.buttons.hasAudio || _vm.buttons.hasExpand || _vm.formattedMessageSettings.hasStandardMessages || _vm.buttons.hasScreenShare || _vm.buttons.hasDownloadAll ? _c('div', {
|
|
5837
|
+
}), _vm._v(" "), _vm.buttons.hasFiles || _vm.buttons.hasAudio || _vm.buttons.hasExpand || _vm.formattedMessageSettings.hasStandardMessages || _vm.buttons.hasScreenShare || _vm.buttons.hasDownloadAll || _vm.buttons.hasCustomButtom ? _c('div', {
|
|
5826
5838
|
staticClass: "text-footer-actions",
|
|
5827
5839
|
class: {
|
|
5828
5840
|
'outside-buttons': _vm.cssStyle.outsideButtons && !_vm.audioFile
|
|
@@ -5929,7 +5941,26 @@ var __vue_render__$k = function () {
|
|
|
5929
5941
|
return _vm.$emit('expand-textarea');
|
|
5930
5942
|
}
|
|
5931
5943
|
}
|
|
5932
|
-
})
|
|
5944
|
+
}), _vm._v(" "), _vm.buttons.customButtom && _vm.buttons.customButtom.use ? _c('div', {
|
|
5945
|
+
staticClass: "text-footer-actions--btn",
|
|
5946
|
+
attrs: {
|
|
5947
|
+
"title": _vm.buttons.customButtom.title
|
|
5948
|
+
},
|
|
5949
|
+
on: {
|
|
5950
|
+
"click": function () {
|
|
5951
|
+
if (_vm.buttons.customButtom.callback) {
|
|
5952
|
+
_vm.buttons.customButtom.callback();
|
|
5953
|
+
}
|
|
5954
|
+
if (_vm.buttons.customButtom.emiter) {
|
|
5955
|
+
_vm.$emit(_vm.buttons.customButtom.emiter);
|
|
5956
|
+
}
|
|
5957
|
+
}
|
|
5958
|
+
}
|
|
5959
|
+
}, [_c('fa-icon', {
|
|
5960
|
+
attrs: {
|
|
5961
|
+
"icon": _vm.buttons.customButtom.icon
|
|
5962
|
+
}
|
|
5963
|
+
})], 1) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.buttons.hasSendButton ? _c('div', {
|
|
5933
5964
|
staticClass: "text-footer-actions"
|
|
5934
5965
|
}, [_c('span', {
|
|
5935
5966
|
staticClass: "text-footer-actions--btn",
|
|
@@ -5975,7 +6006,7 @@ var __vue_staticRenderFns__$k = [];
|
|
|
5975
6006
|
/* style */
|
|
5976
6007
|
const __vue_inject_styles__$k = function (inject) {
|
|
5977
6008
|
if (!inject) return;
|
|
5978
|
-
inject("data-v-
|
|
6009
|
+
inject("data-v-773f5b8e_0", {
|
|
5979
6010
|
source: ".text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:14px;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:14px;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:12px}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:16px;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:9.2px;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-30px;right:35px;background-color:#fafafa}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:16px;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:16px}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:16px;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349;margin-left:5px}.text-footer-container .text-footer-files-container .files-btn.both{font-size:15.2px;background-color:#5555ec;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(1){transform:translateX(5px)}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(2){transform:translateX(-5px)}.text-footer-container .text-footer-preview-container{width:100%;cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px;min-width:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:12.8px;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:12.8px;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:13.6px!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
|
|
5980
6011
|
map: undefined,
|
|
5981
6012
|
media: undefined
|
|
@@ -9140,9 +9171,8 @@ var script$6 = {
|
|
|
9140
9171
|
const url = this.returnURL();
|
|
9141
9172
|
if (!url) return;
|
|
9142
9173
|
const encodedURL = Buffer(url).toString("base64");
|
|
9143
|
-
const response = await fetch({
|
|
9144
|
-
method: "get"
|
|
9145
|
-
url: `${baseURL}/preview?url=${encodedURL}${dev}`
|
|
9174
|
+
const response = await fetch(`${baseURL}/preview?url=${encodedURL}${dev}`, {
|
|
9175
|
+
method: "get"
|
|
9146
9176
|
// headers: {
|
|
9147
9177
|
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
|
|
9148
9178
|
// }
|
|
@@ -9238,7 +9268,7 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
9238
9268
|
/* style */
|
|
9239
9269
|
const __vue_inject_styles__$6 = function (inject) {
|
|
9240
9270
|
if (!inject) return;
|
|
9241
|
-
inject("data-v-
|
|
9271
|
+
inject("data-v-2e1c7e66_0", {
|
|
9242
9272
|
source: ".link-preview{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:13.6px}.link-preview-image{display:flex;justify-content:center;align-items:center;padding:1px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-author{margin:5px;font-size:.615em;font-weight:700}.link-preview-author.mb-0{margin-bottom:0}.link-preview-author h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img{min-width:100px;max-width:200px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-infos{background-color:#2626261a;padding:5px;margin:5px;font-size:.83em;border-radius:5px}.link-preview:hover{opacity:1}.link-preview:hover .link-preview-infos p{text-decoration:underline}",
|
|
9243
9273
|
map: undefined,
|
|
9244
9274
|
media: undefined
|