vue-intergrall-plugins 1.1.69 → 1.1.71

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.
@@ -21800,17 +21800,17 @@ var __vue_render__$1 = function __vue_render__() {
21800
21800
  return _vm.openByItem($event);
21801
21801
  }
21802
21802
  }
21803
- }, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-0fc5e3c9></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem, _vm.isMainEmail ? 'main' : '']) + " data-v-0fc5e3c9>", "</div>", [_vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.statusTitle) + " data-v-0fc5e3c9>", "</span>", [_c('fa-icon', {
21803
+ }, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\"></div>" : "<!---->") + " "), _vm.autor ? _vm._ssrNode("<div" + _vm._ssrClass("email-author", [_vm.origem, _vm.isMainEmail ? 'main' : '']) + ">", "</div>", [_vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.statusTitle) + ">", "</span>", [_c('fa-icon', {
21804
21804
  class: [_vm.origem],
21805
21805
  attrs: {
21806
21806
  "icon": ['fas', _vm.status !== 'C' ? 'reply' : 'times']
21807
21807
  }
21808
- })], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\" data-v-0fc5e3c9>" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName)) + "</p> "), _vm._ssrNode("<span" + _vm._ssrAttr("title", "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')) + " data-v-0fc5e3c9>", "</span>", [_c('fa-icon', {
21808
+ })], 1), _vm._ssrNode(" <p" + _vm._ssrAttr("title", _vm.returnAuthorName) + " class=\"email-author-name\">" + _vm._ssrEscape(_vm._s(_vm.returnAuthorName)) + "</p> "), _vm._ssrNode("<span" + _vm._ssrAttr("title", "E-mail " + (_vm.origem === 'outros' ? 'recebido' : 'enviado')) + ">", "</span>", [_c('fa-icon', {
21809
21809
  staticClass: "email-to-svg",
21810
21810
  attrs: {
21811
21811
  "icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset']
21812
21812
  }
21813
- })], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-custom-buttons\" data-v-0fc5e3c9>", "</div>", [_vm.customButtons && _vm.customButtons.length ? _vm._l(_vm.customButtons, function (button, index) {
21813
+ })], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-custom-buttons\">", "</div>", [_vm.customButtons && _vm.customButtons.length ? _vm._l(_vm.customButtons, function (button, index) {
21814
21814
  return _c('span', {
21815
21815
  directives: [{
21816
21816
  name: "show",
@@ -21841,11 +21841,11 @@ var __vue_render__$1 = function __vue_render__() {
21841
21841
  "innerHTML": _vm._s(button.svgIcon)
21842
21842
  }
21843
21843
  })], 1);
21844
- }) : _vm._e(), _vm._ssrNode(" "), _vm.isOpen && _vm.filteredFiles && _vm.filteredFiles.length ? _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.filteredFiles.length + " anexos") + " class=\"email-clip-anchor cursor-pointer\" data-v-0fc5e3c9>", "</span>", [_c('fa-icon', {
21844
+ }) : _vm._e(), _vm._ssrNode(" "), _vm.isOpen && _vm.filteredFiles && _vm.filteredFiles.length ? _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.filteredFiles.length + " anexos") + " class=\"email-clip-anchor cursor-pointer\">", "</span>", [_c('fa-icon', {
21845
21845
  attrs: {
21846
21846
  "icon": ['fas', 'paperclip']
21847
21847
  }
21848
- })], 1) : _vm._e()], 2), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length && _vm.customActionButtons[0].type === 'ja-spam' ? _vm._ssrNode("<div class=\"ja-marcado-spam\" data-v-0fc5e3c9>", "</div>", [_vm._ssrNode("<span class=\"icon-tittle-ja-spam\" data-v-0fc5e3c9>", "</span>", [_c('fa-icon', {
21848
+ })], 1) : _vm._e()], 2), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length && _vm.customActionButtons[0].type === 'ja-spam' ? _vm._ssrNode("<div class=\"ja-marcado-spam\">", "</div>", [_vm._ssrNode("<span class=\"icon-tittle-ja-spam\">", "</span>", [_c('fa-icon', {
21849
21849
  staticStyle: {
21850
21850
  "color": "#FF0000",
21851
21851
  "margin-right": "8px",
@@ -21854,21 +21854,21 @@ var __vue_render__$1 = function __vue_render__() {
21854
21854
  attrs: {
21855
21855
  "icon": ['fas', 'exclamation-triangle']
21856
21856
  }
21857
- }), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].label) + "\n "))], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"ja-marcado-spam-buttons\" data-v-0fc5e3c9>", "</div>", [_vm._ssrNode("<button" + _vm._ssrAttr("disabled", _vm.customActionButtons[0].btn1.disabled) + " class=\"btn-nao-spam\" style=\"position: relative;\" data-v-0fc5e3c9>", "</button>", [_vm.customActionButtons[0].btn1.loading ? _c('VueLoader', {
21857
+ }), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].label) + "\n "))], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"ja-marcado-spam-buttons\">", "</div>", [_vm._ssrNode("<button" + _vm._ssrAttr("disabled", _vm.customActionButtons[0].btn1.disabled) + " class=\"btn-nao-spam\" style=\"position: relative;\">", "</button>", [_vm.customActionButtons[0].btn1.loading ? _c('VueLoader', {
21858
21858
  staticClass: "btn-loader",
21859
21859
  attrs: {
21860
21860
  "hasBg": false
21861
21861
  }
21862
21862
  }) : _vm._e(), _vm._ssrNode(" <span" + _vm._ssrStyle(null, {
21863
21863
  opacity: _vm.customActionButtons[0].btn1.loading ? 0 : 1
21864
- }, null) + " data-v-0fc5e3c9>" + _vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].btn1.label) + "\n ") + "</span>")], 2), _vm._ssrNode(" "), _vm._ssrNode("<button" + _vm._ssrAttr("disabled", _vm.customActionButtons[0].btn2.disabled) + " class=\"btn-e-spam\" style=\"position: relative;\" data-v-0fc5e3c9>", "</button>", [_vm.customActionButtons[0].btn2.loading ? _c('VueLoader', {
21864
+ }, null) + ">" + _vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].btn1.label) + "\n ") + "</span>")], 2), _vm._ssrNode(" "), _vm._ssrNode("<button" + _vm._ssrAttr("disabled", _vm.customActionButtons[0].btn2.disabled) + " class=\"btn-e-spam\" style=\"position: relative;\">", "</button>", [_vm.customActionButtons[0].btn2.loading ? _c('VueLoader', {
21865
21865
  staticClass: "btn-loader",
21866
21866
  attrs: {
21867
21867
  "hasBg": false
21868
21868
  }
21869
21869
  }) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrStyle(null, {
21870
21870
  opacity: _vm.customActionButtons[0].btn2.loading ? 0 : 1
21871
- }, null) + " data-v-0fc5e3c9>", "</span>", [_vm.customActionButtons[0].btn2.icon ? _c('fa-icon', {
21871
+ }, null) + ">", "</span>", [_vm.customActionButtons[0].btn2.icon ? _c('fa-icon', {
21872
21872
  staticClass: "icon-btn-encerrar-spam",
21873
21873
  staticStyle: {
21874
21874
  "margin-right": "6px"
@@ -21876,7 +21876,7 @@ var __vue_render__$1 = function __vue_render__() {
21876
21876
  attrs: {
21877
21877
  "icon": ['fas', _vm.customActionButtons[0].btn2.icon === 'exit' ? 'sign-out-alt' : _vm.customActionButtons[0].btn2.icon]
21878
21878
  }
21879
- }) : _vm._e(), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].btn2.label) + "\n "))], 2)], 2)], 2)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\" data-v-0fc5e3c9>", "</div>", [_vm._l(_vm.customActionButtons, function (button, index) {
21879
+ }) : _vm._e(), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.customActionButtons[0].btn2.label) + "\n "))], 2)], 2)], 2)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _vm._ssrNode("<div class=\"email-custom-action-buttons\">", "</div>", [_vm._l(_vm.customActionButtons, function (button, index) {
21880
21880
  return [button.type !== 'ja-spam' ? _c('button', {
21881
21881
  directives: [{
21882
21882
  name: "show",
@@ -21906,12 +21906,33 @@ var __vue_render__$1 = function __vue_render__() {
21906
21906
  domProps: {
21907
21907
  "innerHTML": _vm._s(button.svgIcon)
21908
21908
  }
21909
- }), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\" data-v-0fc5e3c9>" + _vm._ssrEscape(_vm._s(button.label)) + "</span>" : "<!---->") + " "), _vm.status !== 'C' && _vm.isOpen ? _vm._ssrNode("<span title=\"Baixar e-mail em PDF\" class=\"email-pdf-down load cursor-pointer\" data-v-0fc5e3c9>", "</span>", [_c('fa-icon', {
21910
- attrs: {
21911
- "icon": ['fas', 'file-pdf']
21909
+ }), _vm._ssrNode(" " + (button.label ? "<span class=\"email-custom-action-label\">" + _vm._ssrEscape(_vm._s(button.label)) + "</span>" : "<!---->"))], 2) : _vm._e()];
21910
+ }), _vm._ssrNode(" "), _c('button', {
21911
+ directives: [{
21912
+ name: "tippy",
21913
+ rawName: "v-tippy"
21914
+ }],
21915
+ staticClass: "email-pdf-download-btn",
21916
+ class: {
21917
+ 'generating': _vm.isGeneratingPdf
21918
+ },
21919
+ attrs: {
21920
+ "disabled": _vm.isGeneratingPdf,
21921
+ "content": "Baixar e-mail em PDF"
21922
+ },
21923
+ on: {
21924
+ "click": function click($event) {
21925
+ $event.stopPropagation();
21926
+ return _vm.generatePdf.apply(null, arguments);
21912
21927
  }
21913
- })], 1) : _vm._e()], 2) : _vm._e()];
21914
- })], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\" data-v-0fc5e3c9>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\" data-v-0fc5e3c9>" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> " + (_vm.status === 'C' ? "<div" + _vm._ssrClass("divBtnReplyEmail", [_vm.isOpen ? 'reply-email-open' : '']) + " data-v-0fc5e3c9><strong class=\"strongMsg\" data-v-0fc5e3c9>" + _vm._ssrEscape(_vm._s(_vm.status_msg) + " ") + "</strong> " + (_vm.hasReplyEmail ? "<button class=\"btnReplyEmail\" data-v-0fc5e3c9><strong data-v-0fc5e3c9>Reenviar</strong></button>" : "<!---->") + "</div>" : "<!---->") + " "), _vm._ssrNode("<div class=\"header-container\" data-v-0fc5e3c9>", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, "email-header-content" + (_vm.isOpen ? ' open' : '')) + " data-v-0fc5e3c9>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-0fc5e3c9>", "</div>", [[_vm.para && _vm.para.length ? _vm._ssrNode("<div class=\"email-to-from-container\" data-v-0fc5e3c9>", "</div>", _vm._l(_vm.para, function (recipient, index) {
21928
+ }
21929
+ }, [_vm._ssrNode("<span class=\"pdf-icon-wrapper\">", "</span>", [_c('fa-icon', {
21930
+ staticClass: "pdf-icon",
21931
+ attrs: {
21932
+ "icon": ['fas', _vm.isGeneratingPdf ? 'spinner' : 'file-pdf'],
21933
+ "spin": _vm.isGeneratingPdf
21934
+ }
21935
+ })], 1), _vm._ssrNode(" <span class=\"pdf-label\">" + _vm._ssrEscape(_vm._s(_vm.isGeneratingPdf ? 'Gerando...' : 'PDF')) + "</span>")], 2)], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-header\">", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.returnMainValue()) + " class=\"email-subject\">" + _vm._ssrEscape("\n " + _vm._s(_vm.returnMainValue()) + "\n ") + "</p> " + (_vm.status === 'C' ? "<div" + _vm._ssrClass("divBtnReplyEmail", [_vm.isOpen ? 'reply-email-open' : '']) + "><strong class=\"strongMsg\">" + _vm._ssrEscape(_vm._s(_vm.status_msg) + " ") + "</strong> " + (_vm.hasReplyEmail ? "<button class=\"btnReplyEmail\"><strong>Reenviar</strong></button>" : "<!---->") + "</div>" : "<!---->") + " "), _vm._ssrNode("<div class=\"header-container\">", "</div>", [_vm._ssrNode("<div" + _vm._ssrClass(null, "email-header-content" + (_vm.isOpen ? ' open' : '')) + ">", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\">", "</div>", [[_vm.para && _vm.para.length ? _vm._ssrNode("<div class=\"email-to-from-container\">", "</div>", _vm._l(_vm.para, function (recipient, index) {
21915
21936
  return _c('EmailTo', {
21916
21937
  key: "to-" + recipient.email,
21917
21938
  attrs: {
@@ -21920,7 +21941,7 @@ var __vue_render__$1 = function __vue_render__() {
21920
21941
  "showMail": _vm.isOpen
21921
21942
  }
21922
21943
  });
21923
- }), 1) : _vm._e(), _vm._ssrNode(" "), _vm.copia && _vm.copia.length ? _vm._ssrNode("<div class=\"email-cc-container\" data-v-0fc5e3c9>", "</div>", _vm._l(_vm.copia, function (recipient, index) {
21944
+ }), 1) : _vm._e(), _vm._ssrNode(" "), _vm.copia && _vm.copia.length ? _vm._ssrNode("<div class=\"email-cc-container\">", "</div>", _vm._l(_vm.copia, function (recipient, index) {
21924
21945
  return _c('EmailTo', {
21925
21946
  key: "cc-" + recipient.email,
21926
21947
  attrs: {
@@ -21931,13 +21952,13 @@ var __vue_render__$1 = function __vue_render__() {
21931
21952
  });
21932
21953
  }), 1) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\"" + _vm._ssrStyle(null, null, {
21933
21954
  display: _vm.isOpen ? '' : 'none'
21934
- }) + " data-v-0fc5e3c9>", "</div>", [_c('fa-icon', {
21955
+ }) + ">", "</div>", [_c('fa-icon', {
21935
21956
  attrs: {
21936
21957
  "icon": ['fas', 'caret-down']
21937
21958
  }
21938
- })], 1)], _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\" data-v-0fc5e3c9><span class=\"email-subject-span\" data-v-0fc5e3c9>" + _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)) + _vm._ssrStyle(null, null, {
21959
+ })], 1)], _vm._ssrNode(" " + (!_vm.isMainEmail && _vm.isOpen ? "<div class=\"email-subject-secondary\"><span class=\"email-subject-span\">" + _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)) + _vm._ssrStyle(null, null, {
21939
21960
  display: _vm.formattedDate ? '' : 'none'
21940
- }) + " data-v-0fc5e3c9>", "</span>", [_c('fa-icon', {
21961
+ }) + ">", "</span>", [_c('fa-icon', {
21941
21962
  attrs: {
21942
21963
  "icon": ['fas', 'calendar']
21943
21964
  }
@@ -21958,12 +21979,12 @@ var __vue_render__$1 = function __vue_render__() {
21958
21979
  }
21959
21980
  }
21960
21981
  }, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
21961
- return "<li class=\"email-info\" data-v-0fc5e3c9><span data-v-0fc5e3c9>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
21982
+ return "<li class=\"email-info\"><span>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
21962
21983
  }))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
21963
21984
  active: _vm.actionsOpen
21964
21985
  }, {
21965
21986
  main: _vm.isMainEmail
21966
- }]) + " data-v-0fc5e3c9><span data-v-0fc5e3c9></span> <span data-v-0fc5e3c9></span> <span data-v-0fc5e3c9></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
21987
+ }]) + "><span></span> <span></span> <span></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
21967
21988
  directives: [{
21968
21989
  name: "clickaway",
21969
21990
  rawName: "v-clickaway",
@@ -21976,13 +21997,13 @@ var __vue_render__$1 = function __vue_render__() {
21976
21997
  $event.stopPropagation();
21977
21998
  }
21978
21999
  }
21979
- }, [_vm._ssrNode("<li class=\"email-action\" data-v-0fc5e3c9>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail (html)\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-content\"" + _vm._ssrStyle(null, null, {
22000
+ }, [_vm._ssrNode("<li class=\"email-action\">" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail (html)\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-content\"" + _vm._ssrStyle(null, null, {
21980
22001
  display: _vm.isOpen ? '' : 'none'
21981
- }) + " data-v-0fc5e3c9>", "</div>", [_vm.isIframeLoading ? _c('VueLoader') : _vm._e(), _vm._ssrNode(" " + (_vm.hasError ? "<div class=\"email-error-content\" data-v-0fc5e3c9><p data-v-0fc5e3c9>Erro ao carregar o e-mail</p> <button class=\"box-shadow\" data-v-0fc5e3c9>Tentar novamente</button></div>" : "<!---->") + " <iframe" + _vm._ssrClass(null, "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')) + _vm._ssrStyle(null, null, {
22002
+ }) + ">", "</div>", [_vm.isIframeLoading ? _c('VueLoader') : _vm._e(), _vm._ssrNode(" " + (_vm.hasError ? "<div class=\"email-error-content\"><p>Erro ao carregar o e-mail</p> <button class=\"box-shadow\">Tentar novamente</button></div>" : "<!---->") + " <iframe" + _vm._ssrClass(null, "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')) + _vm._ssrStyle(null, null, {
21982
22003
  display: !_vm.hasError ? '' : 'none'
21983
- }) + " data-v-0fc5e3c9></iframe> " + (_vm.openMessage ? "<span class=\"email-raw\" data-v-0fc5e3c9>" + _vm._ssrEscape(_vm._s(_vm.mensagem)) + "</span>" : "<!---->"))], 2), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length ? _vm._ssrNode("<div class=\"email-files\"" + _vm._ssrStyle(null, null, {
22004
+ }) + "></iframe> " + (_vm.openMessage ? "<span class=\"email-raw\">" + _vm._ssrEscape(_vm._s(_vm.mensagem)) + "</span>" : "<!---->"))], 2), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length ? _vm._ssrNode("<div class=\"email-files\"" + _vm._ssrStyle(null, null, {
21984
22005
  display: _vm.isOpen ? '' : 'none'
21985
- }) + " data-v-0fc5e3c9>", "</div>", _vm._l(_vm.filteredFiles, function (anexo, index) {
22006
+ }) + ">", "</div>", _vm._l(_vm.filteredFiles, function (anexo, index) {
21986
22007
  return _c('EmailFile', {
21987
22008
  key: index,
21988
22009
  attrs: {
@@ -21990,11 +22011,11 @@ var __vue_render__$1 = function __vue_render__() {
21990
22011
  "dominio": _vm.dominio
21991
22012
  }
21992
22013
  });
21993
- }), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\" data-v-0fc5e3c9>", "</div>", [_vm._ssrNode("<span class=\"clip-icon\" data-v-0fc5e3c9>", "</span>", [_c('fa-icon', {
22014
+ }), 1) : _vm._e(), _vm._ssrNode(" "), _vm.filteredFiles && _vm.filteredFiles.length && !_vm.isOpen ? _vm._ssrNode("<div class=\"email-attachments-clip cursor-pointer\">", "</div>", [_vm._ssrNode("<span class=\"clip-icon\">", "</span>", [_c('fa-icon', {
21994
22015
  attrs: {
21995
22016
  "icon": ['fas', 'paperclip']
21996
22017
  }
21997
- }), _vm._ssrNode(" <span class=\"clip-badge\" data-v-0fc5e3c9>" + _vm._ssrEscape(_vm._s(_vm.filteredFiles.length)) + "</span>")], 2)]) : _vm._e(), _vm._ssrNode(" "), _c('transition', {
22018
+ }), _vm._ssrNode(" <span class=\"clip-badge\">" + _vm._ssrEscape(_vm._s(_vm.filteredFiles.length)) + "</span>")], 2)]) : _vm._e(), _vm._ssrNode(" "), _c('transition', {
21998
22019
  attrs: {
21999
22020
  "name": "fade",
22000
22021
  "mode": "out-in"
@@ -22154,26 +22175,23 @@ var __vue_render__$1 = function __vue_render__() {
22154
22175
  var __vue_staticRenderFns__$1 = [];
22155
22176
 
22156
22177
  /* style */
22157
- var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
22158
- if (!inject) return;
22159
- inject("data-v-0fc5e3c9_0", {
22160
- source: ".email-pdf-download[data-v-0fc5e3c9]{padding:5px 8px;color:#d54286;font-size:16px;transition:opacity .2s;display:flex;align-items:center;justify-content:center}.email-pdf-download[data-v-0fc5e3c9]:hover{opacity:.7}.pdf-content[data-v-0fc5e3c9]{padding:20px}.pdf-title[data-v-0fc5e3c9]{font-size:20px;color:#d54286;margin:0 0 15px 0;padding-bottom:10px;border-bottom:2px solid #e2e6ea;word-wrap:break-word;overflow-wrap:break-word;page-break-after:avoid;page-break-inside:avoid}.pdf-info-table[data-v-0fc5e3c9]{width:100%;margin:0 0 20px 0;border-collapse:collapse;table-layout:fixed;page-break-inside:avoid}.pdf-info-table th[data-v-0fc5e3c9]{text-align:left;padding:10px;font-weight:700;background-color:#f8f9fa;border:1px solid #e2e6ea;width:100px;vertical-align:top;font-size:14px}.pdf-info-table td[data-v-0fc5e3c9]{padding:10px;border:1px solid #e2e6ea;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word;font-size:14px;line-height:1.5;max-width:100%}.pdf-info-table tr[data-v-0fc5e3c9]{page-break-inside:avoid;page-break-after:auto}",
22161
- map: undefined,
22162
- media: undefined
22163
- });
22164
- };
22178
+ var __vue_inject_styles__$1 = undefined;
22165
22179
  /* scoped */
22166
- var __vue_scope_id__$1 = "data-v-0fc5e3c9";
22180
+ var __vue_scope_id__$1 = undefined;
22167
22181
  /* module identifier */
22168
- var __vue_module_identifier__$1 = "data-v-0fc5e3c9";
22182
+ var __vue_module_identifier__$1 = "data-v-36ab9fb2";
22169
22183
  /* functional template */
22170
22184
  var __vue_is_functional_template__$1 = false;
22185
+ /* style inject */
22186
+
22187
+ /* style inject SSR */
22188
+
22171
22189
  /* style inject shadow dom */
22172
22190
 
22173
22191
  var __vue_component__$2 = /*#__PURE__*/normalizeComponent$1({
22174
22192
  render: __vue_render__$1,
22175
22193
  staticRenderFns: __vue_staticRenderFns__$1
22176
- }, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, createInjectorSSR, undefined);
22194
+ }, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
22177
22195
  var __vue_component__$3 = __vue_component__$2;//
22178
22196
  var script = {
22179
22197
  components: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "1.1.69",
3
+ "version": "1.1.71",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -90,9 +90,25 @@
90
90
  <fa-icon :icon="['fas', button.icon || 'question-circle']" v-if="!button.svgIcon" />
91
91
  <span v-else v-html="button.svgIcon" :class="button.svgClass ? button.svgClass : ''"></span>
92
92
  <span v-if="button.label" class="email-custom-action-label" v-text="button.label"></span>
93
- <span v-if="status !== 'C' && isOpen" class="email-pdf-down load cursor-pointer"@click.stop="generatePdf"title="Baixar e-mail em PDF"><fa-icon :icon="['fas', 'file-pdf']" /></span>
94
93
  </button>
95
94
  </template>
95
+ <button
96
+ class="email-pdf-download-btn"
97
+ :class="{ 'generating': isGeneratingPdf }"
98
+ @click.stop="generatePdf"
99
+ :disabled="isGeneratingPdf"
100
+ v-tippy
101
+ content="Baixar e-mail em PDF"
102
+ >
103
+ <span class="pdf-icon-wrapper">
104
+ <fa-icon
105
+ :icon="['fas', isGeneratingPdf ? 'spinner' : 'file-pdf']"
106
+ :spin="isGeneratingPdf"
107
+ class="pdf-icon"
108
+ />
109
+ </span>
110
+ <span class="pdf-label">{{ isGeneratingPdf ? 'Gerando...' : 'PDF' }}</span>
111
+ </button>
96
112
  </div>
97
113
  <div class="email-header" @click.stop="toggleIsOpen">
98
114
  <p class="email-subject" :title="returnMainValue()">
@@ -855,71 +871,4 @@ export default {
855
871
  }
856
872
  }
857
873
  };
858
- </script>
859
-
860
- <style scoped>
861
- .email-pdf-download {
862
- padding: 5px 8px;
863
- color: #d54286;
864
- font-size: 16px;
865
- transition: opacity 0.2s;
866
- display: flex;
867
- align-items: center;
868
- justify-content: center;
869
- }
870
-
871
- .email-pdf-download:hover {
872
- opacity: 0.7;
873
- }
874
-
875
- .pdf-content {
876
- padding: 20px;
877
- }
878
-
879
- .pdf-title {
880
- font-size: 20px;
881
- color: #d54286;
882
- margin: 0 0 15px 0;
883
- padding-bottom: 10px;
884
- border-bottom: 2px solid #e2e6ea;
885
- word-wrap: break-word;
886
- overflow-wrap: break-word;
887
- page-break-after: avoid;
888
- page-break-inside: avoid;
889
- }
890
-
891
- .pdf-info-table {
892
- width: 100%;
893
- margin: 0 0 20px 0;
894
- border-collapse: collapse;
895
- table-layout: fixed;
896
- page-break-inside: avoid;
897
- }
898
-
899
- .pdf-info-table th {
900
- text-align: left;
901
- padding: 10px;
902
- font-weight: bold;
903
- background-color: #f8f9fa;
904
- border: 1px solid #e2e6ea;
905
- width: 100px;
906
- vertical-align: top;
907
- font-size: 14px;
908
- }
909
-
910
- .pdf-info-table td {
911
- padding: 10px;
912
- border: 1px solid #e2e6ea;
913
- word-wrap: break-word;
914
- overflow-wrap: break-word;
915
- word-break: break-word;
916
- font-size: 14px;
917
- line-height: 1.5;
918
- max-width: 100%;
919
- }
920
-
921
- .pdf-info-table tr {
922
- page-break-inside: avoid;
923
- page-break-after: auto;
924
- }
925
- </style>
874
+ </script>