vue-intergrall-plugins 0.0.202 → 0.0.205
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 +92 -56
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +96 -62
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +15 -5
- package/src/lib-components/Chat/MultipleFilePreview.vue +12 -5
- package/src/lib-components/Chat/SingleFilePreview.vue +23 -2
- package/src/lib-components/Chat/StandardMessages.vue +3 -15
- package/src/lib-components/Chat/TextFooter.vue +18 -6
|
@@ -3149,8 +3149,13 @@ var BtnMic = __vue_component__$v;//
|
|
|
3149
3149
|
//
|
|
3150
3150
|
//
|
|
3151
3151
|
//
|
|
3152
|
+
//
|
|
3152
3153
|
var script$n = {
|
|
3153
3154
|
props: {
|
|
3155
|
+
textId: {
|
|
3156
|
+
type: String,
|
|
3157
|
+
required: true
|
|
3158
|
+
},
|
|
3154
3159
|
dictionary: {
|
|
3155
3160
|
type: Object,
|
|
3156
3161
|
required: true
|
|
@@ -3177,12 +3182,22 @@ var script$n = {
|
|
|
3177
3182
|
required: false
|
|
3178
3183
|
}
|
|
3179
3184
|
},
|
|
3185
|
+
mounted: function mounted() {
|
|
3186
|
+
this.setPosition();
|
|
3187
|
+
},
|
|
3180
3188
|
methods: {
|
|
3181
3189
|
deleteFile: function deleteFile() {
|
|
3182
3190
|
this.$emit("delete-file");
|
|
3183
3191
|
},
|
|
3184
3192
|
openImage: function openImage() {
|
|
3185
3193
|
this.$emit("open-image");
|
|
3194
|
+
},
|
|
3195
|
+
setPosition: function setPosition() {
|
|
3196
|
+
try {
|
|
3197
|
+
this.$refs["sfp-".concat(this.textId)].parentElement.style.bottom = "".concat(this.$root.$refs["tf-".concat(this.textId)].$el.offsetHeight, "px");
|
|
3198
|
+
} catch (e) {
|
|
3199
|
+
console.error("Erro ao setar a posicao do single file preview: ", e);
|
|
3200
|
+
}
|
|
3186
3201
|
}
|
|
3187
3202
|
}
|
|
3188
3203
|
};/* script */
|
|
@@ -3196,11 +3211,22 @@ var __vue_render__$n = function __vue_render__() {
|
|
|
3196
3211
|
|
|
3197
3212
|
var _c = _vm._self._c || _h;
|
|
3198
3213
|
|
|
3199
|
-
return _c('div', {
|
|
3214
|
+
return _vm.textId ? _c('div', {
|
|
3215
|
+
ref: "sfp-" + _vm.textId,
|
|
3200
3216
|
staticClass: "single-file-preview"
|
|
3201
|
-
}, [
|
|
3217
|
+
}, [_c('fa-icon', {
|
|
3218
|
+
staticClass: "close-icon",
|
|
3202
3219
|
attrs: {
|
|
3203
3220
|
"icon": ['fas', 'times-circle']
|
|
3221
|
+
},
|
|
3222
|
+
on: {
|
|
3223
|
+
"click": function click($event) {
|
|
3224
|
+
return _vm.$emit('close');
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.dictionary.msg_cancelar_anexo) + " class=\"text-footer-exclude-file\">", "</span>", [_c('fa-icon', {
|
|
3228
|
+
attrs: {
|
|
3229
|
+
"icon": ['fas', 'trash-alt']
|
|
3204
3230
|
}
|
|
3205
3231
|
})], 1), _vm._ssrNode(" "), _vm.fileFormatError ? _vm._ssrNode("<div class=\"text-footer-invalid-format\">", "</div>", [_vm._ssrNode("<h3>" + _vm._ssrEscape(_vm._s(_vm.dictionary.titulo_msg_formato_invalido)) + "</h3> <h4>" + _vm._ssrEscape(_vm._s(_vm.validFileFormats)) + "</h4>")], 2) : [_vm.file.name ? _vm._ssrNode("<h3 class=\"text-footer-preview-title\">", "</h3>", [_vm.isDoc ? _c('fa-icon', {
|
|
3206
3232
|
attrs: {
|
|
@@ -3210,7 +3236,7 @@ var __vue_render__$n = function __vue_render__() {
|
|
|
3210
3236
|
attrs: {
|
|
3211
3237
|
"icon": ['fas', 'image']
|
|
3212
3238
|
}
|
|
3213
|
-
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.file.name) + "\n "))], 2) : _vm._e(), _vm._ssrNode(" " + (_vm.imagePreview ? "<div class=\"text-footer-image-preview\"><img" + _vm._ssrAttr("src", _vm.imagePreview) + _vm._ssrAttr("alt", _vm.dictionary.alt_previa_img) + "></div>" : "<!---->"))]], 2);
|
|
3239
|
+
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.file.name) + "\n "))], 2) : _vm._e(), _vm._ssrNode(" " + (_vm.imagePreview ? "<div class=\"text-footer-image-preview\"><img" + _vm._ssrAttr("src", _vm.imagePreview) + _vm._ssrAttr("alt", _vm.dictionary.alt_previa_img) + "></div>" : "<!---->"))]], 2) : _vm._e();
|
|
3214
3240
|
};
|
|
3215
3241
|
|
|
3216
3242
|
var __vue_staticRenderFns__$n = [];
|
|
@@ -3218,8 +3244,8 @@ var __vue_staticRenderFns__$n = [];
|
|
|
3218
3244
|
|
|
3219
3245
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
3220
3246
|
if (!inject) return;
|
|
3221
|
-
inject("data-v-
|
|
3222
|
-
source: ".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%}",
|
|
3247
|
+
inject("data-v-bd51f352_0", {
|
|
3248
|
+
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%}",
|
|
3223
3249
|
map: undefined,
|
|
3224
3250
|
media: undefined
|
|
3225
3251
|
});
|
|
@@ -3230,7 +3256,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
3230
3256
|
var __vue_scope_id__$n = undefined;
|
|
3231
3257
|
/* module identifier */
|
|
3232
3258
|
|
|
3233
|
-
var __vue_module_identifier__$n = "data-v-
|
|
3259
|
+
var __vue_module_identifier__$n = "data-v-bd51f352";
|
|
3234
3260
|
/* functional template */
|
|
3235
3261
|
|
|
3236
3262
|
var __vue_is_functional_template__$n = false;
|
|
@@ -3330,7 +3356,17 @@ var __vue_render__$m = function __vue_render__() {
|
|
|
3330
3356
|
|
|
3331
3357
|
return _c('div', {
|
|
3332
3358
|
staticClass: "multiple-file-preview"
|
|
3333
|
-
}, [_c('
|
|
3359
|
+
}, [_c('fa-icon', {
|
|
3360
|
+
staticClass: "close-icon",
|
|
3361
|
+
attrs: {
|
|
3362
|
+
"icon": ['fas', 'times-circle']
|
|
3363
|
+
},
|
|
3364
|
+
on: {
|
|
3365
|
+
"click": function click($event) {
|
|
3366
|
+
return _vm.$emit('close');
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
}), _vm._ssrNode(" "), _c('transition-group', {
|
|
3334
3370
|
attrs: {
|
|
3335
3371
|
"name": "fade"
|
|
3336
3372
|
}
|
|
@@ -3405,10 +3441,10 @@ var __vue_render__$m = function __vue_render__() {
|
|
|
3405
3441
|
}
|
|
3406
3442
|
}, [_c('fa-icon', {
|
|
3407
3443
|
attrs: {
|
|
3408
|
-
"icon": ['fas', '
|
|
3444
|
+
"icon": ['fas', 'trash-alt']
|
|
3409
3445
|
}
|
|
3410
3446
|
})], 1)]);
|
|
3411
|
-
})], 2)],
|
|
3447
|
+
})], 2)], 2);
|
|
3412
3448
|
};
|
|
3413
3449
|
|
|
3414
3450
|
var __vue_staticRenderFns__$m = [];
|
|
@@ -3416,8 +3452,8 @@ var __vue_staticRenderFns__$m = [];
|
|
|
3416
3452
|
|
|
3417
3453
|
var __vue_inject_styles__$m = function __vue_inject_styles__(inject) {
|
|
3418
3454
|
if (!inject) return;
|
|
3419
|
-
inject("data-v-
|
|
3420
|
-
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::-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;color:#e74c3c}.small-img .pdf svg{z-index:1}.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;
|
|
3455
|
+
inject("data-v-28d9ba6f_0", {
|
|
3456
|
+
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;color:#e74c3c}.small-img .pdf svg{z-index:1}.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}",
|
|
3421
3457
|
map: undefined,
|
|
3422
3458
|
media: undefined
|
|
3423
3459
|
});
|
|
@@ -3428,7 +3464,7 @@ var __vue_inject_styles__$m = function __vue_inject_styles__(inject) {
|
|
|
3428
3464
|
var __vue_scope_id__$m = undefined;
|
|
3429
3465
|
/* module identifier */
|
|
3430
3466
|
|
|
3431
|
-
var __vue_module_identifier__$m = "data-v-
|
|
3467
|
+
var __vue_module_identifier__$m = "data-v-28d9ba6f";
|
|
3432
3468
|
/* functional template */
|
|
3433
3469
|
|
|
3434
3470
|
var __vue_is_functional_template__$m = false;
|
|
@@ -3640,6 +3676,7 @@ var script$l = {
|
|
|
3640
3676
|
},
|
|
3641
3677
|
toggleFilePreview: function toggleFilePreview() {
|
|
3642
3678
|
this.showFilePreview = !this.showFilePreview;
|
|
3679
|
+
if (this.showFilePreview && this.openFiles) this.toggleFiles();
|
|
3643
3680
|
},
|
|
3644
3681
|
emitFileVars: function emitFileVars() {
|
|
3645
3682
|
var vars = {
|
|
@@ -3695,7 +3732,7 @@ var __vue_render__$l = function __vue_render__() {
|
|
|
3695
3732
|
return _c('span', {
|
|
3696
3733
|
staticClass: "text-footer-actions--btn",
|
|
3697
3734
|
class: {
|
|
3698
|
-
'files-activated': _vm.openFiles || _vm.file.length
|
|
3735
|
+
'files-activated': _vm.openFiles || _vm.file.length || _vm.file.name
|
|
3699
3736
|
},
|
|
3700
3737
|
on: {
|
|
3701
3738
|
"click": function click($event) {
|
|
@@ -3734,7 +3771,7 @@ var __vue_render__$l = function __vue_render__() {
|
|
|
3734
3771
|
class: {
|
|
3735
3772
|
'horizontal': _vm.cssStyle.outsideButtons
|
|
3736
3773
|
}
|
|
3737
|
-
}, [_c('div', {
|
|
3774
|
+
}, [!_vm.fileSettings.multiple ? [_c('div', {
|
|
3738
3775
|
staticClass: "files-btn images",
|
|
3739
3776
|
class: {
|
|
3740
3777
|
'margin-bottom': _vm.cssStyle.outsideButtons
|
|
@@ -3765,7 +3802,25 @@ var __vue_render__$l = function __vue_render__() {
|
|
|
3765
3802
|
attrs: {
|
|
3766
3803
|
"icon": ['fas', 'file-alt']
|
|
3767
3804
|
}
|
|
3768
|
-
})], 1)
|
|
3805
|
+
})], 1)] : _c('div', {
|
|
3806
|
+
staticClass: "files-btn both",
|
|
3807
|
+
attrs: {
|
|
3808
|
+
"title": _vm.dictionary.title_anexo_arq
|
|
3809
|
+
},
|
|
3810
|
+
on: {
|
|
3811
|
+
"click": function click($event) {
|
|
3812
|
+
return _vm.openSelectFileHandler('both');
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
}, [_c('fa-icon', {
|
|
3816
|
+
attrs: {
|
|
3817
|
+
"icon": ['fas', 'image']
|
|
3818
|
+
}
|
|
3819
|
+
}), _vm._v(" "), _c('fa-icon', {
|
|
3820
|
+
attrs: {
|
|
3821
|
+
"icon": ['fas', 'file-alt']
|
|
3822
|
+
}
|
|
3823
|
+
})], 1), _vm._v(" "), _vm.fileSettings.systemButton ? _c('div', {
|
|
3769
3824
|
staticClass: "files-btn system",
|
|
3770
3825
|
attrs: {
|
|
3771
3826
|
"title": _vm.dictionary.title_anexo_sistema
|
|
@@ -3779,7 +3834,7 @@ var __vue_render__$l = function __vue_render__() {
|
|
|
3779
3834
|
attrs: {
|
|
3780
3835
|
"icon": ['fas', 'server']
|
|
3781
3836
|
}
|
|
3782
|
-
})], 1)]) : _vm._e()]), _vm._ssrNode(" <div class=\"files-pointers d-none\">" + (_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "both-" + _vm.textId) + " accept=\"image/*,application/*\" multiple=\"multiple\">" : "<!---->") + " " + (!_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "img-" + _vm.textId) + " accept=\"image/*\">" : "<!---->") + " " + (!_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "doc-" + _vm.textId) + " accept=\"application/*\">" : "<!---->") + "</div> "), _c('transition', {
|
|
3837
|
+
})], 1) : _vm._e()], 2) : _vm._e()]), _vm._ssrNode(" <div class=\"files-pointers d-none\">" + (_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "both-" + _vm.textId) + " accept=\"image/*,application/*\" multiple=\"multiple\">" : "<!---->") + " " + (!_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "img-" + _vm.textId) + " accept=\"image/*\">" : "<!---->") + " " + (!_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "doc-" + _vm.textId) + " accept=\"application/*\">" : "<!---->") + "</div> "), _c('transition', {
|
|
3783
3838
|
attrs: {
|
|
3784
3839
|
"name": "fade"
|
|
3785
3840
|
}
|
|
@@ -3809,11 +3864,13 @@ var __vue_render__$l = function __vue_render__() {
|
|
|
3809
3864
|
"isDoc": _vm.isDoc,
|
|
3810
3865
|
"fileFormatError": _vm.fileFormatError,
|
|
3811
3866
|
"validFileFormats": _vm.validFileFormats,
|
|
3812
|
-
"imagePreview": _vm.imagePreview
|
|
3867
|
+
"imagePreview": _vm.imagePreview,
|
|
3868
|
+
"textId": _vm.textId
|
|
3813
3869
|
},
|
|
3814
3870
|
on: {
|
|
3815
3871
|
"delete-file": _vm.deleteFile,
|
|
3816
|
-
"open-image": _vm.openImage
|
|
3872
|
+
"open-image": _vm.openImage,
|
|
3873
|
+
"close": _vm.away
|
|
3817
3874
|
}
|
|
3818
3875
|
}) : _vm.fileSettings.multiple && _vm.showFilePreview ? _c('MultipleFilePreview', {
|
|
3819
3876
|
attrs: {
|
|
@@ -3825,7 +3882,8 @@ var __vue_render__$l = function __vue_render__() {
|
|
|
3825
3882
|
on: {
|
|
3826
3883
|
"delete-file": _vm.deleteFile,
|
|
3827
3884
|
"delete-specific-file": _vm.deleteSpecificFile,
|
|
3828
|
-
"open-image": _vm.openImage
|
|
3885
|
+
"open-image": _vm.openImage,
|
|
3886
|
+
"close": _vm.away
|
|
3829
3887
|
}
|
|
3830
3888
|
}) : _vm._e()], 1)])], 2);
|
|
3831
3889
|
};
|
|
@@ -3835,7 +3893,7 @@ var __vue_staticRenderFns__$l = [];
|
|
|
3835
3893
|
|
|
3836
3894
|
var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
3837
3895
|
if (!inject) return;
|
|
3838
|
-
inject("data-v-
|
|
3896
|
+
inject("data-v-d44e0484_0", {
|
|
3839
3897
|
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}",
|
|
3840
3898
|
map: undefined,
|
|
3841
3899
|
media: undefined
|
|
@@ -3847,7 +3905,7 @@ var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
|
3847
3905
|
var __vue_scope_id__$l = undefined;
|
|
3848
3906
|
/* module identifier */
|
|
3849
3907
|
|
|
3850
|
-
var __vue_module_identifier__$l = "data-v-
|
|
3908
|
+
var __vue_module_identifier__$l = "data-v-d44e0484";
|
|
3851
3909
|
/* functional template */
|
|
3852
3910
|
|
|
3853
3911
|
var __vue_is_functional_template__$l = false;
|
|
@@ -7780,7 +7838,7 @@ var axios_1 = axios$1;
|
|
|
7780
7838
|
var _default = axios$1;
|
|
7781
7839
|
axios_1.default = _default;var axios = axios_1;vue__default["default"].prototype.$httpRequest = axios;
|
|
7782
7840
|
var domain = window.location.hostname == 'localhost' ? "https://linux07" : "https://".concat(window.location.hostname) + "/im";
|
|
7783
|
-
var route = "/
|
|
7841
|
+
var route = "/smartChannel/v1/api.php"; // const route = `atdHumano/middleware/smartchannel_api.php`
|
|
7784
7842
|
|
|
7785
7843
|
var baseURL = "".concat(domain).concat(route);
|
|
7786
7844
|
var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var standardMessages = {
|
|
@@ -7797,7 +7855,7 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
|
|
|
7797
7855
|
return _context.abrupt("return", _this.$httpRequest({
|
|
7798
7856
|
method: 'get',
|
|
7799
7857
|
url: "".concat(baseURL, "/messages/").concat(type, "?token_cliente=").concat(token).concat(dev) // headers: {
|
|
7800
|
-
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
7858
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VUUnd3aW00bDV3d0piTHczb2xPYWtTbWxab283Q1F2MDY3V3pWR2E3VkhDQ2FMUEdsS2VQIiwibWFuYWdlciI6Ik1LVXFCcGtGUjNCTkhrbTZ5Znd3aW00bDV3d0l2Tlk0MDZrMzQ3SVdkRnNnRUY4Y3RIaDlQdngiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOltdLCJhdXRoIjoiTUtVdXdGZjdjMXd3eGI0NGF3d1F4eGlia3N2NW5YR2FxOWZVNkxMYnAzQ0tkS1NHa0RvbWV4ZiIsImlhdCI6MTY0ODgxMjYzOSwiZXhwIjoxNjQ4ODk5MDM5fQ.IMpYYLoxiX566-Y2fqNlJu0qBkEyOOTWZ25UqeOyPUs"
|
|
7801
7859
|
// }
|
|
7802
7860
|
|
|
7803
7861
|
}).then(function (response) {
|
|
@@ -7872,7 +7930,7 @@ var script$i = {
|
|
|
7872
7930
|
key_2: "",
|
|
7873
7931
|
formatted_messages_3: [],
|
|
7874
7932
|
key_3: "",
|
|
7875
|
-
loadingReq:
|
|
7933
|
+
loadingReq: true
|
|
7876
7934
|
};
|
|
7877
7935
|
},
|
|
7878
7936
|
mounted: function mounted() {
|
|
@@ -7927,6 +7985,8 @@ var script$i = {
|
|
|
7927
7985
|
|
|
7928
7986
|
_this.$toasted.global.defaultError();
|
|
7929
7987
|
|
|
7988
|
+
_this.closeStandardMessages();
|
|
7989
|
+
|
|
7930
7990
|
console.error("Error in getStandardMessages: ", e);
|
|
7931
7991
|
});
|
|
7932
7992
|
} catch (e) {
|
|
@@ -8042,34 +8102,7 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
8042
8102
|
|
|
8043
8103
|
return _c('div', {
|
|
8044
8104
|
staticClass: "text-footer-hsm-container"
|
|
8045
|
-
}, [_c('
|
|
8046
|
-
staticClass: "text-footer-v-select",
|
|
8047
|
-
style: "background-color: " + _vm.backgroundColor,
|
|
8048
|
-
attrs: {
|
|
8049
|
-
"appendToBody": "",
|
|
8050
|
-
"calculatePosition": _vm.calculateSelectPosition,
|
|
8051
|
-
"options": _vm.formatted_messages_1,
|
|
8052
|
-
"label": "value",
|
|
8053
|
-
"reduce": function reduce(formatted_messages_1) {
|
|
8054
|
-
return formatted_messages_1.cod;
|
|
8055
|
-
}
|
|
8056
|
-
},
|
|
8057
|
-
on: {
|
|
8058
|
-
"input": _vm.inputSelectKey1
|
|
8059
|
-
},
|
|
8060
|
-
model: {
|
|
8061
|
-
value: _vm.key_1,
|
|
8062
|
-
callback: function callback($$v) {
|
|
8063
|
-
_vm.key_1 = $$v;
|
|
8064
|
-
},
|
|
8065
|
-
expression: "key_1"
|
|
8066
|
-
}
|
|
8067
|
-
}, [_c('div', {
|
|
8068
|
-
attrs: {
|
|
8069
|
-
"slot": "no-options"
|
|
8070
|
-
},
|
|
8071
|
-
slot: "no-options"
|
|
8072
|
-
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"transition-selects\">", "</div>", [_c('transition', {
|
|
8105
|
+
}, [_vm._ssrNode("<div class=\"transition-selects\">", "</div>", [_c('transition', {
|
|
8073
8106
|
attrs: {
|
|
8074
8107
|
"name": "fade",
|
|
8075
8108
|
"mode": "out-in"
|
|
@@ -8142,7 +8175,7 @@ var __vue_render__$i = function __vue_render__() {
|
|
|
8142
8175
|
slot: "no-options"
|
|
8143
8176
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])])], 1) : _vm.key_2 && _vm.loadingReq ? _c('div', {
|
|
8144
8177
|
staticClass: "loader-select"
|
|
8145
|
-
}, [_c('VueLoader')], 1) : _vm._e()])], 2)]
|
|
8178
|
+
}, [_c('VueLoader')], 1) : _vm._e()])], 2)]);
|
|
8146
8179
|
};
|
|
8147
8180
|
|
|
8148
8181
|
var __vue_staticRenderFns__$i = [];
|
|
@@ -8150,7 +8183,7 @@ var __vue_staticRenderFns__$i = [];
|
|
|
8150
8183
|
|
|
8151
8184
|
var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
8152
8185
|
if (!inject) return;
|
|
8153
|
-
inject("data-v-
|
|
8186
|
+
inject("data-v-4e81952e_0", {
|
|
8154
8187
|
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}",
|
|
8155
8188
|
map: undefined,
|
|
8156
8189
|
media: undefined
|
|
@@ -8162,7 +8195,7 @@ var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
|
8162
8195
|
var __vue_scope_id__$i = undefined;
|
|
8163
8196
|
/* module identifier */
|
|
8164
8197
|
|
|
8165
|
-
var __vue_module_identifier__$i = "data-v-
|
|
8198
|
+
var __vue_module_identifier__$i = "data-v-4e81952e";
|
|
8166
8199
|
/* functional template */
|
|
8167
8200
|
|
|
8168
8201
|
var __vue_is_functional_template__$i = false;
|
|
@@ -8251,7 +8284,8 @@ var script$h = {
|
|
|
8251
8284
|
return {
|
|
8252
8285
|
docsExtensions: "",
|
|
8253
8286
|
imagesExtensions: "",
|
|
8254
|
-
multiple: false
|
|
8287
|
+
multiple: false,
|
|
8288
|
+
systemButton: false
|
|
8255
8289
|
};
|
|
8256
8290
|
},
|
|
8257
8291
|
required: false
|
|
@@ -8685,7 +8719,7 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
8685
8719
|
attrs: {
|
|
8686
8720
|
"icon": ['fas', 'paper-plane']
|
|
8687
8721
|
}
|
|
8688
|
-
})], 1)]) : _vm._e(), _vm._ssrNode(" "), _vm.buttons.hasFiles || _vm.buttons.hasAudio || _vm.buttons.hasExpand ? _vm._ssrNode("<div" + _vm._ssrClass("text-footer-actions", {
|
|
8722
|
+
})], 1)]) : _vm._e(), _vm._ssrNode(" "), _vm.buttons.hasFiles || _vm.buttons.hasAudio || _vm.buttons.hasExpand || _vm.formattedMessageSettings.hasStandardMessages ? _vm._ssrNode("<div" + _vm._ssrClass("text-footer-actions", {
|
|
8689
8723
|
'outside-buttons': _vm.cssStyle.outsideButtons && !_vm.audioFile
|
|
8690
8724
|
}) + ">", "</div>", [_c('BtnMic', {
|
|
8691
8725
|
directives: [{
|
|
@@ -8705,8 +8739,8 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
8705
8739
|
directives: [{
|
|
8706
8740
|
name: "show",
|
|
8707
8741
|
rawName: "v-show",
|
|
8708
|
-
value: _vm.formattedMessageSettings.hasStandardMessages,
|
|
8709
|
-
expression: "formattedMessageSettings.hasStandardMessages"
|
|
8742
|
+
value: _vm.formattedMessageSettings.hasStandardMessages && !_vm.audioFile,
|
|
8743
|
+
expression: "formattedMessageSettings.hasStandardMessages && !audioFile"
|
|
8710
8744
|
}],
|
|
8711
8745
|
ref: _vm.textId + "-standard-messages",
|
|
8712
8746
|
attrs: {
|
|
@@ -8781,8 +8815,8 @@ var __vue_staticRenderFns__$h = [];
|
|
|
8781
8815
|
|
|
8782
8816
|
var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
8783
8817
|
if (!inject) return;
|
|
8784
|
-
inject("data-v-
|
|
8785
|
-
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;margin-
|
|
8818
|
+
inject("data-v-48659e85_0", {
|
|
8819
|
+
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}",
|
|
8786
8820
|
map: undefined,
|
|
8787
8821
|
media: undefined
|
|
8788
8822
|
});
|
|
@@ -8793,7 +8827,7 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
|
8793
8827
|
var __vue_scope_id__$h = undefined;
|
|
8794
8828
|
/* module identifier */
|
|
8795
8829
|
|
|
8796
|
-
var __vue_module_identifier__$h = "data-v-
|
|
8830
|
+
var __vue_module_identifier__$h = "data-v-48659e85";
|
|
8797
8831
|
/* functional template */
|
|
8798
8832
|
|
|
8799
8833
|
var __vue_is_functional_template__$h = false;
|
package/package.json
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span class="text-footer-actions--btn" :class="{'files-activated' : openFiles || file.length}" @click="openFilesByClip()">
|
|
2
|
+
<span class="text-footer-actions--btn" :class="{'files-activated' : openFiles || file.length || file.name}" @click="openFilesByClip()">
|
|
3
3
|
<transition name="fade">
|
|
4
4
|
<span v-if="fileSize > 0" class="files-counter" v-text="fileSize" @click.stop="toggleFilePreview" :title="dictionary.msg_abrir_anexos"></span>
|
|
5
5
|
</transition>
|
|
6
6
|
<fa-icon :icon="['fas', 'paperclip']" :title="dictionary.title_selecionar_anexo" />
|
|
7
7
|
<transition name="show">
|
|
8
8
|
<div v-if="openFiles && hasButtonFiles" class="text-footer-files-container" :class="{'horizontal' : cssStyle.outsideButtons}">
|
|
9
|
-
<
|
|
9
|
+
<template v-if="!fileSettings.multiple">
|
|
10
|
+
<div class="files-btn images" :class="{'margin-bottom' : cssStyle.outsideButtons}" :title="dictionary.title_anexo_img" @click="openSelectFileHandler('img')">
|
|
11
|
+
<fa-icon :icon="['fas', 'image']" />
|
|
12
|
+
</div>
|
|
13
|
+
<div class="files-btn docs" :title="dictionary.title_anexo_doc" @click="openSelectFileHandler('doc')">
|
|
14
|
+
<fa-icon :icon="['fas', 'file-alt']" />
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
<div v-else class="files-btn both" :title="dictionary.title_anexo_arq" @click="openSelectFileHandler('both')">
|
|
10
18
|
<fa-icon :icon="['fas', 'image']" />
|
|
11
|
-
</div>
|
|
12
|
-
<div class="files-btn docs" :title="dictionary.title_anexo_doc" @click="openSelectFileHandler('doc')">
|
|
13
19
|
<fa-icon :icon="['fas', 'file-alt']" />
|
|
14
20
|
</div>
|
|
15
|
-
<div class="files-btn system" :title="dictionary.title_anexo_sistema" @click="openSelectFileHandler('system')">
|
|
21
|
+
<div v-if="fileSettings.systemButton" class="files-btn system" :title="dictionary.title_anexo_sistema" @click="openSelectFileHandler('system')">
|
|
16
22
|
<fa-icon :icon="['fas', 'server']" />
|
|
17
23
|
</div>
|
|
18
24
|
</div>
|
|
@@ -32,8 +38,10 @@
|
|
|
32
38
|
:fileFormatError="fileFormatError"
|
|
33
39
|
:validFileFormats="validFileFormats"
|
|
34
40
|
:imagePreview="imagePreview"
|
|
41
|
+
:textId="textId"
|
|
35
42
|
@delete-file="deleteFile"
|
|
36
43
|
@open-image="openImage"
|
|
44
|
+
@close="away"
|
|
37
45
|
/>
|
|
38
46
|
<MultipleFilePreview
|
|
39
47
|
v-else-if="fileSettings.multiple && showFilePreview"
|
|
@@ -44,6 +52,7 @@
|
|
|
44
52
|
@delete-file="deleteFile"
|
|
45
53
|
@delete-specific-file="deleteSpecificFile"
|
|
46
54
|
@open-image="openImage"
|
|
55
|
+
@close="away"
|
|
47
56
|
/>
|
|
48
57
|
</div>
|
|
49
58
|
</transition>
|
|
@@ -265,6 +274,7 @@ export default {
|
|
|
265
274
|
},
|
|
266
275
|
toggleFilePreview() {
|
|
267
276
|
this.showFilePreview = !this.showFilePreview
|
|
277
|
+
if(this.showFilePreview && this.openFiles) this.toggleFiles()
|
|
268
278
|
},
|
|
269
279
|
emitFileVars() {
|
|
270
280
|
const vars = { file: this.file, isDoc: this.isDoc, imagePreview: this.imagePreview, fileFormatError: this.fileFormatError, hasAnyFile: this.hasAnyFile }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="multiple-file-preview">
|
|
3
|
+
<fa-icon :icon="['fas', 'times-circle']" class="close-icon" @click="$emit('close')" />
|
|
3
4
|
<transition-group name="fade">
|
|
4
5
|
<Loader v-if="loading" key="mfp-loader" />
|
|
5
6
|
<template v-else-if="fileFormatError">
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
</span>
|
|
35
36
|
</div>
|
|
36
37
|
<span @click="deleteSpecificFile(singleFile.name, index)" :title="dictionary.msg_excluir_anexo" class="delete-file">
|
|
37
|
-
<fa-icon :icon="['fas', '
|
|
38
|
+
<fa-icon :icon="['fas', 'trash-alt']" />
|
|
38
39
|
</span>
|
|
39
40
|
</div>
|
|
40
41
|
</template>
|
|
@@ -116,6 +117,16 @@ export default {
|
|
|
116
117
|
width: 4px;
|
|
117
118
|
}
|
|
118
119
|
|
|
120
|
+
.multiple-file-preview .close-icon {
|
|
121
|
+
color: #E74C3C;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
opacity: .9;
|
|
124
|
+
transition: opacity 300ms;
|
|
125
|
+
}
|
|
126
|
+
.multiple-file-preview .close-icon:hover {
|
|
127
|
+
opacity: 1;
|
|
128
|
+
}
|
|
129
|
+
|
|
119
130
|
.multiple-file-preview::-webkit-scrollbar-track{
|
|
120
131
|
background-color: rgba(0, 0, 0, 0.2);
|
|
121
132
|
}
|
|
@@ -236,10 +247,6 @@ export default {
|
|
|
236
247
|
display: flex;
|
|
237
248
|
justify-content: center;
|
|
238
249
|
align-items: center;
|
|
239
|
-
border-radius: 50%;
|
|
240
|
-
background-color: #FFF;
|
|
241
|
-
min-width: 1rem;
|
|
242
|
-
min-height: 1rem;
|
|
243
250
|
cursor: pointer;
|
|
244
251
|
}
|
|
245
252
|
.delete-file > svg {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="single-file-preview">
|
|
2
|
+
<div v-if="textId" class="single-file-preview" :ref="`sfp-${textId}`">
|
|
3
|
+
<fa-icon :icon="['fas', 'times-circle']" class="close-icon" @click="$emit('close')" />
|
|
3
4
|
<span @click="deleteFile" :title="dictionary.msg_cancelar_anexo" class="text-footer-exclude-file">
|
|
4
|
-
<fa-icon :icon="['fas', '
|
|
5
|
+
<fa-icon :icon="['fas', 'trash-alt']" />
|
|
5
6
|
</span>
|
|
6
7
|
<div class="text-footer-invalid-format" v-if="fileFormatError">
|
|
7
8
|
<h3 v-text="dictionary.titulo_msg_formato_invalido"></h3>
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
<script>
|
|
24
25
|
export default {
|
|
25
26
|
props: {
|
|
27
|
+
textId: { type: String, required: true },
|
|
26
28
|
dictionary: { type: Object, required: true },
|
|
27
29
|
file: { type: File, required: false },
|
|
28
30
|
isDoc: { type: Boolean, required: false },
|
|
@@ -30,18 +32,37 @@ export default {
|
|
|
30
32
|
validFileFormats: { type: String, required: false, default: "" },
|
|
31
33
|
imagePreview: { type: String, required: false }
|
|
32
34
|
},
|
|
35
|
+
mounted() {
|
|
36
|
+
this.setPosition()
|
|
37
|
+
},
|
|
33
38
|
methods: {
|
|
34
39
|
deleteFile() {
|
|
35
40
|
this.$emit("delete-file")
|
|
36
41
|
},
|
|
37
42
|
openImage() {
|
|
38
43
|
this.$emit("open-image")
|
|
44
|
+
},
|
|
45
|
+
setPosition() {
|
|
46
|
+
try {
|
|
47
|
+
this.$refs[`sfp-${this.textId}`].parentElement.style.bottom = `${this.$root.$refs[`tf-${this.textId}`].$el.offsetHeight}px`
|
|
48
|
+
}catch(e) {
|
|
49
|
+
console.error("Erro ao setar a posicao do single file preview: ", e)
|
|
50
|
+
}
|
|
39
51
|
}
|
|
40
52
|
}
|
|
41
53
|
}
|
|
42
54
|
</script>
|
|
43
55
|
|
|
44
56
|
<style>
|
|
57
|
+
.single-file-preview .close-icon {
|
|
58
|
+
color: #E74C3C;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
opacity: .9;
|
|
61
|
+
transition: opacity 300ms;
|
|
62
|
+
}
|
|
63
|
+
.single-file-preview .close-icon:hover {
|
|
64
|
+
opacity: 1;
|
|
65
|
+
}
|
|
45
66
|
.text-footer-invalid-format {
|
|
46
67
|
color: #222;
|
|
47
68
|
padding: 10px;
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="text-footer-hsm-container">
|
|
3
|
-
<v-select
|
|
4
|
-
appendToBody
|
|
5
|
-
:calculatePosition="calculateSelectPosition"
|
|
6
|
-
:style="`background-color: ${backgroundColor}`"
|
|
7
|
-
class="text-footer-v-select"
|
|
8
|
-
:options="formatted_messages_1"
|
|
9
|
-
label="value"
|
|
10
|
-
v-model="key_1"
|
|
11
|
-
:reduce="formatted_messages_1 => formatted_messages_1.cod"
|
|
12
|
-
@input="inputSelectKey1"
|
|
13
|
-
>
|
|
14
|
-
<div slot="no-options"> {{ dictionary.msg_sem_resultados }} </div>
|
|
15
|
-
</v-select>
|
|
16
3
|
<div class="transition-selects">
|
|
17
4
|
<transition name="fade" mode="out-in">
|
|
18
5
|
<div v-if="formatted_messages_2.length && key_1">
|
|
@@ -114,7 +101,7 @@ export default {
|
|
|
114
101
|
key_2: "",
|
|
115
102
|
formatted_messages_3: [],
|
|
116
103
|
key_3: "",
|
|
117
|
-
loadingReq:
|
|
104
|
+
loadingReq: true
|
|
118
105
|
}
|
|
119
106
|
},
|
|
120
107
|
mounted() {
|
|
@@ -158,7 +145,8 @@ export default {
|
|
|
158
145
|
}).catch(e => {
|
|
159
146
|
this.loadingReq = false
|
|
160
147
|
this.$toasted.global.defaultError()
|
|
161
|
-
|
|
148
|
+
this.closeStandardMessages()
|
|
149
|
+
console.error("Error in getStandardMessages: ", e)
|
|
162
150
|
})
|
|
163
151
|
}catch(e) {
|
|
164
152
|
this.loadingReq = false
|