wave-ui 1.67.1 → 1.67.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-ui",
3
- "version": "1.67.1",
3
+ "version": "1.67.3",
4
4
  "description": "An emerging UI framework for Vue.js (2 & 3) with only the bright side. :sunny:",
5
5
  "author": "Antoni Andre <antoniandre.web@gmail.com>",
6
6
  "homepage": "https://antoniandre.github.io/wave-ui",
@@ -47,7 +47,7 @@
47
47
  "build-bundle": "BUNDLE=true vite build && mv ./dist/style.css ./dist/wave-ui.css",
48
48
  "serve": "vite preview --base /wave-ui/",
49
49
  "lint": "vite lint",
50
- "publish": "npm run build && npm run build-bundle && git add . && git commit -m 'Publish documentation on Github.' && git push && git push --tag && npm publish --tag latest"
50
+ "publish-doc": "npm run build && npm run build-bundle && git add . && git commit -m 'Publish documentation on Github.' && git push && git push --tag"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@babel/core": "^7.22.10",
@@ -180,6 +180,8 @@ export default {
180
180
  // Keep the `class` attribute bound to the wrapper and not the input.
181
181
  // eslint-disable-next-line no-unused-vars
182
182
  const { class: classes, ...htmlAttrs } = this.$attrs
183
+ // Resets the input[type=file] the native HTML way.
184
+ if (this.type === 'file' && !this.inputFiles.length) htmlAttrs.value = null
183
185
  return htmlAttrs
184
186
  },
185
187
 
@@ -312,8 +314,10 @@ export default {
312
314
 
313
315
  return file
314
316
  }))
315
- this.$emit('update:modelValue', this.inputFiles)
316
- this.$emit('input', this.inputFiles)
317
+
318
+ const filesPayload = this.multiple ? this.inputFiles : this.inputFiles[0]
319
+ this.$emit('update:modelValue', filesPayload)
320
+ this.$emit('input', filesPayload)
317
321
  },
318
322
 
319
323
  // For file input.
@@ -355,7 +359,10 @@ export default {
355
359
  value (value) {
356
360
  this.inputValue = value
357
361
  // When clearing the field value, also reset the isAutofilled var for the CSS class.
358
- if (!value && value !== 0) this.isAutofilled = false
362
+ if (!value && value !== 0) {
363
+ this.isAutofilled = false
364
+ this.inputFiles = []
365
+ }
359
366
  }
360
367
  }
361
368
  }
@@ -286,8 +286,8 @@ export default {
286
286
  paginationConfig: {
287
287
  itemsPerPage: 0,
288
288
  itemsPerPageOptions: {},
289
- start: 0,
290
- end: 0,
289
+ start: undefined,
290
+ end: undefined,
291
291
  page: 1,
292
292
  total: 0
293
293
  }