vue-intergrall-plugins 1.0.64 → 1.0.66
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.
|
@@ -10711,8 +10711,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
10711
10711
|
/* style */
|
|
10712
10712
|
const __vue_inject_styles__$3 = function (inject) {
|
|
10713
10713
|
if (!inject) return;
|
|
10714
|
-
inject("data-v-
|
|
10715
|
-
source: ".email-file{display:flex;align-items:center;justify-content:flex-end;flex-direction:column;min-width:50px;width:auto;max-width:100px;height:70px;position:relative}.anexo-img{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.anexo-img:hover{opacity:1}.anexo-img img{max-width:100%;font-size:.8rem}.anexo-video{width:100%;height:100%;max-width:100
|
|
10714
|
+
inject("data-v-5fc0ce34_0", {
|
|
10715
|
+
source: ".email-file{display:flex;align-items:center;justify-content:flex-end;flex-direction:column;min-width:50px;width:auto;max-width:100px;height:70px;position:relative}.anexo-img{display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;background-color:rgba(0,0,0,.2);border-radius:2.5px;cursor:pointer;opacity:.9;transition:opacity 150ms}.anexo-img:hover{opacity:1}.anexo-img img{max-width:100%;font-size:.8rem}.anexo-video{width:100%;height:100%;max-width:100%;overflow:hidden}.anexo-video video{max-width:100%}.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)}.anexo-icone{display:flex;justify-content:center;align-items:center;font-size:30px;cursor:pointer}.anexo-icone:hover{opacity:1}.anexo-icone:visited{color:inherit}.anexo-icone.pdf{position:relative}.anexo-icone.pdf svg{color:#e74c3c}.anexo-icone.pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px}.anexo-icone.doc{color:#15517f}.anexo-icone.doc::after{content:\"\";position:absolute;width:20px;height:20px}.anexo-download{position:absolute;top:0;right:0;border-radius:5px;padding:5px;display:flex;justify-content:center;align-items:center;color:#222;background-color:#fff;z-index:1;font-size:.8rem;cursor:pointer}.anexo-name{max-width:100%;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 0 5px 0;height:20px}.anexo-icone,.anexo-img,.anexo-video{max-height:calc(100% - 20px)}",
|
|
10716
10716
|
map: undefined,
|
|
10717
10717
|
media: undefined
|
|
10718
10718
|
});
|
|
@@ -10872,6 +10872,10 @@ var script$1 = {
|
|
|
10872
10872
|
type: Array,
|
|
10873
10873
|
default: () => []
|
|
10874
10874
|
},
|
|
10875
|
+
copia: {
|
|
10876
|
+
type: Array,
|
|
10877
|
+
default: () => []
|
|
10878
|
+
},
|
|
10875
10879
|
html: {
|
|
10876
10880
|
type: String,
|
|
10877
10881
|
default: ""
|
|
@@ -10940,6 +10944,10 @@ var script$1 = {
|
|
|
10940
10944
|
};
|
|
10941
10945
|
},
|
|
10942
10946
|
computed: {
|
|
10947
|
+
paraCopia() {
|
|
10948
|
+
if (!this.copia || !this.copia.length) return this.para && this.para.length ? this.para : [];
|
|
10949
|
+
return this.para && this.para.length ? this.para.concat(this.copia) : this.copia;
|
|
10950
|
+
},
|
|
10943
10951
|
formattedDate() {
|
|
10944
10952
|
return this.formataDateHoraDateFns(this.dataHora, this.dataServer, this.dicionario);
|
|
10945
10953
|
},
|
|
@@ -10954,12 +10962,12 @@ var script$1 = {
|
|
|
10954
10962
|
});
|
|
10955
10963
|
return str;
|
|
10956
10964
|
};
|
|
10957
|
-
|
|
10965
|
+
const infos = [{
|
|
10958
10966
|
label: 'De:',
|
|
10959
|
-
value: formatAsString(this.from)
|
|
10967
|
+
value: this.from && this.from.length ? formatAsString(this.from) : '--'
|
|
10960
10968
|
}, {
|
|
10961
10969
|
label: 'Para:',
|
|
10962
|
-
value: formatAsString(this.para)
|
|
10970
|
+
value: this.para && this.para.length ? formatAsString(this.para) : '--'
|
|
10963
10971
|
}, {
|
|
10964
10972
|
label: 'Assunto:',
|
|
10965
10973
|
value: this.htmlEntityToEmoji(this.replaceUnicodeWithEmoji(this.assunto)) || '(Sem assunto)'
|
|
@@ -10967,6 +10975,13 @@ var script$1 = {
|
|
|
10967
10975
|
label: 'Data:',
|
|
10968
10976
|
value: this.formataDataHora(this.dataHora) || '--'
|
|
10969
10977
|
}];
|
|
10978
|
+
if (this.copia && this.copia.length) {
|
|
10979
|
+
infos.push({
|
|
10980
|
+
label: this.dicionario.tit_copia,
|
|
10981
|
+
value: formatAsString(this.copia)
|
|
10982
|
+
});
|
|
10983
|
+
}
|
|
10984
|
+
return infos;
|
|
10970
10985
|
}
|
|
10971
10986
|
},
|
|
10972
10987
|
watch: {
|
|
@@ -10976,9 +10991,13 @@ var script$1 = {
|
|
|
10976
10991
|
this.updateIframeContent();
|
|
10977
10992
|
this.adjustMaxWidth();
|
|
10978
10993
|
if (this.refKey) this.$root.$refs[`${refKey}`] = this;
|
|
10994
|
+
setTimeout(() => {
|
|
10995
|
+
if (this.isIframeLoading) this.adjustIframeHeight();
|
|
10996
|
+
}, 15000);
|
|
10979
10997
|
},
|
|
10980
10998
|
methods: {
|
|
10981
10999
|
returnAuthorName() {
|
|
11000
|
+
if (!this.from || !this.from.length) return this.autor || '';
|
|
10982
11001
|
const {
|
|
10983
11002
|
mail,
|
|
10984
11003
|
name
|
|
@@ -10992,7 +11011,9 @@ var script$1 = {
|
|
|
10992
11011
|
this.$nextTick(() => {
|
|
10993
11012
|
if (this.isOpen && this.isIframeLoading) {
|
|
10994
11013
|
const iframe = this.$refs.emailIframe;
|
|
11014
|
+
if (!iframe) return;
|
|
10995
11015
|
const doc = iframe.contentDocument || iframe.contentWindow.document;
|
|
11016
|
+
if (!doc) return;
|
|
10996
11017
|
doc.open();
|
|
10997
11018
|
doc.write(this.html);
|
|
10998
11019
|
doc.close();
|
|
@@ -11043,9 +11064,8 @@ var script$1 = {
|
|
|
11043
11064
|
const ulElement = this.$refs.emailToInfos;
|
|
11044
11065
|
if (!ulElement) return;
|
|
11045
11066
|
const ulHeight = ulElement.offsetHeight;
|
|
11046
|
-
const margin = 25;
|
|
11047
11067
|
const maxHeight = 300;
|
|
11048
|
-
const finalHeight = ulHeight < maxHeight ? ulHeight
|
|
11068
|
+
const finalHeight = ulHeight < maxHeight ? ulHeight : maxHeight;
|
|
11049
11069
|
ulElement.style.bottom = `-${finalHeight}px`;
|
|
11050
11070
|
},
|
|
11051
11071
|
toggleIsOpen() {
|
|
@@ -11094,7 +11114,10 @@ var script$1 = {
|
|
|
11094
11114
|
return `<${mail || '--'}${index !== length - 1 && isOpen ? '>, ' : '>'}`;
|
|
11095
11115
|
},
|
|
11096
11116
|
formattedToName(name, index, length) {
|
|
11097
|
-
|
|
11117
|
+
let addVirgulaDps = index < length - 1;
|
|
11118
|
+
let addVirgulaAntes = index === 1 && length >= 2;
|
|
11119
|
+
const text = index === 0 ? `Para: ${name || ''}` : name ? `${addVirgulaAntes ? ', ' : ''}${name}${addVirgulaDps ? ', ' : ''}` : '';
|
|
11120
|
+
return text;
|
|
11098
11121
|
},
|
|
11099
11122
|
returnMainValue() {
|
|
11100
11123
|
if (this.isMainEmail) return this.htmlEntityToEmoji(this.replaceUnicodeWithEmoji(this.assunto)) || '(Sem assunto)';
|
|
@@ -11105,6 +11128,24 @@ var script$1 = {
|
|
|
11105
11128
|
event.preventDefault();
|
|
11106
11129
|
event.stopPropagation();
|
|
11107
11130
|
this.toggleIsOpen();
|
|
11131
|
+
},
|
|
11132
|
+
returnParams(params) {
|
|
11133
|
+
const defaultParams = {
|
|
11134
|
+
message: this.mensagem
|
|
11135
|
+
};
|
|
11136
|
+
if (!params) return defaultParams;
|
|
11137
|
+
const keys = params.instanceKeys.split("|");
|
|
11138
|
+
if (!keys || !keys.length) return {
|
|
11139
|
+
defaultParams,
|
|
11140
|
+
...params.values
|
|
11141
|
+
};
|
|
11142
|
+
const customParams = {
|
|
11143
|
+
...params.values
|
|
11144
|
+
};
|
|
11145
|
+
keys.forEach(key => {
|
|
11146
|
+
if (this[key]) customParams[key] = this[key];else console.warn(`Cant find ${key} on 'this' instance`);
|
|
11147
|
+
});
|
|
11148
|
+
return Object.keys(customParams).length ? customParams : defaultParams;
|
|
11108
11149
|
}
|
|
11109
11150
|
}
|
|
11110
11151
|
};
|
|
@@ -11215,13 +11256,13 @@ var __vue_render__$1 = function () {
|
|
|
11215
11256
|
}, [_vm.para && _vm.para.length ? [_c('div', {
|
|
11216
11257
|
ref: "emailToContainer",
|
|
11217
11258
|
staticClass: "email-to-from-container"
|
|
11218
|
-
}, [_vm._l(_vm.
|
|
11259
|
+
}, [_vm._l(_vm.paraCopia, function (recipient, index) {
|
|
11219
11260
|
return _c('EmailTo', {
|
|
11220
11261
|
key: "to-" + index,
|
|
11221
11262
|
attrs: {
|
|
11222
|
-
"currentName": _vm.formattedToName(recipient.name, index, _vm.
|
|
11263
|
+
"currentName": _vm.formattedToName(recipient.name, index, _vm.paraCopia.length),
|
|
11223
11264
|
"mail": recipient.mail,
|
|
11224
|
-
"showMail": _vm.
|
|
11265
|
+
"showMail": _vm.isOpen
|
|
11225
11266
|
}
|
|
11226
11267
|
});
|
|
11227
11268
|
}), _vm._v(" "), _c('div', {
|
|
@@ -11357,18 +11398,18 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
11357
11398
|
/* style */
|
|
11358
11399
|
const __vue_inject_styles__$1 = function (inject) {
|
|
11359
11400
|
if (!inject) return;
|
|
11360
|
-
inject("data-v-
|
|
11361
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11401
|
+
inject("data-v-82cc4396_0", {
|
|
11402
|
+
source: ".show-y-top-enter-active[data-v-82cc4396],.show-y-top-leave-enter[data-v-82cc4396]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-82cc4396],.show-y-top-leave-to[data-v-82cc4396]{opacity:0;transform:translateY(-2%)}",
|
|
11362
11403
|
map: undefined,
|
|
11363
11404
|
media: undefined
|
|
11364
|
-
}), inject("data-v-
|
|
11365
|
-
source: "@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);.visibility-hidden{visibility:hidden}.box-shadow-active{box-shadow:0 0 4px 2px rgba(0,0,0,.25)!important}.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{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-item.outros{border-left:3px solid #33b8df}.email-author-name{margin:0 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-author.outros{color:#33b8df}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:#ebb552}.email-item.principal{border-left:3px solid #ebb552}.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:
|
|
11405
|
+
}), inject("data-v-82cc4396_1", {
|
|
11406
|
+
source: "@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);.visibility-hidden{visibility:hidden}.box-shadow-active{box-shadow:0 0 4px 2px rgba(0,0,0,.25)!important}.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{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-item.outros{border-left:3px solid #33b8df}.email-author-name{margin:0 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-author.outros{color:#33b8df}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:#ebb552}.email-item.principal{border-left:3px solid #ebb552}.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%;cursor:default;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}",
|
|
11366
11407
|
map: undefined,
|
|
11367
11408
|
media: undefined
|
|
11368
11409
|
});
|
|
11369
11410
|
};
|
|
11370
11411
|
/* scoped */
|
|
11371
|
-
const __vue_scope_id__$1 = "data-v-
|
|
11412
|
+
const __vue_scope_id__$1 = "data-v-82cc4396";
|
|
11372
11413
|
/* module identifier */
|
|
11373
11414
|
const __vue_module_identifier__$1 = undefined;
|
|
11374
11415
|
/* functional template */
|