@bildvitta/quasar-ui-asteroid 3.16.0-beta.5 → 3.16.0-beta.7
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 +1 -1
- package/src/components/btn-dropdown/QasBtnDropdown.vue +3 -3
- package/src/components/expansion-item/QasExpansionItem.vue +36 -8
- package/src/components/header-actions/QasHeaderActions.vue +6 -2
- package/src/components/single-view/QasSingleView.vue +3 -0
- package/src/components/toggle-visibility/QasToggleVisibility.vue +1 -1
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<div class="qas-btn-dropdown" :class="classes.parent">
|
|
3
3
|
<div v-if="hasButtons" :class="classes.list">
|
|
4
4
|
<div v-for="(buttonProps, key, index) in props.buttonsPropsList" :key="key">
|
|
5
|
-
<div class="flex">
|
|
6
|
-
<qas-btn :disable="props.disable" v-bind="buttonProps" variant="tertiary" @click="onClick">
|
|
5
|
+
<div class="flex no-wrap">
|
|
6
|
+
<qas-btn :disable="props.disable" v-bind="buttonProps" no-wrap variant="tertiary" @click="onClick">
|
|
7
7
|
<q-menu v-if="hasMenuOnLeftSide" v-model="isMenuOpened" anchor="bottom right" auto-close self="top right" @update:model-value="onUpdateMenuValue">
|
|
8
8
|
<div :class="classes.menuContent">
|
|
9
9
|
<slot />
|
|
@@ -91,7 +91,7 @@ const classes = computed(() => {
|
|
|
91
91
|
},
|
|
92
92
|
|
|
93
93
|
list: {
|
|
94
|
-
flex: !isSingleButton.value
|
|
94
|
+
'flex no-wrap': !isSingleButton.value
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div ref="expansionItem" class="qas-expansion-item" :class="errorClasses">
|
|
2
|
+
<div ref="expansionItem" class="full-width qas-expansion-item" :class="errorClasses" v-bind="expansionProps.parent">
|
|
3
3
|
<component :is="component.is" class="qas-expansion-item__box">
|
|
4
|
-
<q-expansion-item header-class="text-bold q-mt-sm q-pa-none" :label="props.label">
|
|
4
|
+
<q-expansion-item header-class="text-bold q-mt-sm q-pa-none" :label="props.label" v-bind="expansionProps.item">
|
|
5
5
|
<template #header>
|
|
6
6
|
<slot name="header">
|
|
7
7
|
<div class="full-width">
|
|
@@ -45,9 +45,12 @@
|
|
|
45
45
|
<script setup>
|
|
46
46
|
import QasBox from '../box/QasBox.vue'
|
|
47
47
|
|
|
48
|
-
import { computed, provide, inject, onMounted, ref } from 'vue'
|
|
48
|
+
import { computed, provide, inject, onMounted, ref, useAttrs } from 'vue'
|
|
49
49
|
|
|
50
|
-
defineOptions({
|
|
50
|
+
defineOptions({
|
|
51
|
+
name: 'QasExpansionItem',
|
|
52
|
+
inheritAttrs: false
|
|
53
|
+
})
|
|
51
54
|
|
|
52
55
|
const props = defineProps({
|
|
53
56
|
badges: {
|
|
@@ -75,6 +78,8 @@ const props = defineProps({
|
|
|
75
78
|
}
|
|
76
79
|
})
|
|
77
80
|
|
|
81
|
+
const attrs = useAttrs()
|
|
82
|
+
|
|
78
83
|
provide('isExpansionItem', true)
|
|
79
84
|
|
|
80
85
|
// slots
|
|
@@ -100,6 +105,33 @@ const hasGridGenerator = computed(() => !!Object.keys(props.gridGeneratorProps).
|
|
|
100
105
|
const hasBottomSeparator = computed(() => isNestedExpansionItem && hasNextSibling.value)
|
|
101
106
|
const hasHeaderBottom = computed(() => !!slots['header-bottom'])
|
|
102
107
|
|
|
108
|
+
const expansionProps = computed(() => {
|
|
109
|
+
const {
|
|
110
|
+
'onUpdate:modelValue': onUpdateModelValue,
|
|
111
|
+
onShow,
|
|
112
|
+
onBeforeShow,
|
|
113
|
+
onBeforeHide,
|
|
114
|
+
onAfterShow,
|
|
115
|
+
onAfterHide,
|
|
116
|
+
...propsPayload
|
|
117
|
+
} = attrs
|
|
118
|
+
|
|
119
|
+
return {
|
|
120
|
+
parent: {
|
|
121
|
+
...propsPayload
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
item: {
|
|
125
|
+
onUpdateModelValue,
|
|
126
|
+
onShow,
|
|
127
|
+
onBeforeShow,
|
|
128
|
+
onBeforeHide,
|
|
129
|
+
onAfterShow,
|
|
130
|
+
onAfterHide
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
})
|
|
134
|
+
|
|
103
135
|
// functions
|
|
104
136
|
|
|
105
137
|
/**
|
|
@@ -120,10 +152,6 @@ function setHasNextSibling (value) {
|
|
|
120
152
|
.qas-expansion-item {
|
|
121
153
|
$root: &;
|
|
122
154
|
|
|
123
|
-
& + & {
|
|
124
|
-
margin-top: var(--qas-spacing-lg);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
155
|
&--error {
|
|
128
156
|
#{$root}__box {
|
|
129
157
|
border: 2px solid $negative;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</slot>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
<div v-if="hasRightSide" class="
|
|
9
|
+
<div v-if="hasRightSide" class="justify-end row">
|
|
10
10
|
<slot name="right">
|
|
11
11
|
<qas-actions-menu v-if="hasDefaultActionsMenu" v-bind="props.actionsMenuProps" />
|
|
12
12
|
|
|
@@ -59,7 +59,11 @@ const slots = useSlots()
|
|
|
59
59
|
// computed
|
|
60
60
|
const containerClass = computed(() => `items-${props.alignColumns} q-mb-${props.spacing}`)
|
|
61
61
|
|
|
62
|
-
const leftClass = computed(() =>
|
|
62
|
+
const leftClass = computed(() => {
|
|
63
|
+
return {
|
|
64
|
+
'col-12': !hasRightSide.value
|
|
65
|
+
}
|
|
66
|
+
})
|
|
63
67
|
|
|
64
68
|
const hasDefaultButton = computed(() => !!Object.keys(props.buttonProps).length)
|
|
65
69
|
const hasDefaultActionsMenu = computed(() => !!Object.keys(props.actionsMenuProps).length)
|