vue-intergrall-plugins 0.0.290 → 0.0.292
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,42 @@ 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 = ["name", "value", "ticket_detail_id", "ticket_detail_type_id", "creation_date", "modification_date"];
|
|
12790
|
+
this.interatividade.forEach(values => {
|
|
12791
|
+
const currentKeys = Object.keys(values);
|
|
12792
|
+
const formattedValues = {};
|
|
12793
|
+
|
|
12794
|
+
if (values.name && values.value) {
|
|
12795
|
+
formattedValues[values.name] = values.value;
|
|
12796
|
+
}
|
|
12797
|
+
|
|
12798
|
+
currentKeys.forEach(key => {
|
|
12799
|
+
if (validKeys.includes(key)) {
|
|
12800
|
+
let formattedKey = "";
|
|
12801
|
+
|
|
12802
|
+
if (key === "ticket_detail_id") {
|
|
12803
|
+
formattedKey = this.dictionary.ra_ticket_detail_id_title;
|
|
12804
|
+
} else if (key === "ticket_detail_type_id") {
|
|
12805
|
+
formattedKey = this.dictionary.ra_ticket_detail_type_id_title;
|
|
12806
|
+
} else if (key === "creation_date") {
|
|
12807
|
+
formattedKey = this.dictionary.ra_creation_date_title;
|
|
12808
|
+
} else if (key === "modification_date") {
|
|
12809
|
+
formattedKey = this.dictionary.ra_creation_modification_title;
|
|
12810
|
+
}
|
|
12811
|
+
|
|
12812
|
+
if (formattedKey) {
|
|
12813
|
+
formattedValues[formattedKey] = values[key];
|
|
12814
|
+
}
|
|
12815
|
+
}
|
|
12816
|
+
});
|
|
12817
|
+
finalData.push(formattedValues);
|
|
12818
|
+
});
|
|
12819
|
+
return finalData;
|
|
12779
12820
|
}
|
|
12780
12821
|
|
|
12781
12822
|
},
|
|
@@ -12791,6 +12832,22 @@ var script$a = {
|
|
|
12791
12832
|
expandirCard() {
|
|
12792
12833
|
this.$emit("expand-card", this.$props); // this.$store.dispatch("informacoesCardExpandido", this.$props)
|
|
12793
12834
|
// this.$store.dispatch("toggleBlocker", { state: true, origin: "expandir-card-reclamacao"})
|
|
12835
|
+
},
|
|
12836
|
+
|
|
12837
|
+
formatInteratividadeValue(key, value) {
|
|
12838
|
+
const regexISO8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/;
|
|
12839
|
+
|
|
12840
|
+
if (regexISO8601.test(value)) {
|
|
12841
|
+
const data = new Date(value);
|
|
12842
|
+
const dia = String(data.getDate()).padStart(2, "0");
|
|
12843
|
+
const mes = String(data.getMonth() + 1).padStart(2, "0");
|
|
12844
|
+
const ano = data.getFullYear();
|
|
12845
|
+
const horas = String(data.getHours()).padStart(2, "0");
|
|
12846
|
+
const minutos = String(data.getMinutes()).padStart(2, "0");
|
|
12847
|
+
value = `${dia}/${mes}/${ano} ${horas}:${minutos}`;
|
|
12848
|
+
}
|
|
12849
|
+
|
|
12850
|
+
return `<strong>${key}:</strong> ${value || "---"}`;
|
|
12794
12851
|
}
|
|
12795
12852
|
|
|
12796
12853
|
}
|
|
@@ -12811,7 +12868,7 @@ var __vue_render__$a = function () {
|
|
|
12811
12868
|
class: {
|
|
12812
12869
|
'card-cli': _vm.origem === 'outros',
|
|
12813
12870
|
'card-ope': _vm.origem === 'principal',
|
|
12814
|
-
|
|
12871
|
+
msgNova: _vm.msgNova
|
|
12815
12872
|
},
|
|
12816
12873
|
attrs: {
|
|
12817
12874
|
"id": "a" + (_vm.messageIndex ? _vm.messageIndex : _vm.randomizeValue)
|
|
@@ -12822,7 +12879,7 @@ var __vue_render__$a = function () {
|
|
|
12822
12879
|
}
|
|
12823
12880
|
}, [_vm.msgNova ? _c('span', {
|
|
12824
12881
|
staticClass: "novas-mensagens"
|
|
12825
|
-
}, [_vm._v("
|
|
12882
|
+
}, [_vm._v(" Nova mensagem ")]) : _vm._e()]), _vm._v(" "), _c('div', {
|
|
12826
12883
|
staticClass: "card box-shadow"
|
|
12827
12884
|
}, [_c('div', {
|
|
12828
12885
|
staticClass: "card-header"
|
|
@@ -12920,7 +12977,24 @@ var __vue_render__$a = function () {
|
|
|
12920
12977
|
domProps: {
|
|
12921
12978
|
"innerHTML": _vm._s(_vm.mensagemFormatada)
|
|
12922
12979
|
}
|
|
12923
|
-
}), _vm._v(" "), _vm.
|
|
12980
|
+
}), _vm._v(" "), _vm.filteredInteratividadeData && _vm.filteredInteratividadeData.length ? _c('div', {
|
|
12981
|
+
staticClass: "card-interatividade"
|
|
12982
|
+
}, [_c('p', {
|
|
12983
|
+
staticClass: "card-interatividade-title"
|
|
12984
|
+
}, [_vm._v(_vm._s(_vm.dictionary.ra_infos_interatividade) + ":")]), _vm._v(" "), _c('ul', {
|
|
12985
|
+
staticClass: "card-interatividade-list"
|
|
12986
|
+
}, _vm._l(_vm.filteredInteratividadeData, function (values, index) {
|
|
12987
|
+
return _c('li', {
|
|
12988
|
+
key: index
|
|
12989
|
+
}, [_vm._l(values, function (value, key) {
|
|
12990
|
+
return _c('p', {
|
|
12991
|
+
key: key,
|
|
12992
|
+
domProps: {
|
|
12993
|
+
"innerHTML": _vm._s(_vm.formatInteratividadeValue(key, value))
|
|
12994
|
+
}
|
|
12995
|
+
});
|
|
12996
|
+
}), _vm._v(" "), _c('hr')], 2);
|
|
12997
|
+
}), 0)]) : _vm._e(), _vm._v(" "), _vm.anexos && _vm.anexos.length ? _c('div', {
|
|
12924
12998
|
staticClass: "card-footer"
|
|
12925
12999
|
}, _vm._l(_vm.anexos, function (anexo, index) {
|
|
12926
13000
|
return _c('div', {
|
|
@@ -12941,8 +13015,8 @@ var __vue_staticRenderFns__$a = [];
|
|
|
12941
13015
|
|
|
12942
13016
|
const __vue_inject_styles__$a = function (inject) {
|
|
12943
13017
|
if (!inject) return;
|
|
12944
|
-
inject("data-v-
|
|
12945
|
-
source: ".fade-enter-active[data-v-
|
|
13018
|
+
inject("data-v-6a514da5_0", {
|
|
13019
|
+
source: ".fade-enter-active[data-v-6a514da5],.fade-leave-active[data-v-6a514da5]{transition:opacity .2s}.fade-enter[data-v-6a514da5],.fade-leave-to[data-v-6a514da5]{opacity:0}.card-cli[data-v-6a514da5],.card-ope[data-v-6a514da5]{display:flex;width:95%;margin:5px 0;position:relative}.card-cli.msgNova[data-v-6a514da5],.card-ope.msgNova[data-v-6a514da5]{margin-top:30px}.novas-mensagens[data-v-6a514da5]{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-6a514da5]{border-left:3px solid #90b823}.card-ope[data-v-6a514da5]{align-self:flex-end;background-color:lighten(#007535,72)}.card-ope .card[data-v-6a514da5]{border-right:3px solid #007535}.card[data-v-6a514da5]{background-color:rgba(255,255,255,.9);overflow:hidden;width:100%;padding:2.5px 5px}.card p[data-v-6a514da5]{word-break:break-all}.card-header[data-v-6a514da5]{width:100%;border-bottom:1px solid #ddd;margin-bottom:5px;display:flex;justify-content:space-between}.card-header svg[data-v-6a514da5]{font-size:1rem}.card-canal[data-v-6a514da5]{flex:1;margin-right:10px}.card-datas[data-v-6a514da5]{display:flex;flex-direction:column;margin-right:10px}.card-data[data-v-6a514da5]{overflow:hidden;display:flex;align-content:center}.card-data span[data-v-6a514da5]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.card-data svg[data-v-6a514da5]{margin-right:5px;color:#232323}.card-expand[data-v-6a514da5]{display:flex;justify-content:center;align-items:center;margin:2.5px;cursor:pointer;opacity:.8;transition:opacity 150ms}.card-expand[data-v-6a514da5]:hover{opacity:1}.card-footer[data-v-6a514da5]{margin-top:5px;border-top:1px solid #ddd;display:flex;flex-wrap:wrap}.card-chip-container[data-v-6a514da5]{display:flex;flex-wrap:wrap;width:100%;gap:5px}.card-chip[data-v-6a514da5]{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-6a514da5]:hover{background-color:#cfd8f4}.card-chip.orange[data-v-6a514da5]{color:#e14924;background-color:rgba(228,92,58,.15)}.card-chip.orange[data-v-6a514da5]:hover{background-color:rgba(228,92,58,.2)}.card-chip.yellow[data-v-6a514da5]{color:#f4a304;background-color:rgba(252,191,73,.15)}.card-chip.yellow[data-v-6a514da5]:hover{background-color:rgba(252,191,73,.2)}.card-chip.red[data-v-6a514da5]{color:#e74c3c;background-color:rgba(231,76,60,.2)}.card-chip.red[data-v-6a514da5]:hover{background-color:rgba(231,76,60,.25)}.card-chip.green[data-v-6a514da5]{color:#0e3213;background-color:rgba(15,177,39,.3)}.card-chip.green[data-v-6a514da5]:hover{background-color:rgba(15,177,39,.4)}.card-anexo[data-v-6a514da5]{width:50px;height:50px;margin-right:5px;display:flex;justify-content:center;align-items:center}.anexo-item[data-v-6a514da5]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.anexo-item .transition-anexo-item[data-v-6a514da5]{max-width:100%;max-height:100%}.anexo-item .req-loader[data-v-6a514da5]{position:absolute;top:calc(50% - 12.5px);right:calc(50% - 12.5px)}.anexo-item .transition-anexo-item img[data-v-6a514da5]{max-width:45px;max-height:45px}.anexo-icone[data-v-6a514da5]{opacity:.9;transition:opacity .2s;color:#222;cursor:pointer;display:flex;justify-content:center;align-items:center}.anexo-icone[data-v-6a514da5]:hover{opacity:1}.anexo-icone[data-v-6a514da5]:visited{color:inherit}svg[data-v-6a514da5]{font-size:30px;z-index:1}.anexo-icone.pdf[data-v-6a514da5]{position:relative}.anexo-icone.pdf svg[data-v-6a514da5]{color:#e74c3c}.anexo-icone.pdf[data-v-6a514da5]::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.anexo-icone.doc[data-v-6a514da5]{color:#15517f}.anexo-icone.doc[data-v-6a514da5]::after{content:\"\";position:absolute;width:20px;height:20px;background-color:#fff}.anexo-img[data-v-6a514da5]{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-6a514da5]:hover{opacity:1}.anexo-img img[data-v-6a514da5]{width:95%}.card-interatividade[data-v-6a514da5]{display:flex;flex-direction:column;margin-top:10px;margin-bottom:5px}.card-interatividade-title[data-v-6a514da5]{font-weight:700;margin-bottom:5px}.card-interatividade-list[data-v-6a514da5]{margin:0;padding:0;font-size:.9rem}.card-interatividade-list hr[data-v-6a514da5]{height:1px;background-color:#ccc;width:100%;border:0}",
|
|
12946
13020
|
map: undefined,
|
|
12947
13021
|
media: undefined
|
|
12948
13022
|
});
|
|
@@ -12950,7 +13024,7 @@ const __vue_inject_styles__$a = function (inject) {
|
|
|
12950
13024
|
/* scoped */
|
|
12951
13025
|
|
|
12952
13026
|
|
|
12953
|
-
const __vue_scope_id__$a = "data-v-
|
|
13027
|
+
const __vue_scope_id__$a = "data-v-6a514da5";
|
|
12954
13028
|
/* module identifier */
|
|
12955
13029
|
|
|
12956
13030
|
const __vue_module_identifier__$a = undefined;
|