@bildvitta/quasar-ui-asteroid 3.11.0-beta.12 → 3.11.0-beta.13

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.11.0-beta.12",
4
+ "version": "3.11.0-beta.13",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -14,7 +14,7 @@
14
14
  <section class="text-body1 text-grey-8">
15
15
  <component :is="componentTag" ref="form">
16
16
  <slot name="description">
17
- <div v-if="card.description">{{ card.description }}</div>
17
+ <component :is="descriptionComponentTag">{{ card.description }}</component>
18
18
  </slot>
19
19
  </component>
20
20
  </section>
@@ -186,6 +186,14 @@ export default {
186
186
  useEqualWidth: this.hasAllActions,
187
187
  ...this.actionsProps
188
188
  }
189
+ },
190
+
191
+ hasRenderFunction () {
192
+ return typeof this.card.description?.render === 'function'
193
+ },
194
+
195
+ descriptionComponentTag () {
196
+ return this.hasRenderFunction ? this.card.description : 'div'
189
197
  }
190
198
  },
191
199
 
@@ -19,6 +19,11 @@ props:
19
19
  type: String
20
20
  examples: [xs, sm, md, lg, xl]
21
21
 
22
+ color:
23
+ desc: Cor da label.
24
+ default: grey-9
25
+ type: String
26
+
22
27
  slots:
23
28
  default:
24
29
  desc: Slot para acessar elemento do texto.
@@ -20,11 +20,20 @@ export default function (config = {}) {
20
20
  const { entity, id, url } = deleteActionParams
21
21
 
22
22
  const defaultDialogProps = {
23
- card: { description: 'Tem certeza que deseja excluir este item?' },
23
+ ...dialogProps,
24
24
 
25
- ok: { label: 'Excluir', onClick: () => destroy.call(this) },
25
+ card: {
26
+ description: 'Tem certeza que deseja excluir este item?',
26
27
 
27
- ...dialogProps
28
+ ...dialogProps.card
29
+ },
30
+
31
+ ok: {
32
+ label: 'Excluir',
33
+ onClick: () => destroy.call(this),
34
+
35
+ ...dialogProps.ok
36
+ }
28
37
  }
29
38
 
30
39
  const defaultNotifyMessages = {