vue-intergrall-plugins 0.0.159 → 0.0.162

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.
@@ -3622,7 +3622,7 @@ var script$k = {
3622
3622
  required: true
3623
3623
  },
3624
3624
  file: {
3625
- type: File,
3625
+ type: Array,
3626
3626
  required: true
3627
3627
  },
3628
3628
  fileFormatError: {
@@ -3763,7 +3763,7 @@ var __vue_staticRenderFns__$k = [];
3763
3763
 
3764
3764
  const __vue_inject_styles__$k = function (inject) {
3765
3765
  if (!inject) return;
3766
- inject("data-v-7c17339e_0", {
3766
+ inject("data-v-55cbc293_0", {
3767
3767
  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}",
3768
3768
  map: undefined,
3769
3769
  media: undefined
@@ -3817,12 +3817,17 @@ var script$j = {
3817
3817
  hasButtonFiles: {
3818
3818
  type: Boolean,
3819
3819
  required: false
3820
+ },
3821
+ externalFiles: {
3822
+ type: Array,
3823
+ required: false
3820
3824
  }
3821
3825
  },
3822
3826
 
3823
3827
  data() {
3824
3828
  return {
3825
3829
  file: [],
3830
+ fileSize: 0,
3826
3831
  openFiles: false,
3827
3832
  showFilePreview: false,
3828
3833
  imagePreview: "",
@@ -3841,6 +3846,14 @@ var script$j = {
3841
3846
  return "isMsg";
3842
3847
  }
3843
3848
 
3849
+ },
3850
+ watch: {
3851
+ externalFiles() {
3852
+ this.file = this.externalFiles;
3853
+ this.fileSize = this.externalFiles.length;
3854
+ multipleFileUpload();
3855
+ }
3856
+
3844
3857
  },
3845
3858
  methods: {
3846
3859
  openFilesByClip() {
@@ -3860,9 +3873,10 @@ var script$j = {
3860
3873
  },
3861
3874
 
3862
3875
  openSelectFileHandler(type) {
3863
- if (type == "system") {
3864
- this.$emit("open-file-system", true);
3865
- return false;
3876
+ if (type == "system") return this.$emit("open-file-system");
3877
+
3878
+ if (this.fileSettings.multiple) {
3879
+ type = 'both';
3866
3880
  }
3867
3881
 
3868
3882
  const fileInput = document.querySelector(`#${type}-${this.textId}`);
@@ -3894,12 +3908,14 @@ var script$j = {
3894
3908
 
3895
3909
  fileUpload(event, type, externalCall) {
3896
3910
  try {
3911
+ this.fileSize = 0;
3897
3912
  if (this.fileFormatError) this.file = [];
3898
3913
  this.openFiles = false;
3899
3914
  let filesAux = !externalCall ? event.target.files ? event.target.files : event.dataTransfer.files : event;
3900
3915
  this.file = filesAux.length ? filesAux : this.file;
3901
3916
  if (!this.file.length) return;
3902
3917
  this.hasAnyFile = true;
3918
+ this.fileSize = this.file.length;
3903
3919
 
3904
3920
  if (!this.fileSettings.multiple) {
3905
3921
  this.file = this.file[0];
@@ -4048,13 +4064,13 @@ var __vue_render__$j = function () {
4048
4064
  attrs: {
4049
4065
  "name": "fade"
4050
4066
  }
4051
- }, [_vm.file.length ? _c('span', {
4067
+ }, [_vm.fileSize > 0 ? _c('span', {
4052
4068
  staticClass: "files-counter",
4053
4069
  attrs: {
4054
4070
  "title": _vm.dictionary.msg_abrir_anexos
4055
4071
  },
4056
4072
  domProps: {
4057
- "textContent": _vm._s(_vm.file.length)
4073
+ "textContent": _vm._s(_vm.fileSize)
4058
4074
  },
4059
4075
  on: {
4060
4076
  "click": function ($event) {
@@ -4213,7 +4229,7 @@ var __vue_staticRenderFns__$j = [];
4213
4229
 
4214
4230
  const __vue_inject_styles__$j = function (inject) {
4215
4231
  if (!inject) return;
4216
- inject("data-v-d44243ce_0", {
4232
+ inject("data-v-0352a8b0_0", {
4217
4233
  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}",
4218
4234
  map: undefined,
4219
4235
  media: undefined
@@ -8327,7 +8343,8 @@ var script$g = {
8327
8343
  formatted_messages_2: [],
8328
8344
  key_2: "",
8329
8345
  formatted_messages_3: [],
8330
- key_3: ""
8346
+ key_3: "",
8347
+ loadingReq: false
8331
8348
  };
8332
8349
  },
8333
8350
 
@@ -8361,22 +8378,28 @@ var script$g = {
8361
8378
  return;
8362
8379
  }
8363
8380
 
8381
+ if (this.formatted_messages_3.length) this.formatted_messages_3 = [];
8382
+ if (this.key_3) this.key_3 = "";
8364
8383
  this.receiveValueFormattedMessage(`T/${this.key_2}`, 3);
8365
8384
  },
8366
8385
 
8367
8386
  receiveValueFormattedMessage(cod, selectionIndex) {
8368
8387
  try {
8369
8388
  if (!this.token_cliente) throw new Error("Informe token_cliente como chave na propriedade formattedMessageSettings que ocorre na chamada componente TextFooter ");
8389
+ this.loadingReq = true;
8370
8390
  this.getStandardMessages(cod, this.token_cliente).then(data => {
8391
+ this.loadingReq = false;
8371
8392
  if (data && typeof data == 'string') return this.$toasted.global.emConstrucao({
8372
8393
  msg: data
8373
8394
  });
8374
8395
  if (data) return this.showFormattedMessage(data, selectionIndex);
8375
8396
  this.$toasted.global.defaultError();
8376
8397
  }).catch(e => {
8398
+ this.loadingReq = false;
8377
8399
  console.error("Error in getStandardMessages: ", e);
8378
8400
  });
8379
8401
  } catch (e) {
8402
+ this.loadingReq = false;
8380
8403
  console.error("Error in receiveValueFormattedMessage: ", e);
8381
8404
  }
8382
8405
  },
@@ -8523,7 +8546,14 @@ var __vue_render__$g = function () {
8523
8546
  "slot": "no-options"
8524
8547
  },
8525
8548
  slot: "no-options"
8526
- }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _vm.formatted_messages_2.length && _vm.key_1 ? _c('v-select', {
8549
+ }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _c('div', {
8550
+ staticClass: "transition-selects"
8551
+ }, [_c('transition', {
8552
+ attrs: {
8553
+ "name": "fade",
8554
+ "mode": "out-in"
8555
+ }
8556
+ }, [_vm.formatted_messages_2.length && _vm.key_1 ? _c('div', [_c('v-select', {
8527
8557
  staticClass: "text-footer-v-select",
8528
8558
  style: "background-color: " + _vm.backgroundColor,
8529
8559
  attrs: {
@@ -8550,7 +8580,14 @@ var __vue_render__$g = function () {
8550
8580
  "slot": "no-options"
8551
8581
  },
8552
8582
  slot: "no-options"
8553
- }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]) : _vm._e(), _vm._v(" "), _vm.formatted_messages_3.length && _vm.key_2 ? _c('div', {
8583
+ }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])])], 1) : _vm.key_1 && _vm.loadingReq ? _c('div', {
8584
+ staticClass: "loader-select"
8585
+ }, [_c('VueLoader')], 1) : _vm._e()]), _vm._v(" "), _c('transition', {
8586
+ attrs: {
8587
+ "name": "fade",
8588
+ "mode": "out-in"
8589
+ }
8590
+ }, [_vm.formatted_messages_3.length && _vm.key_2 ? _c('div', {
8554
8591
  staticClass: "text-footer-select-03"
8555
8592
  }, [_c('v-select', {
8556
8593
  staticClass: "text-footer-v-select",
@@ -8607,15 +8644,25 @@ var __vue_render__$g = function () {
8607
8644
  attrs: {
8608
8645
  "icon": ['fas', 'file-alt']
8609
8646
  }
8610
- })], 1) : _vm._e()] : _vm._e()], 2) : _vm._e()], 1);
8647
+ })], 1) : _vm._e()] : _vm._e()], 2) : _vm.key_2 && _vm.loadingReq ? _c('div', {
8648
+ staticClass: "loader-select"
8649
+ }, [_c('VueLoader')], 1) : _vm._e()])], 1)], 1);
8611
8650
  };
8612
8651
 
8613
8652
  var __vue_staticRenderFns__$g = [];
8614
8653
  /* style */
8615
8654
 
8616
- const __vue_inject_styles__$g = undefined;
8655
+ const __vue_inject_styles__$g = function (inject) {
8656
+ if (!inject) return;
8657
+ inject("data-v-9fe38344_0", {
8658
+ 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}",
8659
+ map: undefined,
8660
+ media: undefined
8661
+ });
8662
+ };
8617
8663
  /* scoped */
8618
8664
 
8665
+
8619
8666
  const __vue_scope_id__$g = undefined;
8620
8667
  /* module identifier */
8621
8668
 
@@ -8623,8 +8670,6 @@ const __vue_module_identifier__$g = undefined;
8623
8670
  /* functional template */
8624
8671
 
8625
8672
  const __vue_is_functional_template__$g = false;
8626
- /* style inject */
8627
-
8628
8673
  /* style inject SSR */
8629
8674
 
8630
8675
  /* style inject shadow dom */
@@ -8632,7 +8677,7 @@ const __vue_is_functional_template__$g = false;
8632
8677
  const __vue_component__$n = /*#__PURE__*/normalizeComponent({
8633
8678
  render: __vue_render__$g,
8634
8679
  staticRenderFns: __vue_staticRenderFns__$g
8635
- }, __vue_inject_styles__$g, __vue_script__$g, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, undefined, undefined, undefined);
8680
+ }, __vue_inject_styles__$g, __vue_script__$g, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, createInjector, undefined, undefined);
8636
8681
 
8637
8682
  var StandardMessages = __vue_component__$n;
8638
8683
 
@@ -8740,6 +8785,10 @@ var script$f = {
8740
8785
  hasButtonFiles: {
8741
8786
  type: Boolean,
8742
8787
  required: false
8788
+ },
8789
+ externalFiles: {
8790
+ type: Array,
8791
+ require: false
8743
8792
  }
8744
8793
  },
8745
8794
 
@@ -8945,8 +8994,8 @@ var script$f = {
8945
8994
  this.$emit("open-image", imagePreview);
8946
8995
  },
8947
8996
 
8948
- openFileSystem(status) {
8949
- this.$emit("open-file-system", status);
8997
+ openFileSystem() {
8998
+ this.$emit("open-file-system");
8950
8999
  },
8951
9000
 
8952
9001
  setAudio(audioObj) {
@@ -9282,7 +9331,8 @@ var __vue_render__$f = function () {
9282
9331
  "dictionary": _vm.dictionary,
9283
9332
  "fileSettings": _vm.fileSettings,
9284
9333
  "cssStyle": _vm.cssStyle,
9285
- "hasButtonFiles": _vm.hasButtonFiles
9334
+ "hasButtonFiles": _vm.hasButtonFiles,
9335
+ "externalFiles": _vm.externalFiles
9286
9336
  },
9287
9337
  on: {
9288
9338
  "set-file-vars": _vm.setFileVars,
@@ -9333,7 +9383,7 @@ var __vue_staticRenderFns__$f = [];
9333
9383
 
9334
9384
  const __vue_inject_styles__$f = function (inject) {
9335
9385
  if (!inject) return;
9336
- inject("data-v-6d9479b5_0", {
9386
+ inject("data-v-35ab0f5c_0", {
9337
9387
  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}",
9338
9388
  map: undefined,
9339
9389
  media: undefined