adata-ui 3.1.54 → 3.1.56
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/MobileServices.vue +154 -0
- package/dist/runtime/components/MobileServices.vue.d.ts +2 -0
- package/dist/runtime/components/SidePanel.vue +1 -1
- package/dist/runtime/composables/useNavigationLInks.d.ts +5 -0
- package/dist/runtime/composables/useNavigationLInks.js +64 -0
- package/dist/runtime/i18n/i18n.config.d.ts +3 -0
- package/dist/runtime/lang/en.js +2 -1
- package/dist/runtime/lang/kk.js +2 -1
- package/dist/runtime/lang/ru.d.ts +1 -0
- package/dist/runtime/lang/ru.js +2 -1
- package/dist/runtime/shared/constants/pages.d.ts +1 -0
- package/dist/runtime/shared/constants/pages.js +1 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { PAGES } from "#adata-ui/shared/constants/pages";
|
|
3
|
+
import { useServicesLinks } from "#adata-ui/composables/useNavigationLInks";
|
|
4
|
+
import { useI18n, useLocalePath, useRoute } from "#imports";
|
|
5
|
+
import { useUrls } from "#adata-ui/utils/useUrls";
|
|
6
|
+
import { buildLocalizedUrl } from "#adata-ui/utils/localizedNavigation";
|
|
7
|
+
const services = useServicesLinks();
|
|
8
|
+
const route = useRoute();
|
|
9
|
+
const localePath = useLocalePath();
|
|
10
|
+
const { landing } = useUrls();
|
|
11
|
+
const { locale } = useI18n();
|
|
12
|
+
const blockStyles = [
|
|
13
|
+
"first-border-gradient",
|
|
14
|
+
"second-border-gradient",
|
|
15
|
+
"third-border-gradient",
|
|
16
|
+
"fourth-border-gradient",
|
|
17
|
+
"fifth-border-gradient",
|
|
18
|
+
"sixth-border-gradient",
|
|
19
|
+
"seventh-border-gradient",
|
|
20
|
+
"eighth-border-gradient",
|
|
21
|
+
"ninth-border-gradient"
|
|
22
|
+
];
|
|
23
|
+
const linkByIndex = [
|
|
24
|
+
PAGES.pk.main,
|
|
25
|
+
PAGES.pk.employees,
|
|
26
|
+
PAGES.pk.connections,
|
|
27
|
+
PAGES.pk.offshore,
|
|
28
|
+
PAGES.pk.foreign,
|
|
29
|
+
PAGES.pk.unload,
|
|
30
|
+
PAGES.pk.compare,
|
|
31
|
+
PAGES.pk.sanctions,
|
|
32
|
+
buildLocalizedUrl(locale, landing, "/all-services")
|
|
33
|
+
];
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<template>
|
|
37
|
+
<div class="grid grid-cols-3">
|
|
38
|
+
<nuxt-link-locale
|
|
39
|
+
v-for="(service, index) in services"
|
|
40
|
+
:key="index"
|
|
41
|
+
:to="service.to"
|
|
42
|
+
:class="['flex flex-col items-center gap-2 p-2', blockStyles[index]]"
|
|
43
|
+
>
|
|
44
|
+
<div
|
|
45
|
+
class="size-10 p-2 rounded-lg"
|
|
46
|
+
:class="[
|
|
47
|
+
'bg-deepblue-900/5 dark:bg-gray-200/5',
|
|
48
|
+
{ '!bg-blue-700 text-white dark:!bg-blue-500 ': route.path.replace(/\/+$/, '') === localePath(linkByIndex[index]).replace(/\/+$/, '') }
|
|
49
|
+
]"
|
|
50
|
+
>
|
|
51
|
+
<component
|
|
52
|
+
:is="service.icon"
|
|
53
|
+
class="size-6 shrink-0"
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
<p class="text-xs text-center">
|
|
57
|
+
{{ service.title }}
|
|
58
|
+
</p>
|
|
59
|
+
</nuxt-link-locale>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<style scoped>
|
|
64
|
+
.first-border-gradient {
|
|
65
|
+
border-width: 0 1px 1px 0;
|
|
66
|
+
border-style: solid;
|
|
67
|
+
border-image-source: linear-gradient(180deg, #FFFFFF 0%, #F4F5F6 100%);
|
|
68
|
+
border-image-slice: 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.second-border-gradient {
|
|
72
|
+
border-width: 0 1px 1px 1px;
|
|
73
|
+
border-style: solid;
|
|
74
|
+
border-image-source: linear-gradient(180deg, #FFFFFF 0%, #F4F5F6 100%);
|
|
75
|
+
border-image-slice: 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.third-border-gradient {
|
|
79
|
+
border-width: 0 0 1px 1px;
|
|
80
|
+
border-style: solid;
|
|
81
|
+
border-image-source: linear-gradient(218.84deg, #FFFFFF 41.56%, #F4F5F6 98.73%);
|
|
82
|
+
border-image-slice: 1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.fourth-border-gradient {
|
|
86
|
+
border-width: 1px 1px 1px 0;
|
|
87
|
+
border-style: solid;
|
|
88
|
+
border-image-source: linear-gradient(125.34deg, #FFFFFF 7.49%, #F4F5F6 86.67%);
|
|
89
|
+
border-image-slice: 1;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.fifth-border-gradient {
|
|
93
|
+
border-width: 1px;
|
|
94
|
+
border-style: solid;
|
|
95
|
+
border-color: var(--Bg-tertiary-bg, #F4F5F6);
|
|
96
|
+
border-image-slice: 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.sixth-border-gradient {
|
|
100
|
+
border-width: 1px 0 1px 1px;
|
|
101
|
+
border-style: solid;
|
|
102
|
+
border-image-source: linear-gradient(261.06deg, #FFFFFF -6.98%, #F4F5F6 99.74%);
|
|
103
|
+
border-image-slice: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.seventh-border-gradient {
|
|
107
|
+
border-width: 1px 1px 0 0;
|
|
108
|
+
border-style: solid;
|
|
109
|
+
border-image-source: linear-gradient(58.51deg, #FFFFFF 35.88%, #F4F5F6 85.8%);
|
|
110
|
+
border-image-slice: 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.eighth-border-gradient {
|
|
114
|
+
border-width: 1px 1px 0 1px;
|
|
115
|
+
border-style: solid;
|
|
116
|
+
border-image-source: linear-gradient(0deg, #FFFFFF 0%, #F4F5F6 100%);
|
|
117
|
+
border-image-slice: 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ninth-border-gradient {
|
|
121
|
+
border-width: 1px 0 0 1px;
|
|
122
|
+
border-style: solid;
|
|
123
|
+
border-image-source: linear-gradient(41.08deg, #FFFFFF 6.74%, #F4F5F6 63.33%, #FEFEFE 91.03%);
|
|
124
|
+
border-image-slice: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.dark .first-border-gradient {
|
|
128
|
+
border-image-source: linear-gradient(180deg, #26282b 0%, #393d40 100%);
|
|
129
|
+
}
|
|
130
|
+
.dark .second-border-gradient {
|
|
131
|
+
border-image-source: linear-gradient(180deg, #26282b 0%, #393d40 100%);
|
|
132
|
+
}
|
|
133
|
+
.dark .third-border-gradient {
|
|
134
|
+
border-image-source: linear-gradient(218.84deg, #26282b 41.56%, #393d40 98.73%);
|
|
135
|
+
}
|
|
136
|
+
.dark .fourth-border-gradient {
|
|
137
|
+
border-image-source: linear-gradient(125.34deg, #26282b 7.49%, #393d40 86.67%);
|
|
138
|
+
}
|
|
139
|
+
.dark .fifth-border-gradient {
|
|
140
|
+
border-color: #393d40;
|
|
141
|
+
}
|
|
142
|
+
.dark .sixth-border-gradient {
|
|
143
|
+
border-image-source: linear-gradient(261.06deg, #26282b -6.98%, #393d40 99.74%);
|
|
144
|
+
}
|
|
145
|
+
.dark .seventh-border-gradient {
|
|
146
|
+
border-image-source: linear-gradient(58.51deg, #26282b 35.88%, #393d40 85.8%);
|
|
147
|
+
}
|
|
148
|
+
.dark .eighth-border-gradient {
|
|
149
|
+
border-image-source: linear-gradient(0deg, #26282b 0%, #393d40 100%);
|
|
150
|
+
}
|
|
151
|
+
.dark .ninth-border-gradient {
|
|
152
|
+
border-image-source: linear-gradient(41.08deg, #26282b 6.74%, #393d40 63.33%, #26282b 91.03%);
|
|
153
|
+
}
|
|
154
|
+
</style>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -185,7 +185,7 @@ const touchend = () => {
|
|
|
185
185
|
<div
|
|
186
186
|
v-if="!hideCloseBtn"
|
|
187
187
|
:class="roundedClass"
|
|
188
|
-
class="absolute w-8 px-2 py-4 bg-blue-700 text-white -left-8 top-8 cursor-pointer lg:block hidden"
|
|
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
189
|
@click="closePanel"
|
|
190
190
|
>
|
|
191
191
|
<i-x-mark />
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const useServicesLinks: () => {
|
|
2
|
+
title: string;
|
|
3
|
+
icon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
to: string;
|
|
5
|
+
}[];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import IconSearch from "#adata-ui/icons/search.vue";
|
|
2
|
+
import IconGlobe from "#adata-ui/icons/globe.vue";
|
|
3
|
+
import IconScales from "#adata-ui/icons/scale.vue";
|
|
4
|
+
import IconLink from "#adata-ui/icons/link-chain.vue";
|
|
5
|
+
import IconBlock from "#adata-ui/icons/block.vue";
|
|
6
|
+
import IconDollar from "#adata-ui/icons/currency/dollar.vue";
|
|
7
|
+
import IconUsersThree from "#adata-ui/icons/users/users-three.vue";
|
|
8
|
+
import IconArrowSquareDown from "#adata-ui/icons/other-service/arrow-square-down.vue";
|
|
9
|
+
import IconExpandWindow from "#adata-ui/icons/navigation/expand-window.vue";
|
|
10
|
+
import { buildLocalizedUrl } from "#adata-ui/utils/localizedNavigation";
|
|
11
|
+
import { PAGES } from "#adata-ui/shared/constants/pages";
|
|
12
|
+
import { useUrls } from "#adata-ui/utils/useUrls";
|
|
13
|
+
import { useI18n } from "#imports";
|
|
14
|
+
export const useServicesLinks = () => {
|
|
15
|
+
const { t, locale } = useI18n();
|
|
16
|
+
const urls = useUrls();
|
|
17
|
+
return [
|
|
18
|
+
{
|
|
19
|
+
title: t("header.products.counterparties.items.counterparty.title"),
|
|
20
|
+
icon: IconSearch,
|
|
21
|
+
to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.main)
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: t("header.products.counterparties.items.wholesale.title"),
|
|
25
|
+
icon: IconUsersThree,
|
|
26
|
+
to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.employees)
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: t("header.products.counterparties.items.networks.title"),
|
|
30
|
+
icon: IconLink,
|
|
31
|
+
to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.connections)
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: t("header.products.counterparties.items.offshore.title"),
|
|
35
|
+
icon: IconDollar,
|
|
36
|
+
to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.offshore)
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: t("header.products.counterparties.items.foreign.title"),
|
|
40
|
+
icon: IconGlobe,
|
|
41
|
+
to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.foreign)
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
title: t("header.products.counterparties.items.unloading.title"),
|
|
45
|
+
icon: IconArrowSquareDown,
|
|
46
|
+
to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.unload)
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: t("header.products.counterparties.items.compare.title"),
|
|
50
|
+
icon: IconScales,
|
|
51
|
+
to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.compare)
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
title: t("header.products.counterparties.items.sanction.title"),
|
|
55
|
+
icon: IconBlock,
|
|
56
|
+
to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.sanctions)
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: t("all_services"),
|
|
60
|
+
icon: IconExpandWindow,
|
|
61
|
+
to: buildLocalizedUrl(locale.value, urls.landing, PAGES.allServices)
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
};
|
|
@@ -772,6 +772,7 @@ declare const _default: {
|
|
|
772
772
|
changeMethod: string;
|
|
773
773
|
};
|
|
774
774
|
};
|
|
775
|
+
all_services: string;
|
|
775
776
|
};
|
|
776
777
|
en: {
|
|
777
778
|
lang: {
|
|
@@ -1541,6 +1542,7 @@ declare const _default: {
|
|
|
1541
1542
|
changeMethod: string;
|
|
1542
1543
|
};
|
|
1543
1544
|
};
|
|
1545
|
+
all_services: string;
|
|
1544
1546
|
};
|
|
1545
1547
|
kk: {
|
|
1546
1548
|
lang: {
|
|
@@ -2310,6 +2312,7 @@ declare const _default: {
|
|
|
2310
2312
|
changeMethod: string;
|
|
2311
2313
|
};
|
|
2312
2314
|
};
|
|
2315
|
+
all_services: string;
|
|
2313
2316
|
};
|
|
2314
2317
|
};
|
|
2315
2318
|
};
|
package/dist/runtime/lang/en.js
CHANGED
package/dist/runtime/lang/kk.js
CHANGED
|
@@ -803,6 +803,7 @@ const KkLocale = {
|
|
|
803
803
|
goKaspi: "Kaspi.kz \u0441\u0430\u0439\u0442\u044B\u043D\u0430 \u04E9\u0442\u0443",
|
|
804
804
|
changeMethod: "\u0422\u04E9\u043B\u0435\u043C \u04D9\u0434\u0456\u0441\u0456\u043D \u04E9\u0437\u0433\u0435\u0440\u0442\u0443"
|
|
805
805
|
}
|
|
806
|
-
}
|
|
806
|
+
},
|
|
807
|
+
all_services: "\u0411\u0430\u0440\u043B\u044B\u049B \u049B\u044B\u0437\u043C\u0435\u0442\u0442\u0435\u0440"
|
|
807
808
|
};
|
|
808
809
|
export default KkLocale;
|
package/dist/runtime/lang/ru.js
CHANGED
|
@@ -797,6 +797,7 @@ const RuLocale = {
|
|
|
797
797
|
goKaspi: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 Kaspi.kz",
|
|
798
798
|
changeMethod: "\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0441\u043F\u043E\u0441\u043E\u0431 \u043E\u043F\u043B\u0430\u0442\u044B"
|
|
799
799
|
}
|
|
800
|
-
}
|
|
800
|
+
},
|
|
801
|
+
all_services: "\u0412\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044B"
|
|
801
802
|
};
|
|
802
803
|
export default RuLocale;
|