vue-intergrall-plugins 0.0.163 → 0.0.166

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.
@@ -3641,9 +3641,11 @@ var script$j = {
3641
3641
  this.file = this.file.filter(function (file) {
3642
3642
  return file.name != fileName;
3643
3643
  });
3644
+ this.fileSize = this.file.length;
3644
3645
  this.file.length ? this.emitFileVars(true) : this.deleteFile();
3645
3646
  },
3646
3647
  deleteFile: function deleteFile() {
3648
+ this.fileSize = this.file.length;
3647
3649
  this.$emit("set-file-vars", {
3648
3650
  file: [],
3649
3651
  isDoc: false,
@@ -3817,7 +3819,7 @@ var __vue_staticRenderFns__$j = [];
3817
3819
 
3818
3820
  var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
3819
3821
  if (!inject) return;
3820
- inject("data-v-275ded50_0", {
3822
+ inject("data-v-2ac0bc50_0", {
3821
3823
  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}",
3822
3824
  map: undefined,
3823
3825
  media: undefined
@@ -3829,7 +3831,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
3829
3831
  var __vue_scope_id__$j = undefined;
3830
3832
  /* module identifier */
3831
3833
 
3832
- var __vue_module_identifier__$j = "data-v-275ded50";
3834
+ var __vue_module_identifier__$j = "data-v-2ac0bc50";
3833
3835
  /* functional template */
3834
3836
 
3835
3837
  var __vue_is_functional_template__$j = false;
@@ -7761,7 +7763,7 @@ var axios_1 = axios$1;
7761
7763
  // Allow use of default import syntax in TypeScript
7762
7764
  var _default = axios$1;
7763
7765
  axios_1.default = _default;var axios = axios_1;vue__default["default"].prototype.$httpRequest = axios;
7764
- var baseURL = window.location.hostname == 'localhost' ? "https://linux07/im/atdHumano/middleware/atd_api.php" : "https://".concat(window.location.hostname);
7766
+ var baseURL = window.location.hostname == 'localhost' ? "https://linux07/im/atdHumano/middleware/atd_api.php" : "https://".concat(window.location.hostname, "/im/atdHumano/middleware/atd_api.php");
7765
7767
  var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';
7766
7768
  var standardMessages = {
7767
7769
  methods: {
@@ -7777,7 +7779,7 @@ var standardMessages = {
7777
7779
  return _context.abrupt("return", _this.$httpRequest({
7778
7780
  method: 'get',
7779
7781
  url: "".concat(baseURL, "/get-messages/").concat(type, "?token_cliente=").concat(token).concat(dev) // headers: {
7780
- // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VJNnhZdm1xSWVFaWpuMXJwMERkZzQ0ZjFzd3dpbTRsNXd3WWFrVUJtd3d4YjQ0YXd3ZVJ1U2lUeUxxVTEiLCJtYW5hZ2VyIjoiTUtVd0J6YzFnVkIzaWNlNE5yU01lbU5aekI1MkExTzdtNXdhdmQyYnd3eGI0NGF3d3d3eGI0NGF3d3FVU2NoIiwibnJvcyI6WyI0MSJdLCJhdXRoIjoiTUtVVnAxTWR3d2ltNGw1d3dYTnNjWDg5R3V4c1RsZUVqdGdpNjhoNk1JUzl6d0xBTGVRbjhUUCIsImlhdCI6MTY0NjMzOTkyOCwiZXhwIjoxNjQ2NDI2MzI4fQ.QNu0uO3qV-Lqvu8Xww1F_x8Bwnjlm175IVdM89EgPM0"
7782
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VuWHd3eGI0NGF3dzkwVVRXOGlIYUREd2doNm1sOFB0RVdoUHRWUjRHZW5YNnd3aW00bDV3d3M5SHB0bUIiLCJtYW5hZ2VyIjoiTUtVWHJHY2hOUlRZTkF3aHRvVUxldmtJYUdHcW9vSTVad3d4YjQ0YXd3ODRZQWxIVXpPZFZ3d3hiNDRhd3dpIiwibnJvcyI6WyI0OCJdLCJhdXRoIjoiTUtVd3d4YjQ0YXd3ZFVQVXQwVUlhaTNwanFGcmlQZ2dtaTY0SkViVnJJOXVjWFdBODRXRzR5ciIsImlhdCI6MTY0NjY1NzA0OSwiZXhwIjoxNjQ2NzQzNDQ5fQ.MqUARy1bbSc0iSOBcERwPYesIf-AdDcZaHa1yvn3RDM"
7781
7783
  // }
7782
7784
 
7783
7785
  }).then(function (response) {
@@ -7945,12 +7947,14 @@ var script$g = {
7945
7947
  if (!messageData.length) {
7946
7948
  this.formatted_messages_3.push(this.dictionary.msg_erro_sem_msg_formatada);
7947
7949
  this.key_3 = this.formatted_messages_3[0];
7950
+ this.openFormattedMsgType2(this.key_3);
7948
7951
  } else {
7949
7952
  this.formatted_messages_3 = messageData;
7950
7953
 
7951
7954
  if (this.formatted_messages_3.length == 1) {
7952
7955
  if (this.formatted_messages_3[0].cod) {
7953
7956
  this.key_3 = this.formatted_messages_3[0];
7957
+ this.openFormattedMsgType2(this.key_3);
7954
7958
  }
7955
7959
  }
7956
7960
  }
@@ -7968,7 +7972,8 @@ var script$g = {
7968
7972
  },
7969
7973
  openMsg: function openMsg() {
7970
7974
  try {
7971
- this.messageType == 1 ? this.insertFormattedMessage(this.key_3) : this.openFormattedMsgType2(this.key_3);
7975
+ // this.messageType == 1 ? this.insertFormattedMessage(this.key_3) :
7976
+ this.openFormattedMsgType2(this.key_3);
7972
7977
  } catch (e) {
7973
7978
  console.error("Error in openMsg: ", e);
7974
7979
  }
@@ -7986,17 +7991,13 @@ var script$g = {
7986
7991
  console.error("Error in openFormattedMsgType2: ", e);
7987
7992
  }
7988
7993
  },
7989
- insertFormattedMessage: function insertFormattedMessage(key) {
7994
+ insertFormattedMessage: function insertFormattedMessage() {
7990
7995
  try {
7991
- if (!key) return this.$toasted.global.defaultError({
7996
+ if (!this.key_3) return this.$toasted.global.defaultError({
7992
7997
  msg: 'Selecione uma mensagem'
7993
- });
7994
- if (!key.cod) throw new Error("Chave informada no parametro nao possue codigo");
7995
- var value = key.value;
7996
- var finalMessage = "".concat(this.message).concat(this.message && !this.message.endsWith(" ") ? " ".concat(value) : value);
7997
- return value ? this.$emit("add-standard-message", finalMessage) : this.$toasted.global.emConstrucao({
7998
- msg: 'Mensagem vazia'
7999
- });
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'})
8000
8001
  } catch (e) {
8001
8002
  console.error("Erro ao inserir mensagem formatada: ", e);
8002
8003
  }
@@ -8110,21 +8111,7 @@ var __vue_render__$g = function __vue_render__() {
8110
8111
  "slot": "no-options"
8111
8112
  },
8112
8113
  slot: "no-options"
8113
- }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _vm.key_3.cod ? [_vm.messageType == 1 ? _c('span', {
8114
- staticClass: "text-footer--btn-select-03",
8115
- attrs: {
8116
- "title": _vm.dictionary.title_btn_preencher_msg_formatada
8117
- },
8118
- on: {
8119
- "click": function click($event) {
8120
- return _vm.insertFormattedMessage(_vm.key_3);
8121
- }
8122
- }
8123
- }, [_c('fa-icon', {
8124
- attrs: {
8125
- "icon": ['fas', 'level-up-alt']
8126
- }
8127
- })], 1) : _vm.messageType == 2 ? _c('span', {
8114
+ }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _vm.key_3.cod ? [_c('span', {
8128
8115
  staticClass: "text-footer--btn-select-03",
8129
8116
  attrs: {
8130
8117
  "title": _vm.dictionary.title_btn_abrir_msg_tipo_2
@@ -8138,7 +8125,7 @@ var __vue_render__$g = function __vue_render__() {
8138
8125
  attrs: {
8139
8126
  "icon": ['fas', 'file-alt']
8140
8127
  }
8141
- })], 1) : _vm._e()] : _vm._e()], 2) : _vm.key_2 && _vm.loadingReq ? _c('div', {
8128
+ })], 1)] : _vm._e()], 2) : _vm.key_2 && _vm.loadingReq ? _c('div', {
8142
8129
  staticClass: "loader-select"
8143
8130
  }, [_c('VueLoader')], 1) : _vm._e()])], 2)], 2);
8144
8131
  };
@@ -8148,7 +8135,7 @@ var __vue_staticRenderFns__$g = [];
8148
8135
 
8149
8136
  var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
8150
8137
  if (!inject) return;
8151
- inject("data-v-9fe38344_0", {
8138
+ inject("data-v-2e6ac510_0", {
8152
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}",
8153
8140
  map: undefined,
8154
8141
  media: undefined
@@ -8160,7 +8147,7 @@ var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
8160
8147
  var __vue_scope_id__$g = undefined;
8161
8148
  /* module identifier */
8162
8149
 
8163
- var __vue_module_identifier__$g = "data-v-9fe38344";
8150
+ var __vue_module_identifier__$g = "data-v-2e6ac510";
8164
8151
  /* functional template */
8165
8152
 
8166
8153
  var __vue_is_functional_template__$g = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.163",
3
+ "version": "0.0.166",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -277,9 +277,11 @@ export default {
277
277
  this.file = this.file.filter(file => {
278
278
  return file.name != fileName
279
279
  })
280
+ this.fileSize = this.file.length;
280
281
  this.file.length ? this.emitFileVars(true) : this.deleteFile()
281
282
  },
282
283
  deleteFile() {
284
+ this.fileSize = this.file.length;
283
285
  this.$emit("set-file-vars", { file: [], isDoc: false, imagePreview: "", fileFormatError: false, hasAnyFile: false })
284
286
 
285
287
  this.file = []
@@ -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" v-else-if="messageType == 2" :title="dictionary.title_btn_abrir_msg_tipo_2" @click="openFormattedMsgType2(key_3)">
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) : this.openFormattedMsgType2(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(key) {
240
+ insertFormattedMessage() {
238
241
  try {
239
- if(!key) return this.$toasted.global.defaultError({msg: 'Selecione uma mensagem'})
240
- if(!key.cod) throw new Error("Chave informada no parametro nao possue codigo")
241
- const { value } = key
242
- const finalMessage = `${this.message}${this.message && !this.message.endsWith(" ") ? ` ${value}` : value}`
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
  }