vue-intergrall-plugins 0.0.220 → 0.0.223
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 +42 -16
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +43 -17
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +19 -7
- package/src/lib-components/Chat/StandardMessages.vue +8 -4
- package/src/lib-components/Chat/TextFooter.vue +1 -0
|
@@ -3550,15 +3550,29 @@ var script$n = {
|
|
|
3550
3550
|
if (this.fileSettings.multiple) return "isMultiple";
|
|
3551
3551
|
if (this.isDoc) return "isDoc";
|
|
3552
3552
|
return "isMsg";
|
|
3553
|
+
},
|
|
3554
|
+
acceptedExtensions: function acceptedExtensions() {
|
|
3555
|
+
var str = "";
|
|
3556
|
+
|
|
3557
|
+
if (this.fileSettings.docsExtensions && this.fileSettings.imagesExtensions) {
|
|
3558
|
+
str = "".concat(this.fileSettings.docsExtensions.split("|").join(',')).concat(this.fileSettings.imagesExtensions.split("|").join(','));
|
|
3559
|
+
} else if (this.fileSettings.docsExtensions) {
|
|
3560
|
+
str = this.fileSettings.docsExtensions.split("|").join(',');
|
|
3561
|
+
} else if (this.fileSettings.imagesExtensions) {
|
|
3562
|
+
str = this.fileSettings.imagesExtensions.split("|").join(',');
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
str = str && str.endsWith(",") ? str.slice(0, -1) : str;
|
|
3566
|
+
if (this.fileSettings.multiple) return str ? str : "image/*,application/*";
|
|
3567
|
+
if (this.isDoc) return str ? str : "application/*";
|
|
3568
|
+
return str ? str : "image/*";
|
|
3553
3569
|
}
|
|
3554
3570
|
},
|
|
3555
3571
|
watch: {
|
|
3556
3572
|
externalFiles: function externalFiles() {
|
|
3557
3573
|
var _this = this;
|
|
3558
3574
|
|
|
3559
|
-
if (!this.externalFiles.length)
|
|
3560
|
-
return;
|
|
3561
|
-
}
|
|
3575
|
+
if (!this.externalFiles.length) return;
|
|
3562
3576
|
|
|
3563
3577
|
if (this.externalFiles.length + this.file.length > this.fileSettings.max) {
|
|
3564
3578
|
this.$emit("reset-file-system");
|
|
@@ -3916,7 +3930,7 @@ var __vue_render__$n = function __vue_render__() {
|
|
|
3916
3930
|
attrs: {
|
|
3917
3931
|
"icon": ['fas', 'server']
|
|
3918
3932
|
}
|
|
3919
|
-
})], 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) + "
|
|
3933
|
+
})], 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) + _vm._ssrAttr("accept", _vm.acceptedExtensions) + " multiple=\"multiple\">" : "<!---->") + " " + (!_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "img-" + _vm.textId) + _vm._ssrAttr("accept", _vm.acceptedExtensions) + ">" : "<!---->") + " " + (!_vm.fileSettings.multiple ? "<input type=\"file\"" + _vm._ssrAttr("id", "doc-" + _vm.textId) + _vm._ssrAttr("accept", _vm.acceptedExtensions) + ">" : "<!---->") + "</div> "), _c('transition', {
|
|
3920
3934
|
attrs: {
|
|
3921
3935
|
"name": "fade"
|
|
3922
3936
|
}
|
|
@@ -3975,7 +3989,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
3975
3989
|
|
|
3976
3990
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
3977
3991
|
if (!inject) return;
|
|
3978
|
-
inject("data-v-
|
|
3992
|
+
inject("data-v-40b9b88c_0", {
|
|
3979
3993
|
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}",
|
|
3980
3994
|
map: undefined,
|
|
3981
3995
|
media: undefined
|
|
@@ -3987,7 +4001,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
3987
4001
|
var __vue_scope_id__$n = undefined;
|
|
3988
4002
|
/* module identifier */
|
|
3989
4003
|
|
|
3990
|
-
var __vue_module_identifier__$n = "data-v-
|
|
4004
|
+
var __vue_module_identifier__$n = "data-v-40b9b88c";
|
|
3991
4005
|
/* functional template */
|
|
3992
4006
|
|
|
3993
4007
|
var __vue_is_functional_template__$n = false;
|
|
@@ -8056,19 +8070,28 @@ var script$k = {
|
|
|
8056
8070
|
this.loadingReq = true;
|
|
8057
8071
|
this.getStandardMessages(cod, this.token_cliente).then(function (data) {
|
|
8058
8072
|
_this.loadingReq = false;
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8073
|
+
|
|
8074
|
+
if (data) {
|
|
8075
|
+
if (data.msg_ret) return _this.$toasted.global.defaultInfo({
|
|
8076
|
+
msg: data.msg_ret
|
|
8077
|
+
});
|
|
8078
|
+
if (data) return _this.showFormattedMessage(data, selectionIndex);
|
|
8079
|
+
}
|
|
8063
8080
|
|
|
8064
8081
|
_this.$toasted.global.defaultError();
|
|
8082
|
+
|
|
8083
|
+
_this.$emit("error-standard-message");
|
|
8065
8084
|
}).catch(function (e) {
|
|
8066
8085
|
_this.loadingReq = false;
|
|
8067
8086
|
|
|
8068
|
-
_this.$toasted.global.defaultError(
|
|
8087
|
+
_this.$toasted.global.defaultError({
|
|
8088
|
+
msg: e && e.message ? e.message : e
|
|
8089
|
+
});
|
|
8069
8090
|
|
|
8070
8091
|
_this.closeStandardMessages();
|
|
8071
8092
|
|
|
8093
|
+
_this.$emit("error-standard-message");
|
|
8094
|
+
|
|
8072
8095
|
console.error("Error in getStandardMessages: ", e);
|
|
8073
8096
|
});
|
|
8074
8097
|
} catch (e) {
|
|
@@ -8223,7 +8246,7 @@ var __vue_render__$k = function __vue_render__() {
|
|
|
8223
8246
|
"name": "fade",
|
|
8224
8247
|
"mode": "out-in"
|
|
8225
8248
|
}
|
|
8226
|
-
}, [_vm.formatted_messages_3.length && _vm.key_2 ? _c('div', {
|
|
8249
|
+
}, [_vm.formatted_messages_3.length && _vm.key_2 && _vm.formatted_messages_2.length && _vm.key_1 ? _c('div', {
|
|
8227
8250
|
staticClass: "text-footer-select-03"
|
|
8228
8251
|
}, [_c('v-select', {
|
|
8229
8252
|
staticClass: "text-footer-v-select",
|
|
@@ -8265,7 +8288,7 @@ var __vue_staticRenderFns__$k = [];
|
|
|
8265
8288
|
|
|
8266
8289
|
var __vue_inject_styles__$k = function __vue_inject_styles__(inject) {
|
|
8267
8290
|
if (!inject) return;
|
|
8268
|
-
inject("data-v-
|
|
8291
|
+
inject("data-v-0ec3bca6_0", {
|
|
8269
8292
|
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}",
|
|
8270
8293
|
map: undefined,
|
|
8271
8294
|
media: undefined
|
|
@@ -8277,7 +8300,7 @@ var __vue_inject_styles__$k = function __vue_inject_styles__(inject) {
|
|
|
8277
8300
|
var __vue_scope_id__$k = undefined;
|
|
8278
8301
|
/* module identifier */
|
|
8279
8302
|
|
|
8280
|
-
var __vue_module_identifier__$k = "data-v-
|
|
8303
|
+
var __vue_module_identifier__$k = "data-v-0ec3bca6";
|
|
8281
8304
|
/* functional template */
|
|
8282
8305
|
|
|
8283
8306
|
var __vue_is_functional_template__$k = false;
|
|
@@ -8893,7 +8916,10 @@ var __vue_render__$j = function __vue_render__() {
|
|
|
8893
8916
|
"close-blocker-standard-message": _vm.closeBlockerStandardMessage,
|
|
8894
8917
|
"set-message-type": _vm.setMessageType,
|
|
8895
8918
|
"set-standard-infos": _vm.setStandardInfos,
|
|
8896
|
-
"add-standard-message": _vm.addStandardMessage
|
|
8919
|
+
"add-standard-message": _vm.addStandardMessage,
|
|
8920
|
+
"error-standard-message": function errorStandardMessage($event) {
|
|
8921
|
+
return _vm.$emit('error-standard-message');
|
|
8922
|
+
}
|
|
8897
8923
|
}
|
|
8898
8924
|
}) : _vm._e()], 1)], 2) : _vm._e();
|
|
8899
8925
|
};
|
|
@@ -8903,7 +8929,7 @@ var __vue_staticRenderFns__$j = [];
|
|
|
8903
8929
|
|
|
8904
8930
|
var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
8905
8931
|
if (!inject) return;
|
|
8906
|
-
inject("data-v-
|
|
8932
|
+
inject("data-v-77acb010_0", {
|
|
8907
8933
|
source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349;margin-left:5px}.text-footer-container .text-footer-files-container .files-btn.both{font-size:.95rem;background-color:#5555ec;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(1){transform:translateX(5px)}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(2){transform:translateX(-5px)}.text-footer-container .text-footer-preview-container{width:100%;cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
|
|
8908
8934
|
map: undefined,
|
|
8909
8935
|
media: undefined
|
|
@@ -8915,7 +8941,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
|
8915
8941
|
var __vue_scope_id__$j = undefined;
|
|
8916
8942
|
/* module identifier */
|
|
8917
8943
|
|
|
8918
|
-
var __vue_module_identifier__$j = "data-v-
|
|
8944
|
+
var __vue_module_identifier__$j = "data-v-77acb010";
|
|
8919
8945
|
/* functional template */
|
|
8920
8946
|
|
|
8921
8947
|
var __vue_is_functional_template__$j = false;
|
package/package.json
CHANGED
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
</transition>
|
|
26
26
|
<div class="files-pointers d-none">
|
|
27
|
-
<input v-if="fileSettings.multiple" type="file" :id="`both-${textId}`" accept="
|
|
28
|
-
<input v-if="!fileSettings.multiple" type="file" :id="`img-${textId}`" accept="
|
|
29
|
-
<input v-if="!fileSettings.multiple" type="file" :id="`doc-${textId}`" accept="
|
|
27
|
+
<input v-if="fileSettings.multiple" type="file" :id="`both-${textId}`" :accept="acceptedExtensions" multiple @change="fileUpload($event, 'both')" />
|
|
28
|
+
<input v-if="!fileSettings.multiple" type="file" :id="`img-${textId}`" :accept="acceptedExtensions" @change="fileUpload($event, 'img')" />
|
|
29
|
+
<input v-if="!fileSettings.multiple" type="file" :id="`doc-${textId}`" :accept="acceptedExtensions" @change="fileUpload($event, 'doc')" />
|
|
30
30
|
</div>
|
|
31
31
|
<transition name="fade">
|
|
32
32
|
<div class="text-footer-preview-container" @click.stop v-show="showFilePreview" :class="[previewContainerClass]" v-on-clickaway="away">
|
|
@@ -147,13 +147,25 @@ export default {
|
|
|
147
147
|
if(this.fileSettings.multiple) return "isMultiple"
|
|
148
148
|
if(this.isDoc) return "isDoc"
|
|
149
149
|
return "isMsg"
|
|
150
|
-
}
|
|
150
|
+
},
|
|
151
|
+
acceptedExtensions() {
|
|
152
|
+
let str = ""
|
|
153
|
+
if(this.fileSettings.docsExtensions && this.fileSettings.imagesExtensions) {
|
|
154
|
+
str = `${this.fileSettings.docsExtensions.split("|").join(',')}${this.fileSettings.imagesExtensions.split("|").join(',')}`
|
|
155
|
+
}else if(this.fileSettings.docsExtensions) {
|
|
156
|
+
str = this.fileSettings.docsExtensions.split("|").join(',')
|
|
157
|
+
}else if(this.fileSettings.imagesExtensions) {
|
|
158
|
+
str = this.fileSettings.imagesExtensions.split("|").join(',')
|
|
159
|
+
}
|
|
160
|
+
str = str && str.endsWith(",") ? str.slice(0, -1) : str
|
|
161
|
+
if(this.fileSettings.multiple) return str ? str : "image/*,application/*"
|
|
162
|
+
if(this.isDoc) return str ? str : "application/*"
|
|
163
|
+
return str ? str : "image/*"
|
|
164
|
+
},
|
|
151
165
|
},
|
|
152
166
|
watch: {
|
|
153
167
|
externalFiles() {
|
|
154
|
-
if(!this.externalFiles.length)
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
168
|
+
if(!this.externalFiles.length) return
|
|
157
169
|
if(this.externalFiles.length + this.file.length > this.fileSettings.max) {
|
|
158
170
|
this.$emit("reset-file-system")
|
|
159
171
|
return this.$toasted.global.defaultInfo({ msg: `Limite de ${this.fileSettings.max} arquivos` })
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
</transition>
|
|
24
24
|
<transition name="fade" mode="out-in">
|
|
25
|
-
<div class="text-footer-select-03" v-if="formatted_messages_3.length && key_2">
|
|
25
|
+
<div class="text-footer-select-03" v-if="formatted_messages_3.length && key_2 && formatted_messages_2.length && key_1">
|
|
26
26
|
<v-select
|
|
27
27
|
:style="`background-color: ${backgroundColor}`"
|
|
28
28
|
appendToBody
|
|
@@ -139,13 +139,17 @@ export default {
|
|
|
139
139
|
this.loadingReq = true
|
|
140
140
|
this.getStandardMessages(cod, this.token_cliente).then((data) => {
|
|
141
141
|
this.loadingReq = false
|
|
142
|
-
if(data
|
|
143
|
-
|
|
142
|
+
if(data) {
|
|
143
|
+
if(data.msg_ret) return this.$toasted.global.defaultInfo({ msg: data.msg_ret })
|
|
144
|
+
if(data) return this.showFormattedMessage(data, selectionIndex)
|
|
145
|
+
}
|
|
144
146
|
this.$toasted.global.defaultError()
|
|
147
|
+
this.$emit("error-standard-message")
|
|
145
148
|
}).catch(e => {
|
|
146
149
|
this.loadingReq = false
|
|
147
|
-
this.$toasted.global.defaultError()
|
|
150
|
+
this.$toasted.global.defaultError({ msg: e && e.message ? e.message : e })
|
|
148
151
|
this.closeStandardMessages()
|
|
152
|
+
this.$emit("error-standard-message")
|
|
149
153
|
console.error("Error in getStandardMessages: ", e)
|
|
150
154
|
})
|
|
151
155
|
}catch(e) {
|