vue-intergrall-plugins 1.0.31 → 1.0.33
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/README.md +208 -173
- package/dist/vue-intergrall-plugins.esm.js +225 -221
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +202 -220
- package/package.json +2 -3
- package/src/lib-components/Chat/BtnEmojis.vue +9 -10
- package/src/lib-components/Chat/BtnFiles.vue +41 -103
- package/src/lib-components/Chat/ExpandTextarea.vue +26 -37
- package/src/lib-components/Chat/TextFooter.vue +5 -3
- package/src/lib-components/Email/EmailFrom.vue +4 -13
- package/src/lib-components/Email/EmailItem.vue +197 -74
- package/src/lib-components/Email/EmailTo.vue +0 -12
- package/src/lib-components/Messages/ChatMessages.vue +8 -6
- package/src/lib-components/Messages/InteratividadePopup.vue +10 -23
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import vue from 'vue';
|
|
2
|
-
|
|
3
1
|
var top = 'top';
|
|
4
2
|
var bottom = 'bottom';
|
|
5
3
|
var right = 'right';
|
|
@@ -2617,77 +2615,20 @@ const __vue_component__$J = /*#__PURE__*/normalizeComponent({
|
|
|
2617
2615
|
}, __vue_inject_styles__$B, __vue_script__$B, __vue_scope_id__$B, __vue_is_functional_template__$B, __vue_module_identifier__$B, false, createInjector, undefined, undefined);
|
|
2618
2616
|
var TemplateSingle = __vue_component__$J;
|
|
2619
2617
|
|
|
2620
|
-
var
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
var HANDLER = '_vue_clickaway_handler';
|
|
2635
|
-
|
|
2636
|
-
function bind(el, binding, vnode) {
|
|
2637
|
-
unbind(el);
|
|
2638
|
-
|
|
2639
|
-
var vm = vnode.context;
|
|
2640
|
-
|
|
2641
|
-
var callback = binding.value;
|
|
2642
|
-
if (typeof callback !== 'function') {
|
|
2643
|
-
return;
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
|
-
// @NOTE: Vue binds directives in microtasks, while UI events are dispatched
|
|
2647
|
-
// in macrotasks. This causes the listener to be set up before
|
|
2648
|
-
// the "origin" click event (the event that lead to the binding of
|
|
2649
|
-
// the directive) arrives at the document root. To work around that,
|
|
2650
|
-
// we ignore events until the end of the "initial" macrotask.
|
|
2651
|
-
// @REFERENCE: https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/
|
|
2652
|
-
// @REFERENCE: https://github.com/simplesmiler/vue-clickaway/issues/8
|
|
2653
|
-
var initialMacrotaskEnded = false;
|
|
2654
|
-
setTimeout(function() {
|
|
2655
|
-
initialMacrotaskEnded = true;
|
|
2656
|
-
}, 0);
|
|
2657
|
-
|
|
2658
|
-
el[HANDLER] = function(ev) {
|
|
2659
|
-
// @NOTE: this test used to be just `el.containts`, but working with path is better,
|
|
2660
|
-
// because it tests whether the element was there at the time of
|
|
2661
|
-
// the click, not whether it is there now, that the event has arrived
|
|
2662
|
-
// to the top.
|
|
2663
|
-
// @NOTE: `.path` is non-standard, the standard way is `.composedPath()`
|
|
2664
|
-
var path = ev.path || (ev.composedPath ? ev.composedPath() : undefined);
|
|
2665
|
-
if (initialMacrotaskEnded && (path ? path.indexOf(el) < 0 : !el.contains(ev.target))) {
|
|
2666
|
-
return callback.call(vm, ev);
|
|
2667
|
-
}
|
|
2668
|
-
};
|
|
2669
|
-
|
|
2670
|
-
document.documentElement.addEventListener('click', el[HANDLER], false);
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
-
function unbind(el) {
|
|
2674
|
-
document.documentElement.removeEventListener('click', el[HANDLER], false);
|
|
2675
|
-
delete el[HANDLER];
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
var directive = {
|
|
2679
|
-
bind: bind,
|
|
2680
|
-
update: function(el, binding) {
|
|
2681
|
-
if (binding.value === binding.oldValue) return;
|
|
2682
|
-
bind(el, binding);
|
|
2683
|
-
},
|
|
2684
|
-
unbind: unbind,
|
|
2685
|
-
};
|
|
2686
|
-
|
|
2687
|
-
var mixin = {
|
|
2688
|
-
directives: { onClickaway: directive },
|
|
2689
|
-
};
|
|
2690
|
-
var mixin_1 = mixin;
|
|
2618
|
+
var Clickaway = {
|
|
2619
|
+
bind(el, binding, vnode) {
|
|
2620
|
+
el.clickAwayHandler = event => {
|
|
2621
|
+
if (!(el === event.target || el.contains(event.target))) binding.value(event);
|
|
2622
|
+
};
|
|
2623
|
+
setTimeout(() => {
|
|
2624
|
+
document.addEventListener('click', el.clickAwayHandler);
|
|
2625
|
+
}, 0);
|
|
2626
|
+
},
|
|
2627
|
+
unbind(el) {
|
|
2628
|
+
document.removeEventListener('click', el.clickAwayHandler);
|
|
2629
|
+
el.clickAwayHandler = null;
|
|
2630
|
+
}
|
|
2631
|
+
};
|
|
2691
2632
|
|
|
2692
2633
|
const setResizeListeners = ($el, inputClass, parentClass) => {
|
|
2693
2634
|
const inputTargets = $el.querySelectorAll(inputClass);
|
|
@@ -3403,7 +3344,9 @@ var script$w = {
|
|
|
3403
3344
|
components: {
|
|
3404
3345
|
Picker
|
|
3405
3346
|
},
|
|
3406
|
-
|
|
3347
|
+
directives: {
|
|
3348
|
+
clickaway: Clickaway
|
|
3349
|
+
},
|
|
3407
3350
|
props: {
|
|
3408
3351
|
emojiId: {
|
|
3409
3352
|
type: String,
|
|
@@ -3497,8 +3440,8 @@ var __vue_render__$w = function () {
|
|
|
3497
3440
|
var _c = _vm._self._c || _h;
|
|
3498
3441
|
return _c('div', {
|
|
3499
3442
|
directives: [{
|
|
3500
|
-
name: "
|
|
3501
|
-
rawName: "v-
|
|
3443
|
+
name: "clickaway",
|
|
3444
|
+
rawName: "v-clickaway",
|
|
3502
3445
|
value: _vm.away,
|
|
3503
3446
|
expression: "away"
|
|
3504
3447
|
}],
|
|
@@ -3535,7 +3478,7 @@ var __vue_staticRenderFns__$w = [];
|
|
|
3535
3478
|
/* style */
|
|
3536
3479
|
const __vue_inject_styles__$w = function (inject) {
|
|
3537
3480
|
if (!inject) return;
|
|
3538
|
-
inject("data-v-
|
|
3481
|
+
inject("data-v-6e4d9dd7_0", {
|
|
3539
3482
|
source: ".emoji-text-container{position:relative}.emoji-text-container .emoji-text-btn{font-size:19.2px;cursor:pointer}",
|
|
3540
3483
|
map: undefined,
|
|
3541
3484
|
media: undefined
|
|
@@ -4022,7 +3965,9 @@ var script$s = {
|
|
|
4022
3965
|
SingleFilePreview,
|
|
4023
3966
|
MultipleFilePreview
|
|
4024
3967
|
},
|
|
4025
|
-
|
|
3968
|
+
directives: {
|
|
3969
|
+
clickaway: Clickaway
|
|
3970
|
+
},
|
|
4026
3971
|
props: {
|
|
4027
3972
|
textId: {
|
|
4028
3973
|
type: String,
|
|
@@ -4492,8 +4437,8 @@ var __vue_render__$s = function () {
|
|
|
4492
4437
|
value: _vm.showFilePreview,
|
|
4493
4438
|
expression: "showFilePreview"
|
|
4494
4439
|
}, {
|
|
4495
|
-
name: "
|
|
4496
|
-
rawName: "v-
|
|
4440
|
+
name: "clickaway",
|
|
4441
|
+
rawName: "v-clickaway",
|
|
4497
4442
|
value: _vm.away,
|
|
4498
4443
|
expression: "away"
|
|
4499
4444
|
}],
|
|
@@ -4539,7 +4484,7 @@ var __vue_staticRenderFns__$s = [];
|
|
|
4539
4484
|
/* style */
|
|
4540
4485
|
const __vue_inject_styles__$s = function (inject) {
|
|
4541
4486
|
if (!inject) return;
|
|
4542
|
-
inject("data-v-
|
|
4487
|
+
inject("data-v-87cdc664_0", {
|
|
4543
4488
|
source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:unset;transform:translate(17.5px,-15px);background-color:#888;z-index:1;font-size:8px;width:15px;height:15px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .3s;color:#fff;font-weight:900}.files-counter:hover{opacity:1}.files-counter-2{transform:translate(-15px,28px);opacity:.9;position:absolute;display:flex;justify-content:center;align-items:center;color:#888;font-size:12.8px}.files-counter-2 svg{margin-left:5px}.files-counter-2:hover{opacity:1;text-decoration:underline}",
|
|
4544
4489
|
map: undefined,
|
|
4545
4490
|
media: undefined
|
|
@@ -5266,7 +5211,9 @@ var script$m = {
|
|
|
5266
5211
|
BtnScreenShare,
|
|
5267
5212
|
BtnDownloadAllFiles
|
|
5268
5213
|
},
|
|
5269
|
-
|
|
5214
|
+
directives: {
|
|
5215
|
+
clickaway: Clickaway
|
|
5216
|
+
},
|
|
5270
5217
|
props: {
|
|
5271
5218
|
buttons: {
|
|
5272
5219
|
type: Object,
|
|
@@ -5735,8 +5682,8 @@ var __vue_render__$m = function () {
|
|
|
5735
5682
|
var _c = _vm._self._c || _h;
|
|
5736
5683
|
return _vm.textId ? _c('div', {
|
|
5737
5684
|
directives: [{
|
|
5738
|
-
name: "
|
|
5739
|
-
rawName: "v-
|
|
5685
|
+
name: "clickaway",
|
|
5686
|
+
rawName: "v-clickaway",
|
|
5740
5687
|
value: _vm.away,
|
|
5741
5688
|
expression: "away"
|
|
5742
5689
|
}],
|
|
@@ -6029,7 +5976,7 @@ var __vue_staticRenderFns__$m = [];
|
|
|
6029
5976
|
/* style */
|
|
6030
5977
|
const __vue_inject_styles__$m = function (inject) {
|
|
6031
5978
|
if (!inject) return;
|
|
6032
|
-
inject("data-v-
|
|
5979
|
+
inject("data-v-bf33e062_0", {
|
|
6033
5980
|
source: ".text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:14px;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:14px;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:12px}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:16px;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:9.2px;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-30px;right:35px;background-color:#fafafa}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:16px;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:16px}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:16px;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349;margin-left:5px}.text-footer-container .text-footer-files-container .files-btn.both{font-size:15.2px;background-color:#5555ec;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(1){transform:translateX(5px)}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(2){transform:translateX(-5px)}.text-footer-container .text-footer-preview-container{width:100%;cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px;min-width:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:12.8px;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:12.8px;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:13.6px!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
|
|
6034
5981
|
map: undefined,
|
|
6035
5982
|
media: undefined
|
|
@@ -6504,7 +6451,9 @@ var script$j = {
|
|
|
6504
6451
|
BtnEmojis,
|
|
6505
6452
|
BtnFiles
|
|
6506
6453
|
},
|
|
6507
|
-
|
|
6454
|
+
directives: {
|
|
6455
|
+
clickaway: Clickaway
|
|
6456
|
+
},
|
|
6508
6457
|
props: {
|
|
6509
6458
|
identifier: {
|
|
6510
6459
|
type: String,
|
|
@@ -6768,8 +6717,8 @@ var __vue_render__$j = function () {
|
|
|
6768
6717
|
var _c = _vm._self._c || _h;
|
|
6769
6718
|
return _c('div', {
|
|
6770
6719
|
directives: [{
|
|
6771
|
-
name: "
|
|
6772
|
-
rawName: "v-
|
|
6720
|
+
name: "clickaway",
|
|
6721
|
+
rawName: "v-clickaway",
|
|
6773
6722
|
value: _vm.away,
|
|
6774
6723
|
expression: "away"
|
|
6775
6724
|
}],
|
|
@@ -6861,7 +6810,7 @@ var __vue_staticRenderFns__$j = [];
|
|
|
6861
6810
|
/* style */
|
|
6862
6811
|
const __vue_inject_styles__$j = function (inject) {
|
|
6863
6812
|
if (!inject) return;
|
|
6864
|
-
inject("data-v-
|
|
6813
|
+
inject("data-v-53d5f793_0", {
|
|
6865
6814
|
source: ".sc-icone-fechar.sc-icone-fechar--externo{top:-10px;right:-10px}.sc-icone-fechar.sc-icone-fechar--interno{top:10px;right:10px}.expand-textarea{position:relative;width:90%;height:90%;z-index:1}.expand-textarea-content{overflow-x:hidden;overflow-y:auto;background-color:#fff;width:100%;height:100%;display:flex;flex-direction:column}.expand-textarea-title{padding:2.5px 8px;min-height:38px;display:flex;align-items:center;width:100%;font-size:20.8px;background-color:#222;color:#fff}.expand-textarea-content textarea{padding:10px;flex:1;width:100%;border:unset;resize:none;outline:0;overflow-x:hidden}.expand-textarea-content textarea:active,.expand-textarea-content textarea:hover{outline:0}.expand-textarea-footer{display:flex;justify-content:flex-end;align-items:center;padding:10px;background-color:#f7f7f7;position:relative}.expand-textarea-footer .text-footer-preview-container{position:absolute;top:-200px;right:145px;height:200px;background:#f7f7f7}.expand-textarea-footer .text-footer-actions--btn{width:36px;height:36px;border-radius:50%;background-color:rgba(255,255,255,0);color:#333;padding:2.5px;margin:0 15px 0 10px;display:flex;justify-content:center;align-items:center;font-size:20.8px;cursor:pointer;opacity:.9;transition:all .3s}.expand-textarea-footer .text-footer-actions--btn:hover{opacity:1;background-color:rgba(30,30,30,.1)}.expand-textarea-button{width:125px;height:30px;display:flex;justify-content:center;align-items:center;transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -2px rgba(0,0,0,.2);opacity:.9;border-radius:5px;padding:5px 10px;border-radius:2.5px;position:relative}.expand-textarea-button.green{background-color:#2a963a;color:#fff;margin-right:10px}.expand-textarea-button.red{background-color:#e74c3c;color:#fff}.expand-textarea-button:hover{opacity:1}.expand-textarea-button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.expand-textarea-button.carregando{background-color:#777}",
|
|
6866
6815
|
map: undefined,
|
|
6867
6816
|
media: undefined
|
|
@@ -6893,6 +6842,17 @@ const textoLongo = {
|
|
|
6893
6842
|
}
|
|
6894
6843
|
return `${textoLongo}`;
|
|
6895
6844
|
},
|
|
6845
|
+
replaceUnicodeWithEmoji(text) {
|
|
6846
|
+
if (!text || typeof text !== 'string') return '';
|
|
6847
|
+
return text.replace(/&?#(\d+);/g, (_, dec) => String.fromCodePoint(parseInt(dec, 10)));
|
|
6848
|
+
},
|
|
6849
|
+
htmlEntityToEmoji(message) {
|
|
6850
|
+
return message.replace(/&#x([\da-fA-F]+);/g, (match, p1) => {
|
|
6851
|
+
const codePoint = parseInt(p1, 16);
|
|
6852
|
+
const emoji = String.fromCodePoint(codePoint);
|
|
6853
|
+
return emoji;
|
|
6854
|
+
});
|
|
6855
|
+
},
|
|
6896
6856
|
formataDataHora(dataHora, origem, cortarSegundos) {
|
|
6897
6857
|
try {
|
|
6898
6858
|
if (!dataHora) return "";
|
|
@@ -6919,8 +6879,8 @@ const textoLongo = {
|
|
|
6919
6879
|
},
|
|
6920
6880
|
formataDateHoraDateFns(dataHora, dataServer, dicionario) {
|
|
6921
6881
|
if (!dataHora) return "";
|
|
6922
|
-
|
|
6923
|
-
if (dataHora
|
|
6882
|
+
const invalids = ['1111-11-11 00:00:00', '0000-00-00 00:00:00', '0000-00-00', '1111-11-11', '00:00:00'];
|
|
6883
|
+
if (invalids.includes(dataHora)) return '';
|
|
6924
6884
|
const daysOfWeek = ['dom.', 'seg.', 'ter.', 'qua.', 'qui.', 'sex.', dicionario.sabado_abrev];
|
|
6925
6885
|
const monthsOfYear = ['jan.', 'fev.', 'mar.', 'abr.', 'mai.', 'jun.', 'jul.', 'ago.', 'set.', 'out.', 'nov.', 'dez.'];
|
|
6926
6886
|
const date = new Date(dataHora);
|
|
@@ -6941,7 +6901,6 @@ const textoLongo = {
|
|
|
6941
6901
|
return formattedDateString;
|
|
6942
6902
|
};
|
|
6943
6903
|
const now = dataServer ? new Date(getRawData()) : new Date();
|
|
6944
|
-
if (!dataServer) console.warn('dataServer nao informado para verificar a data corretamente segundo o servidor, utilizando new Date padrao');
|
|
6945
6904
|
const timeDifference = Math.abs(now - date);
|
|
6946
6905
|
let distance;
|
|
6947
6906
|
const seconds = Math.floor(timeDifference / 1000);
|
|
@@ -6961,7 +6920,7 @@ const textoLongo = {
|
|
|
6961
6920
|
} else if (monthsDifference < 12) {
|
|
6962
6921
|
distance = `${dicionario.ha_message} ${monthsDifference} ${monthsDifference > 1 ? 'meses' : dicionario.lower_text_month}`;
|
|
6963
6922
|
} else {
|
|
6964
|
-
distance = `${dicionario.ha_message} ${yearsDifference} ${yearsDifference === 1 ? 'ano' : 'anos'}`;
|
|
6923
|
+
distance = `${date.getFullYear()} ${dicionario.ha_message} ${yearsDifference} ${yearsDifference === 1 ? 'ano' : 'anos'}`;
|
|
6965
6924
|
}
|
|
6966
6925
|
return `${formattedDate} (${distance})`;
|
|
6967
6926
|
}
|
|
@@ -7841,7 +7800,9 @@ var __vue_component__$m = __vue_component__$l;
|
|
|
7841
7800
|
|
|
7842
7801
|
//
|
|
7843
7802
|
var script$f = {
|
|
7844
|
-
|
|
7803
|
+
directives: {
|
|
7804
|
+
clickaway: Clickaway
|
|
7805
|
+
},
|
|
7845
7806
|
props: {
|
|
7846
7807
|
lista: {
|
|
7847
7808
|
type: [Array, Object],
|
|
@@ -7869,8 +7830,8 @@ var __vue_render__$f = function () {
|
|
|
7869
7830
|
var _c = _vm._self._c || _h;
|
|
7870
7831
|
return _c('div', {
|
|
7871
7832
|
directives: [{
|
|
7872
|
-
name: "
|
|
7873
|
-
rawName: "v-
|
|
7833
|
+
name: "clickaway",
|
|
7834
|
+
rawName: "v-clickaway",
|
|
7874
7835
|
value: _vm.away,
|
|
7875
7836
|
expression: "away"
|
|
7876
7837
|
}],
|
|
@@ -7915,7 +7876,7 @@ var __vue_staticRenderFns__$f = [];
|
|
|
7915
7876
|
/* style */
|
|
7916
7877
|
const __vue_inject_styles__$f = function (inject) {
|
|
7917
7878
|
if (!inject) return;
|
|
7918
|
-
inject("data-v-
|
|
7879
|
+
inject("data-v-327f52b4_0", {
|
|
7919
7880
|
source: ".box-shadow{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.interatividade-popup{position:absolute;top:15px;right:0;width:250px;height:auto;max-height:300px;overflow-y:auto;overflow-x:hidden;background-color:#fff;border-radius:15px;color:#333;font-size:14px}.interatividade-popup-titulo h1{padding:4px 10px;background-color:#333;color:#fff;font-size:1.2em;display:flex;justify-content:space-between;align-items:center}.interatividade-popup-titulo h1 svg{color:#e74c3c;cursor:pointer;font-size:.9em}.interatividade-popup-item{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-popup-item-desc{font-size:.9em;color:#767676}",
|
|
7920
7881
|
map: undefined,
|
|
7921
7882
|
media: undefined
|
|
@@ -9481,7 +9442,9 @@ var script$7 = {
|
|
|
9481
9442
|
created() {
|
|
9482
9443
|
if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
|
|
9483
9444
|
},
|
|
9484
|
-
|
|
9445
|
+
directives: {
|
|
9446
|
+
clickaway: Clickaway
|
|
9447
|
+
},
|
|
9485
9448
|
data() {
|
|
9486
9449
|
return {
|
|
9487
9450
|
strTooltipAux: "",
|
|
@@ -10161,8 +10124,8 @@ var __vue_render__$7 = function () {
|
|
|
10161
10124
|
})], 1);
|
|
10162
10125
|
}) : _vm._e()], 2) : _vm._e(), _vm._v(" "), _vm.isEmojisOpen ? _c('div', {
|
|
10163
10126
|
directives: [{
|
|
10164
|
-
name: "
|
|
10165
|
-
rawName: "v-
|
|
10127
|
+
name: "clickaway",
|
|
10128
|
+
rawName: "v-clickaway",
|
|
10166
10129
|
value: _vm.closeEmojis,
|
|
10167
10130
|
expression: "closeEmojis"
|
|
10168
10131
|
}],
|
|
@@ -10186,8 +10149,8 @@ var __vue_render__$7 = function () {
|
|
|
10186
10149
|
}
|
|
10187
10150
|
}, [_c('ul', {
|
|
10188
10151
|
directives: [{
|
|
10189
|
-
name: "
|
|
10190
|
-
rawName: "v-
|
|
10152
|
+
name: "clickaway",
|
|
10153
|
+
rawName: "v-clickaway",
|
|
10191
10154
|
value: _vm.closeMenu,
|
|
10192
10155
|
expression: "closeMenu"
|
|
10193
10156
|
}],
|
|
@@ -10226,7 +10189,7 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
10226
10189
|
/* style */
|
|
10227
10190
|
const __vue_inject_styles__$7 = function (inject) {
|
|
10228
10191
|
if (!inject) return;
|
|
10229
|
-
inject("data-v-
|
|
10192
|
+
inject("data-v-5dc8f4c6_0", {
|
|
10230
10193
|
source: ":root{--message-color:#373737;--text-color:#fff;--files-bg:rgba(255, 255, 255, 0.1);--files-bg-hover:rgba(255, 255, 255, 0.1);--light:80;--threshold:60}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem-reply{padding:5px 10px;font-size:12px;color:#666;transition:background-color 150ms ease-in-out;border-radius:5px;margin:5px 0;overflow:hidden;max-width:100%}.mensagem-reply p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-reply-principal{border-left:3px solid transparent;background-color:rgba(100,100,100,.1)}.message-reply-principal:hover{background-color:rgba(100,100,100,.2)}.message-reply-outros{background-color:#f5f5f5;border-left:3px solid var(--message-color)}.message-reply-outros:hover{background-color:#ebebeb}.mensagem-reply-vazia{display:flex;align-items:center}.mensagem-reply-vazia svg{margin-right:5px;color:#ba181b}.mensagem{padding:20px 7px 14px 7px;border-radius:5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:12px;word-break:break-word;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mensagem.max-w-60{max-width:60%}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem:hover .menu-primario{visibility:visible;opacity:1}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:9.6px;color:#67a332;width:14.4px;height:14.4px;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:11.2px}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:6.4px;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:11.2px;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:9.6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.menu-primario{visibility:hidden;opacity:0;transition:opacity 150ms ease-in-out;position:absolute;font-size:11.2px;top:3px;display:flex;gap:5px;padding:2px 4px}.menu-primario.principal{left:4px;color:var(--text-color);background-color:var(--message-color)}.menu-primario.outros{right:4px;color:var(--text-color);background-color:#fff}.menu-primario.outros>span:nth-child(1){order:10}.menu-mensagem{cursor:pointer;padding:1px}.menu-flutuante{background-color:#fff;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);border-radius:10px;position:absolute;top:20px;width:120px;min-height:50px;height:50px;max-height:50px;overflow-x:hidden;overflow-y:auto;margin:0;padding:0;display:flex;flex-direction:column;z-index:1}.menu-flutuante.principal{left:3px}.menu-flutuante.outros{right:3px}.menu-flutuante li{transition:background-color .3s ease-in-out;width:100%;cursor:pointer;padding:5px 10px;display:flex;align-items:center}.menu-flutuante li:hover{background-color:#e9e9e9}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:var(--text-color)}.mensagem__principal>.mensagem .horario-envio{color:var(--text-color)}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:var(--text-color)}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.85em}.info-mapa li.url{font-size:.85em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.emoji-message-container{position:absolute;top:0;z-index:1;width:300px;height:250px}.emoji-message-container .sm-emoji-picker{width:300px;height:250px}.emoji-message-container .sm-emoji-picker .sm-emoji-header{overflow-x:auto;overflow-y:hidden}.reaction{position:absolute;bottom:0;border-radius:50%;display:flex;justify-content:center;align-items:center;background-color:rgba(100,100,100,.4);padding:5px;font-size:1.3em;min-width:1.8em;min-height:1.8em;max-width:1.8em;max-height:1.8em}.reaction>span{display:block;transform:translateY(-1px)}.mensagem__outros .reaction{right:-30px}.mensagem__principal .reaction{left:-30px}",
|
|
10231
10194
|
map: undefined,
|
|
10232
10195
|
media: undefined
|
|
@@ -10764,8 +10727,6 @@ var EmailFile = __vue_component__$4;
|
|
|
10764
10727
|
//
|
|
10765
10728
|
//
|
|
10766
10729
|
//
|
|
10767
|
-
//
|
|
10768
|
-
//
|
|
10769
10730
|
|
|
10770
10731
|
var script$2 = {
|
|
10771
10732
|
props: {
|
|
@@ -10783,16 +10744,6 @@ var script$2 = {
|
|
|
10783
10744
|
type: Boolean,
|
|
10784
10745
|
required: false,
|
|
10785
10746
|
default: true
|
|
10786
|
-
},
|
|
10787
|
-
isLastIndex: {
|
|
10788
|
-
type: Boolean,
|
|
10789
|
-
required: false,
|
|
10790
|
-
default: false
|
|
10791
|
-
}
|
|
10792
|
-
},
|
|
10793
|
-
computed: {
|
|
10794
|
-
filteredName() {
|
|
10795
|
-
return !this.isLastIndex ? `${this.currentName}, ` : this.currentName;
|
|
10796
10747
|
}
|
|
10797
10748
|
}
|
|
10798
10749
|
};
|
|
@@ -10830,14 +10781,14 @@ var __vue_staticRenderFns__$2 = [];
|
|
|
10830
10781
|
/* style */
|
|
10831
10782
|
const __vue_inject_styles__$2 = function (inject) {
|
|
10832
10783
|
if (!inject) return;
|
|
10833
|
-
inject("data-v-
|
|
10834
|
-
source: ".email-to[data-v-
|
|
10784
|
+
inject("data-v-9a3de606_0", {
|
|
10785
|
+
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}",
|
|
10835
10786
|
map: undefined,
|
|
10836
10787
|
media: undefined
|
|
10837
10788
|
});
|
|
10838
10789
|
};
|
|
10839
10790
|
/* scoped */
|
|
10840
|
-
const __vue_scope_id__$2 = "data-v-
|
|
10791
|
+
const __vue_scope_id__$2 = "data-v-9a3de606";
|
|
10841
10792
|
/* module identifier */
|
|
10842
10793
|
const __vue_module_identifier__$2 = undefined;
|
|
10843
10794
|
/* functional template */
|
|
@@ -10891,6 +10842,7 @@ var EmailTo = __vue_component__$3;
|
|
|
10891
10842
|
//
|
|
10892
10843
|
//
|
|
10893
10844
|
//
|
|
10845
|
+
//
|
|
10894
10846
|
|
|
10895
10847
|
var script$1 = {
|
|
10896
10848
|
props: {
|
|
@@ -10908,16 +10860,6 @@ var script$1 = {
|
|
|
10908
10860
|
type: Boolean,
|
|
10909
10861
|
required: false,
|
|
10910
10862
|
default: true
|
|
10911
|
-
},
|
|
10912
|
-
isLastIndex: {
|
|
10913
|
-
type: Boolean,
|
|
10914
|
-
required: false,
|
|
10915
|
-
default: false
|
|
10916
|
-
}
|
|
10917
|
-
},
|
|
10918
|
-
computed: {
|
|
10919
|
-
filteredName() {
|
|
10920
|
-
return !this.isLastIndex ? `${this.currentName}, ` : this.currentName;
|
|
10921
10863
|
}
|
|
10922
10864
|
}
|
|
10923
10865
|
};
|
|
@@ -10948,7 +10890,7 @@ var __vue_render__$1 = function () {
|
|
|
10948
10890
|
"title": _vm.mail
|
|
10949
10891
|
},
|
|
10950
10892
|
domProps: {
|
|
10951
|
-
"textContent": _vm._s("
|
|
10893
|
+
"textContent": _vm._s("" + _vm.mail)
|
|
10952
10894
|
}
|
|
10953
10895
|
})]) : _vm._e()]);
|
|
10954
10896
|
};
|
|
@@ -10957,14 +10899,14 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
10957
10899
|
/* style */
|
|
10958
10900
|
const __vue_inject_styles__$1 = function (inject) {
|
|
10959
10901
|
if (!inject) return;
|
|
10960
|
-
inject("data-v-
|
|
10961
|
-
source: ".email-from[data-v-
|
|
10902
|
+
inject("data-v-ab361444_0", {
|
|
10903
|
+
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}",
|
|
10962
10904
|
map: undefined,
|
|
10963
10905
|
media: undefined
|
|
10964
10906
|
});
|
|
10965
10907
|
};
|
|
10966
10908
|
/* scoped */
|
|
10967
|
-
const __vue_scope_id__$1 = "data-v-
|
|
10909
|
+
const __vue_scope_id__$1 = "data-v-ab361444";
|
|
10968
10910
|
/* module identifier */
|
|
10969
10911
|
const __vue_module_identifier__$1 = undefined;
|
|
10970
10912
|
/* functional template */
|
|
@@ -10981,7 +10923,10 @@ var EmailFrom = __vue_component__$2;
|
|
|
10981
10923
|
|
|
10982
10924
|
//
|
|
10983
10925
|
var script = {
|
|
10984
|
-
mixins: [textoLongo
|
|
10926
|
+
mixins: [textoLongo],
|
|
10927
|
+
directives: {
|
|
10928
|
+
clickaway: Clickaway
|
|
10929
|
+
},
|
|
10985
10930
|
components: {
|
|
10986
10931
|
EmailFile,
|
|
10987
10932
|
EmailTo,
|
|
@@ -10998,77 +10943,110 @@ var script = {
|
|
|
10998
10943
|
},
|
|
10999
10944
|
from: {
|
|
11000
10945
|
type: Array,
|
|
11001
|
-
required: false,
|
|
11002
10946
|
default: () => []
|
|
11003
10947
|
},
|
|
11004
10948
|
para: {
|
|
11005
10949
|
type: Array,
|
|
11006
|
-
required: false,
|
|
11007
10950
|
default: () => []
|
|
11008
10951
|
},
|
|
11009
10952
|
html: {
|
|
11010
10953
|
type: String,
|
|
11011
|
-
required: false,
|
|
11012
10954
|
default: ""
|
|
11013
10955
|
},
|
|
11014
10956
|
assunto: {
|
|
11015
10957
|
type: String,
|
|
11016
|
-
required: false,
|
|
11017
10958
|
default: ""
|
|
11018
10959
|
},
|
|
11019
10960
|
dataHora: {
|
|
11020
10961
|
type: String,
|
|
11021
|
-
required: false,
|
|
11022
10962
|
default: ""
|
|
11023
10963
|
},
|
|
11024
10964
|
mensagem: {
|
|
11025
10965
|
type: String,
|
|
11026
|
-
required: false,
|
|
11027
10966
|
default: ""
|
|
11028
10967
|
},
|
|
11029
10968
|
anexos: {
|
|
11030
10969
|
type: [Array, String],
|
|
11031
|
-
|
|
11032
|
-
default: () => {
|
|
11033
|
-
return [];
|
|
11034
|
-
}
|
|
10970
|
+
default: () => []
|
|
11035
10971
|
},
|
|
11036
10972
|
iniciarAberto: {
|
|
11037
10973
|
type: Boolean,
|
|
11038
|
-
required: false,
|
|
11039
10974
|
default: false
|
|
11040
10975
|
},
|
|
11041
10976
|
dataServer: {
|
|
11042
10977
|
type: String,
|
|
11043
|
-
required: false,
|
|
11044
10978
|
default: ""
|
|
11045
10979
|
},
|
|
11046
10980
|
isOpenClass: {
|
|
11047
10981
|
type: String,
|
|
11048
|
-
required: false,
|
|
11049
10982
|
default: 'bg-dark-white-2'
|
|
11050
10983
|
},
|
|
11051
10984
|
isClosedClass: {
|
|
11052
10985
|
type: String,
|
|
11053
|
-
required: false,
|
|
11054
10986
|
default: 'bg-light-gray-2'
|
|
11055
10987
|
},
|
|
11056
10988
|
sanitizeOptions: {
|
|
11057
10989
|
type: Object,
|
|
11058
|
-
required: false,
|
|
11059
10990
|
default: null
|
|
11060
10991
|
}
|
|
11061
10992
|
},
|
|
11062
10993
|
data() {
|
|
11063
10994
|
return {
|
|
11064
|
-
isOpen:
|
|
10995
|
+
isOpen: this.iniciarAberto,
|
|
11065
10996
|
openMessage: false,
|
|
11066
|
-
actionsOpen: false
|
|
10997
|
+
actionsOpen: false,
|
|
10998
|
+
showInfos: false
|
|
11067
10999
|
};
|
|
11068
11000
|
},
|
|
11001
|
+
computed: {
|
|
11002
|
+
formattedDate() {
|
|
11003
|
+
return this.formataDateHoraDateFns(this.dataHora, this.dataServer, this.dicionario);
|
|
11004
|
+
},
|
|
11005
|
+
cleanHtml() {
|
|
11006
|
+
const defaultOptions = {
|
|
11007
|
+
allowedTags: ['a', 'b', 'br', 'div', 'i', 'p', 'span', 'strong', 'u', 'ul', 'ol', 'li', 'img', 'link'],
|
|
11008
|
+
allowedAttributes: {
|
|
11009
|
+
'a': ['href'],
|
|
11010
|
+
'img': ['src', 'width', 'height', 'alt'],
|
|
11011
|
+
'link': ['rel', 'href'],
|
|
11012
|
+
'*': ['style']
|
|
11013
|
+
}
|
|
11014
|
+
};
|
|
11015
|
+
return this.$sanitize(this.html, this.sanitizeOptions || defaultOptions);
|
|
11016
|
+
},
|
|
11017
|
+
mailInfos() {
|
|
11018
|
+
const formatAsString = arr => {
|
|
11019
|
+
let str = '';
|
|
11020
|
+
arr.forEach(({
|
|
11021
|
+
name,
|
|
11022
|
+
mail
|
|
11023
|
+
}, index) => {
|
|
11024
|
+
str += `${name} <${mail}>${index !== arr.length - 1 ? ', ' : ''}`;
|
|
11025
|
+
});
|
|
11026
|
+
return str;
|
|
11027
|
+
};
|
|
11028
|
+
return [{
|
|
11029
|
+
label: 'De:',
|
|
11030
|
+
value: formatAsString(this.from)
|
|
11031
|
+
}, {
|
|
11032
|
+
label: 'Para:',
|
|
11033
|
+
value: formatAsString(this.para)
|
|
11034
|
+
}, {
|
|
11035
|
+
label: 'Assunto:',
|
|
11036
|
+
value: this.htmlEntityToEmoji(this.replaceUnicodeWithEmoji(this.assunto)) || '(Sem assunto)'
|
|
11037
|
+
}, {
|
|
11038
|
+
label: 'Data:',
|
|
11039
|
+
value: this.formataDataHora(this.dataHora)
|
|
11040
|
+
}];
|
|
11041
|
+
}
|
|
11042
|
+
},
|
|
11069
11043
|
methods: {
|
|
11044
|
+
toggleShowInfos() {
|
|
11045
|
+
this.showInfos = !this.showInfos;
|
|
11046
|
+
},
|
|
11070
11047
|
toggleIsOpen() {
|
|
11071
11048
|
this.isOpen = !this.isOpen;
|
|
11049
|
+
if (!this.isOpen) this.actionsOpen = false;
|
|
11072
11050
|
},
|
|
11073
11051
|
toggleActions() {
|
|
11074
11052
|
this.actionsOpen = !this.actionsOpen;
|
|
@@ -11076,17 +11054,17 @@ var script = {
|
|
|
11076
11054
|
toggleOpenMessage() {
|
|
11077
11055
|
this.openMessage = !this.openMessage;
|
|
11078
11056
|
},
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
return
|
|
11057
|
+
closeActions() {
|
|
11058
|
+
this.actionsOpen = false;
|
|
11059
|
+
},
|
|
11060
|
+
formattedName(name, index, length, isOpen) {
|
|
11061
|
+
return `${name}${index !== length - 1 && !isOpen ? ', ' : ''}`;
|
|
11062
|
+
},
|
|
11063
|
+
formattedMail(mail, index, length, isOpen) {
|
|
11064
|
+
return `<${mail}${index !== length - 1 && isOpen ? '>, ' : '>'}`;
|
|
11065
|
+
},
|
|
11066
|
+
formattedToName(name, index, length) {
|
|
11067
|
+
return index === 0 ? `Para: ${name || ''}` : name ? `${name}${index !== length - 1 ? ', ' : ''}` : '';
|
|
11090
11068
|
}
|
|
11091
11069
|
}
|
|
11092
11070
|
};
|
|
@@ -11100,14 +11078,11 @@ var __vue_render__ = function () {
|
|
|
11100
11078
|
var _h = _vm.$createElement;
|
|
11101
11079
|
var _c = _vm._self._c || _h;
|
|
11102
11080
|
return _c('div', {
|
|
11103
|
-
|
|
11104
|
-
class: "" + (_vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass)
|
|
11081
|
+
class: ['email-item box-shadow', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass]
|
|
11105
11082
|
}, [_c('div', {
|
|
11106
11083
|
staticClass: "email-header",
|
|
11107
11084
|
on: {
|
|
11108
|
-
"click":
|
|
11109
|
-
return _vm.toggleIsOpen();
|
|
11110
|
-
}
|
|
11085
|
+
"click": _vm.toggleIsOpen
|
|
11111
11086
|
}
|
|
11112
11087
|
}, [_c('div', {
|
|
11113
11088
|
staticClass: "email-header-content"
|
|
@@ -11116,88 +11091,117 @@ var __vue_render__ = function () {
|
|
|
11116
11091
|
}, [_c('p', {
|
|
11117
11092
|
staticClass: "email-subject",
|
|
11118
11093
|
attrs: {
|
|
11119
|
-
"title": _vm.assunto || '(Sem assunto)'
|
|
11120
|
-
},
|
|
11121
|
-
domProps: {
|
|
11122
|
-
"textContent": _vm._s(_vm.tratarTextoLongo(_vm.assunto || '(Sem assunto)', 30))
|
|
11094
|
+
"title": _vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)'
|
|
11123
11095
|
}
|
|
11124
|
-
}), _vm._v(" "), _vm.from && _vm.from.length ?
|
|
11125
|
-
|
|
11126
|
-
|
|
11096
|
+
}, [_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', {
|
|
11097
|
+
staticClass: "email-to-from-container"
|
|
11098
|
+
}, _vm._l(_vm.from, function (sender, index) {
|
|
11127
11099
|
return _c('EmailFrom', {
|
|
11128
11100
|
key: "from-" + index,
|
|
11129
11101
|
attrs: {
|
|
11130
|
-
"currentName": name,
|
|
11131
|
-
"mail": mail,
|
|
11132
|
-
"showMail": _vm.
|
|
11133
|
-
"isLastIndex": index == _vm.from.length - 1
|
|
11102
|
+
"currentName": _vm.formattedName(sender.name, index, _vm.from.length, _vm.isOpen),
|
|
11103
|
+
"mail": _vm.formattedMail(sender.mail, index, _vm.from.length, _vm.isOpen),
|
|
11104
|
+
"showMail": _vm.isOpen
|
|
11134
11105
|
}
|
|
11135
11106
|
});
|
|
11136
|
-
}) : _vm._e(), _vm._v(" "), _vm.para && _vm.para.length && _vm.isOpen ?
|
|
11137
|
-
|
|
11138
|
-
|
|
11107
|
+
}), 1)] : _vm._e(), _vm._v(" "), _vm.para && _vm.para.length && _vm.isOpen ? [_c('div', {
|
|
11108
|
+
staticClass: "email-to-from-container"
|
|
11109
|
+
}, [_vm._l(_vm.para, function (recipient, index) {
|
|
11139
11110
|
return _c('EmailTo', {
|
|
11140
11111
|
key: "to-" + index,
|
|
11141
11112
|
attrs: {
|
|
11142
|
-
"currentName":
|
|
11143
|
-
"mail": mail,
|
|
11144
|
-
"showMail": _vm.para.length
|
|
11145
|
-
"isLastIndex": index == _vm.para.length - 1
|
|
11113
|
+
"currentName": _vm.formattedToName(recipient.name, index, _vm.para.length),
|
|
11114
|
+
"mail": recipient.mail,
|
|
11115
|
+
"showMail": _vm.para.length === 1
|
|
11146
11116
|
}
|
|
11147
11117
|
});
|
|
11148
|
-
})
|
|
11118
|
+
}), _vm._v(" "), _c('div', {
|
|
11119
|
+
staticClass: "email-to-btn",
|
|
11120
|
+
on: {
|
|
11121
|
+
"click": function ($event) {
|
|
11122
|
+
$event.stopPropagation();
|
|
11123
|
+
return _vm.toggleShowInfos();
|
|
11124
|
+
}
|
|
11125
|
+
}
|
|
11126
|
+
}, [_c('fa-icon', {
|
|
11127
|
+
attrs: {
|
|
11128
|
+
"icon": ['fas', 'caret-down']
|
|
11129
|
+
}
|
|
11130
|
+
})], 1), _vm._v(" "), _vm.showInfos ? _c('ul', {
|
|
11131
|
+
directives: [{
|
|
11132
|
+
name: "clickaway",
|
|
11133
|
+
rawName: "v-clickaway",
|
|
11134
|
+
value: function () {
|
|
11135
|
+
return _vm.showInfos = false;
|
|
11136
|
+
},
|
|
11137
|
+
expression: "() => showInfos = false"
|
|
11138
|
+
}],
|
|
11139
|
+
staticClass: "email-to-infos box-shadow",
|
|
11140
|
+
on: {
|
|
11141
|
+
"click": function ($event) {
|
|
11142
|
+
$event.stopPropagation();
|
|
11143
|
+
}
|
|
11144
|
+
}
|
|
11145
|
+
}, _vm._l(_vm.mailInfos, function (info, index) {
|
|
11146
|
+
return _c('li', {
|
|
11147
|
+
key: "info-" + index,
|
|
11148
|
+
staticClass: "email-info"
|
|
11149
|
+
}, [_c('span', {
|
|
11150
|
+
domProps: {
|
|
11151
|
+
"textContent": _vm._s(info.label)
|
|
11152
|
+
}
|
|
11153
|
+
}), _vm._v("\n " + _vm._s(info.value) + "\n ")]);
|
|
11154
|
+
}), 0) : _vm._e()], 2)] : _vm._e()], 2)]), _vm._v(" "), _c('span', {
|
|
11149
11155
|
staticClass: "email-date",
|
|
11150
11156
|
attrs: {
|
|
11151
|
-
"title": _vm.
|
|
11157
|
+
"title": _vm.formattedDate
|
|
11152
11158
|
}
|
|
11153
11159
|
}, [_c('fa-icon', {
|
|
11154
11160
|
attrs: {
|
|
11155
11161
|
"icon": ['fas', 'calendar']
|
|
11156
11162
|
}
|
|
11157
|
-
}), _vm._v("\n " + _vm._s(_vm.
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
}
|
|
11161
|
-
}, [_vm.isOpen ? _c('div', {
|
|
11162
|
-
staticClass: "email-content"
|
|
11163
|
-
}, [_c('span', {
|
|
11164
|
-
class: "email-actions box-shadow" + (_vm.actionsOpen ? ' active' : ''),
|
|
11163
|
+
}), _vm._v("\n " + _vm._s(_vm.formattedDate) + "\n ")], 1), _vm._v(" "), _vm.isOpen ? _c('span', {
|
|
11164
|
+
class: ['email-actions box-shadow', {
|
|
11165
|
+
active: _vm.actionsOpen
|
|
11166
|
+
}],
|
|
11165
11167
|
on: {
|
|
11166
11168
|
"click": function ($event) {
|
|
11167
|
-
|
|
11169
|
+
$event.stopPropagation();
|
|
11170
|
+
return _vm.toggleActions.apply(null, arguments);
|
|
11168
11171
|
}
|
|
11169
11172
|
}
|
|
11170
|
-
}, [_c('span'), _vm._v(" "), _c('span'), _vm._v(" "), _c('span')]), _vm._v(" "), _vm.actionsOpen ? _c('ul', {
|
|
11173
|
+
}, [_c('span'), _vm._v(" "), _c('span'), _vm._v(" "), _c('span')]) : _vm._e(), _vm._v(" "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
|
|
11171
11174
|
directives: [{
|
|
11172
|
-
name: "
|
|
11173
|
-
rawName: "v-
|
|
11174
|
-
value:
|
|
11175
|
-
|
|
11176
|
-
},
|
|
11177
|
-
expression: "() => actionsOpen = false"
|
|
11175
|
+
name: "clickaway",
|
|
11176
|
+
rawName: "v-clickaway",
|
|
11177
|
+
value: _vm.closeActions,
|
|
11178
|
+
expression: "closeActions"
|
|
11178
11179
|
}],
|
|
11179
|
-
staticClass: "email-actions-list box-shadow"
|
|
11180
|
-
}, [_c('li', {
|
|
11181
|
-
staticClass: "email-action",
|
|
11182
|
-
domProps: {
|
|
11183
|
-
"textContent": _vm._s((!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail")
|
|
11184
|
-
},
|
|
11180
|
+
staticClass: "email-actions-list box-shadow",
|
|
11185
11181
|
on: {
|
|
11186
11182
|
"click": function ($event) {
|
|
11187
|
-
|
|
11183
|
+
$event.stopPropagation();
|
|
11188
11184
|
}
|
|
11189
11185
|
}
|
|
11190
|
-
}
|
|
11186
|
+
}, [_c('li', {
|
|
11187
|
+
staticClass: "email-action",
|
|
11188
|
+
on: {
|
|
11189
|
+
"click": _vm.toggleOpenMessage
|
|
11190
|
+
}
|
|
11191
|
+
}, [_vm._v("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ")])]) : _vm._e()]), _vm._v(" "), _c('transition', {
|
|
11192
|
+
attrs: {
|
|
11193
|
+
"name": "show-y-top"
|
|
11194
|
+
}
|
|
11195
|
+
}, [_vm.isOpen ? _c('div', {
|
|
11196
|
+
staticClass: "email-content"
|
|
11197
|
+
}, [_c('section', {
|
|
11191
11198
|
staticClass: "email-html",
|
|
11192
11199
|
domProps: {
|
|
11193
|
-
"innerHTML": _vm._s(_vm.
|
|
11200
|
+
"innerHTML": _vm._s(_vm.cleanHtml)
|
|
11194
11201
|
}
|
|
11195
11202
|
}), _vm._v(" "), _vm.openMessage ? _c('span', {
|
|
11196
|
-
staticClass: "email-raw"
|
|
11197
|
-
|
|
11198
|
-
"textContent": _vm._s(_vm.mensagem)
|
|
11199
|
-
}
|
|
11200
|
-
}) : _vm._e()]) : _vm._e()]), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _c('div', {
|
|
11203
|
+
staticClass: "email-raw"
|
|
11204
|
+
}, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()]) : _vm._e()]), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _c('div', {
|
|
11201
11205
|
staticClass: "email-files"
|
|
11202
11206
|
}, _vm._l(_vm.anexos, function (anexo, index) {
|
|
11203
11207
|
return _c('EmailFile', {
|
|
@@ -11214,18 +11218,18 @@ var __vue_staticRenderFns__ = [];
|
|
|
11214
11218
|
/* style */
|
|
11215
11219
|
const __vue_inject_styles__ = function (inject) {
|
|
11216
11220
|
if (!inject) return;
|
|
11217
|
-
inject("data-v-
|
|
11218
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11221
|
+
inject("data-v-ea72d2ae_0", {
|
|
11222
|
+
source: ".show-y-top-enter-active[data-v-ea72d2ae],.show-y-top-leave-enter[data-v-ea72d2ae]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-ea72d2ae],.show-y-top-leave-to[data-v-ea72d2ae]{opacity:0;transform:translateY(-2%)}",
|
|
11219
11223
|
map: undefined,
|
|
11220
11224
|
media: undefined
|
|
11221
|
-
}), inject("data-v-
|
|
11222
|
-
source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-item{flex:1;margin:0 10px
|
|
11225
|
+
}), inject("data-v-ea72d2ae_1", {
|
|
11226
|
+
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:275px}.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:5px 15px;margin-left:5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-315px;border:1px solid #ccc;z-index:1;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}",
|
|
11223
11227
|
map: undefined,
|
|
11224
11228
|
media: undefined
|
|
11225
11229
|
});
|
|
11226
11230
|
};
|
|
11227
11231
|
/* scoped */
|
|
11228
|
-
const __vue_scope_id__ = "data-v-
|
|
11232
|
+
const __vue_scope_id__ = "data-v-ea72d2ae";
|
|
11229
11233
|
/* module identifier */
|
|
11230
11234
|
const __vue_module_identifier__ = undefined;
|
|
11231
11235
|
/* functional template */
|