adata-ui 3.1.60 → 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/NewFooter.vue +1 -0
- package/dist/runtime/components/{MobileServices.vue → PkMobileServices.vue} +11 -19
- 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/dist/runtime/composables/useNavigationLInks.js +1 -1
- package/dist/runtime/shared/constants/pages.d.ts +3 -0
- package/dist/runtime/shared/constants/pages.js +3 -0
- package/dist/runtime/utils/useUrls.d.ts +1 -0
- package/dist/runtime/utils/useUrls.js +1 -0
- package/package.json +3 -1
- package/dist/runtime/components/ASidePanel.vue +0 -121
- /package/dist/runtime/components/{MobileServices.vue.d.ts → PkMobileServices.vue.d.ts} +0 -0
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,14 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { PAGES } from "#adata-ui/shared/constants/pages";
|
|
3
2
|
import { useServicesLinks } from "#adata-ui/composables/useNavigationLInks";
|
|
4
|
-
import {
|
|
5
|
-
import { useUrls } from "#adata-ui/utils/useUrls";
|
|
6
|
-
import { buildLocalizedUrl } from "#adata-ui/utils/localizedNavigation";
|
|
3
|
+
import { onMounted, ref, useRoute } from "#imports";
|
|
7
4
|
const services = useServicesLinks();
|
|
8
5
|
const route = useRoute();
|
|
9
|
-
const localePath = useLocalePath();
|
|
10
|
-
const { landing } = useUrls();
|
|
11
|
-
const { locale } = useI18n();
|
|
12
6
|
const blockStyles = [
|
|
13
7
|
"first-border-gradient",
|
|
14
8
|
"second-border-gradient",
|
|
@@ -20,17 +14,14 @@ const blockStyles = [
|
|
|
20
14
|
"eighth-border-gradient",
|
|
21
15
|
"ninth-border-gradient"
|
|
22
16
|
];
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
PAGES.pk.sanctions,
|
|
32
|
-
buildLocalizedUrl(locale, landing, "/all-services")
|
|
33
|
-
];
|
|
17
|
+
const hostname = ref("");
|
|
18
|
+
onMounted(() => {
|
|
19
|
+
hostname.value = window.location.hostname;
|
|
20
|
+
});
|
|
21
|
+
const isActive = (to) => {
|
|
22
|
+
const url = new URL(to);
|
|
23
|
+
return url.hostname === hostname.value && url.pathname === route.path;
|
|
24
|
+
};
|
|
34
25
|
</script>
|
|
35
26
|
|
|
36
27
|
<template>
|
|
@@ -45,7 +36,7 @@ const linkByIndex = [
|
|
|
45
36
|
class="size-10 p-2 rounded-lg"
|
|
46
37
|
:class="[
|
|
47
38
|
'bg-deepblue-900/5 dark:bg-gray-200/5',
|
|
48
|
-
{ '!bg-blue-700 text-white dark:!bg-blue-500
|
|
39
|
+
{ '!bg-blue-700 text-white dark:!bg-blue-500': isActive(service.to) }
|
|
49
40
|
]"
|
|
50
41
|
>
|
|
51
42
|
<component
|
|
@@ -56,6 +47,7 @@ const linkByIndex = [
|
|
|
56
47
|
<p class="text-xs text-center">
|
|
57
48
|
{{ service.title }}
|
|
58
49
|
</p>
|
|
50
|
+
|
|
59
51
|
</nuxt-link-locale>
|
|
60
52
|
</div>
|
|
61
53
|
</template>
|