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.
|
@@ -6680,7 +6680,26 @@ var __vue_component__$q = __vue_component__$p;var textoLongo = {
|
|
|
6680
6680
|
if (invalids.includes(dataHora)) return '';
|
|
6681
6681
|
var daysOfWeek = ['dom.', 'seg.', 'ter.', 'qua.', 'qui.', 'sex.', dicionario.sabado_abrev];
|
|
6682
6682
|
var monthsOfYear = ['jan.', 'fev.', 'mar.', 'abr.', 'mai.', 'jun.', 'jul.', 'ago.', 'set.', 'out.', 'nov.', 'dez.'];
|
|
6683
|
-
var
|
|
6683
|
+
var parseDate = function parseDate(dateStr) {
|
|
6684
|
+
if (dateStr.includes('/')) {
|
|
6685
|
+
var _dateStr$split = dateStr.split('/'),
|
|
6686
|
+
_dateStr$split2 = _slicedToArray(_dateStr$split, 3),
|
|
6687
|
+
_day = _dateStr$split2[0],
|
|
6688
|
+
_month = _dateStr$split2[1],
|
|
6689
|
+
yearTime = _dateStr$split2[2];
|
|
6690
|
+
var _yearTime$split = yearTime.split(' '),
|
|
6691
|
+
_yearTime$split2 = _slicedToArray(_yearTime$split, 2),
|
|
6692
|
+
year = _yearTime$split2[0],
|
|
6693
|
+
time = _yearTime$split2[1];
|
|
6694
|
+
var _ref = time ? time.split(':') : ['00', '00'],
|
|
6695
|
+
_ref2 = _slicedToArray(_ref, 2),
|
|
6696
|
+
_hours = _ref2[0],
|
|
6697
|
+
_minutes = _ref2[1];
|
|
6698
|
+
return new Date("".concat(year, "-").concat(_month, "-").concat(_day, "T").concat(_hours, ":").concat(_minutes, ":00"));
|
|
6699
|
+
}
|
|
6700
|
+
return new Date(dateStr);
|
|
6701
|
+
};
|
|
6702
|
+
var date = parseDate(dataHora);
|
|
6684
6703
|
var dayOfWeek = daysOfWeek[date.getDay()];
|
|
6685
6704
|
var day = date.getDate();
|
|
6686
6705
|
var month = monthsOfYear[date.getMonth()];
|
|
@@ -10297,8 +10316,8 @@ var script = {
|
|
|
10297
10316
|
var emailParent = _this2.$refs.emailIframeParent;
|
|
10298
10317
|
if (iframe && emailParent) {
|
|
10299
10318
|
var doc = iframe.contentDocument || iframe.contentWindow.document;
|
|
10300
|
-
iframe.style.height = "".concat(doc.documentElement.offsetHeight, "px");
|
|
10301
|
-
emailParent.style.minHeight = "".concat(doc.documentElement.offsetHeight
|
|
10319
|
+
iframe.style.height = "".concat(doc.documentElement.offsetHeight < 1000 ? doc.documentElement.offsetHeight : 1000, "px");
|
|
10320
|
+
emailParent.style.minHeight = "".concat(doc.documentElement.offsetHeight < 1000 ? doc.documentElement.offsetHeight : 1000, "px");
|
|
10302
10321
|
}
|
|
10303
10322
|
});
|
|
10304
10323
|
},
|
|
@@ -10341,7 +10360,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10341
10360
|
var _c = _vm._self._c || _h;
|
|
10342
10361
|
return _c('div', {
|
|
10343
10362
|
class: ['email-item box-shadow', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass]
|
|
10344
|
-
}, [_vm._ssrNode("<
|
|
10363
|
+
}, [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)') + " class=\"email-subject\" data-v-4c7ad756>" + _vm._ssrEscape("\n " + _vm._s(_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.tratarTextoLongo(_vm.assunto, 30))) || '(Sem assunto)') + "\n ") + "</p> "), _vm._ssrNode("<div class=\"email-header\" data-v-4c7ad756>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-4c7ad756>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-4c7ad756>", "</div>", [_vm.from && _vm.from.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-4c7ad756>", "</div>", _vm._l(_vm.from, function (sender, index) {
|
|
10345
10364
|
return _c('EmailFrom', {
|
|
10346
10365
|
key: "from-" + index,
|
|
10347
10366
|
attrs: {
|
|
@@ -10350,7 +10369,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10350
10369
|
"showMail": _vm.isOpen
|
|
10351
10370
|
}
|
|
10352
10371
|
});
|
|
10353
|
-
}), 1)] : _vm._e(), _vm._ssrNode(" "), _vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-
|
|
10372
|
+
}), 1)] : _vm._e(), _vm._ssrNode(" "), _vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-4c7ad756>", "</div>", [_vm._l(_vm.para, function (recipient, index) {
|
|
10354
10373
|
return _c('EmailTo', {
|
|
10355
10374
|
key: "to-" + index,
|
|
10356
10375
|
attrs: {
|
|
@@ -10359,7 +10378,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10359
10378
|
"showMail": _vm.para.length === 1
|
|
10360
10379
|
}
|
|
10361
10380
|
});
|
|
10362
|
-
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-
|
|
10381
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-4c7ad756>", "</div>", [_c('fa-icon', {
|
|
10363
10382
|
attrs: {
|
|
10364
10383
|
"icon": ['fas', 'caret-down']
|
|
10365
10384
|
}
|
|
@@ -10379,14 +10398,14 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10379
10398
|
}
|
|
10380
10399
|
}
|
|
10381
10400
|
}, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
|
|
10382
|
-
return "<li class=\"email-info\" data-v-
|
|
10383
|
-
}))]) : _vm._e()], 2)] : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + " class=\"email-date\" data-v-
|
|
10401
|
+
return "<li class=\"email-info\" data-v-4c7ad756><span data-v-4c7ad756>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
|
|
10402
|
+
}))]) : _vm._e()], 2)] : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + " class=\"email-date\" data-v-4c7ad756>", "</span>", [_c('fa-icon', {
|
|
10384
10403
|
attrs: {
|
|
10385
10404
|
"icon": ['fas', 'calendar']
|
|
10386
10405
|
}
|
|
10387
10406
|
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.formattedDate) + "\n "))], 2), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
|
|
10388
10407
|
active: _vm.actionsOpen
|
|
10389
|
-
}]) + " data-v-
|
|
10408
|
+
}]) + " data-v-4c7ad756><span data-v-4c7ad756></span> <span data-v-4c7ad756></span> <span data-v-4c7ad756></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
10390
10409
|
directives: [{
|
|
10391
10410
|
name: "clickaway",
|
|
10392
10411
|
rawName: "v-clickaway",
|
|
@@ -10399,7 +10418,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10399
10418
|
$event.stopPropagation();
|
|
10400
10419
|
}
|
|
10401
10420
|
}
|
|
10402
|
-
}, [_vm._ssrNode("<li class=\"email-action\" data-v-
|
|
10421
|
+
}, [_vm._ssrNode("<li class=\"email-action\" data-v-4c7ad756>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
|
|
10403
10422
|
attrs: {
|
|
10404
10423
|
"name": "show-y-top"
|
|
10405
10424
|
}
|
|
@@ -10411,7 +10430,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
10411
10430
|
staticClass: "email-html"
|
|
10412
10431
|
}), _vm._v(" "), _vm.openMessage ? _c('span', {
|
|
10413
10432
|
staticClass: "email-raw"
|
|
10414
|
-
}, [_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-
|
|
10433
|
+
}, [_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-4c7ad756>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
|
|
10415
10434
|
return _c('EmailFile', {
|
|
10416
10435
|
key: index,
|
|
10417
10436
|
attrs: {
|
|
@@ -10426,20 +10445,20 @@ var __vue_staticRenderFns__ = [];
|
|
|
10426
10445
|
/* style */
|
|
10427
10446
|
var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
|
|
10428
10447
|
if (!inject) return;
|
|
10429
|
-
inject("data-v-
|
|
10430
|
-
source: ".show-y-top-enter-active[data-v-
|
|
10448
|
+
inject("data-v-4c7ad756_0", {
|
|
10449
|
+
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%)}",
|
|
10431
10450
|
map: undefined,
|
|
10432
10451
|
media: undefined
|
|
10433
|
-
}), inject("data-v-
|
|
10434
|
-
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:
|
|
10452
|
+
}), inject("data-v-4c7ad756_1", {
|
|
10453
|
+
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}",
|
|
10435
10454
|
map: undefined,
|
|
10436
10455
|
media: undefined
|
|
10437
10456
|
});
|
|
10438
10457
|
};
|
|
10439
10458
|
/* scoped */
|
|
10440
|
-
var __vue_scope_id__ = "data-v-
|
|
10459
|
+
var __vue_scope_id__ = "data-v-4c7ad756";
|
|
10441
10460
|
/* module identifier */
|
|
10442
|
-
var __vue_module_identifier__ = "data-v-
|
|
10461
|
+
var __vue_module_identifier__ = "data-v-4c7ad756";
|
|
10443
10462
|
/* functional template */
|
|
10444
10463
|
var __vue_is_functional_template__ = false;
|
|
10445
10464
|
/* style inject shadow dom */
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="['email-item box-shadow', isOpen ? isOpenClass : isClosedClass]">
|
|
3
|
+
<p class="email-subject" :title="htmlEntityToEmoji(replaceUnicodeWithEmoji(assunto)) || '(Sem assunto)'"
|
|
4
|
+
@click="toggleIsOpen">
|
|
5
|
+
{{ htmlEntityToEmoji(replaceUnicodeWithEmoji(tratarTextoLongo(assunto, 30))) || '(Sem assunto)' }}
|
|
6
|
+
</p>
|
|
3
7
|
<div class="email-header" @click="toggleIsOpen">
|
|
4
8
|
<div class="email-header-content">
|
|
5
9
|
<div class="email-header-infos">
|
|
6
|
-
<p class="email-subject" :title="htmlEntityToEmoji(replaceUnicodeWithEmoji(assunto)) || '(Sem assunto)'">
|
|
7
|
-
{{ htmlEntityToEmoji(replaceUnicodeWithEmoji(tratarTextoLongo(assunto, 30))) || '(Sem assunto)' }}
|
|
8
|
-
</p>
|
|
9
10
|
<template v-if="from && from.length">
|
|
10
11
|
<div class="email-to-from-container">
|
|
11
12
|
<EmailFrom v-for="(sender, index) in from" :key="`from-${index}`"
|
|
@@ -192,8 +193,8 @@ export default {
|
|
|
192
193
|
const emailParent = this.$refs.emailIframeParent
|
|
193
194
|
if (iframe && emailParent) {
|
|
194
195
|
const doc = iframe.contentDocument || iframe.contentWindow.document;
|
|
195
|
-
iframe.style.height = `${doc.documentElement.offsetHeight}px`;
|
|
196
|
-
emailParent.style.minHeight = `${doc.documentElement.offsetHeight
|
|
196
|
+
iframe.style.height = `${doc.documentElement.offsetHeight < 1000 ? doc.documentElement.offsetHeight : 1000}px`;
|
|
197
|
+
emailParent.style.minHeight = `${doc.documentElement.offsetHeight < 1000 ? doc.documentElement.offsetHeight : 1000}px`
|
|
197
198
|
}
|
|
198
199
|
});
|
|
199
200
|
},
|
|
@@ -297,6 +298,7 @@ export default {
|
|
|
297
298
|
margin: 0 0 5px 0;
|
|
298
299
|
font-weight: bold;
|
|
299
300
|
font-size: .95rem;
|
|
301
|
+
cursor: pointer;
|
|
300
302
|
}
|
|
301
303
|
|
|
302
304
|
.email-date {
|
|
@@ -315,7 +317,7 @@ export default {
|
|
|
315
317
|
display: flex;
|
|
316
318
|
flex-direction: column;
|
|
317
319
|
align-items: center;
|
|
318
|
-
justify-content:
|
|
320
|
+
justify-content: flex-start;
|
|
319
321
|
width: 100%;
|
|
320
322
|
padding: 15px;
|
|
321
323
|
background-color: #FFF;
|
|
@@ -390,7 +392,7 @@ export default {
|
|
|
390
392
|
max-width: 100%;
|
|
391
393
|
padding: 10px;
|
|
392
394
|
border: none;
|
|
393
|
-
max-height:
|
|
395
|
+
max-height: 1000px;
|
|
394
396
|
overflow: auto;
|
|
395
397
|
}
|
|
396
398
|
|