@bildvitta/quasar-ui-asteroid 3.16.0-beta.1 → 3.16.0-beta.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.16.0-beta.1",
4
+ "version": "3.16.0-beta.3",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -3,7 +3,7 @@
3
3
  <qas-btn-dropdown v-bind="btnDropdownProps">
4
4
  <q-list data-cy="actions-menu-list">
5
5
  <slot v-for="(item, key) in formattedList.dropdownList" :item="item" :name="key">
6
- <q-item v-bind="getItemProps(item)" :key="key" clickable data-cy="actions-menu-list-item" @click="setClickHandler(item)">
6
+ <q-item v-bind="getItemProps(item)" :key="key" active-class="primary" clickable data-cy="actions-menu-list-item" @click="setClickHandler(item)">
7
7
  <q-item-section avatar>
8
8
  <q-icon :name="item.icon" />
9
9
  </q-item-section>
@@ -240,10 +240,11 @@ const { showTooltip, tooltipLabels } = useTooltips({ formattedList, fullList, pr
240
240
 
241
241
  // functions
242
242
  function getItemProps (item) {
243
- const { disable, props: itemProps } = item
243
+ const { disable, props: itemProps, to } = item
244
244
 
245
245
  return {
246
246
  disable,
247
+ to,
247
248
  ...itemProps
248
249
  }
249
250
  }
@@ -106,10 +106,12 @@ onUnmounted(() => {
106
106
  * Define o estilo do iframe de acordo com a posição do "chatContent" dentro
107
107
  * do QMenu.
108
108
  */
109
- function setIframeStyle () {
109
+ async function setIframeStyle () {
110
+ await nextTick()
111
+
110
112
  const iframe = getIframe()
111
113
 
112
- if (!iframe) return
114
+ if (!iframe || !chatContent.value) return
113
115
 
114
116
  const { bottom, left, top } = chatContent.value.getBoundingClientRect()
115
117
 
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="justify-between no-wrap q-col-gutter-x-md q-mb-xl row text-body1 text-grey-8" :class="containerClass">
2
+ <div class="justify-between no-wrap q-col-gutter-x-md row text-body1 text-grey-8" :class="containerClass">
3
3
  <div :class="leftClass">
4
4
  <slot name="left">
5
5
  {{ props.text }}
@@ -18,6 +18,8 @@
18
18
 
19
19
  <script setup>
20
20
  import { FlexAlign } from '../../enums/Align'
21
+ import { Spacing } from '../../enums/Spacing'
22
+ import { gutterValidator } from '../../helpers/private/gutter-validator'
21
23
 
22
24
  import { computed, useSlots } from 'vue'
23
25
 
@@ -43,13 +45,20 @@ const props = defineProps({
43
45
  text: {
44
46
  type: String,
45
47
  default: ''
48
+ },
49
+
50
+ spacing: {
51
+ default: Spacing.Xl,
52
+ type: String,
53
+ validator: gutterValidator
46
54
  }
47
55
  })
48
56
 
49
57
  const slots = useSlots()
50
58
 
51
59
  // computed
52
- const containerClass = computed(() => `items-${props.alignColumns}`)
60
+ const containerClass = computed(() => `items-${props.alignColumns} q-mb-${props.spacing}`)
61
+
53
62
  const leftClass = computed(() => hasRightSide.value ? 'col-9 col-md-9 col-sm-8' : 'col-12')
54
63
 
55
64
  const hasDefaultButton = computed(() => !!Object.keys(props.buttonProps).length)
@@ -24,6 +24,12 @@ props:
24
24
  desc: Descrição da seção a esquerda.
25
25
  type: String
26
26
 
27
+ spacing:
28
+ desc: Espaçamento entre o componente e o conteúdo abaixo.
29
+ default: xl
30
+ type: String
31
+ examples: [none, xs, sm, md, lg, xl, '2xl', '3xl', '4xl', '5xl']
32
+
27
33
  slots:
28
34
  left:
29
35
  desc: slot para acessar seção da esquerda (descrição).