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.
@@ -11838,12 +11838,16 @@ var script$6 = {
11838
11838
  nomeArquivo: "",
11839
11839
  audio: false,
11840
11840
  video: false,
11841
- icone: []
11841
+ icone: [],
11842
+ imgErro: false,
11843
+ imgMsgErro: ''
11842
11844
  };
11843
11845
  },
11844
11846
 
11845
11847
  mounted() {
11846
- this.setVariaveisAnexo();
11848
+ if (this.validarAnexo()) {
11849
+ this.setVariaveisAnexo();
11850
+ }
11847
11851
  },
11848
11852
 
11849
11853
  methods: {
@@ -11879,6 +11883,36 @@ var script$6 = {
11879
11883
  }
11880
11884
  },
11881
11885
 
11886
+ validarAnexo() {
11887
+ let status = true;
11888
+
11889
+ if (!this.anexo.name) {
11890
+ this.imgMsgErro = this.dictionary.img_com_erro_nome;
11891
+ status = false;
11892
+ }
11893
+
11894
+ if (!this.anexo.nomeGravacao) {
11895
+ this.imgMsgErro = this.dictionary.img_com_erro_nome_gravacao;
11896
+ status = false;
11897
+ } // if(!this.anexo.size || this.anexo.size == 0){
11898
+ // this.imgMsgErro = this.dictionary.img_com_erro_tamanho
11899
+ // status = false;
11900
+ // }
11901
+
11902
+
11903
+ if (!this.anexo.type) {
11904
+ this.imgMsgErro = this.dictionary.img_com_erro_tipo;
11905
+ status = false;
11906
+ }
11907
+
11908
+ if (status == false) {
11909
+ this.imgErro = true;
11910
+ this.carregando = false;
11911
+ }
11912
+
11913
+ return status;
11914
+ },
11915
+
11882
11916
  gerarIcone() {
11883
11917
  this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
11884
11918
  }
@@ -11905,7 +11939,25 @@ var __vue_render__$6 = function () {
11905
11939
  "name": "fade",
11906
11940
  "mode": "out-in"
11907
11941
  }
11908
- }, [_vm.carregando ? _c('Loader', {
11942
+ }, [_vm.imgErro ? _c('div', {
11943
+ directives: [{
11944
+ name: "tippy",
11945
+ rawName: "v-tippy"
11946
+ }],
11947
+ key: "error-msg",
11948
+ attrs: {
11949
+ "content": _vm.imgMsgErro
11950
+ }
11951
+ }, [_c('div', {
11952
+ staticClass: "alert alert-danger",
11953
+ attrs: {
11954
+ "role": "alert"
11955
+ }
11956
+ }, [_c('fa-icon', {
11957
+ attrs: {
11958
+ "icon": ['fas', 'file-image']
11959
+ }
11960
+ }), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.carregando ? _c('Loader', {
11909
11961
  key: "anexo-loader",
11910
11962
  attrs: {
11911
11963
  "small": true,
@@ -12024,8 +12076,8 @@ var __vue_staticRenderFns__$6 = [];
12024
12076
 
12025
12077
  const __vue_inject_styles__$6 = function (inject) {
12026
12078
  if (!inject) return;
12027
- inject("data-v-23ebefcd_0", {
12028
- 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}",
12079
+ inject("data-v-bb61477e_0", {
12080
+ 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}",
12029
12081
  map: undefined,
12030
12082
  media: undefined
12031
12083
  });
@@ -12033,7 +12085,7 @@ const __vue_inject_styles__$6 = function (inject) {
12033
12085
  /* scoped */
12034
12086
 
12035
12087
 
12036
- const __vue_scope_id__$6 = "data-v-23ebefcd";
12088
+ const __vue_scope_id__$6 = "data-v-bb61477e";
12037
12089
  /* module identifier */
12038
12090
 
12039
12091
  const __vue_module_identifier__$6 = undefined;
@@ -12265,10 +12317,10 @@ var script$4 = {
12265
12317
  const encodedURL = Buffer(url).toString("base64");
12266
12318
  const response = await this.$httpRequest({
12267
12319
  method: 'get',
12268
- url: `${baseURL}/preview?url=${encodedURL}${dev}`,
12269
- headers: {
12270
- Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
12271
- }
12320
+ url: `${baseURL}/preview?url=${encodedURL}${dev}` // headers: {
12321
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VGWnBQeEV1UHc5UXdvN21HU2tWNEl4VHN0blM3MHNyZUJTTWt3d3hiNDRhd3dDcWwxd09jIiwibWFuYWdlciI6Ik1LVXRhd3dpbTRsNXd3WW1LMWFJYXd3aW00bDV3d3d3eGI0NGF3d0s0a2pveHBPMnl6TFZ3dXBud3d4YjQ0YXd3cmxNNHRqZ3FKTExsTjMiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjczIl0sImF1dGgiOiJNS1VncmxDdkdRbElGbXZVTERCSGplV0wyOXFVUHdyOVlSMVMyeXdJanlLOUNteCIsImlhdCI6MTY0ODQ3MzYxNSwiZXhwIjoxNjQ4NTYwMDE1fQ.KSG_6_9NfQhk5br7hnXzeLyVZuT69XLaEYF9XkdgmmQ"
12322
+ // }
12323
+
12272
12324
  });
12273
12325
  if (typeof response != "object" || typeof response.data != "object") throw "Retorno incorreto";
12274
12326
  const {
@@ -12296,8 +12348,8 @@ var script$4 = {
12296
12348
  title,
12297
12349
  author
12298
12350
  } = og;
12299
- if (image) this.linkPreview.imageSource = image.url ? image.url : image;
12300
- if (author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name : title;
12351
+ if (image) this.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
12352
+ if (author || site_name || title) this.linkPreview.author = title ? title : author ? author : site_name ? site_name : "";
12301
12353
  if (og.description) this.linkPreview.description = og.description;
12302
12354
  }
12303
12355
 
@@ -12347,7 +12399,10 @@ var __vue_render__$4 = function () {
12347
12399
  "alt": "Imagem referente ao link"
12348
12400
  }
12349
12401
  })]) : _vm._e(), _vm._v(" "), _vm.linkPreview.author ? _c('div', {
12350
- staticClass: "link-preview-author"
12402
+ staticClass: "link-preview-author",
12403
+ class: {
12404
+ 'mb-0': _vm.linkPreview.description
12405
+ }
12351
12406
  }, [_c('h1', {
12352
12407
  domProps: {
12353
12408
  "textContent": _vm._s(_vm.linkPreview.author)
@@ -12366,8 +12421,8 @@ var __vue_staticRenderFns__$4 = [];
12366
12421
 
12367
12422
  const __vue_inject_styles__$4 = function (inject) {
12368
12423
  if (!inject) return;
12369
- inject("data-v-cefa4cea_0", {
12370
- 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}",
12424
+ inject("data-v-0ab9360e_0", {
12425
+ 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}",
12371
12426
  map: undefined,
12372
12427
  media: undefined
12373
12428
  });
@@ -12375,7 +12430,7 @@ const __vue_inject_styles__$4 = function (inject) {
12375
12430
  /* scoped */
12376
12431
 
12377
12432
 
12378
- const __vue_scope_id__$4 = "data-v-cefa4cea";
12433
+ const __vue_scope_id__$4 = "data-v-0ab9360e";
12379
12434
  /* module identifier */
12380
12435
 
12381
12436
  const __vue_module_identifier__$4 = undefined;
@@ -12617,11 +12672,7 @@ var __vue_render__$3 = function () {
12617
12672
  mapa: _vm.mapa,
12618
12673
  'hist-msg': _vm.histMsg
12619
12674
  }
12620
- }, [_vm.link && !_vm.mapa ? _c('LinkPreview', {
12621
- attrs: {
12622
- "message": _vm.message
12623
- }
12624
- }) : _vm._e(), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
12675
+ }, [_vm.anexos && _vm.anexos.length ? _vm._l(_vm.anexos, function (anexo, index) {
12625
12676
  return _c('div', {
12626
12677
  key: index,
12627
12678
  staticClass: "mensagem-anexo"
@@ -12677,7 +12728,11 @@ var __vue_render__$3 = function () {
12677
12728
  "icon": ['fas', 'map-marker-alt']
12678
12729
  }
12679
12730
  })], 1)], 2);
12680
- }), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('p', {
12731
+ }), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.link && !_vm.mapa ? _c('LinkPreview', {
12732
+ attrs: {
12733
+ "message": _vm.message
12734
+ }
12735
+ }) : _vm._e(), _vm._v(" "), _c('p', {
12681
12736
  domProps: {
12682
12737
  "innerHTML": _vm._s(_vm.validateInterativity() ? '' : _vm.formatMsg(_vm.message))
12683
12738
  }
@@ -12864,7 +12919,7 @@ var __vue_render__$3 = function () {
12864
12919
  })], 1) : _vm._e()]), _vm._v(" "), _c('span', {
12865
12920
  staticClass: "autor-mensagem",
12866
12921
  domProps: {
12867
- "textContent": _vm._s(_vm.autor)
12922
+ "innerHTML": _vm._s(_vm.autor)
12868
12923
  }
12869
12924
  })], 2)], 1) : _vm._e();
12870
12925
  };
@@ -12874,8 +12929,8 @@ var __vue_staticRenderFns__$3 = [];
12874
12929
 
12875
12930
  const __vue_inject_styles__$3 = function (inject) {
12876
12931
  if (!inject) return;
12877
- inject("data-v-bf266214_0", {
12878
- 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}",
12932
+ inject("data-v-257d4492_0", {
12933
+ 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}",
12879
12934
  map: undefined,
12880
12935
  media: undefined
12881
12936
  });