adata-ui 3.1.24 → 3.1.26
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/CurveBlock.vue +55 -1
- package/dist/runtime/components/CurveBlock.vue.d.ts +1 -0
- package/dist/runtime/components/EmptyHeader.vue +1 -1
- package/dist/runtime/components/Header.vue +46 -10
- package/dist/runtime/components/Header.vue.d.ts +3 -3
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -4,7 +4,8 @@ const props = defineProps({
|
|
|
4
4
|
icon: { type: Object, required: true },
|
|
5
5
|
title: { type: String, required: true },
|
|
6
6
|
description: { type: String, required: true },
|
|
7
|
-
to: { type: String, required: false }
|
|
7
|
+
to: { type: String, required: false },
|
|
8
|
+
wide: { type: Boolean, required: false }
|
|
8
9
|
});
|
|
9
10
|
</script>
|
|
10
11
|
|
|
@@ -16,6 +17,54 @@ const props = defineProps({
|
|
|
16
17
|
active-class="active-item"
|
|
17
18
|
>
|
|
18
19
|
<svg
|
|
20
|
+
v-if="wide"
|
|
21
|
+
class="w-full"
|
|
22
|
+
viewBox="-2 -4 416 188"
|
|
23
|
+
fill="none"
|
|
24
|
+
preserveAspectRatio="none"
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
>
|
|
27
|
+
<path
|
|
28
|
+
class="border-path border-path--large"
|
|
29
|
+
d="M413.333 105.936C413.333 116.008 399.074 123 389.001 123C369.671 123 354.001 138.67 354.001 158C354.001 168.009 347.088 182 337.079 182H16.3334C7.49682 182 0.333374 174.837 0.333374 166V16C0.333374 7.16344 7.49682 0 16.3334 0H397.333C406.17 0 413.333 7.16344 413.333 16V105.936Z"
|
|
30
|
+
stroke-width="2"
|
|
31
|
+
fill="transparent"
|
|
32
|
+
/>
|
|
33
|
+
<defs>
|
|
34
|
+
<linearGradient
|
|
35
|
+
id="gradient-light"
|
|
36
|
+
x1="164.372"
|
|
37
|
+
y1="-137.957"
|
|
38
|
+
x2="-20.5433"
|
|
39
|
+
y2="68.1723"
|
|
40
|
+
gradientUnits="userSpaceOnUse"
|
|
41
|
+
>
|
|
42
|
+
<stop stop-color="#479FFF" />
|
|
43
|
+
<stop
|
|
44
|
+
offset="1"
|
|
45
|
+
stop-color="#0070EB"
|
|
46
|
+
/>
|
|
47
|
+
</linearGradient>
|
|
48
|
+
|
|
49
|
+
<linearGradient
|
|
50
|
+
id="gradient-dark"
|
|
51
|
+
x1="164.372"
|
|
52
|
+
y1="-137.957"
|
|
53
|
+
x2="-20.5433"
|
|
54
|
+
y2="68.1723"
|
|
55
|
+
gradientUnits="userSpaceOnUse"
|
|
56
|
+
>
|
|
57
|
+
<stop stop-color="#4FBDFF" />
|
|
58
|
+
<stop
|
|
59
|
+
offset="1"
|
|
60
|
+
stop-color="#1B98E2"
|
|
61
|
+
/>
|
|
62
|
+
</linearGradient>
|
|
63
|
+
</defs>
|
|
64
|
+
</svg>
|
|
65
|
+
|
|
66
|
+
<svg
|
|
67
|
+
v-else
|
|
19
68
|
class="w-full"
|
|
20
69
|
viewBox="-1 -1 308 184"
|
|
21
70
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -147,6 +196,11 @@ const props = defineProps({
|
|
|
147
196
|
fill: #F4F5F6;
|
|
148
197
|
}
|
|
149
198
|
|
|
199
|
+
.border-path--large {
|
|
200
|
+
stroke-dasharray: 1400;
|
|
201
|
+
stroke-dashoffset: 1400;
|
|
202
|
+
}
|
|
203
|
+
|
|
150
204
|
.animated-border {
|
|
151
205
|
stroke-dasharray: 180;
|
|
152
206
|
stroke-dashoffset: 180;
|
|
@@ -4,6 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
6
|
to?: string;
|
|
7
|
+
wide?: boolean;
|
|
7
8
|
};
|
|
8
9
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
10
|
export default _default;
|
|
@@ -5,7 +5,7 @@ import ColorMode from "./ColorMode.vue";
|
|
|
5
5
|
<template>
|
|
6
6
|
<header class="h-16 bg-white border-b-[1px] border-deepblue-900/10 dark:bg-gray-900">
|
|
7
7
|
<div class="a-container flex items-center justify-end h-full">
|
|
8
|
-
<color-mode
|
|
8
|
+
<color-mode />
|
|
9
9
|
</div>
|
|
10
10
|
</header>
|
|
11
11
|
</template>
|
|
@@ -71,10 +71,50 @@ onBeforeMount(() => {
|
|
|
71
71
|
class="relative h-16 border-b border-deepblue-900/10 bg-white dark:border-gray-200/10 dark:bg-gray-900"
|
|
72
72
|
>
|
|
73
73
|
<div class="a-container mobile-padding flex h-full items-center justify-between gap-2">
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
<section
|
|
75
|
+
id="mobile-header"
|
|
76
|
+
class="grow lg:hidden"
|
|
77
|
+
>
|
|
78
|
+
<div
|
|
79
|
+
v-if="mobileHeaderType === 'default'"
|
|
80
|
+
class="flex justify-center"
|
|
81
|
+
>
|
|
82
|
+
<div>
|
|
83
|
+
<slot name="mobile-left" />
|
|
84
|
+
</div>
|
|
85
|
+
<nuxt-link
|
|
86
|
+
class="text-deepblue dark:text-[#E3E5E8]"
|
|
87
|
+
@click="goToAnotherModule"
|
|
88
|
+
>
|
|
89
|
+
<span class="visually-hidden"> Сервисы Adata.kz</span>
|
|
90
|
+
|
|
91
|
+
<adata-logo
|
|
92
|
+
:font-controlled="false"
|
|
93
|
+
filled
|
|
94
|
+
/>
|
|
95
|
+
</nuxt-link>
|
|
96
|
+
<div>
|
|
97
|
+
<slot name="mobile-right" />
|
|
98
|
+
</div>
|
|
77
99
|
</div>
|
|
100
|
+
<div
|
|
101
|
+
v-else-if="mobileHeaderType === 'search'"
|
|
102
|
+
class="flex w-full items-center gap-2 bg-white dark:bg-gray-900 lg:hidden"
|
|
103
|
+
>
|
|
104
|
+
<i-logo
|
|
105
|
+
class="dark:text-gray-200"
|
|
106
|
+
@click="goToAnotherModule"
|
|
107
|
+
/>
|
|
108
|
+
<button
|
|
109
|
+
class="flex w-full items-center gap-2 rounded bg-gray-50 px-4 py-1.5 dark:bg-gray-800 dark:text-gray-500"
|
|
110
|
+
@click="$emit('search')"
|
|
111
|
+
>
|
|
112
|
+
<i-search />
|
|
113
|
+
<span class="body-400">Найти</span>
|
|
114
|
+
</button>
|
|
115
|
+
</div>
|
|
116
|
+
</section>
|
|
117
|
+
<div class="hidden lg:flex items-center gap-4 justify-between lg:justify-start w-full">
|
|
78
118
|
<nuxt-link
|
|
79
119
|
aria-label="Adata-logo"
|
|
80
120
|
:to="`https://${mode}.kz`"
|
|
@@ -87,11 +127,8 @@ onBeforeMount(() => {
|
|
|
87
127
|
/>
|
|
88
128
|
</nuxt-link>
|
|
89
129
|
<header-link class="hidden lg:block" />
|
|
90
|
-
<div class="lg:hidden">
|
|
91
|
-
<slot name="mobile-right"></slot>
|
|
92
|
-
</div>
|
|
93
130
|
</div>
|
|
94
|
-
<lang-switcher class="lg:hidden"/>
|
|
131
|
+
<lang-switcher class="lg:hidden" />
|
|
95
132
|
<div class="text-deepblue hidden items-center gap-4 dark:text-[#E3E5E8] lg:flex">
|
|
96
133
|
<!-- Mobile hidden -->
|
|
97
134
|
<div class="hidden items-center gap-4 lg:flex">
|
|
@@ -103,11 +140,10 @@ onBeforeMount(() => {
|
|
|
103
140
|
<div v-if="langIsOn || module === 'fea'" />
|
|
104
141
|
</div>
|
|
105
142
|
<div class="flex items-center gap-4">
|
|
106
|
-
<color-mode
|
|
143
|
+
<color-mode />
|
|
107
144
|
<lang-switcher />
|
|
108
145
|
</div>
|
|
109
146
|
|
|
110
|
-
|
|
111
147
|
<slot name="notifications" />
|
|
112
148
|
|
|
113
149
|
<profile-menu
|
|
@@ -124,8 +160,8 @@ onBeforeMount(() => {
|
|
|
124
160
|
|
|
125
161
|
<div
|
|
126
162
|
v-show="!isAuthenticated && showLogIn"
|
|
127
|
-
@click="goAuth"
|
|
128
163
|
class="hidden w-max cursor-pointer items-center gap-2 rounded-2xl bg-blue-700 px-4 py-[6px] font-semibold dark:bg-blue-500 lg:flex"
|
|
164
|
+
@click="goAuth"
|
|
129
165
|
>
|
|
130
166
|
<i-logout class="text-white dark:text-gray-900 lg:h-4 lg:w-4" />
|
|
131
167
|
<span class="hidden text-sm font-semibold text-white dark:text-gray-900 lg:inline-block min-w-[44px]">
|
|
@@ -14,13 +14,13 @@ interface Props {
|
|
|
14
14
|
oldVersion?: string;
|
|
15
15
|
redirectAfterLogin?: string;
|
|
16
16
|
}
|
|
17
|
-
declare var __VLS_4: {},
|
|
17
|
+
declare var __VLS_4: {}, __VLS_18: {}, __VLS_55: {};
|
|
18
18
|
type __VLS_Slots = {} & {
|
|
19
19
|
'mobile-left'?: (props: typeof __VLS_4) => any;
|
|
20
20
|
} & {
|
|
21
|
-
'mobile-right'?: (props: typeof
|
|
21
|
+
'mobile-right'?: (props: typeof __VLS_18) => any;
|
|
22
22
|
} & {
|
|
23
|
-
notifications?: (props: typeof
|
|
23
|
+
notifications?: (props: typeof __VLS_55) => any;
|
|
24
24
|
};
|
|
25
25
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
26
26
|
daysRemaining: number;
|