vue-intergrall-plugins 1.0.52 → 1.0.54

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -73,6 +73,7 @@ export default {
73
73
  .anexo-img img {
74
74
  max-width: 100%;
75
75
  max-height: 100%;
76
+ font-size: .8rem;
76
77
  }
77
78
 
78
79
  .box-shadow {
@@ -2,8 +2,11 @@
2
2
  <div
3
3
  :class="['email-item box-shadow-active', isOpen ? isOpenClass : isClosedClass, showInfos ? 'info-open' : '', origem]">
4
4
  <div v-if="showInfos" class="email-overlay"></div>
5
- <div class="email-author" v-if="autor" :class="[origem]">
5
+ <div class="email-author" v-if="autor" :class="[origem]" @click="toggleIsOpen">
6
6
  <fa-icon :icon="['fas', 'reply']" :class="[origem]" :title="`Enviado por: ${autor}`" />
7
+ <p class="email-author-name" v-text="returnAuthorName()" :title="returnAuthorName()"></p>
8
+ <fa-icon :icon="['fas', origem === 'outros' ? 'user' : 'headset']"
9
+ :title="`E-mail ${origem === 'outros' ? 'recebido' : 'enviado'}`" class="email-to-svg" />
7
10
  </div>
8
11
  <div class="email-header" @click="toggleIsOpen">
9
12
  <p class="email-subject" :title="returnMainValue()">
@@ -12,15 +15,6 @@
12
15
  <div class="header-container">
13
16
  <div class="email-header-content">
14
17
  <div class="email-header-infos">
15
- <template v-if="from && from.length">
16
- <div class="email-to-from-container" ref="fromContainer">
17
- <fa-icon :icon="['fas', origem === 'outros' ? 'user' : 'headset']"
18
- :title="`E-mail ${origem === 'outros' ? 'recebido' : 'enviado'}`" class="email-to-svg" />
19
- <EmailFrom v-for="(sender, index) in from" :key="`from-${index}`"
20
- :currentName="formattedName(sender.name, index, from.length, isOpen)"
21
- :mail="formattedMail(sender.mail, index, from.length, isOpen)" :showMail="isOpen" />
22
- </div>
23
- </template>
24
18
  <template v-if="para && para.length && isOpen">
25
19
  <div class="email-to-from-container">
26
20
  <EmailTo v-for="(recipient, index) in para" :key="`to-${index}`"
@@ -74,7 +68,6 @@
74
68
  <script>
75
69
  import EmailFile from "./EmailFile.vue";
76
70
  import EmailTo from "./EmailTo.vue";
77
- import EmailFrom from "./EmailFrom.vue";
78
71
  import { textoLongo } from "@/mixins/formatarTexto";
79
72
  import Clickaway from '@/directives/clickaway';
80
73
 
@@ -83,7 +76,7 @@ export default {
83
76
  directives: {
84
77
  clickaway: Clickaway
85
78
  },
86
- components: { EmailFile, EmailTo, EmailFrom },
79
+ components: { EmailFile, EmailTo },
87
80
  props: {
88
81
  dominio: {
89
82
  type: String,
@@ -203,11 +196,17 @@ export default {
203
196
  },
204
197
  mounted() {
205
198
  this.updateIframeContent();
206
- this.updateFromContainerMaxWidth()
207
199
 
208
200
  if (this.refKey) this.$root.$refs[`${refKey}`] = this
209
201
  },
210
202
  methods: {
203
+ returnAuthorName() {
204
+ const { mail, name } = this.from[0]
205
+ if (!name) return mail
206
+ if (!mail) return name
207
+ if (this.isOpen) return `${name} (${mail})`
208
+ return name
209
+ },
211
210
  updateIframeContent() {
212
211
  this.$nextTick(() => {
213
212
  if (this.isOpen) {
@@ -220,15 +219,6 @@ export default {
220
219
  }
221
220
  })
222
221
  },
223
- updateFromContainerMaxWidth() {
224
- this.$nextTick(() => {
225
- const fromContainer = this.$refs.fromContainer
226
- const emailDate = this.$refs.emailDate
227
- if (!fromContainer || !emailDate) return
228
- const MARGIN = 15
229
- fromContainer.style.maxWidth = `calc(100% - ${emailDate.getBoundingClientRect().width + MARGIN}px)`
230
- })
231
- },
232
222
  adjustIframeHeight() {
233
223
  this.$nextTick(() => {
234
224
  const iframe = this.$refs.emailIframe;
@@ -352,19 +342,24 @@ export default {
352
342
  border-left: 3px solid #33B8DF;
353
343
  }
354
344
 
345
+ .email-author-name {
346
+ margin: 0 5px;
347
+ }
348
+
355
349
  .email-author.outros {
356
350
  color: #33B8DF;
357
- justify-content: flex-end;
358
- transform: rotateY(180deg) translateY(-3px);
351
+ }
352
+
353
+ .email-author.outros>svg:nth-child(1) {
354
+ transform: rotate(180deg);
359
355
  }
360
356
 
361
357
  .email-author.principal {
362
- justify-content: flex-end;
363
358
  color: #ebb552;
364
359
  }
365
360
 
366
361
  .email-item.principal {
367
- border-right: 3px solid #ebb552;
362
+ border-left: 3px solid #ebb552;
368
363
  }
369
364
 
370
365
  .email-item.info-open {
@@ -459,6 +454,10 @@ export default {
459
454
  .email-actions>span {
460
455
  width: 4px;
461
456
  height: 4px;
457
+ min-width: 4px;
458
+ min-height: 4px;
459
+ max-width: 4px;
460
+ max-height: 4px;
462
461
  background-color: #222;
463
462
  border-radius: 50%;
464
463
  }
@@ -533,6 +532,7 @@ export default {
533
532
  min-width: 250px;
534
533
  overflow: hidden;
535
534
  display: flex;
535
+ align-items: center;
536
536
  flex-wrap: wrap;
537
537
  flex: 1;
538
538
  gap: 5px;
@@ -579,10 +579,11 @@ export default {
579
579
  display: flex;
580
580
  align-items: center;
581
581
  height: 5px;
582
- font-size: .65rem;
582
+ font-size: .75rem;
583
583
  font-weight: bold;
584
584
  transform: translateY(-2px);
585
585
  width: 100%;
586
+ cursor: pointer;
586
587
  }
587
588
 
588
589
  .email-subject-secondary {