@vc-shell/framework 1.1.99-alpha.2 → 1.2.1
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/core/api/platform.ts +9883 -9883
- package/core/composables/useDynamicProperties/index.ts +21 -19
- package/core/composables/useNotifications/index.ts +1 -32
- package/core/composables/useSettings/index.ts +3 -8
- package/core/composables/useUser/index.ts +171 -74
- package/core/composables/useUserManagement/index.ts +25 -67
- package/core/interceptors/index.ts +56 -19
- package/core/plugins/signalR/index.ts +1 -27
- package/core/types/index.ts +0 -2
- package/dist/core/api/platform.d.ts +1 -1
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +9 -18
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts +7 -7
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts +1 -2
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/signalR/index.d.ts +0 -2
- package/dist/core/plugins/signalR/index.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +6799 -6812
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +1 -2
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/index.d.ts +1 -0
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +34 -0
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-accordion/index.d.ts +7 -0
- package/dist/ui/components/molecules/vc-accordion/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +42 -0
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/vendor-tiptap-core-8RGSOCZs.js +3442 -0
- package/dist/{vendor-tiptap-extension-blockquote-r1MBx4hD.js → vendor-tiptap-extension-blockquote-BVmAuV7o.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-BjLI4i8b.js → vendor-tiptap-extension-bold-BOh8AIRZ.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-D5-kDnMW.js → vendor-tiptap-extension-code-R4pc2wFE.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-RjEb0zPA.js → vendor-tiptap-extension-code-block-DibKlZFG.js} +1 -1
- package/dist/{vendor-tiptap-extension-document--PLOxIdq.js → vendor-tiptap-extension-document-BwORJR1k.js} +1 -1
- package/dist/{vendor-tiptap-extension-hard-break-9cxC2YOS.js → vendor-tiptap-extension-hard-break-DH36OfVk.js} +9 -13
- package/dist/{vendor-tiptap-extension-heading-2w0TutHn.js → vendor-tiptap-extension-heading-oMLORiPI.js} +1 -1
- package/dist/{vendor-tiptap-extension-horizontal-rule-CFowa_lc.js → vendor-tiptap-extension-horizontal-rule-BMHSoB_Y.js} +1 -1
- package/dist/vendor-tiptap-extension-image-DF1ZJ94q.js +80 -0
- package/dist/{vendor-tiptap-extension-italic-Bn-6saY0.js → vendor-tiptap-extension-italic-BzqrUuB0.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-BmcG1_k-.js → vendor-tiptap-extension-link-hMFZ0hfl.js} +1 -1
- package/dist/{vendor-tiptap-extension-list-BrNBJ45n.js → vendor-tiptap-extension-list-Bj5AK6Pq.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-DAiYhwUB.js → vendor-tiptap-extension-paragraph-Bs1wl42E.js} +1 -1
- package/dist/vendor-tiptap-extension-placeholder-CupUGaI_.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-DqbXPfos.js → vendor-tiptap-extension-strike-C4YpGyzc.js} +1 -1
- package/dist/vendor-tiptap-extension-table-D8RFr_6X.js +368 -0
- package/dist/vendor-tiptap-extension-table-cell-k9uLwyL6.js +1 -0
- package/dist/vendor-tiptap-extension-table-header-k9uLwyL6.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-k9uLwyL6.js +1 -0
- package/dist/{vendor-tiptap-extension-text-BFnfj70b.js → vendor-tiptap-extension-text-C4dQW13r.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-style-Darua3qr.js → vendor-tiptap-extension-text-style-a_NYjXT6.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-QyVnBqQZ.js → vendor-tiptap-extension-underline-DthCaPX3.js} +1 -1
- package/dist/{vendor-tiptap-extensions-CU-D7bfm.js → vendor-tiptap-extensions-C8rF1qdq.js} +1 -1
- package/dist/{vendor-tiptap-markdown-BwATYN5A.js → vendor-tiptap-markdown-DRc3qhBU.js} +1 -1
- package/dist/{vendor-tiptap-starter-kit-5luf7zzS.js → vendor-tiptap-starter-kit-BfUUblkP.js} +17 -17
- package/dist/{vendor-tiptap-vue-3-CFBErZGb.js → vendor-tiptap-vue-3-DYxT2sf6.js} +1 -1
- package/dist/{vendor-vueuse-components-sgKpNzof.js → vendor-vueuse-components-B0zqjNRW.js} +1 -1
- package/dist/{vendor-vueuse-core-D0cN7FqY.js → vendor-vueuse-core-CYgwn-B2.js} +10 -10
- package/dist/{vendor-vueuse-shared-Pt0UEStA.js → vendor-vueuse-shared-B_uDJJ6V.js} +19 -19
- package/package.json +5 -7
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +2 -2
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -15
- package/shared/components/sign-in/useExternalProvider.ts +1 -11
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +3 -11
- package/ui/components/atoms/vc-badge/vc-badge.stories.ts +1 -1
- package/ui/components/atoms/vc-button/vc-button.stories.ts +1 -1
- package/ui/components/atoms/vc-card/vc-card.stories.ts +1 -1
- package/ui/components/atoms/vc-col/vc-col.stories.ts +1 -1
- package/ui/components/atoms/vc-container/vc-container.stories.ts +1 -1
- package/ui/components/atoms/vc-hint/vc-hint.stories.ts +1 -1
- package/ui/components/atoms/vc-icon/vc-icon.stories.ts +1 -1
- package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -1
- package/ui/components/atoms/vc-label/vc-label.stories.ts +1 -1
- package/ui/components/atoms/vc-link/vc-link.stories.ts +1 -1
- package/ui/components/atoms/vc-progress/vc-progress.stories.ts +1 -1
- package/ui/components/atoms/vc-row/vc-row.stories.ts +1 -1
- package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +1 -1
- package/ui/components/atoms/vc-status/vc-status.stories.ts +1 -1
- package/ui/components/atoms/vc-status-icon/vc-status-icon.stories.ts +1 -1
- package/ui/components/atoms/vc-tooltip/vc-tooltip.stories.ts +1 -1
- package/ui/components/atoms/vc-video/vc-video.stories.ts +1 -1
- package/ui/components/atoms/vc-widget/vc-widget.stories.ts +1 -1
- package/ui/components/molecules/index.ts +1 -0
- package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue +251 -0
- package/ui/components/molecules/vc-accordion/index.ts +11 -0
- package/ui/components/molecules/vc-accordion/vc-accordion.stories.ts +526 -0
- package/ui/components/molecules/vc-accordion/vc-accordion.vue +176 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +1 -1
- package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +1 -1
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -1
- package/ui/components/molecules/vc-field/vc-field.stories.ts +1 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +1 -1
- package/ui/components/molecules/vc-form/vc-form.stories.ts +1 -1
- package/ui/components/molecules/vc-input/vc-input.stories.ts +1 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +1 -1
- package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +1 -1
- package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +1 -1
- package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +1 -1
- package/ui/components/molecules/vc-rating/vc-rating.stories.ts +1 -1
- package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
- package/ui/components/molecules/vc-slider/vc-slider.stories.ts +1 -1
- package/ui/components/molecules/vc-switch/vc-switch.stories.ts +1 -1
- package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +1 -1
- package/ui/components/molecules/vc-toast/vc-toast.stories.ts +1 -1
- package/ui/components/organisms/vc-app/vc-app.vue +2 -20
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +4 -0
- package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +1 -1
- package/ui/components/organisms/vc-popup/vc-popup.stories.ts +1 -1
- package/core/providers/README.md +0 -176
- package/core/providers/auth-provider-manager.ts +0 -74
- package/core/providers/auth-provider-utils.ts +0 -26
- package/core/providers/example-custom-auth-provider.ts +0 -162
- package/core/providers/index.ts +0 -3
- package/core/providers/platform-auth-provider.ts +0 -207
- package/core/types/auth-provider.ts +0 -40
- package/dist/core/providers/auth-provider-manager.d.ts +0 -34
- package/dist/core/providers/auth-provider-manager.d.ts.map +0 -1
- package/dist/core/providers/auth-provider-utils.d.ts +0 -17
- package/dist/core/providers/auth-provider-utils.d.ts.map +0 -1
- package/dist/core/providers/example-custom-auth-provider.d.ts +0 -45
- package/dist/core/providers/example-custom-auth-provider.d.ts.map +0 -1
- package/dist/core/providers/index.d.ts +0 -3
- package/dist/core/providers/index.d.ts.map +0 -1
- package/dist/core/providers/platform-auth-provider.d.ts +0 -34
- package/dist/core/providers/platform-auth-provider.d.ts.map +0 -1
- package/dist/core/types/auth-provider.d.ts +0 -27
- package/dist/core/types/auth-provider.d.ts.map +0 -1
- package/dist/vendor-tiptap-core-ClsTgaMv.js +0 -3699
- package/dist/vendor-tiptap-extension-image-aWn-na6j.js +0 -127
- package/dist/vendor-tiptap-extension-placeholder-9tURDKy-.js +0 -1
- package/dist/vendor-tiptap-extension-table-DQwPaR7v.js +0 -374
- package/dist/vendor-tiptap-extension-table-cell-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-C0tEP_0i.js +0 -1
package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="vc-accordion-item"
|
|
4
|
+
:class="{
|
|
5
|
+
'vc-accordion-item--expanded': isExpandedInternal,
|
|
6
|
+
'vc-accordion-item--disabled': disabled,
|
|
7
|
+
'vc-accordion-item--has-overflow': hasOverflow,
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
class="vc-accordion-item__header"
|
|
12
|
+
@click="toggle"
|
|
13
|
+
>
|
|
14
|
+
<div class="vc-accordion-item__title">
|
|
15
|
+
<slot name="title">
|
|
16
|
+
{{ title }}
|
|
17
|
+
</slot>
|
|
18
|
+
</div>
|
|
19
|
+
<VcIcon
|
|
20
|
+
v-if="hasOverflow"
|
|
21
|
+
class="vc-accordion-item__icon"
|
|
22
|
+
:class="{ 'vc-accordion-item__icon--rotated': isExpandedInternal }"
|
|
23
|
+
icon="lucide-chevron-down"
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div
|
|
28
|
+
ref="contentWrapperRef"
|
|
29
|
+
class="vc-accordion-item__content-wrapper"
|
|
30
|
+
:class="{
|
|
31
|
+
'vc-accordion-item__content-wrapper--faded': hasOverflow && !isExpandedInternal,
|
|
32
|
+
'vc-accordion-item__content-wrapper--scrollable': isExpandedInternal && hasScrollInExpandedState,
|
|
33
|
+
}"
|
|
34
|
+
:style="contentWrapperStyle"
|
|
35
|
+
>
|
|
36
|
+
<div
|
|
37
|
+
ref="contentRef"
|
|
38
|
+
class="vc-accordion-item__content"
|
|
39
|
+
>
|
|
40
|
+
<slot></slot>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<script lang="ts" setup>
|
|
47
|
+
import { ref, computed, watch, onMounted, onBeforeUnmount } from "vue";
|
|
48
|
+
import { VcIcon } from "../../../../atoms/vc-icon";
|
|
49
|
+
|
|
50
|
+
export interface Props {
|
|
51
|
+
title?: string;
|
|
52
|
+
collapsedHeight?: number;
|
|
53
|
+
maxExpandedHeight?: number;
|
|
54
|
+
isExpanded?: boolean;
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface Emits {
|
|
59
|
+
(event: "toggle", value: boolean): void;
|
|
60
|
+
(event: "update:isExpanded", value: boolean): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
64
|
+
collapsedHeight: 0,
|
|
65
|
+
isExpanded: false,
|
|
66
|
+
disabled: false,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const emit = defineEmits<Emits>();
|
|
70
|
+
|
|
71
|
+
defineOptions({
|
|
72
|
+
name: "VcAccordionItem",
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
defineSlots<{
|
|
76
|
+
default: (props?: any) => any;
|
|
77
|
+
title: (props?: any) => any;
|
|
78
|
+
}>();
|
|
79
|
+
|
|
80
|
+
const contentRef = ref<HTMLElement>();
|
|
81
|
+
const contentWrapperRef = ref<HTMLElement>();
|
|
82
|
+
const contentHeight = ref(0);
|
|
83
|
+
const isExpandedInternal = ref(props.isExpanded);
|
|
84
|
+
const resizeObserver = ref<ResizeObserver>();
|
|
85
|
+
|
|
86
|
+
const hasOverflow = computed(() => {
|
|
87
|
+
return contentHeight.value > props.collapsedHeight;
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
const hasScrollInExpandedState = computed(() => {
|
|
91
|
+
return props.maxExpandedHeight !== undefined && contentHeight.value > props.maxExpandedHeight;
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
const contentWrapperStyle = computed(() => {
|
|
95
|
+
if (isExpandedInternal.value) {
|
|
96
|
+
// If maxExpandedHeight is set and content exceeds it, limit to maxExpandedHeight
|
|
97
|
+
if (props.maxExpandedHeight !== undefined && contentHeight.value > props.maxExpandedHeight) {
|
|
98
|
+
return {
|
|
99
|
+
maxHeight: `${props.maxExpandedHeight}px`,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
// Otherwise use full content height
|
|
103
|
+
return {
|
|
104
|
+
maxHeight: `${contentHeight.value}px`,
|
|
105
|
+
};
|
|
106
|
+
} else {
|
|
107
|
+
return {
|
|
108
|
+
maxHeight: props.collapsedHeight > 0 ? `${props.collapsedHeight}px` : "0px",
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
function toggle() {
|
|
114
|
+
if (props.disabled || !hasOverflow.value) return;
|
|
115
|
+
|
|
116
|
+
isExpandedInternal.value = !isExpandedInternal.value;
|
|
117
|
+
emit("toggle", isExpandedInternal.value);
|
|
118
|
+
emit("update:isExpanded", isExpandedInternal.value);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function updateContentHeight() {
|
|
122
|
+
if (contentRef.value) {
|
|
123
|
+
contentHeight.value = contentRef.value.scrollHeight;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
watch(
|
|
128
|
+
() => props.isExpanded,
|
|
129
|
+
(newValue) => {
|
|
130
|
+
isExpandedInternal.value = newValue;
|
|
131
|
+
},
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
onMounted(() => {
|
|
135
|
+
updateContentHeight();
|
|
136
|
+
|
|
137
|
+
// Setup ResizeObserver to track content height changes
|
|
138
|
+
if (contentRef.value) {
|
|
139
|
+
resizeObserver.value = new ResizeObserver(() => {
|
|
140
|
+
updateContentHeight();
|
|
141
|
+
});
|
|
142
|
+
resizeObserver.value.observe(contentRef.value);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
onBeforeUnmount(() => {
|
|
147
|
+
if (resizeObserver.value) {
|
|
148
|
+
resizeObserver.value.disconnect();
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
</script>
|
|
152
|
+
|
|
153
|
+
<style lang="scss">
|
|
154
|
+
:root {
|
|
155
|
+
--accordion-item-border-color: var(--neutrals-200);
|
|
156
|
+
--accordion-item-header-background: var(--additional-50);
|
|
157
|
+
--accordion-item-header-background-hover: var(--primary-50);
|
|
158
|
+
--accordion-item-header-color: var(--secondary-950);
|
|
159
|
+
--accordion-item-content-background: var(--additional-50);
|
|
160
|
+
--accordion-item-content-color: var(--secondary-950);
|
|
161
|
+
--accordion-item-transition-duration: 300ms;
|
|
162
|
+
--accordion-item-border-radius: 6px;
|
|
163
|
+
--accordion-item-fade-height: 60px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.vc-accordion-item {
|
|
167
|
+
position: relative;
|
|
168
|
+
background: var(--accordion-item-header-background);
|
|
169
|
+
border-radius: var(--accordion-item-border-radius);
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
|
|
172
|
+
&__header {
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
justify-content: space-between;
|
|
176
|
+
padding: 12px 16px;
|
|
177
|
+
background: var(--accordion-item-header-background);
|
|
178
|
+
color: var(--accordion-item-header-color);
|
|
179
|
+
transition: background-color var(--accordion-item-transition-duration) ease;
|
|
180
|
+
user-select: none;
|
|
181
|
+
|
|
182
|
+
.vc-accordion-item--has-overflow & {
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
|
|
185
|
+
&:hover {
|
|
186
|
+
background: var(--accordion-item-header-background-hover);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&__title {
|
|
192
|
+
flex: 1;
|
|
193
|
+
font-weight: 500;
|
|
194
|
+
font-size: 14px;
|
|
195
|
+
line-height: 20px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&__icon {
|
|
199
|
+
margin-left: 12px;
|
|
200
|
+
transition: transform var(--accordion-item-transition-duration) ease;
|
|
201
|
+
flex-shrink: 0;
|
|
202
|
+
|
|
203
|
+
&--rotated {
|
|
204
|
+
transform: rotate(180deg);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&__content-wrapper {
|
|
209
|
+
position: relative;
|
|
210
|
+
overflow: hidden;
|
|
211
|
+
transition: max-height var(--accordion-item-transition-duration) ease;
|
|
212
|
+
|
|
213
|
+
&--faded::after {
|
|
214
|
+
content: "";
|
|
215
|
+
position: absolute;
|
|
216
|
+
bottom: 0;
|
|
217
|
+
left: 0;
|
|
218
|
+
right: 0;
|
|
219
|
+
height: var(--accordion-item-fade-height);
|
|
220
|
+
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--accordion-item-content-background) 100%);
|
|
221
|
+
pointer-events: none;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&--scrollable {
|
|
225
|
+
overflow-y: auto;
|
|
226
|
+
overflow-x: hidden;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&__content {
|
|
231
|
+
background: var(--accordion-item-content-background);
|
|
232
|
+
color: var(--accordion-item-content-color);
|
|
233
|
+
padding: 16px;
|
|
234
|
+
font-size: 14px;
|
|
235
|
+
line-height: 20px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&--disabled {
|
|
239
|
+
opacity: 0.5;
|
|
240
|
+
cursor: not-allowed;
|
|
241
|
+
|
|
242
|
+
.vc-accordion-item__header {
|
|
243
|
+
cursor: not-allowed;
|
|
244
|
+
|
|
245
|
+
&:hover {
|
|
246
|
+
background: var(--accordion-item-header-background);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _Accordion from "./vc-accordion.vue";
|
|
2
|
+
import _AccordionItem from "./_internal/vc-accordion-item/vc-accordion-item.vue";
|
|
3
|
+
|
|
4
|
+
export const VcAccordion = _Accordion as typeof _Accordion;
|
|
5
|
+
export const VcAccordionItem = _AccordionItem as typeof _AccordionItem;
|
|
6
|
+
|
|
7
|
+
export type { AccordionItem, Props as AccordionProps, Emits as AccordionEmits } from "./vc-accordion.vue";
|
|
8
|
+
export type {
|
|
9
|
+
Props as AccordionItemProps,
|
|
10
|
+
Emits as AccordionItemEmits,
|
|
11
|
+
} from "./_internal/vc-accordion-item/vc-accordion-item.vue";
|