vue-intergrall-plugins 1.1.28 → 1.1.29
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.
|
@@ -11488,6 +11488,10 @@ var script$1 = {
|
|
|
11488
11488
|
infos: {
|
|
11489
11489
|
type: Object,
|
|
11490
11490
|
default: () => ({})
|
|
11491
|
+
},
|
|
11492
|
+
jaMarcadoSpam: {
|
|
11493
|
+
type: Boolean,
|
|
11494
|
+
default: false
|
|
11491
11495
|
}
|
|
11492
11496
|
},
|
|
11493
11497
|
data() {
|
|
@@ -11498,7 +11502,8 @@ var script$1 = {
|
|
|
11498
11502
|
showInfos: false,
|
|
11499
11503
|
isIframeLoading: true,
|
|
11500
11504
|
hasError: false,
|
|
11501
|
-
errorCount: 0
|
|
11505
|
+
errorCount: 0,
|
|
11506
|
+
scrollToFile: false
|
|
11502
11507
|
};
|
|
11503
11508
|
},
|
|
11504
11509
|
computed: {
|
|
@@ -11590,18 +11595,26 @@ var script$1 = {
|
|
|
11590
11595
|
methods: {
|
|
11591
11596
|
openAndScrollToAttachments() {
|
|
11592
11597
|
if (!this.isOpen) {
|
|
11598
|
+
this.scrollToFile = true;
|
|
11599
|
+
this.isIframeLoading = true;
|
|
11593
11600
|
this.isOpen = true;
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
behavior: 'smooth',
|
|
11599
|
-
block: 'center'
|
|
11600
|
-
});
|
|
11601
|
-
}
|
|
11602
|
-
});
|
|
11601
|
+
} else if (!this.isIframeLoading) {
|
|
11602
|
+
this.scrollToAttachments();
|
|
11603
|
+
} else {
|
|
11604
|
+
this.scrollToFile = true;
|
|
11603
11605
|
}
|
|
11604
11606
|
},
|
|
11607
|
+
scrollToAttachments() {
|
|
11608
|
+
this.$nextTick(() => {
|
|
11609
|
+
const files = this.$el.querySelector('.email-files');
|
|
11610
|
+
if (files) {
|
|
11611
|
+
files.scrollIntoView({
|
|
11612
|
+
behavior: 'smooth',
|
|
11613
|
+
block: 'center'
|
|
11614
|
+
});
|
|
11615
|
+
}
|
|
11616
|
+
});
|
|
11617
|
+
},
|
|
11605
11618
|
handleTryAgain() {
|
|
11606
11619
|
this.isOpen = true;
|
|
11607
11620
|
this.isIframeLoading = true;
|
|
@@ -11736,6 +11749,10 @@ var script$1 = {
|
|
|
11736
11749
|
}
|
|
11737
11750
|
iframe.style.height = `${value}px`;
|
|
11738
11751
|
emailParent.style.minHeight = `${value}px`;
|
|
11752
|
+
if (this.scrollToFile) {
|
|
11753
|
+
this.scrollToFile = false;
|
|
11754
|
+
this.scrollToAttachments();
|
|
11755
|
+
}
|
|
11739
11756
|
}, 100);
|
|
11740
11757
|
}
|
|
11741
11758
|
if (this.isIframeLoading) this.isIframeLoading = false;
|
|
@@ -11759,10 +11776,13 @@ var script$1 = {
|
|
|
11759
11776
|
},
|
|
11760
11777
|
toggleIsOpen() {
|
|
11761
11778
|
this.isOpen = !this.isOpen;
|
|
11762
|
-
if (
|
|
11779
|
+
if (this.isOpen) {
|
|
11780
|
+
this.isIframeLoading = true; // <-- Adicione esta linha
|
|
11781
|
+
} else {
|
|
11763
11782
|
this.actionsOpen = false;
|
|
11764
11783
|
this.openMessage = false;
|
|
11765
11784
|
this.showInfos = false;
|
|
11785
|
+
this.scrollToFile = false;
|
|
11766
11786
|
}
|
|
11767
11787
|
},
|
|
11768
11788
|
adjustMaxWidth() {
|
|
@@ -11918,15 +11938,44 @@ var __vue_render__$1 = function () {
|
|
|
11918
11938
|
"innerHTML": _vm._s(button.svgIcon)
|
|
11919
11939
|
}
|
|
11920
11940
|
})], 1);
|
|
11921
|
-
}), 0) : _vm._e(), _vm._v(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _c('div', {
|
|
11941
|
+
}), 0) : _vm._e(), _vm._v(" "), _vm.customActionButtons && _vm.customActionButtons.length && _vm.customActionButtons[0].type === 'ja-spam' ? _c('div', {
|
|
11942
|
+
key: _vm.customActionButtons[0].id,
|
|
11943
|
+
staticClass: "ja-marcado-spam"
|
|
11944
|
+
}, [_c('span', [_c('fa-icon', {
|
|
11945
|
+
staticStyle: {
|
|
11946
|
+
"color": "#FF0000",
|
|
11947
|
+
"margin-right": "8px",
|
|
11948
|
+
"font-size": "16px"
|
|
11949
|
+
},
|
|
11950
|
+
attrs: {
|
|
11951
|
+
"icon": ['fas', 'exclamation-triangle']
|
|
11952
|
+
}
|
|
11953
|
+
}), _vm._v("\n " + _vm._s(_vm.customActionButtons[0].label) + "\n ")], 1), _vm._v(" "), _c('div', {
|
|
11954
|
+
staticClass: "ja-marcado-spam-buttons",
|
|
11955
|
+
on: {
|
|
11956
|
+
"click": function ($event) {
|
|
11957
|
+
$event.stopPropagation();
|
|
11958
|
+
}
|
|
11959
|
+
}
|
|
11960
|
+
}, [_c('button', {
|
|
11961
|
+
staticClass: "btn-nao-spam",
|
|
11962
|
+
on: {
|
|
11963
|
+
"click": _vm.customActionButtons[0].btn1.callback
|
|
11964
|
+
}
|
|
11965
|
+
}, [_vm._v(_vm._s(_vm.customActionButtons[0].btn1.label))]), _vm._v(" "), _c('button', {
|
|
11966
|
+
staticClass: "btn-e-spam",
|
|
11967
|
+
on: {
|
|
11968
|
+
"click": _vm.customActionButtons[0].btn2.callback
|
|
11969
|
+
}
|
|
11970
|
+
}, [_vm._v(_vm._s(_vm.customActionButtons[0].btn2.label))])])]) : _vm._e(), _vm._v(" "), _vm.customActionButtons && _vm.customActionButtons.length ? _c('div', {
|
|
11922
11971
|
staticClass: "email-custom-action-buttons",
|
|
11923
11972
|
on: {
|
|
11924
11973
|
"click": function ($event) {
|
|
11925
11974
|
$event.stopPropagation();
|
|
11926
11975
|
}
|
|
11927
11976
|
}
|
|
11928
|
-
}, _vm._l(_vm.customActionButtons, function (button, index) {
|
|
11929
|
-
return _c('button', {
|
|
11977
|
+
}, [_vm._l(_vm.customActionButtons, function (button, index) {
|
|
11978
|
+
return [button.type !== 'ja-spam' ? _c('button', {
|
|
11930
11979
|
directives: [{
|
|
11931
11980
|
name: "show",
|
|
11932
11981
|
rawName: "v-show",
|
|
@@ -11960,8 +12009,8 @@ var __vue_render__$1 = function () {
|
|
|
11960
12009
|
domProps: {
|
|
11961
12010
|
"textContent": _vm._s(button.label)
|
|
11962
12011
|
}
|
|
11963
|
-
}) : _vm._e()], 1);
|
|
11964
|
-
}),
|
|
12012
|
+
}) : _vm._e()], 1) : _vm._e()];
|
|
12013
|
+
})], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
11965
12014
|
staticClass: "email-header",
|
|
11966
12015
|
on: {
|
|
11967
12016
|
"click": function ($event) {
|
|
@@ -12172,18 +12221,18 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
12172
12221
|
/* style */
|
|
12173
12222
|
const __vue_inject_styles__$1 = function (inject) {
|
|
12174
12223
|
if (!inject) return;
|
|
12175
|
-
inject("data-v-
|
|
12176
|
-
source: ".show-y-top-enter-active[data-v-
|
|
12224
|
+
inject("data-v-46262355_0", {
|
|
12225
|
+
source: ".show-y-top-enter-active[data-v-46262355],.show-y-top-leave-enter[data-v-46262355]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-46262355],.show-y-top-leave-to[data-v-46262355]{opacity:0;transform:translateY(-2%)}",
|
|
12177
12226
|
map: undefined,
|
|
12178
12227
|
media: undefined
|
|
12179
|
-
}), inject("data-v-
|
|
12228
|
+
}), inject("data-v-46262355_1", {
|
|
12180
12229
|
source: ".visibility-hidden{visibility:hidden}.box-shadow-active{box-shadow:0 0 4px 2px rgba(0,0,0,.25)}.bg-dark-white-2{background-color:#f7f7f7}.bg-white{background-color:#fff}.cursor-pointer{cursor:pointer}.email-overlay{width:100%;height:100%;background-color:transparent;z-index:1;position:absolute;top:0;left:0}.email-item{--konecta-gray-3:#515050;--konecta-light:#f8f9fa;--blue-silver-4:#dae0e5;--email-principal:#faa732;--email-outros:#86b7fe;font-family:Roboto,sans-serif;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}.divBtnReplyEmail{display:flex;align-items:center;background-color:#f0adad;border-radius:6px;padding:7px 9px;margin:5px 0;gap:8px}.reply-email-open{width:calc(100% - 10px - 45px)!important}.btnReplyEmail{display:block;background-color:#faa732;border:1px solid #da8205;margin:8px 0 8px 5px;padding:5px 10px 5px 10px;font-size:14.4px;font-weight:700;border-radius:3px;color:#000;cursor:pointer}.strongMsg{flex:1;font-size:13px}.email-custom-action-buttons{display:flex;gap:7px;align-items:center;flex-wrap:wrap;max-width:100%;cursor:default}.email-custom-action-button{margin-top:10px;background-color:var(--konecta-light)!important;color:var(--konecta-dark)!important;border:1px solid var(--blue-silver-4)!important;flex:1;min-width:100px;display:flex;align-items:center;justify-content:center;gap:5px;padding:5px;overflow:hidden;border-radius:5px;text-overflow:ellipsis;white-space:nowrap;transition:all .1s ease-in-out;max-width:100%;cursor:pointer}.email-custom-action-button:hover{background-color:#e9ecef!important}.email-custom-action-button:disabled{background-color:var(--konecta-gray-3)!important;border:1px solid #25282b!important;cursor:not-allowed!important}.email-item.outros{border-left:3px solid var(--email-outros)}.email-author-name{margin:0 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-author.outros{color:var(--email-outros)}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:var(--email-principal)}.email-author.main{font-size:16.4px}.email-item.principal{border-left:3px solid var(--email-principal)}.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;position:relative}.email-header-content{display:flex;align-items:center;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:5px 0 0 0;font-size:16.4px;cursor:pointer}.email-date{--width:245px;font-size:12.8px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:absolute;right:0;top:0;min-width:var(--width);width:var(--width);max-width:var(--width);display:flex;justify-content:flex-end;gap:3px;align-items:center}.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:0;top:30px;z-index:1}.email-actions.main{top:10px}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;min-width:4px;min-height:4px;max-width:4px;max-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:14.4px;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:14.4px;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%;margin-top:5px}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:5px;max-width:100%;min-width:250px;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap;flex:1;gap:5px}.email-to-btn{padding:0 5px;font-size:14.4px;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-325px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;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:12.8px}.email-info>span{font-size:12px;color:gray;margin-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:12px;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:11.2px;color:gray}.email-to-svg{font-size:13.6px}.email-custom-buttons{display:flex;gap:7px;position:absolute;top:5px;right:5px;z-index:1;font-size:12.8px}.menu-mensagem{cursor:pointer;padding:1px;opacity:.7;transition:opacity .1s ease-in-out}.menu-mensagem:active,.menu-mensagem:focus,.menu-mensagem:hover{opacity:1}.email-error-content{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:5px;padding:10px}.email-error-content p{margin:0;color:#e74c3c}.email-error-content button{border:1px solid #ccc;border-radius:3px;padding:5px 10px;background-color:#fff;cursor:pointer;transition:background-color 150ms ease-in-out}.email-error-content button:hover{background-color:#eee}.btnReplyEmail:active,.btnReplyEmail:hover{background-color:#da8205;color:#000}.email-attachments-clip{display:flex;cursor:pointer;margin-top:5px}.clip-icon{position:relative;font-size:22px;color:#999;transform:rotate(-15deg)}.clip-badge{position:absolute;transform:rotate(15deg);top:0;right:-15px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#999 40%,#515050 100%);color:#fff;border-radius:50%;min-width:22px;height:22px;font-size:12.4px;border:1px solid #fff;filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .18));text-align:center;padding:0 4px;box-sizing:border-box}.clip-icon:hover{color:#777}.clip-icon:hover .clip-badge{background:linear-gradient(135deg,#999 20%,#515050 70%);filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .28))}",
|
|
12181
12230
|
map: undefined,
|
|
12182
12231
|
media: undefined
|
|
12183
12232
|
});
|
|
12184
12233
|
};
|
|
12185
12234
|
/* scoped */
|
|
12186
|
-
const __vue_scope_id__$1 = "data-v-
|
|
12235
|
+
const __vue_scope_id__$1 = "data-v-46262355";
|
|
12187
12236
|
/* module identifier */
|
|
12188
12237
|
const __vue_module_identifier__$1 = undefined;
|
|
12189
12238
|
/* functional template */
|