vue-intergrall-plugins 1.0.42 → 1.0.44
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.
|
@@ -10363,8 +10363,8 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10363
10363
|
var _h = _vm.$createElement;
|
|
10364
10364
|
var _c = _vm._self._c || _h;
|
|
10365
10365
|
return _c('div', {
|
|
10366
|
-
class: ['email-item box-shadow', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass]
|
|
10367
|
-
}, [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)') + " class=\"email-subject\" data-v-
|
|
10366
|
+
class: ['email-item box-shadow', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass, _vm.showInfos ? 'info-open' : '']
|
|
10367
|
+
}, [_vm._ssrNode((_vm.showInfos ? "<div class=\"email-overlay\" data-v-02cc45a4></div>" : "<!---->") + " "), _vm._ssrNode("<div class=\"email-header\" data-v-02cc45a4>", "</div>", [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)') + " class=\"email-subject\" data-v-02cc45a4>" + _vm._ssrEscape("\n " + _vm._s(_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.tratarTextoLongo(_vm.assunto, 30))) || '(Sem assunto)') + "\n ") + "</p> "), _vm._ssrNode("<div class=\"header-container\" data-v-02cc45a4>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-02cc45a4>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-02cc45a4>", "</div>", [_vm.from && _vm.from.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-02cc45a4>", "</div>", _vm._l(_vm.from, function (sender, index) {
|
|
10368
10368
|
return _c('EmailFrom', {
|
|
10369
10369
|
key: "from-" + index,
|
|
10370
10370
|
attrs: {
|
|
@@ -10373,7 +10373,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10373
10373
|
"showMail": _vm.isOpen
|
|
10374
10374
|
}
|
|
10375
10375
|
});
|
|
10376
|
-
}), 1)] : _vm._e(), _vm._ssrNode(" "), _vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-
|
|
10376
|
+
}), 1)] : _vm._e(), _vm._ssrNode(" "), _vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-02cc45a4>", "</div>", [_vm._l(_vm.para, function (recipient, index) {
|
|
10377
10377
|
return _c('EmailTo', {
|
|
10378
10378
|
key: "to-" + index,
|
|
10379
10379
|
attrs: {
|
|
@@ -10382,11 +10382,15 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10382
10382
|
"showMail": _vm.para.length === 1
|
|
10383
10383
|
}
|
|
10384
10384
|
});
|
|
10385
|
-
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-
|
|
10385
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-02cc45a4>", "</div>", [_c('fa-icon', {
|
|
10386
10386
|
attrs: {
|
|
10387
10387
|
"icon": ['fas', 'caret-down']
|
|
10388
10388
|
}
|
|
10389
|
-
})], 1), _vm._ssrNode(" "), _vm.
|
|
10389
|
+
})], 1)], 2)] : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + " class=\"email-date\" data-v-02cc45a4>", "</span>", [_c('fa-icon', {
|
|
10390
|
+
attrs: {
|
|
10391
|
+
"icon": ['fas', 'calendar']
|
|
10392
|
+
}
|
|
10393
|
+
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.formattedDate) + "\n "))], 2)], 2), _vm._ssrNode(" "), _vm.showInfos ? _c('ul', {
|
|
10390
10394
|
directives: [{
|
|
10391
10395
|
name: "clickaway",
|
|
10392
10396
|
rawName: "v-clickaway",
|
|
@@ -10402,14 +10406,10 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10402
10406
|
}
|
|
10403
10407
|
}
|
|
10404
10408
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
10405
|
-
return "<li class=\"email-info\" data-v-
|
|
10406
|
-
}))]) : _vm._e()
|
|
10407
|
-
attrs: {
|
|
10408
|
-
"icon": ['fas', 'calendar']
|
|
10409
|
-
}
|
|
10410
|
-
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.formattedDate) + "\n "))], 2), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
10409
|
+
return "<li class=\"email-info\" data-v-02cc45a4><span data-v-02cc45a4>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
10410
|
+
}))]) : _vm._e(), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
10411
10411
|
active: _vm.actionsOpen
|
|
10412
|
-
}]) + " data-v-
|
|
10412
|
+
}]) + " data-v-02cc45a4><span data-v-02cc45a4></span> <span data-v-02cc45a4></span> <span data-v-02cc45a4></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
10413
10413
|
directives: [{
|
|
10414
10414
|
name: "clickaway",
|
|
10415
10415
|
rawName: "v-clickaway",
|
|
@@ -10422,7 +10422,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10422
10422
|
$event.stopPropagation();
|
|
10423
10423
|
}
|
|
10424
10424
|
}
|
|
10425
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
10425
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-02cc45a4>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
|
|
10426
10426
|
attrs: {
|
|
10427
10427
|
"name": "show-y-top"
|
|
10428
10428
|
}
|
|
@@ -10434,7 +10434,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10434
10434
|
staticClass: "email-html"
|
|
10435
10435
|
}), _vm._v(" "), _vm.openMessage ? _c('span', {
|
|
10436
10436
|
staticClass: "email-raw"
|
|
10437
|
-
}, [_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-
|
|
10437
|
+
}, [_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-02cc45a4>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
|
|
10438
10438
|
return _c('EmailFile', {
|
|
10439
10439
|
key: index,
|
|
10440
10440
|
attrs: {
|
|
@@ -10449,20 +10449,20 @@ var __vue_staticRenderFns__ = [];
|
|
|
10449
10449
|
/* style */
|
|
10450
10450
|
var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
|
|
10451
10451
|
if (!inject) return;
|
|
10452
|
-
inject("data-v-
|
|
10453
|
-
source: ".show-y-top-enter-active[data-v-
|
|
10452
|
+
inject("data-v-02cc45a4_0", {
|
|
10453
|
+
source: ".show-y-top-enter-active[data-v-02cc45a4],.show-y-top-leave-enter[data-v-02cc45a4]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-02cc45a4],.show-y-top-leave-to[data-v-02cc45a4]{opacity:0;transform:translateY(-2%)}",
|
|
10454
10454
|
map: undefined,
|
|
10455
10455
|
media: undefined
|
|
10456
|
-
}), inject("data-v-
|
|
10457
|
-
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
|
|
10456
|
+
}), inject("data-v-02cc45a4_1", {
|
|
10457
|
+
source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-overlay{width:100%;height:100%;background-color:transparent;z-index:1;position:absolute;top:0;left:0}.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%;overflow:hidden;position:relative}.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}.email-header-content{display:flex;align-items:center;margin-right: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%;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%;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: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:-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-left:5px}",
|
|
10458
10458
|
map: undefined,
|
|
10459
10459
|
media: undefined
|
|
10460
10460
|
});
|
|
10461
10461
|
};
|
|
10462
10462
|
/* scoped */
|
|
10463
|
-
var __vue_scope_id__ = "data-v-
|
|
10463
|
+
var __vue_scope_id__ = "data-v-02cc45a4";
|
|
10464
10464
|
/* module identifier */
|
|
10465
|
-
var __vue_module_identifier__ = "data-v-
|
|
10465
|
+
var __vue_module_identifier__ = "data-v-02cc45a4";
|
|
10466
10466
|
/* functional template */
|
|
10467
10467
|
var __vue_is_functional_template__ = false;
|
|
10468
10468
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -1,41 +1,43 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="['email-item box-shadow', isOpen ? isOpenClass : isClosedClass]">
|
|
3
|
-
<
|
|
4
|
-
@click="toggleIsOpen">
|
|
5
|
-
{{ htmlEntityToEmoji(replaceUnicodeWithEmoji(tratarTextoLongo(assunto, 30))) || '(Sem assunto)' }}
|
|
6
|
-
</p>
|
|
2
|
+
<div :class="['email-item box-shadow', isOpen ? isOpenClass : isClosedClass, showInfos ? 'info-open' : '']">
|
|
3
|
+
<div v-if="showInfos" class="email-overlay"></div>
|
|
7
4
|
<div class="email-header" @click="toggleIsOpen">
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<EmailTo v-for="(recipient, index) in para" :key="`to-${index}`"
|
|
20
|
-
:currentName="formattedToName(recipient.name, index, para.length)" :mail="recipient.mail"
|
|
21
|
-
:showMail="para.length === 1" />
|
|
22
|
-
<div class="email-to-btn" @click.stop="toggleShowInfos()">
|
|
23
|
-
<fa-icon :icon="['fas', 'caret-down']" />
|
|
5
|
+
<p class="email-subject" :title="htmlEntityToEmoji(replaceUnicodeWithEmoji(assunto)) || '(Sem assunto)'">
|
|
6
|
+
{{ htmlEntityToEmoji(replaceUnicodeWithEmoji(tratarTextoLongo(assunto, 30))) || '(Sem assunto)' }}
|
|
7
|
+
</p>
|
|
8
|
+
<div class="header-container">
|
|
9
|
+
<div class="email-header-content">
|
|
10
|
+
<div class="email-header-infos">
|
|
11
|
+
<template v-if="from && from.length">
|
|
12
|
+
<div class="email-to-from-container">
|
|
13
|
+
<EmailFrom v-for="(sender, index) in from" :key="`from-${index}`"
|
|
14
|
+
:currentName="formattedName(sender.name, index, from.length, isOpen)"
|
|
15
|
+
:mail="formattedMail(sender.mail, index, from.length, isOpen)" :showMail="isOpen" />
|
|
24
16
|
</div>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
</template>
|
|
18
|
+
<template v-if="para && para.length && isOpen">
|
|
19
|
+
<div class="email-to-from-container">
|
|
20
|
+
<EmailTo v-for="(recipient, index) in para" :key="`to-${index}`"
|
|
21
|
+
:currentName="formattedToName(recipient.name, index, para.length)" :mail="recipient.mail"
|
|
22
|
+
:showMail="para.length === 1" />
|
|
23
|
+
<div class="email-to-btn" @click.stop="toggleShowInfos()">
|
|
24
|
+
<fa-icon :icon="['fas', 'caret-down']" />
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
</div>
|
|
33
29
|
</div>
|
|
30
|
+
<span class="email-date" :title="formattedDate">
|
|
31
|
+
<fa-icon :icon="['fas', 'calendar']" />
|
|
32
|
+
{{ formattedDate }}
|
|
33
|
+
</span>
|
|
34
34
|
</div>
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
<ul v-if="showInfos" class="email-to-infos box-shadow" v-clickaway="() => showInfos = false" @click.stop>
|
|
36
|
+
<li v-for="(info, index) in mailInfos" :key="`info-${index}`" class="email-info">
|
|
37
|
+
<span v-text="info.label"></span>
|
|
38
|
+
{{ info.value }}
|
|
39
|
+
</li>
|
|
40
|
+
</ul>
|
|
39
41
|
<span v-if="isOpen" :class="['email-actions box-shadow', { active: actionsOpen }]" @click.stop="toggleActions">
|
|
40
42
|
<span></span>
|
|
41
43
|
<span></span>
|
|
@@ -259,6 +261,16 @@ export default {
|
|
|
259
261
|
background-color: #d8d8d8;
|
|
260
262
|
}
|
|
261
263
|
|
|
264
|
+
.email-overlay {
|
|
265
|
+
width: 100%;
|
|
266
|
+
height: 100%;
|
|
267
|
+
background-color: transparent;
|
|
268
|
+
z-index: 1;
|
|
269
|
+
position: absolute;
|
|
270
|
+
top: 0;
|
|
271
|
+
left: 0;
|
|
272
|
+
}
|
|
273
|
+
|
|
262
274
|
.email-item {
|
|
263
275
|
flex: 1;
|
|
264
276
|
margin: 0 0 10px 0;
|
|
@@ -271,24 +283,34 @@ export default {
|
|
|
271
283
|
transition: all 150ms ease-in-out;
|
|
272
284
|
max-width: 100%;
|
|
273
285
|
width: 100%;
|
|
286
|
+
overflow: hidden;
|
|
287
|
+
position: relative;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.email-item.info-open {
|
|
291
|
+
overflow: visible
|
|
274
292
|
}
|
|
275
293
|
|
|
276
294
|
.email-header {
|
|
277
295
|
width: 100%;
|
|
278
296
|
display: flex;
|
|
279
|
-
|
|
280
|
-
justify-content: space-between;
|
|
297
|
+
flex-direction: column;
|
|
281
298
|
cursor: pointer;
|
|
282
299
|
border-top-right-radius: 5px;
|
|
283
300
|
border-top-left-radius: 5px;
|
|
284
301
|
position: relative;
|
|
302
|
+
overflow: visible;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.header-container {
|
|
306
|
+
display: flex;
|
|
285
307
|
overflow: hidden;
|
|
286
308
|
}
|
|
287
309
|
|
|
288
310
|
.email-header-content {
|
|
289
311
|
display: flex;
|
|
290
312
|
align-items: center;
|
|
291
|
-
margin: 10px;
|
|
313
|
+
margin-right: 10px;
|
|
292
314
|
flex: 1;
|
|
293
315
|
min-width: 250px;
|
|
294
316
|
}
|
|
@@ -442,7 +464,7 @@ export default {
|
|
|
442
464
|
|
|
443
465
|
.email-to-infos {
|
|
444
466
|
position: absolute;
|
|
445
|
-
bottom: -
|
|
467
|
+
bottom: -325px;
|
|
446
468
|
border: 1px solid #CCC;
|
|
447
469
|
z-index: 2;
|
|
448
470
|
padding: 10px;
|