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.
@@ -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.eyJhdGQiOiJNS1U5azQ3c2h2bGpOak9Db3dNMjJoMW94d3d4YjQ0YXd3allrbG1JVFNpMmV0aDI5ZTVIRXZNIiwibWFuYWdlciI6Ik1LVWVUQWlxWXBNTmk0M054bDVIeDM4aDdOOTNFQW9qUkN3d2ltNGw1d3dJbDdPdWpSTlV6V0ciLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOlsiMjY3Il0sImF1dGgiOiJNS1VBbTNPaWhaaWJlQVRPQ2xaRnBYYUhFN3d3eGI0NGF3d1N1S1VwNG9lN3haTXRNcUJ1aVdIIiwiaWF0IjoxNjQ4MjE1NjE3LCJleHAiOjE2NDgzMDIwMTd9.EJZTSTac_SLgq9NFnLOctf-J06u3GY1L9ZTV_1zSQ7A"
12322
+ // }
12323
+
12272
12324
  });
12273
12325
  if (typeof response != "object" || typeof response.data != "object") throw "Retorno incorreto";
12274
12326
  const {
@@ -12296,7 +12348,7 @@ var script$4 = {
12296
12348
  title,
12297
12349
  author
12298
12350
  } = og;
12299
- if (image) this.linkPreview.imageSource = image;
12351
+ if (image) this.linkPreview.imageSource = image.url ? image.url : image.url == "" ? "" : image;
12300
12352
  if (author || site_name || title) this.linkPreview.author = author ? author : site_name ? site_name : title;
12301
12353
  if (og.description) this.linkPreview.description = og.description;
12302
12354
  }
@@ -12366,8 +12418,8 @@ var __vue_staticRenderFns__$4 = [];
12366
12418
 
12367
12419
  const __vue_inject_styles__$4 = function (inject) {
12368
12420
  if (!inject) return;
12369
- inject("data-v-1c4c4efa_0", {
12370
- 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}",
12421
+ inject("data-v-2c2d6aa4_0", {
12422
+ 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}",
12371
12423
  map: undefined,
12372
12424
  media: undefined
12373
12425
  });
@@ -12375,7 +12427,7 @@ const __vue_inject_styles__$4 = function (inject) {
12375
12427
  /* scoped */
12376
12428
 
12377
12429
 
12378
- const __vue_scope_id__$4 = "data-v-1c4c4efa";
12430
+ const __vue_scope_id__$4 = "data-v-2c2d6aa4";
12379
12431
  /* module identifier */
12380
12432
 
12381
12433
  const __vue_module_identifier__$4 = undefined;
@@ -12864,7 +12916,7 @@ var __vue_render__$3 = function () {
12864
12916
  })], 1) : _vm._e()]), _vm._v(" "), _c('span', {
12865
12917
  staticClass: "autor-mensagem",
12866
12918
  domProps: {
12867
- "textContent": _vm._s(_vm.autor)
12919
+ "innerHTML": _vm._s(_vm.autor)
12868
12920
  }
12869
12921
  })], 2)], 1) : _vm._e();
12870
12922
  };
@@ -12874,8 +12926,8 @@ var __vue_staticRenderFns__$3 = [];
12874
12926
 
12875
12927
  const __vue_inject_styles__$3 = function (inject) {
12876
12928
  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}",
12929
+ inject("data-v-20d99c88_0", {
12930
+ 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
12931
  map: undefined,
12880
12932
  media: undefined
12881
12933
  });