vue-intergrall-plugins 0.0.210 → 0.0.213
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 +21 -16
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +26 -21
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +4 -2
- package/src/lib-components/Chat/MultipleFilePreview.vue +3 -6
- package/src/lib-components/Chat/TextFooter.vue +1 -1
- package/src/lib-components/Messages/AnexoMensagem.vue +5 -0
- package/src/lib-components/Messages/ChatMessages.vue +2 -2
|
@@ -3405,16 +3405,17 @@ var __vue_render__$m = function __vue_render__() {
|
|
|
3405
3405
|
staticClass: "file-preview"
|
|
3406
3406
|
}, [_c('p', {
|
|
3407
3407
|
staticClass: "file-title",
|
|
3408
|
+
class: {
|
|
3409
|
+
'red': singleFile.invalid
|
|
3410
|
+
},
|
|
3408
3411
|
attrs: {
|
|
3409
|
-
"title": singleFile.name
|
|
3412
|
+
"title": !singleFile.invalid ? singleFile.name : (_vm.dictionary.titulo_msg_formato_invalido ? _vm.dictionary.titulo_msg_formato_invalido : 'Arquivo invalido') + " - " + singleFile.name
|
|
3410
3413
|
}
|
|
3411
3414
|
}, [_c('fa-icon', {
|
|
3412
3415
|
attrs: {
|
|
3413
3416
|
"icon": _vm.icon(singleFile.imgOrDoc)
|
|
3414
3417
|
}
|
|
3415
|
-
}), _vm._v("\n " + _vm._s(singleFile.name) + "\n ")], 1), _vm._v(" "),
|
|
3416
|
-
staticClass: "file-title red"
|
|
3417
|
-
}, [_vm._v("\n " + _vm._s(_vm.dictionary.titulo_msg_formato_invalido ? _vm.dictionary.titulo_msg_formato_invalido : "Arquivo invalido") + "\n ")]) : _vm._e(), _vm._v(" "), _c('div', {
|
|
3418
|
+
}), _vm._v("\n " + _vm._s(!singleFile.invalid ? singleFile.name : (_vm.dictionary.titulo_msg_formato_invalido ? _vm.dictionary.titulo_msg_formato_invalido : "Arquivo invalido") + " - " + singleFile.name) + "\n ")], 1), _vm._v(" "), _c('div', {
|
|
3418
3419
|
staticClass: "small-img"
|
|
3419
3420
|
}, [singleFile.imgOrDoc === 'img' && !_vm.isPdf(singleFile.type) ? _c('span', {
|
|
3420
3421
|
staticClass: "img-container"
|
|
@@ -3473,8 +3474,8 @@ var __vue_staticRenderFns__$m = [];
|
|
|
3473
3474
|
|
|
3474
3475
|
var __vue_inject_styles__$m = function __vue_inject_styles__(inject) {
|
|
3475
3476
|
if (!inject) return;
|
|
3476
|
-
inject("data-v-
|
|
3477
|
-
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-
|
|
3477
|
+
inject("data-v-131a11b5_0", {
|
|
3478
|
+
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-right: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}",
|
|
3478
3479
|
map: undefined,
|
|
3479
3480
|
media: undefined
|
|
3480
3481
|
});
|
|
@@ -3485,7 +3486,7 @@ var __vue_inject_styles__$m = function __vue_inject_styles__(inject) {
|
|
|
3485
3486
|
var __vue_scope_id__$m = undefined;
|
|
3486
3487
|
/* module identifier */
|
|
3487
3488
|
|
|
3488
|
-
var __vue_module_identifier__$m = "data-v-
|
|
3489
|
+
var __vue_module_identifier__$m = "data-v-131a11b5";
|
|
3489
3490
|
/* functional template */
|
|
3490
3491
|
|
|
3491
3492
|
var __vue_is_functional_template__$m = false;
|
|
@@ -3663,6 +3664,7 @@ var script$l = {
|
|
|
3663
3664
|
}
|
|
3664
3665
|
|
|
3665
3666
|
var waitForImageLoad = false;
|
|
3667
|
+
var hasAnyInvalidFile = false;
|
|
3666
3668
|
this.file = Array.from(this.file);
|
|
3667
3669
|
this.file.forEach(function (file) {
|
|
3668
3670
|
var singleFileType = _this.returnFileType(file);
|
|
@@ -3688,8 +3690,9 @@ var script$l = {
|
|
|
3688
3690
|
|
|
3689
3691
|
if (file.imgOrDoc === "doc") _this.isDoc = true;
|
|
3690
3692
|
file.invalid = false;
|
|
3691
|
-
_this.fileFormatError = false;
|
|
3693
|
+
_this.fileFormatError = !hasAnyInvalidFile ? false : true;
|
|
3692
3694
|
} else {
|
|
3695
|
+
hasAnyInvalidFile = true;
|
|
3693
3696
|
file.invalid = true;
|
|
3694
3697
|
_this.fileFormatError = true;
|
|
3695
3698
|
if (hasImgExt && !hasDocExt) _this.validFileFormats = "Imagens: ".concat(_this.fileSettings.imagesExtensions.split("|").join(", "));
|
|
@@ -3955,7 +3958,7 @@ var __vue_staticRenderFns__$l = [];
|
|
|
3955
3958
|
|
|
3956
3959
|
var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
3957
3960
|
if (!inject) return;
|
|
3958
|
-
inject("data-v-
|
|
3961
|
+
inject("data-v-402ae30b_0", {
|
|
3959
3962
|
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}",
|
|
3960
3963
|
map: undefined,
|
|
3961
3964
|
media: undefined
|
|
@@ -3967,7 +3970,7 @@ var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
|
3967
3970
|
var __vue_scope_id__$l = undefined;
|
|
3968
3971
|
/* module identifier */
|
|
3969
3972
|
|
|
3970
|
-
var __vue_module_identifier__$l = "data-v-
|
|
3973
|
+
var __vue_module_identifier__$l = "data-v-402ae30b";
|
|
3971
3974
|
/* functional template */
|
|
3972
3975
|
|
|
3973
3976
|
var __vue_is_functional_template__$l = false;
|
|
@@ -8481,7 +8484,7 @@ var script$h = {
|
|
|
8481
8484
|
if ((!this.message || !this.message.trim()) && !this.hasAnyFile && !this.audioFile) return false;
|
|
8482
8485
|
if (this.textareaSettings.disabled) return false;
|
|
8483
8486
|
|
|
8484
|
-
if (this.fileFormatError) {
|
|
8487
|
+
if (this.fileFormatError && this.hasAnyFile) {
|
|
8485
8488
|
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({
|
|
8486
8489
|
msg: this.dictionary.msg_formato_invalido
|
|
8487
8490
|
});
|
|
@@ -8879,7 +8882,7 @@ var __vue_staticRenderFns__$h = [];
|
|
|
8879
8882
|
|
|
8880
8883
|
var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
8881
8884
|
if (!inject) return;
|
|
8882
|
-
inject("data-v-
|
|
8885
|
+
inject("data-v-7910091a_0", {
|
|
8883
8886
|
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}",
|
|
8884
8887
|
map: undefined,
|
|
8885
8888
|
media: undefined
|
|
@@ -8891,7 +8894,7 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
|
8891
8894
|
var __vue_scope_id__$h = undefined;
|
|
8892
8895
|
/* module identifier */
|
|
8893
8896
|
|
|
8894
|
-
var __vue_module_identifier__$h = "data-v-
|
|
8897
|
+
var __vue_module_identifier__$h = "data-v-7910091a";
|
|
8895
8898
|
/* functional template */
|
|
8896
8899
|
|
|
8897
8900
|
var __vue_is_functional_template__$h = false;
|
|
@@ -9719,6 +9722,7 @@ var __vue_component__$k = __vue_component__$j;var textoLongo = {
|
|
|
9719
9722
|
case "audio/mpga":
|
|
9720
9723
|
case "mp3":
|
|
9721
9724
|
case "audio/mp3":
|
|
9725
|
+
case "aac":
|
|
9722
9726
|
tipoDoc = type;
|
|
9723
9727
|
docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
|
|
9724
9728
|
nomeArquivo = name;
|
|
@@ -9728,6 +9732,7 @@ var __vue_component__$k = __vue_component__$j;var textoLongo = {
|
|
|
9728
9732
|
case "video/mp4":
|
|
9729
9733
|
case "video":
|
|
9730
9734
|
case "mp4":
|
|
9735
|
+
case "m4v":
|
|
9731
9736
|
tipoDoc = type;
|
|
9732
9737
|
docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
|
|
9733
9738
|
nomeArquivo = name;
|
|
@@ -11141,8 +11146,8 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
11141
11146
|
|
|
11142
11147
|
var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
11143
11148
|
if (!inject) return;
|
|
11144
|
-
inject("data-v-
|
|
11145
|
-
source: ".fade-enter-active[data-v-
|
|
11149
|
+
inject("data-v-d859545a_0", {
|
|
11150
|
+
source: ".fade-enter-active[data-v-d859545a],.fade-leave-active[data-v-d859545a]{transition:opacity .5s}.fade-enter[data-v-d859545a],.fade-leave-to[data-v-d859545a]{opacity:0}.mensagem-div-anexo[data-v-d859545a]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-d859545a]{width:100%;margin-top:5px;overflow:hidden}.anexo-container .arquivo-erro[data-v-d859545a],.anexo-container a[data-v-d859545a]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container p[data-v-d859545a]{text-overflow:ellipsis;overflow:hidden}.anexo-container .arquivo-erro[data-v-d859545a],.anexo-container p[data-v-d859545a]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-d859545a]{font-size:2rem}.anexo-container audio[data-v-d859545a]{outline:0;width:100%}.anexo-container video[data-v-d859545a]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-d859545a]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-d859545a]{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-d859545a]{cursor:pointer}.mensagem-div-anexo img[data-v-d859545a]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-d859545a]{width:100%;height:100%}.anexo-mensagem[data-v-d859545a]{display:flex;justify-content:center;align-items:center;flex-direction:column}.alert-danger[data-v-d859545a]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-d859545a]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-d859545a]{font-size:1.025em;margin-right:2px}.pdf[data-v-d859545a]{color:#e74c3c}.doc[data-v-d859545a]{color:#006bc9}",
|
|
11146
11151
|
map: undefined,
|
|
11147
11152
|
media: undefined
|
|
11148
11153
|
});
|
|
@@ -11150,10 +11155,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
|
|
|
11150
11155
|
/* scoped */
|
|
11151
11156
|
|
|
11152
11157
|
|
|
11153
|
-
var __vue_scope_id__$6 = "data-v-
|
|
11158
|
+
var __vue_scope_id__$6 = "data-v-d859545a";
|
|
11154
11159
|
/* module identifier */
|
|
11155
11160
|
|
|
11156
|
-
var __vue_module_identifier__$6 = "data-v-
|
|
11161
|
+
var __vue_module_identifier__$6 = "data-v-d859545a";
|
|
11157
11162
|
/* functional template */
|
|
11158
11163
|
|
|
11159
11164
|
var __vue_is_functional_template__$6 = false;
|
|
@@ -11738,7 +11743,7 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
11738
11743
|
"name": "fade",
|
|
11739
11744
|
"mode": "out-in"
|
|
11740
11745
|
}
|
|
11741
|
-
}, [_vm.hasReply && (_vm.status == 'C' || _vm.status == 'T') ? _c('span', {
|
|
11746
|
+
}, [_vm.hasReply && (_vm.status == 'C' || _vm.status == 'T' || _vm.status == 'ERRO') ? _c('span', {
|
|
11742
11747
|
directives: [{
|
|
11743
11748
|
name: "tippy",
|
|
11744
11749
|
rawName: "v-tippy"
|
|
@@ -11876,7 +11881,7 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
11876
11881
|
attrs: {
|
|
11877
11882
|
"icon": ['fas', 'check-double']
|
|
11878
11883
|
}
|
|
11879
|
-
})], 1) : _vm.status == 'C' ? _c('span', {
|
|
11884
|
+
})], 1) : _vm.status == 'C' || _vm.status == 'ERRO' ? _c('span', {
|
|
11880
11885
|
directives: [{
|
|
11881
11886
|
name: "tippy",
|
|
11882
11887
|
rawName: "v-tippy"
|
|
@@ -11917,7 +11922,7 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
11917
11922
|
|
|
11918
11923
|
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
11919
11924
|
if (!inject) return;
|
|
11920
|
-
inject("data-v-
|
|
11925
|
+
inject("data-v-66270ae0_0", {
|
|
11921
11926
|
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}",
|
|
11922
11927
|
map: undefined,
|
|
11923
11928
|
media: undefined
|
|
@@ -11929,7 +11934,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
11929
11934
|
var __vue_scope_id__$3 = undefined;
|
|
11930
11935
|
/* module identifier */
|
|
11931
11936
|
|
|
11932
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
11937
|
+
var __vue_module_identifier__$3 = "data-v-66270ae0";
|
|
11933
11938
|
/* functional template */
|
|
11934
11939
|
|
|
11935
11940
|
var __vue_is_functional_template__$3 = false;
|
package/package.json
CHANGED
|
@@ -243,6 +243,7 @@ export default {
|
|
|
243
243
|
return this.$toasted.global.defaultInfo({ msg: this.dictionary.sem_extensoes_parametrizadas })
|
|
244
244
|
}
|
|
245
245
|
let waitForImageLoad = false
|
|
246
|
+
let hasAnyInvalidFile = false
|
|
246
247
|
this.file = Array.from(this.file)
|
|
247
248
|
this.file.forEach(file => {
|
|
248
249
|
const singleFileType = this.returnFileType(file)
|
|
@@ -258,8 +259,9 @@ export default {
|
|
|
258
259
|
}
|
|
259
260
|
if(file.imgOrDoc === "doc") this.isDoc = true
|
|
260
261
|
file.invalid = false
|
|
261
|
-
this.fileFormatError = false
|
|
262
|
+
this.fileFormatError = !hasAnyInvalidFile ? false : true
|
|
262
263
|
}else{
|
|
264
|
+
hasAnyInvalidFile = true
|
|
263
265
|
file.invalid = true
|
|
264
266
|
this.fileFormatError = true
|
|
265
267
|
if(hasImgExt && !hasDocExt) this.validFileFormats = `Imagens: ${this.fileSettings.imagesExtensions.split("|").join(", ")}`
|
|
@@ -267,7 +269,7 @@ export default {
|
|
|
267
269
|
if(hasImgExt && hasDocExt) this.validFileFormats = `Imagens: ${this.fileSettings.imagesExtensions.split("|").join(", ")} - Documentos: ${this.fileSettings.docsExtensions.split("|").join(", ")}`
|
|
268
270
|
}
|
|
269
271
|
})
|
|
270
|
-
|
|
272
|
+
|
|
271
273
|
if(this.fileFormatError) {
|
|
272
274
|
this.file = []
|
|
273
275
|
this.fileSize = 0
|
|
@@ -14,12 +14,9 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
<template v-else>
|
|
16
16
|
<div class="file-preview" v-for="(singleFile, index) in file" :key="index">
|
|
17
|
-
<p class="file-title" :title="singleFile.name">
|
|
17
|
+
<p class="file-title" :title="!singleFile.invalid ? singleFile.name : `${dictionary.titulo_msg_formato_invalido ? dictionary.titulo_msg_formato_invalido : 'Arquivo invalido'} - ${singleFile.name}`" :class="{'red' : singleFile.invalid}">
|
|
18
18
|
<fa-icon :icon="icon(singleFile.imgOrDoc)" />
|
|
19
|
-
{{ singleFile.name }}
|
|
20
|
-
</p>
|
|
21
|
-
<p v-if="singleFile.invalid" class="file-title red">
|
|
22
|
-
{{ dictionary.titulo_msg_formato_invalido ? dictionary.titulo_msg_formato_invalido : "Arquivo invalido" }}
|
|
19
|
+
{{ !singleFile.invalid ? singleFile.name : `${dictionary.titulo_msg_formato_invalido ? dictionary.titulo_msg_formato_invalido : "Arquivo invalido"} - ${singleFile.name}` }}
|
|
23
20
|
</p>
|
|
24
21
|
<div class="small-img">
|
|
25
22
|
<span class="img-container" v-if="singleFile.imgOrDoc === 'img' && !isPdf(singleFile.type)">
|
|
@@ -204,7 +201,7 @@ export default {
|
|
|
204
201
|
}
|
|
205
202
|
.file-title.red {
|
|
206
203
|
color: #E74C3C;
|
|
207
|
-
margin-
|
|
204
|
+
margin-right: 5px;
|
|
208
205
|
}
|
|
209
206
|
.file-title > svg {
|
|
210
207
|
margin-right: 5px;
|
|
@@ -271,7 +271,7 @@ export default {
|
|
|
271
271
|
|
|
272
272
|
if(this.textareaSettings.disabled) return false
|
|
273
273
|
|
|
274
|
-
if(this.fileFormatError) {
|
|
274
|
+
if(this.fileFormatError && this.hasAnyFile) {
|
|
275
275
|
if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError({ msg: this.dictionary.msg_formato_invalido })
|
|
276
276
|
const str = {
|
|
277
277
|
img: this.fileSettings.imagesExtensions.split("|").join(", "),
|
|
@@ -123,6 +123,7 @@ export default {
|
|
|
123
123
|
.anexo-container{
|
|
124
124
|
width: 100%;
|
|
125
125
|
margin-top: 5px;
|
|
126
|
+
overflow: hidden;
|
|
126
127
|
}
|
|
127
128
|
.anexo-container a, .anexo-container .arquivo-erro{
|
|
128
129
|
padding: 10px 15px 15px 15px;
|
|
@@ -130,6 +131,10 @@ export default {
|
|
|
130
131
|
justify-content: center;
|
|
131
132
|
align-items: center;
|
|
132
133
|
}
|
|
134
|
+
.anexo-container p {
|
|
135
|
+
text-overflow: ellipsis;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
}
|
|
133
138
|
.anexo-container p, .anexo-container .arquivo-erro{
|
|
134
139
|
margin: 0;
|
|
135
140
|
margin-left: 15px;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/>
|
|
40
40
|
<span class="horario-envio" v-text="horario"></span>
|
|
41
41
|
<transition name="fade" mode="out-in">
|
|
42
|
-
<span :class="reply" v-if="hasReply && (status == 'C' || status == 'T')" v-tippy :content="msgReply ? msgReply : 'Fazer reenvio da mensagem'" @click="$emit('replyMsg')"> <fa-icon :icon="['fas', 'reply']" /> </span>
|
|
42
|
+
<span :class="reply" v-if="hasReply && (status == 'C' || status == 'T' || status == 'ERRO')" v-tippy :content="msgReply ? msgReply : 'Fazer reenvio da mensagem'" @click="$emit('replyMsg')"> <fa-icon :icon="['fas', 'reply']" /> </span>
|
|
43
43
|
</transition>
|
|
44
44
|
<transition name="fade" mode="out-in" v-if="validadeSeq">
|
|
45
45
|
<span class="star dourado" v-if="iniDialogo > 0" :content="contentTooltipStar" v-tippy key="star-padrao-dourado">
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<span class="check preto" v-else-if="status == 'G'" :content="contentTooltip" v-tippy key="check-preto"> <fa-icon :icon="['fas', 'check']" /> </span>
|
|
60
60
|
<span class="check preto" v-else-if="status == 'E'" :content="contentTooltip" v-tippy key="double-check-preto"> <fa-icon :icon="['fas', 'check-double']" /> </span>
|
|
61
61
|
<span class="check visualizado" v-else-if="status == 'L'" :content="contentTooltip" v-tippy key="double-check-visualizado"> <fa-icon :icon="['fas', 'check-double']" /> </span> <!-- Status finalizador -->
|
|
62
|
-
<span class="check vermelho" v-else-if="status == 'C'" :content="contentTooltip" v-tippy key="times-circle"> <fa-icon :icon="['fas', 'times-circle']" /> </span> <!-- Status finalizador -->
|
|
62
|
+
<span class="check vermelho" v-else-if="status == 'C' || status == 'ERRO'" :content="contentTooltip" v-tippy key="times-circle"> <fa-icon :icon="['fas', 'times-circle']" /> </span> <!-- Status finalizador -->
|
|
63
63
|
<span class="check vermelho" v-else-if="status == 'T'" :content="contentTooltip" v-tippy key="hourglass"> <fa-icon :icon="['fas', 'hourglass']" /> </span> <!-- Status finalizador -->
|
|
64
64
|
</transition>
|
|
65
65
|
|