@bildvitta/quasar-ui-asteroid 3.16.0-beta.6 → 3.16.0-beta.8

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.6",
4
+ "version": "3.16.0-beta.8",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -28,9 +28,11 @@
28
28
 
29
29
  <q-separator v-if="!isNestedExpansionItem" class="q-my-md" />
30
30
 
31
- <slot name="content">
32
- <qas-grid-generator v-if="hasGridGenerator" v-bind="gridGeneratorProps" use-inline />
33
- </slot>
31
+ <div :class="contentClasses">
32
+ <slot name="content">
33
+ <qas-grid-generator v-if="hasGridGenerator" use-inline v-bind="gridGeneratorProps" />
34
+ </slot>
35
+ </div>
34
36
 
35
37
  <q-separator v-if="hasBottomSeparator" class="q-mt-md" />
36
38
  </q-expansion-item>
@@ -99,12 +101,13 @@ const component = {
99
101
 
100
102
  // computed
101
103
  const hasError = computed(() => props.error || !!props.errorMessage)
102
- const errorClasses = computed(() => ({ 'qas-expansion-item--error': hasError.value }))
103
-
104
104
  const hasGridGenerator = computed(() => !!Object.keys(props.gridGeneratorProps).length)
105
105
  const hasBottomSeparator = computed(() => isNestedExpansionItem && hasNextSibling.value)
106
106
  const hasHeaderBottom = computed(() => !!slots['header-bottom'])
107
107
 
108
+ const errorClasses = computed(() => ({ 'qas-expansion-item--error': hasError.value }))
109
+ const contentClasses = computed(() => ({ 'q-mt-sm': isNestedExpansionItem }))
110
+
108
111
  const expansionProps = computed(() => {
109
112
  const {
110
113
  'onUpdate:modelValue': onUpdateModelValue,
@@ -141,7 +144,7 @@ const expansionProps = computed(() => {
141
144
  function setHasNextSibling (value) {
142
145
  if (!isNestedExpansionItem) return
143
146
 
144
- const hasTextContentSibling = !!expansionItem.value.nextSibling.textContent?.trim?.()
147
+ const hasTextContentSibling = !!expansionItem.value.nextSibling?.textContent?.trim?.()
145
148
  const hasElementSibling = !!expansionItem.value.nextElementSibling
146
149
 
147
150
  hasNextSibling.value = hasElementSibling || hasTextContentSibling