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
|
@@ -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,7 +10628,35 @@ 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() {
|
|
10658
|
+
console.log(this.infoCanal);
|
|
10659
|
+
|
|
10621
10660
|
if (this.validateInterativity()) {
|
|
10622
10661
|
this.verifyInfoAditional();
|
|
10623
10662
|
}
|
|
@@ -10673,6 +10712,15 @@ var script$b = {
|
|
|
10673
10712
|
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
10674
10713
|
console.error(e);
|
|
10675
10714
|
}
|
|
10715
|
+
},
|
|
10716
|
+
verificaInfos: function verificaInfos(text) {
|
|
10717
|
+
if (typeof text === 'string') {
|
|
10718
|
+
return text;
|
|
10719
|
+
}
|
|
10720
|
+
|
|
10721
|
+
if (_typeof(text) === 'object') {
|
|
10722
|
+
return text.desc;
|
|
10723
|
+
}
|
|
10676
10724
|
}
|
|
10677
10725
|
}
|
|
10678
10726
|
};/* script */
|
|
@@ -10688,16 +10736,16 @@ var __vue_render__$b = function __vue_render__() {
|
|
|
10688
10736
|
|
|
10689
10737
|
return _c('div', {
|
|
10690
10738
|
staticClass: "interatividade"
|
|
10691
|
-
}, [_vm.informacao.length ? [_vm._ssrNode("<div class=\"interatividade-form-header\" data-v-
|
|
10692
|
-
return "<div class=\"interatividade-info-form\" data-v-
|
|
10693
|
-
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-
|
|
10694
|
-
return "<div class=\"interatividade-add-info-form\" data-v-
|
|
10695
|
-
}) + "</div> <h3 class=\"m-5 text-bold\" data-v-
|
|
10739
|
+
}, [_vm._ssrNode((Object.keys(_vm.infoCanal).length > 0 ? "<div data-v-61f7a677><div class=\"d-flex overflow-hidden mt-10 w-100 d-flex flex-wrap\" data-v-61f7a677>" + (_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-61f7a677><div class=\"d-flex w-100 mb-5\" data-v-61f7a677>" + (_vm.situation ? "<strong class=\"text-ellipsis text-left fs-_85\" data-v-61f7a677>" + _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-61f7a677>" + _vm._ssrEscape(_vm._s(_vm.verificaInfos(_vm.situation))) + "</span>" : "<!---->") + "</div> " + (_vm.deadline.text ? "<div class=\"d-flex w-100\" data-v-61f7a677><strong class=\"text-ellipsis text-left fs-_75\" data-v-61f7a677>" + _vm._ssrEscape(_vm._s(_vm.deadline.title + ":")) + "</strong> <span class=\"ml-5 text-nowrap text-left fs-_75\" data-v-61f7a677>" + _vm._ssrEscape(_vm._s(_vm.deadline.text)) + "</span></div>" : "<!---->") + "</div>" : "<!---->") + "</div></div>" : "<!---->") + " "), _vm.informacao.length ? [_vm._ssrNode("<div class=\"interatividade-form-header\" data-v-61f7a677>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_abertura_reclamacao) + "\n ") + "</div> "), _vm._ssrNode("<div class=\"interatividade-form-body\" data-v-61f7a677>", "</div>", [_vm._ssrNode(_vm._ssrList(_vm.informacao, function (form) {
|
|
10740
|
+
return "<div class=\"interatividade-info-form\" data-v-61f7a677>" + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-titulo-form\" data-v-61f7a677>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO)) + "</p>" : "<!---->") + " " + (form.TIPO_TEXTO < 1000 ? "<p class=\"interatividade-description-form\" data-v-61f7a677>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div>";
|
|
10741
|
+
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-61f7a677>" + _vm._ssrEscape("\n " + _vm._s(_vm.dictionary.msg_info_adicional) + "\n ") + "</div>" : "<!---->") + " <div class=\"interatividade-form-body\" data-v-61f7a677>" + _vm._ssrList(_vm.informacaoAdicional, function (form) {
|
|
10742
|
+
return "<div class=\"interatividade-add-info-form\" data-v-61f7a677><div class=\"divisor-form-info-aditional\" data-v-61f7a677><div class=\"info-aditional\" data-v-61f7a677>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-titulo-form\" data-v-61f7a677>" + _vm._ssrEscape(_vm._s(form.DESC_TIPO_TEXTO + ': ')) + "</p>" : "<!---->") + "</div> <div class=\"info-aditional\" data-v-61f7a677>" + (form.TIPO_TEXTO > 999 ? "<p class=\"interatividade-description-form\" data-v-61f7a677>" + _vm._ssrEscape(_vm._s(form.TEXTO)) + "</p>" : "<!---->") + "</div></div></div>";
|
|
10743
|
+
}) + "</div> <h3 class=\"m-5 text-bold\" data-v-61f7a677>" + _vm._ssrEscape(_vm._s("Anexos")) + "</h3> "), _vm._ssrNode("<div class=\"d-flex flex-wrap align-items-center\" data-v-61f7a677>", "</div>", _vm._l(_vm.anexos, function (ref, fileIndex) {
|
|
10696
10744
|
var name = ref.name;
|
|
10697
10745
|
var type = ref.type;
|
|
10698
10746
|
var mkuDownload = ref.mkuDownload;
|
|
10699
10747
|
var mku = ref.mku;
|
|
10700
|
-
return _vm._ssrNode("<div class=\"mb-5 mx-5 d-flex\" data-v-
|
|
10748
|
+
return _vm._ssrNode("<div class=\"mb-5 mx-5 d-flex\" data-v-61f7a677>", "</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-61f7a677>", "</img>") : _c('fa-icon', {
|
|
10701
10749
|
class: _vm.returnCurrentClass(type),
|
|
10702
10750
|
attrs: {
|
|
10703
10751
|
"icon": _vm.returnCurrentIcon(type),
|
|
@@ -10708,12 +10756,12 @@ var __vue_render__$b = function __vue_render__() {
|
|
|
10708
10756
|
return _vm.openFile(mku, type);
|
|
10709
10757
|
}
|
|
10710
10758
|
}
|
|
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-
|
|
10759
|
+
}), _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-61f7a677>", "</a>", [_c('fa-icon', {
|
|
10712
10760
|
attrs: {
|
|
10713
10761
|
"icon": ['fas', 'download']
|
|
10714
10762
|
}
|
|
10715
10763
|
})], 1)], 2);
|
|
10716
|
-
}), 0), _vm._ssrNode(" " + (!_vm.anexos.length ? "<p class=\"text-center mb-5\" data-v-
|
|
10764
|
+
}), 0), _vm._ssrNode(" " + (!_vm.anexos.length ? "<p class=\"text-center mb-5\" data-v-61f7a677>" + _vm._ssrEscape(_vm._s("Sem anexos")) + "</p>" : "<!---->"))], 2)] : _vm._e()], 2);
|
|
10717
10765
|
};
|
|
10718
10766
|
|
|
10719
10767
|
var __vue_staticRenderFns__$b = [];
|
|
@@ -10721,8 +10769,8 @@ var __vue_staticRenderFns__$b = [];
|
|
|
10721
10769
|
|
|
10722
10770
|
var __vue_inject_styles__$b = function __vue_inject_styles__(inject) {
|
|
10723
10771
|
if (!inject) return;
|
|
10724
|
-
inject("data-v-
|
|
10725
|
-
source: ".show-x-enter-active[data-v-
|
|
10772
|
+
inject("data-v-61f7a677_0", {
|
|
10773
|
+
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}",
|
|
10726
10774
|
map: undefined,
|
|
10727
10775
|
media: undefined
|
|
10728
10776
|
});
|
|
@@ -10730,10 +10778,10 @@ var __vue_inject_styles__$b = function __vue_inject_styles__(inject) {
|
|
|
10730
10778
|
/* scoped */
|
|
10731
10779
|
|
|
10732
10780
|
|
|
10733
|
-
var __vue_scope_id__$b = "data-v-
|
|
10781
|
+
var __vue_scope_id__$b = "data-v-61f7a677";
|
|
10734
10782
|
/* module identifier */
|
|
10735
10783
|
|
|
10736
|
-
var __vue_module_identifier__$b = "data-v-
|
|
10784
|
+
var __vue_module_identifier__$b = "data-v-61f7a677";
|
|
10737
10785
|
/* functional template */
|
|
10738
10786
|
|
|
10739
10787
|
var __vue_is_functional_template__$b = false;
|
|
@@ -11613,6 +11661,14 @@ var script$5 = {
|
|
|
11613
11661
|
center: {},
|
|
11614
11662
|
marker: {},
|
|
11615
11663
|
infos: [],
|
|
11664
|
+
infoCanalTeste: {
|
|
11665
|
+
PRAZO: "2022-05-05",
|
|
11666
|
+
SITUACAO: {
|
|
11667
|
+
cod: "3",
|
|
11668
|
+
desc: "Em analise pelo fornecedor",
|
|
11669
|
+
cor: "#03A64A"
|
|
11670
|
+
}
|
|
11671
|
+
},
|
|
11616
11672
|
mapOptions: {
|
|
11617
11673
|
zoomControl: true,
|
|
11618
11674
|
mapTypeControl: false,
|
|
@@ -11783,6 +11839,7 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
11783
11839
|
attrs: {
|
|
11784
11840
|
"interatividade": _vm.interatividade,
|
|
11785
11841
|
"dominio": _vm.dominio,
|
|
11842
|
+
"infoCanal": _vm.infoCanalTeste,
|
|
11786
11843
|
"anexos": _vm.anexos,
|
|
11787
11844
|
"dictionary": _vm.dictionary
|
|
11788
11845
|
}
|
|
@@ -12050,7 +12107,7 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
12050
12107
|
|
|
12051
12108
|
var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
12052
12109
|
if (!inject) return;
|
|
12053
|
-
inject("data-v-
|
|
12110
|
+
inject("data-v-cfb6e160_0", {
|
|
12054
12111
|
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
12112
|
map: undefined,
|
|
12056
12113
|
media: undefined
|
|
@@ -12062,7 +12119,7 @@ var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
|
12062
12119
|
var __vue_scope_id__$5 = undefined;
|
|
12063
12120
|
/* module identifier */
|
|
12064
12121
|
|
|
12065
|
-
var __vue_module_identifier__$5 = "data-v-
|
|
12122
|
+
var __vue_module_identifier__$5 = "data-v-cfb6e160";
|
|
12066
12123
|
/* functional template */
|
|
12067
12124
|
|
|
12068
12125
|
var __vue_is_functional_template__$5 = false;
|
|
@@ -12482,7 +12539,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
12482
12539
|
key: "file-loader"
|
|
12483
12540
|
}) : _c('div', {
|
|
12484
12541
|
key: "file-container",
|
|
12485
|
-
staticClass: "mb-5 mx-5 d-flex flex-wrap align-items-
|
|
12542
|
+
staticClass: "mb-5 mx-5 d-flex flex-wrap align-items-center"
|
|
12486
12543
|
}, [_vm.imageURL ? _c('span', {
|
|
12487
12544
|
staticClass: "anexo-img box-shadow",
|
|
12488
12545
|
attrs: {
|
|
@@ -12499,7 +12556,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
12499
12556
|
"alt": _vm.filename
|
|
12500
12557
|
}
|
|
12501
12558
|
})]) : _c('span', {
|
|
12502
|
-
staticClass: "anexo-icone",
|
|
12559
|
+
staticClass: "anexo-icone mr-5",
|
|
12503
12560
|
class: [_vm.iconClass],
|
|
12504
12561
|
attrs: {
|
|
12505
12562
|
"title": "Visualizar " + _vm.filename,
|
|
@@ -12533,8 +12590,8 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
12533
12590
|
|
|
12534
12591
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
12535
12592
|
if (!inject) return;
|
|
12536
|
-
inject("data-v-
|
|
12537
|
-
source: ".anexo-img[data-v-
|
|
12593
|
+
inject("data-v-df17eba8_0", {
|
|
12594
|
+
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
12595
|
map: undefined,
|
|
12539
12596
|
media: undefined
|
|
12540
12597
|
});
|
|
@@ -12542,10 +12599,10 @@ var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
|
12542
12599
|
/* scoped */
|
|
12543
12600
|
|
|
12544
12601
|
|
|
12545
|
-
var __vue_scope_id__$1 = "data-v-
|
|
12602
|
+
var __vue_scope_id__$1 = "data-v-df17eba8";
|
|
12546
12603
|
/* module identifier */
|
|
12547
12604
|
|
|
12548
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
12605
|
+
var __vue_module_identifier__$1 = "data-v-df17eba8";
|
|
12549
12606
|
/* functional template */
|
|
12550
12607
|
|
|
12551
12608
|
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"}},
|
|
92
94
|
mapOptions: {
|
|
93
95
|
zoomControl: true,
|
|
94
96
|
mapTypeControl: false,
|
|
@@ -1,5 +1,25 @@
|
|
|
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
24
|
<div class="interatividade-form-header">
|
|
5
25
|
{{dictionary.msg_abertura_reclamacao}}
|
|
@@ -41,6 +61,7 @@
|
|
|
41
61
|
</template>
|
|
42
62
|
<script>
|
|
43
63
|
import InteratividadePopup from './InteratividadePopup'
|
|
64
|
+
import { formataData } from '../../services/textFormatting';
|
|
44
65
|
|
|
45
66
|
export default {
|
|
46
67
|
components: {InteratividadePopup},
|
|
@@ -55,6 +76,11 @@ export default {
|
|
|
55
76
|
type: Object,
|
|
56
77
|
required: true
|
|
57
78
|
},
|
|
79
|
+
infoCanal: {
|
|
80
|
+
type: [Object, Array],
|
|
81
|
+
required: false,
|
|
82
|
+
default: {}
|
|
83
|
+
},
|
|
58
84
|
dominio: {
|
|
59
85
|
type: String,
|
|
60
86
|
required: true
|
|
@@ -68,7 +94,29 @@ export default {
|
|
|
68
94
|
required: false
|
|
69
95
|
}
|
|
70
96
|
},
|
|
97
|
+
computed: {
|
|
98
|
+
situation() {
|
|
99
|
+
try {
|
|
100
|
+
const { SITUACAO } = this.infoCanal
|
|
101
|
+
return SITUACAO ? SITUACAO : null
|
|
102
|
+
}catch(e) {
|
|
103
|
+
console.error("Erro ao gerar a situacao do atendimento")
|
|
104
|
+
console.error(e)
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
deadline() {
|
|
108
|
+
try {
|
|
109
|
+
const { PRAZO, NOME_CAMPO_PRAZO } = this.infoCanal
|
|
110
|
+
return { text: PRAZO ? formataData(PRAZO) : "---", title: NOME_CAMPO_PRAZO ? NOME_CAMPO_PRAZO : this.dictionary.tit_prazo }
|
|
111
|
+
}catch(e) {
|
|
112
|
+
console.error("Erro ao gerar o prazo do atendimento")
|
|
113
|
+
console.error(e)
|
|
114
|
+
return {}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
},
|
|
71
118
|
mounted(){
|
|
119
|
+
console.log(this.infoCanal)
|
|
72
120
|
if(this.validateInterativity()){
|
|
73
121
|
this.verifyInfoAditional();
|
|
74
122
|
}
|
|
@@ -116,6 +164,14 @@ export default {
|
|
|
116
164
|
console.error(e)
|
|
117
165
|
}
|
|
118
166
|
},
|
|
167
|
+
verificaInfos(text){
|
|
168
|
+
if(typeof text === 'string'){
|
|
169
|
+
return text;
|
|
170
|
+
}
|
|
171
|
+
if(typeof text === 'object'){
|
|
172
|
+
return text.desc;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
119
175
|
}
|
|
120
176
|
}
|
|
121
177
|
</script>
|
|
@@ -233,24 +289,20 @@ export default {
|
|
|
233
289
|
font-size: 2rem;
|
|
234
290
|
}
|
|
235
291
|
.flex-wrap {
|
|
236
|
-
-ms-flex-wrap: wrap;
|
|
237
292
|
flex-wrap: wrap;
|
|
238
293
|
}
|
|
239
294
|
.align-items-center {
|
|
240
|
-
-webkit-box-align: center;
|
|
241
|
-
-ms-flex-align: center;
|
|
242
295
|
align-items: center;
|
|
243
296
|
}
|
|
244
297
|
.d-flex {
|
|
245
|
-
display: -webkit-box;
|
|
246
|
-
display: -ms-flexbox;
|
|
247
298
|
display: flex;
|
|
248
299
|
}
|
|
249
300
|
.align-items-end {
|
|
250
|
-
-webkit-box-align: end;
|
|
251
|
-
-ms-flex-align: end;
|
|
252
301
|
align-items: flex-end;
|
|
253
302
|
}
|
|
303
|
+
.flex-column {
|
|
304
|
+
flex-direction: column;
|
|
305
|
+
}
|
|
254
306
|
.text-bold {
|
|
255
307
|
font-weight: bold;
|
|
256
308
|
}
|
|
@@ -267,4 +319,62 @@ export default {
|
|
|
267
319
|
.cursor-pointer {
|
|
268
320
|
cursor: pointer;
|
|
269
321
|
}
|
|
322
|
+
.bg-dark-white-2 {
|
|
323
|
+
background-color: #f7f7f7;
|
|
324
|
+
}
|
|
325
|
+
.border-radius-10 {
|
|
326
|
+
border-radius: 10px;
|
|
327
|
+
}
|
|
328
|
+
.w-100 {
|
|
329
|
+
width: 100%;
|
|
330
|
+
}
|
|
331
|
+
.overflow-hidden {
|
|
332
|
+
overflow: hidden;
|
|
333
|
+
}
|
|
334
|
+
.mt-10 {
|
|
335
|
+
margin-top: 10px;
|
|
336
|
+
}
|
|
337
|
+
.flex-wrap {
|
|
338
|
+
flex-wrap: wrap;
|
|
339
|
+
}
|
|
340
|
+
.d-flex {
|
|
341
|
+
display: flex;
|
|
342
|
+
}
|
|
343
|
+
.p-10 {
|
|
344
|
+
padding: 10px;
|
|
345
|
+
}
|
|
346
|
+
.mb-5 {
|
|
347
|
+
margin-bottom: 5px;
|
|
348
|
+
}
|
|
349
|
+
.mb-10 {
|
|
350
|
+
margin-bottom: 10px;
|
|
351
|
+
}
|
|
352
|
+
.mx-10 {
|
|
353
|
+
margin-left: 10px;
|
|
354
|
+
margin-right: 10px;
|
|
355
|
+
}
|
|
356
|
+
.d-flex-center {
|
|
357
|
+
display: flex;
|
|
358
|
+
justify-content: center;
|
|
359
|
+
align-items: center;
|
|
360
|
+
}
|
|
361
|
+
.fs-_85 {
|
|
362
|
+
font-size: .85rem;
|
|
363
|
+
}
|
|
364
|
+
.text-ellipsis {
|
|
365
|
+
text-overflow: ellipsis;
|
|
366
|
+
}
|
|
367
|
+
.text-left {
|
|
368
|
+
text-align: left;
|
|
369
|
+
}
|
|
370
|
+
.text-ellipsis {
|
|
371
|
+
white-space: nowrap;
|
|
372
|
+
overflow: hidden;
|
|
373
|
+
}
|
|
374
|
+
.ml-5 {
|
|
375
|
+
margin-left: 5px;
|
|
376
|
+
}
|
|
377
|
+
.text-shadow {
|
|
378
|
+
text-shadow: 0 0 #000;
|
|
379
|
+
}
|
|
270
380
|
</style>
|