vue-intergrall-plugins 0.0.290 → 0.0.291
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.
|
@@ -12721,6 +12721,11 @@ var script$a = {
|
|
|
12721
12721
|
},
|
|
12722
12722
|
origemExterna: {
|
|
12723
12723
|
type: String
|
|
12724
|
+
},
|
|
12725
|
+
interatividade: {
|
|
12726
|
+
type: Array,
|
|
12727
|
+
required: false,
|
|
12728
|
+
default: () => []
|
|
12724
12729
|
}
|
|
12725
12730
|
},
|
|
12726
12731
|
mixins: [textoLongo],
|
|
@@ -12739,7 +12744,7 @@ var script$a = {
|
|
|
12739
12744
|
},
|
|
12740
12745
|
|
|
12741
12746
|
iconAutor() {
|
|
12742
|
-
return this.origem === "outros" ? [
|
|
12747
|
+
return this.origem === "outros" ? ["fas", "user"] : ["fas", "headset"];
|
|
12743
12748
|
},
|
|
12744
12749
|
|
|
12745
12750
|
ticketClassCod() {
|
|
@@ -12776,6 +12781,35 @@ var script$a = {
|
|
|
12776
12781
|
} catch (err) {
|
|
12777
12782
|
return false;
|
|
12778
12783
|
}
|
|
12784
|
+
},
|
|
12785
|
+
|
|
12786
|
+
filteredInteratividadeData() {
|
|
12787
|
+
if (!this.interatividade || !this.interatividade.length) return [];
|
|
12788
|
+
const finalData = [];
|
|
12789
|
+
const validKeys = ["ticket_detail_id", "ticket_detail_type_id", "creation_date", "modification_date"];
|
|
12790
|
+
this.interatividade.forEach(values => {
|
|
12791
|
+
const currentKeys = Object.keys(values);
|
|
12792
|
+
currentKeys.forEach(key => {
|
|
12793
|
+
if (validKeys.includes(key)) {
|
|
12794
|
+
let formattedKey = "";
|
|
12795
|
+
|
|
12796
|
+
if (key === "ticket_detail_id") {
|
|
12797
|
+
formattedKey = this.dictionary.ra_ticket_detail_id_title;
|
|
12798
|
+
} else if (key === "ticket_detail_type_id") {
|
|
12799
|
+
formattedKey = this.dictionary.ra_ticket_detail_type_id_title;
|
|
12800
|
+
} else if (key === "creation_date") {
|
|
12801
|
+
formattedKey = this.dictionary.ra_creation_date_title;
|
|
12802
|
+
} else if (key === "modification_date") {
|
|
12803
|
+
formattedKey = this.dictionary.ra_creation_modification_title;
|
|
12804
|
+
}
|
|
12805
|
+
|
|
12806
|
+
finalData.push({
|
|
12807
|
+
[formattedKey || key]: values[key]
|
|
12808
|
+
});
|
|
12809
|
+
}
|
|
12810
|
+
});
|
|
12811
|
+
});
|
|
12812
|
+
return finalData;
|
|
12779
12813
|
}
|
|
12780
12814
|
|
|
12781
12815
|
},
|
|
@@ -12791,6 +12825,22 @@ var script$a = {
|
|
|
12791
12825
|
expandirCard() {
|
|
12792
12826
|
this.$emit("expand-card", this.$props); // this.$store.dispatch("informacoesCardExpandido", this.$props)
|
|
12793
12827
|
// this.$store.dispatch("toggleBlocker", { state: true, origin: "expandir-card-reclamacao"})
|
|
12828
|
+
},
|
|
12829
|
+
|
|
12830
|
+
formatInteratividadeValue(key, value) {
|
|
12831
|
+
const regexISO8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/;
|
|
12832
|
+
|
|
12833
|
+
if (regexISO8601.test(value)) {
|
|
12834
|
+
const data = new Date(value);
|
|
12835
|
+
const dia = String(data.getDate()).padStart(2, "0");
|
|
12836
|
+
const mes = String(data.getMonth() + 1).padStart(2, "0");
|
|
12837
|
+
const ano = data.getFullYear();
|
|
12838
|
+
const horas = String(data.getHours()).padStart(2, "0");
|
|
12839
|
+
const minutos = String(data.getMinutes()).padStart(2, "0");
|
|
12840
|
+
value = `${dia}/${mes}/${ano} ${horas}:${minutos}`;
|
|
12841
|
+
}
|
|
12842
|
+
|
|
12843
|
+
return `<strong>${key}:</strong> ${value || "---"}`;
|
|
12794
12844
|
}
|
|
12795
12845
|
|
|
12796
12846
|
}
|
|
@@ -12811,7 +12861,7 @@ var __vue_render__$a = function () {
|
|
|
12811
12861
|
class: {
|
|
12812
12862
|
'card-cli': _vm.origem === 'outros',
|
|
12813
12863
|
'card-ope': _vm.origem === 'principal',
|
|
12814
|
-
|
|
12864
|
+
msgNova: _vm.msgNova
|
|
12815
12865
|
},
|
|
12816
12866
|
attrs: {
|
|
12817
12867
|
"id": "a" + (_vm.messageIndex ? _vm.messageIndex : _vm.randomizeValue)
|
|
@@ -12822,7 +12872,7 @@ var __vue_render__$a = function () {
|
|
|
12822
12872
|
}
|
|
12823
12873
|
}, [_vm.msgNova ? _c('span', {
|
|
12824
12874
|
staticClass: "novas-mensagens"
|
|
12825
|
-
}, [_vm._v("
|
|
12875
|
+
}, [_vm._v(" Nova mensagem ")]) : _vm._e()]), _vm._v(" "), _c('div', {
|
|
12826
12876
|
staticClass: "card box-shadow"
|
|
12827
12877
|
}, [_c('div', {
|
|
12828
12878
|
staticClass: "card-header"
|
|
@@ -12920,7 +12970,24 @@ var __vue_render__$a = function () {
|
|
|
12920
12970
|
domProps: {
|
|
12921
12971
|
"innerHTML": _vm._s(_vm.mensagemFormatada)
|
|
12922
12972
|
}
|
|
12923
|
-
}), _vm._v(" "), _vm.
|
|
12973
|
+
}), _vm._v(" "), _vm.filteredInteratividadeData && _vm.filteredInteratividadeData.length ? _c('div', {
|
|
12974
|
+
staticClass: "card-interatividade"
|
|
12975
|
+
}, [_c('p', {
|
|
12976
|
+
staticClass: "card-interatividade-title"
|
|
12977
|
+
}, [_vm._v(_vm._s(_vm.dictionary.ra_infos_interatividade) + ":")]), _vm._v(" "), _c('ul', {
|
|
12978
|
+
staticClass: "card-interatividade-list"
|
|
12979
|
+
}, _vm._l(_vm.filteredInteratividadeData, function (values, index) {
|
|
12980
|
+
return _c('li', {
|
|
12981
|
+
key: index
|
|
12982
|
+
}, _vm._l(values, function (value, key) {
|
|
12983
|
+
return _c('p', {
|
|
12984
|
+
key: key,
|
|
12985
|
+
domProps: {
|
|
12986
|
+
"innerHTML": _vm._s(_vm.formatInteratividadeValue(key, value))
|
|
12987
|
+
}
|
|
12988
|
+
});
|
|
12989
|
+
}), 0);
|
|
12990
|
+
}), 0)]) : _vm._e(), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _c('div', {
|
|
12924
12991
|
staticClass: "card-footer"
|
|
12925
12992
|
}, _vm._l(_vm.anexos, function (anexo, index) {
|
|
12926
12993
|
return _c('div', {
|
|
@@ -12941,8 +13008,8 @@ var __vue_staticRenderFns__$a = [];
|
|
|
12941
13008
|
|
|
12942
13009
|
const __vue_inject_styles__$a = function (inject) {
|
|
12943
13010
|
if (!inject) return;
|
|
12944
|
-
inject("data-v-
|
|
12945
|
-
source: ".fade-enter-active[data-v-
|
|
13011
|
+
inject("data-v-19f535d7_0", {
|
|
13012
|
+
source: ".fade-enter-active[data-v-19f535d7],.fade-leave-active[data-v-19f535d7]{transition:opacity .2s}.fade-enter[data-v-19f535d7],.fade-leave-to[data-v-19f535d7]{opacity:0}.card-cli[data-v-19f535d7],.card-ope[data-v-19f535d7]{display:flex;width:95%;margin:5px 0;position:relative}.card-cli.msgNova[data-v-19f535d7],.card-ope.msgNova[data-v-19f535d7]{margin-top:30px}.novas-mensagens[data-v-19f535d7]{position:absolute;top:-30px;width:100%;display:flex;justify-content:center;align-items:center;margin:2.5px 0;background-color:lighten(#fff249,15)}.card-cli .card[data-v-19f535d7]{border-left:3px solid #90b823}.card-ope[data-v-19f535d7]{align-self:flex-end;background-color:lighten(#007535,72)}.card-ope .card[data-v-19f535d7]{border-right:3px solid #007535}.card[data-v-19f535d7]{background-color:rgba(255,255,255,.9);overflow:hidden;width:100%;padding:2.5px 5px}.card p[data-v-19f535d7]{word-break:break-all}.card-header[data-v-19f535d7]{width:100%;border-bottom:1px solid #ddd;margin-bottom:5px;display:flex;justify-content:space-between}.card-header svg[data-v-19f535d7]{font-size:1rem}.card-canal[data-v-19f535d7]{flex:1;margin-right:10px}.card-datas[data-v-19f535d7]{display:flex;flex-direction:column;margin-right:10px}.card-data[data-v-19f535d7]{overflow:hidden;display:flex;align-content:center}.card-data span[data-v-19f535d7]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.card-data svg[data-v-19f535d7]{margin-right:5px;color:#232323}.card-expand[data-v-19f535d7]{display:flex;justify-content:center;align-items:center;margin:2.5px;cursor:pointer;opacity:.8;transition:opacity 150ms}.card-expand[data-v-19f535d7]:hover{opacity:1}.card-footer[data-v-19f535d7]{margin-top:5px;border-top:1px solid #ddd;display:flex;flex-wrap:wrap}.card-chip-container[data-v-19f535d7]{display:flex;flex-wrap:wrap;width:100%;gap:5px}.card-chip[data-v-19f535d7]{font-size:.8rem;width:fit-content;border-radius:15px;transition:all 150ms ease-in-out;padding:2.5px 7px;color:#1f69c1;background-color:rgba(207,216,244,.6);margin-bottom:5px}.card-chip[data-v-19f535d7]:hover{background-color:#cfd8f4}.card-chip.orange[data-v-19f535d7]{color:#e14924;background-color:rgba(228,92,58,.15)}.card-chip.orange[data-v-19f535d7]:hover{background-color:rgba(228,92,58,.2)}.card-chip.yellow[data-v-19f535d7]{color:#f4a304;background-color:rgba(252,191,73,.15)}.card-chip.yellow[data-v-19f535d7]:hover{background-color:rgba(252,191,73,.2)}.card-chip.red[data-v-19f535d7]{color:#e74c3c;background-color:rgba(231,76,60,.2)}.card-chip.red[data-v-19f535d7]:hover{background-color:rgba(231,76,60,.25)}.card-chip.green[data-v-19f535d7]{color:#0e3213;background-color:rgba(15,177,39,.3)}.card-chip.green[data-v-19f535d7]:hover{background-color:rgba(15,177,39,.4)}.card-anexo[data-v-19f535d7]{width:50px;height:50px;margin-right:5px;display:flex;justify-content:center;align-items:center}.anexo-item[data-v-19f535d7]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.anexo-item .transition-anexo-item[data-v-19f535d7]{max-width:100%;max-height:100%}.anexo-item .req-loader[data-v-19f535d7]{position:absolute;top:calc(50% - 12.5px);right:calc(50% - 12.5px)}.anexo-item .transition-anexo-item img[data-v-19f535d7]{max-width:45px;max-height:45px}.anexo-icone[data-v-19f535d7]{opacity:.9;transition:opacity .2s;color:#222;cursor:pointer;display:flex;justify-content:center;align-items:center}.anexo-icone[data-v-19f535d7]:hover{opacity:1}.anexo-icone[data-v-19f535d7]:visited{color:inherit}svg[data-v-19f535d7]{font-size:30px;z-index:1}.anexo-icone.pdf[data-v-19f535d7]{position:relative}.anexo-icone.pdf svg[data-v-19f535d7]{color:#e74c3c}.anexo-icone.pdf[data-v-19f535d7]::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.anexo-icone.doc[data-v-19f535d7]{color:#15517f}.anexo-icone.doc[data-v-19f535d7]::after{content:\"\";position:absolute;width:20px;height:20px;background-color:#fff}.anexo-img[data-v-19f535d7]{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-19f535d7]:hover{opacity:1}.anexo-img img[data-v-19f535d7]{width:95%}.card-interatividade[data-v-19f535d7]{display:flex;flex-direction:column;margin-top:10px;margin-bottom:5px}.card-interatividade-title[data-v-19f535d7]{font-weight:700;margin-bottom:5px}.card-interatividade-list[data-v-19f535d7]{margin:0;padding:0;font-size:.9rem}",
|
|
12946
13013
|
map: undefined,
|
|
12947
13014
|
media: undefined
|
|
12948
13015
|
});
|
|
@@ -12950,7 +13017,7 @@ const __vue_inject_styles__$a = function (inject) {
|
|
|
12950
13017
|
/* scoped */
|
|
12951
13018
|
|
|
12952
13019
|
|
|
12953
|
-
const __vue_scope_id__$a = "data-v-
|
|
13020
|
+
const __vue_scope_id__$a = "data-v-19f535d7";
|
|
12954
13021
|
/* module identifier */
|
|
12955
13022
|
|
|
12956
13023
|
const __vue_module_identifier__$a = undefined;
|