vue-intergrall-plugins 0.0.196 → 0.0.197

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.
@@ -10834,11 +10834,15 @@ var script$6 = {
10834
10834
  nomeArquivo: "",
10835
10835
  audio: false,
10836
10836
  video: false,
10837
- icone: []
10837
+ icone: [],
10838
+ imgErro: false,
10839
+ imgMsgErro: ''
10838
10840
  };
10839
10841
  },
10840
10842
  mounted: function mounted() {
10841
- this.setVariaveisAnexo();
10843
+ if (this.validarAnexo()) {
10844
+ this.setVariaveisAnexo();
10845
+ }
10842
10846
  },
10843
10847
  methods: {
10844
10848
  abrirVisualizacaoImg: function abrirVisualizacaoImg(imagem) {
@@ -10871,6 +10875,36 @@ var script$6 = {
10871
10875
  console.error(e);
10872
10876
  }
10873
10877
  },
10878
+ validarAnexo: function validarAnexo() {
10879
+ var status = true;
10880
+
10881
+ if (!this.anexo.name) {
10882
+ this.imgMsgErro = this.dictionary.img_com_erro_nome;
10883
+ status = false;
10884
+ }
10885
+
10886
+ if (!this.anexo.nomeGravacao) {
10887
+ this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
10888
+ status = false;
10889
+ }
10890
+
10891
+ if (!this.anexo.size || this.anexo.size == 0) {
10892
+ this.imgMsgErro = this.dictionary.img_com_erro_tamanho;
10893
+ status = false;
10894
+ }
10895
+
10896
+ if (!this.anexo.type) {
10897
+ this.imgMsgErro = this.dictionary.img_com_erro_tipo;
10898
+ status = false;
10899
+ }
10900
+
10901
+ if (status == false) {
10902
+ this.imgErro = true;
10903
+ this.carregando = false;
10904
+ }
10905
+
10906
+ return status;
10907
+ },
10874
10908
  gerarIcone: function gerarIcone() {
10875
10909
  this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
10876
10910
  }
@@ -10894,7 +10928,25 @@ var __vue_render__$6 = function __vue_render__() {
10894
10928
  "name": "fade",
10895
10929
  "mode": "out-in"
10896
10930
  }
10897
- }, [_vm.carregando ? _c('Loader', {
10931
+ }, [_vm.imgErro ? _c('div', {
10932
+ directives: [{
10933
+ name: "tippy",
10934
+ rawName: "v-tippy"
10935
+ }],
10936
+ key: "error-msg",
10937
+ attrs: {
10938
+ "content": _vm.imgMsgErro
10939
+ }
10940
+ }, [_c('div', {
10941
+ staticClass: "alert alert-danger",
10942
+ attrs: {
10943
+ "role": "alert"
10944
+ }
10945
+ }, [_c('fa-icon', {
10946
+ attrs: {
10947
+ "icon": ['fas', 'file-image']
10948
+ }
10949
+ }), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.carregando ? _c('Loader', {
10898
10950
  key: "anexo-loader",
10899
10951
  attrs: {
10900
10952
  "small": true,
@@ -11013,8 +11065,8 @@ var __vue_staticRenderFns__$6 = [];
11013
11065
 
11014
11066
  var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
11015
11067
  if (!inject) return;
11016
- inject("data-v-23ebefcd_0", {
11017
- source: ".fade-enter-active[data-v-23ebefcd],.fade-leave-active[data-v-23ebefcd]{transition:opacity .5s}.fade-enter[data-v-23ebefcd],.fade-leave-to[data-v-23ebefcd]{opacity:0}.mensagem-div-anexo[data-v-23ebefcd]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-23ebefcd]{width:100%;margin-top:5px}.anexo-container .arquivo-erro[data-v-23ebefcd],.anexo-container a[data-v-23ebefcd]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container .arquivo-erro[data-v-23ebefcd],.anexo-container p[data-v-23ebefcd]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-23ebefcd]{font-size:2rem}.anexo-container audio[data-v-23ebefcd]{outline:0;width:100%}.anexo-container video[data-v-23ebefcd]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-23ebefcd]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-23ebefcd]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.anexos-links-container svg[data-v-23ebefcd]{cursor:pointer}.mensagem-div-anexo img[data-v-23ebefcd]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-23ebefcd]{width:100%;height:100%}.anexo-mensagem[data-v-23ebefcd]{display:flex;justify-content:center;align-items:center;flex-direction:column}",
11068
+ inject("data-v-2c4ac41b_0", {
11069
+ source: ".fade-enter-active[data-v-2c4ac41b],.fade-leave-active[data-v-2c4ac41b]{transition:opacity .5s}.fade-enter[data-v-2c4ac41b],.fade-leave-to[data-v-2c4ac41b]{opacity:0}.mensagem-div-anexo[data-v-2c4ac41b]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-2c4ac41b]{width:100%;margin-top:5px}.anexo-container .arquivo-erro[data-v-2c4ac41b],.anexo-container a[data-v-2c4ac41b]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container .arquivo-erro[data-v-2c4ac41b],.anexo-container p[data-v-2c4ac41b]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-2c4ac41b]{font-size:2rem}.anexo-container audio[data-v-2c4ac41b]{outline:0;width:100%}.anexo-container video[data-v-2c4ac41b]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-2c4ac41b]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-2c4ac41b]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.anexos-links-container svg[data-v-2c4ac41b]{cursor:pointer}.mensagem-div-anexo img[data-v-2c4ac41b]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-2c4ac41b]{width:100%;height:100%}.anexo-mensagem[data-v-2c4ac41b]{display:flex;justify-content:center;align-items:center;flex-direction:column}.alert-danger[data-v-2c4ac41b]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-2c4ac41b]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-2c4ac41b]{font-size:1.025em;margin-right:2px}",
11018
11070
  map: undefined,
11019
11071
  media: undefined
11020
11072
  });
@@ -11022,10 +11074,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
11022
11074
  /* scoped */
11023
11075
 
11024
11076
 
11025
- var __vue_scope_id__$6 = "data-v-23ebefcd";
11077
+ var __vue_scope_id__$6 = "data-v-2c4ac41b";
11026
11078
  /* module identifier */
11027
11079
 
11028
- var __vue_module_identifier__$6 = "data-v-23ebefcd";
11080
+ var __vue_module_identifier__$6 = "data-v-2c4ac41b";
11029
11081
  /* functional template */
11030
11082
 
11031
11083
  var __vue_is_functional_template__$6 = false;
@@ -11205,10 +11257,10 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11205
11257
  _context.next = 7;
11206
11258
  return _this2.$httpRequest({
11207
11259
  method: 'get',
11208
- url: "".concat(baseURL, "/preview?url=").concat(encodedURL).concat(dev),
11209
- headers: {
11210
- Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
11211
- }
11260
+ url: "".concat(baseURL, "/preview?url=").concat(encodedURL).concat(dev) // headers: {
11261
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
11262
+ // }
11263
+
11212
11264
  });
11213
11265
 
11214
11266
  case 7:
@@ -11247,7 +11299,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11247
11299
 
11248
11300
  if (og) {
11249
11301
  image = og.image, site_name = og.site_name, title = og.title, author = og.author;
11250
- if (image) _this2.linkPreview.imageSource = image.url ? image.url : image;
11302
+ if (image) _this2.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
11251
11303
  if (author || site_name || title) _this2.linkPreview.author = author ? author : site_name ? site_name : title;
11252
11304
  if (og.description) _this2.linkPreview.description = og.description;
11253
11305
  }
@@ -11297,7 +11349,7 @@ var __vue_render__$4 = function __vue_render__() {
11297
11349
  return _vm.openUrl();
11298
11350
  }
11299
11351
  }
11300
- }, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-cefa4cea><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-cefa4cea></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div class=\"link-preview-author\" data-v-cefa4cea><h1 data-v-cefa4cea>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-cefa4cea>" + (_vm.linkPreview.description ? "<p data-v-cefa4cea>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
11352
+ }, [_vm._ssrNode((_vm.linkPreview.imageSource ? "<div class=\"link-preview-image\"" + _vm._ssrStyle(null, _vm.linkPreview.colorTheme ? "background-color: " + _vm.linkPreview.colorTheme : '', null) + " data-v-2c2d6aa4><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-2c2d6aa4></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div class=\"link-preview-author\" data-v-2c2d6aa4><h1 data-v-2c2d6aa4>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-2c2d6aa4>" + (_vm.linkPreview.description ? "<p data-v-2c2d6aa4>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
11301
11353
  };
11302
11354
 
11303
11355
  var __vue_staticRenderFns__$4 = [];
@@ -11305,8 +11357,8 @@ var __vue_staticRenderFns__$4 = [];
11305
11357
 
11306
11358
  var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11307
11359
  if (!inject) return;
11308
- inject("data-v-cefa4cea_0", {
11309
- source: ".link-preview[data-v-cefa4cea]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin:5px 0;border-radius:5px}.link-preview-image[data-v-cefa4cea]{display:flex;justify-content:center;align-items:center;padding:10px;margin-bottom:5px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-author[data-v-cefa4cea]{margin:5px;font-size:.615em}.link-preview-author h1[data-v-cefa4cea]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-cefa4cea]{min-width:100px;max-width:200px}.link-preview-infos[data-v-cefa4cea]{background-color:#2626261a;padding:5px;margin:0 5px 5px 5px;font-size:.8rem;border-radius:5px}.link-preview:hover .link-preview-infos p[data-v-cefa4cea]{text-decoration:underline}",
11360
+ inject("data-v-2c2d6aa4_0", {
11361
+ source: ".link-preview[data-v-2c2d6aa4]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin:5px 0;border-radius:5px;opacity:.95;transition:opacity .3s ease-in-out}.link-preview-image[data-v-2c2d6aa4]{display:flex;justify-content:center;align-items:center;padding:10px;margin-bottom:5px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-author[data-v-2c2d6aa4]{margin:5px;font-size:.615em}.link-preview-author h1[data-v-2c2d6aa4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-2c2d6aa4]{min-width:100px;max-width:200px}.link-preview-infos[data-v-2c2d6aa4]{background-color:#2626261a;padding:5px;margin:0 5px 5px 5px;font-size:.8rem;border-radius:5px}.link-preview[data-v-2c2d6aa4]:hover{opacity:1}.link-preview:hover .link-preview-infos p[data-v-2c2d6aa4]{text-decoration:underline}",
11310
11362
  map: undefined,
11311
11363
  media: undefined
11312
11364
  });
@@ -11314,10 +11366,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11314
11366
  /* scoped */
11315
11367
 
11316
11368
 
11317
- var __vue_scope_id__$4 = "data-v-cefa4cea";
11369
+ var __vue_scope_id__$4 = "data-v-2c2d6aa4";
11318
11370
  /* module identifier */
11319
11371
 
11320
- var __vue_module_identifier__$4 = "data-v-cefa4cea";
11372
+ var __vue_module_identifier__$4 = "data-v-2c2d6aa4";
11321
11373
  /* functional template */
11322
11374
 
11323
11375
  var __vue_is_functional_template__$4 = false;
@@ -11775,7 +11827,7 @@ var __vue_render__$3 = function __vue_render__() {
11775
11827
  })], 1) : _vm._e()]), _vm._v(" "), _c('span', {
11776
11828
  staticClass: "autor-mensagem",
11777
11829
  domProps: {
11778
- "textContent": _vm._s(_vm.autor)
11830
+ "innerHTML": _vm._s(_vm.autor)
11779
11831
  }
11780
11832
  })], 2)], 1) : _vm._e();
11781
11833
  };
@@ -11785,8 +11837,8 @@ var __vue_staticRenderFns__$3 = [];
11785
11837
 
11786
11838
  var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11787
11839
  if (!inject) return;
11788
- inject("data-v-bf266214_0", {
11789
- source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;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}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros .check{display:none}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
11840
+ inject("data-v-20d99c88_0", {
11841
+ source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;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}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
11790
11842
  map: undefined,
11791
11843
  media: undefined
11792
11844
  });
@@ -11797,7 +11849,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11797
11849
  var __vue_scope_id__$3 = undefined;
11798
11850
  /* module identifier */
11799
11851
 
11800
- var __vue_module_identifier__$3 = "data-v-bf266214";
11852
+ var __vue_module_identifier__$3 = "data-v-20d99c88";
11801
11853
  /* functional template */
11802
11854
 
11803
11855
  var __vue_is_functional_template__$3 = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.196",
3
+ "version": "0.0.197",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -1,6 +1,12 @@
1
1
  <template>
2
2
  <div class="mensagem-div-anexo">
3
3
  <transition-group name="fade" mode="out-in" class="anexo-transition">
4
+ <div v-if="imgErro" key="error-msg" v-tippy :content="imgMsgErro">
5
+ <div class="alert alert-danger" role="alert">
6
+ <fa-icon :icon="['fas', 'file-image']" />
7
+ {{dictionary.img_com_erro}}
8
+ </div>
9
+ </div>
4
10
  <Loader v-if="carregando" :small="true" key="anexo-loader" :slow="true" />
5
11
  <div v-else key="anexo-mensagem" class="anexo-mensagem">
6
12
  <img v-if="imgAnexo" @click="abrirVisualizacaoImg(imgAnexo)" :src="imgAnexo" :alt="dictionary.alt_msg_img">
@@ -69,11 +75,15 @@ export default {
69
75
  nomeArquivo: "",
70
76
  audio: false,
71
77
  video: false,
72
- icone: []
78
+ icone: [],
79
+ imgErro: false,
80
+ imgMsgErro: '',
73
81
  }
74
82
  },
75
83
  mounted() {
76
- this.setVariaveisAnexo()
84
+ if(this.validarAnexo()){
85
+ this.setVariaveisAnexo()
86
+ }
77
87
  },
78
88
  methods: {
79
89
  abrirVisualizacaoImg(imagem){
@@ -107,6 +117,30 @@ export default {
107
117
  console.error(e)
108
118
  }
109
119
  },
120
+ validarAnexo(){
121
+ let status = true;
122
+ if(!this.anexo.name){
123
+ this.imgMsgErro = this.dictionary.img_com_erro_nome
124
+ status = false;
125
+ }
126
+ if(!this.anexo.nomeGravacao){
127
+ this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao
128
+ status = false;
129
+ }
130
+ if(!this.anexo.size || this.anexo.size == 0){
131
+ this.imgMsgErro = this.dictionary.img_com_erro_tamanho
132
+ status = false;
133
+ }
134
+ if(!this.anexo.type){
135
+ this.imgMsgErro = this.dictionary.img_com_erro_tipo
136
+ status = false;
137
+ }
138
+ if(status == false){
139
+ this.imgErro = true;
140
+ this.carregando = false;
141
+ }
142
+ return status;
143
+ },
110
144
  gerarIcone() {
111
145
  this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt']
112
146
  }
@@ -196,4 +230,24 @@ export default {
196
230
  align-items: center;
197
231
  flex-direction: column;
198
232
  }
233
+
234
+ .alert-danger {
235
+ color: #721c24;
236
+ background-color: #f8d7da;
237
+ border-color: #f5c6cb;
238
+ }
239
+
240
+ .alert {
241
+ position: relative;
242
+ padding: 0.65rem 1.2rem;
243
+ margin: 5px 0;
244
+ border: 1px solid transparent;
245
+ border-radius: 0.25rem;
246
+ text-align: center;
247
+ }
248
+
249
+ .alert svg {
250
+ font-size: 1.025em;
251
+ margin-right: 2px;
252
+ }
199
253
  </style>
@@ -61,7 +61,7 @@
61
61
  <span class="check vermelho" v-else-if="status == 'T'" :content="contentTooltip" v-tippy key="hourglass"> <fa-icon :icon="['fas', 'hourglass']" /> </span> <!-- Status finalizador -->
62
62
  </transition>
63
63
 
64
- <span class="autor-mensagem" v-text="autor"></span>
64
+ <span class="autor-mensagem" v-html="autor"></span>
65
65
  </div>
66
66
  </div>
67
67
  </template>
@@ -411,9 +411,9 @@ export default {
411
411
  left: -10px;
412
412
  transform: rotate(90deg);
413
413
  }
414
- .mensagem__outros .check{
414
+ /* .mensagem__outros .check{
415
415
  display: none
416
- }
416
+ } */
417
417
  .mensagem__outros > .autor-mensagem{
418
418
  left: 5px;
419
419
  color: #333;
@@ -67,9 +67,9 @@ export default {
67
67
  {
68
68
  method: 'get',
69
69
  url: `${baseURL}/preview?url=${encodedURL}${dev}`,
70
- headers: {
71
- Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
72
- }
70
+ // headers: {
71
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
72
+ // }
73
73
  })
74
74
  if(typeof response != "object" || typeof response.data != "object") throw "Retorno incorreto"
75
75
  const { data } = response
@@ -81,7 +81,7 @@ export default {
81
81
  if(raspagem.author) this.linkPreview.author = raspagem.author
82
82
  if(og) {
83
83
  const { image, site_name, title, author } = og
84
- if(image) this.linkPreview.imageSource = image.url ? image.url : image
84
+ if(image) this.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image
85
85
  if(author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name : title
86
86
  if(og.description) this.linkPreview.description = og.description
87
87
  }
@@ -110,6 +110,8 @@ export default {
110
110
  cursor: pointer;
111
111
  margin: 5px 0;
112
112
  border-radius: 5px;
113
+ opacity: .95;
114
+ transition: opacity 300ms ease-in-out;
113
115
  }
114
116
 
115
117
  .link-preview-image {
@@ -145,6 +147,9 @@ export default {
145
147
  border-radius: 5px;
146
148
  }
147
149
 
150
+ .link-preview:hover {
151
+ opacity: 1;
152
+ }
148
153
  .link-preview:hover .link-preview-infos p {
149
154
  text-decoration: underline;
150
155
  }