adata-ui 3.1.61 → 3.1.62
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/DigitBadge.vue.d.ts +2 -2
- package/dist/runtime/components/Drawer.vue +77 -0
- package/dist/runtime/components/{ASidePanel.vue.d.ts → Drawer.vue.d.ts} +10 -6
- package/dist/runtime/components/Header.vue.d.ts +9 -1
- package/dist/runtime/components/Modal.vue.d.ts +9 -3
- package/dist/runtime/components/SidePanel.vue +115 -345
- package/dist/runtime/components/SidePanel.vue.d.ts +21 -49
- package/dist/runtime/components/accordion/Accordion.vue.d.ts +2 -2
- package/dist/runtime/components/button/Button.vue.d.ts +3 -3
- package/dist/runtime/components/checkbox/Checkbox.vue.d.ts +6 -2
- package/dist/runtime/components/error-template/index.vue.d.ts +1 -1
- package/dist/runtime/components/forms/input/password/InputPassword.vue.d.ts +1 -1
- package/dist/runtime/components/forms/input/textarea/ATextarea.vue.d.ts +1 -1
- package/dist/runtime/components/forms/need-more-data/NeedMoreData.vue.d.ts +7 -1
- package/dist/runtime/components/forms/request-demo/RequestDemo.vue.d.ts +5 -1
- package/dist/runtime/components/header/ContactMenu.vue.d.ts +8 -2
- package/dist/runtime/components/header/ProductMenu.vue.d.ts +8 -2
- package/dist/runtime/components/header/ProfileMenu.vue.d.ts +5 -1
- package/dist/runtime/components/header/ProfileMenuContent.vue.d.ts +5 -1
- package/dist/runtime/components/header-mobile/HeaderMobile.vue.d.ts +7 -1
- package/dist/runtime/components/mobile-navigation/BottomNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/mobile-navigation/MainButton.vue.d.ts +5 -1
- package/dist/runtime/components/modals/NoAccessContent.vue.d.ts +5 -1
- package/dist/runtime/components/modals/NoAccessSimple.vue.d.ts +5 -1
- package/dist/runtime/components/payment/process/PaymentKaspiQrSidePanel.vue +2 -1
- package/dist/runtime/components/payment/process/PaymentKaspiRedirectSidePanel.vue +2 -1
- package/dist/runtime/components/payment/process/PaymentMethodSidePanel.vue +2 -1
- package/dist/runtime/components/payment/process/PaymentTopUpSidePanel.vue +2 -1
- package/dist/runtime/components/pill-tabs/PillTabs.vue.d.ts +10 -2
- package/dist/runtime/components/radio-button/RadioButton.vue.d.ts +1 -1
- package/dist/runtime/components/select-row/index.vue.d.ts +1 -1
- package/package.json +3 -1
- package/dist/runtime/components/ASidePanel.vue +0 -121
package/dist/module.json
CHANGED
|
@@ -13,9 +13,9 @@ export type StateType = {
|
|
|
13
13
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
14
|
size: "sm" | "md" | "lg";
|
|
15
15
|
type: "primary" | "success" | "danger" | "gray" | "orange" | "warning";
|
|
16
|
-
disabled: boolean;
|
|
17
16
|
view: "default" | "inverted";
|
|
18
|
-
|
|
17
|
+
disabled: boolean;
|
|
19
18
|
prefix: string;
|
|
19
|
+
customClasses: string;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
export default _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { DrawerRoot, DrawerPortal, DrawerOverlay, DrawerContent, DrawerHandle } from "vaul-vue";
|
|
3
|
+
import { DialogContent } from "reka-ui";
|
|
4
|
+
import { computed } from "#imports";
|
|
5
|
+
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 }
|
|
9
|
+
});
|
|
10
|
+
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
|
+
const POSITION_CLASSES = {
|
|
18
|
+
right: "top-0 bottom-0 right-0",
|
|
19
|
+
left: "top-0 bottom-0 left-0",
|
|
20
|
+
top: "top-0 left-0 right-0",
|
|
21
|
+
bottom: "bottom-0 left-0 right-0"
|
|
22
|
+
};
|
|
23
|
+
const CORNER_CLASSES = {
|
|
24
|
+
left: "rounded-r-2xl",
|
|
25
|
+
right: "rounded-l-2xl",
|
|
26
|
+
top: "rounded-b-2xl",
|
|
27
|
+
bottom: "rounded-t-2xl"
|
|
28
|
+
};
|
|
29
|
+
const HANDLE_POSITION_CLASSES = {
|
|
30
|
+
top: "absolute -bottom-[calc(100%-12px)]",
|
|
31
|
+
bottom: "absolute top-2",
|
|
32
|
+
left: "absolute top-1/2 -translate-y-1/2 rotate-90 !mr-0",
|
|
33
|
+
right: "absolute top-1/2 -translate-y-1/2 rotate-90 !ml-0"
|
|
34
|
+
};
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<template>
|
|
38
|
+
<drawer-root
|
|
39
|
+
v-model:open="open"
|
|
40
|
+
:direction="side"
|
|
41
|
+
>
|
|
42
|
+
<drawer-portal>
|
|
43
|
+
<drawer-overlay class="fixed inset-0 bg-black/50" />
|
|
44
|
+
|
|
45
|
+
<drawer-content
|
|
46
|
+
:style="sizeStyle"
|
|
47
|
+
:class="[
|
|
48
|
+
'fixed bg-white dark:bg-gray-900 shadow-2xl',
|
|
49
|
+
POSITION_CLASSES[props.side],
|
|
50
|
+
CORNER_CLASSES[props.side]
|
|
51
|
+
]"
|
|
52
|
+
>
|
|
53
|
+
<drawer-handle
|
|
54
|
+
:class="[
|
|
55
|
+
HANDLE_POSITION_CLASSES[props.side]
|
|
56
|
+
]"
|
|
57
|
+
/>
|
|
58
|
+
|
|
59
|
+
<div
|
|
60
|
+
v-if="$slots.header"
|
|
61
|
+
class="border-b border-deepblue-900/5 dark:border-gray-200/5 p-4"
|
|
62
|
+
>
|
|
63
|
+
<slot name="header" />
|
|
64
|
+
</div>
|
|
65
|
+
<div class="p-4">
|
|
66
|
+
<slot name="default" />
|
|
67
|
+
</div>
|
|
68
|
+
<div
|
|
69
|
+
v-if="$slots.footer"
|
|
70
|
+
class="border-b border-deepblue-900/5 dark:border-gray-200/5 p-4"
|
|
71
|
+
>
|
|
72
|
+
<slot name="footer" />
|
|
73
|
+
</div>
|
|
74
|
+
</drawer-content>
|
|
75
|
+
</drawer-portal>
|
|
76
|
+
</drawer-root>
|
|
77
|
+
</template>
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
side?: 'right' | 'left' | 'top' | 'bottom';
|
|
3
|
-
width?:
|
|
4
|
-
height?:
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
5
|
};
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & {
|
|
7
7
|
modelValue?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare var
|
|
9
|
+
declare var __VLS_22: {}, __VLS_24: {}, __VLS_26: {};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
|
-
|
|
11
|
+
header?: (props: typeof __VLS_22) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_24) => any;
|
|
14
|
+
} & {
|
|
15
|
+
footer?: (props: typeof __VLS_26) => any;
|
|
12
16
|
};
|
|
13
17
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
18
|
"update:modelValue": (value: boolean) => any;
|
|
15
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
20
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
21
|
}>, {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
18
24
|
side: "right" | "left" | "top" | "bottom";
|
|
19
|
-
width: string;
|
|
20
|
-
height: string;
|
|
21
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
26
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
27
|
export default _default;
|
|
@@ -23,7 +23,15 @@ type __VLS_Slots = {} & {
|
|
|
23
23
|
} & {
|
|
24
24
|
notifications?: (props: typeof __VLS_54) => any;
|
|
25
25
|
};
|
|
26
|
-
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
26
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
search: (...args: any[]) => void;
|
|
28
|
+
logout: (...args: any[]) => void;
|
|
29
|
+
login: (...args: any[]) => void;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
31
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
onLogout?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
onLogin?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}>, {
|
|
27
35
|
daysRemaining: number;
|
|
28
36
|
limitRemaining: number;
|
|
29
37
|
isAuthenticated: boolean;
|
|
@@ -21,11 +21,17 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
} & {
|
|
22
22
|
footer?: (props: typeof __VLS_22) => any;
|
|
23
23
|
};
|
|
24
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
close: (...args: any[]) => void;
|
|
26
|
+
"update:modelValue": (value: boolean | undefined) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
30
|
+
}>, {
|
|
25
31
|
name: string;
|
|
26
|
-
width: string | number;
|
|
27
|
-
transition: boolean;
|
|
28
32
|
title: string;
|
|
33
|
+
transition: boolean;
|
|
34
|
+
width: string | number;
|
|
29
35
|
overlay: boolean;
|
|
30
36
|
preventClose: boolean;
|
|
31
37
|
fullscreen: boolean;
|
|
@@ -1,370 +1,140 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { computed } from "#imports";
|
|
3
|
+
import { DialogContent, DialogOverlay, DialogPortal, DialogRoot } from "reka-ui";
|
|
4
|
+
import { AnimatePresence, Motion } from "motion-v";
|
|
5
|
+
import { useMediaQuery } from "@vueuse/core";
|
|
5
6
|
const props = defineProps({
|
|
6
|
-
idName: { type: String, required: false, default: "vsp-container" },
|
|
7
|
-
hideCloseBtn: { type: Boolean, required: false },
|
|
8
|
-
noClose: { type: Boolean, required: false },
|
|
9
7
|
side: { type: String, required: false, default: "right" },
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
lockScroll: { type: Boolean, required: false, default: true },
|
|
15
|
-
lockScrollHtml: { type: Boolean, required: false },
|
|
16
|
-
hideScrollbar: { type: Boolean, required: false, default: false },
|
|
17
|
-
overlayColor: { type: String, required: false, default: "black" },
|
|
18
|
-
overlayOpacity: { type: Number, required: false, default: 0.5 },
|
|
19
|
-
overlayDuration: { type: Number, required: false, default: 500 },
|
|
20
|
-
panelColor: { type: String, required: false, default: "bg-white dark:bg-gray-900" },
|
|
21
|
-
panelDuration: { type: Number, required: false, default: 300 },
|
|
22
|
-
transitionName: { type: String, required: false },
|
|
23
|
-
headerClass: { type: String, required: false },
|
|
24
|
-
bodyClass: { type: String, required: false },
|
|
25
|
-
footerClass: { type: String, required: false }
|
|
8
|
+
width: { type: Number, required: false, default: 300 },
|
|
9
|
+
height: { type: Number, required: false, default: 300 },
|
|
10
|
+
heightDrawer: { type: Number, required: false },
|
|
11
|
+
widthDrawer: { type: Number, required: false }
|
|
26
12
|
});
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const panelSide = ref(props.side);
|
|
36
|
-
const device = useAdaptive();
|
|
37
|
-
const zIndex = ref();
|
|
38
|
-
const isBodyAlreadyLocked = ref(false);
|
|
39
|
-
const attrs = useAttrs();
|
|
40
|
-
const closePanel = () => modelValue.value = false;
|
|
41
|
-
const lockUnlockBodyScroll = (elem, lock) => {
|
|
42
|
-
if (lock) {
|
|
43
|
-
setTimeout(() => {
|
|
44
|
-
disableBodyScroll(elem, {
|
|
45
|
-
reserveScrollBarGap: true,
|
|
46
|
-
allowTouchMove: elem && elem !== document.body
|
|
47
|
-
});
|
|
48
|
-
disableBodyScroll(elem, { reserveScrollBarGap: true });
|
|
49
|
-
if (props.lockScrollHtml) document.documentElement.style.overflow = "hidden";
|
|
50
|
-
}, 0);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
enableBodyScroll(elem);
|
|
54
|
-
if (props.lockScrollHtml) document.documentElement.style.removeProperty("overflow");
|
|
13
|
+
const open = defineModel({ type: Boolean, ...{ default: false } });
|
|
14
|
+
const isDesktop = useMediaQuery("(min-width: 1024px)");
|
|
15
|
+
const showSidePanel = computed(() => isDesktop.value);
|
|
16
|
+
const POSITION_CLASSES = {
|
|
17
|
+
right: "top-0 bottom-0 right-0",
|
|
18
|
+
left: "top-0 bottom-0 left-0",
|
|
19
|
+
top: "top-0 left-0 right-0",
|
|
20
|
+
bottom: "bottom-0 left-0 right-0"
|
|
55
21
|
};
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
teleportContainer = document.createElement("div");
|
|
68
|
-
teleportContainer.setAttribute("id", props.idName);
|
|
69
|
-
document.body.appendChild(teleportContainer);
|
|
70
|
-
});
|
|
71
|
-
onBeforeUnmount(() => {
|
|
72
|
-
if (props.lockScroll && panel.value && modelValue.value) lockUnlockBodyScroll(panel.value, false);
|
|
73
|
-
if (teleportContainer) document.body.removeChild(teleportContainer);
|
|
74
|
-
});
|
|
75
|
-
watch(() => device.value, () => {
|
|
76
|
-
panelSide.value = device.value.isTablet || device.value.isSmallTablet ? "bottom" : props.side;
|
|
77
|
-
}, { immediate: true });
|
|
78
|
-
watch(() => [modelValue.value, panel.value], (newP, oldP) => {
|
|
79
|
-
const wasShown = oldP ? oldP[0] : false;
|
|
80
|
-
const [isShown, panelEl] = newP;
|
|
81
|
-
const isOpening = isShown;
|
|
82
|
-
const isClosing = wasShown && !isShown;
|
|
83
|
-
if (!panelEl) return;
|
|
84
|
-
if (isShown) {
|
|
85
|
-
if (props.lockScroll) lockUnlockBodyScroll(panelEl, true);
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
if (!props.lockScroll || !isClosing || isBodyAlreadyLocked.value) return;
|
|
89
|
-
setTimeout(() => {
|
|
90
|
-
if (panelEl) lockUnlockBodyScroll(panelEl, false);
|
|
91
|
-
}, props.panelDuration);
|
|
92
|
-
}, { immediate: true });
|
|
93
|
-
const roundedClass = computed(() => {
|
|
94
|
-
const classes = {
|
|
95
|
-
left: "rounded-r-xl",
|
|
96
|
-
right: "rounded-l-xl",
|
|
97
|
-
top: "rounded-b-xl",
|
|
98
|
-
bottom: "rounded-t-xl"
|
|
99
|
-
};
|
|
100
|
-
return classes[panelSide.value];
|
|
101
|
-
});
|
|
102
|
-
const overlayStyles = computed(() => ({
|
|
103
|
-
"zIndex": zIndex.value,
|
|
104
|
-
"animationDuration": `${props.overlayDuration}ms`,
|
|
105
|
-
"--overlay-opacity": props.overlayOpacity,
|
|
106
|
-
"opacity": modelValue.value ? props.overlayOpacity : 0,
|
|
107
|
-
"backgroundColor": props.overlayColor,
|
|
108
|
-
"pointerEvents": !modelValue.value ? "none" : "all"
|
|
109
|
-
}));
|
|
110
|
-
const panelStyles = computed(() => ({
|
|
111
|
-
width: ["left", "right"].includes(panelSide.value) ? props.width : void 0,
|
|
112
|
-
maxWidth: "100%",
|
|
113
|
-
...["top", "bottom"].includes(panelSide.value) ? {
|
|
114
|
-
height: device.value.isSmallTablet || device.value.isTablet ? "100%" : props.height,
|
|
115
|
-
maxHeight: device.value.isMobile ? "90%" : "100%"
|
|
116
|
-
} : {},
|
|
117
|
-
zIndex: zIndex.value,
|
|
118
|
-
animationDuration: `${props.panelDuration}ms`,
|
|
119
|
-
...Object.assign({}, attrs.style)
|
|
120
|
-
}));
|
|
121
|
-
const positionStart = ref(0);
|
|
122
|
-
const isClose = ref(false);
|
|
123
|
-
const modalHeight = ref(0);
|
|
124
|
-
const touchstart = (event) => {
|
|
125
|
-
isClose.value = false;
|
|
126
|
-
positionStart.value = event.touches[0].clientY;
|
|
127
|
-
modalHeight.value = panel.value?.offsetHeight || 0;
|
|
22
|
+
const CORNER_CLASSES = {
|
|
23
|
+
left: "rounded-r-2xl",
|
|
24
|
+
right: "rounded-l-2xl",
|
|
25
|
+
top: "rounded-b-2xl",
|
|
26
|
+
bottom: "rounded-t-2xl"
|
|
27
|
+
};
|
|
28
|
+
const BUTTON_POSITIONS = {
|
|
29
|
+
left: "-right-8 top-8",
|
|
30
|
+
right: "-left-8 top-8",
|
|
31
|
+
top: "hidden",
|
|
32
|
+
bottom: "hidden"
|
|
128
33
|
};
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (step < 0) return;
|
|
135
|
-
const newHeight = modalHeight.value - step;
|
|
136
|
-
panel.value.style.height = `${newHeight}px`;
|
|
137
|
-
isClose.value = step > 65;
|
|
34
|
+
const BUTTON_CORNERS = {
|
|
35
|
+
left: "rounded-r-lg",
|
|
36
|
+
right: "rounded-l-lg",
|
|
37
|
+
top: "rounded-b-lg",
|
|
38
|
+
bottom: "rounded-t-lg"
|
|
138
39
|
};
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
|
|
142
|
-
} else {
|
|
143
|
-
panel.value.style.height = `${modalHeight.value}px`;
|
|
40
|
+
const sizeStyle = computed(() => {
|
|
41
|
+
if (["left", "right"].includes(props.side)) {
|
|
42
|
+
return { width: `${props.width}px`, height: "100%" };
|
|
144
43
|
}
|
|
44
|
+
return { width: "100%", height: `${props.height}px` };
|
|
45
|
+
});
|
|
46
|
+
const motionInitial = {
|
|
47
|
+
right: { x: props.width },
|
|
48
|
+
left: { x: -props.width },
|
|
49
|
+
top: { y: -props.height },
|
|
50
|
+
bottom: { y: props.height }
|
|
145
51
|
};
|
|
52
|
+
const motionAnimate = { x: 0, y: 0 };
|
|
146
53
|
</script>
|
|
147
54
|
|
|
148
55
|
<template>
|
|
149
|
-
<
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
>
|
|
155
|
-
<
|
|
156
|
-
<
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
:
|
|
161
|
-
|
|
56
|
+
<dialog-root
|
|
57
|
+
v-if="showSidePanel"
|
|
58
|
+
v-model:open="open"
|
|
59
|
+
>
|
|
60
|
+
<dialog-portal>
|
|
61
|
+
<animate-presence>
|
|
62
|
+
<dialog-overlay as-child>
|
|
63
|
+
<Motion
|
|
64
|
+
class="fixed inset-0 bg-black/50"
|
|
65
|
+
:initial="{ opacity: 0 }"
|
|
66
|
+
:animate="{ opacity: 1 }"
|
|
67
|
+
:exit="{ opacity: 0 }"
|
|
68
|
+
:transition="{ duration: 0.3, ease: 'easeOut' }"
|
|
162
69
|
/>
|
|
163
|
-
</
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
70
|
+
</dialog-overlay>
|
|
71
|
+
|
|
72
|
+
<dialog-content
|
|
73
|
+
as-child
|
|
74
|
+
:data-side="props.side"
|
|
75
|
+
:style="sizeStyle"
|
|
76
|
+
:class="[
|
|
77
|
+
'fixed bg-white dark:bg-gray-900 shadow-2xl',
|
|
78
|
+
POSITION_CLASSES[props.side],
|
|
79
|
+
CORNER_CLASSES[props.side]
|
|
80
|
+
]"
|
|
168
81
|
>
|
|
169
|
-
<
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
:class="[`vsp--${panelSide}-side`, $attrs.class, roundedClass, panelColor]"
|
|
175
|
-
:style="panelStyles"
|
|
82
|
+
<Motion
|
|
83
|
+
:initial="motionInitial[props.side]"
|
|
84
|
+
:animate="motionAnimate"
|
|
85
|
+
:exit="motionInitial[props.side]"
|
|
86
|
+
:transition="{ duration: 0.3, ease: 'easeInOut' }"
|
|
176
87
|
>
|
|
177
|
-
<
|
|
178
|
-
class="
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
</div>
|
|
185
|
-
<div
|
|
186
|
-
v-if="!hideCloseBtn"
|
|
187
|
-
:class="roundedClass"
|
|
188
|
-
class="absolute w-8 px-2 py-4 bg-blue-700 text-white dark:text-gray-950 -left-8 top-8 cursor-pointer lg:block hidden"
|
|
189
|
-
@click="closePanel"
|
|
88
|
+
<button
|
|
89
|
+
:class="[
|
|
90
|
+
'absolute h-12 w-8 bg-blue-700 dark:bg-blue-500 cursor-pointer',
|
|
91
|
+
BUTTON_CORNERS[props.side],
|
|
92
|
+
BUTTON_POSITIONS[props.side]
|
|
93
|
+
]"
|
|
94
|
+
@click="open = false"
|
|
190
95
|
>
|
|
191
|
-
<i-x-mark />
|
|
192
|
-
</
|
|
96
|
+
<i-x-mark class="size-4 m-auto text-white dark:text-gray-900" />
|
|
97
|
+
</button>
|
|
193
98
|
<div
|
|
194
|
-
v-if="
|
|
195
|
-
|
|
196
|
-
:class="[headerClass, 'vsp__header border-b border-deepblue-100 dark:border-[#E3E5E80D] lg:px-8 p-4']"
|
|
197
|
-
@touchmove="touchmove"
|
|
198
|
-
@touchstart="touchstart"
|
|
199
|
-
@touchend="touchend"
|
|
99
|
+
v-if="$slots.header"
|
|
100
|
+
class="border-b border-deepblue-900/5 dark:border-gray-200/5 lg:px-8 p-4"
|
|
200
101
|
>
|
|
201
|
-
<slot
|
|
202
|
-
name="header"
|
|
203
|
-
:close="closePanel"
|
|
204
|
-
/>
|
|
102
|
+
<slot name="header" />
|
|
205
103
|
</div>
|
|
206
|
-
<div
|
|
207
|
-
|
|
208
|
-
:class="[
|
|
209
|
-
bodyClass,
|
|
210
|
-
'vsp__body overflow-y-auto relative flex-grow-1 h-full lg:px-8 p-4',
|
|
211
|
-
hideScrollbar ? 'vsp__body--hide-scroll' : ''
|
|
212
|
-
]"
|
|
213
|
-
>
|
|
214
|
-
<slot
|
|
215
|
-
name="default"
|
|
216
|
-
:close="closePanel"
|
|
217
|
-
/>
|
|
104
|
+
<div class="lg:px-8 p-4">
|
|
105
|
+
<slot name="default" />
|
|
218
106
|
</div>
|
|
219
107
|
<div
|
|
220
|
-
v-if="
|
|
221
|
-
|
|
222
|
-
:class="[footerClass, 'vsp__footer border-t border-deepblue-100 dark:border-[#E3E5E80D] lg:px-8 p-4']"
|
|
108
|
+
v-if="$slots.footer"
|
|
109
|
+
class="border-b border-deepblue-900/5 dark:border-gray-200/5 lg:px-8 p-4"
|
|
223
110
|
>
|
|
224
111
|
<slot name="footer" />
|
|
225
112
|
</div>
|
|
226
|
-
</
|
|
227
|
-
</
|
|
228
|
-
</
|
|
229
|
-
</
|
|
230
|
-
</
|
|
113
|
+
</Motion>
|
|
114
|
+
</dialog-content>
|
|
115
|
+
</animate-presence>
|
|
116
|
+
</dialog-portal>
|
|
117
|
+
</dialog-root>
|
|
118
|
+
<adt-drawer
|
|
119
|
+
v-else
|
|
120
|
+
v-model:open="open"
|
|
121
|
+
:width="widthDrawer"
|
|
122
|
+
:height="heightDrawer"
|
|
123
|
+
>
|
|
124
|
+
<template
|
|
125
|
+
v-if="$slots.header"
|
|
126
|
+
#header
|
|
127
|
+
>
|
|
128
|
+
<slot name="header" />
|
|
129
|
+
</template>
|
|
130
|
+
<template #default>
|
|
131
|
+
<slot name="default" />
|
|
132
|
+
</template>
|
|
133
|
+
<template
|
|
134
|
+
v-if="$slots.footer"
|
|
135
|
+
#footer
|
|
136
|
+
>
|
|
137
|
+
<slot name="footer" />
|
|
138
|
+
</template>
|
|
139
|
+
</adt-drawer>
|
|
231
140
|
</template>
|
|
232
|
-
|
|
233
|
-
<style scoped>
|
|
234
|
-
.vsp-wrapper .vsp--right-side, .vsp-wrapper .vsp--left-side {
|
|
235
|
-
top: 0;
|
|
236
|
-
height: 100%;
|
|
237
|
-
}
|
|
238
|
-
.vsp-wrapper .vsp--right-side {
|
|
239
|
-
right: 0;
|
|
240
|
-
left: unset;
|
|
241
|
-
}
|
|
242
|
-
.vsp-wrapper .vsp--left-side {
|
|
243
|
-
right: unset;
|
|
244
|
-
left: 0;
|
|
245
|
-
}
|
|
246
|
-
.vsp-wrapper .vsp--bottom-side, .vsp-wrapper .vsp--top-side {
|
|
247
|
-
left: 0;
|
|
248
|
-
width: 100%;
|
|
249
|
-
}
|
|
250
|
-
.vsp-wrapper .vsp--bottom-side {
|
|
251
|
-
bottom: 0;
|
|
252
|
-
}
|
|
253
|
-
.vsp-wrapper .vsp--top-side {
|
|
254
|
-
top: 0;
|
|
255
|
-
}
|
|
256
|
-
.vsp-wrapper .vsp__body.overflow-y-auto::-webkit-scrollbar {
|
|
257
|
-
width: 8px;
|
|
258
|
-
}
|
|
259
|
-
.vsp-wrapper .vsp__body.overflow-y-auto::-webkit-scrollbar-thumb {
|
|
260
|
-
background: rgba(44, 62, 80, 0.2);
|
|
261
|
-
border-radius: 6px;
|
|
262
|
-
}
|
|
263
|
-
.vsp-wrapper .vsp__body.vsp__body--hide-scroll {
|
|
264
|
-
scrollbar-width: none;
|
|
265
|
-
}
|
|
266
|
-
.vsp-wrapper .vsp__body.vsp__body--hide-scroll::-webkit-scrollbar {
|
|
267
|
-
width: 0;
|
|
268
|
-
height: 0;
|
|
269
|
-
}
|
|
270
|
-
.vsp-wrapper .overlay-enter-active,
|
|
271
|
-
.vsp-wrapper .overlay-leave-active {
|
|
272
|
-
animation: overlay-transition;
|
|
273
|
-
}
|
|
274
|
-
.vsp-wrapper .overlay-leave-active {
|
|
275
|
-
animation-direction: reverse;
|
|
276
|
-
}
|
|
277
|
-
.vsp-wrapper .slide-right-enter-active,
|
|
278
|
-
.vsp-wrapper .slide-right-leave-active {
|
|
279
|
-
animation: slide-right;
|
|
280
|
-
}
|
|
281
|
-
.vsp-wrapper .slide-right-leave-active {
|
|
282
|
-
animation-direction: reverse;
|
|
283
|
-
}
|
|
284
|
-
.vsp-wrapper .slide-left-enter-active,
|
|
285
|
-
.vsp-wrapper .slide-left-leave-active {
|
|
286
|
-
animation: slide-left;
|
|
287
|
-
}
|
|
288
|
-
.vsp-wrapper .slide-left-leave-active {
|
|
289
|
-
animation-direction: reverse;
|
|
290
|
-
}
|
|
291
|
-
.vsp-wrapper .slide-top-enter-active,
|
|
292
|
-
.vsp-wrapper .slide-top-leave-active {
|
|
293
|
-
animation: slide-left;
|
|
294
|
-
}
|
|
295
|
-
.vsp-wrapper .slide-top-leave-active {
|
|
296
|
-
animation-direction: reverse;
|
|
297
|
-
}
|
|
298
|
-
.vsp-wrapper .slide-top-enter-active,
|
|
299
|
-
.vsp-wrapper .slide-top-leave-active {
|
|
300
|
-
animation: slide-top;
|
|
301
|
-
}
|
|
302
|
-
.vsp-wrapper .slide-top-leave-active {
|
|
303
|
-
animation-direction: reverse;
|
|
304
|
-
}
|
|
305
|
-
.vsp-wrapper .slide-bottom-enter-active,
|
|
306
|
-
.vsp-wrapper .slide-bottom-leave-active {
|
|
307
|
-
animation: slide-bottom;
|
|
308
|
-
}
|
|
309
|
-
.vsp-wrapper .slide-bottom-leave-active {
|
|
310
|
-
animation-direction: reverse;
|
|
311
|
-
}
|
|
312
|
-
@keyframes slide-right {
|
|
313
|
-
0% {
|
|
314
|
-
transform: translateX(100%);
|
|
315
|
-
opacity: 0;
|
|
316
|
-
}
|
|
317
|
-
100% {
|
|
318
|
-
transform: translateX(0);
|
|
319
|
-
opacity: 1;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
@keyframes slide-left {
|
|
323
|
-
0% {
|
|
324
|
-
transform: translateX(-100%);
|
|
325
|
-
opacity: 0;
|
|
326
|
-
}
|
|
327
|
-
100% {
|
|
328
|
-
transform: translateX(0);
|
|
329
|
-
opacity: 1;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
@keyframes slide-bottom {
|
|
333
|
-
0% {
|
|
334
|
-
transform: translateY(100%);
|
|
335
|
-
opacity: 0;
|
|
336
|
-
}
|
|
337
|
-
100% {
|
|
338
|
-
transform: translateY(0);
|
|
339
|
-
opacity: 1;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
@keyframes slide-top {
|
|
343
|
-
0% {
|
|
344
|
-
transform: translateY(-100%);
|
|
345
|
-
opacity: 0;
|
|
346
|
-
}
|
|
347
|
-
100% {
|
|
348
|
-
transform: translateY(0);
|
|
349
|
-
opacity: 1;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
@keyframes slide-top {
|
|
353
|
-
0% {
|
|
354
|
-
transform: translateY(-100%);
|
|
355
|
-
opacity: 0;
|
|
356
|
-
}
|
|
357
|
-
100% {
|
|
358
|
-
transform: translateY(0);
|
|
359
|
-
opacity: 1;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
@keyframes overlay-transition {
|
|
363
|
-
0% {
|
|
364
|
-
opacity: 0;
|
|
365
|
-
}
|
|
366
|
-
100% {
|
|
367
|
-
opacity: var(--overlay-opacity);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
</style>
|
|
@@ -1,63 +1,35 @@
|
|
|
1
|
-
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
2
1
|
type __VLS_Props = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
zIndex?: number | 'auto';
|
|
9
|
-
width?: string;
|
|
10
|
-
height?: string;
|
|
11
|
-
lockScroll?: boolean;
|
|
12
|
-
lockScrollHtml?: boolean;
|
|
13
|
-
hideScrollbar?: boolean;
|
|
14
|
-
overlayColor?: string;
|
|
15
|
-
overlayOpacity?: number;
|
|
16
|
-
overlayDuration?: number;
|
|
17
|
-
panelColor?: string;
|
|
18
|
-
panelDuration?: number;
|
|
19
|
-
transitionName?: string;
|
|
20
|
-
headerClass?: string;
|
|
21
|
-
bodyClass?: string;
|
|
22
|
-
footerClass?: string;
|
|
2
|
+
side?: 'right' | 'left' | 'top' | 'bottom';
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
heightDrawer?: number;
|
|
6
|
+
widthDrawer?: number;
|
|
23
7
|
};
|
|
24
8
|
type __VLS_PublicProps = __VLS_Props & {
|
|
25
|
-
modelValue?:
|
|
9
|
+
modelValue?: boolean;
|
|
26
10
|
};
|
|
27
|
-
declare var
|
|
28
|
-
close: any;
|
|
29
|
-
}, __VLS_29: {
|
|
30
|
-
close: any;
|
|
31
|
-
}, __VLS_31: {};
|
|
11
|
+
declare var __VLS_34: {}, __VLS_36: {}, __VLS_38: {}, __VLS_45: {}, __VLS_47: {}, __VLS_49: {};
|
|
32
12
|
type __VLS_Slots = {} & {
|
|
33
|
-
header?: (props: typeof
|
|
13
|
+
header?: (props: typeof __VLS_34) => any;
|
|
34
14
|
} & {
|
|
35
|
-
default?: (props: typeof
|
|
15
|
+
default?: (props: typeof __VLS_36) => any;
|
|
36
16
|
} & {
|
|
37
|
-
footer?: (props: typeof
|
|
17
|
+
footer?: (props: typeof __VLS_38) => any;
|
|
18
|
+
} & {
|
|
19
|
+
header?: (props: typeof __VLS_45) => any;
|
|
20
|
+
} & {
|
|
21
|
+
default?: (props: typeof __VLS_47) => any;
|
|
22
|
+
} & {
|
|
23
|
+
footer?: (props: typeof __VLS_49) => any;
|
|
38
24
|
};
|
|
39
25
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
-
"update:modelValue": (value:
|
|
41
|
-
} & {
|
|
42
|
-
opened: () => any;
|
|
43
|
-
closed: () => any;
|
|
26
|
+
"update:modelValue": (value: boolean) => any;
|
|
44
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
45
|
-
"onUpdate:modelValue"?: ((value:
|
|
46
|
-
onOpened?: (() => any) | undefined;
|
|
47
|
-
onClosed?: (() => any) | undefined;
|
|
28
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
48
29
|
}>, {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
idName: string;
|
|
53
|
-
zIndex: number | "auto";
|
|
54
|
-
lockScroll: boolean;
|
|
55
|
-
hideScrollbar: boolean;
|
|
56
|
-
overlayColor: string;
|
|
57
|
-
overlayOpacity: number;
|
|
58
|
-
overlayDuration: number;
|
|
59
|
-
panelColor: string;
|
|
60
|
-
panelDuration: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
side: "right" | "left" | "top" | "bottom";
|
|
61
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
62
34
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
63
35
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Props } from './types.js';
|
|
2
2
|
declare function emulateButtonClick(): void;
|
|
3
|
-
declare var __VLS_20: {}, __VLS_22: {}, __VLS_28: {}, __VLS_35:
|
|
3
|
+
declare var __VLS_20: {}, __VLS_22: {}, __VLS_28: {}, __VLS_35: string, __VLS_36: {
|
|
4
4
|
content: any;
|
|
5
5
|
};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
@@ -27,9 +27,9 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
27
27
|
}>, {
|
|
28
28
|
size: import("./types.js").Size;
|
|
29
29
|
color: import("./types.js").Color;
|
|
30
|
+
slot: string;
|
|
30
31
|
disabled: boolean;
|
|
31
32
|
defaultOpen: boolean;
|
|
32
|
-
slot: string;
|
|
33
33
|
divider: boolean;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -18,11 +18,11 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
20
20
|
size: "sm" | "md" | "lg" | "xl";
|
|
21
|
-
to: string;
|
|
22
|
-
disabled: boolean;
|
|
23
21
|
view: "default" | "outline" | "transparent";
|
|
24
|
-
variant: "primary" | "success" | "danger" | "gray" | "ghost";
|
|
25
22
|
form: "icon" | "button";
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
to: string;
|
|
25
|
+
variant: "primary" | "success" | "danger" | "gray" | "ghost";
|
|
26
26
|
iconClass: string;
|
|
27
27
|
loading: boolean;
|
|
28
28
|
block: boolean;
|
|
@@ -22,12 +22,16 @@ type __VLS_Slots = {} & {
|
|
|
22
22
|
} & {
|
|
23
23
|
default?: (props: typeof __VLS_17) => any;
|
|
24
24
|
};
|
|
25
|
-
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
25
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
"update:modelValue": (...args: any[]) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}>, {
|
|
26
30
|
name: string;
|
|
27
31
|
size: "lg" | "sm";
|
|
28
|
-
side: "right" | "left" | null;
|
|
29
32
|
modelValue: string | number | Array<any> | object | boolean | null;
|
|
30
33
|
value: string | number | object | null;
|
|
34
|
+
side: "right" | "left" | null;
|
|
31
35
|
masterControl: boolean;
|
|
32
36
|
emptyCheckboxClass: string;
|
|
33
37
|
intermediateCheckboxClass: string;
|
|
@@ -8,8 +8,8 @@ interface Props {
|
|
|
8
8
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
9
|
size: "sm" | "md";
|
|
10
10
|
error: string;
|
|
11
|
+
label: string;
|
|
11
12
|
disabled: boolean;
|
|
12
13
|
required: boolean;
|
|
13
|
-
label: string;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
export default _default;
|
|
@@ -25,9 +25,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
25
25
|
}>, {
|
|
26
26
|
size: "sm" | "md";
|
|
27
27
|
error: string | boolean;
|
|
28
|
+
label: string;
|
|
28
29
|
disabled: boolean;
|
|
29
30
|
required: boolean;
|
|
30
|
-
label: string;
|
|
31
31
|
readonly: boolean;
|
|
32
32
|
clearable: boolean;
|
|
33
33
|
startIcon: string | object;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
type __VLS_PublicProps = {
|
|
2
2
|
'isLoading'?: boolean;
|
|
3
3
|
};
|
|
4
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
submit: (...args: any[]) => void;
|
|
6
|
+
"update:isLoading": (value: boolean) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
8
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
"onUpdate:isLoading"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
11
|
export default _default;
|
|
@@ -12,7 +12,11 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
} & {
|
|
13
13
|
info?: (props: typeof __VLS_27) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
send: (...args: any[]) => void;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onSend?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
20
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
21
|
export default _default;
|
|
18
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -3,9 +3,15 @@ type __VLS_Props = {
|
|
|
3
3
|
index?: number;
|
|
4
4
|
url?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
7
|
-
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
outerClick: (...args: any[]) => void;
|
|
8
|
+
mouseOver: (...args: any[]) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onOuterClick?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
onMouseOver?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}>, {
|
|
8
13
|
animation: string;
|
|
14
|
+
index: number;
|
|
9
15
|
url: string;
|
|
10
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
17
|
export default _default;
|
|
@@ -3,9 +3,15 @@ type __VLS_Props = {
|
|
|
3
3
|
index?: number;
|
|
4
4
|
url?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
7
|
-
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
outerClick: (...args: any[]) => void;
|
|
8
|
+
mouseOver: (...args: any[]) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onOuterClick?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
onMouseOver?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}>, {
|
|
8
13
|
animation: string;
|
|
14
|
+
index: number;
|
|
9
15
|
url: string;
|
|
10
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
17
|
export default _default;
|
|
@@ -9,7 +9,11 @@ interface Props {
|
|
|
9
9
|
email?: string;
|
|
10
10
|
showLogin?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
12
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
logout: (...args: any[]) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
15
|
+
onLogout?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {
|
|
13
17
|
daysRemaining: number;
|
|
14
18
|
limitRemaining: number;
|
|
15
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -10,7 +10,11 @@ interface Props {
|
|
|
10
10
|
email?: string;
|
|
11
11
|
showLogin?: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
13
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
logout: (...args: any[]) => void;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
+
onLogout?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {
|
|
14
18
|
daysRemaining: number;
|
|
15
19
|
limitRemaining: number;
|
|
16
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,7 +7,13 @@ declare var __VLS_1: {};
|
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
burger?: (props: typeof __VLS_1) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
search: (...args: any[]) => void;
|
|
12
|
+
goToAnotherModule: (...args: any[]) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onGoToAnotherModule?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
17
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
18
|
export default _default;
|
|
13
19
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
pushMain: (...args: any[]) => void;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onPushMain?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
6
|
export default _default;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
redirectPath: string;
|
|
3
3
|
};
|
|
4
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
close: (...args: any[]) => void;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
9
|
export default _default;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
close: (...args: any[]) => void;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
6
|
export default _default;
|
|
@@ -15,12 +15,20 @@ type __VLS_PublicProps = __VLS_Props & {
|
|
|
15
15
|
modelValue?: any;
|
|
16
16
|
};
|
|
17
17
|
declare var __VLS_1: {
|
|
18
|
-
option:
|
|
18
|
+
option: Tab;
|
|
19
19
|
};
|
|
20
20
|
type __VLS_Slots = {} & {
|
|
21
21
|
option?: (props: typeof __VLS_1) => any;
|
|
22
22
|
};
|
|
23
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
selectOption: (...args: any[]) => void;
|
|
25
|
+
prevent: (...args: any[]) => void;
|
|
26
|
+
"update:modelValue": (value: any) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
29
|
+
onSelectOption?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
onPrevent?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}>, {
|
|
24
32
|
size: "lg" | "sm" | "xs";
|
|
25
33
|
view: "transparent" | "main" | "gray" | "blue" | "mobile";
|
|
26
34
|
block: boolean;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
27
27
|
}>, {
|
|
28
28
|
name: string;
|
|
29
29
|
size: "lg" | "sm";
|
|
30
|
-
side: "right" | "left";
|
|
31
30
|
disabled: boolean;
|
|
31
|
+
side: "right" | "left";
|
|
32
32
|
permanent: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -22,8 +22,8 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
22
22
|
onDelete?: ((item: Item) => any) | undefined;
|
|
23
23
|
"onUpdate:isOpen"?: ((value: boolean | undefined) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
disabled: boolean;
|
|
26
25
|
label: string;
|
|
26
|
+
disabled: boolean;
|
|
27
27
|
clearable: boolean;
|
|
28
28
|
deletable: boolean;
|
|
29
29
|
btnClass: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adata-ui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.62",
|
|
4
4
|
"description": "Adata UI",
|
|
5
5
|
"repository": "your-org/my-module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,11 +43,13 @@
|
|
|
43
43
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
44
44
|
"defu": "^6.1.4",
|
|
45
45
|
"maska": "^3.2.0",
|
|
46
|
+
"motion-v": "^1.7.4",
|
|
46
47
|
"qrcode": "^1.5.4",
|
|
47
48
|
"reka-ui": "^2.2.1",
|
|
48
49
|
"sass": "^1.89.0",
|
|
49
50
|
"tailwind-merge": "^3.3.0",
|
|
50
51
|
"tailwindcss": "^4.1.6",
|
|
52
|
+
"vaul-vue": "^0.4.1",
|
|
51
53
|
"vue3-toastify": "^0.2.8"
|
|
52
54
|
},
|
|
53
55
|
"devDependencies": {
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { computed } from "#imports";
|
|
3
|
-
import { DialogContent, DialogOverlay, DialogPortal, DialogRoot } from "reka-ui";
|
|
4
|
-
const props = defineProps({
|
|
5
|
-
side: { type: String, required: false, default: "right" },
|
|
6
|
-
width: { type: String, required: false, default: "300px" },
|
|
7
|
-
height: { type: String, required: false, default: "300px" }
|
|
8
|
-
});
|
|
9
|
-
const open = defineModel({ type: Boolean, ...{ default: false } });
|
|
10
|
-
const POSITION_CLASSES = {
|
|
11
|
-
right: "top-0 bottom-0 right-0",
|
|
12
|
-
left: "top-0 bottom-0 left-0",
|
|
13
|
-
top: "top-0 left-0 right-0",
|
|
14
|
-
bottom: "bottom-0 left-0 right-0"
|
|
15
|
-
};
|
|
16
|
-
const CORNER_CLASSES = {
|
|
17
|
-
left: "rounded-r-2xl",
|
|
18
|
-
right: "rounded-l-2xl",
|
|
19
|
-
top: "rounded-b-2xl",
|
|
20
|
-
bottom: "rounded-t-2xl"
|
|
21
|
-
};
|
|
22
|
-
const BUTTON_POSITIONS = {
|
|
23
|
-
left: "-right-8 top-8",
|
|
24
|
-
right: "-left-8 top-8",
|
|
25
|
-
top: "hidden",
|
|
26
|
-
bottom: "hidden"
|
|
27
|
-
};
|
|
28
|
-
const BUTTON_CORNERS = {
|
|
29
|
-
left: "rounded-r-lg",
|
|
30
|
-
right: "rounded-l-lg",
|
|
31
|
-
top: "rounded-b-lg",
|
|
32
|
-
bottom: "rounded-t-lg"
|
|
33
|
-
};
|
|
34
|
-
const sizeStyle = computed(() => {
|
|
35
|
-
if (["left", "right"].includes(props.side)) {
|
|
36
|
-
return { width: props.width, height: "100%" };
|
|
37
|
-
}
|
|
38
|
-
return { width: "100%", height: props.height };
|
|
39
|
-
});
|
|
40
|
-
</script>
|
|
41
|
-
|
|
42
|
-
<template>
|
|
43
|
-
<dialog-root v-model:open="open">
|
|
44
|
-
<dialog-portal>
|
|
45
|
-
<transition name="fade">
|
|
46
|
-
<dialog-overlay
|
|
47
|
-
class="fixed inset-0 bg-black/50"
|
|
48
|
-
/>
|
|
49
|
-
</transition>
|
|
50
|
-
|
|
51
|
-
<transition name="slide">
|
|
52
|
-
<dialog-content
|
|
53
|
-
:data-side="props.side"
|
|
54
|
-
:style="sizeStyle"
|
|
55
|
-
:class="[
|
|
56
|
-
'fixed bg-white dark:bg-gray-900 shadow-2xl',
|
|
57
|
-
POSITION_CLASSES[props.side],
|
|
58
|
-
CORNER_CLASSES[props.side]
|
|
59
|
-
]"
|
|
60
|
-
>
|
|
61
|
-
<button
|
|
62
|
-
:class="[
|
|
63
|
-
'absolute h-12 w-8 bg-blue-700 dark:bg-blue-500 cursor-pointer',
|
|
64
|
-
BUTTON_CORNERS[props.side],
|
|
65
|
-
BUTTON_POSITIONS[props.side]
|
|
66
|
-
]"
|
|
67
|
-
@click="open = false"
|
|
68
|
-
>
|
|
69
|
-
<i-x-mark class="size-4 m-auto" />
|
|
70
|
-
</button>
|
|
71
|
-
<slot />
|
|
72
|
-
</dialog-content>
|
|
73
|
-
</transition>
|
|
74
|
-
</dialog-portal>
|
|
75
|
-
</dialog-root>
|
|
76
|
-
</template>
|
|
77
|
-
|
|
78
|
-
<style scoped>
|
|
79
|
-
.fade-enter-active,
|
|
80
|
-
.fade-leave-active {
|
|
81
|
-
transition: opacity 0.3s ease;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.fade-enter-from,
|
|
85
|
-
.fade-leave-to {
|
|
86
|
-
opacity: 0;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.slide-enter-active,
|
|
90
|
-
.slide-leave-active {
|
|
91
|
-
transition: transform 0.3s ease;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.slide-enter-from {
|
|
95
|
-
transform: translateX(100%);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.slide-leave-to {
|
|
99
|
-
transform: translateX(100%);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.slide-enter-from[data-side=right],
|
|
103
|
-
.slide-leave-to[data-side=right] {
|
|
104
|
-
transform: translateX(100%);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.slide-enter-from[data-side=left],
|
|
108
|
-
.slide-leave-to[data-side=left] {
|
|
109
|
-
transform: translateX(-100%);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.slide-enter-from[data-side=top],
|
|
113
|
-
.slide-leave-to[data-side=top] {
|
|
114
|
-
transform: translateY(-100%);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.slide-enter-from[data-side=bottom],
|
|
118
|
-
.slide-leave-to[data-side=bottom] {
|
|
119
|
-
transform: translateY(100%);
|
|
120
|
-
}
|
|
121
|
-
</style>
|