vue-intergrall-plugins 0.0.232 → 0.0.235
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/dist/vue-intergrall-plugins.esm.js +116 -12
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +86 -22
- package/package.json +1 -1
- package/src/lib-components/Email/EmailFile.vue +16 -21
- package/src/lib-components/Messages/ChatMessages.vue +2 -0
- package/src/lib-components/Messages/InteratividadeFormulario.vue +130 -8
|
@@ -2379,6 +2379,13 @@ function returnMessageWithHexa(originalMessage) {
|
|
|
2379
2379
|
|
|
2380
2380
|
return output;
|
|
2381
2381
|
}
|
|
2382
|
+
function formataData(data) {
|
|
2383
|
+
if (!data || data == '1111-11-11') return '';
|
|
2384
|
+
data = data.split("-");
|
|
2385
|
+
data = data.reverse();
|
|
2386
|
+
data = data.join("/");
|
|
2387
|
+
return data;
|
|
2388
|
+
}
|
|
2382
2389
|
function formataDataHora(dataHora, origem, cortarSegundos, dicionario) {
|
|
2383
2390
|
dicionario = dicionario ? dicionario : {
|
|
2384
2391
|
msg_divisao_data_hora: ' - '
|
|
@@ -11457,6 +11464,11 @@ var script$b = {
|
|
|
11457
11464
|
type: Object,
|
|
11458
11465
|
required: true
|
|
11459
11466
|
},
|
|
11467
|
+
infoCanal: {
|
|
11468
|
+
type: [Object, Array],
|
|
11469
|
+
required: false,
|
|
11470
|
+
default: {}
|
|
11471
|
+
},
|
|
11460
11472
|
dominio: {
|
|
11461
11473
|
type: String,
|
|
11462
11474
|
required: true
|
|
@@ -11470,6 +11482,37 @@ var script$b = {
|
|
|
11470
11482
|
required: false
|
|
11471
11483
|
}
|
|
11472
11484
|
},
|
|
11485
|
+
computed: {
|
|
11486
|
+
situation() {
|
|
11487
|
+
try {
|
|
11488
|
+
const {
|
|
11489
|
+
SITUACAO
|
|
11490
|
+
} = this.infoCanal;
|
|
11491
|
+
return SITUACAO ? SITUACAO : null;
|
|
11492
|
+
} catch (e) {
|
|
11493
|
+
console.error("Erro ao gerar a situacao do atendimento");
|
|
11494
|
+
console.error(e);
|
|
11495
|
+
}
|
|
11496
|
+
},
|
|
11497
|
+
|
|
11498
|
+
deadline() {
|
|
11499
|
+
try {
|
|
11500
|
+
const {
|
|
11501
|
+
PRAZO,
|
|
11502
|
+
NOME_CAMPO_PRAZO
|
|
11503
|
+
} = this.infoCanal;
|
|
11504
|
+
return {
|
|
11505
|
+
text: PRAZO ? formataData(PRAZO) : "---",
|
|
11506
|
+
title: NOME_CAMPO_PRAZO ? NOME_CAMPO_PRAZO : this.dictionary.tit_prazo
|
|
11507
|
+
};
|
|
11508
|
+
} catch (e) {
|
|
11509
|
+
console.error("Erro ao gerar o prazo do atendimento");
|
|
11510
|
+
console.error(e);
|
|
11511
|
+
return {};
|
|
11512
|
+
}
|
|
11513
|
+
}
|
|
11514
|
+
|
|
11515
|
+
},
|
|
11473
11516
|
|
|
11474
11517
|
mounted() {
|
|
11475
11518
|
if (this.validateInterativity()) {
|
|
@@ -11528,6 +11571,20 @@ var script$b = {
|
|
|
11528
11571
|
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
11529
11572
|
console.error(e);
|
|
11530
11573
|
}
|
|
11574
|
+
},
|
|
11575
|
+
|
|
11576
|
+
verificaInfos(text) {
|
|
11577
|
+
if (typeof text === 'string') {
|
|
11578
|
+
return text;
|
|
11579
|
+
}
|
|
11580
|
+
|
|
11581
|
+
if (typeof text === 'object') {
|
|
11582
|
+
return text.desc;
|
|
11583
|
+
}
|
|
11584
|
+
},
|
|
11585
|
+
|
|
11586
|
+
formataDataHora(date) {
|
|
11587
|
+
return formataDataHora(date);
|
|
11531
11588
|
}
|
|
11532
11589
|
|
|
11533
11590
|
}
|
|
@@ -11546,9 +11603,46 @@ var __vue_render__$b = function () {
|
|
|
11546
11603
|
|
|
11547
11604
|
return _c('div', {
|
|
11548
11605
|
staticClass: "interatividade"
|
|
11549
|
-
}, [_vm.
|
|
11550
|
-
staticClass: "
|
|
11551
|
-
}, [_vm.
|
|
11606
|
+
}, [Object.keys(_vm.infoCanal).length > 0 ? _c('div', [_c('div', {
|
|
11607
|
+
staticClass: "d-flex overflow-hidden mt-10 w-100 d-flex flex-wrap"
|
|
11608
|
+
}, [_vm.situation || _vm.deadline.text ? _c('div', {
|
|
11609
|
+
staticClass: "d-flex-center flex-column w-100 border-radius-10 border-1 bg-dark-white-2 border-color-gray p-10 mb-10",
|
|
11610
|
+
style: "" + (_vm.situation && _vm.situation.cor ? "border: 1px solid " + _vm.situation.cor : '')
|
|
11611
|
+
}, [_c('div', {
|
|
11612
|
+
staticClass: "d-flex w-100 mb-5"
|
|
11613
|
+
}, [_vm.situation ? _c('strong', {
|
|
11614
|
+
staticClass: "text-ellipsis text-left fs-_85",
|
|
11615
|
+
domProps: {
|
|
11616
|
+
"textContent": _vm._s(_vm.dictionary.chip_situacao + ":")
|
|
11617
|
+
}
|
|
11618
|
+
}) : _vm._e(), _vm._v(" "), _vm.situation ? _c('span', {
|
|
11619
|
+
staticClass: "ml-5 text-left fs-_85 text-shadow",
|
|
11620
|
+
style: "color: " + _vm.situation.cor,
|
|
11621
|
+
domProps: {
|
|
11622
|
+
"textContent": _vm._s(_vm.verificaInfos(_vm.situation))
|
|
11623
|
+
}
|
|
11624
|
+
}) : _vm._e()]), _vm._v(" "), _vm.deadline.text ? _c('div', {
|
|
11625
|
+
staticClass: "d-flex w-100"
|
|
11626
|
+
}, [_c('strong', {
|
|
11627
|
+
staticClass: "text-ellipsis text-left fs-_75",
|
|
11628
|
+
domProps: {
|
|
11629
|
+
"textContent": _vm._s(_vm.deadline.title + ":")
|
|
11630
|
+
}
|
|
11631
|
+
}), _vm._v(" "), _c('span', {
|
|
11632
|
+
staticClass: "ml-5 text-nowrap text-left fs-_75",
|
|
11633
|
+
domProps: {
|
|
11634
|
+
"textContent": _vm._s(_vm.deadline.text)
|
|
11635
|
+
}
|
|
11636
|
+
})]) : _vm._e()]) : _vm._e()])]) : _vm._e(), _vm._v(" "), _vm.informacao.length ? [_c('div', {
|
|
11637
|
+
staticClass: "interatividade-form-header d-flex justify-content-between"
|
|
11638
|
+
}, [_vm._v("\n " + _vm._s(_vm.dictionary.msg_abertura_reclamacao) + "\n "), _c('span', {
|
|
11639
|
+
staticClass: "d-flex-center"
|
|
11640
|
+
}, [_c('fa-icon', {
|
|
11641
|
+
staticClass: "mr-5",
|
|
11642
|
+
attrs: {
|
|
11643
|
+
"icon": ['fas', 'calendar']
|
|
11644
|
+
}
|
|
11645
|
+
}), _vm._v("\n " + _vm._s(_vm.formataDataHora(_vm.infoCanal.DATA_ABERTURA)) + "\n ")], 1)]), _vm._v(" "), _c('div', {
|
|
11552
11646
|
staticClass: "interatividade-form-body"
|
|
11553
11647
|
}, [_vm._l(_vm.informacao, function (form) {
|
|
11554
11648
|
return _c('div', {
|
|
@@ -11655,8 +11749,8 @@ var __vue_staticRenderFns__$b = [];
|
|
|
11655
11749
|
|
|
11656
11750
|
const __vue_inject_styles__$b = function (inject) {
|
|
11657
11751
|
if (!inject) return;
|
|
11658
|
-
inject("data-v-
|
|
11659
|
-
source: ".show-x-enter-active[data-v-
|
|
11752
|
+
inject("data-v-962ec7d8_0", {
|
|
11753
|
+
source: ".show-x-enter-active[data-v-962ec7d8],.show-x-leave-enter[data-v-962ec7d8]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-962ec7d8],.show-x-leave-to[data-v-962ec7d8]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-962ec7d8]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-962ec7d8]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-962ec7d8]{background-color:#efefef;margin-top:5px;border-top-right-radius:10px;border-top-left-radius:10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;justify-content:space-between;display:flex;color:#333;font-weight:700;font-size:.9rem}.interatividade-form-body[data-v-962ec7d8]{padding:0 10px;background:#fff;border-right:1px solid #efefef;border-left:1px solid #efefef;border-bottom-left-radius:10px;border-bottom-right-radius:10px;padding-bottom:10px}.interatividade[data-v-962ec7d8]{margin:10px 0}.interatividade-titulo-form[data-v-962ec7d8]{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden;max-width:100%;margin:0;padding:0;padding-top:5px}.interatividade-description-form[data-v-962ec7d8]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-962ec7d8]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-962ec7d8]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-962ec7d8]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-962ec7d8]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-962ec7d8]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-962ec7d8]:hover{color:#00628f}.text-blue[data-v-962ec7d8]{color:#294ed3}.text-red[data-v-962ec7d8]{color:#e74c3c}.text-dark[data-v-962ec7d8]{color:#333}.ml-3[data-v-962ec7d8]{margin-left:3px}.fs-2[data-v-962ec7d8]{font-size:2rem}.flex-wrap[data-v-962ec7d8]{flex-wrap:wrap}.align-items-center[data-v-962ec7d8]{align-items:center}.d-flex[data-v-962ec7d8]{display:flex}.align-items-end[data-v-962ec7d8]{align-items:flex-end}.flex-column[data-v-962ec7d8]{flex-direction:column}.text-bold[data-v-962ec7d8]{font-weight:700}.m-5[data-v-962ec7d8]{margin:5px}.mb-5[data-v-962ec7d8]{margin-bottom:5px}.mx-5[data-v-962ec7d8]{margin-left:5px;margin-right:5px}.cursor-pointer[data-v-962ec7d8]{cursor:pointer}.bg-dark-white-2[data-v-962ec7d8]{background-color:#f7f7f7}.border-radius-10[data-v-962ec7d8]{border-radius:10px}.w-100[data-v-962ec7d8]{width:100%}.overflow-hidden[data-v-962ec7d8]{overflow:hidden}.mt-10[data-v-962ec7d8]{margin-top:10px}.flex-wrap[data-v-962ec7d8]{flex-wrap:wrap}.d-flex[data-v-962ec7d8]{display:flex}.p-10[data-v-962ec7d8]{padding:10px}.mb-5[data-v-962ec7d8]{margin-bottom:5px}.mb-10[data-v-962ec7d8]{margin-bottom:10px}.mx-10[data-v-962ec7d8]{margin-left:10px;margin-right:10px}.d-flex-center[data-v-962ec7d8]{display:flex;justify-content:center;align-items:center}.fs-_85[data-v-962ec7d8]{font-size:.85rem}.text-ellipsis[data-v-962ec7d8]{text-overflow:ellipsis}.text-left[data-v-962ec7d8]{text-align:left}.text-ellipsis[data-v-962ec7d8]{white-space:nowrap;overflow:hidden}.ml-5[data-v-962ec7d8]{margin-left:5px}.text-shadow[data-v-962ec7d8]{text-shadow:0 0 #000}.justify-content-between[data-v-962ec7d8]{justify-content:space-between}.mr-5[data-v-962ec7d8]{margin-right:5px}",
|
|
11660
11754
|
map: undefined,
|
|
11661
11755
|
media: undefined
|
|
11662
11756
|
});
|
|
@@ -11664,7 +11758,7 @@ const __vue_inject_styles__$b = function (inject) {
|
|
|
11664
11758
|
/* scoped */
|
|
11665
11759
|
|
|
11666
11760
|
|
|
11667
|
-
const __vue_scope_id__$b = "data-v-
|
|
11761
|
+
const __vue_scope_id__$b = "data-v-962ec7d8";
|
|
11668
11762
|
/* module identifier */
|
|
11669
11763
|
|
|
11670
11764
|
const __vue_module_identifier__$b = undefined;
|
|
@@ -12705,6 +12799,15 @@ var script$5 = {
|
|
|
12705
12799
|
center: {},
|
|
12706
12800
|
marker: {},
|
|
12707
12801
|
infos: [],
|
|
12802
|
+
infoCanalTeste: {
|
|
12803
|
+
PRAZO: "2022-05-05",
|
|
12804
|
+
SITUACAO: {
|
|
12805
|
+
cod: "3",
|
|
12806
|
+
desc: "Em analise pelo fornecedor",
|
|
12807
|
+
cor: "#03A64A"
|
|
12808
|
+
},
|
|
12809
|
+
DATA_ABERTURA: "2022-05-03 09:43:43"
|
|
12810
|
+
},
|
|
12708
12811
|
mapOptions: {
|
|
12709
12812
|
zoomControl: true,
|
|
12710
12813
|
mapTypeControl: false,
|
|
@@ -12898,6 +13001,7 @@ var __vue_render__$5 = function () {
|
|
|
12898
13001
|
attrs: {
|
|
12899
13002
|
"interatividade": _vm.interatividade,
|
|
12900
13003
|
"dominio": _vm.dominio,
|
|
13004
|
+
"infoCanal": _vm.infoCanalTeste,
|
|
12901
13005
|
"anexos": _vm.anexos,
|
|
12902
13006
|
"dictionary": _vm.dictionary
|
|
12903
13007
|
}
|
|
@@ -13165,7 +13269,7 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
13165
13269
|
|
|
13166
13270
|
const __vue_inject_styles__$5 = function (inject) {
|
|
13167
13271
|
if (!inject) return;
|
|
13168
|
-
inject("data-v-
|
|
13272
|
+
inject("data-v-352d39fe_0", {
|
|
13169
13273
|
source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.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:.85rem;word-break:break-word}.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-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:.6rem;color:#67a332;width:.9rem;height:.9rem;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:.7rem}.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:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.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:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.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:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
|
|
13170
13274
|
map: undefined,
|
|
13171
13275
|
media: undefined
|
|
@@ -13638,7 +13742,7 @@ var __vue_render__$1 = function () {
|
|
|
13638
13742
|
key: "file-loader"
|
|
13639
13743
|
}) : _c('div', {
|
|
13640
13744
|
key: "file-container",
|
|
13641
|
-
staticClass: "mb-5 mx-5 d-flex flex-wrap align-items-
|
|
13745
|
+
staticClass: "mb-5 mx-5 d-flex flex-wrap align-items-center"
|
|
13642
13746
|
}, [_vm.imageURL ? _c('span', {
|
|
13643
13747
|
staticClass: "anexo-img box-shadow",
|
|
13644
13748
|
attrs: {
|
|
@@ -13655,7 +13759,7 @@ var __vue_render__$1 = function () {
|
|
|
13655
13759
|
"alt": _vm.filename
|
|
13656
13760
|
}
|
|
13657
13761
|
})]) : _c('span', {
|
|
13658
|
-
staticClass: "anexo-icone",
|
|
13762
|
+
staticClass: "anexo-icone mr-5",
|
|
13659
13763
|
class: [_vm.iconClass],
|
|
13660
13764
|
attrs: {
|
|
13661
13765
|
"title": "Visualizar " + _vm.filename,
|
|
@@ -13689,8 +13793,8 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
13689
13793
|
|
|
13690
13794
|
const __vue_inject_styles__$1 = function (inject) {
|
|
13691
13795
|
if (!inject) return;
|
|
13692
|
-
inject("data-v-
|
|
13693
|
-
source: ".anexo-img[data-v-
|
|
13796
|
+
inject("data-v-df17eba8_0", {
|
|
13797
|
+
source: ".mr-5[data-v-df17eba8]{margin-right:5px}.anexo-img[data-v-df17eba8]{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[data-v-df17eba8]:hover{opacity:1}.anexo-img img[data-v-df17eba8]{width:95%;max-height:50px}.box-shadow[data-v-df17eba8]{-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[data-v-df17eba8]{display:flex;justify-content:center;align-items:center;font-size:30px;cursor:pointer}.anexo-icone[data-v-df17eba8]:hover{opacity:1}.anexo-icone[data-v-df17eba8]:visited{color:inherit}.anexo-icone.pdf[data-v-df17eba8]{position:relative}.anexo-icone.pdf svg[data-v-df17eba8]{color:#e74c3c}.anexo-icone.pdf[data-v-df17eba8]::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px}.anexo-icone.doc[data-v-df17eba8]{color:#15517f}.anexo-icone.doc[data-v-df17eba8]::after{content:\"\";position:absolute;width:20px;height:20px}.align-items-center[data-v-df17eba8]{align-items:center}.flex-wrap[data-v-df17eba8]{flex-wrap:wrap}.d-flex[data-v-df17eba8]{display:flex}.mb-5[data-v-df17eba8]{margin-bottom:5px}.mx-5[data-v-df17eba8]{margin-left:5px;margin-right:5px}",
|
|
13694
13798
|
map: undefined,
|
|
13695
13799
|
media: undefined
|
|
13696
13800
|
});
|
|
@@ -13698,7 +13802,7 @@ const __vue_inject_styles__$1 = function (inject) {
|
|
|
13698
13802
|
/* scoped */
|
|
13699
13803
|
|
|
13700
13804
|
|
|
13701
|
-
const __vue_scope_id__$1 = "data-v-
|
|
13805
|
+
const __vue_scope_id__$1 = "data-v-df17eba8";
|
|
13702
13806
|
/* module identifier */
|
|
13703
13807
|
|
|
13704
13808
|
const __vue_module_identifier__$1 = undefined;
|