vue-intergrall-plugins 0.0.238 → 0.0.241
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 +40 -13
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +42 -17
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +6 -6
- package/src/lib-components/Chat/TextFooter.vue +4 -4
- package/src/lib-components/Messages/ChatMessages.vue +41 -8
- package/src/lib-components/Messages/InteratividadeBotoes.vue +1 -1
|
@@ -3999,7 +3999,7 @@ var script$o = {
|
|
|
3999
3999
|
if (!fileInput) if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError();
|
|
4000
4000
|
},
|
|
4001
4001
|
|
|
4002
|
-
isFileValid(type, fileName) {
|
|
4002
|
+
isFileValid(type, fileName, fileType) {
|
|
4003
4003
|
if (type == "img" && !this.fileSettings.imagesExtensions || type == "doc" && !this.fileSettings.docsExtensions) {
|
|
4004
4004
|
this.$toasted.global.defaultInfo({
|
|
4005
4005
|
msg: this.dictionary.sem_extensoes_parametrizadas
|
|
@@ -4010,7 +4010,7 @@ var script$o = {
|
|
|
4010
4010
|
|
|
4011
4011
|
const extensions = type === "img" ? this.fileSettings.imagesExtensions : this.fileSettings.docsExtensions;
|
|
4012
4012
|
const regex = new RegExp("(" + extensions + ")", "i");
|
|
4013
|
-
if (regex.test(fileName)) return true;
|
|
4013
|
+
if (regex.test(fileName) || regex.test(fileType)) return true;
|
|
4014
4014
|
this.hasAnyFile = false;
|
|
4015
4015
|
this.showToastedValidFormats();
|
|
4016
4016
|
return false;
|
|
@@ -4068,7 +4068,7 @@ var script$o = {
|
|
|
4068
4068
|
|
|
4069
4069
|
if (!this.fileSettings.multiple) {
|
|
4070
4070
|
this.file = this.file[0];
|
|
4071
|
-
this.singleFileUpload(type, this.file.name);
|
|
4071
|
+
this.singleFileUpload(type, this.file.name, this.file.type);
|
|
4072
4072
|
} else {
|
|
4073
4073
|
this.multipleFileUpload();
|
|
4074
4074
|
}
|
|
@@ -4107,7 +4107,7 @@ var script$o = {
|
|
|
4107
4107
|
if (!singleFileType) file.invalid = true;
|
|
4108
4108
|
file.imgOrDoc = singleFileType ? singleFileType : "";
|
|
4109
4109
|
|
|
4110
|
-
if (this.isFileValid(file.imgOrDoc, file.name)) {
|
|
4110
|
+
if (this.isFileValid(file.imgOrDoc, file.name, file.type)) {
|
|
4111
4111
|
if (file.imgOrDoc == "img") {
|
|
4112
4112
|
const fileReader = new FileReader();
|
|
4113
4113
|
waitForImageLoad = true;
|
|
@@ -4140,8 +4140,8 @@ var script$o = {
|
|
|
4140
4140
|
if (this.isDoc && !waitForImageLoad) this.emitFileVars();
|
|
4141
4141
|
},
|
|
4142
4142
|
|
|
4143
|
-
singleFileUpload(type, fileName) {
|
|
4144
|
-
if (this.isFileValid(type, fileName)) {
|
|
4143
|
+
singleFileUpload(type, fileName, fileType) {
|
|
4144
|
+
if (this.isFileValid(type, fileName, fileType)) {
|
|
4145
4145
|
const fileReader = new FileReader();
|
|
4146
4146
|
|
|
4147
4147
|
if (type === "img") {
|
|
@@ -4442,7 +4442,7 @@ var __vue_staticRenderFns__$o = [];
|
|
|
4442
4442
|
|
|
4443
4443
|
const __vue_inject_styles__$o = function (inject) {
|
|
4444
4444
|
if (!inject) return;
|
|
4445
|
-
inject("data-v-
|
|
4445
|
+
inject("data-v-0a31a0c7_0", {
|
|
4446
4446
|
source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:unset;transform:translate(17.5px,-15px);background-color:#888;z-index:1;font-size:.5rem;width:15px;height:15px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .3s;color:#fff;font-weight:900}.files-counter:hover{opacity:1}.files-counter-2{transform:translate(-15px,28px);opacity:.9;position:absolute;display:flex;justify-content:center;align-items:center;color:#888;font-size:.8rem}.files-counter-2 svg{margin-left:5px}.files-counter-2:hover{opacity:1;text-decoration:underline}",
|
|
4447
4447
|
map: undefined,
|
|
4448
4448
|
media: undefined
|
|
@@ -9731,8 +9731,8 @@ var __vue_staticRenderFns__$j = [];
|
|
|
9731
9731
|
|
|
9732
9732
|
const __vue_inject_styles__$j = function (inject) {
|
|
9733
9733
|
if (!inject) return;
|
|
9734
|
-
inject("data-v-
|
|
9735
|
-
source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.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:.875rem;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:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.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:1rem;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:.575rem;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:-
|
|
9734
|
+
inject("data-v-554a3595_0", {
|
|
9735
|
+
source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.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:.875rem;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:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.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:1rem;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:.575rem;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:-20px;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:1rem;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:1rem}.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:1rem;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:.95rem;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}.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:.8rem;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:.8rem;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:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
|
|
9736
9736
|
map: undefined,
|
|
9737
9737
|
media: undefined
|
|
9738
9738
|
});
|
|
@@ -12702,8 +12702,8 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
12702
12702
|
|
|
12703
12703
|
const __vue_inject_styles__$7 = function (inject) {
|
|
12704
12704
|
if (!inject) return;
|
|
12705
|
-
inject("data-v-
|
|
12706
|
-
source: ".show-x-enter-active,.show-x-leave-enter{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter,.show-x-leave-to{opacity:0;transform:translateX(5%)}.interatividade-btn{width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff;color
|
|
12705
|
+
inject("data-v-5ca6dd8a_0", {
|
|
12706
|
+
source: ".show-x-enter-active,.show-x-leave-enter{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter,.show-x-leave-to{opacity:0;transform:translateX(5%)}.interatividade-btn{width:100%;display:flex;justify-content:center;align-items:center;background-color:#fff;color:#111b21;padding:10px 12px;border-radius:5px;margin-bottom:10px}.interatividade-btn:nth-child(1){margin-top:10px}.interatividade-titulo{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape{color:#818181;margin-top:5px}.interatividade-lista-link{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link:hover{color:#00628f}",
|
|
12707
12707
|
map: undefined,
|
|
12708
12708
|
media: undefined
|
|
12709
12709
|
});
|
|
@@ -13065,6 +13065,7 @@ var script$5 = {
|
|
|
13065
13065
|
try {
|
|
13066
13066
|
const root = document.documentElement;
|
|
13067
13067
|
root.style.setProperty('--message-color', this.corMsg);
|
|
13068
|
+
this.adjustFontColor(this.corMsg);
|
|
13068
13069
|
} catch (e) {
|
|
13069
13070
|
console.error("Erro ao atribuir a cor as mensagens");
|
|
13070
13071
|
console.error(e);
|
|
@@ -13104,6 +13105,32 @@ var script$5 = {
|
|
|
13104
13105
|
this.$emit("abrir-imagem", imagem);
|
|
13105
13106
|
},
|
|
13106
13107
|
|
|
13108
|
+
adjustFontColor(cor) {
|
|
13109
|
+
try {
|
|
13110
|
+
let result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(cor);
|
|
13111
|
+
result = result ? {
|
|
13112
|
+
r: parseInt(result[1], 16),
|
|
13113
|
+
g: parseInt(result[2], 16),
|
|
13114
|
+
b: parseInt(result[3], 16)
|
|
13115
|
+
} : null;
|
|
13116
|
+
if (!result) return;
|
|
13117
|
+
const {
|
|
13118
|
+
r,
|
|
13119
|
+
g,
|
|
13120
|
+
b
|
|
13121
|
+
} = result;
|
|
13122
|
+
const rgb = parseInt(`${r}${g}${b}`, 16);
|
|
13123
|
+
const r1 = rgb >> 16 & 0xFF;
|
|
13124
|
+
const g1 = rgb >> 8 & 0xFF;
|
|
13125
|
+
const b1 = rgb & 0xFF;
|
|
13126
|
+
const luma = 0.2126 * r1 + 0.7152 * g1 + 0.0722 * b1;
|
|
13127
|
+
const root = document.documentElement;
|
|
13128
|
+
root.style.setProperty('--text-color', luma < 50 ? "#111B21" : "#FFF");
|
|
13129
|
+
} catch (e) {
|
|
13130
|
+
console.error("Erro ao ajustar a cor da mensagem: ", e);
|
|
13131
|
+
}
|
|
13132
|
+
},
|
|
13133
|
+
|
|
13107
13134
|
formatMsg(msg) {
|
|
13108
13135
|
const regex = /(\n| )/g;
|
|
13109
13136
|
if (regex.test(msg)) msg = msg.replace(regex, "<br>");
|
|
@@ -13401,8 +13428,8 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
13401
13428
|
|
|
13402
13429
|
const __vue_inject_styles__$5 = function (inject) {
|
|
13403
13430
|
if (!inject) return;
|
|
13404
|
-
inject("data-v-
|
|
13405
|
-
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:
|
|
13431
|
+
inject("data-v-10857967_0", {
|
|
13432
|
+
source: ":root{--message-color:#373737;--text-color:#FFF}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius: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:.75rem;word-break:break-word;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mensagem.max-w-60{max-width:60%}.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:var(--text-color)}.mensagem__principal>.mensagem .horario-envio{color:var(--text-color)}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:var(--text-color)}.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:.85em}.info-mapa li.url{font-size:.85em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
|
|
13406
13433
|
map: undefined,
|
|
13407
13434
|
media: undefined
|
|
13408
13435
|
});
|