adata-ui 2.1.40-beta.10 → 2.1.40-beta.12
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/.claude/settings.local.json +19 -0
- package/assets/styles/index.scss +67 -5
- package/components/elements/a-select-row/ASelectRowV2.vue +8 -8
- package/components/elements/a-select-row/index.vue +3 -5
- package/components/elements/accordion/AAccordion.vue +5 -3
- package/components/elements/accordion/AAccordionGroup/AAccordionGroup.vue +3 -3
- package/components/elements/alert/AAlert.vue +34 -47
- package/components/elements/bg-block/ABgBlock.vue +1 -1
- package/components/elements/button/AButton.vue +3 -3
- package/components/elements/button/AButtonV2.vue +7 -5
- package/components/elements/button-login/index.vue +1 -1
- package/components/elements/chip-wrapper/AChipWrapper.vue +1 -1
- package/components/elements/chips/AChips.vue +2 -2
- package/components/elements/digit-badge/ADigitBadge.vue +21 -19
- package/components/elements/feature-description/AFeatureDescription.vue +1 -1
- package/components/elements/leave-note/ALeaveNote.vue +1 -1
- package/components/elements/pagination/APagination.vue +7 -7
- package/components/elements/segmented/ASegmentedV2.vue +103 -10
- package/components/elements/select/ASelect.vue +4 -4
- package/components/elements/select/ASelectMobile.vue +2 -2
- package/components/elements/select/ASelectV2.vue +10 -11
- package/components/elements/select/ui/select-button.vue +1 -1
- package/components/elements/status-badge/AStatusBadge.vue +22 -19
- package/components/elements/status-badge-v2/StatusBadgeV2.vue +1 -3
- package/components/elements/table/ATable.vue +1 -1
- package/components/elements/table/table.config.ts +2 -2
- package/components/elements/tree-select/ATreeSelect.vue +97 -113
- package/components/elements/tree-select/TreeService.ts +142 -207
- package/components/elements/tree-select/components/ATreeSelectNode.vue +104 -0
- package/components/elements/tree-select/types.ts +40 -11
- package/components/elements/tree-select/utils.ts +30 -0
- package/components/elements/tree-select-modal/ATreeSelectModal.vue +217 -0
- package/components/features/color-mode/AColorMode.client.vue +1 -1
- package/components/features/dropdown/ADropdownV2.vue +1 -2
- package/components/features/lang-switcher/lang-switcher.vue +9 -4
- package/components/features/payment/banner/BasicPlusLimitBanner.vue +3 -3
- package/components/features/payment/banner/PaymentBanner.vue +3 -3
- package/components/features/payment/banner/UpSellBanner.vue +3 -3
- package/components/features/payment/process/PaymentKaspiQrSidePanel.vue +43 -27
- package/components/features/payment/process/PaymentKaspiRedirectSidePanel.vue +34 -23
- package/components/features/payment/process/PaymentMethodSidePanel.vue +61 -49
- package/components/features/payment/process/PaymentProcess.vue +6 -6
- package/components/features/payment/process/PaymentTopUpSidePanel.vue +44 -63
- package/components/features/pk-mobile-services/APkMobileServices.vue +1 -1
- package/components/features//321/201hange-version/AChangeVersion.vue +2 -2
- package/components/forms/checkbox/ACheckbox.vue +1 -1
- package/components/forms/checkbox/ACheckboxV2.vue +5 -5
- package/components/forms/input/AInputV2.vue +4 -4
- package/components/forms/input/date/AInputDate.vue +2 -2
- package/components/forms/input/password/AInputPassword.vue +8 -2
- package/components/forms/input/standard/AInputStandard.vue +3 -3
- package/components/forms/input/textarea/ATextarea.vue +2 -2
- package/components/forms/toggle/AToggle.vue +2 -3
- package/components/forms/toggle/AToggleV2.vue +3 -3
- package/components/modals/AnotherDeviceModal.vue +1 -1
- package/components/modals/ContactsMobileModel.vue +1 -1
- package/components/modals/ContentNavigationModal.vue +77 -333
- package/components/modals/Insufficient-funds-modal.vue +1 -1
- package/components/modals/PaymentMethodModal.vue +1 -1
- package/components/modals/id/IdBanner.vue +3 -3
- package/components/modals/id/IdRecoveryModal.vue +1 -1
- package/components/navigation/bottom-navigation/ABottomNavigation.vue +1 -1
- package/components/navigation/breadcrumbs/ABreadcrumbs.vue +106 -45
- package/components/navigation/breadcrumbs/types.ts +3 -0
- package/components/navigation/footer/AFooter.vue +39 -40
- package/components/navigation/footer/ui/a-footer-accordion.vue +9 -9
- package/components/navigation/header/AHeader.vue +13 -19
- package/components/navigation/header/AlmatyContacts.vue +78 -78
- package/components/navigation/header/CardGallery.vue +4 -4
- package/components/navigation/header/HeaderUsage.vue +4 -6
- package/components/navigation/header/ListItem.vue +2 -2
- package/components/navigation/header/NavCard.vue +1 -1
- package/components/navigation/header/NavList.vue +2 -2
- package/components/navigation/header/NotificationsMenu.vue +2 -3
- package/components/navigation/header/ProductMenu.vue +7 -7
- package/components/navigation/header/ProfileMenu.vue +26 -35
- package/components/navigation/header/SystemNotification.vue +1 -3
- package/components/navigation/pill-tabs/APillTabs.vue +2 -2
- package/components/navigation/pill-tabs/APillTabsV2.vue +22 -6
- package/components/overlays/drawer/ADrawerV2.vue +335 -0
- package/components/overlays/modal/AModal.vue +4 -4
- package/components/overlays/modal/AModalV2.vue +7 -4
- package/components/overlays/side-panel/ASidePanel.vue +6 -6
- package/components/overlays/sideover/ASlideover.vue +6 -6
- package/components/overlays/tooltip/ATooltip.vue +1 -1
- package/components/overlays/tooltip/ATooltipV2.vue +2 -12
- package/components/transitions/ATransitionHeight.vue +1 -1
- package/composables/useHeaderNavigationLinks.ts +100 -94
- package/icons/archive.vue +16 -0
- package/icons/arrow/arrows-in.vue +11 -0
- package/icons/arrow/arrows-out.vue +11 -0
- package/icons/arrow/arrows-resize-in.vue +38 -0
- package/icons/arrow/arrows-resize-out.vue +17 -0
- package/icons/bot.vue +52 -0
- package/icons/clock-time.vue +24 -0
- package/icons/compare-outlined.vue +8 -0
- package/icons/dots-horizontal.vue +31 -0
- package/icons/download-line.vue +13 -0
- package/icons/egov.vue +41 -0
- package/icons/elicense.vue +38 -0
- package/icons/favourite-bookmark-outline.vue +17 -0
- package/icons/file-pen.vue +31 -0
- package/icons/file-stack.vue +31 -0
- package/icons/file-types/excel.vue +131 -0
- package/icons/file-types/html.vue +13 -0
- package/icons/file-types/jpeg.vue +16 -0
- package/icons/file-types/pdf.vue +11 -0
- package/icons/file-types/png.vue +11 -0
- package/icons/file-types/rar.vue +11 -0
- package/icons/file-types/word.vue +50 -0
- package/icons/file-types/zip.vue +11 -0
- package/icons/git-compare.vue +38 -0
- package/icons/graduation-cap.vue +31 -0
- package/icons/graph-loading.vue +34 -0
- package/icons/help-question-circle.vue +26 -0
- package/icons/in-row-type.vue +46 -0
- package/icons/in-table-type.vue +29 -0
- package/icons/message-dotted.vue +30 -0
- package/icons/notification-error.vue +17 -0
- package/icons/person.vue +22 -0
- package/icons/settings.vue +26 -0
- package/icons/shield-alert.vue +31 -0
- package/icons/socials/facebook-color.vue +16 -0
- package/icons/socials/globe-color.vue +16 -0
- package/icons/socials/instagram-color.vue +46 -0
- package/icons/socials/linkedin-color.vue +14 -0
- package/icons/socials/telegram-color.vue +16 -0
- package/icons/socials/tiktok-color.vue +14 -0
- package/icons/socials/vk-color.vue +16 -0
- package/icons/socials/youtube-color.vue +16 -0
- package/icons/view-eye-open.vue +13 -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/plugins/toast.client.ts +38 -55
- package/tailwind.config.ts +147 -116
- package/utils/twMerge.ts +34 -0
- package/components/elements/tree-select/components/tree-select-nodes.vue +0 -91
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {Switch} from "@headlessui/vue";
|
|
3
|
-
import {twMerge, twJoin} from "tailwind-merge";
|
|
4
|
-
|
|
5
2
|
import type {Props} from "./types";
|
|
3
|
+
import {twJoin, twMerge} from '#adata-ui/utils/twMerge';
|
|
4
|
+
import {Switch} from "@headlessui/vue";
|
|
6
5
|
|
|
7
6
|
const props = withDefaults(defineProps<Props>(), {
|
|
8
7
|
disabled: false,
|
|
@@ -15,8 +15,8 @@ const props = withDefaults(defineProps<{
|
|
|
15
15
|
const model = defineModel<boolean>({ default: false })
|
|
16
16
|
|
|
17
17
|
const SIZE: Record<Size, { track: string, knob: string, on: string, off: string, text: string }> = {
|
|
18
|
-
sm: { track: 'h-5 w-9', knob: 'size-4', on: 'translate-x-4', off: 'translate-x-0.5', text: 'text-
|
|
19
|
-
md: { track: 'h-6 w-11', knob: 'size-5', on: 'translate-x-5', off: 'translate-x-0.5', text: 'text-
|
|
18
|
+
sm: { track: 'h-5 w-9', knob: 'size-4', on: 'translate-x-4', off: 'translate-x-0.5', text: 'text-body-sm-medium' },
|
|
19
|
+
md: { track: 'h-6 w-11', knob: 'size-5', on: 'translate-x-5', off: 'translate-x-0.5', text: 'text-body-md-medium' },
|
|
20
20
|
}
|
|
21
21
|
const s = computed(() => SIZE[props.size])
|
|
22
22
|
|
|
@@ -39,7 +39,7 @@ function toggle() {
|
|
|
39
39
|
>
|
|
40
40
|
<span
|
|
41
41
|
v-if="label"
|
|
42
|
-
class="
|
|
42
|
+
class="text-gray-600 transition-colors group-hover:text-gray-800 dark:text-gray-300 dark:group-hover:text-gray-100"
|
|
43
43
|
:class="s.text"
|
|
44
44
|
>
|
|
45
45
|
{{ label }}
|
|
@@ -30,7 +30,7 @@ function onToMain() {
|
|
|
30
30
|
{{ t('modals.another_device_modal.info') }}
|
|
31
31
|
</p>
|
|
32
32
|
<div
|
|
33
|
-
class="body-400 flex gap-2 rounded-
|
|
33
|
+
class="body-400 flex gap-2 rounded-md border border-red-500 bg-[#FDECEB] p-3 text-red-500 dark:border-red-400 dark:bg-red-400/10 dark:text-red-400"
|
|
34
34
|
>
|
|
35
35
|
<a-icon-warning-triangle
|
|
36
36
|
class="size-4 shrink-0"
|
|
@@ -170,7 +170,7 @@ watch(tab, (e) => {
|
|
|
170
170
|
<nuxt-link
|
|
171
171
|
to="/"
|
|
172
172
|
@click="emits('pushMain')"
|
|
173
|
-
class="flex items-center gap-4 rounded-
|
|
173
|
+
class="flex items-center gap-4 rounded-sm bg-gray-50 px-4 py-3 dark:bg-gray-800"
|
|
174
174
|
>
|
|
175
175
|
<a-icon-menu />
|
|
176
176
|
{{ t('modals.mobile_navigation.return_button') }}
|
|
@@ -1,355 +1,99 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { Component } from 'vue'
|
|
3
|
+
import { useCurrentModule } from '#adata-ui/composables/projectState'
|
|
4
|
+
import { useHeaderNavigationLinks } from '#adata-ui/composables/useHeaderNavigationLinks'
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import IconLink from "#adata-ui/icons/link-chain.vue";
|
|
8
|
-
import IconUsers from "#adata-ui/icons/users.vue";
|
|
9
|
-
import IconGlobe from "#adata-ui/icons/globe.vue";
|
|
10
|
-
import IconBlock from "#adata-ui/icons/block.vue";
|
|
11
|
-
import IconDollar from "#adata-ui/icons/currency/currency-dollar.vue";
|
|
12
|
-
import IconDocument from "#adata-ui/icons/hdocument.vue";
|
|
13
|
-
import IconArrowCircle from "#adata-ui/icons/arrow/arrow-circle-down.vue";
|
|
14
|
-
import IconWork from "#adata-ui/icons/work-bag.vue";
|
|
15
|
-
import IconFile from "#adata-ui/icons/file/file.vue";
|
|
16
|
-
import IconCheck from "#adata-ui/icons/hcheck.vue";
|
|
17
|
-
import IconCheckCircle from "#adata-ui/icons/check/check-circle.vue";
|
|
18
|
-
import IconCar from "#adata-ui/icons/car.vue";
|
|
19
|
-
import IconTruck from "#adata-ui/icons/truck.vue";
|
|
20
|
-
import IconArrowGraph from "#adata-ui/icons/arrow/arrow-graph-up.vue";
|
|
21
|
-
import IconCompany from "#adata-ui/icons/company.vue";
|
|
22
|
-
import IconMedal from "#adata-ui/icons/medal.vue";
|
|
23
|
-
import IconProfile from "#adata-ui/icons/profile.vue";
|
|
24
|
-
import Connections from "#adata-ui/icons/sviazi.vue";
|
|
25
|
-
import {useCurrentModule} from "#adata-ui/composables/projectState";
|
|
26
|
-
import IconCalc from '#adata-ui/icons/calculator.vue'
|
|
27
|
-
import { buildLocalizedUrl } from '#adata-ui/utils/localizedNavigation'
|
|
28
|
-
import {
|
|
29
|
-
AIconAkimat,
|
|
30
|
-
AIconCurrencyTenge,
|
|
31
|
-
AIconExcelIcon,
|
|
32
|
-
AIconFiles, AIconSearch,
|
|
33
|
-
AIconUsers,
|
|
34
|
-
AIconWarningTriangle
|
|
35
|
-
} from '#components'
|
|
36
|
-
import MapPinRect from '#adata-ui/icons/map/map-pin-rect.vue'
|
|
37
|
-
import ChartBar from '#adata-ui/icons/chart-bar.vue'
|
|
38
|
-
import Bank from '#adata-ui/icons/bank.vue'
|
|
39
|
-
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
40
|
-
import MapPaper from '#adata-ui/icons/map-paper.vue'
|
|
41
|
-
import AiAssistant from '#adata-ui/icons/ai-assistant.vue'
|
|
42
|
-
import Tasks from '#adata-ui/icons/tasks.vue'
|
|
43
|
-
import HotLine from '#adata-ui/icons/hot-line.vue'
|
|
44
|
-
import Sanctions from '#adata-ui/icons/sanctions.vue'
|
|
45
|
-
import CheckSb from '#adata-ui/icons/check-sb.vue'
|
|
46
|
-
type Emits = {
|
|
47
|
-
(e: 'pushMain'): void
|
|
6
|
+
interface NavItem {
|
|
7
|
+
title: string
|
|
8
|
+
icon: Component
|
|
9
|
+
to: string
|
|
48
10
|
}
|
|
49
|
-
const isOpen = ref(false)
|
|
50
|
-
const tab = ref(useCurrentModule().value)
|
|
51
|
-
const { myLayer }: any = useAppConfig()
|
|
52
|
-
const urls = useUrls()
|
|
53
11
|
|
|
54
|
-
|
|
12
|
+
interface Emits {
|
|
13
|
+
(e: 'pushMain'): void
|
|
14
|
+
}
|
|
55
15
|
const emits = defineEmits<Emits>()
|
|
56
|
-
const mode = myLayer.mode
|
|
57
|
-
|
|
58
|
-
const tabOptions = [
|
|
59
|
-
{
|
|
60
|
-
name: 'header.products.counterparties.label',
|
|
61
|
-
key: 'pk',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'header.products.fines.label',
|
|
65
|
-
key: 'fines',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'header.products.jobs.label',
|
|
69
|
-
key: 'work',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: 'header.products.fea.label',
|
|
73
|
-
key: 'fea',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: 'header.products.tenders.label',
|
|
77
|
-
key: 'tenders',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: 'header.products.edo.label',
|
|
81
|
-
key: 'edo',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: 'header.products.compliance.label',
|
|
85
|
-
key: 'compliance',
|
|
86
|
-
},
|
|
87
16
|
|
|
88
|
-
|
|
89
|
-
name: 'header.products.analytics.label',
|
|
90
|
-
key: 'analytics',
|
|
91
|
-
},
|
|
17
|
+
const open = defineModel<boolean>({ default: false })
|
|
92
18
|
|
|
19
|
+
const { t } = useI18n()
|
|
20
|
+
const modules = useHeaderNavigationLinks()
|
|
93
21
|
|
|
22
|
+
const initialKey = useCurrentModule().value
|
|
23
|
+
const tab = ref<string>(
|
|
24
|
+
initialKey && modules.value.some(module => module.key === initialKey)
|
|
25
|
+
? initialKey
|
|
26
|
+
: (modules.value[0]?.key ?? 'pk'),
|
|
27
|
+
)
|
|
94
28
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
label: 'header.products.edo.label',
|
|
100
|
-
icon: AIconFiles,
|
|
101
|
-
link: urls.edo_docs,
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
pk: [
|
|
105
|
-
{
|
|
106
|
-
icon: IconSearch,
|
|
107
|
-
label: 'header.products.counterparties.items.counterparty.title',
|
|
108
|
-
link: urls.pk + PAGES.pk.main
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
icon: IconScales,
|
|
112
|
-
label: 'header.products.counterparties.items.compare.title',
|
|
113
|
-
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.compare : urls.pk + PAGES.pk.compare
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
icon: IconLink,
|
|
117
|
-
label: 'header.products.counterparties.items.networks.title',
|
|
118
|
-
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + '/search-connections/check' : urls.pk + PAGES.pk.connections
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
icon: IconUsers,
|
|
122
|
-
label: 'header.products.counterparties.items.wholesale.title',
|
|
123
|
-
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.employees : urls.pk + PAGES.pk.employees
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
icon: IconGlobe,
|
|
127
|
-
label: 'header.products.counterparties.items.foreign.title',
|
|
128
|
-
link: urls.pk + PAGES.pk.foreign
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
icon: IconBlock,
|
|
132
|
-
label: 'header.products.counterparties.items.sanction.title',
|
|
133
|
-
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.sanctions : urls.pk + PAGES.pk.sanctions
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
icon: IconDollar,
|
|
137
|
-
label: 'header.products.counterparties.items.offshore.title',
|
|
138
|
-
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.offshore : urls.pk + PAGES.pk.offshore
|
|
139
|
-
},
|
|
140
|
-
// {
|
|
141
|
-
// icon: IconDocument,
|
|
142
|
-
// label: "Экспресс проверка",
|
|
143
|
-
// link: "#"
|
|
144
|
-
// },
|
|
145
|
-
{
|
|
146
|
-
icon: IconArrowCircle,
|
|
147
|
-
label: 'header.products.counterparties.items.unloading.title',
|
|
148
|
-
link: urls.pk + PAGES.pk.unload
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
work: [
|
|
152
|
-
{
|
|
153
|
-
icon: IconWork,
|
|
154
|
-
label: 'header.products.jobs.items.vacancies.title',
|
|
155
|
-
link: urls.work + PAGES.work.vacancy
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
icon: IconDocument,
|
|
159
|
-
label: 'header.products.jobs.items.resume.title',
|
|
160
|
-
link: urls.work + PAGES.work.summary
|
|
161
|
-
},
|
|
162
|
-
],
|
|
163
|
-
tenders: [
|
|
164
|
-
{
|
|
165
|
-
icon: AIconUsers,
|
|
166
|
-
label: t('header.products.tenders.items.customers.title'),
|
|
167
|
-
link: urls.zakupki + PAGES.tender.customers,
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
icon: AIconAkimat,
|
|
171
|
-
label: t('header.products.tenders.items.akimat.title'),
|
|
172
|
-
link: urls.zakupki + PAGES.tender.akimat,
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
icon: AIconWarningTriangle,
|
|
176
|
-
label: 'header.products.tenders.items.tru.title',
|
|
177
|
-
link: urls.zakupki + PAGES.tender.tru
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
icon: AIconCurrencyTenge,
|
|
181
|
-
label: 'header.products.tenders.items.price.title',
|
|
182
|
-
link: urls.zakupki + PAGES.tender.price
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
icon: AIconExcelIcon,
|
|
186
|
-
label: 'header.products.tenders.items.constructor.title',
|
|
187
|
-
link: urls.zakupki + PAGES.tender.constructor
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
icon: AIconSearch,
|
|
191
|
-
label: 'header.products.tenders.items.monitoring.title',
|
|
192
|
-
link: urls.tender
|
|
193
|
-
}
|
|
194
|
-
],
|
|
195
|
-
analytics: [
|
|
196
|
-
// {
|
|
197
|
-
// icon: IconSearch,
|
|
198
|
-
// label: 'header.products.analytics.items.clients.title',
|
|
199
|
-
// link: myLayer.analyticsUrl + PAGES.analytics.clients
|
|
200
|
-
// },
|
|
201
|
-
// {
|
|
202
|
-
// icon: IconCheck,
|
|
203
|
-
// label: 'header.products.analytics.items.procurement.title',
|
|
204
|
-
// link: urls.analyticsNew + PAGES.analytics.main
|
|
205
|
-
// },
|
|
206
|
-
{
|
|
207
|
-
icon: IconArrowGraph,
|
|
208
|
-
label: 'header.products.analytics.items.activity.title',
|
|
209
|
-
link: urls.analytics + PAGES.analytics.index
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
icon: IconCompany,
|
|
213
|
-
label: 'header.products.analytics.items.subjects.title',
|
|
214
|
-
link: urls.analytics + PAGES.analytics.business
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
icon: IconMedal,
|
|
218
|
-
label: 'header.products.analytics.items.rate.title',
|
|
219
|
-
link: urls.analytics + PAGES.analytics.rating
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
fines: [
|
|
223
|
-
{
|
|
224
|
-
icon: IconCheckCircle,
|
|
225
|
-
label: 'header.products.fines.items.fines.title',
|
|
226
|
-
link: urls.avto + PAGES.fines.main
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
icon: IconCar,
|
|
230
|
-
label: 'header.products.fines.items.auto.title',
|
|
231
|
-
link: urls.avto + PAGES.fines.avto
|
|
232
|
-
},
|
|
233
|
-
// {
|
|
234
|
-
// icon: IconTruck,
|
|
235
|
-
// label: 'header.products.fines.items.wholesaleAuto.title',
|
|
236
|
-
// link: myLayer.avtoUrl + PAGES.fines.bulk
|
|
237
|
-
// }
|
|
238
|
-
],
|
|
239
|
-
fea: [
|
|
240
|
-
{
|
|
241
|
-
label: 'header.products.fea.items.i.t',
|
|
242
|
-
icon: IconSearch,
|
|
243
|
-
link: `${urls.tnved}${PAGES.fea.t}`
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
label: 'header.products.fea.items.o.t',
|
|
247
|
-
icon: Connections,
|
|
248
|
-
link: `${urls.tnved}${PAGES.fea.o}`
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
label: 'header.products.fea.items.cp.t',
|
|
252
|
-
icon: IconFile,
|
|
253
|
-
link: `${urls.tnved}${PAGES.fea.cp}`
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
label: 'header.products.fea.items.ca.t',
|
|
257
|
-
icon: IconCalc,
|
|
258
|
-
link: `${urls.tnved}${PAGES.fea.ca}`
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
label: 'header.products.fea.items.tr.t',
|
|
262
|
-
icon: IconGlobe,
|
|
263
|
-
link: `${urls.tnved}${PAGES.fea.tr}`
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
label: 'header.products.fea.items.importerMap.t',
|
|
267
|
-
icon: MapPinRect,
|
|
268
|
-
link: `${urls.tnved}${PAGES.fea.importerMap}`
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
label: 'header.products.fea.items.containers.t',
|
|
272
|
-
icon: MapPaper,
|
|
273
|
-
link: `${urls.tnved}${PAGES.fea.containers}`
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
compliance: [
|
|
277
|
-
{
|
|
278
|
-
label: 'header.products.compliance.items.assistant.t',
|
|
279
|
-
icon: AiAssistant,
|
|
280
|
-
link: urls.compliancemain + PAGES.compliance.assistant
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
label: 'header.products.compliance.items.assignments.t',
|
|
284
|
-
icon: Tasks,
|
|
285
|
-
link: urls.compliancemain + PAGES.compliance.assignments
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
label: 'header.products.compliance.items.hotline.t',
|
|
289
|
-
icon: HotLine,
|
|
290
|
-
link: urls.compliancemain + PAGES.compliance.hotline
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
label: 'header.products.compliance.items.sanctions.t',
|
|
294
|
-
icon: Sanctions,
|
|
295
|
-
link: urls.compliancemain + PAGES.compliance.sanctions
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
label: 'header.products.compliance.items.suppliers.t',
|
|
299
|
-
icon: IconProfile,
|
|
300
|
-
link: urls.compliancemain + PAGES.compliance.suppliers
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
label: 'header.products.compliance.items.sb.t',
|
|
304
|
-
icon: CheckSb,
|
|
305
|
-
link: urls.compliancemain + PAGES.compliance.sb
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
const currentLinks = ref(sideLinks[tab.value])
|
|
29
|
+
const tabOptions = computed(() =>
|
|
30
|
+
modules.value.map(module => ({ key: module.key, name: module.name })),
|
|
31
|
+
)
|
|
310
32
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
33
|
+
const currentLinks = computed<NavItem[]>(() => {
|
|
34
|
+
const module = modules.value.find(item => item.key === tab.value)
|
|
35
|
+
return (module?.items ?? []) as NavItem[]
|
|
315
36
|
})
|
|
316
37
|
|
|
38
|
+
function onReturn() {
|
|
39
|
+
emits('pushMain')
|
|
40
|
+
}
|
|
317
41
|
</script>
|
|
318
42
|
|
|
319
43
|
<template>
|
|
320
|
-
<a-modal
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
<
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
</div>
|
|
339
|
-
<span>{{ t(item.label) }}</span>
|
|
340
|
-
</nuxt-link>
|
|
341
|
-
</div>
|
|
342
|
-
<div class="h-[1px] w-full bg-deepblue-900/5"/>
|
|
44
|
+
<a-modal-v2
|
|
45
|
+
v-model="open"
|
|
46
|
+
hide-close
|
|
47
|
+
content-class="bg-gray-50/60 dark:bg-gray-950/40"
|
|
48
|
+
>
|
|
49
|
+
<template #header>
|
|
50
|
+
<h2 class="w-full text-center text-base font-semibold text-gray-900 dark:text-gray-100">
|
|
51
|
+
{{ t('modals.mobile_navigation.type_main') }}
|
|
52
|
+
</h2>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<div class="px-4 py-3">
|
|
56
|
+
<a-pill-tabs-v2
|
|
57
|
+
v-model="tab"
|
|
58
|
+
:options="tabOptions"
|
|
59
|
+
size="md"
|
|
60
|
+
scroll-into-view
|
|
61
|
+
/>
|
|
343
62
|
</div>
|
|
63
|
+
|
|
64
|
+
<div class="no-scrollbar flex h-[50vh] flex-col gap-2 overflow-y-auto px-4 pb-4">
|
|
65
|
+
<nuxt-link
|
|
66
|
+
v-for="item in currentLinks"
|
|
67
|
+
:key="item.to"
|
|
68
|
+
:to="item.to"
|
|
69
|
+
class="group flex items-center gap-3 rounded-xl border border-gray-100 bg-white px-3 py-2.5 transition-colors hover:border-blue-200 hover:bg-blue-50/50 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-blue-500/30 dark:hover:bg-gray-800"
|
|
70
|
+
>
|
|
71
|
+
<span class="flex size-10 shrink-0 items-center justify-center rounded-lg bg-blue-50 text-blue-500 transition-colors group-hover:bg-blue-700 group-hover:text-white dark:bg-blue-500/10 dark:text-blue-500 dark:group-hover:bg-blue-500 dark:group-hover:text-white">
|
|
72
|
+
<component
|
|
73
|
+
:is="item.icon"
|
|
74
|
+
class="size-5"
|
|
75
|
+
/>
|
|
76
|
+
</span>
|
|
77
|
+
|
|
78
|
+
<span class="min-w-0 flex-1 truncate text-sm font-semibold text-deepblue-900 dark:text-gray-100">
|
|
79
|
+
{{ item.title }}
|
|
80
|
+
</span>
|
|
81
|
+
|
|
82
|
+
<a-icon-chevron-right class="size-4 shrink-0 text-gray-300 transition-colors group-hover:text-blue-500 dark:text-gray-600" />
|
|
83
|
+
</nuxt-link>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
344
86
|
<template #footer>
|
|
345
|
-
<nuxt-link
|
|
346
|
-
|
|
87
|
+
<nuxt-link
|
|
88
|
+
to="/"
|
|
89
|
+
class="flex items-center justify-center gap-2 rounded-xl bg-gray-100 px-4 py-3 text-sm font-semibold text-deepblue-900 transition-colors hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-100 dark:hover:bg-gray-700"
|
|
90
|
+
@click="onReturn"
|
|
91
|
+
>
|
|
92
|
+
<a-icon-menu class="size-5" />
|
|
347
93
|
{{ t('modals.mobile_navigation.return_button') }}
|
|
348
94
|
</nuxt-link>
|
|
349
95
|
</template>
|
|
350
|
-
</a-modal>
|
|
96
|
+
</a-modal-v2>
|
|
351
97
|
</template>
|
|
352
98
|
|
|
353
|
-
<style scoped>
|
|
354
|
-
|
|
355
|
-
</style>
|
|
99
|
+
<style scoped></style>
|
|
@@ -30,7 +30,7 @@ function cancel() {
|
|
|
30
30
|
<p class="text-center">
|
|
31
31
|
{{ t('modals.low_balance.questions') }}
|
|
32
32
|
</p>
|
|
33
|
-
<div class="flex flex-col rounded-
|
|
33
|
+
<div class="flex flex-col rounded-lg border border-blue-500 bg-blue-50 px-4 py-2 dark:border-blue-500 dark:bg-blue-950/40">
|
|
34
34
|
<p class="body-600 text-center text-blue-700 dark:text-blue-300">
|
|
35
35
|
{{ t('modals.low_balance.current_balance') }}
|
|
36
36
|
</p>
|
|
@@ -66,7 +66,7 @@ if (props.deleteFromDom) {
|
|
|
66
66
|
:name="`${item.name}`"
|
|
67
67
|
side="right"
|
|
68
68
|
:value="item.id"
|
|
69
|
-
class="flex items-center justify-between gap-2 rounded-
|
|
69
|
+
class="flex items-center justify-between gap-2 rounded-sm bg-gray-50 p-[10px_16px] dark:bg-[#393D40]"
|
|
70
70
|
>
|
|
71
71
|
<div class="flex w-full items-center gap-2">
|
|
72
72
|
<component :is="item.img" />
|
|
@@ -9,15 +9,15 @@ function onRegister() {
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<template>
|
|
12
|
-
<div class="gradient flex flex-col gap-2 lg:gap-0 lg:flex-row justify-between rounded-
|
|
12
|
+
<div class="gradient flex flex-col gap-2 lg:gap-0 lg:flex-row justify-between rounded-md p-4 ring-1 ring-inset ring-blue-700/80 dark:bg-gray-800">
|
|
13
13
|
<div>
|
|
14
|
-
<p class="mb-2
|
|
14
|
+
<p class="mb-2 text-h5">
|
|
15
15
|
{{ t('modals.id.banners.auth.title') }}
|
|
16
16
|
</p>
|
|
17
17
|
<i18n-t
|
|
18
18
|
keypath="modals.id.banners.auth.subtitle"
|
|
19
19
|
tag="p"
|
|
20
|
-
class="text-
|
|
20
|
+
class="text-body-md text-gray-600 dark:text-gray-200"
|
|
21
21
|
>
|
|
22
22
|
<template #register>
|
|
23
23
|
<button class="font-semibold text-blue-700 dark:text-blue-500" @click="onRegister">
|
|
@@ -56,7 +56,7 @@ const profile: string = 'modals.mobile_navigation.type_profile'
|
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
58
|
<template>
|
|
59
|
-
<header class="
|
|
59
|
+
<header class="mx-3 mb-3 overflow-hidden rounded-full border border-deepblue-900/10 bg-gray-50/20 shadow-lg backdrop-blur-lg dark:border-gray-200/10 dark:bg-gray-900/30">
|
|
60
60
|
<div class="grid w-full grid-cols-3 justify-items-center">
|
|
61
61
|
<slot>
|
|
62
62
|
<button
|