vue-intergrall-plugins 1.1.1 → 1.1.2
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.
|
@@ -11142,6 +11142,25 @@ var script$1 = {
|
|
|
11142
11142
|
return this.anexos.filter(anexo => {
|
|
11143
11143
|
return !this.html.includes(anexo.name);
|
|
11144
11144
|
});
|
|
11145
|
+
},
|
|
11146
|
+
returnAuthorName() {
|
|
11147
|
+
if (!this.from || !this.from.length) return this.autor || '';
|
|
11148
|
+
const {
|
|
11149
|
+
email,
|
|
11150
|
+
name
|
|
11151
|
+
} = this.from[0];
|
|
11152
|
+
if (!name) return email;
|
|
11153
|
+
if (!email) return name;
|
|
11154
|
+
if (this.isOpen) return `${name} (${email})`;
|
|
11155
|
+
return name;
|
|
11156
|
+
},
|
|
11157
|
+
formattedToName() {
|
|
11158
|
+
return (name, index, length) => {
|
|
11159
|
+
let addVirgulaDps = index < length - 1;
|
|
11160
|
+
let addVirgulaAntes = index === 1 && length >= 2;
|
|
11161
|
+
const text = index === 0 ? `Para: ${name || ''}` : name ? `${addVirgulaAntes ? ', ' : ''}${name}${addVirgulaDps ? ', ' : ''}` : '';
|
|
11162
|
+
return text;
|
|
11163
|
+
};
|
|
11145
11164
|
}
|
|
11146
11165
|
},
|
|
11147
11166
|
watch: {
|
|
@@ -11162,17 +11181,6 @@ var script$1 = {
|
|
|
11162
11181
|
this.hasError = false;
|
|
11163
11182
|
this.$nextTick(this.updateIframeContent());
|
|
11164
11183
|
},
|
|
11165
|
-
returnAuthorName() {
|
|
11166
|
-
if (!this.from || !this.from.length) return this.autor || '';
|
|
11167
|
-
const {
|
|
11168
|
-
email,
|
|
11169
|
-
name
|
|
11170
|
-
} = this.from[0];
|
|
11171
|
-
if (!name) return email;
|
|
11172
|
-
if (!email) return name;
|
|
11173
|
-
if (this.isOpen) return `${name} (${email})`;
|
|
11174
|
-
return name;
|
|
11175
|
-
},
|
|
11176
11184
|
gerarMensagemEstilizada(msg) {
|
|
11177
11185
|
try {
|
|
11178
11186
|
const currentStyles = [{
|
|
@@ -11341,20 +11349,6 @@ var script$1 = {
|
|
|
11341
11349
|
closeActions() {
|
|
11342
11350
|
this.actionsOpen = false;
|
|
11343
11351
|
},
|
|
11344
|
-
formattedName(name, index, length, isOpen) {
|
|
11345
|
-
if (!name) return '--';
|
|
11346
|
-
return `${name || '--'}${index !== length - 1 && !isOpen ? ', ' : ''}`;
|
|
11347
|
-
},
|
|
11348
|
-
formattedMail(email, index, length, isOpen) {
|
|
11349
|
-
if (!email) return '';
|
|
11350
|
-
return `<${email || '--'}${index !== length - 1 && isOpen ? '>, ' : '>'}`;
|
|
11351
|
-
},
|
|
11352
|
-
formattedToName(name, index, length) {
|
|
11353
|
-
let addVirgulaDps = index < length - 1;
|
|
11354
|
-
let addVirgulaAntes = index === 1 && length >= 2;
|
|
11355
|
-
const text = index === 0 ? `Para: ${name || ''}` : name ? `${addVirgulaAntes ? ', ' : ''}${name}${addVirgulaDps ? ', ' : ''}` : '';
|
|
11356
|
-
return text;
|
|
11357
|
-
},
|
|
11358
11352
|
returnMainValue() {
|
|
11359
11353
|
if (this.isMainEmail) return this.htmlEntityToEmoji(this.replaceUnicodeWithEmoji(this.assunto)) || '(Sem assunto)';
|
|
11360
11354
|
return '';
|
|
@@ -11404,6 +11398,7 @@ var __vue_render__$1 = function () {
|
|
|
11404
11398
|
}, [_vm.showInfos ? _c('div', {
|
|
11405
11399
|
staticClass: "email-overlay"
|
|
11406
11400
|
}) : _vm._e(), _vm._v(" "), _vm.autor ? _c('div', {
|
|
11401
|
+
key: _vm.autor,
|
|
11407
11402
|
staticClass: "email-author",
|
|
11408
11403
|
class: [_vm.origem, _vm.isMainEmail ? 'main' : ''],
|
|
11409
11404
|
on: {
|
|
@@ -11421,10 +11416,10 @@ var __vue_render__$1 = function () {
|
|
|
11421
11416
|
}), _vm._v(" "), _c('p', {
|
|
11422
11417
|
staticClass: "email-author-name",
|
|
11423
11418
|
attrs: {
|
|
11424
|
-
"title": _vm.returnAuthorName
|
|
11419
|
+
"title": _vm.returnAuthorName
|
|
11425
11420
|
},
|
|
11426
11421
|
domProps: {
|
|
11427
|
-
"textContent": _vm._s(_vm.returnAuthorName
|
|
11422
|
+
"textContent": _vm._s(_vm.returnAuthorName)
|
|
11428
11423
|
}
|
|
11429
11424
|
}), _vm._v(" "), _c('fa-icon', {
|
|
11430
11425
|
staticClass: "email-to-svg",
|
|
@@ -11699,18 +11694,18 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
11699
11694
|
/* style */
|
|
11700
11695
|
const __vue_inject_styles__$1 = function (inject) {
|
|
11701
11696
|
if (!inject) return;
|
|
11702
|
-
inject("data-v-
|
|
11703
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11697
|
+
inject("data-v-0df370a6_0", {
|
|
11698
|
+
source: ".show-y-top-enter-active[data-v-0df370a6],.show-y-top-leave-enter[data-v-0df370a6]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-0df370a6],.show-y-top-leave-to[data-v-0df370a6]{opacity:0;transform:translateY(-2%)}",
|
|
11704
11699
|
map: undefined,
|
|
11705
11700
|
media: undefined
|
|
11706
|
-
}), inject("data-v-
|
|
11701
|
+
}), inject("data-v-0df370a6_1", {
|
|
11707
11702
|
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}.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:1.025rem}.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:1.025rem;cursor:pointer}.email-date{--width:245px;font-size:.8rem;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:.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%;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:.9rem;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:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:.75rem;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:.7rem;color:gray}.email-to-svg{font-size:.85rem}.email-custom-buttons{display:flex;gap:7px;position:absolute;top:5px;right:5px;z-index:1;font-size:.8rem}.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}",
|
|
11708
11703
|
map: undefined,
|
|
11709
11704
|
media: undefined
|
|
11710
11705
|
});
|
|
11711
11706
|
};
|
|
11712
11707
|
/* scoped */
|
|
11713
|
-
const __vue_scope_id__$1 = "data-v-
|
|
11708
|
+
const __vue_scope_id__$1 = "data-v-0df370a6";
|
|
11714
11709
|
/* module identifier */
|
|
11715
11710
|
const __vue_module_identifier__$1 = undefined;
|
|
11716
11711
|
/* functional template */
|