vue-intergrall-plugins 0.0.209 → 0.0.210
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/README.md +9 -2
- package/dist/vue-intergrall-plugins.esm.js +106 -35
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +112 -48
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +47 -22
- package/src/lib-components/Chat/MultipleFilePreview.vue +20 -7
- package/src/lib-components/Chat/SingleFilePreview.vue +2 -2
- package/src/lib-components/Chat/StandardMessages.vue +3 -3
- package/src/lib-components/Chat/TextFooter.vue +5 -3
package/README.md
CHANGED
|
@@ -129,8 +129,12 @@ Biblioteca de plugins feitos em Vue para serem utilizados em qualquer lugar dent
|
|
|
129
129
|
**fileSettings:**
|
|
130
130
|
- type: Object
|
|
131
131
|
- required: false
|
|
132
|
-
- default: { docsExtensions: "", imagesExtensions: "" }
|
|
133
|
-
- desc: Configurações dos arquivos, onde
|
|
132
|
+
- default: { docsExtensions: "", imagesExtensions: "", multiple: false, systemButton: false, max: 3 }
|
|
133
|
+
- desc: Configurações dos arquivos, onde:
|
|
134
|
+
- docsExtensions, imagesExtensions aceitam uma regex contendo as possíveis extensões a serem enviadas: Faz a aparição do botão de mensagem formatada caso verdadeiro. Aceita Boolean, true ou false.
|
|
135
|
+
- multiple: Caso aceite múltiplos arquivos para serem enviados.
|
|
136
|
+
- systemButton: Caso necessite de um botão extra. Emite o evento "@open-file-system".
|
|
137
|
+
- max: Máximo de arquivos que podem ser selecionados.
|
|
134
138
|
|
|
135
139
|
**isSending:**
|
|
136
140
|
- type: Boolean
|
|
@@ -162,6 +166,9 @@ Biblioteca de plugins feitos em Vue para serem utilizados em qualquer lugar dent
|
|
|
162
166
|
- image: File, imagem enviada;
|
|
163
167
|
- isAudio: Boolean, sinaliza se a mensagem é do tipo áudio;
|
|
164
168
|
- audioAttachment: File, arquivo de áudio enviado.
|
|
169
|
+
|
|
170
|
+
**@open-file-system**
|
|
171
|
+
- desc: Emitido ao clicar no botão de arquivos do sistema.
|
|
165
172
|
|
|
166
173
|
## Dependências:
|
|
167
174
|
1. 
|
|
@@ -3552,11 +3552,17 @@ var __vue_render__$n = function () {
|
|
|
3552
3552
|
"textContent": _vm._s(_vm.dictionary.titulo_msg_formato_invalido)
|
|
3553
3553
|
}
|
|
3554
3554
|
}), _vm._v(" "), _c('h4', {
|
|
3555
|
+
attrs: {
|
|
3556
|
+
"title": _vm.validFileFormats
|
|
3557
|
+
},
|
|
3555
3558
|
domProps: {
|
|
3556
3559
|
"textContent": _vm._s(_vm.validFileFormats)
|
|
3557
3560
|
}
|
|
3558
3561
|
})]) : [_vm.file.name ? _c('h3', {
|
|
3559
|
-
staticClass: "text-footer-preview-title"
|
|
3562
|
+
staticClass: "text-footer-preview-title",
|
|
3563
|
+
attrs: {
|
|
3564
|
+
"title": _vm.file.name
|
|
3565
|
+
}
|
|
3560
3566
|
}, [_vm.isDoc ? _c('fa-icon', {
|
|
3561
3567
|
attrs: {
|
|
3562
3568
|
"icon": ['fas', 'file-alt']
|
|
@@ -3583,7 +3589,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
3583
3589
|
|
|
3584
3590
|
const __vue_inject_styles__$n = function (inject) {
|
|
3585
3591
|
if (!inject) return;
|
|
3586
|
-
inject("data-v-
|
|
3592
|
+
inject("data-v-a5119ba8_0", {
|
|
3587
3593
|
source: ".single-file-preview .close-icon{color:#e74c3c;cursor:pointer;opacity:.9;transition:opacity .3s}.single-file-preview .close-icon:hover{opacity:1}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-preview-title{font-size:1rem;padding:10px 0 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-footer-image-preview{display:flex;justify-content:center;align-items:center;width:100%}.text-footer-image-preview img{cursor:pointer;max-width:98%;max-height:98%;padding:2%}",
|
|
3588
3594
|
map: undefined,
|
|
3589
3595
|
media: undefined
|
|
@@ -3743,6 +3749,9 @@ var __vue_render__$m = function () {
|
|
|
3743
3749
|
"textContent": _vm._s(_vm.dictionary.titulo_msg_formato_invalido)
|
|
3744
3750
|
}
|
|
3745
3751
|
}), _vm._v(" "), _c('h4', {
|
|
3752
|
+
attrs: {
|
|
3753
|
+
"title": _vm.validFileFormats
|
|
3754
|
+
},
|
|
3746
3755
|
domProps: {
|
|
3747
3756
|
"innerHTML": _vm._s(_vm.validFileFormats)
|
|
3748
3757
|
}
|
|
@@ -3751,7 +3760,10 @@ var __vue_render__$m = function () {
|
|
|
3751
3760
|
key: index,
|
|
3752
3761
|
staticClass: "file-preview"
|
|
3753
3762
|
}, [_c('p', {
|
|
3754
|
-
staticClass: "file-title"
|
|
3763
|
+
staticClass: "file-title",
|
|
3764
|
+
attrs: {
|
|
3765
|
+
"title": singleFile.name
|
|
3766
|
+
}
|
|
3755
3767
|
}, [_c('fa-icon', {
|
|
3756
3768
|
attrs: {
|
|
3757
3769
|
"icon": _vm.icon(singleFile.imgOrDoc)
|
|
@@ -3779,9 +3791,24 @@ var __vue_render__$m = function () {
|
|
|
3779
3791
|
attrs: {
|
|
3780
3792
|
"icon": ['fas', 'file-pdf']
|
|
3781
3793
|
}
|
|
3782
|
-
})], 1) :
|
|
3794
|
+
})], 1) : _c('span', {
|
|
3795
|
+
staticClass: "doc"
|
|
3796
|
+
}, [_c('fa-icon', {
|
|
3797
|
+
attrs: {
|
|
3798
|
+
"icon": ['fas', 'file-alt']
|
|
3799
|
+
}
|
|
3800
|
+
})], 1)]), _vm._v(" "), _c('span', {
|
|
3801
|
+
directives: [{
|
|
3802
|
+
name: "tippy",
|
|
3803
|
+
rawName: "v-tippy",
|
|
3804
|
+
value: {
|
|
3805
|
+
placement: 'left'
|
|
3806
|
+
},
|
|
3807
|
+
expression: "{placement: 'left'}"
|
|
3808
|
+
}],
|
|
3783
3809
|
staticClass: "delete-file",
|
|
3784
3810
|
attrs: {
|
|
3811
|
+
"content": _vm.dictionary.msg_excluir_anexo,
|
|
3785
3812
|
"title": _vm.dictionary.msg_excluir_anexo
|
|
3786
3813
|
},
|
|
3787
3814
|
on: {
|
|
@@ -3802,8 +3829,8 @@ var __vue_staticRenderFns__$m = [];
|
|
|
3802
3829
|
|
|
3803
3830
|
const __vue_inject_styles__$m = function (inject) {
|
|
3804
3831
|
if (!inject) return;
|
|
3805
|
-
inject("data-v-
|
|
3806
|
-
source: ".multiple-file-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;transition:background-color 150ms;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:4px}.multiple-file-preview::-webkit-scrollbar{width:4px}.multiple-file-preview .close-icon{color:#e74c3c;cursor:pointer;opacity:.9;transition:opacity .3s}.multiple-file-preview .close-icon:hover{opacity:1}.multiple-file-preview::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.multiple-file-preview::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#222}.multiple-file-preview::-webkit-scrollbar-thumb:hover{background-color:#555}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-exclude-file{position:absolute;top:5px;right:5px;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;background-color:#fff;border-radius:50%}.text-footer-exclude-file svg{transition:color .2s;color:#e9594a}.text-footer-exclude-file svg:hover{color:#e74c3c}.file-preview{display:flex;width:100%;align-items:center;padding:5px 10px;transition:background-color 150ms}.file-preview:hover{background-color:rgba(0,0,0,.1)}.file-title{color:#222;display:flex;align-items:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px 10px;background-color:#fff;border-radius:30px;display:inline-block}.file-title.red{color:#e74c3c;margin-left:5px}.file-title>svg{margin-right:5px}.small-img{flex:1;margin:0 15px;display:flex;justify-content:center;align-items:center;position:relative}.small-img img{height:40px;cursor:pointer}.small-img .pdf{display:flex;justify-content:center;align-items:center;font-size:30px
|
|
3832
|
+
inject("data-v-f3de3970_0", {
|
|
3833
|
+
source: ".multiple-file-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;transition:background-color 150ms;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:4px}.multiple-file-preview::-webkit-scrollbar{width:4px}.multiple-file-preview .close-icon{color:#e74c3c;cursor:pointer;opacity:.9;transition:opacity .3s}.multiple-file-preview .close-icon:hover{opacity:1}.multiple-file-preview::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.multiple-file-preview::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#222}.multiple-file-preview::-webkit-scrollbar-thumb:hover{background-color:#555}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{text-overflow:ellipsis;overflow:hidden;font-weight:500}.text-footer-invalid-format h4{text-overflow:ellipsis;overflow:hidden;font-size:.9rem}.text-footer-exclude-file{position:absolute;top:5px;right:5px;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;background-color:#fff;border-radius:50%}.text-footer-exclude-file svg{transition:color .2s;color:#e9594a}.text-footer-exclude-file svg:hover{color:#e74c3c}.file-preview{display:flex;width:100%;align-items:center;padding:5px 10px;transition:background-color 150ms}.file-preview:hover{background-color:rgba(0,0,0,.1)}.file-title{color:#222;display:flex;align-items:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px 10px;background-color:#fff;border-radius:30px;display:inline-block}.file-title.red{color:#e74c3c;margin-left:5px}.file-title>svg{margin-right:5px;color:#333}.small-img{flex:1;margin:0 15px;display:flex;justify-content:center;align-items:center;position:relative}.small-img img{height:40px;cursor:pointer}.small-img .doc,.small-img .pdf{display:flex;justify-content:center;align-items:center;font-size:30px}.small-img .pdf{color:#e74c3c}.small-img .doc{color:#006bc9}.small-img .doc svg,.small-img .pdf svg{z-index:1}.small-img .doc::after,.small-img .pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.img-container{padding:5px;border-radius:2.5px;background-color:rgba(0,0,0,.15);display:flex;justify-content:center;align-items:center}.delete-file{display:flex;justify-content:center;align-items:center;cursor:pointer}.delete-file>svg{font-size:1rem;color:#e74c3c}",
|
|
3807
3834
|
map: undefined,
|
|
3808
3835
|
media: undefined
|
|
3809
3836
|
});
|
|
@@ -3924,6 +3951,14 @@ var script$l = {
|
|
|
3924
3951
|
},
|
|
3925
3952
|
|
|
3926
3953
|
isFileValid(type, fileName) {
|
|
3954
|
+
if (type == "img" && !this.fileSettings.imagesExtensions || type == "doc" && !this.fileSettings.docsExtensions) {
|
|
3955
|
+
this.$toasted.global.defaultInfo({
|
|
3956
|
+
msg: this.dictionary.sem_extensoes_parametrizadas
|
|
3957
|
+
});
|
|
3958
|
+
this.hasAnyFile = false;
|
|
3959
|
+
return false;
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3927
3962
|
const extensions = type === "img" ? this.fileSettings.imagesExtensions : this.fileSettings.docsExtensions;
|
|
3928
3963
|
const regex = new RegExp("(" + extensions + ")", "i");
|
|
3929
3964
|
if (regex.test(fileName)) return true;
|
|
@@ -3950,9 +3985,17 @@ var script$l = {
|
|
|
3950
3985
|
this.fileSize = 0;
|
|
3951
3986
|
if (this.fileFormatError) this.file = [];
|
|
3952
3987
|
this.openFiles = false;
|
|
3953
|
-
|
|
3988
|
+
const filesAux = !externalCall ? event.target.files ? event.target.files : event.dataTransfer.files : event;
|
|
3954
3989
|
this.file = filesAux.length ? filesAux : this.file;
|
|
3955
3990
|
if (!this.file.length) return;
|
|
3991
|
+
|
|
3992
|
+
if (this.file.length > this.fileSettings.max) {
|
|
3993
|
+
this.file = [];
|
|
3994
|
+
return this.$toasted.global.defaultInfo({
|
|
3995
|
+
msg: `Limite de ${this.fileSettings.max} arquivos`
|
|
3996
|
+
});
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3956
3999
|
this.hasAnyFile = true;
|
|
3957
4000
|
this.fileSize = this.file.length;
|
|
3958
4001
|
|
|
@@ -3969,6 +4012,7 @@ var script$l = {
|
|
|
3969
4012
|
},
|
|
3970
4013
|
|
|
3971
4014
|
returnFileType(file) {
|
|
4015
|
+
if (!this.fileSettings.imagesExtensions && !this.fileSettings.docsExtensions) return "";
|
|
3972
4016
|
const imgRegex = new RegExp("\.(" + this.fileSettings.imagesExtensions + ")", "i");
|
|
3973
4017
|
if (imgRegex.test(file.name)) return "img";
|
|
3974
4018
|
const docRegex = new RegExp("\.(" + this.fileSettings.docsExtensions + ")", "i");
|
|
@@ -3977,52 +4021,77 @@ var script$l = {
|
|
|
3977
4021
|
},
|
|
3978
4022
|
|
|
3979
4023
|
multipleFileUpload() {
|
|
4024
|
+
const hasImgExt = this.fileSettings.imagesExtensions ? true : false;
|
|
4025
|
+
const hasDocExt = this.fileSettings.docsExtensions ? true : false;
|
|
4026
|
+
|
|
4027
|
+
if (!hasImgExt && !hasDocExt) {
|
|
4028
|
+
this.file = [];
|
|
4029
|
+
this.fileSize = 0;
|
|
4030
|
+
return this.$toasted.global.defaultInfo({
|
|
4031
|
+
msg: this.dictionary.sem_extensoes_parametrizadas
|
|
4032
|
+
});
|
|
4033
|
+
}
|
|
4034
|
+
|
|
3980
4035
|
let waitForImageLoad = false;
|
|
3981
4036
|
this.file = Array.from(this.file);
|
|
3982
4037
|
this.file.forEach(file => {
|
|
3983
|
-
const fileReader = new FileReader();
|
|
3984
4038
|
const singleFileType = this.returnFileType(file);
|
|
3985
4039
|
if (!singleFileType) file.invalid = true;
|
|
3986
4040
|
file.imgOrDoc = singleFileType ? singleFileType : "";
|
|
3987
|
-
if (file.imgOrDoc === "doc") this.isDoc = true;
|
|
3988
4041
|
|
|
3989
|
-
if (file.imgOrDoc
|
|
3990
|
-
|
|
4042
|
+
if (this.isFileValid(file.imgOrDoc, file.name)) {
|
|
4043
|
+
if (file.imgOrDoc == "img") {
|
|
4044
|
+
const fileReader = new FileReader();
|
|
4045
|
+
waitForImageLoad = true;
|
|
3991
4046
|
|
|
3992
|
-
|
|
4047
|
+
fileReader.onload = () => file.src = fileReader.result;
|
|
3993
4048
|
|
|
3994
|
-
|
|
3995
|
-
}
|
|
4049
|
+
fileReader.onloadend = () => this.emitFileVars(true);
|
|
3996
4050
|
|
|
3997
|
-
|
|
3998
|
-
|
|
4051
|
+
fileReader.readAsDataURL(file);
|
|
4052
|
+
}
|
|
4053
|
+
|
|
4054
|
+
if (file.imgOrDoc === "doc") this.isDoc = true;
|
|
3999
4055
|
file.invalid = false;
|
|
4000
4056
|
this.fileFormatError = false;
|
|
4001
4057
|
} else {
|
|
4002
4058
|
file.invalid = true;
|
|
4003
4059
|
this.fileFormatError = true;
|
|
4004
|
-
this.validFileFormats = `
|
|
4060
|
+
if (hasImgExt && !hasDocExt) this.validFileFormats = `Imagens: ${this.fileSettings.imagesExtensions.split("|").join(", ")}`;
|
|
4061
|
+
if (hasDocExt && hasImgExt) this.validFileFormats = `Documentos: ${this.fileSettings.docsExtensions.split("|").join(", ")}`;
|
|
4062
|
+
if (hasImgExt && hasDocExt) this.validFileFormats = `Imagens: ${this.fileSettings.imagesExtensions.split("|").join(", ")} - Documentos: ${this.fileSettings.docsExtensions.split("|").join(", ")}`;
|
|
4005
4063
|
}
|
|
4006
4064
|
});
|
|
4065
|
+
|
|
4066
|
+
if (this.fileFormatError) {
|
|
4067
|
+
this.file = [];
|
|
4068
|
+
this.fileSize = 0;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4007
4071
|
if (this.isDoc && !waitForImageLoad) this.emitFileVars();
|
|
4008
4072
|
},
|
|
4009
4073
|
|
|
4010
4074
|
singleFileUpload(type, fileName) {
|
|
4011
|
-
|
|
4075
|
+
if (this.isFileValid(type, fileName)) {
|
|
4076
|
+
const fileReader = new FileReader();
|
|
4012
4077
|
|
|
4013
|
-
|
|
4014
|
-
|
|
4078
|
+
if (type === "img") {
|
|
4079
|
+
fileReader.onload = () => this.imagePreview = fileReader.result;
|
|
4015
4080
|
|
|
4016
|
-
|
|
4017
|
-
|
|
4081
|
+
fileReader.onloadend = () => this.emitFileVars();
|
|
4082
|
+
|
|
4083
|
+
fileReader.readAsDataURL(this.file);
|
|
4084
|
+
}
|
|
4018
4085
|
|
|
4019
|
-
if (this.isFileValid(type, fileName)) {
|
|
4020
|
-
if (type === "img") fileReader.readAsDataURL(this.file);
|
|
4021
4086
|
if (type === "doc") this.isDoc = true;
|
|
4022
4087
|
this.fileFormatError = false;
|
|
4023
4088
|
} else {
|
|
4024
4089
|
this.fileFormatError = true;
|
|
4025
|
-
|
|
4090
|
+
const hasImgExt = this.fileSettings.imagesExtensions ? true : false;
|
|
4091
|
+
const hasDocExt = this.fileSettings.docsExtensions ? true : false;
|
|
4092
|
+
if (hasImgExt && !hasDocExt) this.validFileFormats = `Imagens: ${this.fileSettings.imagesExtensions}`;
|
|
4093
|
+
if (hasDocExt && hasImgExt) this.validFileFormats = `Documentos: ${this.fileSettings.docsExtensions}`;
|
|
4094
|
+
if (hasImgExt && hasDocExt) this.validFileFormats = `Imagens: ${this.fileSettings.imagesExtensions} - Documentos: ${this.fileSettings.docsExtensions}`;
|
|
4026
4095
|
}
|
|
4027
4096
|
|
|
4028
4097
|
if (this.isDoc) this.emitFileVars();
|
|
@@ -4292,7 +4361,7 @@ var __vue_staticRenderFns__$l = [];
|
|
|
4292
4361
|
|
|
4293
4362
|
const __vue_inject_styles__$l = function (inject) {
|
|
4294
4363
|
if (!inject) return;
|
|
4295
|
-
inject("data-v-
|
|
4364
|
+
inject("data-v-451fb0c4_0", {
|
|
4296
4365
|
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}",
|
|
4297
4366
|
map: undefined,
|
|
4298
4367
|
media: undefined
|
|
@@ -8459,7 +8528,7 @@ var script$i = {
|
|
|
8459
8528
|
this.loadingReq = true;
|
|
8460
8529
|
this.getStandardMessages(cod, this.token_cliente).then(data => {
|
|
8461
8530
|
this.loadingReq = false;
|
|
8462
|
-
if (data.msg_ret) return this.$toasted.global.
|
|
8531
|
+
if (data.msg_ret) return this.$toasted.global.defaultInfo({
|
|
8463
8532
|
msg: data.msg_ret
|
|
8464
8533
|
});
|
|
8465
8534
|
if (data) return this.showFormattedMessage(data, selectionIndex);
|
|
@@ -8480,7 +8549,7 @@ var script$i = {
|
|
|
8480
8549
|
try {
|
|
8481
8550
|
let success = false;
|
|
8482
8551
|
if (Array.isArray(messageData)) success = true;
|
|
8483
|
-
if (!success && selectionIndex != 4) this.$toasted.global.
|
|
8552
|
+
if (!success && selectionIndex != 4) this.$toasted.global.defaultInfo({
|
|
8484
8553
|
msg: messageData ? messageData.msg : "Nao foi possível obter mensagens"
|
|
8485
8554
|
});
|
|
8486
8555
|
|
|
@@ -8505,7 +8574,7 @@ var script$i = {
|
|
|
8505
8574
|
case 3:
|
|
8506
8575
|
if (!success) {
|
|
8507
8576
|
this.formatted_messages_3.push(messageData);
|
|
8508
|
-
this.$toasted.global.
|
|
8577
|
+
this.$toasted.global.defaultInfo({
|
|
8509
8578
|
msg: this.dictionary.msg_erro_sem_msg_formatada
|
|
8510
8579
|
});
|
|
8511
8580
|
this.$emit("close-blocker-standard-message");
|
|
@@ -8674,7 +8743,7 @@ var __vue_staticRenderFns__$i = [];
|
|
|
8674
8743
|
|
|
8675
8744
|
const __vue_inject_styles__$i = function (inject) {
|
|
8676
8745
|
if (!inject) return;
|
|
8677
|
-
inject("data-v-
|
|
8746
|
+
inject("data-v-324084df_0", {
|
|
8678
8747
|
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}",
|
|
8679
8748
|
map: undefined,
|
|
8680
8749
|
media: undefined
|
|
@@ -8780,7 +8849,8 @@ var script$h = {
|
|
|
8780
8849
|
docsExtensions: "",
|
|
8781
8850
|
imagesExtensions: "",
|
|
8782
8851
|
multiple: false,
|
|
8783
|
-
systemButton: false
|
|
8852
|
+
systemButton: false,
|
|
8853
|
+
max: 3
|
|
8784
8854
|
};
|
|
8785
8855
|
},
|
|
8786
8856
|
required: false
|
|
@@ -8853,7 +8923,7 @@ var script$h = {
|
|
|
8853
8923
|
if (event.data == '' && this.showStandardMessages) {
|
|
8854
8924
|
this.closeBlockerStandardMessage();
|
|
8855
8925
|
this.toggleStandardMessages();
|
|
8856
|
-
this.$toasted.global.
|
|
8926
|
+
this.$toasted.global.defaultInfo({
|
|
8857
8927
|
msg: this.dictionary.msg_erro_sem_msg_formatada
|
|
8858
8928
|
});
|
|
8859
8929
|
} else if (typeof event.data === "string" && this.showStandardMessages) {
|
|
@@ -9057,11 +9127,12 @@ var script$h = {
|
|
|
9057
9127
|
},
|
|
9058
9128
|
|
|
9059
9129
|
returnFileType(file, stopAlert) {
|
|
9130
|
+
if (!this.fileSettings.imagesExtensions && !this.fileSettings.docsExtensions) return false;
|
|
9060
9131
|
const imgRegex = new RegExp("\.(" + this.fileSettings.imagesExtensions + ")", "i");
|
|
9061
9132
|
if (imgRegex.test(file.name)) return "img";
|
|
9062
9133
|
const docRegex = new RegExp("\.(" + this.fileSettings.docsExtensions + ")", "i");
|
|
9063
9134
|
if (docRegex.test(file.name)) return "doc";
|
|
9064
|
-
if (!stopAlert) return;
|
|
9135
|
+
if (!stopAlert) return false;
|
|
9065
9136
|
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
9066
9137
|
msg: this.dictionary.msg_formato_invalido
|
|
9067
9138
|
});
|
|
@@ -9433,8 +9504,8 @@ var __vue_staticRenderFns__$h = [];
|
|
|
9433
9504
|
|
|
9434
9505
|
const __vue_inject_styles__$h = function (inject) {
|
|
9435
9506
|
if (!inject) return;
|
|
9436
|
-
inject("data-v-
|
|
9437
|
-
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:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.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{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}",
|
|
9507
|
+
inject("data-v-54b5cd94_0", {
|
|
9508
|
+
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:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.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}",
|
|
9438
9509
|
map: undefined,
|
|
9439
9510
|
media: undefined
|
|
9440
9511
|
});
|