vue-intergrall-plugins 0.0.164 → 0.0.165
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.
|
@@ -7779,7 +7779,7 @@ var standardMessages = {
|
|
|
7779
7779
|
return _context.abrupt("return", _this.$httpRequest({
|
|
7780
7780
|
method: 'get',
|
|
7781
7781
|
url: "".concat(baseURL, "/get-messages/").concat(type, "?token_cliente=").concat(token).concat(dev) // headers: {
|
|
7782
|
-
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
7782
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VuWHd3eGI0NGF3dzkwVVRXOGlIYUREd2doNm1sOFB0RVdoUHRWUjRHZW5YNnd3aW00bDV3d3M5SHB0bUIiLCJtYW5hZ2VyIjoiTUtVWHJHY2hOUlRZTkF3aHRvVUxldmtJYUdHcW9vSTVad3d4YjQ0YXd3ODRZQWxIVXpPZFZ3d3hiNDRhd3dpIiwibnJvcyI6WyI0OCJdLCJhdXRoIjoiTUtVd3d4YjQ0YXd3ZFVQVXQwVUlhaTNwanFGcmlQZ2dtaTY0SkViVnJJOXVjWFdBODRXRzR5ciIsImlhdCI6MTY0NjY1NzA0OSwiZXhwIjoxNjQ2NzQzNDQ5fQ.MqUARy1bbSc0iSOBcERwPYesIf-AdDcZaHa1yvn3RDM"
|
|
7783
7783
|
// }
|
|
7784
7784
|
|
|
7785
7785
|
}).then(function (response) {
|
|
@@ -7947,12 +7947,14 @@ var script$g = {
|
|
|
7947
7947
|
if (!messageData.length) {
|
|
7948
7948
|
this.formatted_messages_3.push(this.dictionary.msg_erro_sem_msg_formatada);
|
|
7949
7949
|
this.key_3 = this.formatted_messages_3[0];
|
|
7950
|
+
this.openFormattedMsgType2(this.key_3);
|
|
7950
7951
|
} else {
|
|
7951
7952
|
this.formatted_messages_3 = messageData;
|
|
7952
7953
|
|
|
7953
7954
|
if (this.formatted_messages_3.length == 1) {
|
|
7954
7955
|
if (this.formatted_messages_3[0].cod) {
|
|
7955
7956
|
this.key_3 = this.formatted_messages_3[0];
|
|
7957
|
+
this.openFormattedMsgType2(this.key_3);
|
|
7956
7958
|
}
|
|
7957
7959
|
}
|
|
7958
7960
|
}
|
|
@@ -7970,7 +7972,8 @@ var script$g = {
|
|
|
7970
7972
|
},
|
|
7971
7973
|
openMsg: function openMsg() {
|
|
7972
7974
|
try {
|
|
7973
|
-
this.messageType == 1 ? this.insertFormattedMessage(this.key_3) :
|
|
7975
|
+
// this.messageType == 1 ? this.insertFormattedMessage(this.key_3) :
|
|
7976
|
+
this.openFormattedMsgType2(this.key_3);
|
|
7974
7977
|
} catch (e) {
|
|
7975
7978
|
console.error("Error in openMsg: ", e);
|
|
7976
7979
|
}
|
|
@@ -7988,17 +7991,13 @@ var script$g = {
|
|
|
7988
7991
|
console.error("Error in openFormattedMsgType2: ", e);
|
|
7989
7992
|
}
|
|
7990
7993
|
},
|
|
7991
|
-
insertFormattedMessage: function insertFormattedMessage(
|
|
7994
|
+
insertFormattedMessage: function insertFormattedMessage() {
|
|
7992
7995
|
try {
|
|
7993
|
-
if (!
|
|
7996
|
+
if (!this.key_3) return this.$toasted.global.defaultError({
|
|
7994
7997
|
msg: 'Selecione uma mensagem'
|
|
7995
|
-
});
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
var finalMessage = "".concat(this.message).concat(this.message && !this.message.endsWith(" ") ? " ".concat(value) : value);
|
|
7999
|
-
return value ? this.$emit("add-standard-message", finalMessage) : this.$toasted.global.emConstrucao({
|
|
8000
|
-
msg: 'Mensagem vazia'
|
|
8001
|
-
});
|
|
7998
|
+
}); // const { value } = key
|
|
7999
|
+
// const finalMessage = `${this.message}${this.message && !this.message.endsWith(" ") ? ` ${value}` : value}`
|
|
8000
|
+
// return value ? this.$emit("add-standard-message", finalMessage) : this.$toasted.global.emConstrucao({msg: 'Mensagem vazia'})
|
|
8002
8001
|
} catch (e) {
|
|
8003
8002
|
console.error("Erro ao inserir mensagem formatada: ", e);
|
|
8004
8003
|
}
|
|
@@ -8112,21 +8111,7 @@ var __vue_render__$g = function __vue_render__() {
|
|
|
8112
8111
|
"slot": "no-options"
|
|
8113
8112
|
},
|
|
8114
8113
|
slot: "no-options"
|
|
8115
|
-
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _vm.key_3.cod ? [
|
|
8116
|
-
staticClass: "text-footer--btn-select-03",
|
|
8117
|
-
attrs: {
|
|
8118
|
-
"title": _vm.dictionary.title_btn_preencher_msg_formatada
|
|
8119
|
-
},
|
|
8120
|
-
on: {
|
|
8121
|
-
"click": function click($event) {
|
|
8122
|
-
return _vm.insertFormattedMessage(_vm.key_3);
|
|
8123
|
-
}
|
|
8124
|
-
}
|
|
8125
|
-
}, [_c('fa-icon', {
|
|
8126
|
-
attrs: {
|
|
8127
|
-
"icon": ['fas', 'level-up-alt']
|
|
8128
|
-
}
|
|
8129
|
-
})], 1) : _vm.messageType == 2 ? _c('span', {
|
|
8114
|
+
}, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _vm.key_3.cod ? [_c('span', {
|
|
8130
8115
|
staticClass: "text-footer--btn-select-03",
|
|
8131
8116
|
attrs: {
|
|
8132
8117
|
"title": _vm.dictionary.title_btn_abrir_msg_tipo_2
|
|
@@ -8140,7 +8125,7 @@ var __vue_render__$g = function __vue_render__() {
|
|
|
8140
8125
|
attrs: {
|
|
8141
8126
|
"icon": ['fas', 'file-alt']
|
|
8142
8127
|
}
|
|
8143
|
-
})], 1)
|
|
8128
|
+
})], 1)] : _vm._e()], 2) : _vm.key_2 && _vm.loadingReq ? _c('div', {
|
|
8144
8129
|
staticClass: "loader-select"
|
|
8145
8130
|
}, [_c('VueLoader')], 1) : _vm._e()])], 2)], 2);
|
|
8146
8131
|
};
|
|
@@ -8150,7 +8135,7 @@ var __vue_staticRenderFns__$g = [];
|
|
|
8150
8135
|
|
|
8151
8136
|
var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
|
|
8152
8137
|
if (!inject) return;
|
|
8153
|
-
inject("data-v-
|
|
8138
|
+
inject("data-v-2e6ac510_0", {
|
|
8154
8139
|
source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}",
|
|
8155
8140
|
map: undefined,
|
|
8156
8141
|
media: undefined
|
|
@@ -8162,7 +8147,7 @@ var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
|
|
|
8162
8147
|
var __vue_scope_id__$g = undefined;
|
|
8163
8148
|
/* module identifier */
|
|
8164
8149
|
|
|
8165
|
-
var __vue_module_identifier__$g = "data-v-
|
|
8150
|
+
var __vue_module_identifier__$g = "data-v-2e6ac510";
|
|
8166
8151
|
/* functional template */
|
|
8167
8152
|
|
|
8168
8153
|
var __vue_is_functional_template__$g = false;
|
package/package.json
CHANGED
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
<div slot="no-options"> {{ dictionary.msg_sem_resultados }} </div>
|
|
51
51
|
</v-select>
|
|
52
52
|
<template v-if="key_3.cod">
|
|
53
|
-
<span class="text-footer--btn-select-03" v-if="messageType == 1" :title="dictionary.title_btn_preencher_msg_formatada" @click="insertFormattedMessage(key_3)">
|
|
53
|
+
<!-- <span class="text-footer--btn-select-03" v-if="messageType == 1" :title="dictionary.title_btn_preencher_msg_formatada" @click="insertFormattedMessage(key_3)">
|
|
54
54
|
<fa-icon :icon="['fas', 'level-up-alt']" />
|
|
55
|
-
</span>
|
|
56
|
-
<span class="text-footer--btn-select-03"
|
|
55
|
+
</span> -->
|
|
56
|
+
<span class="text-footer--btn-select-03" :title="dictionary.title_btn_abrir_msg_tipo_2" @click="openFormattedMsgType2(key_3)"> <!-- v-else-if="messageType == 2" -->
|
|
57
57
|
<fa-icon :icon="['fas', 'file-alt']" />
|
|
58
58
|
</span>
|
|
59
59
|
</template>
|
|
@@ -198,11 +198,13 @@ export default {
|
|
|
198
198
|
if(!messageData.length){
|
|
199
199
|
this.formatted_messages_3.push(this.dictionary.msg_erro_sem_msg_formatada)
|
|
200
200
|
this.key_3 = this.formatted_messages_3[0]
|
|
201
|
+
this.openFormattedMsgType2(this.key_3)
|
|
201
202
|
}else{
|
|
202
203
|
this.formatted_messages_3 = messageData
|
|
203
204
|
if(this.formatted_messages_3.length == 1) {
|
|
204
205
|
if(this.formatted_messages_3[0].cod) {
|
|
205
206
|
this.key_3 = this.formatted_messages_3[0]
|
|
207
|
+
this.openFormattedMsgType2(this.key_3)
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
210
|
}
|
|
@@ -219,7 +221,8 @@ export default {
|
|
|
219
221
|
},
|
|
220
222
|
openMsg() {
|
|
221
223
|
try {
|
|
222
|
-
this.messageType == 1 ? this.insertFormattedMessage(this.key_3) :
|
|
224
|
+
// this.messageType == 1 ? this.insertFormattedMessage(this.key_3) :
|
|
225
|
+
this.openFormattedMsgType2(this.key_3)
|
|
223
226
|
}catch(e) {
|
|
224
227
|
console.error("Error in openMsg: ", e)
|
|
225
228
|
}
|
|
@@ -234,13 +237,12 @@ export default {
|
|
|
234
237
|
console.error("Error in openFormattedMsgType2: ", e)
|
|
235
238
|
}
|
|
236
239
|
},
|
|
237
|
-
insertFormattedMessage(
|
|
240
|
+
insertFormattedMessage() {
|
|
238
241
|
try {
|
|
239
|
-
if(!
|
|
240
|
-
|
|
241
|
-
const { value
|
|
242
|
-
|
|
243
|
-
return value ? this.$emit("add-standard-message", finalMessage) : this.$toasted.global.emConstrucao({msg: 'Mensagem vazia'})
|
|
242
|
+
if(!this.key_3) return this.$toasted.global.defaultError({msg: 'Selecione uma mensagem'})
|
|
243
|
+
// const { value } = key
|
|
244
|
+
// const finalMessage = `${this.message}${this.message && !this.message.endsWith(" ") ? ` ${value}` : value}`
|
|
245
|
+
// return value ? this.$emit("add-standard-message", finalMessage) : this.$toasted.global.emConstrucao({msg: 'Mensagem vazia'})
|
|
244
246
|
}catch(e) {
|
|
245
247
|
console.error("Erro ao inserir mensagem formatada: ", e)
|
|
246
248
|
}
|