adata-ui 2.0.70 → 2.0.72
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/app.vue +1 -0
- package/components/elements/illustrations/noAccess.vue +3 -2
- package/components/features/payment/banner/PaymentBanner.vue +3 -3
- package/components/features/pk-mobile-services/APkMobileServices.vue +3 -2
- package/components/modals/AnotherDeviceModal.vue +3 -2
- package/components/modals/ContentNavigationModal.vue +32 -29
- package/components/modals/LimitReachedModal.vue +4 -3
- package/components/modals/Resend.vue +4 -3
- package/components/modals/id/AuthModal.vue +5 -3
- package/components/modals/id/IdConfirmSuccessfulModal.vue +4 -3
- package/components/modals/id/IdLoginModal.vue +3 -2
- package/components/modals/id/IdRegistrationModal.vue +5 -3
- package/components/modals/id/IdTwoFactorModal.vue +3 -3
- package/components/navigation/bottom-navigation/ABottomNavigation.vue +3 -2
- package/components/navigation/footer/AFooter.vue +18 -18
- package/components/navigation/header/AHeader.vue +4 -2
- package/components/navigation/header/CardGallery.vue +5 -4
- package/components/navigation/header/HeaderLink.vue +14 -7
- package/components/navigation/mobile-navigation/AMobileNavigation.vue +3 -3
- package/components/navigation/side-navigation/ASideNavigation.vue +23 -21
- package/composables/useHeaderNavigationLinks.ts +59 -61
- package/composables/useUrls.ts +20 -0
- package/lang/en.ts +1 -0
- package/lang/kk.ts +1 -0
- package/lang/ru.ts +1 -0
- package/package.json +1 -1
- package/shared/constans/pages.ts +1 -0
|
@@ -11,6 +11,7 @@ import Arrow from '#adata-ui/icons/chevron/chevron-down.vue'
|
|
|
11
11
|
import Logo from '#adata-ui/icons/logo.vue'
|
|
12
12
|
import { buildLocalizedUrl, navigateToLocalizedPage } from '#adata-ui/utils/localizedNavigation'
|
|
13
13
|
import HeaderLink from './HeaderLink.vue'
|
|
14
|
+
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
14
15
|
|
|
15
16
|
defineOptions({ name: 'AHeader' })
|
|
16
17
|
|
|
@@ -47,6 +48,7 @@ const { locale } = useI18n()
|
|
|
47
48
|
useCurrentModule().value = props.module
|
|
48
49
|
const appConfig = useAppConfig()
|
|
49
50
|
const { myLayer }: any = useAppConfig()
|
|
51
|
+
const urls = useUrls()
|
|
50
52
|
|
|
51
53
|
const langIsOn = appConfig.myLayer.langIsOn
|
|
52
54
|
const contacts = ref(useContacts())
|
|
@@ -63,7 +65,7 @@ function goAuth() {
|
|
|
63
65
|
|
|
64
66
|
navigateToLocalizedPage({
|
|
65
67
|
locale,
|
|
66
|
-
projectUrl:
|
|
68
|
+
projectUrl: urls.login,
|
|
67
69
|
path: `/?url=${fullPath}`,
|
|
68
70
|
target: '_self',
|
|
69
71
|
})
|
|
@@ -75,7 +77,7 @@ function goAuth() {
|
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
function goToAnotherModule() {
|
|
78
|
-
location.href = buildLocalizedUrl(locale.value,
|
|
80
|
+
location.href = buildLocalizedUrl(locale.value, urls.landing, '')
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
async function fetchContacts() {
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import { AIconArrowCircleDown, AIconGlobe, AIconId, AIconArrowSideUp } from '#components'
|
|
3
3
|
import { PAGES } from '#adata-ui/shared/constans/pages'
|
|
4
4
|
import { buildLocalizedUrl } from '#adata-ui/utils/localizedNavigation'
|
|
5
|
+
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
+
const urls = useUrls()
|
|
7
8
|
const { t, locale } = useI18n()
|
|
8
9
|
const colorMode = useColorMode()
|
|
9
10
|
const computedColorMode = computed(() => colorMode.value)
|
|
@@ -13,21 +14,21 @@ const items = computed(()=>{
|
|
|
13
14
|
{
|
|
14
15
|
title: 'header.products.galleryCards.unload.title',
|
|
15
16
|
subtitle: 'header.products.galleryCards.unload.subtitle',
|
|
16
|
-
to: buildLocalizedUrl(locale,
|
|
17
|
+
to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.unload),
|
|
17
18
|
image: '/header/unload.webp',
|
|
18
19
|
icon: AIconArrowCircleDown,
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
title: 'header.products.galleryCards.compliance.title',
|
|
22
23
|
subtitle: 'header.products.galleryCards.compliance.subtitle',
|
|
23
|
-
to: buildLocalizedUrl(locale,
|
|
24
|
+
to: buildLocalizedUrl(locale, urls.compliance, PAGES.compliance.l),
|
|
24
25
|
image: '/header/compliance.webp',
|
|
25
26
|
icon: AIconId,
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
title: 'header.products.galleryCards.ved.title',
|
|
29
30
|
subtitle: 'header.products.galleryCards.ved.subtitle',
|
|
30
|
-
to: buildLocalizedUrl(locale,
|
|
31
|
+
to: buildLocalizedUrl(locale, urls.tnved),
|
|
31
32
|
image: '/header/ved.webp',
|
|
32
33
|
icon: AIconGlobe,
|
|
33
34
|
},
|
|
@@ -6,22 +6,27 @@ import ProductMenu from '#adata-ui/components/navigation/header/ProductMenu.vue'
|
|
|
6
6
|
|
|
7
7
|
import ContactMenu from '#adata-ui/components/navigation/header/ContactMenu.vue'
|
|
8
8
|
import { buildLocalizedUrl } from '#adata-ui/utils/localizedNavigation'
|
|
9
|
+
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
9
10
|
|
|
10
|
-
const {
|
|
11
|
+
const { landing } = useUrls()
|
|
11
12
|
const { t, locale } = useI18n()
|
|
12
13
|
|
|
13
14
|
const navs: any = [
|
|
14
15
|
{
|
|
15
16
|
label: 'header.navs.products',
|
|
16
|
-
to:
|
|
17
|
+
to: landing + PAGES.totalServices
|
|
17
18
|
},
|
|
18
19
|
{
|
|
19
20
|
label: 'header.navs.contacts',
|
|
20
|
-
to:
|
|
21
|
+
to: landing + PAGES.contacts
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
24
|
label: 'header.navs.tariffs',
|
|
24
|
-
to:
|
|
25
|
+
to: landing + PAGES.tariffs
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: 'header.navs.api',
|
|
29
|
+
to: landing + PAGES.api
|
|
25
30
|
}
|
|
26
31
|
]
|
|
27
32
|
|
|
@@ -47,7 +52,9 @@ const currentMenuToShow = (index) => {
|
|
|
47
52
|
}
|
|
48
53
|
const toggleMenu = (index: number) => {
|
|
49
54
|
if (index === 2) {
|
|
50
|
-
window.open(buildLocalizedUrl(locale,
|
|
55
|
+
window.open(buildLocalizedUrl(locale, landing, PAGES.tariffs), '_blank')
|
|
56
|
+
} else if (index === 3) {
|
|
57
|
+
window.open(buildLocalizedUrl(locale, landing, PAGES.api), '_blank')
|
|
51
58
|
} else {
|
|
52
59
|
currentMenu.value = currentMenuToShow(index)
|
|
53
60
|
const prev = currentIndex.value
|
|
@@ -76,7 +83,7 @@ const closeMenu = (forceClose = false) => {
|
|
|
76
83
|
}
|
|
77
84
|
}
|
|
78
85
|
const onMenuMouseEnter = (index: number) => {
|
|
79
|
-
if (index
|
|
86
|
+
if (![2, 3].includes(index)) {
|
|
80
87
|
if (show.value === false) {
|
|
81
88
|
delayTimer.value = setTimeout(() => {
|
|
82
89
|
toggleMenu(index)
|
|
@@ -168,7 +175,7 @@ watch(
|
|
|
168
175
|
v-show="show"
|
|
169
176
|
:animation="forward ? 'next' : 'prev'"
|
|
170
177
|
:index="currentIndex"
|
|
171
|
-
:url="buildLocalizedUrl(locale,
|
|
178
|
+
:url="buildLocalizedUrl(locale, landing, PAGES.contacts)"
|
|
172
179
|
@outer-click="closeMenu(true)"
|
|
173
180
|
@mouse-over="closeMenu"
|
|
174
181
|
/>
|
|
@@ -7,6 +7,7 @@ import ProfileMenu from '#adata-ui/components/navigation/header/ProfileMenu.vue'
|
|
|
7
7
|
import type { ProjectKeys } from '#adata-ui/components/navigation/header/types'
|
|
8
8
|
import { useCurrentModule } from '#adata-ui/composables/projectState'
|
|
9
9
|
import AModal from "#adata-ui/components/overlays/modal/AModal.vue";
|
|
10
|
+
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
10
11
|
|
|
11
12
|
interface Props {
|
|
12
13
|
replenish?: string
|
|
@@ -31,8 +32,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
31
32
|
})
|
|
32
33
|
const emit = defineEmits(['logout'])
|
|
33
34
|
useCurrentModule().value = props.module
|
|
34
|
-
const
|
|
35
|
-
const landingUrl = appConfig.myLayer.landingUrl
|
|
35
|
+
const { landing } = useUrls()
|
|
36
36
|
const activeModule = ref<string | null>(null)
|
|
37
37
|
const isMain = ref(false)
|
|
38
38
|
const isContacts = ref(false)
|
|
@@ -62,7 +62,7 @@ watch(activeModule, (e) => {
|
|
|
62
62
|
} else if (e === 'profile') {
|
|
63
63
|
isProfile.value = true
|
|
64
64
|
} else if (e === 'tariff') {
|
|
65
|
-
navigateTo(`${
|
|
65
|
+
navigateTo(`${landing}/tariffs`, { external: true })
|
|
66
66
|
}
|
|
67
67
|
activeModule.value = ''
|
|
68
68
|
})
|
|
@@ -24,6 +24,7 @@ import IconMedal from "#adata-ui/icons/medal.vue";
|
|
|
24
24
|
|
|
25
25
|
import { disableBodyScroll, enableBodyScroll } from 'body-scroll-lock'
|
|
26
26
|
import {PAGES} from "#adata-ui/shared/constans/pages";
|
|
27
|
+
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
27
28
|
|
|
28
29
|
type Modules = 'counterparty' | 'work' | 'tender' | 'fines' | 'analytics'
|
|
29
30
|
|
|
@@ -43,6 +44,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
43
44
|
zIndex: 'auto'
|
|
44
45
|
})
|
|
45
46
|
const { myLayer }: any = useAppConfig()
|
|
47
|
+
const urls = useUrls()
|
|
46
48
|
|
|
47
49
|
const activeModule = ref<Modules | null>(null)
|
|
48
50
|
const bottom = ref<HTMLElement | null>(null)
|
|
@@ -98,37 +100,37 @@ const sideLinks = {
|
|
|
98
100
|
{
|
|
99
101
|
icon: IconSearch,
|
|
100
102
|
label: "Проверка контрагентов",
|
|
101
|
-
link:
|
|
103
|
+
link: urls.pk + PAGES.pk.main
|
|
102
104
|
},
|
|
103
105
|
{
|
|
104
106
|
icon: IconScales,
|
|
105
107
|
label: "Сравнение контрагентов",
|
|
106
|
-
link: myLayer.counterParty ?
|
|
108
|
+
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.compare : urls.pk + PAGES.pk.compare
|
|
107
109
|
},
|
|
108
110
|
{
|
|
109
111
|
icon: IconLink,
|
|
110
112
|
label: "Косвенные связи",
|
|
111
|
-
link: myLayer.counterParty ?
|
|
113
|
+
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + '/search-connections/check' : urls.pk + PAGES.pk.connections
|
|
112
114
|
},
|
|
113
115
|
{
|
|
114
116
|
icon: IconUsers,
|
|
115
117
|
label: "Массовая проверка",
|
|
116
|
-
link: myLayer.counterParty ?
|
|
118
|
+
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.employees : urls.pk + PAGES.pk.employees
|
|
117
119
|
},
|
|
118
120
|
{
|
|
119
121
|
icon: IconGlobe,
|
|
120
122
|
label: "Зарубежные контрагенты",
|
|
121
|
-
link:
|
|
123
|
+
link: urls.pk + PAGES.pk.foreign
|
|
122
124
|
},
|
|
123
125
|
{
|
|
124
126
|
icon: IconBlock,
|
|
125
127
|
label: "Санкции",
|
|
126
|
-
link: myLayer.counterParty ?
|
|
128
|
+
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.sanctions : urls.pk + PAGES.pk.sanctions
|
|
127
129
|
},
|
|
128
130
|
{
|
|
129
131
|
icon: IconDollar,
|
|
130
132
|
label: "Офшоры",
|
|
131
|
-
link: myLayer.counterParty ?
|
|
133
|
+
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.offshore : urls.pk + PAGES.pk.offshore
|
|
132
134
|
},
|
|
133
135
|
{
|
|
134
136
|
icon: IconDocument,
|
|
@@ -138,80 +140,80 @@ const sideLinks = {
|
|
|
138
140
|
{
|
|
139
141
|
icon: IconArrowCircle,
|
|
140
142
|
label: "Выгрузка данных",
|
|
141
|
-
link:
|
|
143
|
+
link: urls.pk + PAGES.pk.unload
|
|
142
144
|
}
|
|
143
145
|
],
|
|
144
146
|
work: [
|
|
145
147
|
{
|
|
146
148
|
icon: IconWork,
|
|
147
149
|
label: "Вакансии",
|
|
148
|
-
link:
|
|
150
|
+
link: urls.work + PAGES.work.vacancy
|
|
149
151
|
},
|
|
150
152
|
{
|
|
151
153
|
icon: IconDocument,
|
|
152
154
|
label: "Резюме",
|
|
153
|
-
link:
|
|
155
|
+
link: urls.work + PAGES.work.summary
|
|
154
156
|
},
|
|
155
157
|
],
|
|
156
158
|
tender: [
|
|
157
159
|
{
|
|
158
160
|
icon: IconSearch,
|
|
159
161
|
label: "Поиск тендеров",
|
|
160
|
-
link:
|
|
162
|
+
link: urls.tender + PAGES.tender.main
|
|
161
163
|
},
|
|
162
164
|
{
|
|
163
165
|
icon: IconFile,
|
|
164
166
|
label: "Поиск договоров",
|
|
165
|
-
link:
|
|
167
|
+
link: urls.tender + PAGES.tender.contracts
|
|
166
168
|
},
|
|
167
169
|
{
|
|
168
170
|
icon: IconCheck,
|
|
169
171
|
label: "Планы закупок",
|
|
170
|
-
link:
|
|
172
|
+
link: urls.tender + PAGES.tender.plans
|
|
171
173
|
}
|
|
172
174
|
],
|
|
173
175
|
fines: [
|
|
174
176
|
{
|
|
175
177
|
icon: IconCheckCircle,
|
|
176
178
|
label: "Проверка штрафов",
|
|
177
|
-
link:
|
|
179
|
+
link: urls.avto + PAGES.fines.main
|
|
178
180
|
},
|
|
179
181
|
{
|
|
180
182
|
icon: IconCar,
|
|
181
183
|
label: "Проверка авто",
|
|
182
|
-
link:
|
|
184
|
+
link: urls.avto + PAGES.fines.avto
|
|
183
185
|
},
|
|
184
186
|
{
|
|
185
187
|
icon: IconTruck,
|
|
186
188
|
label: "Массовая проверка авто",
|
|
187
|
-
link:
|
|
189
|
+
link: urls.avto + PAGES.fines.bulk
|
|
188
190
|
}
|
|
189
191
|
],
|
|
190
192
|
analytics: [
|
|
191
193
|
{
|
|
192
194
|
icon: IconSearch,
|
|
193
195
|
label: "Поиск клиентов",
|
|
194
|
-
link:
|
|
196
|
+
link: urls.analytics + PAGES.analytics.clients
|
|
195
197
|
},
|
|
196
198
|
{
|
|
197
199
|
icon: IconCheck,
|
|
198
200
|
label: "Анализ закупок",
|
|
199
|
-
link:
|
|
201
|
+
link: urls.analytics + PAGES.analytics.analysis
|
|
200
202
|
},
|
|
201
203
|
{
|
|
202
204
|
icon: IconArrowGraph,
|
|
203
205
|
label: "Индекс деловой активности",
|
|
204
|
-
link:
|
|
206
|
+
link: urls.analytics + PAGES.analytics.index
|
|
205
207
|
},
|
|
206
208
|
{
|
|
207
209
|
icon: IconCompany,
|
|
208
210
|
label: "Субьекты бизнеса",
|
|
209
|
-
link:
|
|
211
|
+
link: urls.analytics + PAGES.analytics.business
|
|
210
212
|
},
|
|
211
213
|
{
|
|
212
214
|
icon: IconMedal,
|
|
213
215
|
label: "Рейтинг налогоплательщиков",
|
|
214
|
-
link:
|
|
216
|
+
link: urls.analytics + PAGES.analytics.rating
|
|
215
217
|
}
|
|
216
218
|
],
|
|
217
219
|
}
|