vue-intergrall-plugins 0.0.151 → 0.0.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue-intergrall-plugins.esm.js +40 -8
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +41 -11
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +12 -2
- package/src/lib-components/Chat/SingleFilePreview.vue +1 -1
- package/src/lib-components/Chat/TextFooter.vue +8 -1
|
@@ -3060,7 +3060,7 @@ var script$j = {
|
|
|
3060
3060
|
},
|
|
3061
3061
|
file: {
|
|
3062
3062
|
type: File,
|
|
3063
|
-
required:
|
|
3063
|
+
required: false
|
|
3064
3064
|
},
|
|
3065
3065
|
isDoc: {
|
|
3066
3066
|
type: Boolean,
|
|
@@ -3121,7 +3121,7 @@ var __vue_staticRenderFns__$j = [];
|
|
|
3121
3121
|
|
|
3122
3122
|
var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
3123
3123
|
if (!inject) return;
|
|
3124
|
-
inject("data-v-
|
|
3124
|
+
inject("data-v-da00a08e_0", {
|
|
3125
3125
|
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%}",
|
|
3126
3126
|
map: undefined,
|
|
3127
3127
|
media: undefined
|
|
@@ -3133,7 +3133,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
|
3133
3133
|
var __vue_scope_id__$j = undefined;
|
|
3134
3134
|
/* module identifier */
|
|
3135
3135
|
|
|
3136
|
-
var __vue_module_identifier__$j = "data-v-
|
|
3136
|
+
var __vue_module_identifier__$j = "data-v-da00a08e";
|
|
3137
3137
|
/* functional template */
|
|
3138
3138
|
|
|
3139
3139
|
var __vue_is_functional_template__$j = false;
|
|
@@ -3388,6 +3388,13 @@ var script$h = {
|
|
|
3388
3388
|
}
|
|
3389
3389
|
},
|
|
3390
3390
|
methods: {
|
|
3391
|
+
openFilesByClip: function openFilesByClip() {
|
|
3392
|
+
if (this.fileSettings.multiple) {
|
|
3393
|
+
return this.openSelectFileHandler('both');
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
return this.toggleFiles();
|
|
3397
|
+
},
|
|
3391
3398
|
away: function away() {
|
|
3392
3399
|
this.showFilePreview = false;
|
|
3393
3400
|
},
|
|
@@ -3395,6 +3402,11 @@ var script$h = {
|
|
|
3395
3402
|
this.openFiles = !this.openFiles;
|
|
3396
3403
|
},
|
|
3397
3404
|
openSelectFileHandler: function openSelectFileHandler(type) {
|
|
3405
|
+
if (type == "system") {
|
|
3406
|
+
this.$emit("open-file-system", true);
|
|
3407
|
+
return false;
|
|
3408
|
+
}
|
|
3409
|
+
|
|
3398
3410
|
var fileInput = document.querySelector("#".concat(type, "-").concat(this.textId));
|
|
3399
3411
|
if (fileInput) fileInput.click();
|
|
3400
3412
|
if (!fileInput) if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError();
|
|
@@ -3569,7 +3581,7 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
3569
3581
|
},
|
|
3570
3582
|
on: {
|
|
3571
3583
|
"click": function click($event) {
|
|
3572
|
-
|
|
3584
|
+
return _vm.openFilesByClip();
|
|
3573
3585
|
}
|
|
3574
3586
|
}
|
|
3575
3587
|
}, [_c('transition', {
|
|
@@ -3635,6 +3647,20 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
3635
3647
|
attrs: {
|
|
3636
3648
|
"icon": ['fas', 'file-alt']
|
|
3637
3649
|
}
|
|
3650
|
+
})], 1), _vm._v(" "), _c('div', {
|
|
3651
|
+
staticClass: "files-btn system",
|
|
3652
|
+
attrs: {
|
|
3653
|
+
"title": _vm.dictionary.title_anexo_sistema
|
|
3654
|
+
},
|
|
3655
|
+
on: {
|
|
3656
|
+
"click": function click($event) {
|
|
3657
|
+
return _vm.openSelectFileHandler('system');
|
|
3658
|
+
}
|
|
3659
|
+
}
|
|
3660
|
+
}, [_c('fa-icon', {
|
|
3661
|
+
attrs: {
|
|
3662
|
+
"icon": ['fas', 'server']
|
|
3663
|
+
}
|
|
3638
3664
|
})], 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', {
|
|
3639
3665
|
attrs: {
|
|
3640
3666
|
"name": "fade"
|
|
@@ -3658,7 +3684,7 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
3658
3684
|
$event.stopPropagation();
|
|
3659
3685
|
}
|
|
3660
3686
|
}
|
|
3661
|
-
}, [!_vm.fileSettings.multiple ? _c('SingleFilePreview', {
|
|
3687
|
+
}, [!_vm.fileSettings.multiple && _vm.showFilePreview ? _c('SingleFilePreview', {
|
|
3662
3688
|
attrs: {
|
|
3663
3689
|
"dictionary": _vm.dictionary,
|
|
3664
3690
|
"file": _vm.file,
|
|
@@ -3691,7 +3717,7 @@ var __vue_staticRenderFns__$h = [];
|
|
|
3691
3717
|
|
|
3692
3718
|
var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
3693
3719
|
if (!inject) return;
|
|
3694
|
-
inject("data-v-
|
|
3720
|
+
inject("data-v-0ba88cb0_0", {
|
|
3695
3721
|
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}",
|
|
3696
3722
|
map: undefined,
|
|
3697
3723
|
media: undefined
|
|
@@ -3703,7 +3729,7 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
|
3703
3729
|
var __vue_scope_id__$h = undefined;
|
|
3704
3730
|
/* module identifier */
|
|
3705
3731
|
|
|
3706
|
-
var __vue_module_identifier__$h = "data-v-
|
|
3732
|
+
var __vue_module_identifier__$h = "data-v-0ba88cb0";
|
|
3707
3733
|
/* functional template */
|
|
3708
3734
|
|
|
3709
3735
|
var __vue_is_functional_template__$h = false;
|
|
@@ -4059,6 +4085,9 @@ var script$f = {
|
|
|
4059
4085
|
openImage: function openImage(imagePreview) {
|
|
4060
4086
|
this.$emit("open-image", imagePreview);
|
|
4061
4087
|
},
|
|
4088
|
+
openFileSystem: function openFileSystem(status) {
|
|
4089
|
+
this.$emit("open-file-system", status);
|
|
4090
|
+
},
|
|
4062
4091
|
setAudio: function setAudio(audioObj) {
|
|
4063
4092
|
var audioFile = audioObj.audioFile,
|
|
4064
4093
|
audioSource = audioObj.audioSource;
|
|
@@ -4263,7 +4292,8 @@ var __vue_render__$f = function __vue_render__() {
|
|
|
4263
4292
|
},
|
|
4264
4293
|
on: {
|
|
4265
4294
|
"set-file-vars": _vm.setFileVars,
|
|
4266
|
-
"open-image": _vm.openImage
|
|
4295
|
+
"open-image": _vm.openImage,
|
|
4296
|
+
"open-file-system": _vm.openFileSystem
|
|
4267
4297
|
}
|
|
4268
4298
|
}), _vm._ssrNode(" "), _c('BtnExpand', {
|
|
4269
4299
|
directives: [{
|
|
@@ -4288,8 +4318,8 @@ var __vue_staticRenderFns__$f = [];
|
|
|
4288
4318
|
|
|
4289
4319
|
var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
4290
4320
|
if (!inject) return;
|
|
4291
|
-
inject("data-v-
|
|
4292
|
-
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-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}",
|
|
4321
|
+
inject("data-v-0992e314_0", {
|
|
4322
|
+
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-right:5px}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349}.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}",
|
|
4293
4323
|
map: undefined,
|
|
4294
4324
|
media: undefined
|
|
4295
4325
|
});
|
|
@@ -4300,7 +4330,7 @@ var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
|
4300
4330
|
var __vue_scope_id__$f = undefined;
|
|
4301
4331
|
/* module identifier */
|
|
4302
4332
|
|
|
4303
|
-
var __vue_module_identifier__$f = "data-v-
|
|
4333
|
+
var __vue_module_identifier__$f = "data-v-0992e314";
|
|
4304
4334
|
/* functional template */
|
|
4305
4335
|
|
|
4306
4336
|
var __vue_is_functional_template__$f = false;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span class="text-footer-actions--btn" :class="{'files-activated' : openFiles || file.length}" @click="
|
|
2
|
+
<span class="text-footer-actions--btn" :class="{'files-activated' : openFiles || file.length}" @click="openFilesByClip()">
|
|
3
3
|
<transition name="fade">
|
|
4
4
|
<span v-if="file.length" class="files-counter" v-text="file.length" @click.stop="toggleFilePreview" :title="dictionary.msg_abrir_anexos"></span>
|
|
5
5
|
</transition>
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
<div class="files-btn docs" :title="dictionary.title_anexo_doc" @click="openSelectFileHandler('doc')">
|
|
13
13
|
<fa-icon :icon="['fas', 'file-alt']" />
|
|
14
14
|
</div>
|
|
15
|
+
<div class="files-btn system" :title="dictionary.title_anexo_sistema" @click="openSelectFileHandler('system')">
|
|
16
|
+
<fa-icon :icon="['fas', 'server']" />
|
|
17
|
+
</div>
|
|
15
18
|
</div>
|
|
16
19
|
</transition>
|
|
17
20
|
<div class="files-pointers d-none">
|
|
@@ -22,7 +25,7 @@
|
|
|
22
25
|
<transition name="fade">
|
|
23
26
|
<div class="text-footer-preview-container" @click.stop v-show="showFilePreview" :class="[previewContainerClass]" v-on-clickaway="away">
|
|
24
27
|
<SingleFilePreview
|
|
25
|
-
v-if="!fileSettings.multiple"
|
|
28
|
+
v-if="!fileSettings.multiple && showFilePreview"
|
|
26
29
|
:dictionary="dictionary"
|
|
27
30
|
:file="file"
|
|
28
31
|
:isDoc="isDoc"
|
|
@@ -128,6 +131,12 @@ export default {
|
|
|
128
131
|
}
|
|
129
132
|
},
|
|
130
133
|
methods: {
|
|
134
|
+
openFilesByClip(){
|
|
135
|
+
if(this.fileSettings.multiple){
|
|
136
|
+
return this.openSelectFileHandler('both')
|
|
137
|
+
}
|
|
138
|
+
return this.toggleFiles()
|
|
139
|
+
},
|
|
131
140
|
away() {
|
|
132
141
|
this.showFilePreview = false
|
|
133
142
|
},
|
|
@@ -135,6 +144,7 @@ export default {
|
|
|
135
144
|
this.openFiles = !this.openFiles
|
|
136
145
|
},
|
|
137
146
|
openSelectFileHandler(type) {
|
|
147
|
+
if(type == "system"){ this.$emit("open-file-system", true); return false }
|
|
138
148
|
const fileInput = document.querySelector(`#${type}-${this.textId}`)
|
|
139
149
|
if(fileInput) fileInput.click()
|
|
140
150
|
if(!fileInput) if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError()
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
export default {
|
|
25
25
|
props: {
|
|
26
26
|
dictionary: { type: Object, required: true },
|
|
27
|
-
file: { type: File, required:
|
|
27
|
+
file: { type: File, required: false },
|
|
28
28
|
isDoc: { type: Boolean, required: false },
|
|
29
29
|
fileFormatError: { type: Boolean, required: false },
|
|
30
30
|
validFileFormats: { type: String, required: false, default: "" },
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
:ref="`${textId}-file`"
|
|
60
60
|
@set-file-vars="setFileVars"
|
|
61
61
|
@open-image="openImage"
|
|
62
|
+
@open-file-system="openFileSystem"
|
|
62
63
|
/>
|
|
63
64
|
<BtnExpand
|
|
64
65
|
v-show="buttons.hasExpand && !audioFile"
|
|
@@ -311,6 +312,9 @@ export default {
|
|
|
311
312
|
openImage(imagePreview) {
|
|
312
313
|
this.$emit("open-image", imagePreview)
|
|
313
314
|
},
|
|
315
|
+
openFileSystem(status) {
|
|
316
|
+
this.$emit("open-file-system", status)
|
|
317
|
+
},
|
|
314
318
|
setAudio(audioObj) {
|
|
315
319
|
const { audioFile, audioSource } = audioObj
|
|
316
320
|
this.audioFile = audioFile
|
|
@@ -615,7 +619,10 @@ ul {
|
|
|
615
619
|
margin-right: unset;
|
|
616
620
|
margin-bottom: 5px; }
|
|
617
621
|
.text-footer-container .text-footer-files-container .files-btn.docs {
|
|
618
|
-
background-color: #7986cb;
|
|
622
|
+
background-color: #7986cb;
|
|
623
|
+
margin-right: 5px; }
|
|
624
|
+
.text-footer-container .text-footer-files-container .files-btn.system {
|
|
625
|
+
background-color: #49a349; }
|
|
619
626
|
.text-footer-container .text-footer-preview-container {
|
|
620
627
|
cursor: default;
|
|
621
628
|
position: absolute;
|