vue-intergrall-plugins 1.0.32 → 1.0.34

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.
@@ -6637,6 +6637,19 @@ var __vue_component__$q = __vue_component__$p;var textoLongo = {
6637
6637
  }
6638
6638
  return "".concat(textoLongo);
6639
6639
  },
6640
+ replaceUnicodeWithEmoji: function replaceUnicodeWithEmoji(text) {
6641
+ if (!text || typeof text !== 'string') return '';
6642
+ return text.replace(/&?#(\d+);/g, function (_, dec) {
6643
+ return String.fromCodePoint(parseInt(dec, 10));
6644
+ });
6645
+ },
6646
+ htmlEntityToEmoji: function htmlEntityToEmoji(message) {
6647
+ return message.replace(/&#x([\da-fA-F]+);/g, function (match, p1) {
6648
+ var codePoint = parseInt(p1, 16);
6649
+ var emoji = String.fromCodePoint(codePoint);
6650
+ return emoji;
6651
+ });
6652
+ },
6640
6653
  formataDataHora: function formataDataHora(dataHora, origem, cortarSegundos) {
6641
6654
  try {
6642
6655
  if (!dataHora) return "";
@@ -6663,8 +6676,8 @@ var __vue_component__$q = __vue_component__$p;var textoLongo = {
6663
6676
  },
6664
6677
  formataDateHoraDateFns: function formataDateHoraDateFns(dataHora, dataServer, dicionario) {
6665
6678
  if (!dataHora) return "";
6666
- if (dataHora == '1111-11-11 00:00:00') return '';
6667
- if (dataHora == '0000-00-00 00:00:00') return '';
6679
+ var invalids = ['1111-11-11 00:00:00', '0000-00-00 00:00:00', '0000-00-00', '1111-11-11', '00:00:00'];
6680
+ if (invalids.includes(dataHora)) return '';
6668
6681
  var daysOfWeek = ['dom.', 'seg.', 'ter.', 'qua.', 'qui.', 'sex.', dicionario.sabado_abrev];
6669
6682
  var monthsOfYear = ['jan.', 'fev.', 'mar.', 'abr.', 'mai.', 'jun.', 'jul.', 'ago.', 'set.', 'out.', 'nov.', 'dez.'];
6670
6683
  var date = new Date(dataHora);
@@ -6696,7 +6709,6 @@ var __vue_component__$q = __vue_component__$p;var textoLongo = {
6696
6709
  return formattedDateString;
6697
6710
  };
6698
6711
  var now = dataServer ? new Date(getRawData()) : new Date();
6699
- if (!dataServer) console.warn('dataServer nao informado para verificar a data corretamente segundo o servidor, utilizando new Date padrao');
6700
6712
  var timeDifference = Math.abs(now - date);
6701
6713
  var distance;
6702
6714
  var seconds = Math.floor(timeDifference / 1000);
@@ -6716,7 +6728,7 @@ var __vue_component__$q = __vue_component__$p;var textoLongo = {
6716
6728
  } else if (monthsDifference < 12) {
6717
6729
  distance = "".concat(dicionario.ha_message, " ").concat(monthsDifference, " ").concat(monthsDifference > 1 ? 'meses' : dicionario.lower_text_month);
6718
6730
  } else {
6719
- distance = "".concat(dicionario.ha_message, " ").concat(yearsDifference, " ").concat(yearsDifference === 1 ? 'ano' : 'anos');
6731
+ distance = "".concat(date.getFullYear(), " ").concat(dicionario.ha_message, " ").concat(yearsDifference, " ").concat(yearsDifference === 1 ? 'ano' : 'anos');
6720
6732
  }
6721
6733
  return "".concat(formattedDate, " (").concat(distance, ")");
6722
6734
  }
@@ -10000,8 +10012,6 @@ var EmailFile = __vue_component__$4;//
10000
10012
  //
10001
10013
  //
10002
10014
  //
10003
- //
10004
- //
10005
10015
 
10006
10016
  var script$2 = {
10007
10017
  props: {
@@ -10019,16 +10029,6 @@ var script$2 = {
10019
10029
  type: Boolean,
10020
10030
  required: false,
10021
10031
  default: true
10022
- },
10023
- isLastIndex: {
10024
- type: Boolean,
10025
- required: false,
10026
- default: false
10027
- }
10028
- },
10029
- computed: {
10030
- filteredName: function filteredName() {
10031
- return !this.isLastIndex ? "".concat(this.currentName, ", ") : this.currentName;
10032
10032
  }
10033
10033
  }
10034
10034
  };/* script */
@@ -10041,23 +10041,23 @@ var __vue_render__$2 = function __vue_render__() {
10041
10041
  var _c = _vm._self._c || _h;
10042
10042
  return _c('div', {
10043
10043
  staticClass: "email-to"
10044
- }, [_vm._ssrNode((_vm.currentName ? "<p" + _vm._ssrAttr("title", _vm.currentName) + " class=\"to\" data-v-2a43b9e7>" + _vm._ssrEscape(_vm._s(_vm.currentName)) + "</p>" : "<!---->") + " " + (_vm.showMail ? "<span" + _vm._ssrAttr("title", _vm.mail) + " class=\"additional\" data-v-2a43b9e7>" + _vm._ssrEscape(_vm._s("<" + _vm.mail + ">")) + "</span>" : "<!---->"))]);
10044
+ }, [_vm._ssrNode((_vm.currentName ? "<p" + _vm._ssrAttr("title", _vm.currentName) + " class=\"to\" data-v-9a3de606>" + _vm._ssrEscape(_vm._s(_vm.currentName)) + "</p>" : "<!---->") + " " + (_vm.showMail ? "<span" + _vm._ssrAttr("title", _vm.mail) + " class=\"additional\" data-v-9a3de606>" + _vm._ssrEscape(_vm._s("<" + _vm.mail + ">")) + "</span>" : "<!---->"))]);
10045
10045
  };
10046
10046
  var __vue_staticRenderFns__$2 = [];
10047
10047
 
10048
10048
  /* style */
10049
10049
  var __vue_inject_styles__$2 = function __vue_inject_styles__(inject) {
10050
10050
  if (!inject) return;
10051
- inject("data-v-2a43b9e7_0", {
10052
- source: ".email-to[data-v-2a43b9e7]{width:100%;flex:1;display:flex;align-items:center}.email-to .to[data-v-2a43b9e7]{margin:0}.email-to .additional[data-v-2a43b9e7],.email-to .to[data-v-2a43b9e7]{font-size:.7rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:gray}.email-to .additional[data-v-2a43b9e7]{margin-left:5px}",
10051
+ inject("data-v-9a3de606_0", {
10052
+ source: ".email-to[data-v-9a3de606]{display:flex;align-items:center}.email-to .to[data-v-9a3de606]{margin:0}.email-to .additional[data-v-9a3de606],.email-to .to[data-v-9a3de606]{font-size:.7rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:gray}.email-to .additional[data-v-9a3de606]{margin-left:5px}",
10053
10053
  map: undefined,
10054
10054
  media: undefined
10055
10055
  });
10056
10056
  };
10057
10057
  /* scoped */
10058
- var __vue_scope_id__$2 = "data-v-2a43b9e7";
10058
+ var __vue_scope_id__$2 = "data-v-9a3de606";
10059
10059
  /* module identifier */
10060
- var __vue_module_identifier__$2 = "data-v-2a43b9e7";
10060
+ var __vue_module_identifier__$2 = "data-v-9a3de606";
10061
10061
  /* functional template */
10062
10062
  var __vue_is_functional_template__$2 = false;
10063
10063
  /* style inject shadow dom */
@@ -10105,6 +10105,7 @@ var EmailTo = __vue_component__$3;//
10105
10105
  //
10106
10106
  //
10107
10107
  //
10108
+ //
10108
10109
 
10109
10110
  var script$1 = {
10110
10111
  props: {
@@ -10122,16 +10123,6 @@ var script$1 = {
10122
10123
  type: Boolean,
10123
10124
  required: false,
10124
10125
  default: true
10125
- },
10126
- isLastIndex: {
10127
- type: Boolean,
10128
- required: false,
10129
- default: false
10130
- }
10131
- },
10132
- computed: {
10133
- filteredName: function filteredName() {
10134
- return !this.isLastIndex ? "".concat(this.currentName, ", ") : this.currentName;
10135
10126
  }
10136
10127
  }
10137
10128
  };/* script */
@@ -10144,23 +10135,23 @@ var __vue_render__$1 = function __vue_render__() {
10144
10135
  var _c = _vm._self._c || _h;
10145
10136
  return _c('div', {
10146
10137
  staticClass: "email-from"
10147
- }, [_vm._ssrNode((_vm.currentName ? "<p" + _vm._ssrAttr("title", _vm.currentName) + " class=\"from\" data-v-116539b8>" + _vm._ssrEscape(_vm._s(_vm.currentName)) + "</p>" : "<!---->") + " " + (_vm.showMail ? "<div class=\"additional-container\" data-v-116539b8><span" + _vm._ssrAttr("title", _vm.mail) + " class=\"additional\" data-v-116539b8>" + _vm._ssrEscape(_vm._s("<" + _vm.mail + ">")) + "</span></div>" : "<!---->"))]);
10138
+ }, [_vm._ssrNode((_vm.currentName ? "<p" + _vm._ssrAttr("title", _vm.currentName) + " class=\"from\" data-v-ab361444>" + _vm._ssrEscape(_vm._s(_vm.currentName)) + "</p>" : "<!---->") + " " + (_vm.showMail ? "<div class=\"additional-container\" data-v-ab361444><span" + _vm._ssrAttr("title", _vm.mail) + " class=\"additional\" data-v-ab361444>" + _vm._ssrEscape(_vm._s("" + _vm.mail)) + "</span></div>" : "<!---->"))]);
10148
10139
  };
10149
10140
  var __vue_staticRenderFns__$1 = [];
10150
10141
 
10151
10142
  /* style */
10152
10143
  var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
10153
10144
  if (!inject) return;
10154
- inject("data-v-116539b8_0", {
10155
- source: ".email-from[data-v-116539b8]{width:100%;flex:1;display:flex;align-items:center}.email-from .from[data-v-116539b8]{font-size:.75rem;font-weight:700;white-space:nowrap;margin:0}.email-from .additional-container[data-v-116539b8]{flex:1;overflow:hidden}.email-from .additional[data-v-116539b8]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-left:5px;font-size:.75rem;color:gray}",
10145
+ inject("data-v-ab361444_0", {
10146
+ source: ".email-from[data-v-ab361444]{display:flex;align-items:center}.email-from .from[data-v-ab361444]{font-size:.75rem;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0}.email-from .additional-container[data-v-ab361444]{flex:1;overflow:hidden}.email-from .additional[data-v-ab361444]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-left:5px;font-size:.75rem;color:gray;text-overflow:ellipsis}",
10156
10147
  map: undefined,
10157
10148
  media: undefined
10158
10149
  });
10159
10150
  };
10160
10151
  /* scoped */
10161
- var __vue_scope_id__$1 = "data-v-116539b8";
10152
+ var __vue_scope_id__$1 = "data-v-ab361444";
10162
10153
  /* module identifier */
10163
- var __vue_module_identifier__$1 = "data-v-116539b8";
10154
+ var __vue_module_identifier__$1 = "data-v-ab361444";
10164
10155
  /* functional template */
10165
10156
  var __vue_is_functional_template__$1 = false;
10166
10157
  /* style inject shadow dom */
@@ -10191,81 +10182,115 @@ var script = {
10191
10182
  },
10192
10183
  from: {
10193
10184
  type: Array,
10194
- required: false,
10195
10185
  default: function _default() {
10196
10186
  return [];
10197
10187
  }
10198
10188
  },
10199
10189
  para: {
10200
10190
  type: Array,
10201
- required: false,
10202
10191
  default: function _default() {
10203
10192
  return [];
10204
10193
  }
10205
10194
  },
10206
10195
  html: {
10207
10196
  type: String,
10208
- required: false,
10209
10197
  default: ""
10210
10198
  },
10211
10199
  assunto: {
10212
10200
  type: String,
10213
- required: false,
10214
10201
  default: ""
10215
10202
  },
10216
10203
  dataHora: {
10217
10204
  type: String,
10218
- required: false,
10219
10205
  default: ""
10220
10206
  },
10221
10207
  mensagem: {
10222
10208
  type: String,
10223
- required: false,
10224
10209
  default: ""
10225
10210
  },
10226
10211
  anexos: {
10227
10212
  type: [Array, String],
10228
- required: false,
10229
10213
  default: function _default() {
10230
10214
  return [];
10231
10215
  }
10232
10216
  },
10233
10217
  iniciarAberto: {
10234
10218
  type: Boolean,
10235
- required: false,
10236
10219
  default: false
10237
10220
  },
10238
10221
  dataServer: {
10239
10222
  type: String,
10240
- required: false,
10241
10223
  default: ""
10242
10224
  },
10243
10225
  isOpenClass: {
10244
10226
  type: String,
10245
- required: false,
10246
10227
  default: 'bg-dark-white-2'
10247
10228
  },
10248
10229
  isClosedClass: {
10249
10230
  type: String,
10250
- required: false,
10251
10231
  default: 'bg-light-gray-2'
10252
10232
  },
10253
10233
  sanitizeOptions: {
10254
10234
  type: Object,
10255
- required: false,
10256
10235
  default: null
10257
10236
  }
10258
10237
  },
10259
10238
  data: function data() {
10260
10239
  return {
10261
- isOpen: false,
10240
+ isOpen: this.iniciarAberto,
10262
10241
  openMessage: false,
10263
- actionsOpen: false
10242
+ actionsOpen: false,
10243
+ showInfos: false
10264
10244
  };
10265
10245
  },
10246
+ computed: {
10247
+ formattedDate: function formattedDate() {
10248
+ return this.formataDateHoraDateFns(this.dataHora, this.dataServer, this.dicionario);
10249
+ },
10250
+ cleanHtml: function cleanHtml() {
10251
+ var defaultOptions = {
10252
+ allowedTags: ['a', 'b', 'br', 'div', 'i', 'p', 'span', 'strong', 'u', 'ul', 'ol', 'li', 'img', 'link'],
10253
+ allowedAttributes: {
10254
+ 'a': ['href'],
10255
+ 'img': ['src', 'width', 'height', 'alt'],
10256
+ 'link': ['rel', 'href'],
10257
+ '*': ['style']
10258
+ }
10259
+ };
10260
+ return this.$sanitize(this.html, this.sanitizeOptions || defaultOptions);
10261
+ },
10262
+ mailInfos: function mailInfos() {
10263
+ var formatAsString = function formatAsString(arr) {
10264
+ var str = '';
10265
+ arr.forEach(function (_ref, index) {
10266
+ var name = _ref.name,
10267
+ mail = _ref.mail;
10268
+ str += "".concat(name, " <").concat(mail, ">").concat(index !== arr.length - 1 ? ', ' : '');
10269
+ });
10270
+ return str;
10271
+ };
10272
+ return [{
10273
+ label: 'De:',
10274
+ value: formatAsString(this.from)
10275
+ }, {
10276
+ label: 'Para:',
10277
+ value: formatAsString(this.para)
10278
+ }, {
10279
+ label: 'Assunto:',
10280
+ value: this.htmlEntityToEmoji(this.replaceUnicodeWithEmoji(this.assunto)) || '(Sem assunto)'
10281
+ }, {
10282
+ label: 'Data:',
10283
+ value: this.formataDataHora(this.dataHora)
10284
+ }];
10285
+ }
10286
+ },
10266
10287
  methods: {
10288
+ toggleShowInfos: function toggleShowInfos() {
10289
+ this.showInfos = !this.showInfos;
10290
+ },
10267
10291
  toggleIsOpen: function toggleIsOpen() {
10268
10292
  this.isOpen = !this.isOpen;
10293
+ if (!this.isOpen) this.actionsOpen = false;
10269
10294
  },
10270
10295
  toggleActions: function toggleActions() {
10271
10296
  this.actionsOpen = !this.actionsOpen;
@@ -10273,17 +10298,17 @@ var script = {
10273
10298
  toggleOpenMessage: function toggleOpenMessage() {
10274
10299
  this.openMessage = !this.openMessage;
10275
10300
  },
10276
- returnCleanHtml: function returnCleanHtml(html) {
10277
- var options = this.sanitizeOptions ? this.sanitizeOptions : {
10278
- allowedTags: ['a', 'b', 'br', 'div', 'i', 'p', 'span', 'strong', 'u', 'ul', 'ol', 'li', 'img', 'link'],
10279
- allowedAttributes: {
10280
- 'a': ['href'],
10281
- 'img': ['src', 'width', 'height', 'alt'],
10282
- 'link': ['rel', 'href'],
10283
- '*': ['style']
10284
- }
10285
- };
10286
- return this.$sanitize(html, options);
10301
+ closeActions: function closeActions() {
10302
+ this.actionsOpen = false;
10303
+ },
10304
+ formattedName: function formattedName(name, index, length, isOpen) {
10305
+ return "".concat(name).concat(index !== length - 1 && !isOpen ? ', ' : '');
10306
+ },
10307
+ formattedMail: function formattedMail(mail, index, length, isOpen) {
10308
+ return "<".concat(mail).concat(index !== length - 1 && isOpen ? '>, ' : '>');
10309
+ },
10310
+ formattedToName: function formattedToName(name, index, length) {
10311
+ return index === 0 ? "Para: ".concat(name || '') : name ? "".concat(name).concat(index !== length - 1 ? ', ' : '') : '';
10287
10312
  }
10288
10313
  }
10289
10314
  };/* script */
@@ -10295,80 +10320,79 @@ var __vue_render__ = function __vue_render__() {
10295
10320
  var _h = _vm.$createElement;
10296
10321
  var _c = _vm._self._c || _h;
10297
10322
  return _c('div', {
10298
- staticClass: "email-item box-shadow",
10299
- class: "" + (_vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass)
10300
- }, [_vm._ssrNode("<div class=\"email-header\" data-v-9a12e0d2>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-9a12e0d2>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-9a12e0d2>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.assunto || '(Sem assunto)') + " class=\"email-subject\" data-v-9a12e0d2>" + _vm._ssrEscape(_vm._s(_vm.tratarTextoLongo(_vm.assunto || '(Sem assunto)', 30))) + "</p> "), _vm.from && _vm.from.length ? _vm._l(_vm.from, function (ref, index) {
10301
- var name = ref.name;
10302
- var mail = ref.mail;
10323
+ class: ['email-item box-shadow', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass]
10324
+ }, [_vm._ssrNode("<div class=\"email-header\" data-v-5b2b6602>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-5b2b6602>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-5b2b6602>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)') + " class=\"email-subject\" data-v-5b2b6602>" + _vm._ssrEscape("\n " + _vm._s(_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.tratarTextoLongo(_vm.assunto, 30))) || '(Sem assunto)') + "\n ") + "</p> "), _vm.from && _vm.from.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-5b2b6602>", "</div>", _vm._l(_vm.from, function (sender, index) {
10303
10325
  return _c('EmailFrom', {
10304
10326
  key: "from-" + index,
10305
10327
  attrs: {
10306
- "currentName": name,
10307
- "mail": mail,
10308
- "showMail": _vm.from.length == 1,
10309
- "isLastIndex": index == _vm.from.length - 1
10328
+ "currentName": _vm.formattedName(sender.name, index, _vm.from.length, _vm.isOpen),
10329
+ "mail": _vm.formattedMail(sender.mail, index, _vm.from.length, _vm.isOpen),
10330
+ "showMail": _vm.isOpen
10310
10331
  }
10311
10332
  });
10312
- }) : _vm._e(), _vm._ssrNode(" "), _vm.para && _vm.para.length && _vm.isOpen ? _vm._l(_vm.para, function (ref, index) {
10313
- var name = ref.name;
10314
- var mail = ref.mail;
10333
+ }), 1)] : _vm._e(), _vm._ssrNode(" "), _vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-5b2b6602>", "</div>", [_vm._l(_vm.para, function (recipient, index) {
10315
10334
  return _c('EmailTo', {
10316
10335
  key: "to-" + index,
10317
10336
  attrs: {
10318
- "currentName": index == '0' ? "Para: " + (name ? name : '') : name ? name : '',
10319
- "mail": mail,
10320
- "showMail": _vm.para.length == 1,
10321
- "isLastIndex": index == _vm.para.length - 1
10337
+ "currentName": _vm.formattedToName(recipient.name, index, _vm.para.length),
10338
+ "mail": recipient.mail,
10339
+ "showMail": _vm.para.length === 1
10322
10340
  }
10323
10341
  });
10324
- }) : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formataDateHoraDateFns(_vm.dataHora, _vm.dataServer, _vm.dicionario)) + " class=\"email-date\" data-v-9a12e0d2>", "</span>", [_c('fa-icon', {
10342
+ }), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-5b2b6602>", "</div>", [_c('fa-icon', {
10325
10343
  attrs: {
10326
- "icon": ['fas', 'calendar']
10344
+ "icon": ['fas', 'caret-down']
10327
10345
  }
10328
- }), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.formataDateHoraDateFns(_vm.dataHora, _vm.dataServer, _vm.dicionario)) + "\n "))], 2)], 2), _vm._ssrNode(" "), _c('transition', {
10329
- attrs: {
10330
- "name": "show-y-top"
10331
- }
10332
- }, [_vm.isOpen ? _c('div', {
10333
- staticClass: "email-content"
10334
- }, [_c('span', {
10335
- class: "email-actions box-shadow" + (_vm.actionsOpen ? ' active' : ''),
10346
+ })], 1), _vm._ssrNode(" "), _vm.showInfos ? _c('ul', {
10347
+ directives: [{
10348
+ name: "clickaway",
10349
+ rawName: "v-clickaway",
10350
+ value: function value() {
10351
+ return _vm.showInfos = false;
10352
+ },
10353
+ expression: "() => showInfos = false"
10354
+ }],
10355
+ staticClass: "email-to-infos box-shadow",
10336
10356
  on: {
10337
10357
  "click": function click($event) {
10338
- return _vm.toggleActions();
10358
+ $event.stopPropagation();
10339
10359
  }
10340
10360
  }
10341
- }, [_c('span'), _vm._v(" "), _c('span'), _vm._v(" "), _c('span')]), _vm._v(" "), _vm.actionsOpen ? _c('ul', {
10361
+ }, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
10362
+ return "<li class=\"email-info\" data-v-5b2b6602><span data-v-5b2b6602>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
10363
+ }))]) : _vm._e()], 2)] : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + " class=\"email-date\" data-v-5b2b6602>", "</span>", [_c('fa-icon', {
10364
+ attrs: {
10365
+ "icon": ['fas', 'calendar']
10366
+ }
10367
+ }), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.formattedDate) + "\n "))], 2), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
10368
+ active: _vm.actionsOpen
10369
+ }]) + " data-v-5b2b6602><span data-v-5b2b6602></span> <span data-v-5b2b6602></span> <span data-v-5b2b6602></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
10342
10370
  directives: [{
10343
10371
  name: "clickaway",
10344
10372
  rawName: "v-clickaway",
10345
- value: function value() {
10346
- return _vm.actionsOpen = false;
10347
- },
10348
- expression: "() => actionsOpen = false"
10373
+ value: _vm.closeActions,
10374
+ expression: "closeActions"
10349
10375
  }],
10350
- staticClass: "email-actions-list box-shadow"
10351
- }, [_c('li', {
10352
- staticClass: "email-action",
10353
- domProps: {
10354
- "textContent": _vm._s((!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail")
10355
- },
10376
+ staticClass: "email-actions-list box-shadow",
10356
10377
  on: {
10357
10378
  "click": function click($event) {
10358
- return _vm.toggleOpenMessage();
10379
+ $event.stopPropagation();
10359
10380
  }
10360
10381
  }
10361
- })]) : _vm._e(), _vm._v(" "), _c('section', {
10382
+ }, [_vm._ssrNode("<li class=\"email-action\" data-v-5b2b6602>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
10383
+ attrs: {
10384
+ "name": "show-y-top"
10385
+ }
10386
+ }, [_vm.isOpen ? _c('div', {
10387
+ staticClass: "email-content"
10388
+ }, [_c('section', {
10362
10389
  staticClass: "email-html",
10363
10390
  domProps: {
10364
- "innerHTML": _vm._s(_vm.returnCleanHtml(_vm.html))
10391
+ "innerHTML": _vm._s(_vm.cleanHtml)
10365
10392
  }
10366
10393
  }), _vm._v(" "), _vm.openMessage ? _c('span', {
10367
- staticClass: "email-raw",
10368
- domProps: {
10369
- "textContent": _vm._s(_vm.mensagem)
10370
- }
10371
- }) : _vm._e()]) : _vm._e()]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-9a12e0d2>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
10394
+ staticClass: "email-raw"
10395
+ }, [_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-5b2b6602>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
10372
10396
  return _c('EmailFile', {
10373
10397
  key: index,
10374
10398
  attrs: {
@@ -10383,20 +10407,20 @@ var __vue_staticRenderFns__ = [];
10383
10407
  /* style */
10384
10408
  var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
10385
10409
  if (!inject) return;
10386
- inject("data-v-9a12e0d2_0", {
10387
- source: ".show-y-top-enter-active[data-v-9a12e0d2],.show-y-top-leave-enter[data-v-9a12e0d2]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-9a12e0d2],.show-y-top-leave-to[data-v-9a12e0d2]{opacity:0;transform:translateY(-2%)}",
10410
+ inject("data-v-5b2b6602_0", {
10411
+ source: ".show-y-top-enter-active[data-v-5b2b6602],.show-y-top-leave-enter[data-v-5b2b6602]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-5b2b6602],.show-y-top-leave-to[data-v-5b2b6602]{opacity:0;transform:translateY(-2%)}",
10388
10412
  map: undefined,
10389
10413
  media: undefined
10390
- }), inject("data-v-9a12e0d2_1", {
10391
- source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-item{flex:1;margin:0 10px 10px;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}.email-header-content{display:flex;justify-content:center;align-items:center;margin:10px}.email-header-infos{display:flex;flex-direction:column}.email-subject{margin:0;font-weight:700;font-size:.9rem}.email-date{font-size:.8rem;margin-right:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.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:5px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:10px 5px;background-color:#fff}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:7px;height:7px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:60px;width:250px;top:15px;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{max-width:100%;padding:10px}.email-raw{max-width:100%;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%}",
10414
+ }), inject("data-v-5b2b6602_1", {
10415
+ 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}.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}.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}.email-info{width:100%;font-size:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-left:5px}",
10392
10416
  map: undefined,
10393
10417
  media: undefined
10394
10418
  });
10395
10419
  };
10396
10420
  /* scoped */
10397
- var __vue_scope_id__ = "data-v-9a12e0d2";
10421
+ var __vue_scope_id__ = "data-v-5b2b6602";
10398
10422
  /* module identifier */
10399
- var __vue_module_identifier__ = "data-v-9a12e0d2";
10423
+ var __vue_module_identifier__ = "data-v-5b2b6602";
10400
10424
  /* functional template */
10401
10425
  var __vue_is_functional_template__ = false;
10402
10426
  /* style inject shadow dom */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -2,15 +2,13 @@
2
2
  <div class="email-from">
3
3
  <p class="from" v-if="currentName" v-text="currentName" :title="currentName"></p>
4
4
  <div v-if="showMail" class="additional-container">
5
- <span class="additional" v-text="`<${mail}>`" :title="mail"></span>
5
+ <span class="additional" v-text="`${mail}`" :title="mail"></span>
6
6
  </div>
7
7
  </div>
8
8
  </template>
9
9
 
10
10
  <style scoped>
11
11
  .email-from {
12
- width: 100%;
13
- flex: 1;
14
12
  display: flex;
15
13
  align-items: center;
16
14
  }
@@ -19,6 +17,8 @@
19
17
  font-size: .75rem;
20
18
  font-weight: bold;
21
19
  white-space: nowrap;
20
+ text-overflow: ellipsis;
21
+ overflow: hidden;
22
22
  margin: 0;
23
23
  }
24
24
 
@@ -34,6 +34,7 @@
34
34
  margin-left: 5px;
35
35
  font-size: .75rem;
36
36
  color: gray;
37
+ text-overflow: ellipsis;
37
38
  }
38
39
  </style>
39
40
 
@@ -54,16 +55,6 @@ export default {
54
55
  type: Boolean,
55
56
  required: false,
56
57
  default: true
57
- },
58
- isLastIndex: {
59
- type: Boolean,
60
- required: false,
61
- default: false
62
- }
63
- },
64
- computed: {
65
- filteredName() {
66
- return !this.isLastIndex ? `${this.currentName}, ` : this.currentName
67
58
  }
68
59
  }
69
60
  }