vue-intergrall-plugins 0.0.230 → 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 +109 -14
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +86 -28
- package/package.json +1 -1
- package/src/lib-components/Chat/BtnFiles.vue +3 -2
- package/src/lib-components/Chat/TextFooter.vue +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: ' - '
|
|
@@ -3596,13 +3603,14 @@ var MultipleFilePreview = __vue_component__$w;var script$n = {
|
|
|
3596
3603
|
|
|
3597
3604
|
if (!this.externalFiles.length) return;
|
|
3598
3605
|
|
|
3599
|
-
if (this.externalFiles.length
|
|
3606
|
+
if (this.externalFiles.length > this.fileSettings.max) {
|
|
3600
3607
|
this.$emit("reset-file-system");
|
|
3601
3608
|
return this.$toasted.global.defaultInfo({
|
|
3602
3609
|
msg: "Limite de ".concat(this.fileSettings.max, " arquivos")
|
|
3603
3610
|
});
|
|
3604
3611
|
}
|
|
3605
3612
|
|
|
3613
|
+
this.file = [];
|
|
3606
3614
|
this.externalFilesAux = Array.from(this.externalFiles);
|
|
3607
3615
|
this.externalFilesAux.forEach(function (files) {
|
|
3608
3616
|
_this.file.push(files);
|
|
@@ -4029,7 +4037,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
4029
4037
|
|
|
4030
4038
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
4031
4039
|
if (!inject) return;
|
|
4032
|
-
inject("data-v-
|
|
4040
|
+
inject("data-v-38ede73a_0", {
|
|
4033
4041
|
source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:unset;transform:translate(17.5px,-15px);background-color:#888;z-index:1;font-size:.5rem;width:15px;height:15px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .3s;color:#fff;font-weight:900}.files-counter:hover{opacity:1}.files-counter-2{transform:translate(-15px,28px);opacity:.9;position:absolute;display:flex;justify-content:center;align-items:center;color:#888;font-size:.8rem}.files-counter-2 svg{margin-left:5px}.files-counter-2:hover{opacity:1;text-decoration:underline}",
|
|
4034
4042
|
map: undefined,
|
|
4035
4043
|
media: undefined
|
|
@@ -4041,7 +4049,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
4041
4049
|
var __vue_scope_id__$n = undefined;
|
|
4042
4050
|
/* module identifier */
|
|
4043
4051
|
|
|
4044
|
-
var __vue_module_identifier__$n = "data-v-
|
|
4052
|
+
var __vue_module_identifier__$n = "data-v-38ede73a";
|
|
4045
4053
|
/* functional template */
|
|
4046
4054
|
|
|
4047
4055
|
var __vue_is_functional_template__$n = false;
|
|
@@ -8468,7 +8476,7 @@ var script$j = {
|
|
|
8468
8476
|
},
|
|
8469
8477
|
externalFiles: {
|
|
8470
8478
|
type: Array,
|
|
8471
|
-
|
|
8479
|
+
required: false
|
|
8472
8480
|
}
|
|
8473
8481
|
},
|
|
8474
8482
|
data: function data() {
|
|
@@ -8984,7 +8992,7 @@ var __vue_staticRenderFns__$j = [];
|
|
|
8984
8992
|
|
|
8985
8993
|
var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
8986
8994
|
if (!inject) return;
|
|
8987
|
-
inject("data-v-
|
|
8995
|
+
inject("data-v-c92a2410_0", {
|
|
8988
8996
|
source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349;margin-left:5px}.text-footer-container .text-footer-files-container .files-btn.both{font-size:.95rem;background-color:#5555ec;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(1){transform:translateX(5px)}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(2){transform:translateX(-5px)}.text-footer-container .text-footer-preview-container{width:100%;cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
|
|
8989
8997
|
map: undefined,
|
|
8990
8998
|
media: undefined
|
|
@@ -8996,7 +9004,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
|
8996
9004
|
var __vue_scope_id__$j = undefined;
|
|
8997
9005
|
/* module identifier */
|
|
8998
9006
|
|
|
8999
|
-
var __vue_module_identifier__$j = "data-v-
|
|
9007
|
+
var __vue_module_identifier__$j = "data-v-c92a2410";
|
|
9000
9008
|
/* functional template */
|
|
9001
9009
|
|
|
9002
9010
|
var __vue_is_functional_template__$j = false;
|
|
@@ -10587,8 +10595,7 @@ var __vue_component__$h = /*#__PURE__*/normalizeComponent({
|
|
|
10587
10595
|
staticRenderFns: __vue_staticRenderFns__$c
|
|
10588
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);
|
|
10589
10597
|
|
|
10590
|
-
var InteratividadePopup = __vue_component__$h
|
|
10591
|
-
var script$b = {
|
|
10598
|
+
var InteratividadePopup = __vue_component__$h;var script$b = {
|
|
10592
10599
|
components: {
|
|
10593
10600
|
InteratividadePopup: InteratividadePopup
|
|
10594
10601
|
},
|
|
@@ -10603,6 +10610,11 @@ var script$b = {
|
|
|
10603
10610
|
type: Object,
|
|
10604
10611
|
required: true
|
|
10605
10612
|
},
|
|
10613
|
+
infoCanal: {
|
|
10614
|
+
type: [Object, Array],
|
|
10615
|
+
required: false,
|
|
10616
|
+
default: {}
|
|
10617
|
+
},
|
|
10606
10618
|
dominio: {
|
|
10607
10619
|
type: String,
|
|
10608
10620
|
required: true
|
|
@@ -10616,7 +10628,35 @@ var script$b = {
|
|
|
10616
10628
|
required: false
|
|
10617
10629
|
}
|
|
10618
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
|
+
},
|
|
10619
10657
|
mounted: function mounted() {
|
|
10658
|
+
console.log(this.infoCanal);
|
|
10659
|
+
|
|
10620
10660
|
if (this.validateInterativity()) {
|
|
10621
10661
|
this.verifyInfoAditional();
|
|
10622
10662
|
}
|
|
@@ -10672,6 +10712,15 @@ var script$b = {
|
|
|
10672
10712
|
console.error("Erro ao pegar o objeto interatividade formulario");
|
|
10673
10713
|
console.error(e);
|
|
10674
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
|
+
}
|
|
10675
10724
|
}
|
|
10676
10725
|
}
|
|
10677
10726
|
};/* script */
|
|
@@ -10687,16 +10736,16 @@ var __vue_render__$b = function __vue_render__() {
|
|
|
10687
10736
|
|
|
10688
10737
|
return _c('div', {
|
|
10689
10738
|
staticClass: "interatividade"
|
|
10690
|
-
}, [_vm.informacao.length ? [_vm._ssrNode("<div class=\"interatividade-form-header\" data-v-
|
|
10691
|
-
return "<div class=\"interatividade-info-form\" data-v-
|
|
10692
|
-
}) + " " + (_vm.informacaoAdicional.length ? "<div class=\"interatividade-form-header\" data-v-
|
|
10693
|
-
return "<div class=\"interatividade-add-info-form\" data-v-
|
|
10694
|
-
}) + "</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) {
|
|
10695
10744
|
var name = ref.name;
|
|
10696
10745
|
var type = ref.type;
|
|
10697
10746
|
var mkuDownload = ref.mkuDownload;
|
|
10698
10747
|
var mku = ref.mku;
|
|
10699
|
-
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', {
|
|
10700
10749
|
class: _vm.returnCurrentClass(type),
|
|
10701
10750
|
attrs: {
|
|
10702
10751
|
"icon": _vm.returnCurrentIcon(type),
|
|
@@ -10707,12 +10756,12 @@ var __vue_render__$b = function __vue_render__() {
|
|
|
10707
10756
|
return _vm.openFile(mku, type);
|
|
10708
10757
|
}
|
|
10709
10758
|
}
|
|
10710
|
-
}), _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', {
|
|
10711
10760
|
attrs: {
|
|
10712
10761
|
"icon": ['fas', 'download']
|
|
10713
10762
|
}
|
|
10714
10763
|
})], 1)], 2);
|
|
10715
|
-
}), 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);
|
|
10716
10765
|
};
|
|
10717
10766
|
|
|
10718
10767
|
var __vue_staticRenderFns__$b = [];
|
|
@@ -10720,8 +10769,8 @@ var __vue_staticRenderFns__$b = [];
|
|
|
10720
10769
|
|
|
10721
10770
|
var __vue_inject_styles__$b = function __vue_inject_styles__(inject) {
|
|
10722
10771
|
if (!inject) return;
|
|
10723
|
-
inject("data-v-
|
|
10724
|
-
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}",
|
|
10725
10774
|
map: undefined,
|
|
10726
10775
|
media: undefined
|
|
10727
10776
|
});
|
|
@@ -10729,10 +10778,10 @@ var __vue_inject_styles__$b = function __vue_inject_styles__(inject) {
|
|
|
10729
10778
|
/* scoped */
|
|
10730
10779
|
|
|
10731
10780
|
|
|
10732
|
-
var __vue_scope_id__$b = "data-v-
|
|
10781
|
+
var __vue_scope_id__$b = "data-v-61f7a677";
|
|
10733
10782
|
/* module identifier */
|
|
10734
10783
|
|
|
10735
|
-
var __vue_module_identifier__$b = "data-v-
|
|
10784
|
+
var __vue_module_identifier__$b = "data-v-61f7a677";
|
|
10736
10785
|
/* functional template */
|
|
10737
10786
|
|
|
10738
10787
|
var __vue_is_functional_template__$b = false;
|
|
@@ -11612,6 +11661,14 @@ var script$5 = {
|
|
|
11612
11661
|
center: {},
|
|
11613
11662
|
marker: {},
|
|
11614
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
|
+
},
|
|
11615
11672
|
mapOptions: {
|
|
11616
11673
|
zoomControl: true,
|
|
11617
11674
|
mapTypeControl: false,
|
|
@@ -11782,6 +11839,7 @@ var __vue_render__$5 = function __vue_render__() {
|
|
|
11782
11839
|
attrs: {
|
|
11783
11840
|
"interatividade": _vm.interatividade,
|
|
11784
11841
|
"dominio": _vm.dominio,
|
|
11842
|
+
"infoCanal": _vm.infoCanalTeste,
|
|
11785
11843
|
"anexos": _vm.anexos,
|
|
11786
11844
|
"dictionary": _vm.dictionary
|
|
11787
11845
|
}
|
|
@@ -12049,7 +12107,7 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
12049
12107
|
|
|
12050
12108
|
var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
12051
12109
|
if (!inject) return;
|
|
12052
|
-
inject("data-v-
|
|
12110
|
+
inject("data-v-cfb6e160_0", {
|
|
12053
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}",
|
|
12054
12112
|
map: undefined,
|
|
12055
12113
|
media: undefined
|
|
@@ -12061,7 +12119,7 @@ var __vue_inject_styles__$5 = function __vue_inject_styles__(inject) {
|
|
|
12061
12119
|
var __vue_scope_id__$5 = undefined;
|
|
12062
12120
|
/* module identifier */
|
|
12063
12121
|
|
|
12064
|
-
var __vue_module_identifier__$5 = "data-v-
|
|
12122
|
+
var __vue_module_identifier__$5 = "data-v-cfb6e160";
|
|
12065
12123
|
/* functional template */
|
|
12066
12124
|
|
|
12067
12125
|
var __vue_is_functional_template__$5 = false;
|
|
@@ -12481,7 +12539,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
12481
12539
|
key: "file-loader"
|
|
12482
12540
|
}) : _c('div', {
|
|
12483
12541
|
key: "file-container",
|
|
12484
|
-
staticClass: "mb-5 mx-5 d-flex flex-wrap align-items-
|
|
12542
|
+
staticClass: "mb-5 mx-5 d-flex flex-wrap align-items-center"
|
|
12485
12543
|
}, [_vm.imageURL ? _c('span', {
|
|
12486
12544
|
staticClass: "anexo-img box-shadow",
|
|
12487
12545
|
attrs: {
|
|
@@ -12498,7 +12556,7 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
12498
12556
|
"alt": _vm.filename
|
|
12499
12557
|
}
|
|
12500
12558
|
})]) : _c('span', {
|
|
12501
|
-
staticClass: "anexo-icone",
|
|
12559
|
+
staticClass: "anexo-icone mr-5",
|
|
12502
12560
|
class: [_vm.iconClass],
|
|
12503
12561
|
attrs: {
|
|
12504
12562
|
"title": "Visualizar " + _vm.filename,
|
|
@@ -12532,8 +12590,8 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
12532
12590
|
|
|
12533
12591
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
12534
12592
|
if (!inject) return;
|
|
12535
|
-
inject("data-v-
|
|
12536
|
-
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}",
|
|
12537
12595
|
map: undefined,
|
|
12538
12596
|
media: undefined
|
|
12539
12597
|
});
|
|
@@ -12541,10 +12599,10 @@ var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
|
12541
12599
|
/* scoped */
|
|
12542
12600
|
|
|
12543
12601
|
|
|
12544
|
-
var __vue_scope_id__$1 = "data-v-
|
|
12602
|
+
var __vue_scope_id__$1 = "data-v-df17eba8";
|
|
12545
12603
|
/* module identifier */
|
|
12546
12604
|
|
|
12547
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
12605
|
+
var __vue_module_identifier__$1 = "data-v-df17eba8";
|
|
12548
12606
|
/* functional template */
|
|
12549
12607
|
|
|
12550
12608
|
var __vue_is_functional_template__$1 = false;
|
package/package.json
CHANGED
|
@@ -201,14 +201,15 @@ export default {
|
|
|
201
201
|
watch: {
|
|
202
202
|
externalFiles() {
|
|
203
203
|
if(!this.externalFiles.length) return
|
|
204
|
-
if(this.externalFiles.length
|
|
204
|
+
if(this.externalFiles.length > this.fileSettings.max) {
|
|
205
205
|
this.$emit("reset-file-system")
|
|
206
206
|
return this.$toasted.global.defaultInfo({ msg: `Limite de ${this.fileSettings.max} arquivos` })
|
|
207
207
|
}
|
|
208
|
+
this.file = []
|
|
208
209
|
this.externalFilesAux = Array.from(this.externalFiles)
|
|
209
210
|
this.externalFilesAux.forEach(files => {
|
|
210
211
|
this.file.push(files)
|
|
211
|
-
})
|
|
212
|
+
})
|
|
212
213
|
this.fileSize = this.file.length
|
|
213
214
|
this.multipleFileUpload()
|
|
214
215
|
}
|
|
@@ -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>
|