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
|
@@ -2321,6 +2321,13 @@ var mixin_1 = mixin;function returnMessageWithHexa(originalMessage) {
|
|
|
2321
2321
|
|
|
2322
2322
|
return output;
|
|
2323
2323
|
}
|
|
2324
|
+
function formataData(data) {
|
|
2325
|
+
if (!data || data == '1111-11-11') return '';
|
|
2326
|
+
data = data.split("-");
|
|
2327
|
+
data = data.reverse();
|
|
2328
|
+
data = data.join("/");
|
|
2329
|
+
return data;
|
|
2330
|
+
}
|
|
2324
2331
|
function formataDataHora(dataHora, origem, cortarSegundos, dicionario) {
|
|
2325
2332
|
dicionario = dicionario ? dicionario : {
|
|
2326
2333
|
msg_divisao_data_hora: ' - '
|
|
@@ -10588,8 +10595,7 @@ var __vue_component__$h = /*#__PURE__*/normalizeComponent({
|
|
|
10588
10595
|
staticRenderFns: __vue_staticRenderFns__$c
|
|
10589
10596
|
}, __vue_inject_styles__$c, __vue_script__$c, __vue_scope_id__$c, __vue_is_functional_template__$c, __vue_module_identifier__$c, false, undefined, createInjectorSSR, undefined);
|
|
10590
10597
|
|
|
10591
|
-
var InteratividadePopup = __vue_component__$h
|
|
10592
|
-
var script$b = {
|
|
10598
|
+
var InteratividadePopup = __vue_component__$h;var script$b = {
|
|
10593
10599
|
components: {
|
|
10594
10600
|
InteratividadePopup: InteratividadePopup
|
|
10595
10601
|
},
|
|
@@ -10604,6 +10610,11 @@ var script$b = {
|
|
|
10604
10610
|
type: Object,
|
|
10605
10611
|
required: true
|
|
10606
10612
|
},
|
|
10613
|
+
infoCanal: {
|
|
10614
|
+
type: [Object, Array],
|
|
10615
|
+
required: false,
|
|
10616
|
+
default: {}
|
|
10617
|
+
},
|
|
10607
10618
|
dominio: {
|
|
10608
10619
|
type: String,
|
|
10609
10620
|
required: true
|
|
@@ -10617,6 +10628,32 @@ var script$b = {
|
|
|
10617
10628
|
required: false
|
|
10618
10629
|
}
|
|
10619
10630
|
},
|
|
10631
|
+
computed: {
|
|
10632
|
+
situation: function situation() {
|
|
10633
|
+
try {
|
|
10634
|
+
var SITUACAO = this.infoCanal.SITUACAO;
|
|
10635
|
+
return SITUACAO ? SITUACAO : null;
|
|
10636
|
+
} catch (e) {
|
|
10637
|
+
console.error("Erro ao gerar a situacao do atendimento");
|
|
10638
|
+
console.error(e);
|
|
10639
|
+
}
|
|
10640
|
+
},
|
|
10641
|
+
deadline: function deadline() {
|
|
10642
|
+
try {
|
|
10643
|
+
var _this$infoCanal = this.infoCanal,
|
|
10644
|
+
PRAZO = _this$infoCanal.PRAZO,
|
|
10645
|
+
NOME_CAMPO_PRAZO = _this$infoCanal.NOME_CAMPO_PRAZO;
|
|
10646
|
+
return {
|
|
10647
|
+
text: PRAZO ? formataData(PRAZO) : "---",
|
|
10648
|
+
title: NOME_CAMPO_PRAZO ? NOME_CAMPO_PRAZO : this.dictionary.tit_prazo
|
|
10649
|
+
};
|
|
10650
|
+
} catch (e) {
|
|
10651
|
+
console.error("Erro ao gerar o prazo do atendimento");
|
|
10652
|
+
console.error(e);
|
|
10653
|
+
return {};
|
|
10654
|
+
}
|
|
10655
|
+
}
|
|
10656
|
+
},
|
|
10620
10657
|
mounted: function mounted() {
|
|
10621
10658
|
if (this.validateInterativity()) {
|
|
10622
10659
|
this.verifyInfoAditional();
|
|
@@ -10673,6 +10710,18 @@ var script$b = {
|
|
|
10673
10710
|
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
10674
10711
|
console.error(e);
|
|
10675
10712
|
}
|
|
10713
|
+
},
|
|
10714
|
+
verificaInfos: function verificaInfos(text) {
|
|
10715
|
+
if (typeof text === 'string') {
|
|
10716
|
+
return text;
|
|
10717
|
+
}
|
|
10718
|
+
|
|
10719
|
+
if (_typeof(text) === 'object') {
|
|
10720
|
+
return text.desc;
|
|
10721
|
+
}
|
|
10722
|
+
},
|
|
10723
|
+
formataDataHora: function formataDataHora$1(date) {
|
|
10724
|
+
return formataDataHora(date);
|
|
10676
10725
|
}
|
|
10677
10726
|
}
|
|
10678
10727
|
};/* script */
|
|
@@ -10688,16 +10737,21 @@ var __vue_render__$b = function __vue_render__() {
|
|
|
10688
10737
|
|
|
10689
10738
|
return _c('div', {
|
|
10690
10739
|
staticClass: "interatividade"
|
|
10691
|
-
}, [_vm.
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10740
|
+
}, [_vm._ssrNode((Object.keys(_vm.infoCanal).length > 0 ? "<div data-v-962ec7d8><div class=\"d-flex overflow-hidden mt-10 w-100 d-flex flex-wrap\" data-v-962ec7d8>" + (_vm.situation || _vm.deadline.text ? "<div class=\"d-flex-center flex-column w-100 border-radius-10 border-1 bg-dark-white-2 border-color-gray p-10 mb-10\"" + _vm._ssrStyle(null, "" + (_vm.situation && _vm.situation.cor ? "border: 1px solid " + _vm.situation.cor : ''), null) + " data-v-962ec7d8><div class=\"d-flex w-100 mb-5\" data-v-962ec7d8>" + (_vm.situation ? "<strong class=\"text-ellipsis text-left fs-_85\" data-v-962ec7d8>" + _vm._ssrEscape(_vm._s(_vm.dictionary.chip_situacao + ":")) + "</strong>" : "<!---->") + " " + (_vm.situation ? "<span class=\"ml-5 text-left fs-_85 text-shadow\"" + _vm._ssrStyle(null, "color: " + _vm.situation.cor, null) + " data-v-962ec7d8>" + _vm._ssrEscape(_vm._s(_vm.verificaInfos(_vm.situation))) + "</span>" : "<!---->") + "</div> " + (_vm.deadline.text ? "<div class=\"d-flex w-100\" data-v-962ec7d8><strong class=\"text-ellipsis text-left fs-_75\" data-v-962ec7d8>" + _vm._ssrEscape(_vm._s(_vm.deadline.title + ":")) + "</strong> <span class=\"ml-5 text-nowrap text-left fs-_75\" data-v-962ec7d8>" + _vm._ssrEscape(_vm._s(_vm.deadline.text)) + "</span></div>" : "<!---->") + "</div>" : "<!---->") + "</div></div>" : "<!---->") + " "), _vm.informacao.length ? [_vm._ssrNode("<div class=\"interatividade-form-header d-flex justify-content-between\" data-v-962ec7d8>", "</div>", [_vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_abertura_reclamacao) + "\n ")), _vm._ssrNode("<span class=\"d-flex-center\" data-v-962ec7d8>", "</span>", [_c('fa-icon', {
|
|
10741
|
+
staticClass: "mr-5",
|
|
10742
|
+
attrs: {
|
|
10743
|
+
"icon": ['fas', 'calendar']
|
|
10744
|
+
}
|
|
10745
|
+
}), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.formataDataHora(_vm.infoCanal.DATA_ABERTURA)) + "\n "))], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"interatividade-form-body\" data-v-962ec7d8>", "</div>", [_vm._ssrNode(_vm._ssrList(_vm.informacao, function (form) {
|
|
10746
|
+
return "<div class=\"interatividade-info-form\" data-v-962ec7d8>" + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-titulo-form\" data-v-962ec7d8>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO)) + "</p>" : "<!---->") + " " + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-description-form\" data-v-962ec7d8>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div>";
|
|
10747
|
+
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-962ec7d8>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_info_adicional) + "\n ") + "</div>" : "<!---->") + " <div class=\"interatividade-form-body\" data-v-962ec7d8>" + _vm._ssrList(_vm.informacaoAdicional, function (form) {
|
|
10748
|
+
return "<div class=\"interatividade-add-info-form\" data-v-962ec7d8><div class=\"divisor-form-info-aditional\" data-v-962ec7d8><div class=\"info-aditional\" data-v-962ec7d8>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-titulo-form\" data-v-962ec7d8>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO + ': ')) + "</p>" : "<!---->") + "</div> <div class=\"info-aditional\" data-v-962ec7d8>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-description-form\" data-v-962ec7d8>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div></div></div>";
|
|
10749
|
+
}) + "</div> <h3 class=\"m-5 text-bold\" data-v-962ec7d8>" + _vm._ssrEscape(_vm._s("Anexos")) + "</h3> "), _vm._ssrNode("<div class=\"d-flex flex-wrap align-items-center\" data-v-962ec7d8>", "</div>", _vm._l(_vm.anexos, function (ref, fileIndex) {
|
|
10696
10750
|
var name = ref.name;
|
|
10697
10751
|
var type = ref.type;
|
|
10698
10752
|
var mkuDownload = ref.mkuDownload;
|
|
10699
10753
|
var mku = ref.mku;
|
|
10700
|
-
return _vm._ssrNode("<div class=\"mb-5 mx-5 d-flex\" data-v-
|
|
10754
|
+
return _vm._ssrNode("<div class=\"mb-5 mx-5 d-flex\" data-v-962ec7d8>", "</div>", [!type ? _vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.dominio + "/callcenter/docs.php?mku=" + mku) + _vm._ssrAttr("alt", name) + _vm._ssrAttr("title", name) + " class=\"box-shadow max-w-75px max-h-75px cursor-pointer\" data-v-962ec7d8>", "</img>") : _c('fa-icon', {
|
|
10701
10755
|
class: _vm.returnCurrentClass(type),
|
|
10702
10756
|
attrs: {
|
|
10703
10757
|
"icon": _vm.returnCurrentIcon(type),
|
|
@@ -10708,12 +10762,12 @@ var __vue_render__$b = function __vue_render__() {
|
|
|
10708
10762
|
return _vm.openFile(mku, type);
|
|
10709
10763
|
}
|
|
10710
10764
|
}
|
|
10711
|
-
}), _vm._ssrNode(" "), _vm._ssrNode("<a" + _vm._ssrAttr("href", _vm.dominio + "/callcenter/docs.php?mku=" + mkuDownload) + _vm._ssrAttr("download", "" + name) + " target=\"_blank\" rel=\"noreferrer noopener\"" + _vm._ssrAttr("title", "Download " + name) + " class=\"d-flex align-items-end ml-3 text-dark\" data-v-
|
|
10765
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<a" + _vm._ssrAttr("href", _vm.dominio + "/callcenter/docs.php?mku=" + mkuDownload) + _vm._ssrAttr("download", "" + name) + " target=\"_blank\" rel=\"noreferrer noopener\"" + _vm._ssrAttr("title", "Download " + name) + " class=\"d-flex align-items-end ml-3 text-dark\" data-v-962ec7d8>", "</a>", [_c('fa-icon', {
|
|
10712
10766
|
attrs: {
|
|
10713
10767
|
"icon": ['fas', 'download']
|
|
10714
10768
|
}
|
|
10715
10769
|
})], 1)], 2);
|
|
10716
|
-
}), 0), _vm._ssrNode(" " + (!_vm.anexos.length ? "<p class=\"text-center mb-5\" data-v-
|
|
10770
|
+
}), 0), _vm._ssrNode(" " + (!_vm.anexos.length ? "<p class=\"text-center mb-5\" data-v-962ec7d8>" + _vm._ssrEscape(_vm._s("Sem anexos")) + "</p>" : "<!---->"))], 2)] : _vm._e()], 2);
|
|
10717
10771
|
};
|
|
10718
10772
|
|
|
10719
10773
|
var __vue_staticRenderFns__$b = [];
|
|
@@ -10721,8 +10775,8 @@ var __vue_staticRenderFns__$b = [];
|
|
|
10721
10775
|
|
|
10722
10776
|
var __vue_inject_styles__$b = function __vue_inject_styles__(inject) {
|
|
10723
10777
|
if (!inject) return;
|
|
10724
|
-
inject("data-v-
|
|
10725
|
-
source: ".show-x-enter-active[data-v-
|
|
10778
|
+
inject("data-v-962ec7d8_0", {
|
|
10779
|
+
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}",
|
|
10726
10780
|
map: undefined,
|
|
10727
10781
|
media: undefined
|
|
10728
10782
|
});
|
|
@@ -10730,10 +10784,10 @@ var __vue_inject_styles__$b = function __vue_inject_styles__(inject) {
|
|
|
10730
10784
|
/* scoped */
|
|
10731
10785
|
|
|
10732
10786
|
|
|
10733
|
-
var __vue_scope_id__$b = "data-v-
|
|
10787
|
+
var __vue_scope_id__$b = "data-v-962ec7d8";
|
|
10734
10788
|
/* module identifier */
|
|
10735
10789
|
|
|
10736
|
-
var __vue_module_identifier__$b = "data-v-
|
|
10790
|
+
var __vue_module_identifier__$b = "data-v-962ec7d8";
|
|
10737
10791
|
/* functional template */
|
|
10738
10792
|
|
|
10739
10793
|
var __vue_is_functional_template__$b = false;
|
|
@@ -11613,6 +11667,15 @@ var script$5 = {
|
|
|
11613
11667
|
center: {},
|
|
11614
11668
|
marker: {},
|
|
11615
11669
|
infos: [],
|
|
11670
|
+
infoCanalTeste: {
|
|
11671
|
+
PRAZO: "2022-05-05",
|
|
11672
|
+
SITUACAO: {
|
|
11673
|
+
cod: "3",
|
|
11674
|
+
desc: "Em analise pelo fornecedor",
|
|
11675
|
+
cor: "#03A64A"
|
|
11676
|
+
},
|
|
11677
|
+
DATA_ABERTURA: "2022-05-03 09:43:43"
|
|
11678
|
+
},
|
|
11616
11679
|
mapOptions: {
|
|
11617
11680
|
zoomControl: true,
|
|
11618
11681
|
mapTypeControl: false,
|
|
@@ -11783,6 +11846,7 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
11783
11846
|
attrs: {
|
|
11784
11847
|
"interatividade": _vm.interatividade,
|
|
11785
11848
|
"dominio": _vm.dominio,
|
|
11849
|
+
"infoCanal": _vm.infoCanalTeste,
|
|
11786
11850
|
"anexos": _vm.anexos,
|
|
11787
11851
|
"dictionary": _vm.dictionary
|
|
11788
11852
|
}
|
|
@@ -12050,7 +12114,7 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
12050
12114
|
|
|
12051
12115
|
var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
12052
12116
|
if (!inject) return;
|
|
12053
|
-
inject("data-v-
|
|
12117
|
+
inject("data-v-352d39fe_0", {
|
|
12054
12118
|
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}",
|
|
12055
12119
|
map: undefined,
|
|
12056
12120
|
media: undefined
|
|
@@ -12062,7 +12126,7 @@ var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
|
12062
12126
|
var __vue_scope_id__$5 = undefined;
|
|
12063
12127
|
/* module identifier */
|
|
12064
12128
|
|
|
12065
|
-
var __vue_module_identifier__$5 = "data-v-
|
|
12129
|
+
var __vue_module_identifier__$5 = "data-v-352d39fe";
|
|
12066
12130
|
/* functional template */
|
|
12067
12131
|
|
|
12068
12132
|
var __vue_is_functional_template__$5 = false;
|
|
@@ -12482,7 +12546,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
12482
12546
|
key: "file-loader"
|
|
12483
12547
|
}) : _c('div', {
|
|
12484
12548
|
key: "file-container",
|
|
12485
|
-
staticClass: "mb-5 mx-5 d-flex flex-wrap align-items-
|
|
12549
|
+
staticClass: "mb-5 mx-5 d-flex flex-wrap align-items-center"
|
|
12486
12550
|
}, [_vm.imageURL ? _c('span', {
|
|
12487
12551
|
staticClass: "anexo-img box-shadow",
|
|
12488
12552
|
attrs: {
|
|
@@ -12499,7 +12563,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
12499
12563
|
"alt": _vm.filename
|
|
12500
12564
|
}
|
|
12501
12565
|
})]) : _c('span', {
|
|
12502
|
-
staticClass: "anexo-icone",
|
|
12566
|
+
staticClass: "anexo-icone mr-5",
|
|
12503
12567
|
class: [_vm.iconClass],
|
|
12504
12568
|
attrs: {
|
|
12505
12569
|
"title": "Visualizar " + _vm.filename,
|
|
@@ -12533,8 +12597,8 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
12533
12597
|
|
|
12534
12598
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
12535
12599
|
if (!inject) return;
|
|
12536
|
-
inject("data-v-
|
|
12537
|
-
source: ".anexo-img[data-v-
|
|
12600
|
+
inject("data-v-df17eba8_0", {
|
|
12601
|
+
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}",
|
|
12538
12602
|
map: undefined,
|
|
12539
12603
|
media: undefined
|
|
12540
12604
|
});
|
|
@@ -12542,10 +12606,10 @@ var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
|
12542
12606
|
/* scoped */
|
|
12543
12607
|
|
|
12544
12608
|
|
|
12545
|
-
var __vue_scope_id__$1 = "data-v-
|
|
12609
|
+
var __vue_scope_id__$1 = "data-v-df17eba8";
|
|
12546
12610
|
/* module identifier */
|
|
12547
12611
|
|
|
12548
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
12612
|
+
var __vue_module_identifier__$1 = "data-v-df17eba8";
|
|
12549
12613
|
/* functional template */
|
|
12550
12614
|
|
|
12551
12615
|
var __vue_is_functional_template__$1 = false;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<transition-group name="fade" mode="out-in">
|
|
3
3
|
<VueLoader v-if="isLoading" key="file-loader" />
|
|
4
|
-
<div v-else key="file-container" class="mb-5 mx-5 d-flex flex-wrap align-items-
|
|
4
|
+
<div v-else key="file-container" class="mb-5 mx-5 d-flex flex-wrap align-items-center">
|
|
5
5
|
<span v-if="imageURL" class="anexo-img box-shadow" @click="openWindowFromURL(imageURL, true)" :title="`Visualizar ${filename}`">
|
|
6
6
|
<img :src="`${imageURL}`" :alt="filename" />
|
|
7
7
|
</span>
|
|
8
8
|
<span
|
|
9
9
|
v-else
|
|
10
|
-
class="anexo-icone"
|
|
10
|
+
class="anexo-icone mr-5"
|
|
11
11
|
:class="[iconClass]"
|
|
12
12
|
@click="openWindowFromURL(docURL, false)"
|
|
13
13
|
:title="`Visualizar ${filename}`"
|
|
@@ -43,6 +43,9 @@ export default {
|
|
|
43
43
|
}
|
|
44
44
|
</script>
|
|
45
45
|
<style scoped>
|
|
46
|
+
.mr-5 {
|
|
47
|
+
margin-right: 5px;
|
|
48
|
+
}
|
|
46
49
|
.anexo-img {
|
|
47
50
|
display: flex;
|
|
48
51
|
justify-content: center;
|
|
@@ -68,21 +71,24 @@ export default {
|
|
|
68
71
|
-moz-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
69
72
|
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
70
73
|
}
|
|
74
|
+
.anexo-icone {
|
|
75
|
+
display: flex;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
align-items: center;
|
|
78
|
+
font-size: 30px;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
71
81
|
.anexo-icone:hover {
|
|
72
|
-
opacity: 1
|
|
82
|
+
opacity: 1
|
|
73
83
|
}
|
|
74
84
|
.anexo-icone:visited {
|
|
75
85
|
color: inherit;
|
|
76
86
|
}
|
|
77
|
-
.anexo-icone svg {
|
|
78
|
-
font-size: 30px;
|
|
79
|
-
z-index: 1;
|
|
80
|
-
}
|
|
81
87
|
.anexo-icone.pdf {
|
|
82
88
|
position: relative;
|
|
83
89
|
}
|
|
84
|
-
.anexo-icone.pdf svg{
|
|
85
|
-
|
|
90
|
+
.anexo-icone.pdf svg {
|
|
91
|
+
color: rgb(231, 76, 60);
|
|
86
92
|
}
|
|
87
93
|
.anexo-icone.pdf::after {
|
|
88
94
|
content: "";
|
|
@@ -91,7 +97,6 @@ export default {
|
|
|
91
97
|
transform: translateY(2px);
|
|
92
98
|
width: 20px;
|
|
93
99
|
height: 20px;
|
|
94
|
-
background-color: #FFF;
|
|
95
100
|
}
|
|
96
101
|
.anexo-icone.doc {
|
|
97
102
|
color: #15517F;
|
|
@@ -101,20 +106,10 @@ export default {
|
|
|
101
106
|
position: absolute;
|
|
102
107
|
width: 20px;
|
|
103
108
|
height: 20px;
|
|
104
|
-
background-color: #FFF;
|
|
105
109
|
}
|
|
106
|
-
.
|
|
107
|
-
opacity: .9;
|
|
108
|
-
transition: opacity 200ms;
|
|
109
|
-
color: #222;
|
|
110
|
-
cursor: pointer;
|
|
111
|
-
display: flex;
|
|
112
|
-
justify-content: center;
|
|
110
|
+
.align-items-center {
|
|
113
111
|
align-items: center;
|
|
114
112
|
}
|
|
115
|
-
.align-items-end {
|
|
116
|
-
align-items: flex-end;
|
|
117
|
-
}
|
|
118
113
|
.flex-wrap {
|
|
119
114
|
flex-wrap: wrap;
|
|
120
115
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
v-if="interatividade && validateInterativity()"
|
|
5
5
|
:interatividade="interatividade"
|
|
6
6
|
:dominio="dominio"
|
|
7
|
+
:infoCanal="infoCanalTeste"
|
|
7
8
|
:anexos="anexos"
|
|
8
9
|
:dictionary="dictionary"
|
|
9
10
|
/>
|
|
@@ -89,6 +90,7 @@ export default {
|
|
|
89
90
|
center: {},
|
|
90
91
|
marker: {},
|
|
91
92
|
infos: [],
|
|
93
|
+
infoCanalTeste: {PRAZO: "2022-05-05", SITUACAO: {cod: "3", desc: "Em analise pelo fornecedor", cor: "#03A64A"}, DATA_ABERTURA: "2022-05-03 09:43:43"},
|
|
92
94
|
mapOptions: {
|
|
93
95
|
zoomControl: true,
|
|
94
96
|
mapTypeControl: false,
|
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="interatividade">
|
|
3
|
+
<div v-if="Object.keys(infoCanal).length > 0">
|
|
4
|
+
<!-- CHIPS -->
|
|
5
|
+
<div class="d-flex overflow-hidden mt-10 w-100 d-flex flex-wrap">
|
|
6
|
+
<div
|
|
7
|
+
v-if="situation || deadline.text"
|
|
8
|
+
class="d-flex-center flex-column w-100 border-radius-10 border-1 bg-dark-white-2 border-color-gray p-10 mb-10"
|
|
9
|
+
:style="`${situation && situation.cor ? `border: 1px solid ${situation.cor}` : ''}`"
|
|
10
|
+
>
|
|
11
|
+
<div class="d-flex w-100 mb-5">
|
|
12
|
+
<strong v-if="situation" class="text-ellipsis text-left fs-_85" v-text="`${dictionary.chip_situacao}:`"></strong>
|
|
13
|
+
<span v-if="situation" :style="`color: ${situation.cor}`" class="ml-5 text-left fs-_85 text-shadow" v-text="verificaInfos(situation)"></span>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="d-flex w-100" v-if="deadline.text">
|
|
16
|
+
<strong v-text="`${deadline.title}:`" class="text-ellipsis text-left fs-_75"></strong>
|
|
17
|
+
<span class="ml-5 text-nowrap text-left fs-_75" v-text="deadline.text"></span>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<!-- TABELA INTERATIVIDADE HO -->
|
|
3
23
|
<template v-if="informacao.length">
|
|
4
|
-
<div class="interatividade-form-header">
|
|
24
|
+
<div class="interatividade-form-header d-flex justify-content-between">
|
|
5
25
|
{{dictionary.msg_abertura_reclamacao}}
|
|
26
|
+
<span class="d-flex-center">
|
|
27
|
+
<fa-icon :icon="['fas', 'calendar']" class="mr-5" />
|
|
28
|
+
{{formataDataHora(infoCanal.DATA_ABERTURA)}}
|
|
29
|
+
</span>
|
|
6
30
|
</div>
|
|
7
31
|
<div class="interatividade-form-body">
|
|
8
32
|
<div v-for="(form) in informacao" :key="form.TIPO_TEXTO" class="interatividade-info-form">
|
|
@@ -41,6 +65,7 @@
|
|
|
41
65
|
</template>
|
|
42
66
|
<script>
|
|
43
67
|
import InteratividadePopup from './InteratividadePopup'
|
|
68
|
+
import { formataData, formataDataHora } from '../../services/textFormatting';
|
|
44
69
|
|
|
45
70
|
export default {
|
|
46
71
|
components: {InteratividadePopup},
|
|
@@ -55,6 +80,11 @@ export default {
|
|
|
55
80
|
type: Object,
|
|
56
81
|
required: true
|
|
57
82
|
},
|
|
83
|
+
infoCanal: {
|
|
84
|
+
type: [Object, Array],
|
|
85
|
+
required: false,
|
|
86
|
+
default: {}
|
|
87
|
+
},
|
|
58
88
|
dominio: {
|
|
59
89
|
type: String,
|
|
60
90
|
required: true
|
|
@@ -68,6 +98,27 @@ export default {
|
|
|
68
98
|
required: false
|
|
69
99
|
}
|
|
70
100
|
},
|
|
101
|
+
computed: {
|
|
102
|
+
situation() {
|
|
103
|
+
try {
|
|
104
|
+
const { SITUACAO } = this.infoCanal
|
|
105
|
+
return SITUACAO ? SITUACAO : null
|
|
106
|
+
}catch(e) {
|
|
107
|
+
console.error("Erro ao gerar a situacao do atendimento")
|
|
108
|
+
console.error(e)
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
deadline() {
|
|
112
|
+
try {
|
|
113
|
+
const { PRAZO, NOME_CAMPO_PRAZO } = this.infoCanal
|
|
114
|
+
return { text: PRAZO ? formataData(PRAZO) : "---", title: NOME_CAMPO_PRAZO ? NOME_CAMPO_PRAZO : this.dictionary.tit_prazo }
|
|
115
|
+
}catch(e) {
|
|
116
|
+
console.error("Erro ao gerar o prazo do atendimento")
|
|
117
|
+
console.error(e)
|
|
118
|
+
return {}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
},
|
|
71
122
|
mounted(){
|
|
72
123
|
if(this.validateInterativity()){
|
|
73
124
|
this.verifyInfoAditional();
|
|
@@ -116,6 +167,17 @@ export default {
|
|
|
116
167
|
console.error(e)
|
|
117
168
|
}
|
|
118
169
|
},
|
|
170
|
+
verificaInfos(text){
|
|
171
|
+
if(typeof text === 'string'){
|
|
172
|
+
return text;
|
|
173
|
+
}
|
|
174
|
+
if(typeof text === 'object'){
|
|
175
|
+
return text.desc;
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
formataDataHora(date){
|
|
179
|
+
return formataDataHora(date);
|
|
180
|
+
}
|
|
119
181
|
}
|
|
120
182
|
}
|
|
121
183
|
</script>
|
|
@@ -233,24 +295,20 @@ export default {
|
|
|
233
295
|
font-size: 2rem;
|
|
234
296
|
}
|
|
235
297
|
.flex-wrap {
|
|
236
|
-
-ms-flex-wrap: wrap;
|
|
237
298
|
flex-wrap: wrap;
|
|
238
299
|
}
|
|
239
300
|
.align-items-center {
|
|
240
|
-
-webkit-box-align: center;
|
|
241
|
-
-ms-flex-align: center;
|
|
242
301
|
align-items: center;
|
|
243
302
|
}
|
|
244
303
|
.d-flex {
|
|
245
|
-
display: -webkit-box;
|
|
246
|
-
display: -ms-flexbox;
|
|
247
304
|
display: flex;
|
|
248
305
|
}
|
|
249
306
|
.align-items-end {
|
|
250
|
-
-webkit-box-align: end;
|
|
251
|
-
-ms-flex-align: end;
|
|
252
307
|
align-items: flex-end;
|
|
253
308
|
}
|
|
309
|
+
.flex-column {
|
|
310
|
+
flex-direction: column;
|
|
311
|
+
}
|
|
254
312
|
.text-bold {
|
|
255
313
|
font-weight: bold;
|
|
256
314
|
}
|
|
@@ -267,4 +325,68 @@ export default {
|
|
|
267
325
|
.cursor-pointer {
|
|
268
326
|
cursor: pointer;
|
|
269
327
|
}
|
|
328
|
+
.bg-dark-white-2 {
|
|
329
|
+
background-color: #f7f7f7;
|
|
330
|
+
}
|
|
331
|
+
.border-radius-10 {
|
|
332
|
+
border-radius: 10px;
|
|
333
|
+
}
|
|
334
|
+
.w-100 {
|
|
335
|
+
width: 100%;
|
|
336
|
+
}
|
|
337
|
+
.overflow-hidden {
|
|
338
|
+
overflow: hidden;
|
|
339
|
+
}
|
|
340
|
+
.mt-10 {
|
|
341
|
+
margin-top: 10px;
|
|
342
|
+
}
|
|
343
|
+
.flex-wrap {
|
|
344
|
+
flex-wrap: wrap;
|
|
345
|
+
}
|
|
346
|
+
.d-flex {
|
|
347
|
+
display: flex;
|
|
348
|
+
}
|
|
349
|
+
.p-10 {
|
|
350
|
+
padding: 10px;
|
|
351
|
+
}
|
|
352
|
+
.mb-5 {
|
|
353
|
+
margin-bottom: 5px;
|
|
354
|
+
}
|
|
355
|
+
.mb-10 {
|
|
356
|
+
margin-bottom: 10px;
|
|
357
|
+
}
|
|
358
|
+
.mx-10 {
|
|
359
|
+
margin-left: 10px;
|
|
360
|
+
margin-right: 10px;
|
|
361
|
+
}
|
|
362
|
+
.d-flex-center {
|
|
363
|
+
display: flex;
|
|
364
|
+
justify-content: center;
|
|
365
|
+
align-items: center;
|
|
366
|
+
}
|
|
367
|
+
.fs-_85 {
|
|
368
|
+
font-size: .85rem;
|
|
369
|
+
}
|
|
370
|
+
.text-ellipsis {
|
|
371
|
+
text-overflow: ellipsis;
|
|
372
|
+
}
|
|
373
|
+
.text-left {
|
|
374
|
+
text-align: left;
|
|
375
|
+
}
|
|
376
|
+
.text-ellipsis {
|
|
377
|
+
white-space: nowrap;
|
|
378
|
+
overflow: hidden;
|
|
379
|
+
}
|
|
380
|
+
.ml-5 {
|
|
381
|
+
margin-left: 5px;
|
|
382
|
+
}
|
|
383
|
+
.text-shadow {
|
|
384
|
+
text-shadow: 0 0 #000;
|
|
385
|
+
}
|
|
386
|
+
.justify-content-between{
|
|
387
|
+
justify-content: space-between;
|
|
388
|
+
}
|
|
389
|
+
.mr-5 {
|
|
390
|
+
margin-right: 5px;
|
|
391
|
+
}
|
|
270
392
|
</style>
|