vue-intergrall-plugins 0.0.194 → 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.
@@ -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,37 @@ 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
+ }
11898
+
11899
+ if (!this.anexo.size || this.anexo.size == 0) {
11900
+ this.imgMsgErro = this.dictionary.img_com_erro_tamanho;
11901
+ status = false;
11902
+ }
11903
+
11904
+ if (!this.anexo.type) {
11905
+ this.imgMsgErro = this.dictionary.img_com_erro_tipo;
11906
+ status = false;
11907
+ }
11908
+
11909
+ if (status == false) {
11910
+ this.imgErro = true;
11911
+ this.carregando = false;
11912
+ }
11913
+
11914
+ return status;
11915
+ },
11916
+
11882
11917
  gerarIcone() {
11883
11918
  this.icone = this.tipoDoc === "pdf" ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
11884
11919
  }
@@ -11905,7 +11940,25 @@ var __vue_render__$6 = function () {
11905
11940
  "name": "fade",
11906
11941
  "mode": "out-in"
11907
11942
  }
11908
- }, [_vm.carregando ? _c('Loader', {
11943
+ }, [_vm.imgErro ? _c('div', {
11944
+ directives: [{
11945
+ name: "tippy",
11946
+ rawName: "v-tippy"
11947
+ }],
11948
+ key: "error-msg",
11949
+ attrs: {
11950
+ "content": _vm.imgMsgErro
11951
+ }
11952
+ }, [_c('div', {
11953
+ staticClass: "alert alert-danger",
11954
+ attrs: {
11955
+ "role": "alert"
11956
+ }
11957
+ }, [_c('fa-icon', {
11958
+ attrs: {
11959
+ "icon": ['fas', 'file-image']
11960
+ }
11961
+ }), _vm._v("\n " + _vm._s(_vm.dictionary.img_com_erro) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.carregando ? _c('Loader', {
11909
11962
  key: "anexo-loader",
11910
11963
  attrs: {
11911
11964
  "small": true,
@@ -12024,8 +12077,8 @@ var __vue_staticRenderFns__$6 = [];
12024
12077
 
12025
12078
  const __vue_inject_styles__$6 = function (inject) {
12026
12079
  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}",
12080
+ inject("data-v-2c4ac41b_0", {
12081
+ 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}",
12029
12082
  map: undefined,
12030
12083
  media: undefined
12031
12084
  });
@@ -12033,7 +12086,7 @@ const __vue_inject_styles__$6 = function (inject) {
12033
12086
  /* scoped */
12034
12087
 
12035
12088
 
12036
- const __vue_scope_id__$6 = "data-v-23ebefcd";
12089
+ const __vue_scope_id__$6 = "data-v-2c4ac41b";
12037
12090
  /* module identifier */
12038
12091
 
12039
12092
  const __vue_module_identifier__$6 = undefined;
@@ -12265,10 +12318,10 @@ var script$4 = {
12265
12318
  const encodedURL = Buffer(url).toString("base64");
12266
12319
  const response = await this.$httpRequest({
12267
12320
  method: 'get',
12268
- url: `${baseURL}/preview?url=${encodedURL}${dev}`,
12269
- headers: {
12270
- Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
12271
- }
12321
+ url: `${baseURL}/preview?url=${encodedURL}${dev}` // headers: {
12322
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
12323
+ // }
12324
+
12272
12325
  });
12273
12326
  if (typeof response != "object" || typeof response.data != "object") throw "Retorno incorreto";
12274
12327
  const {
@@ -12287,6 +12340,7 @@ var script$4 = {
12287
12340
  theme_color
12288
12341
  } = raspagem;
12289
12342
  if (description) this.linkPreview.description = description;
12343
+ if (raspagem.author) this.linkPreview.author = raspagem.author;
12290
12344
 
12291
12345
  if (og) {
12292
12346
  const {
@@ -12295,7 +12349,7 @@ var script$4 = {
12295
12349
  title,
12296
12350
  author
12297
12351
  } = og;
12298
- if (image) this.linkPreview.imageSource = image;
12352
+ if (image) this.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
12299
12353
  if (author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name : title;
12300
12354
  if (og.description) this.linkPreview.description = og.description;
12301
12355
  }
@@ -12365,8 +12419,8 @@ var __vue_staticRenderFns__$4 = [];
12365
12419
 
12366
12420
  const __vue_inject_styles__$4 = function (inject) {
12367
12421
  if (!inject) return;
12368
- inject("data-v-0d92e314_0", {
12369
- source: ".link-preview[data-v-0d92e314]{display:flex;flex-direction:column;background-color:#eee;color:#333;cursor:pointer;margin-bottom:5px;border-radius:5px}.link-preview-image[data-v-0d92e314]{display:flex;justify-content:center;align-items:center;padding:10px;margin-bottom:5px}.link-preview-author[data-v-0d92e314]{margin:5px;font-size:.625em}.link-preview-image img[data-v-0d92e314]{min-width:100px;max-width:200px}.link-preview-infos[data-v-0d92e314]{background-color:#2626261a;padding:5px;margin:0 5px 5px 5px;font-size:.8rem;border-radius:5px}",
12422
+ inject("data-v-2c2d6aa4_0", {
12423
+ 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}",
12370
12424
  map: undefined,
12371
12425
  media: undefined
12372
12426
  });
@@ -12374,7 +12428,7 @@ const __vue_inject_styles__$4 = function (inject) {
12374
12428
  /* scoped */
12375
12429
 
12376
12430
 
12377
- const __vue_scope_id__$4 = "data-v-0d92e314";
12431
+ const __vue_scope_id__$4 = "data-v-2c2d6aa4";
12378
12432
  /* module identifier */
12379
12433
 
12380
12434
  const __vue_module_identifier__$4 = undefined;
@@ -12863,7 +12917,7 @@ var __vue_render__$3 = function () {
12863
12917
  })], 1) : _vm._e()]), _vm._v(" "), _c('span', {
12864
12918
  staticClass: "autor-mensagem",
12865
12919
  domProps: {
12866
- "textContent": _vm._s(_vm.autor)
12920
+ "innerHTML": _vm._s(_vm.autor)
12867
12921
  }
12868
12922
  })], 2)], 1) : _vm._e();
12869
12923
  };
@@ -12873,8 +12927,8 @@ var __vue_staticRenderFns__$3 = [];
12873
12927
 
12874
12928
  const __vue_inject_styles__$3 = function (inject) {
12875
12929
  if (!inject) return;
12876
- inject("data-v-bf266214_0", {
12877
- 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}",
12930
+ inject("data-v-20d99c88_0", {
12931
+ 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}",
12878
12932
  map: undefined,
12879
12933
  media: undefined
12880
12934
  });