vue-intergrall-plugins 1.0.39 → 1.0.41

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.
@@ -6883,7 +6883,16 @@ const textoLongo = {
6883
6883
  if (invalids.includes(dataHora)) return '';
6884
6884
  const daysOfWeek = ['dom.', 'seg.', 'ter.', 'qua.', 'qui.', 'sex.', dicionario.sabado_abrev];
6885
6885
  const monthsOfYear = ['jan.', 'fev.', 'mar.', 'abr.', 'mai.', 'jun.', 'jul.', 'ago.', 'set.', 'out.', 'nov.', 'dez.'];
6886
- const date = new Date(dataHora);
6886
+ const parseDate = dateStr => {
6887
+ if (dateStr.includes('/')) {
6888
+ const [day, month, yearTime] = dateStr.split('/');
6889
+ const [year, time] = yearTime.split(' ');
6890
+ const [hours, minutes] = time ? time.split(':') : ['00', '00'];
6891
+ return new Date(`${year}-${month}-${day}T${hours}:${minutes}:00`);
6892
+ }
6893
+ return new Date(dateStr);
6894
+ };
6895
+ const date = parseDate(dataHora);
6887
6896
  const dayOfWeek = daysOfWeek[date.getDay()];
6888
6897
  const day = date.getDate();
6889
6898
  const month = monthsOfYear[date.getMonth()];
@@ -11051,8 +11060,8 @@ var script = {
11051
11060
  const emailParent = this.$refs.emailIframeParent;
11052
11061
  if (iframe && emailParent) {
11053
11062
  const doc = iframe.contentDocument || iframe.contentWindow.document;
11054
- iframe.style.height = `${doc.documentElement.offsetHeight}px`;
11055
- emailParent.style.minHeight = `${doc.documentElement.offsetHeight + 250}px`;
11063
+ iframe.style.height = `${doc.documentElement.offsetHeight < 1000 ? doc.documentElement.offsetHeight : 1000}px`;
11064
+ emailParent.style.minHeight = `${doc.documentElement.offsetHeight < 1000 ? doc.documentElement.offsetHeight : 1000}px`;
11056
11065
  }
11057
11066
  });
11058
11067
  },
@@ -11097,7 +11106,15 @@ var __vue_render__ = function () {
11097
11106
  var _c = _vm._self._c || _h;
11098
11107
  return _c('div', {
11099
11108
  class: ['email-item box-shadow', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass]
11100
- }, [_c('div', {
11109
+ }, [_c('p', {
11110
+ staticClass: "email-subject",
11111
+ attrs: {
11112
+ "title": _vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)'
11113
+ },
11114
+ on: {
11115
+ "click": _vm.toggleIsOpen
11116
+ }
11117
+ }, [_vm._v("\n " + _vm._s(_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.tratarTextoLongo(_vm.assunto, 30))) || '(Sem assunto)') + "\n ")]), _vm._v(" "), _c('div', {
11101
11118
  staticClass: "email-header",
11102
11119
  on: {
11103
11120
  "click": _vm.toggleIsOpen
@@ -11106,12 +11123,7 @@ var __vue_render__ = function () {
11106
11123
  staticClass: "email-header-content"
11107
11124
  }, [_c('div', {
11108
11125
  staticClass: "email-header-infos"
11109
- }, [_c('p', {
11110
- staticClass: "email-subject",
11111
- attrs: {
11112
- "title": _vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)'
11113
- }
11114
- }, [_vm._v("\n " + _vm._s(_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.tratarTextoLongo(_vm.assunto, 30))) || '(Sem assunto)') + "\n ")]), _vm._v(" "), _vm.from && _vm.from.length ? [_c('div', {
11126
+ }, [_vm.from && _vm.from.length ? [_c('div', {
11115
11127
  staticClass: "email-to-from-container"
11116
11128
  }, _vm._l(_vm.from, function (sender, index) {
11117
11129
  return _c('EmailFrom', {
@@ -11235,18 +11247,18 @@ var __vue_staticRenderFns__ = [];
11235
11247
  /* style */
11236
11248
  const __vue_inject_styles__ = function (inject) {
11237
11249
  if (!inject) return;
11238
- inject("data-v-3869bfe2_0", {
11239
- source: ".show-y-top-enter-active[data-v-3869bfe2],.show-y-top-leave-enter[data-v-3869bfe2]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-3869bfe2],.show-y-top-leave-to[data-v-3869bfe2]{opacity:0;transform:translateY(-2%)}",
11250
+ inject("data-v-4c7ad756_0", {
11251
+ source: ".show-y-top-enter-active[data-v-4c7ad756],.show-y-top-leave-enter[data-v-4c7ad756]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-4c7ad756],.show-y-top-leave-to[data-v-4c7ad756]{opacity:0;transform:translateY(-2%)}",
11240
11252
  map: undefined,
11241
11253
  media: undefined
11242
- }), inject("data-v-3869bfe2_1", {
11243
- source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-item{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%}.email-header{width:100%;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:hidden}.email-header-content{display:flex;align-items:center;margin:10px;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:0 0 5px 0;font-weight:700;font-size:.95rem}.email-date{--width:245px;font-size:.8rem;margin-right:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-width:var(--width);width:var(--width);max-width:var(--width)}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:15px;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;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%;max-width:100%;padding:10px;border:none;max-height:1200px;overflow:auto}.email-raw{width:100%;max-width:100%;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:10px;max-width:100%;display:flex;flex-wrap:wrap;flex:1;gap:5px}.email-to-from-container:last-child{margin-bottom:0}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-300px;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-left:5px}",
11254
+ }), inject("data-v-4c7ad756_1", {
11255
+ source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-item{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%}.email-header{width:100%;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:hidden}.email-header-content{display:flex;align-items:center;margin:10px;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:0 0 5px 0;font-weight:700;font-size:.95rem;cursor:pointer}.email-date{--width:245px;font-size:.8rem;margin-right:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-width:var(--width);width:var(--width);max-width:var(--width)}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;padding:15px;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;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%;max-width:100%;padding:10px;border:none;max-height:1000px;overflow:auto}.email-raw{width:100%;max-width:100%;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:10px;max-width:100%;display:flex;flex-wrap:wrap;flex:1;gap:5px}.email-to-from-container:last-child{margin-bottom:0}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-300px;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-left:5px}",
11244
11256
  map: undefined,
11245
11257
  media: undefined
11246
11258
  });
11247
11259
  };
11248
11260
  /* scoped */
11249
- const __vue_scope_id__ = "data-v-3869bfe2";
11261
+ const __vue_scope_id__ = "data-v-4c7ad756";
11250
11262
  /* module identifier */
11251
11263
  const __vue_module_identifier__ = undefined;
11252
11264
  /* functional template */