vue-intergrall-plugins 1.0.54 → 1.0.55

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.
@@ -6761,7 +6761,8 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6761
6761
  docAnexo = "",
6762
6762
  nomeArquivo = "",
6763
6763
  audio = false,
6764
- video = false;
6764
+ video = false,
6765
+ downloadAnexo = "";
6765
6766
  try {
6766
6767
  if (!anexos) throw {
6767
6768
  code: -1
@@ -6799,7 +6800,8 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6799
6800
  case "image/jpeg":
6800
6801
  case "jpeg":
6801
6802
  if (!ignoreMku) {
6802
- imgAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mkuDownload);
6803
+ imgAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
6804
+ downloadAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mkuDownload);
6803
6805
  nomeArquivo = name;
6804
6806
  }
6805
6807
  break;
@@ -6821,7 +6823,8 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6821
6823
  tipoDoc = "audio/mpeg";
6822
6824
  }
6823
6825
  if (!ignoreMku) {
6824
- docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mkuDownload);
6826
+ docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
6827
+ downloadAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mkuDownload);
6825
6828
  nomeArquivo = name;
6826
6829
  }
6827
6830
  audio = true;
@@ -6837,7 +6840,8 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6837
6840
  tipoDoc = "video/webm";
6838
6841
  }
6839
6842
  if (!ignoreMku) {
6840
- docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mkuDownload);
6843
+ docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
6844
+ downloadAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mkuDownload);
6841
6845
  nomeArquivo = name;
6842
6846
  }
6843
6847
  video = true;
@@ -6845,7 +6849,8 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6845
6849
  default:
6846
6850
  tipoDoc = type;
6847
6851
  if (!ignoreMku) {
6848
- docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mkuDownload);
6852
+ docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
6853
+ downloadAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mkuDownload);
6849
6854
  nomeArquivo = name;
6850
6855
  }
6851
6856
  break;
@@ -6857,7 +6862,8 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6857
6862
  docAnexo: docAnexo,
6858
6863
  nomeArquivo: nomeArquivo,
6859
6864
  audio: audio,
6860
- video: video
6865
+ video: video,
6866
+ downloadAnexo: downloadAnexo
6861
6867
  });
6862
6868
  } catch (e) {
6863
6869
  if (e.code === -1) return {
@@ -6866,6 +6872,7 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6866
6872
  tipoDoc: "",
6867
6873
  docAnexo: "",
6868
6874
  nomeArquivo: "",
6875
+ downloadAnexo: "",
6869
6876
  audio: false,
6870
6877
  video: false
6871
6878
  };
@@ -6883,12 +6890,13 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6883
6890
  filename: "",
6884
6891
  audio: false,
6885
6892
  video: false,
6893
+ downloadURL: "",
6886
6894
  icon: []
6887
6895
  };
6888
6896
  },
6889
6897
  computed: {
6890
6898
  iconClass: function iconClass() {
6891
- return typeof this.fileType == 'string' && this.fileType.indexOf('pdf') > -1 ? "pdf" : "doc";
6899
+ return typeof this.fileType === 'string' && this.fileType.indexOf('pdf') > -1 ? "pdf" : "doc";
6892
6900
  }
6893
6901
  },
6894
6902
  methods: {
@@ -6896,7 +6904,7 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6896
6904
  var viewableExtensions = ["pdf", "txt", "html", "css", "js", "json", "xml", "woff", "svg", "gif", "mp4", "mp3", "aac", "ogg", "wma"];
6897
6905
  if (!isImg && !viewableExtensions.includes(this.fileType)) {
6898
6906
  var a = document.createElement("a");
6899
- a.setAttribute("href", link);
6907
+ a.setAttribute("href", this.downloadURL);
6900
6908
  a.setAttribute("download", this.filename);
6901
6909
  a.setAttribute("target", "_blank");
6902
6910
  a.setAttribute("rel", "noopener noreferrer");
@@ -6909,7 +6917,7 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6909
6917
  window.open(link, "anexo-ra", options);
6910
6918
  },
6911
6919
  showImage: function showImage(image) {
6912
- if (!image) return console.warn("Não foi possível abrir a imagem");
6920
+ if (!image) return console.warn("Nao foi possivel abrir a imagem");
6913
6921
  this.$emit("abrir-imagem", image);
6914
6922
  },
6915
6923
  setFileVars: function setFileVars(rawFile, storeObj) {
@@ -6925,12 +6933,14 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6925
6933
  docAnexo = _gerarVariaveisAnexo.docAnexo,
6926
6934
  nomeArquivo = _gerarVariaveisAnexo.nomeArquivo,
6927
6935
  audio = _gerarVariaveisAnexo.audio,
6928
- video = _gerarVariaveisAnexo.video;
6936
+ video = _gerarVariaveisAnexo.video,
6937
+ downloadAnexo = _gerarVariaveisAnexo.downloadAnexo;
6929
6938
  this.isFile = anexo;
6930
6939
  this.imageURL = imgAnexo;
6931
6940
  this.fileType = tipoDoc;
6932
6941
  this.docURL = docAnexo;
6933
6942
  this.filename = nomeArquivo;
6943
+ this.downloadURL = downloadAnexo;
6934
6944
  this.audio = audio;
6935
6945
  this.video = video;
6936
6946
  this.setIcon();
@@ -6941,7 +6951,7 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6941
6951
  }
6942
6952
  },
6943
6953
  setIcon: function setIcon() {
6944
- this.icon = typeof this.fileType == 'string' && this.fileType.indexOf('pdf') > -1 ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
6954
+ this.icon = typeof this.fileType === 'string' && this.fileType.indexOf('pdf') > -1 ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
6945
6955
  },
6946
6956
  downloadAllFilesHandler: function downloadAllFilesHandler(referenceSelector) {
6947
6957
  var _this = this;
@@ -6970,7 +6980,7 @@ var __vue_component__$r = __vue_component__$q;var textoLongo = {
6970
6980
  }
6971
6981
  }, 300);
6972
6982
  } catch (error) {
6973
- console.error("Erro ao fazer o donwload de todos anexos");
6983
+ console.error("Erro ao fazer o download de todos anexos");
6974
6984
  this.$toasted.global.defaultError({
6975
6985
  msg: error.message ? error.message : error
6976
6986
  });
@@ -9949,6 +9959,14 @@ var __vue_render__$3 = function __vue_render__() {
9949
9959
  "src": "" + _vm.imageURL,
9950
9960
  "alt": _vm.filename
9951
9961
  }
9962
+ })]) : _vm.video ? _c('span', {
9963
+ staticClass: "anexo-video box-shadow"
9964
+ }, [_c('video', {
9965
+ attrs: {
9966
+ "controls": "",
9967
+ "src": _vm.docURL,
9968
+ "title": _vm.filename
9969
+ }
9952
9970
  })]) : _c('span', {
9953
9971
  staticClass: "anexo-icone",
9954
9972
  class: [_vm.iconClass],
@@ -9968,7 +9986,7 @@ var __vue_render__$3 = function __vue_render__() {
9968
9986
  })], 1), _vm._v(" "), _c('a', {
9969
9987
  staticClass: "anexo-download box-shadow",
9970
9988
  attrs: {
9971
- "href": _vm.imageURL ? _vm.imageURL : _vm.docURL,
9989
+ "href": _vm.downloadURL,
9972
9990
  "download": "" + _vm.filename,
9973
9991
  "target": "_blank",
9974
9992
  "title": "Download " + _vm.filename
@@ -9992,8 +10010,8 @@ var __vue_staticRenderFns__$3 = [];
9992
10010
  /* style */
9993
10011
  var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
9994
10012
  if (!inject) return;
9995
- inject("data-v-56ef8c0e_0", {
9996
- source: ".email-file{display:flex;align-items:center;justify-content:flex-end;flex-direction:column;min-width:50px;width:auto;max-width:100px;height:70px;position:relative}.anexo-img{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.anexo-img:hover{opacity:1}.anexo-img img{max-width:100%;max-height:100%;font-size:.8rem}.box-shadow{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.anexo-icone{display:flex;justify-content:center;align-items:center;font-size:30px;cursor:pointer}.anexo-icone:hover{opacity:1}.anexo-icone:visited{color:inherit}.anexo-icone.pdf{position:relative}.anexo-icone.pdf svg{color:#e74c3c}.anexo-icone.pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px}.anexo-icone.doc{color:#15517f}.anexo-icone.doc::after{content:\"\";position:absolute;width:20px;height:20px}.anexo-download{position:absolute;top:0;right:0;border-radius:5px;padding:5px;display:flex;justify-content:center;align-items:center;color:#222;background-color:#fff;z-index:1;font-size:.8rem}.anexo-name{max-width:100%;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 0 5px 0}",
10013
+ inject("data-v-021fddf8_0", {
10014
+ source: ".email-file{display:flex;align-items:center;justify-content:flex-end;flex-direction:column;min-width:50px;width:auto;max-width:100px;height:70px;position:relative}.anexo-img{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.anexo-img:hover{opacity:1}.anexo-img img{max-width:100%;max-height:100%;font-size:.8rem}.anexo-video{width:100%;height:100%}.anexo-video video{max-width:100%}.box-shadow{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.anexo-icone{display:flex;justify-content:center;align-items:center;font-size:30px;cursor:pointer}.anexo-icone:hover{opacity:1}.anexo-icone:visited{color:inherit}.anexo-icone.pdf{position:relative}.anexo-icone.pdf svg{color:#e74c3c}.anexo-icone.pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px}.anexo-icone.doc{color:#15517f}.anexo-icone.doc::after{content:\"\";position:absolute;width:20px;height:20px}.anexo-download{position:absolute;top:0;right:0;border-radius:5px;padding:5px;display:flex;justify-content:center;align-items:center;color:#222;background-color:#fff;z-index:1;font-size:.8rem;cursor:pointer}.anexo-name{max-width:100%;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 0 5px 0}",
9997
10015
  map: undefined,
9998
10016
  media: undefined
9999
10017
  });
@@ -10001,7 +10019,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
10001
10019
  /* scoped */
10002
10020
  var __vue_scope_id__$3 = undefined;
10003
10021
  /* module identifier */
10004
- var __vue_module_identifier__$3 = "data-v-56ef8c0e";
10022
+ var __vue_module_identifier__$3 = "data-v-021fddf8";
10005
10023
  /* functional template */
10006
10024
  var __vue_is_functional_template__$3 = false;
10007
10025
  /* style inject shadow dom */
@@ -10313,6 +10331,12 @@ var script$1 = {
10313
10331
  returnMainValue: function returnMainValue() {
10314
10332
  if (this.isMainEmail) return this.htmlEntityToEmoji(this.replaceUnicodeWithEmoji(this.assunto)) || '(Sem assunto)';
10315
10333
  return '';
10334
+ },
10335
+ openByItem: function openByItem(event) {
10336
+ if (this.isOpen) return;
10337
+ event.preventDefault();
10338
+ event.stopPropagation();
10339
+ this.toggleIsOpen();
10316
10340
  }
10317
10341
  }
10318
10342
  };/* script */
@@ -10324,20 +10348,25 @@ var __vue_render__$1 = function __vue_render__() {
10324
10348
  var _h = _vm.$createElement;
10325
10349
  var _c = _vm._self._c || _h;
10326
10350
  return _c('div', {
10327
- class: ['email-item box-shadow-active', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass, _vm.showInfos ? 'info-open' : '', _vm.origem]
10328
- }, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-7b2d9d14></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem]) + " data-v-7b2d9d14>", "</div>", [_c('fa-icon', {
10351
+ class: ['email-item box-shadow-active', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass + " cursor-pointer", _vm.showInfos ? 'info-open' : '', _vm.origem],
10352
+ on: {
10353
+ "click": function click($event) {
10354
+ return _vm.openByItem($event);
10355
+ }
10356
+ }
10357
+ }, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-e3682be0></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem]) + " data-v-e3682be0>", "</div>", [_c('fa-icon', {
10329
10358
  class: [_vm.origem],
10330
10359
  attrs: {
10331
10360
  "icon": ['fas', 'reply'],
10332
10361
  "title": "Enviado por: " + _vm.autor
10333
10362
  }
10334
- }), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName()) + " class=\"email-author-name\" data-v-7b2d9d14>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName())) + "</p> "), _c('fa-icon', {
10363
+ }), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName()) + " class=\"email-author-name\" data-v-e3682be0>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName())) + "</p> "), _c('fa-icon', {
10335
10364
  staticClass: "email-to-svg",
10336
10365
  attrs: {
10337
10366
  "icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset'],
10338
10367
  "title": "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')
10339
10368
  }
10340
- })], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-7b2d9d14>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-7b2d9d14>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> "), _vm._ssrNode("<div class=\"header-container\" data-v-7b2d9d14>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-7b2d9d14>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-7b2d9d14>", "</div>", [_vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-7b2d9d14>", "</div>", [_vm._l(_vm.para, function (recipient, index) {
10369
+ })], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-e3682be0>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-e3682be0>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> "), _vm._ssrNode("<div class=\"header-container\" data-v-e3682be0>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-e3682be0>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-e3682be0>", "</div>", [_vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-e3682be0>", "</div>", [_vm._l(_vm.para, function (recipient, index) {
10341
10370
  return _c('EmailTo', {
10342
10371
  key: "to-" + index,
10343
10372
  attrs: {
@@ -10346,11 +10375,11 @@ var __vue_render__$1 = function __vue_render__() {
10346
10375
  "showMail": _vm.para.length === 1
10347
10376
  }
10348
10377
  });
10349
- }), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-7b2d9d14>", "</div>", [_c('fa-icon', {
10378
+ }), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-e3682be0>", "</div>", [_c('fa-icon', {
10350
10379
  attrs: {
10351
10380
  "icon": ['fas', 'caret-down']
10352
10381
  }
10353
- })], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-7b2d9d14><span class=\"email-subject-span\" data-v-7b2d9d14>" + _vm._ssrEscape(_vm._s("Assunto: " + (_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)'))) + "</span></div>" : "<!---->"))], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + _vm._ssrClass(null, "email-date " + (_vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass)) + " data-v-7b2d9d14>", "</span>", [_c('fa-icon', {
10382
+ })], 1)], 2)] : _vm._e(), _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-e3682be0><span class=\"email-subject-span\" data-v-e3682be0>" + _vm._ssrEscape(_vm._s("Assunto: " + (_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)'))) + "</span></div>" : "<!---->"))], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + _vm._ssrClass(null, "email-date " + (_vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass)) + " data-v-e3682be0>", "</span>", [_c('fa-icon', {
10354
10383
  attrs: {
10355
10384
  "icon": ['fas', 'calendar']
10356
10385
  }
@@ -10370,10 +10399,10 @@ var __vue_render__$1 = function __vue_render__() {
10370
10399
  }
10371
10400
  }
10372
10401
  }, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
10373
- return "<li class=\"email-info\" data-v-7b2d9d14><span data-v-7b2d9d14>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
10402
+ return "<li class=\"email-info\" data-v-e3682be0><span data-v-e3682be0>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
10374
10403
  }))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
10375
10404
  active: _vm.actionsOpen
10376
- }]) + " data-v-7b2d9d14><span data-v-7b2d9d14></span> <span data-v-7b2d9d14></span> <span data-v-7b2d9d14></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
10405
+ }]) + " data-v-e3682be0><span data-v-e3682be0></span> <span data-v-e3682be0></span> <span data-v-e3682be0></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
10377
10406
  directives: [{
10378
10407
  name: "clickaway",
10379
10408
  rawName: "v-clickaway",
@@ -10386,7 +10415,7 @@ var __vue_render__$1 = function __vue_render__() {
10386
10415
  $event.stopPropagation();
10387
10416
  }
10388
10417
  }
10389
- }, [_vm._ssrNode("<li class=\"email-action\" data-v-7b2d9d14>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
10418
+ }, [_vm._ssrNode("<li class=\"email-action\" data-v-e3682be0>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
10390
10419
  attrs: {
10391
10420
  "name": "show-y-top"
10392
10421
  }
@@ -10398,7 +10427,7 @@ var __vue_render__$1 = function __vue_render__() {
10398
10427
  staticClass: "email-html"
10399
10428
  }), _vm._v(" "), _vm.openMessage ? _c('span', {
10400
10429
  staticClass: "email-raw"
10401
- }, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()]) : _vm._e()]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-7b2d9d14>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
10430
+ }, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()]) : _vm._e()]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-e3682be0>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
10402
10431
  return _c('EmailFile', {
10403
10432
  key: index,
10404
10433
  attrs: {
@@ -10413,20 +10442,20 @@ var __vue_staticRenderFns__$1 = [];
10413
10442
  /* style */
10414
10443
  var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
10415
10444
  if (!inject) return;
10416
- inject("data-v-7b2d9d14_0", {
10417
- source: ".show-y-top-enter-active[data-v-7b2d9d14],.show-y-top-leave-enter[data-v-7b2d9d14]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-7b2d9d14],.show-y-top-leave-to[data-v-7b2d9d14]{opacity:0;transform:translateY(-2%)}",
10445
+ inject("data-v-e3682be0_0", {
10446
+ source: ".show-y-top-enter-active[data-v-e3682be0],.show-y-top-leave-enter[data-v-e3682be0]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-e3682be0],.show-y-top-leave-to[data-v-e3682be0]{opacity:0;transform:translateY(-2%)}",
10418
10447
  map: undefined,
10419
10448
  media: undefined
10420
- }), inject("data-v-7b2d9d14_1", {
10421
- source: "@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);.box-shadow-active{box-shadow:0 0 4px 2px rgba(0,0,0,.25)!important}.bg-dark-white-2{background-color:#f7f7f7}.bg-white{background-color:#fff}.email-overlay{width:100%;height:100%;background-color:transparent;z-index:1;position:absolute;top:0;left:0}.email-item{font-family:Roboto,sans-serif;flex:1;margin:0 0 10px 0;color:#222;min-height:60px;display:flex;flex-wrap:wrap;padding:10px;border-radius:5px;transition:all 150ms ease-in-out;max-width:100%;width:100%;overflow:hidden;position:relative}.email-item.outros{border-left:3px solid #33b8df}.email-author-name{margin:0 5px}.email-author.outros{color:#33b8df}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:#ebb552}.email-item.principal{border-left:3px solid #ebb552}.email-item.info-open{overflow:visible}.email-header{width:100%;display:flex;flex-direction:column;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:visible}.header-container{display:flex;overflow:hidden;position:relative}.email-header-content{display:flex;align-items:center;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:0 0 5px 0;font-size:1.025rem;cursor:pointer}.email-date{--width:245px;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:absolute;right:0;top:0;min-width:var(--width);width:var(--width);max-width:var(--width);display:flex;justify-content:flex-end;gap:3px;align-items:center}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;background-color:#fff;position:relative;max-width:100%}.email-actions{align-self:flex-end;display:flex;border-radius:10px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:5px 7px;background-color:#ddd;position:absolute;right:5px;top:5px;z-index:1}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;min-width:4px;min-height:4px;max-width:4px;max-height:4px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:45px;width:250px;top:5px;margin:0;list-style-type:none;padding:0;border-radius:5px;z-index:1}.email-action{background-color:#dfdfdf;padding:5px 10px;cursor:pointer;transition:background-color 150ms ease-in-out;font-size:.9rem;user-select:none}.email-action:nth-child(1){border-top-left-radius:5px;border-top-right-radius:5px}.email-action:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.email-action:hover{background-color:#ccc}.email-html{width:100%;min-width:300px;max-width:100%;border:none;overflow:auto}.email-raw{width:100%;max-width:100%;padding:15px;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:5px;max-width:100%;min-width:250px;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap;flex:1;gap:5px}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-325px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;height:300px;max-height:300px;overflow-y:auto;overflow-x:hidden;width:300px;display:flex;flex-direction:column;gap:5px;margin:0;cursor:default}.email-info{width:100%;font-size:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:.75rem;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:.7rem;color:gray}.email-to-svg{font-size:.85rem}",
10449
+ }), inject("data-v-e3682be0_1", {
10450
+ source: "@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);.box-shadow-active{box-shadow:0 0 4px 2px rgba(0,0,0,.25)!important}.bg-dark-white-2{background-color:#f7f7f7}.bg-white{background-color:#fff}.cursor-pointer{cursor:pointer}.email-overlay{width:100%;height:100%;background-color:transparent;z-index:1;position:absolute;top:0;left:0}.email-item{font-family:Roboto,sans-serif;flex:1;margin:0 0 10px 0;color:#222;min-height:60px;display:flex;flex-wrap:wrap;padding:10px;border-radius:5px;transition:all 150ms ease-in-out;max-width:100%;width:100%;overflow:hidden;position:relative}.email-item.outros{border-left:3px solid #33b8df}.email-author-name{margin:0 5px}.email-author.outros{color:#33b8df}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:#ebb552}.email-item.principal{border-left:3px solid #ebb552}.email-item.info-open{overflow:visible}.email-header{width:100%;display:flex;flex-direction:column;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:visible}.header-container{display:flex;overflow:hidden;position:relative}.email-header-content{display:flex;align-items:center;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:0 0 5px 0;font-size:1.025rem;cursor:pointer}.email-date{--width:245px;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:absolute;right:0;top:0;min-width:var(--width);width:var(--width);max-width:var(--width);display:flex;justify-content:flex-end;gap:3px;align-items:center}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;background-color:#fff;position:relative;max-width:100%}.email-actions{align-self:flex-end;display:flex;border-radius:10px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:5px 7px;background-color:#ddd;position:absolute;right:5px;top:5px;z-index:1}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;min-width:4px;min-height:4px;max-width:4px;max-height:4px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:45px;width:250px;top:5px;margin:0;list-style-type:none;padding:0;border-radius:5px;z-index:1}.email-action{background-color:#dfdfdf;padding:5px 10px;cursor:pointer;transition:background-color 150ms ease-in-out;font-size:.9rem;user-select:none}.email-action:nth-child(1){border-top-left-radius:5px;border-top-right-radius:5px}.email-action:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.email-action:hover{background-color:#ccc}.email-html{width:100%;min-width:300px;max-width:100%;border:none;overflow:auto}.email-raw{width:100%;max-width:100%;padding:15px;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%;cursor:default}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:5px;max-width:100%;min-width:250px;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap;flex:1;gap:5px}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-325px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;height:300px;max-height:300px;overflow-y:auto;overflow-x:hidden;width:300px;display:flex;flex-direction:column;gap:5px;margin:0;cursor:default}.email-info{width:100%;font-size:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:.75rem;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:.7rem;color:gray}.email-to-svg{font-size:.85rem}",
10422
10451
  map: undefined,
10423
10452
  media: undefined
10424
10453
  });
10425
10454
  };
10426
10455
  /* scoped */
10427
- var __vue_scope_id__$1 = "data-v-7b2d9d14";
10456
+ var __vue_scope_id__$1 = "data-v-e3682be0";
10428
10457
  /* module identifier */
10429
- var __vue_module_identifier__$1 = "data-v-7b2d9d14";
10458
+ var __vue_module_identifier__$1 = "data-v-e3682be0";
10430
10459
  /* functional template */
10431
10460
  var __vue_is_functional_template__$1 = false;
10432
10461
  /* style inject shadow dom */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -6,12 +6,15 @@
6
6
  :title="`Visualizar ${filename}`">
7
7
  <img :src="`${imageURL}`" :alt="filename" />
8
8
  </span>
9
+ <span v-else-if="video" class="anexo-video box-shadow">
10
+ <video controls :src="docURL" :title="filename"></video>
11
+ </span>
9
12
  <span v-else class="anexo-icone" :class="[iconClass]" @click="openWindowFromURL(docURL, false)"
10
13
  :title="`Visualizar ${filename}`" target="_blank">
11
14
  <fa-icon :icon="icon" />
12
15
  </span>
13
- <a class="anexo-download box-shadow" :href="imageURL ? imageURL : docURL" :download="`${filename}`"
14
- target="_blank" :title="`Download ${filename}`">
16
+ <a class="anexo-download box-shadow" :href="downloadURL" :download="`${filename}`" target="_blank"
17
+ :title="`Download ${filename}`">
15
18
  <fa-icon :icon="['fas', 'download']" />
16
19
  </a>
17
20
  <span class="anexo-name" :title="filename" v-text="filename"></span>
@@ -76,6 +79,15 @@ export default {
76
79
  font-size: .8rem;
77
80
  }
78
81
 
82
+ .anexo-video {
83
+ width: 100%;
84
+ height: 100%;
85
+ }
86
+
87
+ .anexo-video video {
88
+ max-width: 100%;
89
+ }
90
+
79
91
  .box-shadow {
80
92
  -webkit-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
81
93
  -moz-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
@@ -138,7 +150,8 @@ export default {
138
150
  color: #222;
139
151
  background-color: #FFF;
140
152
  z-index: 1;
141
- font-size: .8rem
153
+ font-size: .8rem;
154
+ cursor: pointer;
142
155
  }
143
156
 
144
157
  .anexo-name {
@@ -1,14 +1,15 @@
1
1
  <template>
2
2
  <div
3
- :class="['email-item box-shadow-active', isOpen ? isOpenClass : isClosedClass, showInfos ? 'info-open' : '', origem]">
3
+ :class="['email-item box-shadow-active', isOpen ? isOpenClass : `${isClosedClass} cursor-pointer`, showInfos ? 'info-open' : '', origem]"
4
+ @click="openByItem($event)">
4
5
  <div v-if="showInfos" class="email-overlay"></div>
5
- <div class="email-author" v-if="autor" :class="[origem]" @click="toggleIsOpen">
6
+ <div class="email-author" v-if="autor" :class="[origem]" @click.stop="toggleIsOpen">
6
7
  <fa-icon :icon="['fas', 'reply']" :class="[origem]" :title="`Enviado por: ${autor}`" />
7
8
  <p class="email-author-name" v-text="returnAuthorName()" :title="returnAuthorName()"></p>
8
9
  <fa-icon :icon="['fas', origem === 'outros' ? 'user' : 'headset']"
9
10
  :title="`E-mail ${origem === 'outros' ? 'recebido' : 'enviado'}`" class="email-to-svg" />
10
11
  </div>
11
- <div class="email-header" @click="toggleIsOpen">
12
+ <div class="email-header" @click.stop="toggleIsOpen">
12
13
  <p class="email-subject" :title="returnMainValue()">
13
14
  {{ returnMainValue() }}
14
15
  </p>
@@ -48,7 +49,7 @@
48
49
  <span></span>
49
50
  </span>
50
51
  <ul class="email-actions-list box-shadow" v-if="actionsOpen && isOpen" v-clickaway="closeActions" @click.stop>
51
- <li class="email-action" @click="toggleOpenMessage">
52
+ <li class="email-action" @click.stop="toggleOpenMessage">
52
53
  {{ !openMessage ? 'Visualizar' : 'Esconder' }} texto do e-mail
53
54
  </li>
54
55
  </ul>
@@ -59,7 +60,7 @@
59
60
  <span class="email-raw" v-if="openMessage">{{ mensagem }}</span>
60
61
  </div>
61
62
  </transition>
62
- <div v-if="anexos && anexos.length" class="email-files">
63
+ <div v-if="anexos && anexos.length" class="email-files" @click.stop>
63
64
  <EmailFile v-for="(anexo, index) in anexos" :key="index" :anexo="anexo" :dominio="dominio" />
64
65
  </div>
65
66
  </div>
@@ -276,6 +277,14 @@ export default {
276
277
  returnMainValue() {
277
278
  if (this.isMainEmail) return this.htmlEntityToEmoji(this.replaceUnicodeWithEmoji(this.assunto)) || '(Sem assunto)'
278
279
  return ''
280
+ },
281
+ openByItem(event) {
282
+ if (this.isOpen) return;
283
+
284
+ event.preventDefault();
285
+ event.stopPropagation();
286
+
287
+ this.toggleIsOpen();
279
288
  }
280
289
  }
281
290
  };
@@ -311,6 +320,10 @@ export default {
311
320
  background-color: #FFF;
312
321
  }
313
322
 
323
+ .cursor-pointer {
324
+ cursor: pointer;
325
+ }
326
+
314
327
  .email-overlay {
315
328
  width: 100%;
316
329
  height: 100%;
@@ -517,7 +530,8 @@ export default {
517
530
  display: flex;
518
531
  gap: 10px;
519
532
  flex-wrap: wrap;
520
- width: 100%
533
+ width: 100%;
534
+ cursor: default;
521
535
  }
522
536
 
523
537
  .email-header-content,