vue-intergrall-plugins 0.0.221 → 0.0.224
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 +61 -19
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +63 -21
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +27 -4
- package/src/lib-components/Chat/StandardMessages.vue +12 -4
- package/src/lib-components/Chat/TextFooter.vue +2 -0
- package/src/lib-components/Email/EmailFile.vue +1 -1
|
@@ -3912,6 +3912,32 @@ var script$n = {
|
|
|
3912
3912
|
if (this.fileSettings.multiple) return "isMultiple";
|
|
3913
3913
|
if (this.isDoc) return "isDoc";
|
|
3914
3914
|
return "isMsg";
|
|
3915
|
+
},
|
|
3916
|
+
|
|
3917
|
+
acceptedExtensions() {
|
|
3918
|
+
let str = "";
|
|
3919
|
+
|
|
3920
|
+
if (this.fileSettings.docsExtensions && this.fileSettings.imagesExtensions) {
|
|
3921
|
+
str = `${this.fileSettings.docsExtensions.split("|").join(',')}${this.fileSettings.imagesExtensions.split("|").join(',')}`;
|
|
3922
|
+
} else if (this.fileSettings.docsExtensions) {
|
|
3923
|
+
str = this.fileSettings.docsExtensions.split("|").join(',');
|
|
3924
|
+
} else if (this.fileSettings.imagesExtensions) {
|
|
3925
|
+
str = this.fileSettings.imagesExtensions.split("|").join(',');
|
|
3926
|
+
}
|
|
3927
|
+
|
|
3928
|
+
if (str) {
|
|
3929
|
+
const arr = str.split(",").map(ext => {
|
|
3930
|
+
ext = ext && ext.startsWith(".") ? ext : `.${ext}`;
|
|
3931
|
+
return ext;
|
|
3932
|
+
});
|
|
3933
|
+
console.log(arr);
|
|
3934
|
+
str = arr.join(","); // str = str && str.endsWith(".,") ? str.slice(0, -1) : str
|
|
3935
|
+
}
|
|
3936
|
+
|
|
3937
|
+
console.log(str);
|
|
3938
|
+
if (this.fileSettings.multiple) return str ? str : "image/*,application/*";
|
|
3939
|
+
if (this.isDoc) return str ? str : "application/*";
|
|
3940
|
+
return str ? str : "image/*";
|
|
3915
3941
|
}
|
|
3916
3942
|
|
|
3917
3943
|
},
|
|
@@ -4288,7 +4314,7 @@ var __vue_render__$n = function () {
|
|
|
4288
4314
|
attrs: {
|
|
4289
4315
|
"type": "file",
|
|
4290
4316
|
"id": "both-" + _vm.textId,
|
|
4291
|
-
"accept":
|
|
4317
|
+
"accept": _vm.acceptedExtensions,
|
|
4292
4318
|
"multiple": ""
|
|
4293
4319
|
},
|
|
4294
4320
|
on: {
|
|
@@ -4300,7 +4326,7 @@ var __vue_render__$n = function () {
|
|
|
4300
4326
|
attrs: {
|
|
4301
4327
|
"type": "file",
|
|
4302
4328
|
"id": "img-" + _vm.textId,
|
|
4303
|
-
"accept":
|
|
4329
|
+
"accept": _vm.acceptedExtensions
|
|
4304
4330
|
},
|
|
4305
4331
|
on: {
|
|
4306
4332
|
"change": function ($event) {
|
|
@@ -4311,7 +4337,7 @@ var __vue_render__$n = function () {
|
|
|
4311
4337
|
attrs: {
|
|
4312
4338
|
"type": "file",
|
|
4313
4339
|
"id": "doc-" + _vm.textId,
|
|
4314
|
-
"accept":
|
|
4340
|
+
"accept": _vm.acceptedExtensions
|
|
4315
4341
|
},
|
|
4316
4342
|
on: {
|
|
4317
4343
|
"change": function ($event) {
|
|
@@ -4377,7 +4403,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
4377
4403
|
|
|
4378
4404
|
const __vue_inject_styles__$n = function (inject) {
|
|
4379
4405
|
if (!inject) return;
|
|
4380
|
-
inject("data-v-
|
|
4406
|
+
inject("data-v-cc9b8f50_0", {
|
|
4381
4407
|
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}",
|
|
4382
4408
|
map: undefined,
|
|
4383
4409
|
media: undefined
|
|
@@ -8460,6 +8486,10 @@ const standardMessages = {
|
|
|
8460
8486
|
var script$k = {
|
|
8461
8487
|
mixins: [standardMessages],
|
|
8462
8488
|
props: {
|
|
8489
|
+
hasStandardMessages: {
|
|
8490
|
+
type: Boolean,
|
|
8491
|
+
default: false
|
|
8492
|
+
},
|
|
8463
8493
|
dictionary: {
|
|
8464
8494
|
type: Object,
|
|
8465
8495
|
default: {},
|
|
@@ -8544,15 +8574,23 @@ var script$k = {
|
|
|
8544
8574
|
this.loadingReq = true;
|
|
8545
8575
|
this.getStandardMessages(cod, this.token_cliente).then(data => {
|
|
8546
8576
|
this.loadingReq = false;
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8577
|
+
|
|
8578
|
+
if (data) {
|
|
8579
|
+
if (data.msg_ret) return this.$toasted.global.defaultInfo({
|
|
8580
|
+
msg: data.msg_ret
|
|
8581
|
+
});
|
|
8582
|
+
if (data) return this.showFormattedMessage(data, selectionIndex);
|
|
8583
|
+
}
|
|
8584
|
+
|
|
8551
8585
|
this.$toasted.global.defaultError();
|
|
8586
|
+
this.$emit("error-standard-message");
|
|
8552
8587
|
}).catch(e => {
|
|
8553
8588
|
this.loadingReq = false;
|
|
8554
|
-
this.$toasted.global.defaultError(
|
|
8589
|
+
this.$toasted.global.defaultError({
|
|
8590
|
+
msg: e && e.message ? e.message : e
|
|
8591
|
+
});
|
|
8555
8592
|
this.closeStandardMessages();
|
|
8593
|
+
this.$emit("error-standard-message");
|
|
8556
8594
|
console.error("Error in getStandardMessages: ", e);
|
|
8557
8595
|
});
|
|
8558
8596
|
} catch (e) {
|
|
@@ -8674,7 +8712,7 @@ var __vue_render__$k = function () {
|
|
|
8674
8712
|
|
|
8675
8713
|
var _c = _vm._self._c || _h;
|
|
8676
8714
|
|
|
8677
|
-
return _c('div', {
|
|
8715
|
+
return _vm.hasStandardMessages ? _c('div', {
|
|
8678
8716
|
staticClass: "text-footer-hsm-container"
|
|
8679
8717
|
}, [_c('div', {
|
|
8680
8718
|
staticClass: "transition-selects"
|
|
@@ -8751,7 +8789,7 @@ var __vue_render__$k = function () {
|
|
|
8751
8789
|
slot: "no-options"
|
|
8752
8790
|
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])])], 1) : _vm.key_2 && _vm.loadingReq ? _c('div', {
|
|
8753
8791
|
staticClass: "loader-select"
|
|
8754
|
-
}, [_c('VueLoader')], 1) : _vm._e()])], 1)]);
|
|
8792
|
+
}, [_c('VueLoader')], 1) : _vm._e()])], 1)]) : _vm._e();
|
|
8755
8793
|
};
|
|
8756
8794
|
|
|
8757
8795
|
var __vue_staticRenderFns__$k = [];
|
|
@@ -8759,7 +8797,7 @@ var __vue_staticRenderFns__$k = [];
|
|
|
8759
8797
|
|
|
8760
8798
|
const __vue_inject_styles__$k = function (inject) {
|
|
8761
8799
|
if (!inject) return;
|
|
8762
|
-
inject("data-v-
|
|
8800
|
+
inject("data-v-7cd1c21b_0", {
|
|
8763
8801
|
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}",
|
|
8764
8802
|
map: undefined,
|
|
8765
8803
|
media: undefined
|
|
@@ -9507,7 +9545,8 @@ var __vue_render__$j = function () {
|
|
|
9507
9545
|
"backgroundColor": _vm.cssStyle.backgroundColor,
|
|
9508
9546
|
"token_cliente": _vm.formattedMessageSettings.token_cliente ? _vm.formattedMessageSettings.token_cliente : '',
|
|
9509
9547
|
"message": _vm.message,
|
|
9510
|
-
"messageType": _vm.messageType
|
|
9548
|
+
"messageType": _vm.messageType,
|
|
9549
|
+
"hasStandardMessages": _vm.formattedMessageSettings.hasStandardMessages && _vm.showStandardMessages
|
|
9511
9550
|
},
|
|
9512
9551
|
on: {
|
|
9513
9552
|
"close-standard-messages": _vm.closeStandardMessages,
|
|
@@ -9515,7 +9554,10 @@ var __vue_render__$j = function () {
|
|
|
9515
9554
|
"close-blocker-standard-message": _vm.closeBlockerStandardMessage,
|
|
9516
9555
|
"set-message-type": _vm.setMessageType,
|
|
9517
9556
|
"set-standard-infos": _vm.setStandardInfos,
|
|
9518
|
-
"add-standard-message": _vm.addStandardMessage
|
|
9557
|
+
"add-standard-message": _vm.addStandardMessage,
|
|
9558
|
+
"error-standard-message": function ($event) {
|
|
9559
|
+
return _vm.$emit('error-standard-message');
|
|
9560
|
+
}
|
|
9519
9561
|
}
|
|
9520
9562
|
}) : _vm._e()], 1)], 1) : _vm._e();
|
|
9521
9563
|
};
|
|
@@ -9525,7 +9567,7 @@ var __vue_staticRenderFns__$j = [];
|
|
|
9525
9567
|
|
|
9526
9568
|
const __vue_inject_styles__$j = function (inject) {
|
|
9527
9569
|
if (!inject) return;
|
|
9528
|
-
inject("data-v-
|
|
9570
|
+
inject("data-v-7d5d938e_0", {
|
|
9529
9571
|
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}",
|
|
9530
9572
|
map: undefined,
|
|
9531
9573
|
media: undefined
|
|
@@ -13589,7 +13631,7 @@ var __vue_render__$1 = function () {
|
|
|
13589
13631
|
}
|
|
13590
13632
|
})]) : _c('span', {
|
|
13591
13633
|
staticClass: "anexo-icone",
|
|
13592
|
-
class: [_vm.
|
|
13634
|
+
class: [_vm.iconClass],
|
|
13593
13635
|
attrs: {
|
|
13594
13636
|
"title": "Visualizar " + _vm.filename,
|
|
13595
13637
|
"target": "_blank"
|
|
@@ -13622,8 +13664,8 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
13622
13664
|
|
|
13623
13665
|
const __vue_inject_styles__$1 = function (inject) {
|
|
13624
13666
|
if (!inject) return;
|
|
13625
|
-
inject("data-v-
|
|
13626
|
-
source: ".anexo-img[data-v-
|
|
13667
|
+
inject("data-v-4cac2afe_0", {
|
|
13668
|
+
source: ".anexo-img[data-v-4cac2afe]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.anexo-img[data-v-4cac2afe]:hover{opacity:1}.anexo-img img[data-v-4cac2afe]{width:95%;max-height:50px}.box-shadow[data-v-4cac2afe]{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.anexo-icone[data-v-4cac2afe]:hover{opacity:1}.anexo-icone[data-v-4cac2afe]:visited{color:inherit}.anexo-icone svg[data-v-4cac2afe]{font-size:30px;z-index:1}.anexo-icone.pdf[data-v-4cac2afe]{position:relative}.anexo-icone.pdf svg[data-v-4cac2afe]{color:#e74c3c}.anexo-icone.pdf[data-v-4cac2afe]::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.anexo-icone.doc[data-v-4cac2afe]{color:#15517f}.anexo-icone.doc[data-v-4cac2afe]::after{content:\"\";position:absolute;width:20px;height:20px;background-color:#fff}.anexo-icone[data-v-4cac2afe]{opacity:.9;transition:opacity .2s;color:#222;cursor:pointer;display:flex;justify-content:center;align-items:center}.align-items-end[data-v-4cac2afe]{align-items:flex-end}.flex-wrap[data-v-4cac2afe]{flex-wrap:wrap}.d-flex[data-v-4cac2afe]{display:flex}.mb-5[data-v-4cac2afe]{margin-bottom:5px}.mx-5[data-v-4cac2afe]{margin-left:5px;margin-right:5px}",
|
|
13627
13669
|
map: undefined,
|
|
13628
13670
|
media: undefined
|
|
13629
13671
|
});
|
|
@@ -13631,7 +13673,7 @@ const __vue_inject_styles__$1 = function (inject) {
|
|
|
13631
13673
|
/* scoped */
|
|
13632
13674
|
|
|
13633
13675
|
|
|
13634
|
-
const __vue_scope_id__$1 = "data-v-
|
|
13676
|
+
const __vue_scope_id__$1 = "data-v-4cac2afe";
|
|
13635
13677
|
/* module identifier */
|
|
13636
13678
|
|
|
13637
13679
|
const __vue_module_identifier__$1 = undefined;
|