vue-intergrall-plugins 0.0.195 → 0.0.198

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,35 @@ 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
+ } // if(!this.anexo.size || this.anexo.size == 0){
10890
+ // this.imgMsgErro = this.dictionary.img_com_erro_tamanho
10891
+ // status = false;
10892
+ // }
10893
+
10894
+
10895
+ if (!this.anexo.type) {
10896
+ this.imgMsgErro = this.dictionary.img_com_erro_tipo;
10897
+ status = false;
10898
+ }
10899
+
10900
+ if (status == false) {
10901
+ this.imgErro = true;
10902
+ this.carregando = false;
10903
+ }
10904
+
10905
+ return status;
10906
+ },
10874
10907
  gerarIcone: function gerarIcone() {
10875
10908
  this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
10876
10909
  }
@@ -10894,7 +10927,25 @@ var __vue_render__$6 = function __vue_render__() {
10894
10927
  "name": "fade",
10895
10928
  "mode": "out-in"
10896
10929
  }
10897
- }, [_vm.carregando ? _c('Loader', {
10930
+ }, [_vm.imgErro ? _c('div', {
10931
+ directives: [{
10932
+ name: "tippy",
10933
+ rawName: "v-tippy"
10934
+ }],
10935
+ key: "error-msg",
10936
+ attrs: {
10937
+ "content": _vm.imgMsgErro
10938
+ }
10939
+ }, [_c('div', {
10940
+ staticClass: "alert alert-danger",
10941
+ attrs: {
10942
+ "role": "alert"
10943
+ }
10944
+ }, [_c('fa-icon', {
10945
+ attrs: {
10946
+ "icon": ['fas', 'file-image']
10947
+ }
10948
+ }), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.carregando ? _c('Loader', {
10898
10949
  key: "anexo-loader",
10899
10950
  attrs: {
10900
10951
  "small": true,
@@ -11013,8 +11064,8 @@ var __vue_staticRenderFns__$6 = [];
11013
11064
 
11014
11065
  var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
11015
11066
  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}",
11067
+ inject("data-v-bb61477e_0", {
11068
+ source: ".fade-enter-active[data-v-bb61477e],.fade-leave-active[data-v-bb61477e]{transition:opacity .5s}.fade-enter[data-v-bb61477e],.fade-leave-to[data-v-bb61477e]{opacity:0}.mensagem-div-anexo[data-v-bb61477e]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.anexo-container[data-v-bb61477e]{width:100%;margin-top:5px}.anexo-container .arquivo-erro[data-v-bb61477e],.anexo-container a[data-v-bb61477e]{padding:10px 15px 15px 15px;display:flex;justify-content:center;align-items:center}.anexo-container .arquivo-erro[data-v-bb61477e],.anexo-container p[data-v-bb61477e]{margin:0;margin-left:15px;font-size:.9rem}.anexo-container svg[data-v-bb61477e]{font-size:2rem}.anexo-container audio[data-v-bb61477e]{outline:0;width:100%}.anexo-container video[data-v-bb61477e]{width:100%;max-width:350px;cursor:pointer}.anexos-links-container[data-v-bb61477e]{width:100%;display:flex;justify-content:center;align-items:center}.anexos-links-container a[data-v-bb61477e]{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-bb61477e]{cursor:pointer}.mensagem-div-anexo img[data-v-bb61477e]{cursor:pointer;margin:10px 0;min-width:35px;width:100%;max-width:250px}.anexo-transition[data-v-bb61477e]{width:100%;height:100%}.anexo-mensagem[data-v-bb61477e]{display:flex;justify-content:center;align-items:center;flex-direction:column}.alert-danger[data-v-bb61477e]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert[data-v-bb61477e]{position:relative;padding:.65rem 1.2rem;margin:5px 0;border:1px solid transparent;border-radius:.25rem;text-align:center}.alert svg[data-v-bb61477e]{font-size:1.025em;margin-right:2px}",
11018
11069
  map: undefined,
11019
11070
  media: undefined
11020
11071
  });
@@ -11022,10 +11073,10 @@ var __vue_inject_styles__$6 = function __vue_inject_styles__(inject) {
11022
11073
  /* scoped */
11023
11074
 
11024
11075
 
11025
- var __vue_scope_id__$6 = "data-v-23ebefcd";
11076
+ var __vue_scope_id__$6 = "data-v-bb61477e";
11026
11077
  /* module identifier */
11027
11078
 
11028
- var __vue_module_identifier__$6 = "data-v-23ebefcd";
11079
+ var __vue_module_identifier__$6 = "data-v-bb61477e";
11029
11080
  /* functional template */
11030
11081
 
11031
11082
  var __vue_is_functional_template__$6 = false;
@@ -11205,10 +11256,10 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11205
11256
  _context.next = 7;
11206
11257
  return _this2.$httpRequest({
11207
11258
  method: 'get',
11208
- url: "".concat(baseURL, "/preview?url=").concat(encodedURL).concat(dev),
11209
- headers: {
11210
- Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
11211
- }
11259
+ url: "".concat(baseURL, "/preview?url=").concat(encodedURL).concat(dev) // headers: {
11260
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
11261
+ // }
11262
+
11212
11263
  });
11213
11264
 
11214
11265
  case 7:
@@ -11247,7 +11298,7 @@ var InteratividadeBotoes = __vue_component__$8;var script$4 = {
11247
11298
 
11248
11299
  if (og) {
11249
11300
  image = og.image, site_name = og.site_name, title = og.title, author = og.author;
11250
- if (image) _this2.linkPreview.imageSource = image;
11301
+ if (image) _this2.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
11251
11302
  if (author || site_name || title) _this2.linkPreview.author = author ? author : site_name ? site_name : title;
11252
11303
  if (og.description) _this2.linkPreview.description = og.description;
11253
11304
  }
@@ -11297,7 +11348,7 @@ var __vue_render__$4 = function __vue_render__() {
11297
11348
  return _vm.openUrl();
11298
11349
  }
11299
11350
  }
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-1c4c4efa><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-1c4c4efa></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div class=\"link-preview-author\" data-v-1c4c4efa><h1 data-v-1c4c4efa>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-1c4c4efa>" + (_vm.linkPreview.description ? "<p data-v-1c4c4efa>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
11351
+ }, [_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
11352
  };
11302
11353
 
11303
11354
  var __vue_staticRenderFns__$4 = [];
@@ -11305,8 +11356,8 @@ var __vue_staticRenderFns__$4 = [];
11305
11356
 
11306
11357
  var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11307
11358
  if (!inject) return;
11308
- inject("data-v-1c4c4efa_0", {
11309
- source: ".link-preview[data-v-1c4c4efa]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin:5px 0;border-radius:5px}.link-preview-image[data-v-1c4c4efa]{display:flex;justify-content:center;align-items:center;padding:10px;margin-bottom:5px}.link-preview-author[data-v-1c4c4efa]{margin:5px;font-size:.625em}.link-preview-author h1[data-v-1c4c4efa]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-1c4c4efa]{min-width:100px;max-width:200px}.link-preview-infos[data-v-1c4c4efa]{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-1c4c4efa]{text-decoration:underline}",
11359
+ inject("data-v-2c2d6aa4_0", {
11360
+ 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
11361
  map: undefined,
11311
11362
  media: undefined
11312
11363
  });
@@ -11314,10 +11365,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11314
11365
  /* scoped */
11315
11366
 
11316
11367
 
11317
- var __vue_scope_id__$4 = "data-v-1c4c4efa";
11368
+ var __vue_scope_id__$4 = "data-v-2c2d6aa4";
11318
11369
  /* module identifier */
11319
11370
 
11320
- var __vue_module_identifier__$4 = "data-v-1c4c4efa";
11371
+ var __vue_module_identifier__$4 = "data-v-2c2d6aa4";
11321
11372
  /* functional template */
11322
11373
 
11323
11374
  var __vue_is_functional_template__$4 = false;
@@ -11775,7 +11826,7 @@ var __vue_render__$3 = function __vue_render__() {
11775
11826
  })], 1) : _vm._e()]), _vm._v(" "), _c('span', {
11776
11827
  staticClass: "autor-mensagem",
11777
11828
  domProps: {
11778
- "textContent": _vm._s(_vm.autor)
11829
+ "innerHTML": _vm._s(_vm.autor)
11779
11830
  }
11780
11831
  })], 2)], 1) : _vm._e();
11781
11832
  };
@@ -11785,8 +11836,8 @@ var __vue_staticRenderFns__$3 = [];
11785
11836
 
11786
11837
  var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11787
11838
  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}",
11839
+ inject("data-v-20d99c88_0", {
11840
+ 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
11841
  map: undefined,
11791
11842
  media: undefined
11792
11843
  });
@@ -11797,7 +11848,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11797
11848
  var __vue_scope_id__$3 = undefined;
11798
11849
  /* module identifier */
11799
11850
 
11800
- var __vue_module_identifier__$3 = "data-v-bf266214";
11851
+ var __vue_module_identifier__$3 = "data-v-20d99c88";
11801
11852
  /* functional template */
11802
11853
 
11803
11854
  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.195",
3
+ "version": "0.0.198",
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
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 {
@@ -118,11 +120,13 @@ export default {
118
120
  align-items: center;
119
121
  padding: 10px;
120
122
  margin-bottom: 5px;
123
+ border-top-left-radius: 5px;
124
+ border-top-right-radius: 5px;
121
125
  }
122
126
 
123
127
  .link-preview-author {
124
128
  margin: 5px;
125
- font-size: .625em
129
+ font-size: .615em
126
130
  }
127
131
  .link-preview-author h1 {
128
132
  overflow: hidden;
@@ -143,6 +147,9 @@ export default {
143
147
  border-radius: 5px;
144
148
  }
145
149
 
150
+ .link-preview:hover {
151
+ opacity: 1;
152
+ }
146
153
  .link-preview:hover .link-preview-infos p {
147
154
  text-decoration: underline;
148
155
  }