vue-intergrall-plugins 0.0.150 → 0.0.154
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 +56 -23
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +59 -27
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +18 -4
- package/src/lib-components/Chat/MultipleFilePreview.vue +1 -1
- package/src/lib-components/Chat/SingleFilePreview.vue +1 -1
- package/src/lib-components/Chat/TextFooter.vue +13 -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;
|
|
@@ -3185,7 +3185,7 @@ var script$i = {
|
|
|
3185
3185
|
required: true
|
|
3186
3186
|
},
|
|
3187
3187
|
file: {
|
|
3188
|
-
type:
|
|
3188
|
+
type: File,
|
|
3189
3189
|
required: true
|
|
3190
3190
|
},
|
|
3191
3191
|
fileFormatError: {
|
|
@@ -3319,7 +3319,7 @@ var __vue_staticRenderFns__$i = [];
|
|
|
3319
3319
|
|
|
3320
3320
|
var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
3321
3321
|
if (!inject) return;
|
|
3322
|
-
inject("data-v-
|
|
3322
|
+
inject("data-v-7c17339e_0", {
|
|
3323
3323
|
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;border-radius:50%;background-color:#fff;min-width:1rem;min-height:1rem;cursor:pointer}.delete-file>svg{font-size:1rem;color:#e74c3c}",
|
|
3324
3324
|
map: undefined,
|
|
3325
3325
|
media: undefined
|
|
@@ -3331,7 +3331,7 @@ var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
|
3331
3331
|
var __vue_scope_id__$i = undefined;
|
|
3332
3332
|
/* module identifier */
|
|
3333
3333
|
|
|
3334
|
-
var __vue_module_identifier__$i = "data-v-
|
|
3334
|
+
var __vue_module_identifier__$i = "data-v-7c17339e";
|
|
3335
3335
|
/* functional template */
|
|
3336
3336
|
|
|
3337
3337
|
var __vue_is_functional_template__$i = false;
|
|
@@ -3365,6 +3365,10 @@ var script$h = {
|
|
|
3365
3365
|
cssStyle: {
|
|
3366
3366
|
type: Object,
|
|
3367
3367
|
required: false
|
|
3368
|
+
},
|
|
3369
|
+
hasButtonFiles: {
|
|
3370
|
+
type: Boolean,
|
|
3371
|
+
required: false
|
|
3368
3372
|
}
|
|
3369
3373
|
},
|
|
3370
3374
|
data: function data() {
|
|
@@ -3388,6 +3392,13 @@ var script$h = {
|
|
|
3388
3392
|
}
|
|
3389
3393
|
},
|
|
3390
3394
|
methods: {
|
|
3395
|
+
openFilesByClip: function openFilesByClip() {
|
|
3396
|
+
if (this.fileSettings.multiple && !this.hasButtonFiles) {
|
|
3397
|
+
return this.openSelectFileHandler('both');
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3400
|
+
return this.toggleFiles();
|
|
3401
|
+
},
|
|
3391
3402
|
away: function away() {
|
|
3392
3403
|
this.showFilePreview = false;
|
|
3393
3404
|
},
|
|
@@ -3395,6 +3406,11 @@ var script$h = {
|
|
|
3395
3406
|
this.openFiles = !this.openFiles;
|
|
3396
3407
|
},
|
|
3397
3408
|
openSelectFileHandler: function openSelectFileHandler(type) {
|
|
3409
|
+
if (type == "system") {
|
|
3410
|
+
this.$emit("open-file-system", true);
|
|
3411
|
+
return false;
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3398
3414
|
var fileInput = document.querySelector("#".concat(type, "-").concat(this.textId));
|
|
3399
3415
|
if (fileInput) fileInput.click();
|
|
3400
3416
|
if (!fileInput) if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError();
|
|
@@ -3569,7 +3585,7 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
3569
3585
|
},
|
|
3570
3586
|
on: {
|
|
3571
3587
|
"click": function click($event) {
|
|
3572
|
-
|
|
3588
|
+
return _vm.openFilesByClip();
|
|
3573
3589
|
}
|
|
3574
3590
|
}
|
|
3575
3591
|
}, [_c('transition', {
|
|
@@ -3599,7 +3615,7 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
3599
3615
|
attrs: {
|
|
3600
3616
|
"name": "show"
|
|
3601
3617
|
}
|
|
3602
|
-
}, [_vm.openFiles ? _c('div', {
|
|
3618
|
+
}, [_vm.openFiles && _vm.hasButtonFiles ? _c('div', {
|
|
3603
3619
|
staticClass: "text-footer-files-container",
|
|
3604
3620
|
class: {
|
|
3605
3621
|
'horizontal': _vm.cssStyle.outsideButtons
|
|
@@ -3635,6 +3651,20 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
3635
3651
|
attrs: {
|
|
3636
3652
|
"icon": ['fas', 'file-alt']
|
|
3637
3653
|
}
|
|
3654
|
+
})], 1), _vm._v(" "), _c('div', {
|
|
3655
|
+
staticClass: "files-btn system",
|
|
3656
|
+
attrs: {
|
|
3657
|
+
"title": _vm.dictionary.title_anexo_sistema
|
|
3658
|
+
},
|
|
3659
|
+
on: {
|
|
3660
|
+
"click": function click($event) {
|
|
3661
|
+
return _vm.openSelectFileHandler('system');
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
}, [_c('fa-icon', {
|
|
3665
|
+
attrs: {
|
|
3666
|
+
"icon": ['fas', 'server']
|
|
3667
|
+
}
|
|
3638
3668
|
})], 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
3669
|
attrs: {
|
|
3640
3670
|
"name": "fade"
|
|
@@ -3658,7 +3688,7 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
3658
3688
|
$event.stopPropagation();
|
|
3659
3689
|
}
|
|
3660
3690
|
}
|
|
3661
|
-
}, [!_vm.fileSettings.multiple ? _c('SingleFilePreview', {
|
|
3691
|
+
}, [!_vm.fileSettings.multiple && _vm.showFilePreview ? _c('SingleFilePreview', {
|
|
3662
3692
|
attrs: {
|
|
3663
3693
|
"dictionary": _vm.dictionary,
|
|
3664
3694
|
"file": _vm.file,
|
|
@@ -3671,7 +3701,7 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
3671
3701
|
"delete-file": _vm.deleteFile,
|
|
3672
3702
|
"open-image": _vm.openImage
|
|
3673
3703
|
}
|
|
3674
|
-
}) : _c('MultipleFilePreview', {
|
|
3704
|
+
}) : _vm.fileSettings.multiple && _vm.showFilePreview ? _c('MultipleFilePreview', {
|
|
3675
3705
|
attrs: {
|
|
3676
3706
|
"dictionary": _vm.dictionary,
|
|
3677
3707
|
"file": _vm.file,
|
|
@@ -3683,7 +3713,7 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
3683
3713
|
"delete-specific-file": _vm.deleteSpecificFile,
|
|
3684
3714
|
"open-image": _vm.openImage
|
|
3685
3715
|
}
|
|
3686
|
-
})], 1)])], 2);
|
|
3716
|
+
}) : _vm._e()], 1)])], 2);
|
|
3687
3717
|
};
|
|
3688
3718
|
|
|
3689
3719
|
var __vue_staticRenderFns__$h = [];
|
|
@@ -3691,7 +3721,7 @@ var __vue_staticRenderFns__$h = [];
|
|
|
3691
3721
|
|
|
3692
3722
|
var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
3693
3723
|
if (!inject) return;
|
|
3694
|
-
inject("data-v-
|
|
3724
|
+
inject("data-v-d44243ce_0", {
|
|
3695
3725
|
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
3726
|
map: undefined,
|
|
3697
3727
|
media: undefined
|
|
@@ -3703,7 +3733,7 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
|
3703
3733
|
var __vue_scope_id__$h = undefined;
|
|
3704
3734
|
/* module identifier */
|
|
3705
3735
|
|
|
3706
|
-
var __vue_module_identifier__$h = "data-v-
|
|
3736
|
+
var __vue_module_identifier__$h = "data-v-d44243ce";
|
|
3707
3737
|
/* functional template */
|
|
3708
3738
|
|
|
3709
3739
|
var __vue_is_functional_template__$h = false;
|
|
@@ -3877,6 +3907,10 @@ var script$f = {
|
|
|
3877
3907
|
dictionary: {
|
|
3878
3908
|
type: Object,
|
|
3879
3909
|
required: true
|
|
3910
|
+
},
|
|
3911
|
+
hasButtonFiles: {
|
|
3912
|
+
type: Boolean,
|
|
3913
|
+
required: false
|
|
3880
3914
|
}
|
|
3881
3915
|
},
|
|
3882
3916
|
data: function data() {
|
|
@@ -4059,6 +4093,9 @@ var script$f = {
|
|
|
4059
4093
|
openImage: function openImage(imagePreview) {
|
|
4060
4094
|
this.$emit("open-image", imagePreview);
|
|
4061
4095
|
},
|
|
4096
|
+
openFileSystem: function openFileSystem(status) {
|
|
4097
|
+
this.$emit("open-file-system", status);
|
|
4098
|
+
},
|
|
4062
4099
|
setAudio: function setAudio(audioObj) {
|
|
4063
4100
|
var audioFile = audioObj.audioFile,
|
|
4064
4101
|
audioSource = audioObj.audioSource;
|
|
@@ -4259,11 +4296,13 @@ var __vue_render__$f = function __vue_render__() {
|
|
|
4259
4296
|
"textId": _vm.textId,
|
|
4260
4297
|
"dictionary": _vm.dictionary,
|
|
4261
4298
|
"fileSettings": _vm.fileSettings,
|
|
4262
|
-
"cssStyle": _vm.cssStyle
|
|
4299
|
+
"cssStyle": _vm.cssStyle,
|
|
4300
|
+
"hasButtonFiles": _vm.hasButtonFiles
|
|
4263
4301
|
},
|
|
4264
4302
|
on: {
|
|
4265
4303
|
"set-file-vars": _vm.setFileVars,
|
|
4266
|
-
"open-image": _vm.openImage
|
|
4304
|
+
"open-image": _vm.openImage,
|
|
4305
|
+
"open-file-system": _vm.openFileSystem
|
|
4267
4306
|
}
|
|
4268
4307
|
}), _vm._ssrNode(" "), _c('BtnExpand', {
|
|
4269
4308
|
directives: [{
|
|
@@ -4288,8 +4327,8 @@ var __vue_staticRenderFns__$f = [];
|
|
|
4288
4327
|
|
|
4289
4328
|
var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
4290
4329
|
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}",
|
|
4330
|
+
inject("data-v-9e958d46_0", {
|
|
4331
|
+
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
4332
|
map: undefined,
|
|
4294
4333
|
media: undefined
|
|
4295
4334
|
});
|
|
@@ -4300,7 +4339,7 @@ var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
|
4300
4339
|
var __vue_scope_id__$f = undefined;
|
|
4301
4340
|
/* module identifier */
|
|
4302
4341
|
|
|
4303
|
-
var __vue_module_identifier__$f = "data-v-
|
|
4342
|
+
var __vue_module_identifier__$f = "data-v-9e958d46";
|
|
4304
4343
|
/* functional template */
|
|
4305
4344
|
|
|
4306
4345
|
var __vue_is_functional_template__$f = false;
|
|
@@ -5666,13 +5705,6 @@ var script$9 = {
|
|
|
5666
5705
|
}
|
|
5667
5706
|
},
|
|
5668
5707
|
methods: {
|
|
5669
|
-
resizeHeaderCard: function resizeHeaderCard() {
|
|
5670
|
-
if (this.resizeCard) {
|
|
5671
|
-
this.styleCard = "flex-direction: column;";
|
|
5672
|
-
}
|
|
5673
|
-
|
|
5674
|
-
return this.styleCard;
|
|
5675
|
-
},
|
|
5676
5708
|
formataTimezoneData: function formataTimezoneData$1(timezoneData) {
|
|
5677
5709
|
return formataTimezoneData(timezoneData);
|
|
5678
5710
|
},
|
|
@@ -5744,7 +5776,7 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
5744
5776
|
|
|
5745
5777
|
var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
5746
5778
|
if (!inject) return;
|
|
5747
|
-
inject("data-v-
|
|
5779
|
+
inject("data-v-4be10146_0", {
|
|
5748
5780
|
source: ".fade-enter-active,.fade-leave-active{transition:opacity .2s}.fade-enter,.fade-leave-to{opacity:0}.card-cli,.card-ope{display:flex;width:95%;margin:5px 0;position:relative}.card-cli.newMessage,.card-ope.newMessage{margin-top:30px}.new-messages{position:absolute;top:-30px;width:100%;display:flex;justify-content:center;align-items:center;margin:2.5px 0;background-color:lighten(#fff249,15)}.card-cli .card{border-left:3px solid #90b823}.card-ope{align-self:flex-end;background-color:lighten(#007535,72)}.card-ope .card{border-right:3px solid #007535}.card{background-color:rgba(255,255,255,.9);overflow:hidden;width:100%;padding:2.5px 5px}.card p{word-break:break-all}.card-header{width:100%;border-bottom:1px solid #ddd;margin-bottom:5px;display:flex;justify-content:space-between}.card-header svg{font-size:1rem}.card-author{display:flex;align-items:center}.card-author svg{margin-right:5px}.card-canal{flex:1;margin-right:10px}.card-dates{display:flex;flex-direction:column;margin-right:10px;font-size:.9rem}.card-date{overflow:hidden;display:flex;align-content:center}.card-date span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.card-date svg{margin-right:5px;color:#232323}.card-expand{display:flex;justify-content:center;align-items:center;margin:2.5px;cursor:pointer;opacity:.8;transition:opacity 150ms}.card-expand:hover{opacity:1}.card-footer{margin-top:5px;border-top:1px solid #ddd;display:flex;flex-wrap:wrap;min-height:25px}.card-chip{font-size:.8rem;width:fit-content;border-radius:15px;transition:all 150ms ease-in-out;padding:2.5px 7px;color:#1f69c1;background-color:rgba(207,216,244,.6);margin-bottom:5px}.card-chip:hover{background-color:#cfd8f4}.card-chip.orange{color:#e14924;background-color:rgba(228,92,58,.15)}.card-chip.orange:hover{background-color:rgba(228,92,58,.2)}.card-chip.yellow{color:#f4a304;background-color:rgba(252,191,73,.15)}.card-chip.yellow:hover{background-color:rgba(252,191,73,.2)}.card-chip.red{color:#e74c3c;background-color:rgba(231,76,60,.2)}.card-chip.red:hover{background-color:rgba(231,76,60,.25)}.card-file{width:60px;height:50px;margin-right:5px;display:flex;justify-content:center;align-items:center}.card-reply{cursor:pointer;position:absolute;right:30px;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}.card-reply svg{margin-top:-1px;margin-right:-1px}.card-check{position:absolute;bottom:5px;right:5px;cursor:pointer;font-size:.7rem}.card-check svg{font-size:.8rem}.card-check.seen,.card-check.seen svg{color:#006daa}.card-check.green,.card-check.green svg{color:#4f772d}.card-check.red,.card-check.red svg{color:#ba181b}.card-check.gray,.card-check.gray svg{color:#999}.card-check.black,.card-check.black svg{color:#666}",
|
|
5749
5781
|
map: undefined,
|
|
5750
5782
|
media: undefined
|
|
@@ -5756,7 +5788,7 @@ var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
|
5756
5788
|
var __vue_scope_id__$9 = undefined;
|
|
5757
5789
|
/* module identifier */
|
|
5758
5790
|
|
|
5759
|
-
var __vue_module_identifier__$9 = "data-v-
|
|
5791
|
+
var __vue_module_identifier__$9 = "data-v-4be10146";
|
|
5760
5792
|
/* functional template */
|
|
5761
5793
|
|
|
5762
5794
|
var __vue_is_functional_template__$9 = false;
|
package/package.json
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
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>
|
|
6
6
|
<fa-icon :icon="['fas', 'paperclip']" :title="dictionary.title_selecionar_anexo" />
|
|
7
7
|
<transition name="show">
|
|
8
|
-
<div v-if="openFiles" class="text-footer-files-container" :class="{'horizontal' : cssStyle.outsideButtons}">
|
|
8
|
+
<div v-if="openFiles && hasButtonFiles" class="text-footer-files-container" :class="{'horizontal' : cssStyle.outsideButtons}">
|
|
9
9
|
<div class="files-btn images" :class="{'margin-bottom' : cssStyle.outsideButtons}" :title="dictionary.title_anexo_img" @click="openSelectFileHandler('img')">
|
|
10
10
|
<fa-icon :icon="['fas', 'image']" />
|
|
11
11
|
</div>
|
|
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"
|
|
@@ -33,7 +36,7 @@
|
|
|
33
36
|
@open-image="openImage"
|
|
34
37
|
/>
|
|
35
38
|
<MultipleFilePreview
|
|
36
|
-
v-else
|
|
39
|
+
v-else-if="fileSettings.multiple && showFilePreview"
|
|
37
40
|
:dictionary="dictionary"
|
|
38
41
|
:file="file"
|
|
39
42
|
:fileFormatError="fileFormatError"
|
|
@@ -105,6 +108,10 @@ export default {
|
|
|
105
108
|
cssStyle: {
|
|
106
109
|
type: Object,
|
|
107
110
|
required: false
|
|
111
|
+
},
|
|
112
|
+
hasButtonFiles: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
required: false
|
|
108
115
|
}
|
|
109
116
|
},
|
|
110
117
|
data() {
|
|
@@ -128,6 +135,12 @@ export default {
|
|
|
128
135
|
}
|
|
129
136
|
},
|
|
130
137
|
methods: {
|
|
138
|
+
openFilesByClip(){
|
|
139
|
+
if(this.fileSettings.multiple && !this.hasButtonFiles){
|
|
140
|
+
return this.openSelectFileHandler('both')
|
|
141
|
+
}
|
|
142
|
+
return this.toggleFiles()
|
|
143
|
+
},
|
|
131
144
|
away() {
|
|
132
145
|
this.showFilePreview = false
|
|
133
146
|
},
|
|
@@ -135,6 +148,7 @@ export default {
|
|
|
135
148
|
this.openFiles = !this.openFiles
|
|
136
149
|
},
|
|
137
150
|
openSelectFileHandler(type) {
|
|
151
|
+
if(type == "system"){ this.$emit("open-file-system", true); return false }
|
|
138
152
|
const fileInput = document.querySelector(`#${type}-${this.textId}`)
|
|
139
153
|
if(fileInput) fileInput.click()
|
|
140
154
|
if(!fileInput) if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError()
|
|
@@ -70,7 +70,7 @@ export default {
|
|
|
70
70
|
},
|
|
71
71
|
props: {
|
|
72
72
|
dictionary: { type: Object, required: true },
|
|
73
|
-
file: { type:
|
|
73
|
+
file: { type: File, required: true },
|
|
74
74
|
fileFormatError: { type: Boolean, required: false },
|
|
75
75
|
validFileFormats: { type: String, required: false, default: "" }
|
|
76
76
|
},
|
|
@@ -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: "" },
|
|
@@ -57,8 +57,10 @@
|
|
|
57
57
|
:fileSettings="fileSettings"
|
|
58
58
|
:cssStyle="cssStyle"
|
|
59
59
|
:ref="`${textId}-file`"
|
|
60
|
+
:hasButtonFiles="hasButtonFiles"
|
|
60
61
|
@set-file-vars="setFileVars"
|
|
61
62
|
@open-image="openImage"
|
|
63
|
+
@open-file-system="openFileSystem"
|
|
62
64
|
/>
|
|
63
65
|
<BtnExpand
|
|
64
66
|
v-show="buttons.hasExpand && !audioFile"
|
|
@@ -133,6 +135,10 @@ export default {
|
|
|
133
135
|
dictionary: {
|
|
134
136
|
type: Object,
|
|
135
137
|
required: true
|
|
138
|
+
},
|
|
139
|
+
hasButtonFiles: {
|
|
140
|
+
type: Boolean,
|
|
141
|
+
required: false
|
|
136
142
|
}
|
|
137
143
|
},
|
|
138
144
|
data() {
|
|
@@ -311,6 +317,9 @@ export default {
|
|
|
311
317
|
openImage(imagePreview) {
|
|
312
318
|
this.$emit("open-image", imagePreview)
|
|
313
319
|
},
|
|
320
|
+
openFileSystem(status) {
|
|
321
|
+
this.$emit("open-file-system", status)
|
|
322
|
+
},
|
|
314
323
|
setAudio(audioObj) {
|
|
315
324
|
const { audioFile, audioSource } = audioObj
|
|
316
325
|
this.audioFile = audioFile
|
|
@@ -615,7 +624,10 @@ ul {
|
|
|
615
624
|
margin-right: unset;
|
|
616
625
|
margin-bottom: 5px; }
|
|
617
626
|
.text-footer-container .text-footer-files-container .files-btn.docs {
|
|
618
|
-
background-color: #7986cb;
|
|
627
|
+
background-color: #7986cb;
|
|
628
|
+
margin-right: 5px; }
|
|
629
|
+
.text-footer-container .text-footer-files-container .files-btn.system {
|
|
630
|
+
background-color: #49a349; }
|
|
619
631
|
.text-footer-container .text-footer-preview-container {
|
|
620
632
|
cursor: default;
|
|
621
633
|
position: absolute;
|