vue-intergrall-plugins 0.0.196 → 0.0.199

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.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
11261
+ // }
11262
+
11212
11263
  });
11213
11264
 
11214
11265
  case 7:
@@ -11247,8 +11298,8 @@ 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.url ? image.url : image;
11251
- if (author || site_name || title) _this2.linkPreview.author = author ? author : site_name ? site_name : title;
11301
+ if (image) _this2.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
11302
+ if (author || site_name || title) _this2.linkPreview.author = title ? title : author ? author : site_name ? site_name : "";
11252
11303
  if (og.description) _this2.linkPreview.description = og.description;
11253
11304
  }
11254
11305
 
@@ -11297,7 +11348,9 @@ 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-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();
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-0ab9360e><img" + _vm._ssrAttr("src", _vm.linkPreview.imageSource) + " alt=\"Imagem referente ao link\" data-v-0ab9360e></div>" : "<!---->") + " " + (_vm.linkPreview.author ? "<div" + _vm._ssrClass("link-preview-author", {
11352
+ 'mb-0': _vm.linkPreview.description
11353
+ }) + " data-v-0ab9360e><h1 data-v-0ab9360e>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.author)) + "</h1></div>" : "<!---->") + " " + (_vm.linkPreview.description ? "<div class=\"link-preview-infos\" data-v-0ab9360e>" + (_vm.linkPreview.description ? "<p data-v-0ab9360e>" + _vm._ssrEscape(_vm._s(_vm.linkPreview.description)) + "</p>" : "<!---->") + "</div>" : "<!---->"))]) : _vm._e();
11301
11354
  };
11302
11355
 
11303
11356
  var __vue_staticRenderFns__$4 = [];
@@ -11305,8 +11358,8 @@ var __vue_staticRenderFns__$4 = [];
11305
11358
 
11306
11359
  var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11307
11360
  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}",
11361
+ inject("data-v-0ab9360e_0", {
11362
+ source: ".link-preview[data-v-0ab9360e]{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;font-size:.85rem}.link-preview-image[data-v-0ab9360e]{display:flex;justify-content:center;align-items:center;padding:1px;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-author[data-v-0ab9360e]{margin:5px;font-size:.615em;font-weight:700}.link-preview-author.mb-0[data-v-0ab9360e]{margin-bottom:0}.link-preview-author h1[data-v-0ab9360e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-image img[data-v-0ab9360e]{min-width:100px;max-width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.link-preview-infos[data-v-0ab9360e]{background-color:#2626261a;padding:5px;margin:5px;font-size:.83em;border-radius:5px}.link-preview[data-v-0ab9360e]:hover{opacity:1}.link-preview:hover .link-preview-infos p[data-v-0ab9360e]{text-decoration:underline}",
11310
11363
  map: undefined,
11311
11364
  media: undefined
11312
11365
  });
@@ -11314,10 +11367,10 @@ var __vue_inject_styles__$4 = function __vue_inject_styles__(inject) {
11314
11367
  /* scoped */
11315
11368
 
11316
11369
 
11317
- var __vue_scope_id__$4 = "data-v-cefa4cea";
11370
+ var __vue_scope_id__$4 = "data-v-0ab9360e";
11318
11371
  /* module identifier */
11319
11372
 
11320
- var __vue_module_identifier__$4 = "data-v-cefa4cea";
11373
+ var __vue_module_identifier__$4 = "data-v-0ab9360e";
11321
11374
  /* functional template */
11322
11375
 
11323
11376
  var __vue_is_functional_template__$4 = false;
@@ -11528,11 +11581,7 @@ var __vue_render__$3 = function __vue_render__() {
11528
11581
  mapa: _vm.mapa,
11529
11582
  'hist-msg': _vm.histMsg
11530
11583
  }
11531
- }, [_vm.link && !_vm.mapa ? _c('LinkPreview', {
11532
- attrs: {
11533
- "message": _vm.message
11534
- }
11535
- }) : _vm._e(), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
11584
+ }, [_vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
11536
11585
  return _c('div', {
11537
11586
  key: index,
11538
11587
  staticClass: "mensagem-anexo"
@@ -11588,7 +11637,11 @@ var __vue_render__$3 = function __vue_render__() {
11588
11637
  "icon": ['fas', 'map-marker-alt']
11589
11638
  }
11590
11639
  })], 1)], 2);
11591
- }), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('p', {
11640
+ }), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.link && !_vm.mapa ? _c('LinkPreview', {
11641
+ attrs: {
11642
+ "message": _vm.message
11643
+ }
11644
+ }) : _vm._e(), _vm._v(" "), _c('p', {
11592
11645
  domProps: {
11593
11646
  "innerHTML": _vm._s(_vm.validateInterativity() ? '' : _vm.formatMsg(_vm.message))
11594
11647
  }
@@ -11775,7 +11828,7 @@ var __vue_render__$3 = function __vue_render__() {
11775
11828
  })], 1) : _vm._e()]), _vm._v(" "), _c('span', {
11776
11829
  staticClass: "autor-mensagem",
11777
11830
  domProps: {
11778
- "textContent": _vm._s(_vm.autor)
11831
+ "innerHTML": _vm._s(_vm.autor)
11779
11832
  }
11780
11833
  })], 2)], 1) : _vm._e();
11781
11834
  };
@@ -11785,8 +11838,8 @@ var __vue_staticRenderFns__$3 = [];
11785
11838
 
11786
11839
  var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11787
11840
  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}",
11841
+ inject("data-v-257d4492_0", {
11842
+ 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
11843
  map: undefined,
11791
11844
  media: undefined
11792
11845
  });
@@ -11797,7 +11850,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
11797
11850
  var __vue_scope_id__$3 = undefined;
11798
11851
  /* module identifier */
11799
11852
 
11800
- var __vue_module_identifier__$3 = "data-v-bf266214";
11853
+ var __vue_module_identifier__$3 = "data-v-257d4492";
11801
11854
  /* functional template */
11802
11855
 
11803
11856
  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.199",
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>
@@ -6,7 +6,6 @@
6
6
  :dictionary="dictionary"
7
7
  />
8
8
  <div v-else class="mensagem" :class="{mapa, 'hist-msg' : histMsg}">
9
- <LinkPreview v-if="link && !mapa" :message="message" />
10
9
  <template v-if="anexos && anexos.length">
11
10
  <div class="mensagem-anexo" v-for="(anexo, index) in anexos" :key="index">
12
11
  <AnexoMensagem :dictionary="dictionary" :anexo="anexo" :origemExterna="origemExterna" :dominio="dominio" @abrir-imagem="abrirImagem"/>
@@ -30,6 +29,7 @@
30
29
  </li>
31
30
  </ul>
32
31
  </div>
32
+ <LinkPreview v-if="link && !mapa" :message="message" />
33
33
  <p v-html="validateInterativity() ? '' : formatMsg(message)"></p>
34
34
  <InteratividadeBotoes
35
35
  v-if="interatividade"
@@ -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;
@@ -12,7 +12,7 @@
12
12
  >
13
13
  <img :src="linkPreview.imageSource" alt="Imagem referente ao link" />
14
14
  </div>
15
- <div class="link-preview-author" v-if="linkPreview.author">
15
+ <div class="link-preview-author" :class="{'mb-0' : linkPreview.description}" v-if="linkPreview.author">
16
16
  <h1 v-text="linkPreview.author"></h1>
17
17
  </div>
18
18
  <div v-if="linkPreview.description" class="link-preview-infos">
@@ -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.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
72
+ // }
73
73
  })
74
74
  if(typeof response != "object" || typeof response.data != "object") throw "Retorno incorreto"
75
75
  const { data } = response
@@ -81,8 +81,8 @@ 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
85
- if(author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name : title
84
+ if(image) this.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image
85
+ if(author || site_name || title) this.linkPreview.author = title ? title : author ? author : site_name ? site_name : ""
86
86
  if(og.description) this.linkPreview.description = og.description
87
87
  }
88
88
  if(theme_color) this.linkPreview.colorTheme = theme_color
@@ -110,21 +110,27 @@ 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;
115
+ font-size: .85rem;
113
116
  }
114
117
 
115
118
  .link-preview-image {
116
119
  display: flex;
117
120
  justify-content: center;
118
121
  align-items: center;
119
- padding: 10px;
120
- margin-bottom: 5px;
122
+ padding: 1px;
121
123
  border-top-left-radius: 5px;
122
124
  border-top-right-radius: 5px;
123
125
  }
124
126
 
125
127
  .link-preview-author {
126
128
  margin: 5px;
127
- font-size: .615em
129
+ font-size: .615em;
130
+ font-weight: bold;
131
+ }
132
+ .link-preview-author.mb-0 {
133
+ margin-bottom: 0;
128
134
  }
129
135
  .link-preview-author h1 {
130
136
  overflow: hidden;
@@ -134,17 +140,22 @@ export default {
134
140
 
135
141
  .link-preview-image img {
136
142
  min-width: 100px;
137
- max-width: 200px;
143
+ max-width: 100%;
144
+ border-top-left-radius: 5px;
145
+ border-top-right-radius: 5px;
138
146
  }
139
147
 
140
148
  .link-preview-infos {
141
149
  background-color: #2626261a;
142
150
  padding: 5px;
143
- margin: 0 5px 5px 5px;
144
- font-size: .8rem;
151
+ margin: 5px;
152
+ font-size: .83em;
145
153
  border-radius: 5px;
146
154
  }
147
155
 
156
+ .link-preview:hover {
157
+ opacity: 1;
158
+ }
148
159
  .link-preview:hover .link-preview-infos p {
149
160
  text-decoration: underline;
150
161
  }