adata-ui 3.1.66 → 3.1.68
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/dist/module.json +1 -1
- package/dist/runtime/components/Drawer.vue +12 -16
- package/dist/runtime/components/Drawer.vue.d.ts +0 -4
- package/dist/runtime/components/NewFooter.vue +1 -1
- package/dist/runtime/components/header/NavList.vue +1 -1
- package/dist/runtime/components/header/ProductMenu.vue +3 -3
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { DrawerRoot, DrawerPortal, DrawerOverlay, DrawerContent, DrawerHandle } from "vaul-vue";
|
|
3
|
-
import { DialogContent } from "reka-ui";
|
|
4
|
-
import { computed } from "#imports";
|
|
5
3
|
const props = defineProps({
|
|
6
|
-
side: { type: String, required: false, default: "bottom" }
|
|
7
|
-
width: { type: Number, required: false, default: 300 },
|
|
8
|
-
height: { type: Number, required: false, default: 300 }
|
|
4
|
+
side: { type: String, required: false, default: "bottom" }
|
|
9
5
|
});
|
|
10
6
|
const open = defineModel({ type: Boolean, ...{ default: false } });
|
|
11
|
-
const sizeStyle = computed(() => {
|
|
12
|
-
if (["left", "right"].includes(props.side)) {
|
|
13
|
-
return { width: `${props.width}px`, height: "100%" };
|
|
14
|
-
}
|
|
15
|
-
return { width: "100%", height: `${props.height}px` };
|
|
16
|
-
});
|
|
17
7
|
const POSITION_CLASSES = {
|
|
18
8
|
right: "top-0 bottom-0 right-0",
|
|
19
9
|
left: "top-0 bottom-0 left-0",
|
|
@@ -32,6 +22,12 @@ const HANDLE_POSITION_CLASSES = {
|
|
|
32
22
|
left: "absolute top-1/2 -translate-y-1/2 rotate-90 !mr-0",
|
|
33
23
|
right: "absolute top-1/2 -translate-y-1/2 rotate-90 !ml-0"
|
|
34
24
|
};
|
|
25
|
+
const MAX_SIZE_CLASSES = {
|
|
26
|
+
top: "sm:max-h-[calc(100vh-48px)] max-h-full",
|
|
27
|
+
bottom: "sm:max-h-[calc(100vh-48px)] max-h-full",
|
|
28
|
+
left: "sm:max-w-[calc(100vw-48px)] max-w-full",
|
|
29
|
+
right: "sm:max-w-[calc(100vw-48px)] max-w-full"
|
|
30
|
+
};
|
|
35
31
|
</script>
|
|
36
32
|
|
|
37
33
|
<template>
|
|
@@ -43,11 +39,11 @@ const HANDLE_POSITION_CLASSES = {
|
|
|
43
39
|
<drawer-overlay class="fixed inset-0 bg-black/50" />
|
|
44
40
|
|
|
45
41
|
<drawer-content
|
|
46
|
-
:style="sizeStyle"
|
|
47
42
|
:class="[
|
|
48
|
-
'fixed bg-white dark:bg-gray-900 shadow-2xl',
|
|
43
|
+
'fixed bg-white dark:bg-gray-900 shadow-2xl flex flex-col',
|
|
49
44
|
POSITION_CLASSES[props.side],
|
|
50
|
-
CORNER_CLASSES[props.side]
|
|
45
|
+
CORNER_CLASSES[props.side],
|
|
46
|
+
MAX_SIZE_CLASSES[props.side]
|
|
51
47
|
]"
|
|
52
48
|
>
|
|
53
49
|
<drawer-handle
|
|
@@ -62,12 +58,12 @@ const HANDLE_POSITION_CLASSES = {
|
|
|
62
58
|
>
|
|
63
59
|
<slot name="header" />
|
|
64
60
|
</div>
|
|
65
|
-
<div class="p-4">
|
|
61
|
+
<div class="p-4 flex-1 overflow-y-auto">
|
|
66
62
|
<slot name="default" />
|
|
67
63
|
</div>
|
|
68
64
|
<div
|
|
69
65
|
v-if="$slots.footer"
|
|
70
|
-
class="border-
|
|
66
|
+
class="border-t border-deepblue-900/5 dark:border-gray-200/5 p-4"
|
|
71
67
|
>
|
|
72
68
|
<slot name="footer" />
|
|
73
69
|
</div>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
side?: 'right' | 'left' | 'top' | 'bottom';
|
|
3
|
-
width?: number;
|
|
4
|
-
height?: number;
|
|
5
3
|
};
|
|
6
4
|
type __VLS_PublicProps = __VLS_Props & {
|
|
7
5
|
modelValue?: boolean;
|
|
@@ -19,8 +17,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
19
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
18
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
19
|
}>, {
|
|
22
|
-
width: number;
|
|
23
|
-
height: number;
|
|
24
20
|
side: "right" | "left" | "top" | "bottom";
|
|
25
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
22
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -89,7 +89,7 @@ function isActive(itemPath) {
|
|
|
89
89
|
<nuxt-link
|
|
90
90
|
v-if="item.to"
|
|
91
91
|
:to="item.to"
|
|
92
|
-
class="inline-block normal-case w-full cursor-pointer align-middle text-sm font-semibold text-
|
|
92
|
+
class="inline-block normal-case w-full cursor-pointer align-middle text-sm font-semibold text-inherit hover:text-inherit"
|
|
93
93
|
exact-active-class="text-blue-700 dark:text-blue-500"
|
|
94
94
|
itemprop="name"
|
|
95
95
|
>
|
|
@@ -363,7 +363,7 @@ function isCurrentModule(currentModule) {
|
|
|
363
363
|
>
|
|
364
364
|
<div class="flex justify-between gap-5">
|
|
365
365
|
<div class="flex gap-[10px] divide-x divide-gray-500/50">
|
|
366
|
-
<div class="flex flex-col gap-5 w-[290px]">
|
|
366
|
+
<div class="flex flex-col gap-5 w-[290px] pr-[10px]">
|
|
367
367
|
<nav-list
|
|
368
368
|
v-for="module in filteredItems.slice(0, 3)"
|
|
369
369
|
:id="module.key"
|
|
@@ -377,7 +377,7 @@ function isCurrentModule(currentModule) {
|
|
|
377
377
|
:badge="module.is_new"
|
|
378
378
|
/>
|
|
379
379
|
</div>
|
|
380
|
-
<div class="flex flex-col gap-5 w-[290px]
|
|
380
|
+
<div class="flex flex-col gap-5 w-[290px] pr-[10px]">
|
|
381
381
|
<nav-list
|
|
382
382
|
v-for="module in filteredItems.slice(3, 5)"
|
|
383
383
|
:id="module.key"
|
|
@@ -391,7 +391,7 @@ function isCurrentModule(currentModule) {
|
|
|
391
391
|
:badge="module.is_new"
|
|
392
392
|
/>
|
|
393
393
|
</div>
|
|
394
|
-
<div class="flex flex-col gap-5 w-[330px]
|
|
394
|
+
<div class="flex flex-col gap-5 w-[330px] pr-[10px]">
|
|
395
395
|
<nav-list
|
|
396
396
|
v-for="module in filteredItems.slice(5, 8)"
|
|
397
397
|
:id="module.key"
|