vue-intergrall-plugins 0.0.162 → 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.
@@ -3851,7 +3851,7 @@ var script$j = {
3851
3851
  externalFiles() {
3852
3852
  this.file = this.externalFiles;
3853
3853
  this.fileSize = this.externalFiles.length;
3854
- multipleFileUpload();
3854
+ this.multipleFileUpload();
3855
3855
  }
3856
3856
 
3857
3857
  },
@@ -4012,10 +4012,12 @@ var script$j = {
4012
4012
  this.file = this.file.filter(file => {
4013
4013
  return file.name != fileName;
4014
4014
  });
4015
+ this.fileSize = this.file.length;
4015
4016
  this.file.length ? this.emitFileVars(true) : this.deleteFile();
4016
4017
  },
4017
4018
 
4018
4019
  deleteFile() {
4020
+ this.fileSize = this.file.length;
4019
4021
  this.$emit("set-file-vars", {
4020
4022
  file: [],
4021
4023
  isDoc: false,
@@ -4229,7 +4231,7 @@ var __vue_staticRenderFns__$j = [];
4229
4231
 
4230
4232
  const __vue_inject_styles__$j = function (inject) {
4231
4233
  if (!inject) return;
4232
- inject("data-v-0352a8b0_0", {
4234
+ inject("data-v-2ac0bc50_0", {
4233
4235
  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}",
4234
4236
  map: undefined,
4235
4237
  media: undefined
@@ -8276,7 +8278,7 @@ const standardMessages = {
8276
8278
  return this.$httpRequest({
8277
8279
  method: 'get',
8278
8280
  url: `${baseURL}/get-messages/${type}?token_cliente=${token}${dev}` // headers: {
8279
- // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VJNnhZdm1xSWVFaWpuMXJwMERkZzQ0ZjFzd3dpbTRsNXd3WWFrVUJtd3d4YjQ0YXd3ZVJ1U2lUeUxxVTEiLCJtYW5hZ2VyIjoiTUtVd0J6YzFnVkIzaWNlNE5yU01lbU5aekI1MkExTzdtNXdhdmQyYnd3eGI0NGF3d3d3eGI0NGF3d3FVU2NoIiwibnJvcyI6WyI0MSJdLCJhdXRoIjoiTUtVVnAxTWR3d2ltNGw1d3dYTnNjWDg5R3V4c1RsZUVqdGdpNjhoNk1JUzl6d0xBTGVRbjhUUCIsImlhdCI6MTY0NjMzOTkyOCwiZXhwIjoxNjQ2NDI2MzI4fQ.QNu0uO3qV-Lqvu8Xww1F_x8Bwnjlm175IVdM89EgPM0"
8281
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VuWHd3eGI0NGF3dzkwVVRXOGlIYUREd2doNm1sOFB0RVdoUHRWUjRHZW5YNnd3aW00bDV3d3M5SHB0bUIiLCJtYW5hZ2VyIjoiTUtVWHJHY2hOUlRZTkF3aHRvVUxldmtJYUdHcW9vSTVad3d4YjQ0YXd3ODRZQWxIVXpPZFZ3d3hiNDRhd3dpIiwibnJvcyI6WyI0OCJdLCJhdXRoIjoiTUtVd3d4YjQ0YXd3ZFVQVXQwVUlhaTNwanFGcmlQZ2dtaTY0SkViVnJJOXVjWFdBODRXRzR5ciIsImlhdCI6MTY0NjY1NzA0OSwiZXhwIjoxNjQ2NzQzNDQ5fQ.MqUARy1bbSc0iSOBcERwPYesIf-AdDcZaHa1yvn3RDM"
8280
8282
  // }
8281
8283
 
8282
8284
  }).then(response => {
@@ -8441,12 +8443,14 @@ var script$g = {
8441
8443
  if (!messageData.length) {
8442
8444
  this.formatted_messages_3.push(this.dictionary.msg_erro_sem_msg_formatada);
8443
8445
  this.key_3 = this.formatted_messages_3[0];
8446
+ this.openFormattedMsgType2(this.key_3);
8444
8447
  } else {
8445
8448
  this.formatted_messages_3 = messageData;
8446
8449
 
8447
8450
  if (this.formatted_messages_3.length == 1) {
8448
8451
  if (this.formatted_messages_3[0].cod) {
8449
8452
  this.key_3 = this.formatted_messages_3[0];
8453
+ this.openFormattedMsgType2(this.key_3);
8450
8454
  }
8451
8455
  }
8452
8456
  }
@@ -8465,7 +8469,8 @@ var script$g = {
8465
8469
 
8466
8470
  openMsg() {
8467
8471
  try {
8468
- this.messageType == 1 ? this.insertFormattedMessage(this.key_3) : this.openFormattedMsgType2(this.key_3);
8472
+ // this.messageType == 1 ? this.insertFormattedMessage(this.key_3) :
8473
+ this.openFormattedMsgType2(this.key_3);
8469
8474
  } catch (e) {
8470
8475
  console.error("Error in openMsg: ", e);
8471
8476
  }
@@ -8485,19 +8490,13 @@ var script$g = {
8485
8490
  }
8486
8491
  },
8487
8492
 
8488
- insertFormattedMessage(key) {
8493
+ insertFormattedMessage() {
8489
8494
  try {
8490
- if (!key) return this.$toasted.global.defaultError({
8495
+ if (!this.key_3) return this.$toasted.global.defaultError({
8491
8496
  msg: 'Selecione uma mensagem'
8492
- });
8493
- if (!key.cod) throw new Error("Chave informada no parametro nao possue codigo");
8494
- const {
8495
- value
8496
- } = key;
8497
- const finalMessage = `${this.message}${this.message && !this.message.endsWith(" ") ? ` ${value}` : value}`;
8498
- return value ? this.$emit("add-standard-message", finalMessage) : this.$toasted.global.emConstrucao({
8499
- msg: 'Mensagem vazia'
8500
- });
8497
+ }); // const { value } = key
8498
+ // const finalMessage = `${this.message}${this.message && !this.message.endsWith(" ") ? ` ${value}` : value}`
8499
+ // return value ? this.$emit("add-standard-message", finalMessage) : this.$toasted.global.emConstrucao({msg: 'Mensagem vazia'})
8501
8500
  } catch (e) {
8502
8501
  console.error("Erro ao inserir mensagem formatada: ", e);
8503
8502
  }
@@ -8616,21 +8615,7 @@ var __vue_render__$g = function () {
8616
8615
  "slot": "no-options"
8617
8616
  },
8618
8617
  slot: "no-options"
8619
- }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _vm.key_3.cod ? [_vm.messageType == 1 ? _c('span', {
8620
- staticClass: "text-footer--btn-select-03",
8621
- attrs: {
8622
- "title": _vm.dictionary.title_btn_preencher_msg_formatada
8623
- },
8624
- on: {
8625
- "click": function ($event) {
8626
- return _vm.insertFormattedMessage(_vm.key_3);
8627
- }
8628
- }
8629
- }, [_c('fa-icon', {
8630
- attrs: {
8631
- "icon": ['fas', 'level-up-alt']
8632
- }
8633
- })], 1) : _vm.messageType == 2 ? _c('span', {
8618
+ }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _vm.key_3.cod ? [_c('span', {
8634
8619
  staticClass: "text-footer--btn-select-03",
8635
8620
  attrs: {
8636
8621
  "title": _vm.dictionary.title_btn_abrir_msg_tipo_2
@@ -8644,7 +8629,7 @@ var __vue_render__$g = function () {
8644
8629
  attrs: {
8645
8630
  "icon": ['fas', 'file-alt']
8646
8631
  }
8647
- })], 1) : _vm._e()] : _vm._e()], 2) : _vm.key_2 && _vm.loadingReq ? _c('div', {
8632
+ })], 1)] : _vm._e()], 2) : _vm.key_2 && _vm.loadingReq ? _c('div', {
8648
8633
  staticClass: "loader-select"
8649
8634
  }, [_c('VueLoader')], 1) : _vm._e()])], 1)], 1);
8650
8635
  };
@@ -8654,7 +8639,7 @@ var __vue_staticRenderFns__$g = [];
8654
8639
 
8655
8640
  const __vue_inject_styles__$g = function (inject) {
8656
8641
  if (!inject) return;
8657
- inject("data-v-9fe38344_0", {
8642
+ inject("data-v-2e6ac510_0", {
8658
8643
  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}",
8659
8644
  map: undefined,
8660
8645
  media: undefined