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.
@@ -3912,14 +3912,29 @@ 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
+ str = str && str.endsWith(",") ? str.slice(0, -1) : str;
3929
+ if (this.fileSettings.multiple) return str ? str : "image/*,application/*";
3930
+ if (this.isDoc) return str ? str : "application/*";
3931
+ return str ? str : "image/*";
3915
3932
  }
3916
3933
 
3917
3934
  },
3918
3935
  watch: {
3919
3936
  externalFiles() {
3920
- if (!this.externalFiles.length) {
3921
- return;
3922
- }
3937
+ if (!this.externalFiles.length) return;
3923
3938
 
3924
3939
  if (this.externalFiles.length + this.file.length > this.fileSettings.max) {
3925
3940
  this.$emit("reset-file-system");
@@ -4290,7 +4305,7 @@ var __vue_render__$n = function () {
4290
4305
  attrs: {
4291
4306
  "type": "file",
4292
4307
  "id": "both-" + _vm.textId,
4293
- "accept": "image/*,application/*",
4308
+ "accept": _vm.acceptedExtensions,
4294
4309
  "multiple": ""
4295
4310
  },
4296
4311
  on: {
@@ -4302,7 +4317,7 @@ var __vue_render__$n = function () {
4302
4317
  attrs: {
4303
4318
  "type": "file",
4304
4319
  "id": "img-" + _vm.textId,
4305
- "accept": "image/*"
4320
+ "accept": _vm.acceptedExtensions
4306
4321
  },
4307
4322
  on: {
4308
4323
  "change": function ($event) {
@@ -4313,7 +4328,7 @@ var __vue_render__$n = function () {
4313
4328
  attrs: {
4314
4329
  "type": "file",
4315
4330
  "id": "doc-" + _vm.textId,
4316
- "accept": "application/*"
4331
+ "accept": _vm.acceptedExtensions
4317
4332
  },
4318
4333
  on: {
4319
4334
  "change": function ($event) {
@@ -4379,7 +4394,7 @@ var __vue_staticRenderFns__$n = [];
4379
4394
 
4380
4395
  const __vue_inject_styles__$n = function (inject) {
4381
4396
  if (!inject) return;
4382
- inject("data-v-4b955990_0", {
4397
+ inject("data-v-40b9b88c_0", {
4383
4398
  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}",
4384
4399
  map: undefined,
4385
4400
  media: undefined
@@ -8546,15 +8561,23 @@ var script$k = {
8546
8561
  this.loadingReq = true;
8547
8562
  this.getStandardMessages(cod, this.token_cliente).then(data => {
8548
8563
  this.loadingReq = false;
8549
- if (data.msg_ret) return this.$toasted.global.defaultInfo({
8550
- msg: data.msg_ret
8551
- });
8552
- if (data) return this.showFormattedMessage(data, selectionIndex);
8564
+
8565
+ if (data) {
8566
+ if (data.msg_ret) return this.$toasted.global.defaultInfo({
8567
+ msg: data.msg_ret
8568
+ });
8569
+ if (data) return this.showFormattedMessage(data, selectionIndex);
8570
+ }
8571
+
8553
8572
  this.$toasted.global.defaultError();
8573
+ this.$emit("error-standard-message");
8554
8574
  }).catch(e => {
8555
8575
  this.loadingReq = false;
8556
- this.$toasted.global.defaultError();
8576
+ this.$toasted.global.defaultError({
8577
+ msg: e && e.message ? e.message : e
8578
+ });
8557
8579
  this.closeStandardMessages();
8580
+ this.$emit("error-standard-message");
8558
8581
  console.error("Error in getStandardMessages: ", e);
8559
8582
  });
8560
8583
  } catch (e) {
@@ -8719,7 +8742,7 @@ var __vue_render__$k = function () {
8719
8742
  "name": "fade",
8720
8743
  "mode": "out-in"
8721
8744
  }
8722
- }, [_vm.formatted_messages_3.length && _vm.key_2 ? _c('div', {
8745
+ }, [_vm.formatted_messages_3.length && _vm.key_2 && _vm.formatted_messages_2.length && _vm.key_1 ? _c('div', {
8723
8746
  staticClass: "text-footer-select-03"
8724
8747
  }, [_c('v-select', {
8725
8748
  staticClass: "text-footer-v-select",
@@ -8761,7 +8784,7 @@ var __vue_staticRenderFns__$k = [];
8761
8784
 
8762
8785
  const __vue_inject_styles__$k = function (inject) {
8763
8786
  if (!inject) return;
8764
- inject("data-v-324084df_0", {
8787
+ inject("data-v-0ec3bca6_0", {
8765
8788
  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}",
8766
8789
  map: undefined,
8767
8790
  media: undefined
@@ -9517,7 +9540,10 @@ var __vue_render__$j = function () {
9517
9540
  "close-blocker-standard-message": _vm.closeBlockerStandardMessage,
9518
9541
  "set-message-type": _vm.setMessageType,
9519
9542
  "set-standard-infos": _vm.setStandardInfos,
9520
- "add-standard-message": _vm.addStandardMessage
9543
+ "add-standard-message": _vm.addStandardMessage,
9544
+ "error-standard-message": function ($event) {
9545
+ return _vm.$emit('error-standard-message');
9546
+ }
9521
9547
  }
9522
9548
  }) : _vm._e()], 1)], 1) : _vm._e();
9523
9549
  };
@@ -9527,7 +9553,7 @@ var __vue_staticRenderFns__$j = [];
9527
9553
 
9528
9554
  const __vue_inject_styles__$j = function (inject) {
9529
9555
  if (!inject) return;
9530
- inject("data-v-c431d0e0_0", {
9556
+ inject("data-v-77acb010_0", {
9531
9557
  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}",
9532
9558
  map: undefined,
9533
9559
  media: undefined