vue-intergrall-plugins 0.0.231 → 0.0.232

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.
@@ -3943,17 +3943,17 @@ var script$n = {
3943
3943
  externalFiles() {
3944
3944
  if (!this.externalFiles.length) return;
3945
3945
 
3946
- if (this.externalFiles.length + this.file.length > this.fileSettings.max) {
3946
+ if (this.externalFiles.length > this.fileSettings.max) {
3947
3947
  this.$emit("reset-file-system");
3948
3948
  return this.$toasted.global.defaultInfo({
3949
3949
  msg: `Limite de ${this.fileSettings.max} arquivos`
3950
3950
  });
3951
3951
  }
3952
3952
 
3953
+ this.file = [];
3953
3954
  this.externalFilesAux = Array.from(this.externalFiles);
3954
- const allNames = this.file.map(file => file.name);
3955
3955
  this.externalFilesAux.forEach(files => {
3956
- if (!allNames.includes(files.name)) this.file.push(files);
3956
+ this.file.push(files);
3957
3957
  });
3958
3958
  this.fileSize = this.file.length;
3959
3959
  this.multipleFileUpload();
@@ -4418,7 +4418,7 @@ var __vue_staticRenderFns__$n = [];
4418
4418
 
4419
4419
  const __vue_inject_styles__$n = function (inject) {
4420
4420
  if (!inject) return;
4421
- inject("data-v-42569faa_0", {
4421
+ inject("data-v-38ede73a_0", {
4422
4422
  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}",
4423
4423
  map: undefined,
4424
4424
  media: undefined