adata-ui 2.1.26 → 2.1.28
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/components/features/dropdown/ADropdown.vue +4 -1
- package/components/navigation/footer/AFooter.vue +6 -1
- package/components/navigation/header/HeaderLink.vue +21 -14
- package/lang/en.ts +2 -0
- package/lang/kk.ts +2 -0
- package/lang/ru.ts +2 -0
- package/package.json +1 -1
- package/shared/constans/pages.ts +1 -1
|
@@ -5,10 +5,12 @@ type Placement = 'left' | 'right'
|
|
|
5
5
|
|
|
6
6
|
interface Props {
|
|
7
7
|
placement: Placement
|
|
8
|
+
fullWidth?: boolean
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
const props = withDefaults(defineProps<Props>(), {
|
|
11
|
-
placement: "right"
|
|
12
|
+
placement: "right",
|
|
13
|
+
fullWidth: false,
|
|
12
14
|
})
|
|
13
15
|
|
|
14
16
|
const expanded = ref(false)
|
|
@@ -88,6 +90,7 @@ onMounted(() => {
|
|
|
88
90
|
ref="card"
|
|
89
91
|
v-if="expanded"
|
|
90
92
|
class="absolute z-20 mt-5 lg:mt-4 shadow-md rounded-[0.5rem] top-[44px] lg:top-[initial]"
|
|
93
|
+
:class="{ 'w-full': fullWidth }"
|
|
91
94
|
>
|
|
92
95
|
<slot
|
|
93
96
|
name="content"
|
|
@@ -51,7 +51,7 @@ const socialMedia = [
|
|
|
51
51
|
|
|
52
52
|
const mainLinks = computed(() => ({
|
|
53
53
|
services: {
|
|
54
|
-
title: t('footer.
|
|
54
|
+
title: t('footer.productsAndSolutions'),
|
|
55
55
|
link: buildLocalizedUrl(locale.value, urls.landing, PAGES.allServices),
|
|
56
56
|
items: [
|
|
57
57
|
[
|
|
@@ -74,6 +74,7 @@ const mainLinks = computed(() => ({
|
|
|
74
74
|
{
|
|
75
75
|
title: t('footer.zakupki.title'),
|
|
76
76
|
link: urls.zakupki + PAGES.tender.main,
|
|
77
|
+
isNew: true
|
|
77
78
|
}
|
|
78
79
|
],
|
|
79
80
|
[
|
|
@@ -120,6 +121,10 @@ const mainLinks = computed(() => ({
|
|
|
120
121
|
title: t('footer.info.counterparty'),
|
|
121
122
|
link: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.counterparty),
|
|
122
123
|
},
|
|
124
|
+
{
|
|
125
|
+
title: t('footer.info.onlineServices'),
|
|
126
|
+
link: buildLocalizedUrl(locale.value, urls.pk, PAGES.services + '/taxpayer'),
|
|
127
|
+
},
|
|
123
128
|
]
|
|
124
129
|
]
|
|
125
130
|
}
|
|
@@ -8,7 +8,7 @@ import ContactMenu from '#adata-ui/components/navigation/header/ContactMenu.vue'
|
|
|
8
8
|
import { buildLocalizedUrl } from '#adata-ui/utils/localizedNavigation'
|
|
9
9
|
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
10
10
|
|
|
11
|
-
const { landing } = useUrls()
|
|
11
|
+
const { landing, pk } = useUrls()
|
|
12
12
|
const { t, locale } = useI18n()
|
|
13
13
|
|
|
14
14
|
const navs: any = [
|
|
@@ -24,16 +24,22 @@ const navs: any = [
|
|
|
24
24
|
label: 'header.navs.tariffs',
|
|
25
25
|
to: landing + PAGES.tariffs
|
|
26
26
|
},
|
|
27
|
-
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
label: 'header.navs.services',
|
|
33
|
-
to: landing + PAGES.services
|
|
34
|
-
}
|
|
27
|
+
// {
|
|
28
|
+
// label: 'header.navs.api',
|
|
29
|
+
// to: landing + PAGES.api
|
|
30
|
+
// },
|
|
35
31
|
]
|
|
36
32
|
|
|
33
|
+
// const pageUrl = useRequestURL()
|
|
34
|
+
// if (pageUrl.hostname.startsWith('pk')) {
|
|
35
|
+
// navs.push(
|
|
36
|
+
// {
|
|
37
|
+
// label: 'header.navs.services',
|
|
38
|
+
// to: pk + PAGES.services + '/kgd'
|
|
39
|
+
// }
|
|
40
|
+
// )
|
|
41
|
+
// }
|
|
42
|
+
|
|
37
43
|
const menu = ref<HTMLElement | null>(null)
|
|
38
44
|
const isBodyAlreadyLocked = ref<boolean>(false)
|
|
39
45
|
const currentIndex = ref(0)
|
|
@@ -69,12 +75,13 @@ const toggleMenu = (index: number) => {
|
|
|
69
75
|
if (pageUrl.hostname.includes('edo')) code = '?code=edo'
|
|
70
76
|
|
|
71
77
|
navigateToLocalizedPage({ locale, projectUrl: landing, path: PAGES.tariffs + code, target: '_blank' })
|
|
72
|
-
} else if (index === 3) {
|
|
73
|
-
navigateToLocalizedPage({ locale, projectUrl: landing, path: PAGES.api, target: '_blank' })
|
|
74
|
-
}
|
|
75
|
-
else if (index === 4) {
|
|
76
|
-
navigateToLocalizedPage({ locale, projectUrl: landing, path: PAGES.services, target: '_blank' })
|
|
77
78
|
}
|
|
79
|
+
// else if (index === 3) {
|
|
80
|
+
// navigateToLocalizedPage({ locale, projectUrl: landing, path: PAGES.api, target: '_blank' })
|
|
81
|
+
// }
|
|
82
|
+
// else if (index === 4) {
|
|
83
|
+
// navigateToLocalizedPage({ locale, projectUrl: pk, path: PAGES.services + '/kgd', target: '_blank' })
|
|
84
|
+
// }
|
|
78
85
|
else {
|
|
79
86
|
currentMenu.value = currentMenuToShow(index)
|
|
80
87
|
const prev = currentIndex.value
|
package/lang/en.ts
CHANGED
|
@@ -352,6 +352,7 @@ const EnLocale: RuLocale = {
|
|
|
352
352
|
},
|
|
353
353
|
},
|
|
354
354
|
footer: {
|
|
355
|
+
productsAndSolutions: 'Products and Solutions',
|
|
355
356
|
services: 'Services',
|
|
356
357
|
useful: 'Useful',
|
|
357
358
|
contacts: {
|
|
@@ -369,6 +370,7 @@ const EnLocale: RuLocale = {
|
|
|
369
370
|
vacancy: 'Vacancies',
|
|
370
371
|
counterparty: 'Enterprise Catalog',
|
|
371
372
|
contacts: 'Contacts',
|
|
373
|
+
onlineServices: 'Online services',
|
|
372
374
|
},
|
|
373
375
|
counterparties: {
|
|
374
376
|
title: 'Counterparties',
|
package/lang/kk.ts
CHANGED
|
@@ -353,6 +353,7 @@ const KkLocale: RuLocale = {
|
|
|
353
353
|
},
|
|
354
354
|
},
|
|
355
355
|
footer: {
|
|
356
|
+
productsAndSolutions: 'Өнімдер мен шешімдер',
|
|
356
357
|
services: 'Қызметтер',
|
|
357
358
|
useful: 'Пайдалы',
|
|
358
359
|
contacts: {
|
|
@@ -370,6 +371,7 @@ const KkLocale: RuLocale = {
|
|
|
370
371
|
vacancy: 'Бос орындар',
|
|
371
372
|
counterparty: 'Кәсіпорындар каталогы',
|
|
372
373
|
contacts: 'Байланыс',
|
|
374
|
+
onlineServices: 'Онлайн қызметтер',
|
|
373
375
|
},
|
|
374
376
|
counterparties: {
|
|
375
377
|
title: 'Контрагенттер',
|
package/lang/ru.ts
CHANGED
|
@@ -352,6 +352,7 @@ const RuLocale = {
|
|
|
352
352
|
},
|
|
353
353
|
},
|
|
354
354
|
footer: {
|
|
355
|
+
productsAndSolutions: 'Продукты и решения',
|
|
355
356
|
services: 'Сервисы',
|
|
356
357
|
useful: 'Полезное',
|
|
357
358
|
contacts: {
|
|
@@ -369,6 +370,7 @@ const RuLocale = {
|
|
|
369
370
|
vacancy: 'Вакансии',
|
|
370
371
|
counterparty: 'Каталог предприятий',
|
|
371
372
|
contacts: 'Контакты',
|
|
373
|
+
onlineServices: 'Онлайн сервисы',
|
|
372
374
|
},
|
|
373
375
|
counterparties: {
|
|
374
376
|
title: 'Контрагенты',
|
package/package.json
CHANGED
package/shared/constans/pages.ts
CHANGED
|
@@ -10,7 +10,7 @@ export const PAGES = {
|
|
|
10
10
|
favourites: '/favourites',
|
|
11
11
|
totalServices: '/total-services',
|
|
12
12
|
allServices: '/all-services',
|
|
13
|
-
services: '/
|
|
13
|
+
services: '/services',
|
|
14
14
|
profile: {
|
|
15
15
|
index: '/profile',
|
|
16
16
|
security: '/profile/change-password',
|