@bildvitta/quasar-ui-asteroid 3.17.0-beta.14 → 3.17.0-beta.15

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": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.17.0-beta.14",
4
+ "version": "3.17.0-beta.15",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -19,12 +19,7 @@ defineOptions({
19
19
  const props = defineProps({
20
20
  color: {
21
21
  type: String,
22
- default: AvatarColors.Primary,
23
- validator: value => {
24
- const availableColors = Object.values(AvatarColors)
25
-
26
- return availableColors.includes(value)
27
- }
22
+ default: AvatarColors.Primary
28
23
  },
29
24
 
30
25
  size: {
@@ -42,6 +37,11 @@ const props = defineProps({
42
37
  type: String
43
38
  },
44
39
 
40
+ textColor: {
41
+ default: '',
42
+ type: String
43
+ },
44
+
45
45
  title: {
46
46
  default: '',
47
47
  type: String
@@ -62,7 +62,6 @@ const attributes = computed(() => {
62
62
  rounded,
63
63
  square,
64
64
  fontSize,
65
- textColor,
66
65
  ...attributes
67
66
  } = attrs
68
67
 
@@ -76,7 +75,7 @@ const attributes = computed(() => {
76
75
  return {
77
76
  size: props.size,
78
77
  color: props.color,
79
- textColor: colors[props.color],
78
+ textColor: colors[props.color] || props.textColor,
80
79
  ...attributes
81
80
  }
82
81
  })
@@ -350,7 +350,7 @@ export default {
350
350
  this.handleFetchData()
351
351
  },
352
352
 
353
- unmounted () {
353
+ beforeUnmount () {
354
354
  this.unregisterChartJS()
355
355
  },
356
356