vue-intergrall-plugins 1.0.65 → 1.0.67
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
|
});
|
|
@@ -10864,6 +10864,10 @@ var script$1 = {
|
|
|
10864
10864
|
type: Object,
|
|
10865
10865
|
required: true
|
|
10866
10866
|
},
|
|
10867
|
+
customClass: {
|
|
10868
|
+
type: String,
|
|
10869
|
+
default: ''
|
|
10870
|
+
},
|
|
10867
10871
|
from: {
|
|
10868
10872
|
type: Array,
|
|
10869
10873
|
default: () => []
|
|
@@ -10872,6 +10876,10 @@ var script$1 = {
|
|
|
10872
10876
|
type: Array,
|
|
10873
10877
|
default: () => []
|
|
10874
10878
|
},
|
|
10879
|
+
copia: {
|
|
10880
|
+
type: Array,
|
|
10881
|
+
default: () => []
|
|
10882
|
+
},
|
|
10875
10883
|
html: {
|
|
10876
10884
|
type: String,
|
|
10877
10885
|
default: ""
|
|
@@ -10940,6 +10948,10 @@ var script$1 = {
|
|
|
10940
10948
|
};
|
|
10941
10949
|
},
|
|
10942
10950
|
computed: {
|
|
10951
|
+
paraCopia() {
|
|
10952
|
+
if (!this.copia || !this.copia.length) return this.para && this.para.length ? this.para : [];
|
|
10953
|
+
return this.para && this.para.length ? this.para.concat(this.copia) : this.copia;
|
|
10954
|
+
},
|
|
10943
10955
|
formattedDate() {
|
|
10944
10956
|
return this.formataDateHoraDateFns(this.dataHora, this.dataServer, this.dicionario);
|
|
10945
10957
|
},
|
|
@@ -10954,12 +10966,12 @@ var script$1 = {
|
|
|
10954
10966
|
});
|
|
10955
10967
|
return str;
|
|
10956
10968
|
};
|
|
10957
|
-
|
|
10969
|
+
const infos = [{
|
|
10958
10970
|
label: 'De:',
|
|
10959
|
-
value: formatAsString(this.from)
|
|
10971
|
+
value: this.from && this.from.length ? formatAsString(this.from) : '--'
|
|
10960
10972
|
}, {
|
|
10961
10973
|
label: 'Para:',
|
|
10962
|
-
value: formatAsString(this.para)
|
|
10974
|
+
value: this.para && this.para.length ? formatAsString(this.para) : '--'
|
|
10963
10975
|
}, {
|
|
10964
10976
|
label: 'Assunto:',
|
|
10965
10977
|
value: this.htmlEntityToEmoji(this.replaceUnicodeWithEmoji(this.assunto)) || '(Sem assunto)'
|
|
@@ -10967,6 +10979,13 @@ var script$1 = {
|
|
|
10967
10979
|
label: 'Data:',
|
|
10968
10980
|
value: this.formataDataHora(this.dataHora) || '--'
|
|
10969
10981
|
}];
|
|
10982
|
+
if (this.copia && this.copia.length) {
|
|
10983
|
+
infos.push({
|
|
10984
|
+
label: this.dicionario.tit_copia,
|
|
10985
|
+
value: formatAsString(this.copia)
|
|
10986
|
+
});
|
|
10987
|
+
}
|
|
10988
|
+
return infos;
|
|
10970
10989
|
}
|
|
10971
10990
|
},
|
|
10972
10991
|
watch: {
|
|
@@ -10976,9 +10995,13 @@ var script$1 = {
|
|
|
10976
10995
|
this.updateIframeContent();
|
|
10977
10996
|
this.adjustMaxWidth();
|
|
10978
10997
|
if (this.refKey) this.$root.$refs[`${refKey}`] = this;
|
|
10998
|
+
setTimeout(() => {
|
|
10999
|
+
if (this.isIframeLoading) this.adjustIframeHeight();
|
|
11000
|
+
}, 15000);
|
|
10979
11001
|
},
|
|
10980
11002
|
methods: {
|
|
10981
11003
|
returnAuthorName() {
|
|
11004
|
+
if (!this.from || !this.from.length) return this.autor || '';
|
|
10982
11005
|
const {
|
|
10983
11006
|
mail,
|
|
10984
11007
|
name
|
|
@@ -10992,7 +11015,9 @@ var script$1 = {
|
|
|
10992
11015
|
this.$nextTick(() => {
|
|
10993
11016
|
if (this.isOpen && this.isIframeLoading) {
|
|
10994
11017
|
const iframe = this.$refs.emailIframe;
|
|
11018
|
+
if (!iframe) return;
|
|
10995
11019
|
const doc = iframe.contentDocument || iframe.contentWindow.document;
|
|
11020
|
+
if (!doc) return;
|
|
10996
11021
|
doc.open();
|
|
10997
11022
|
doc.write(this.html);
|
|
10998
11023
|
doc.close();
|
|
@@ -11093,7 +11118,10 @@ var script$1 = {
|
|
|
11093
11118
|
return `<${mail || '--'}${index !== length - 1 && isOpen ? '>, ' : '>'}`;
|
|
11094
11119
|
},
|
|
11095
11120
|
formattedToName(name, index, length) {
|
|
11096
|
-
|
|
11121
|
+
let addVirgulaDps = index < length - 1;
|
|
11122
|
+
let addVirgulaAntes = index === 1 && length >= 2;
|
|
11123
|
+
const text = index === 0 ? `Para: ${name || ''}` : name ? `${addVirgulaAntes ? ', ' : ''}${name}${addVirgulaDps ? ', ' : ''}` : '';
|
|
11124
|
+
return text;
|
|
11097
11125
|
},
|
|
11098
11126
|
returnMainValue() {
|
|
11099
11127
|
if (this.isMainEmail) return this.htmlEntityToEmoji(this.replaceUnicodeWithEmoji(this.assunto)) || '(Sem assunto)';
|
|
@@ -11104,6 +11132,24 @@ var script$1 = {
|
|
|
11104
11132
|
event.preventDefault();
|
|
11105
11133
|
event.stopPropagation();
|
|
11106
11134
|
this.toggleIsOpen();
|
|
11135
|
+
},
|
|
11136
|
+
returnParams(params) {
|
|
11137
|
+
const defaultParams = {
|
|
11138
|
+
message: this.mensagem
|
|
11139
|
+
};
|
|
11140
|
+
if (!params) return defaultParams;
|
|
11141
|
+
const keys = params.instanceKeys.split("|");
|
|
11142
|
+
if (!keys || !keys.length) return {
|
|
11143
|
+
defaultParams,
|
|
11144
|
+
...params.values
|
|
11145
|
+
};
|
|
11146
|
+
const customParams = {
|
|
11147
|
+
...params.values
|
|
11148
|
+
};
|
|
11149
|
+
keys.forEach(key => {
|
|
11150
|
+
if (this[key]) customParams[key] = this[key];else console.warn(`Cant find ${key} on 'this' instance`);
|
|
11151
|
+
});
|
|
11152
|
+
return Object.keys(customParams).length ? customParams : defaultParams;
|
|
11107
11153
|
}
|
|
11108
11154
|
}
|
|
11109
11155
|
};
|
|
@@ -11117,7 +11163,7 @@ var __vue_render__$1 = function () {
|
|
|
11117
11163
|
var _h = _vm.$createElement;
|
|
11118
11164
|
var _c = _vm._self._c || _h;
|
|
11119
11165
|
return _c('div', {
|
|
11120
|
-
class: ['email-item box-shadow-active', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass + " cursor-pointer", _vm.showInfos ? 'info-open' : '', _vm.origem],
|
|
11166
|
+
class: ['email-item box-shadow-active', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass + " cursor-pointer", _vm.showInfos ? 'info-open' : '', _vm.origem, _vm.customClass],
|
|
11121
11167
|
on: {
|
|
11122
11168
|
"click": function ($event) {
|
|
11123
11169
|
return _vm.openByItem($event);
|
|
@@ -11214,13 +11260,13 @@ var __vue_render__$1 = function () {
|
|
|
11214
11260
|
}, [_vm.para && _vm.para.length ? [_c('div', {
|
|
11215
11261
|
ref: "emailToContainer",
|
|
11216
11262
|
staticClass: "email-to-from-container"
|
|
11217
|
-
}, [_vm._l(_vm.
|
|
11263
|
+
}, [_vm._l(_vm.paraCopia, function (recipient, index) {
|
|
11218
11264
|
return _c('EmailTo', {
|
|
11219
11265
|
key: "to-" + index,
|
|
11220
11266
|
attrs: {
|
|
11221
|
-
"currentName": _vm.formattedToName(recipient.name, index, _vm.
|
|
11267
|
+
"currentName": _vm.formattedToName(recipient.name, index, _vm.paraCopia.length),
|
|
11222
11268
|
"mail": recipient.mail,
|
|
11223
|
-
"showMail": _vm.
|
|
11269
|
+
"showMail": _vm.isOpen
|
|
11224
11270
|
}
|
|
11225
11271
|
});
|
|
11226
11272
|
}), _vm._v(" "), _c('div', {
|
|
@@ -11356,18 +11402,18 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
11356
11402
|
/* style */
|
|
11357
11403
|
const __vue_inject_styles__$1 = function (inject) {
|
|
11358
11404
|
if (!inject) return;
|
|
11359
|
-
inject("data-v-
|
|
11360
|
-
source: ".show-y-top-enter-active[data-v-
|
|
11405
|
+
inject("data-v-514b8f3d_0", {
|
|
11406
|
+
source: ".show-y-top-enter-active[data-v-514b8f3d],.show-y-top-leave-enter[data-v-514b8f3d]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-514b8f3d],.show-y-top-leave-to[data-v-514b8f3d]{opacity:0;transform:translateY(-2%)}",
|
|
11361
11407
|
map: undefined,
|
|
11362
11408
|
media: undefined
|
|
11363
|
-
}), inject("data-v-
|
|
11364
|
-
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:
|
|
11409
|
+
}), inject("data-v-514b8f3d_1", {
|
|
11410
|
+
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}",
|
|
11365
11411
|
map: undefined,
|
|
11366
11412
|
media: undefined
|
|
11367
11413
|
});
|
|
11368
11414
|
};
|
|
11369
11415
|
/* scoped */
|
|
11370
|
-
const __vue_scope_id__$1 = "data-v-
|
|
11416
|
+
const __vue_scope_id__$1 = "data-v-514b8f3d";
|
|
11371
11417
|
/* module identifier */
|
|
11372
11418
|
const __vue_module_identifier__$1 = undefined;
|
|
11373
11419
|
/* functional template */
|