vue-intergrall-plugins 0.0.232 → 0.0.233
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 +104 -10
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +79 -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 +117 -7
|
@@ -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,8 +11482,41 @@ 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() {
|
|
11518
|
+
console.log(this.infoCanal);
|
|
11519
|
+
|
|
11475
11520
|
if (this.validateInterativity()) {
|
|
11476
11521
|
this.verifyInfoAditional();
|
|
11477
11522
|
}
|
|
@@ -11528,6 +11573,16 @@ var script$b = {
|
|
|
11528
11573
|
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
11529
11574
|
console.error(e);
|
|
11530
11575
|
}
|
|
11576
|
+
},
|
|
11577
|
+
|
|
11578
|
+
verificaInfos(text) {
|
|
11579
|
+
if (typeof text === 'string') {
|
|
11580
|
+
return text;
|
|
11581
|
+
}
|
|
11582
|
+
|
|
11583
|
+
if (typeof text === 'object') {
|
|
11584
|
+
return text.desc;
|
|
11585
|
+
}
|
|
11531
11586
|
}
|
|
11532
11587
|
|
|
11533
11588
|
}
|
|
@@ -11546,7 +11601,37 @@ var __vue_render__$b = function () {
|
|
|
11546
11601
|
|
|
11547
11602
|
return _c('div', {
|
|
11548
11603
|
staticClass: "interatividade"
|
|
11549
|
-
}, [_vm.
|
|
11604
|
+
}, [Object.keys(_vm.infoCanal).length > 0 ? _c('div', [_c('div', {
|
|
11605
|
+
staticClass: "d-flex overflow-hidden mt-10 w-100 d-flex flex-wrap"
|
|
11606
|
+
}, [_vm.situation || _vm.deadline.text ? _c('div', {
|
|
11607
|
+
staticClass: "d-flex-center flex-column w-100 border-radius-10 border-1 bg-dark-white-2 border-color-gray p-10 mb-10",
|
|
11608
|
+
style: "" + (_vm.situation && _vm.situation.cor ? "border: 1px solid " + _vm.situation.cor : '')
|
|
11609
|
+
}, [_c('div', {
|
|
11610
|
+
staticClass: "d-flex w-100 mb-5"
|
|
11611
|
+
}, [_vm.situation ? _c('strong', {
|
|
11612
|
+
staticClass: "text-ellipsis text-left fs-_85",
|
|
11613
|
+
domProps: {
|
|
11614
|
+
"textContent": _vm._s(_vm.dictionary.chip_situacao + ":")
|
|
11615
|
+
}
|
|
11616
|
+
}) : _vm._e(), _vm._v(" "), _vm.situation ? _c('span', {
|
|
11617
|
+
staticClass: "ml-5 text-left fs-_85 text-shadow",
|
|
11618
|
+
style: "color: " + _vm.situation.cor,
|
|
11619
|
+
domProps: {
|
|
11620
|
+
"textContent": _vm._s(_vm.verificaInfos(_vm.situation))
|
|
11621
|
+
}
|
|
11622
|
+
}) : _vm._e()]), _vm._v(" "), _vm.deadline.text ? _c('div', {
|
|
11623
|
+
staticClass: "d-flex w-100"
|
|
11624
|
+
}, [_c('strong', {
|
|
11625
|
+
staticClass: "text-ellipsis text-left fs-_75",
|
|
11626
|
+
domProps: {
|
|
11627
|
+
"textContent": _vm._s(_vm.deadline.title + ":")
|
|
11628
|
+
}
|
|
11629
|
+
}), _vm._v(" "), _c('span', {
|
|
11630
|
+
staticClass: "ml-5 text-nowrap text-left fs-_75",
|
|
11631
|
+
domProps: {
|
|
11632
|
+
"textContent": _vm._s(_vm.deadline.text)
|
|
11633
|
+
}
|
|
11634
|
+
})]) : _vm._e()]) : _vm._e()])]) : _vm._e(), _vm._v(" "), _vm.informacao.length ? [_c('div', {
|
|
11550
11635
|
staticClass: "interatividade-form-header"
|
|
11551
11636
|
}, [_vm._v("\n " + _vm._s(_vm.dictionary.msg_abertura_reclamacao) + "\n ")]), _vm._v(" "), _c('div', {
|
|
11552
11637
|
staticClass: "interatividade-form-body"
|
|
@@ -11655,8 +11740,8 @@ var __vue_staticRenderFns__$b = [];
|
|
|
11655
11740
|
|
|
11656
11741
|
const __vue_inject_styles__$b = function (inject) {
|
|
11657
11742
|
if (!inject) return;
|
|
11658
|
-
inject("data-v-
|
|
11659
|
-
source: ".show-x-enter-active[data-v-
|
|
11743
|
+
inject("data-v-61f7a677_0", {
|
|
11744
|
+
source: ".show-x-enter-active[data-v-61f7a677],.show-x-leave-enter[data-v-61f7a677]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-61f7a677],.show-x-leave-to[data-v-61f7a677]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-61f7a677]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-61f7a677]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-61f7a677]{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-61f7a677]{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-61f7a677]{margin:10px 0}.interatividade-titulo-form[data-v-61f7a677]{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-61f7a677]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-61f7a677]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-61f7a677]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-61f7a677]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-61f7a677]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-61f7a677]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-61f7a677]:hover{color:#00628f}.text-blue[data-v-61f7a677]{color:#294ed3}.text-red[data-v-61f7a677]{color:#e74c3c}.text-dark[data-v-61f7a677]{color:#333}.ml-3[data-v-61f7a677]{margin-left:3px}.fs-2[data-v-61f7a677]{font-size:2rem}.flex-wrap[data-v-61f7a677]{flex-wrap:wrap}.align-items-center[data-v-61f7a677]{align-items:center}.d-flex[data-v-61f7a677]{display:flex}.align-items-end[data-v-61f7a677]{align-items:flex-end}.flex-column[data-v-61f7a677]{flex-direction:column}.text-bold[data-v-61f7a677]{font-weight:700}.m-5[data-v-61f7a677]{margin:5px}.mb-5[data-v-61f7a677]{margin-bottom:5px}.mx-5[data-v-61f7a677]{margin-left:5px;margin-right:5px}.cursor-pointer[data-v-61f7a677]{cursor:pointer}.bg-dark-white-2[data-v-61f7a677]{background-color:#f7f7f7}.border-radius-10[data-v-61f7a677]{border-radius:10px}.w-100[data-v-61f7a677]{width:100%}.overflow-hidden[data-v-61f7a677]{overflow:hidden}.mt-10[data-v-61f7a677]{margin-top:10px}.flex-wrap[data-v-61f7a677]{flex-wrap:wrap}.d-flex[data-v-61f7a677]{display:flex}.p-10[data-v-61f7a677]{padding:10px}.mb-5[data-v-61f7a677]{margin-bottom:5px}.mb-10[data-v-61f7a677]{margin-bottom:10px}.mx-10[data-v-61f7a677]{margin-left:10px;margin-right:10px}.d-flex-center[data-v-61f7a677]{display:flex;justify-content:center;align-items:center}.fs-_85[data-v-61f7a677]{font-size:.85rem}.text-ellipsis[data-v-61f7a677]{text-overflow:ellipsis}.text-left[data-v-61f7a677]{text-align:left}.text-ellipsis[data-v-61f7a677]{white-space:nowrap;overflow:hidden}.ml-5[data-v-61f7a677]{margin-left:5px}.text-shadow[data-v-61f7a677]{text-shadow:0 0 #000}",
|
|
11660
11745
|
map: undefined,
|
|
11661
11746
|
media: undefined
|
|
11662
11747
|
});
|
|
@@ -11664,7 +11749,7 @@ const __vue_inject_styles__$b = function (inject) {
|
|
|
11664
11749
|
/* scoped */
|
|
11665
11750
|
|
|
11666
11751
|
|
|
11667
|
-
const __vue_scope_id__$b = "data-v-
|
|
11752
|
+
const __vue_scope_id__$b = "data-v-61f7a677";
|
|
11668
11753
|
/* module identifier */
|
|
11669
11754
|
|
|
11670
11755
|
const __vue_module_identifier__$b = undefined;
|
|
@@ -12705,6 +12790,14 @@ var script$5 = {
|
|
|
12705
12790
|
center: {},
|
|
12706
12791
|
marker: {},
|
|
12707
12792
|
infos: [],
|
|
12793
|
+
infoCanalTeste: {
|
|
12794
|
+
PRAZO: "2022-05-05",
|
|
12795
|
+
SITUACAO: {
|
|
12796
|
+
cod: "3",
|
|
12797
|
+
desc: "Em analise pelo fornecedor",
|
|
12798
|
+
cor: "#03A64A"
|
|
12799
|
+
}
|
|
12800
|
+
},
|
|
12708
12801
|
mapOptions: {
|
|
12709
12802
|
zoomControl: true,
|
|
12710
12803
|
mapTypeControl: false,
|
|
@@ -12898,6 +12991,7 @@ var __vue_render__$5 = function () {
|
|
|
12898
12991
|
attrs: {
|
|
12899
12992
|
"interatividade": _vm.interatividade,
|
|
12900
12993
|
"dominio": _vm.dominio,
|
|
12994
|
+
"infoCanal": _vm.infoCanalTeste,
|
|
12901
12995
|
"anexos": _vm.anexos,
|
|
12902
12996
|
"dictionary": _vm.dictionary
|
|
12903
12997
|
}
|
|
@@ -13165,7 +13259,7 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
13165
13259
|
|
|
13166
13260
|
const __vue_inject_styles__$5 = function (inject) {
|
|
13167
13261
|
if (!inject) return;
|
|
13168
|
-
inject("data-v-
|
|
13262
|
+
inject("data-v-cfb6e160_0", {
|
|
13169
13263
|
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
13264
|
map: undefined,
|
|
13171
13265
|
media: undefined
|
|
@@ -13638,7 +13732,7 @@ var __vue_render__$1 = function () {
|
|
|
13638
13732
|
key: "file-loader"
|
|
13639
13733
|
}) : _c('div', {
|
|
13640
13734
|
key: "file-container",
|
|
13641
|
-
staticClass: "mb-5 mx-5 d-flex flex-wrap align-items-
|
|
13735
|
+
staticClass: "mb-5 mx-5 d-flex flex-wrap align-items-center"
|
|
13642
13736
|
}, [_vm.imageURL ? _c('span', {
|
|
13643
13737
|
staticClass: "anexo-img box-shadow",
|
|
13644
13738
|
attrs: {
|
|
@@ -13655,7 +13749,7 @@ var __vue_render__$1 = function () {
|
|
|
13655
13749
|
"alt": _vm.filename
|
|
13656
13750
|
}
|
|
13657
13751
|
})]) : _c('span', {
|
|
13658
|
-
staticClass: "anexo-icone",
|
|
13752
|
+
staticClass: "anexo-icone mr-5",
|
|
13659
13753
|
class: [_vm.iconClass],
|
|
13660
13754
|
attrs: {
|
|
13661
13755
|
"title": "Visualizar " + _vm.filename,
|
|
@@ -13689,8 +13783,8 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
13689
13783
|
|
|
13690
13784
|
const __vue_inject_styles__$1 = function (inject) {
|
|
13691
13785
|
if (!inject) return;
|
|
13692
|
-
inject("data-v-
|
|
13693
|
-
source: ".anexo-img[data-v-
|
|
13786
|
+
inject("data-v-df17eba8_0", {
|
|
13787
|
+
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
13788
|
map: undefined,
|
|
13695
13789
|
media: undefined
|
|
13696
13790
|
});
|
|
@@ -13698,7 +13792,7 @@ const __vue_inject_styles__$1 = function (inject) {
|
|
|
13698
13792
|
/* scoped */
|
|
13699
13793
|
|
|
13700
13794
|
|
|
13701
|
-
const __vue_scope_id__$1 = "data-v-
|
|
13795
|
+
const __vue_scope_id__$1 = "data-v-df17eba8";
|
|
13702
13796
|
/* module identifier */
|
|
13703
13797
|
|
|
13704
13798
|
const __vue_module_identifier__$1 = undefined;
|