vue-intergrall-plugins 0.0.203 → 0.0.204

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.
@@ -3149,8 +3149,13 @@ var BtnMic = __vue_component__$v;//
3149
3149
  //
3150
3150
  //
3151
3151
  //
3152
+ //
3152
3153
  var script$n = {
3153
3154
  props: {
3155
+ textId: {
3156
+ type: String,
3157
+ required: true
3158
+ },
3154
3159
  dictionary: {
3155
3160
  type: Object,
3156
3161
  required: true
@@ -3177,12 +3182,22 @@ var script$n = {
3177
3182
  required: false
3178
3183
  }
3179
3184
  },
3185
+ mounted: function mounted() {
3186
+ this.setPosition();
3187
+ },
3180
3188
  methods: {
3181
3189
  deleteFile: function deleteFile() {
3182
3190
  this.$emit("delete-file");
3183
3191
  },
3184
3192
  openImage: function openImage() {
3185
3193
  this.$emit("open-image");
3194
+ },
3195
+ setPosition: function setPosition() {
3196
+ try {
3197
+ this.$refs["sfp-".concat(this.textId)].parentElement.style.bottom = "".concat(this.$root.$refs["tf-".concat(this.textId)].$el.offsetHeight, "px");
3198
+ } catch (e) {
3199
+ console.error("Erro ao setar a posicao do single file preview: ", e);
3200
+ }
3186
3201
  }
3187
3202
  }
3188
3203
  };/* script */
@@ -3196,11 +3211,22 @@ var __vue_render__$n = function __vue_render__() {
3196
3211
 
3197
3212
  var _c = _vm._self._c || _h;
3198
3213
 
3199
- return _c('div', {
3214
+ return _vm.textId ? _c('div', {
3215
+ ref: "sfp-" + _vm.textId,
3200
3216
  staticClass: "single-file-preview"
3201
- }, [_vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.dictionary.msg_cancelar_anexo) + " class=\"text-footer-exclude-file\">", "</span>", [_c('fa-icon', {
3217
+ }, [_c('fa-icon', {
3218
+ staticClass: "close-icon",
3202
3219
  attrs: {
3203
3220
  "icon": ['fas', 'times-circle']
3221
+ },
3222
+ on: {
3223
+ "click": function click($event) {
3224
+ return _vm.$emit('close');
3225
+ }
3226
+ }
3227
+ }), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.dictionary.msg_cancelar_anexo) + " class=\"text-footer-exclude-file\">", "</span>", [_c('fa-icon', {
3228
+ attrs: {
3229
+ "icon": ['fas', 'trash-alt']
3204
3230
  }
3205
3231
  })], 1), _vm._ssrNode(" "), _vm.fileFormatError ? _vm._ssrNode("<div class=\"text-footer-invalid-format\">", "</div>", [_vm._ssrNode("<h3>" + _vm._ssrEscape(_vm._s(_vm.dictionary.titulo_msg_formato_invalido)) + "</h3> <h4>" + _vm._ssrEscape(_vm._s(_vm.validFileFormats)) + "</h4>")], 2) : [_vm.file.name ? _vm._ssrNode("<h3 class=\"text-footer-preview-title\">", "</h3>", [_vm.isDoc ? _c('fa-icon', {
3206
3232
  attrs: {
@@ -3210,7 +3236,7 @@ var __vue_render__$n = function __vue_render__() {
3210
3236
  attrs: {
3211
3237
  "icon": ['fas', 'image']
3212
3238
  }
3213
- }), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.file.name) + "\n "))], 2) : _vm._e(), _vm._ssrNode(" " + (_vm.imagePreview ? "<div class=\"text-footer-image-preview\"><img" + _vm._ssrAttr("src", _vm.imagePreview) + _vm._ssrAttr("alt", _vm.dictionary.alt_previa_img) + "></div>" : "<!---->"))]], 2);
3239
+ }), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.file.name) + "\n "))], 2) : _vm._e(), _vm._ssrNode(" " + (_vm.imagePreview ? "<div class=\"text-footer-image-preview\"><img" + _vm._ssrAttr("src", _vm.imagePreview) + _vm._ssrAttr("alt", _vm.dictionary.alt_previa_img) + "></div>" : "<!---->"))]], 2) : _vm._e();
3214
3240
  };
3215
3241
 
3216
3242
  var __vue_staticRenderFns__$n = [];
@@ -3218,8 +3244,8 @@ var __vue_staticRenderFns__$n = [];
3218
3244
 
3219
3245
  var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
3220
3246
  if (!inject) return;
3221
- inject("data-v-da00a08e_0", {
3222
- source: ".text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-preview-title{font-size:1rem;padding:10px 0 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-footer-image-preview{display:flex;justify-content:center;align-items:center;width:100%}.text-footer-image-preview img{cursor:pointer;max-width:98%;max-height:98%;padding:2%}",
3247
+ inject("data-v-bd51f352_0", {
3248
+ source: ".single-file-preview .close-icon{color:#e74c3c;cursor:pointer;opacity:.9;transition:opacity .3s}.single-file-preview .close-icon:hover{opacity:1}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-preview-title{font-size:1rem;padding:10px 0 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-footer-image-preview{display:flex;justify-content:center;align-items:center;width:100%}.text-footer-image-preview img{cursor:pointer;max-width:98%;max-height:98%;padding:2%}",
3223
3249
  map: undefined,
3224
3250
  media: undefined
3225
3251
  });
@@ -3230,7 +3256,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
3230
3256
  var __vue_scope_id__$n = undefined;
3231
3257
  /* module identifier */
3232
3258
 
3233
- var __vue_module_identifier__$n = "data-v-da00a08e";
3259
+ var __vue_module_identifier__$n = "data-v-bd51f352";
3234
3260
  /* functional template */
3235
3261
 
3236
3262
  var __vue_is_functional_template__$n = false;
@@ -3330,7 +3356,17 @@ var __vue_render__$m = function __vue_render__() {
3330
3356
 
3331
3357
  return _c('div', {
3332
3358
  staticClass: "multiple-file-preview"
3333
- }, [_c('transition-group', {
3359
+ }, [_c('fa-icon', {
3360
+ staticClass: "close-icon",
3361
+ attrs: {
3362
+ "icon": ['fas', 'times-circle']
3363
+ },
3364
+ on: {
3365
+ "click": function click($event) {
3366
+ return _vm.$emit('close');
3367
+ }
3368
+ }
3369
+ }), _vm._ssrNode(" "), _c('transition-group', {
3334
3370
  attrs: {
3335
3371
  "name": "fade"
3336
3372
  }
@@ -3405,10 +3441,10 @@ var __vue_render__$m = function __vue_render__() {
3405
3441
  }
3406
3442
  }, [_c('fa-icon', {
3407
3443
  attrs: {
3408
- "icon": ['fas', 'times-circle']
3444
+ "icon": ['fas', 'trash-alt']
3409
3445
  }
3410
3446
  })], 1)]);
3411
- })], 2)], 1);
3447
+ })], 2)], 2);
3412
3448
  };
3413
3449
 
3414
3450
  var __vue_staticRenderFns__$m = [];
@@ -3416,8 +3452,8 @@ var __vue_staticRenderFns__$m = [];
3416
3452
 
3417
3453
  var __vue_inject_styles__$m = function __vue_inject_styles__(inject) {
3418
3454
  if (!inject) return;
3419
- inject("data-v-22ab2ae5_0", {
3420
- source: ".multiple-file-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;transition:background-color 150ms;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:4px}.multiple-file-preview::-webkit-scrollbar{width:4px}.multiple-file-preview::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.multiple-file-preview::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#222}.multiple-file-preview::-webkit-scrollbar-thumb:hover{background-color:#555}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-exclude-file{position:absolute;top:5px;right:5px;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;background-color:#fff;border-radius:50%}.text-footer-exclude-file svg{transition:color .2s;color:#e9594a}.text-footer-exclude-file svg:hover{color:#e74c3c}.file-preview{display:flex;width:100%;align-items:center;padding:5px 10px;transition:background-color 150ms}.file-preview:hover{background-color:rgba(0,0,0,.1)}.file-title{color:#222;display:flex;align-items:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px 10px;background-color:#fff;border-radius:30px;display:inline-block}.file-title.red{color:#e74c3c;margin-left:5px}.file-title>svg{margin-right:5px}.small-img{flex:1;margin:0 15px;display:flex;justify-content:center;align-items:center;position:relative}.small-img img{height:40px;cursor:pointer}.small-img .pdf{display:flex;justify-content:center;align-items:center;font-size:30px;color:#e74c3c}.small-img .pdf svg{z-index:1}.small-img .pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.img-container{padding:5px;border-radius:2.5px;background-color:rgba(0,0,0,.15);display:flex;justify-content:center;align-items:center}.delete-file{display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff;min-width:1rem;min-height:1rem;cursor:pointer}.delete-file>svg{font-size:1rem;color:#e74c3c}",
3455
+ inject("data-v-28d9ba6f_0", {
3456
+ source: ".multiple-file-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;transition:background-color 150ms;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:4px}.multiple-file-preview::-webkit-scrollbar{width:4px}.multiple-file-preview .close-icon{color:#e74c3c;cursor:pointer;opacity:.9;transition:opacity .3s}.multiple-file-preview .close-icon:hover{opacity:1}.multiple-file-preview::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.multiple-file-preview::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#222}.multiple-file-preview::-webkit-scrollbar-thumb:hover{background-color:#555}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-exclude-file{position:absolute;top:5px;right:5px;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;background-color:#fff;border-radius:50%}.text-footer-exclude-file svg{transition:color .2s;color:#e9594a}.text-footer-exclude-file svg:hover{color:#e74c3c}.file-preview{display:flex;width:100%;align-items:center;padding:5px 10px;transition:background-color 150ms}.file-preview:hover{background-color:rgba(0,0,0,.1)}.file-title{color:#222;display:flex;align-items:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px 10px;background-color:#fff;border-radius:30px;display:inline-block}.file-title.red{color:#e74c3c;margin-left:5px}.file-title>svg{margin-right:5px}.small-img{flex:1;margin:0 15px;display:flex;justify-content:center;align-items:center;position:relative}.small-img img{height:40px;cursor:pointer}.small-img .pdf{display:flex;justify-content:center;align-items:center;font-size:30px;color:#e74c3c}.small-img .pdf svg{z-index:1}.small-img .pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.img-container{padding:5px;border-radius:2.5px;background-color:rgba(0,0,0,.15);display:flex;justify-content:center;align-items:center}.delete-file{display:flex;justify-content:center;align-items:center;cursor:pointer}.delete-file>svg{font-size:1rem;color:#e74c3c}",
3421
3457
  map: undefined,
3422
3458
  media: undefined
3423
3459
  });
@@ -3428,7 +3464,7 @@ var __vue_inject_styles__$m = function __vue_inject_styles__(inject) {
3428
3464
  var __vue_scope_id__$m = undefined;
3429
3465
  /* module identifier */
3430
3466
 
3431
- var __vue_module_identifier__$m = "data-v-22ab2ae5";
3467
+ var __vue_module_identifier__$m = "data-v-28d9ba6f";
3432
3468
  /* functional template */
3433
3469
 
3434
3470
  var __vue_is_functional_template__$m = false;
@@ -3640,6 +3676,7 @@ var script$l = {
3640
3676
  },
3641
3677
  toggleFilePreview: function toggleFilePreview() {
3642
3678
  this.showFilePreview = !this.showFilePreview;
3679
+ if (this.showFilePreview && this.openFiles) this.toggleFiles();
3643
3680
  },
3644
3681
  emitFileVars: function emitFileVars() {
3645
3682
  var vars = {
@@ -3695,7 +3732,7 @@ var __vue_render__$l = function __vue_render__() {
3695
3732
  return _c('span', {
3696
3733
  staticClass: "text-footer-actions--btn",
3697
3734
  class: {
3698
- 'files-activated': _vm.openFiles || _vm.file.length
3735
+ 'files-activated': _vm.openFiles || _vm.file.length || _vm.file.name
3699
3736
  },
3700
3737
  on: {
3701
3738
  "click": function click($event) {
@@ -3809,11 +3846,13 @@ var __vue_render__$l = function __vue_render__() {
3809
3846
  "isDoc": _vm.isDoc,
3810
3847
  "fileFormatError": _vm.fileFormatError,
3811
3848
  "validFileFormats": _vm.validFileFormats,
3812
- "imagePreview": _vm.imagePreview
3849
+ "imagePreview": _vm.imagePreview,
3850
+ "textId": _vm.textId
3813
3851
  },
3814
3852
  on: {
3815
3853
  "delete-file": _vm.deleteFile,
3816
- "open-image": _vm.openImage
3854
+ "open-image": _vm.openImage,
3855
+ "close": _vm.away
3817
3856
  }
3818
3857
  }) : _vm.fileSettings.multiple && _vm.showFilePreview ? _c('MultipleFilePreview', {
3819
3858
  attrs: {
@@ -3825,7 +3864,8 @@ var __vue_render__$l = function __vue_render__() {
3825
3864
  on: {
3826
3865
  "delete-file": _vm.deleteFile,
3827
3866
  "delete-specific-file": _vm.deleteSpecificFile,
3828
- "open-image": _vm.openImage
3867
+ "open-image": _vm.openImage,
3868
+ "close": _vm.away
3829
3869
  }
3830
3870
  }) : _vm._e()], 1)])], 2);
3831
3871
  };
@@ -3835,7 +3875,7 @@ var __vue_staticRenderFns__$l = [];
3835
3875
 
3836
3876
  var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
3837
3877
  if (!inject) return;
3838
- inject("data-v-2ac0bc50_0", {
3878
+ inject("data-v-05acb102_0", {
3839
3879
  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}",
3840
3880
  map: undefined,
3841
3881
  media: undefined
@@ -3847,7 +3887,7 @@ var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
3847
3887
  var __vue_scope_id__$l = undefined;
3848
3888
  /* module identifier */
3849
3889
 
3850
- var __vue_module_identifier__$l = "data-v-2ac0bc50";
3890
+ var __vue_module_identifier__$l = "data-v-05acb102";
3851
3891
  /* functional template */
3852
3892
 
3853
3893
  var __vue_is_functional_template__$l = false;
@@ -7797,7 +7837,7 @@ var dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';var s
7797
7837
  return _context.abrupt("return", _this.$httpRequest({
7798
7838
  method: 'get',
7799
7839
  url: "".concat(baseURL, "/messages/").concat(type, "?token_cliente=").concat(token).concat(dev) // headers: {
7800
- // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1UzakpwZmViWkc1Y1M4dm9rRnBOdFY2WEYxaTh0ZllLWEkzV0ljRTd0M0dxeSIsIm1hbmFnZXIiOiJNS1VxQnBrRlIzQk5ING02Q2J3d2ltNGw1d3dJd3d4YjQ0YXd3aFk1VXd3aW00bDV3d2szSWZJV2RGc2dFRjhjdEhoOVB2eCIsImhhc19pbmZvcyI6dHJ1ZSwibnJvcyI6WyIyOCJdLCJhdXRoIjoiTUtVYXNtV3NNSnpZdmV2R2VQYTRubkZqdHRWR3gxODl6RnRWNDVtVUdFN1JlazAiLCJpYXQiOjE2NDg2NTkwNjQsImV4cCI6MTY0ODc0NTQ2NH0.vdwahP7qSwLJ8qYdQsG-ydL1Y-tzf6Frt0rnd9fYpIU"
7840
+ // Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VUUnd3aW00bDV3d0piTHczb2xPYWtTbWxab283Q1F2MDY3V3pWR2E3VkhDQ2FMUEdsS2VQIiwibWFuYWdlciI6Ik1LVXFCcGtGUjNCTkhrbTZ5Znd3aW00bDV3d0l2Tlk0MDZrMzQ3SVdkRnNnRUY4Y3RIaDlQdngiLCJoYXNfaW5mb3MiOnRydWUsIm5yb3MiOltdLCJhdXRoIjoiTUtVdXdGZjdjMXd3eGI0NGF3d1F4eGlia3N2NW5YR2FxOWZVNkxMYnAzQ0tkS1NHa0RvbWV4ZiIsImlhdCI6MTY0ODgxMjYzOSwiZXhwIjoxNjQ4ODk5MDM5fQ.IMpYYLoxiX566-Y2fqNlJu0qBkEyOOTWZ25UqeOyPUs"
7801
7841
  // }
7802
7842
 
7803
7843
  }).then(function (response) {
@@ -7872,7 +7912,7 @@ var script$i = {
7872
7912
  key_2: "",
7873
7913
  formatted_messages_3: [],
7874
7914
  key_3: "",
7875
- loadingReq: false
7915
+ loadingReq: true
7876
7916
  };
7877
7917
  },
7878
7918
  mounted: function mounted() {
@@ -7927,6 +7967,8 @@ var script$i = {
7927
7967
 
7928
7968
  _this.$toasted.global.defaultError();
7929
7969
 
7970
+ _this.closeStandardMessages();
7971
+
7930
7972
  console.error("Error in getStandardMessages: ", e);
7931
7973
  });
7932
7974
  } catch (e) {
@@ -8042,34 +8084,7 @@ var __vue_render__$i = function __vue_render__() {
8042
8084
 
8043
8085
  return _c('div', {
8044
8086
  staticClass: "text-footer-hsm-container"
8045
- }, [_c('v-select', {
8046
- staticClass: "text-footer-v-select",
8047
- style: "background-color: " + _vm.backgroundColor,
8048
- attrs: {
8049
- "appendToBody": "",
8050
- "calculatePosition": _vm.calculateSelectPosition,
8051
- "options": _vm.formatted_messages_1,
8052
- "label": "value",
8053
- "reduce": function reduce(formatted_messages_1) {
8054
- return formatted_messages_1.cod;
8055
- }
8056
- },
8057
- on: {
8058
- "input": _vm.inputSelectKey1
8059
- },
8060
- model: {
8061
- value: _vm.key_1,
8062
- callback: function callback($$v) {
8063
- _vm.key_1 = $$v;
8064
- },
8065
- expression: "key_1"
8066
- }
8067
- }, [_c('div', {
8068
- attrs: {
8069
- "slot": "no-options"
8070
- },
8071
- slot: "no-options"
8072
- }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"transition-selects\">", "</div>", [_c('transition', {
8087
+ }, [_vm._ssrNode("<div class=\"transition-selects\">", "</div>", [_c('transition', {
8073
8088
  attrs: {
8074
8089
  "name": "fade",
8075
8090
  "mode": "out-in"
@@ -8142,7 +8157,7 @@ var __vue_render__$i = function __vue_render__() {
8142
8157
  slot: "no-options"
8143
8158
  }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])])], 1) : _vm.key_2 && _vm.loadingReq ? _c('div', {
8144
8159
  staticClass: "loader-select"
8145
- }, [_c('VueLoader')], 1) : _vm._e()])], 2)], 2);
8160
+ }, [_c('VueLoader')], 1) : _vm._e()])], 2)]);
8146
8161
  };
8147
8162
 
8148
8163
  var __vue_staticRenderFns__$i = [];
@@ -8150,7 +8165,7 @@ var __vue_staticRenderFns__$i = [];
8150
8165
 
8151
8166
  var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
8152
8167
  if (!inject) return;
8153
- inject("data-v-d7521b32_0", {
8168
+ inject("data-v-4e81952e_0", {
8154
8169
  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}.loading-message{background-color:#555!important}",
8155
8170
  map: undefined,
8156
8171
  media: undefined
@@ -8162,7 +8177,7 @@ var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
8162
8177
  var __vue_scope_id__$i = undefined;
8163
8178
  /* module identifier */
8164
8179
 
8165
- var __vue_module_identifier__$i = "data-v-d7521b32";
8180
+ var __vue_module_identifier__$i = "data-v-4e81952e";
8166
8181
  /* functional template */
8167
8182
 
8168
8183
  var __vue_is_functional_template__$i = false;
@@ -8685,7 +8700,7 @@ var __vue_render__$h = function __vue_render__() {
8685
8700
  attrs: {
8686
8701
  "icon": ['fas', 'paper-plane']
8687
8702
  }
8688
- })], 1)]) : _vm._e(), _vm._ssrNode(" "), _vm.buttons.hasFiles || _vm.buttons.hasAudio || _vm.buttons.hasExpand ? _vm._ssrNode("<div" + _vm._ssrClass("text-footer-actions", {
8703
+ })], 1)]) : _vm._e(), _vm._ssrNode(" "), _vm.buttons.hasFiles || _vm.buttons.hasAudio || _vm.buttons.hasExpand || _vm.formattedMessageSettings.hasStandardMessages ? _vm._ssrNode("<div" + _vm._ssrClass("text-footer-actions", {
8689
8704
  'outside-buttons': _vm.cssStyle.outsideButtons && !_vm.audioFile
8690
8705
  }) + ">", "</div>", [_c('BtnMic', {
8691
8706
  directives: [{
@@ -8705,8 +8720,8 @@ var __vue_render__$h = function __vue_render__() {
8705
8720
  directives: [{
8706
8721
  name: "show",
8707
8722
  rawName: "v-show",
8708
- value: _vm.formattedMessageSettings.hasStandardMessages,
8709
- expression: "formattedMessageSettings.hasStandardMessages"
8723
+ value: _vm.formattedMessageSettings.hasStandardMessages && !_vm.audioFile,
8724
+ expression: "formattedMessageSettings.hasStandardMessages && !audioFile"
8710
8725
  }],
8711
8726
  ref: _vm.textId + "-standard-messages",
8712
8727
  attrs: {
@@ -8781,7 +8796,7 @@ var __vue_staticRenderFns__$h = [];
8781
8796
 
8782
8797
  var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
8783
8798
  if (!inject) return;
8784
- inject("data-v-bb390258_0", {
8799
+ inject("data-v-fb83a0b4_0", {
8785
8800
  source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349}.text-footer-container .text-footer-preview-container{cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
8786
8801
  map: undefined,
8787
8802
  media: undefined
@@ -8793,7 +8808,7 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
8793
8808
  var __vue_scope_id__$h = undefined;
8794
8809
  /* module identifier */
8795
8810
 
8796
- var __vue_module_identifier__$h = "data-v-bb390258";
8811
+ var __vue_module_identifier__$h = "data-v-fb83a0b4";
8797
8812
  /* functional template */
8798
8813
 
8799
8814
  var __vue_is_functional_template__$h = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.203",
3
+ "version": "0.0.204",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <span class="text-footer-actions--btn" :class="{'files-activated' : openFiles || file.length}" @click="openFilesByClip()">
2
+ <span class="text-footer-actions--btn" :class="{'files-activated' : openFiles || file.length || file.name}" @click="openFilesByClip()">
3
3
  <transition name="fade">
4
4
  <span v-if="fileSize > 0" class="files-counter" v-text="fileSize" @click.stop="toggleFilePreview" :title="dictionary.msg_abrir_anexos"></span>
5
5
  </transition>
@@ -32,8 +32,10 @@
32
32
  :fileFormatError="fileFormatError"
33
33
  :validFileFormats="validFileFormats"
34
34
  :imagePreview="imagePreview"
35
+ :textId="textId"
35
36
  @delete-file="deleteFile"
36
37
  @open-image="openImage"
38
+ @close="away"
37
39
  />
38
40
  <MultipleFilePreview
39
41
  v-else-if="fileSettings.multiple && showFilePreview"
@@ -44,6 +46,7 @@
44
46
  @delete-file="deleteFile"
45
47
  @delete-specific-file="deleteSpecificFile"
46
48
  @open-image="openImage"
49
+ @close="away"
47
50
  />
48
51
  </div>
49
52
  </transition>
@@ -265,6 +268,7 @@ export default {
265
268
  },
266
269
  toggleFilePreview() {
267
270
  this.showFilePreview = !this.showFilePreview
271
+ if(this.showFilePreview && this.openFiles) this.toggleFiles()
268
272
  },
269
273
  emitFileVars() {
270
274
  const vars = { file: this.file, isDoc: this.isDoc, imagePreview: this.imagePreview, fileFormatError: this.fileFormatError, hasAnyFile: this.hasAnyFile }
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div class="multiple-file-preview">
3
+ <fa-icon :icon="['fas', 'times-circle']" class="close-icon" @click="$emit('close')" />
3
4
  <transition-group name="fade">
4
5
  <Loader v-if="loading" key="mfp-loader" />
5
6
  <template v-else-if="fileFormatError">
@@ -34,7 +35,7 @@
34
35
  </span>
35
36
  </div>
36
37
  <span @click="deleteSpecificFile(singleFile.name, index)" :title="dictionary.msg_excluir_anexo" class="delete-file">
37
- <fa-icon :icon="['fas', 'times-circle']" />
38
+ <fa-icon :icon="['fas', 'trash-alt']" />
38
39
  </span>
39
40
  </div>
40
41
  </template>
@@ -116,6 +117,16 @@ export default {
116
117
  width: 4px;
117
118
  }
118
119
 
120
+ .multiple-file-preview .close-icon {
121
+ color: #E74C3C;
122
+ cursor: pointer;
123
+ opacity: .9;
124
+ transition: opacity 300ms;
125
+ }
126
+ .multiple-file-preview .close-icon:hover {
127
+ opacity: 1;
128
+ }
129
+
119
130
  .multiple-file-preview::-webkit-scrollbar-track{
120
131
  background-color: rgba(0, 0, 0, 0.2);
121
132
  }
@@ -236,10 +247,6 @@ export default {
236
247
  display: flex;
237
248
  justify-content: center;
238
249
  align-items: center;
239
- border-radius: 50%;
240
- background-color: #FFF;
241
- min-width: 1rem;
242
- min-height: 1rem;
243
250
  cursor: pointer;
244
251
  }
245
252
  .delete-file > svg {
@@ -1,7 +1,8 @@
1
1
  <template>
2
- <div class="single-file-preview">
2
+ <div v-if="textId" class="single-file-preview" :ref="`sfp-${textId}`">
3
+ <fa-icon :icon="['fas', 'times-circle']" class="close-icon" @click="$emit('close')" />
3
4
  <span @click="deleteFile" :title="dictionary.msg_cancelar_anexo" class="text-footer-exclude-file">
4
- <fa-icon :icon="['fas', 'times-circle']" />
5
+ <fa-icon :icon="['fas', 'trash-alt']" />
5
6
  </span>
6
7
  <div class="text-footer-invalid-format" v-if="fileFormatError">
7
8
  <h3 v-text="dictionary.titulo_msg_formato_invalido"></h3>
@@ -23,6 +24,7 @@
23
24
  <script>
24
25
  export default {
25
26
  props: {
27
+ textId: { type: String, required: true },
26
28
  dictionary: { type: Object, required: true },
27
29
  file: { type: File, required: false },
28
30
  isDoc: { type: Boolean, required: false },
@@ -30,18 +32,37 @@ export default {
30
32
  validFileFormats: { type: String, required: false, default: "" },
31
33
  imagePreview: { type: String, required: false }
32
34
  },
35
+ mounted() {
36
+ this.setPosition()
37
+ },
33
38
  methods: {
34
39
  deleteFile() {
35
40
  this.$emit("delete-file")
36
41
  },
37
42
  openImage() {
38
43
  this.$emit("open-image")
44
+ },
45
+ setPosition() {
46
+ try {
47
+ this.$refs[`sfp-${this.textId}`].parentElement.style.bottom = `${this.$root.$refs[`tf-${this.textId}`].$el.offsetHeight}px`
48
+ }catch(e) {
49
+ console.error("Erro ao setar a posicao do single file preview: ", e)
50
+ }
39
51
  }
40
52
  }
41
53
  }
42
54
  </script>
43
55
 
44
56
  <style>
57
+ .single-file-preview .close-icon {
58
+ color: #E74C3C;
59
+ cursor: pointer;
60
+ opacity: .9;
61
+ transition: opacity 300ms;
62
+ }
63
+ .single-file-preview .close-icon:hover {
64
+ opacity: 1;
65
+ }
45
66
  .text-footer-invalid-format {
46
67
  color: #222;
47
68
  padding: 10px;
@@ -1,18 +1,5 @@
1
1
  <template>
2
2
  <div class="text-footer-hsm-container">
3
- <v-select
4
- appendToBody
5
- :calculatePosition="calculateSelectPosition"
6
- :style="`background-color: ${backgroundColor}`"
7
- class="text-footer-v-select"
8
- :options="formatted_messages_1"
9
- label="value"
10
- v-model="key_1"
11
- :reduce="formatted_messages_1 => formatted_messages_1.cod"
12
- @input="inputSelectKey1"
13
- >
14
- <div slot="no-options"> {{ dictionary.msg_sem_resultados }} </div>
15
- </v-select>
16
3
  <div class="transition-selects">
17
4
  <transition name="fade" mode="out-in">
18
5
  <div v-if="formatted_messages_2.length && key_1">
@@ -114,7 +101,7 @@ export default {
114
101
  key_2: "",
115
102
  formatted_messages_3: [],
116
103
  key_3: "",
117
- loadingReq: false
104
+ loadingReq: true
118
105
  }
119
106
  },
120
107
  mounted() {
@@ -158,7 +145,8 @@ export default {
158
145
  }).catch(e => {
159
146
  this.loadingReq = false
160
147
  this.$toasted.global.defaultError()
161
- console.error("Error in getStandardMessages: ", e)
148
+ this.closeStandardMessages()
149
+ console.error("Error in getStandardMessages: ", e)
162
150
  })
163
151
  }catch(e) {
164
152
  this.loadingReq = false
@@ -43,7 +43,7 @@
43
43
  <fa-icon :icon="['fas', 'paper-plane']" />
44
44
  </span>
45
45
  </div>
46
- <div v-if="buttons.hasFiles || buttons.hasAudio || buttons.hasExpand" class="text-footer-actions" :class="{'outside-buttons' : cssStyle.outsideButtons && !audioFile}">
46
+ <div v-if="buttons.hasFiles || buttons.hasAudio || buttons.hasExpand || formattedMessageSettings.hasStandardMessages" class="text-footer-actions" :class="{'outside-buttons' : cssStyle.outsideButtons && !audioFile}">
47
47
  <BtnMic
48
48
  v-show="buttons.hasAudio && !audioFile"
49
49
  :dictionary="dictionary"
@@ -51,7 +51,7 @@
51
51
  :ref="`${textId}-mic`"
52
52
  />
53
53
  <BtnStandardMessages
54
- v-show="formattedMessageSettings.hasStandardMessages"
54
+ v-show="formattedMessageSettings.hasStandardMessages && !audioFile"
55
55
  :dictionary="dictionary"
56
56
  :ref="`${textId}-standard-messages`"
57
57
  @toggle-standard-messages="toggleStandardMessages"