wave-ui 2.31.0 → 2.31.4

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,7 +1,7 @@
1
1
  {
2
2
  "name": "wave-ui",
3
- "version": "2.31.0",
4
- "description": "An emerging UI framework for Vue.js & Vue 3 with only the bright side. :sunny:",
3
+ "version": "2.31.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
  "main": "./dist/wave-ui.umd.js",
7
7
  "unpkg": "dist/wave-ui.umd.js",
@@ -62,7 +62,7 @@
62
62
  "splitpanes": "^3.0.6",
63
63
  "vite": "^2.7.13",
64
64
  "vite-plugin-pug": "^0.3.0",
65
- "vue": "^3.2.29",
65
+ "vue": "^3.2.31",
66
66
  "vue-cal": "^4.2.0",
67
67
  "vue-router": "^4.0.12",
68
68
  "vueperslides": "^3.3.2",
@@ -48,7 +48,7 @@ export default {
48
48
  ligature () {
49
49
  if (!config.iconsLigature) return false
50
50
 
51
- const [fontName, icon] = this.$slots.default()[0].children
51
+ const [fontName, icon] = this.$slots.default()[0]?.children?.split(' ')
52
52
  return fontName === config.iconsLigature && { fontName, icon }
53
53
  },
54
54
  forcedSize () {
@@ -217,7 +217,7 @@ export default {
217
217
  hasValue () {
218
218
  switch (this.type) {
219
219
  case 'file': return !!this.inputFiles.length
220
- case 'number': return this.inputNumberError
220
+ case 'number': return this.inputValue || this.inputValue === 0 || this.inputNumberError
221
221
  case 'date':
222
222
  case 'time':
223
223
  return true
@@ -1,7 +1,10 @@
1
1
  <template lang="pug">
2
2
  .w-progress(:class="classes" :style="styles")
3
3
  //- Linear progress.
4
- .w-progress__progress(v-if="!circle" :class="{ full: progressValue === 100 }" :style="`width: ${progressValue}%`")
4
+ .w-progress__progress(
5
+ v-if="!circle"
6
+ :class="{ full: progressValue === 100 }"
7
+ :style="`width: ${progressValue}%`")
5
8
 
6
9
  //- Circular progress.
7
10
  template(v-else)
@@ -1,5 +1,5 @@
1
1
  <template lang="pug">
2
- .w-spinner(v-if="value || value === undefined" :class="classes" :style="styles")
2
+ .w-spinner(v-if="modelValue || modelValue === undefined" :class="classes" :style="styles")
3
3
  span(v-if="isThreeDots")
4
4
  </template>
5
5
 
@@ -7,7 +7,7 @@
7
7
  export default {
8
8
  name: 'w-spinner',
9
9
  props: {
10
- value: {},
10
+ modelValue: {},
11
11
  color: { type: String, default: 'primary' },
12
12
  xs: { type: Boolean },
13
13
  sm: { type: Boolean },
@@ -85,14 +85,6 @@ export default class WaveUI {
85
85
  // Merge user options into the default config.
86
86
  mergeConfig(options)
87
87
 
88
- // @todo: remove this warning in version 1.40+.
89
- if (config.disableColorShades) {
90
- consoleWarn(
91
- 'WARNING - Since version 1.30 (Vue 2) & 2.17 (Vue 3), the option `disableColorShades` is replaced with `css.colorShades`.\n' +
92
- 'https://antoniandre.github.io/wave-ui/release-notes'
93
- )
94
- }
95
-
96
88
  // Add color shades for each custom color given in options.
97
89
  if (config.css.colorShades) {
98
90
  config.colorShades = {}
@@ -6,14 +6,11 @@
6
6
  transition: $duration $delay cubic-bezier(0.18, 0.89, 0.32, 1.28);
7
7
  }
8
8
 
9
- /**
10
- * Generates a triangle arrow on the edge of an element.
11
- *
12
- * @param $color: the color to apply to the triangle.
13
- * @param $selector: the element selector that receives the modifiers (--top, --left, etc.).
14
- * @param $size: the triangle size at the base.
15
- * @param $thickness: the border thickness, 0 to remove the border.
16
- */
9
+ // Generates a triangle arrow on the edge of an element.
10
+ // @param $color: the color to apply to the triangle.
11
+ // @param $selector: the element selector that receives the modifiers (--top, --left, etc.).
12
+ // @param $size: the triangle size at the base.
13
+ // @param $thickness: the border thickness, 0 to remove the border.
17
14
  @mixin triangle($color: white, $selector: '', $size: 7px, $thickness: 1px) {
18
15
  @if ($thickness > 0) {
19
16
  // The underneath border triangle.