vue-intergrall-plugins 0.0.254 → 0.0.256

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.
@@ -3723,10 +3723,10 @@ var MultipleFilePreview = __vue_component__$y;var script$p = {
3723
3723
  });
3724
3724
  }
3725
3725
 
3726
- if (sizeInMb >= 9.5) {
3726
+ if (sizeInMb >= 15) {
3727
3727
  this.file = [];
3728
3728
  return this.$toasted.global.defaultInfo({
3729
- msg: "Limite de 9.5 MB por arquivo"
3729
+ msg: "Limite de 15 MB por arquivo"
3730
3730
  });
3731
3731
  }
3732
3732
 
@@ -4080,7 +4080,7 @@ var __vue_staticRenderFns__$p = [];
4080
4080
 
4081
4081
  var __vue_inject_styles__$p = function __vue_inject_styles__(inject) {
4082
4082
  if (!inject) return;
4083
- inject("data-v-0a31a0c7_0", {
4083
+ inject("data-v-0a2392ca_0", {
4084
4084
  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}.files-counter-2{transform:translate(-15px,28px);opacity:.9;position:absolute;display:flex;justify-content:center;align-items:center;color:#888;font-size:.8rem}.files-counter-2 svg{margin-left:5px}.files-counter-2:hover{opacity:1;text-decoration:underline}",
4085
4085
  map: undefined,
4086
4086
  media: undefined
@@ -4092,7 +4092,7 @@ var __vue_inject_styles__$p = function __vue_inject_styles__(inject) {
4092
4092
  var __vue_scope_id__$p = undefined;
4093
4093
  /* module identifier */
4094
4094
 
4095
- var __vue_module_identifier__$p = "data-v-0a31a0c7";
4095
+ var __vue_module_identifier__$p = "data-v-0a2392ca";
4096
4096
  /* functional template */
4097
4097
 
4098
4098
  var __vue_is_functional_template__$p = false;
@@ -10118,15 +10118,21 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
10118
10118
  var type = anexos.type,
10119
10119
  mku = anexos.mku,
10120
10120
  name = anexos.name;
10121
- if (!type || !mku || !name) return anexos.tipoDoc || anexos.imgAnexo || anexos.docAnexo ? anexos : {
10122
- anexo: false,
10123
- imgAnexo: "",
10124
- tipoDoc: "",
10125
- docAnexo: "",
10126
- nomeArquivo: "",
10127
- audio: false,
10128
- video: false
10129
- };
10121
+ var ignoreMku = false;
10122
+
10123
+ if (!type || !mku || !name) {
10124
+ if (anexos.anexo) {
10125
+ ignoreMku = true;
10126
+ imgAnexo = anexos.imgAnexo ? anexos.imgAnexo : '';
10127
+ tipoDoc = anexos.tipoDoc ? anexos.tipoDoc : '';
10128
+ docAnexo = anexos.docAnexo ? anexos.docAnexo : '';
10129
+ nomeArquivo = anexos.nomeArquivo ? anexos.nomeArquivo : '';
10130
+ audio = anexos.audio ? anexos.audio : false;
10131
+ } else {
10132
+ return anexos;
10133
+ }
10134
+ }
10135
+
10130
10136
  var tipoAnexo = regexAnexos.exec(type);
10131
10137
  tipoAnexo = !tipoAnexo ? type : tipoAnexo[1];
10132
10138
  if (type === "application/octet-stream") audio = true;
@@ -10136,8 +10142,11 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
10136
10142
  case "jpg":
10137
10143
  case "png":
10138
10144
  case "jpeg":
10139
- imgAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
10140
- nomeArquivo = name;
10145
+ if (!ignoreMku) {
10146
+ imgAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
10147
+ nomeArquivo = name;
10148
+ }
10149
+
10141
10150
  break;
10142
10151
 
10143
10152
  case "audio/ogg":
@@ -10158,8 +10167,11 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
10158
10167
  tipoDoc = "audio/mpeg";
10159
10168
  }
10160
10169
 
10161
- docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
10162
- nomeArquivo = name;
10170
+ if (!ignoreMku) {
10171
+ docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
10172
+ nomeArquivo = name;
10173
+ }
10174
+
10163
10175
  audio = true;
10164
10176
  break;
10165
10177
 
@@ -10174,15 +10186,22 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
10174
10186
  tipoDoc = "video/webm";
10175
10187
  }
10176
10188
 
10177
- docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
10178
- nomeArquivo = name;
10189
+ if (!ignoreMku) {
10190
+ docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
10191
+ nomeArquivo = name;
10192
+ }
10193
+
10179
10194
  video = true;
10180
10195
  break;
10181
10196
 
10182
10197
  default:
10183
10198
  tipoDoc = type;
10184
- docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
10185
- nomeArquivo = name;
10199
+
10200
+ if (!ignoreMku) {
10201
+ docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
10202
+ nomeArquivo = name;
10203
+ }
10204
+
10186
10205
  break;
10187
10206
  }
10188
10207
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.254",
3
+ "version": "0.0.256",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -274,9 +274,9 @@ export default {
274
274
  this.file = []
275
275
  return this.$toasted.global.defaultInfo({ msg: this.dictionary.msg_arquivo_invalido })
276
276
  }
277
- if(sizeInMb >= 9.5) {
277
+ if(sizeInMb >= 15) {
278
278
  this.file = []
279
- return this.$toasted.global.defaultInfo({ msg: `Limite de 9.5 MB por arquivo` })
279
+ return this.$toasted.global.defaultInfo({ msg: `Limite de 15 MB por arquivo` })
280
280
  }
281
281
 
282
282
  if(this.file.length > this.fileSettings.max) {