adata-ui 3.0.2 → 3.1.0
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.d.mts +2 -0
- package/dist/module.json +5 -1
- package/dist/module.mjs +39 -6
- package/dist/runtime/components/Alert.vue +62 -0
- package/dist/runtime/components/Alert.vue.d.ts +29 -0
- package/dist/runtime/components/Chip.vue +24 -0
- package/dist/runtime/components/Chip.vue.d.ts +19 -0
- package/dist/runtime/components/ColorMode.vue +46 -0
- package/dist/runtime/components/ColorMode.vue.d.ts +2 -0
- package/dist/runtime/components/DigitBadge.vue +58 -0
- package/dist/runtime/components/DigitBadge.vue.d.ts +21 -0
- package/dist/runtime/components/Footer.vue +283 -0
- package/dist/runtime/components/Footer.vue.d.ts +2 -0
- package/dist/runtime/components/FooterAccordion.vue +78 -0
- package/dist/runtime/components/FooterAccordion.vue.d.ts +11 -0
- package/dist/runtime/components/Header.vue +139 -0
- package/dist/runtime/components/Header.vue.d.ts +41 -0
- package/dist/runtime/components/NewFooter.vue +267 -0
- package/dist/runtime/components/NewFooter.vue.d.ts +2 -0
- package/dist/runtime/components/NewFooterAccordion.vue +85 -0
- package/dist/runtime/components/NewFooterAccordion.vue.d.ts +11 -0
- package/dist/runtime/components/OtherServiceFeatures.vue +104 -0
- package/dist/runtime/components/OtherServiceFeatures.vue.d.ts +2 -0
- package/dist/runtime/components/Tag.vue +46 -0
- package/dist/runtime/components/Tag.vue.d.ts +25 -0
- package/dist/runtime/components/Toggle.vue +139 -0
- package/dist/runtime/components/Toggle.vue.d.ts +39 -0
- package/dist/runtime/components/accordion/Accordion.vue +149 -0
- package/dist/runtime/components/accordion/Accordion.vue.d.ts +41 -0
- package/dist/runtime/components/accordion/types.d.ts +15 -0
- package/dist/runtime/components/accordion/types.js +0 -0
- package/dist/runtime/components/accordion/ui.config.d.ts +22 -0
- package/dist/runtime/components/accordion/ui.config.js +21 -0
- package/dist/runtime/components/button/Button.vue +133 -0
- package/dist/runtime/components/button/Button.vue.d.ts +37 -0
- package/dist/runtime/components/button/types.d.ts +21 -0
- package/dist/runtime/components/button/types.js +0 -0
- package/dist/runtime/components/checkbox/Checkbox.vue +124 -0
- package/dist/runtime/components/checkbox/Checkbox.vue.d.ts +45 -0
- package/dist/runtime/components/date-picker/DatePicker.vue +102 -0
- package/dist/runtime/components/date-picker/DatePicker.vue.d.ts +16 -0
- package/dist/runtime/components/floating-label/FloatingLabel.vue +22 -0
- package/dist/runtime/components/floating-label/FloatingLabel.vue.d.ts +16 -0
- package/dist/runtime/components/forms/input/standard/InputStandard.vue +301 -0
- package/dist/runtime/components/forms/input/standard/InputStandard.vue.d.ts +0 -0
- package/dist/runtime/components/forms/input/textarea/ATextarea.vue +158 -0
- package/dist/runtime/components/forms/input/textarea/ATextarea.vue.d.ts +43 -0
- package/dist/runtime/components/forms/need-more-data/NeedMoreData.vue +114 -0
- package/dist/runtime/components/forms/need-more-data/NeedMoreData.vue.d.ts +5 -0
- package/dist/runtime/components/forms/request-demo/RequestDemo.vue +67 -0
- package/dist/runtime/components/forms/request-demo/RequestDemo.vue.d.ts +23 -0
- package/dist/runtime/components/header/AlmatyContacts.vue +120 -0
- package/dist/runtime/components/header/AlmatyContacts.vue.d.ts +2 -0
- package/dist/runtime/components/header/AstanaContacts.vue +65 -0
- package/dist/runtime/components/header/AstanaContacts.vue.d.ts +2 -0
- package/dist/runtime/components/header/CardGallery.vue +156 -0
- package/dist/runtime/components/header/CardGallery.vue.d.ts +2 -0
- package/dist/runtime/components/header/ContactMenu.vue +105 -0
- package/dist/runtime/components/header/ContactMenu.vue.d.ts +11 -0
- package/dist/runtime/components/header/HeaderLink.vue +169 -0
- package/dist/runtime/components/header/HeaderLink.vue.d.ts +2 -0
- package/dist/runtime/components/header/LangSwitcher.vue +48 -0
- package/dist/runtime/components/header/LangSwitcher.vue.d.ts +2 -0
- package/dist/runtime/components/header/ListItem.vue +26 -0
- package/dist/runtime/components/header/ListItem.vue.d.ts +7 -0
- package/dist/runtime/components/header/NavCard.vue +40 -0
- package/dist/runtime/components/header/NavCard.vue.d.ts +8 -0
- package/dist/runtime/components/header/NavList.vue +101 -0
- package/dist/runtime/components/header/NavList.vue.d.ts +17 -0
- package/dist/runtime/components/header/ProductMenu.vue +369 -0
- package/dist/runtime/components/header/ProductMenu.vue.d.ts +11 -0
- package/dist/runtime/components/header/ProfileMenu.vue +56 -0
- package/dist/runtime/components/header/ProfileMenu.vue.d.ts +16 -0
- package/dist/runtime/components/header/ProfileMenuContent.vue +228 -0
- package/dist/runtime/components/header/ProfileMenuContent.vue.d.ts +16 -0
- package/dist/runtime/components/header/TopHeader.vue +152 -0
- package/dist/runtime/components/header/TopHeader.vue.d.ts +10 -0
- package/dist/runtime/components/header/types.d.ts +19 -0
- package/dist/runtime/components/header/types.js +0 -0
- package/dist/runtime/components/header-mobile/HeaderMobile.vue +53 -0
- package/dist/runtime/components/header-mobile/HeaderMobile.vue.d.ts +17 -0
- package/dist/runtime/components/mobile-navigation/BottomNavigation.vue +68 -0
- package/dist/runtime/components/mobile-navigation/BottomNavigation.vue.d.ts +29 -0
- package/dist/runtime/components/mobile-navigation/MainButton.vue +16 -0
- package/dist/runtime/components/mobile-navigation/MainButton.vue.d.ts +2 -0
- package/dist/runtime/components/mobile-navigation/MobileProductMenu.vue +261 -0
- package/dist/runtime/components/mobile-navigation/MobileProductMenu.vue.d.ts +2 -0
- package/dist/runtime/components/modals/NoAccessContent.vue +58 -0
- package/dist/runtime/components/modals/NoAccessContent.vue.d.ts +5 -0
- package/dist/runtime/components/pill-tabs/PillTabs.vue +137 -0
- package/dist/runtime/components/pill-tabs/PillTabs.vue.d.ts +38 -0
- package/dist/runtime/components/pill-tabs/types.d.ts +18 -0
- package/dist/runtime/components/pill-tabs/types.js +0 -0
- package/dist/runtime/components/radio-button/RadioButton.vue +69 -0
- package/dist/runtime/components/radio-button/RadioButton.vue.d.ts +40 -0
- package/dist/runtime/components/row-card/RowCard.vue +44 -0
- package/dist/runtime/components/row-card/RowCard.vue.d.ts +26 -0
- package/dist/runtime/components/select-row/index.vue +117 -0
- package/dist/runtime/components/select-row/index.vue.d.ts +31 -0
- package/dist/runtime/components/tree-select/TreeSelect.vue +132 -0
- package/dist/runtime/components/tree-select/TreeSelect.vue.d.ts +22 -0
- package/dist/runtime/components/tree-select/TreeService.d.ts +54 -0
- package/dist/runtime/components/tree-select/TreeService.js +209 -0
- package/dist/runtime/components/tree-select/components/tree-select-nodes.vue +100 -0
- package/dist/runtime/components/tree-select/components/tree-select-nodes.vue.d.ts +9 -0
- package/dist/runtime/components/tree-select/types.d.ts +29 -0
- package/dist/runtime/components/tree-select/types.js +0 -0
- package/dist/runtime/composables/highlight.d.ts +1 -0
- package/dist/runtime/composables/highlight.js +15 -0
- package/dist/runtime/composables/projectState.d.ts +2 -0
- package/dist/runtime/composables/projectState.js +3 -0
- package/dist/runtime/i18n/i18n.config.d.ts +1731 -0
- package/dist/runtime/i18n/i18n.config.js +20 -0
- package/dist/runtime/i18n.d.ts +2 -0
- package/dist/runtime/i18n.js +15 -0
- package/dist/runtime/icons/arrow/arrow-circle-down.vue +30 -0
- package/dist/runtime/icons/arrow/arrow-circle-down.vue.d.ts +2 -0
- package/dist/runtime/icons/arrow/arrow-graph-up.vue +24 -0
- package/dist/runtime/icons/arrow/arrow-graph-up.vue.d.ts +2 -0
- package/dist/runtime/icons/arrow/arrow-right.vue +24 -0
- package/dist/runtime/icons/arrow/arrow-right.vue.d.ts +2 -0
- package/dist/runtime/icons/arrow/arrow-side-up.vue +19 -0
- package/dist/runtime/icons/arrow/arrow-side-up.vue.d.ts +2 -0
- package/dist/runtime/icons/arrow/arrow-top-right-on-square.vue +19 -0
- package/dist/runtime/icons/arrow/arrow-top-right-on-square.vue.d.ts +2 -0
- package/dist/runtime/icons/arrow/chevron-down.vue +19 -0
- package/dist/runtime/icons/arrow/chevron-down.vue.d.ts +2 -0
- package/dist/runtime/icons/avatar.vue +41 -0
- package/dist/runtime/icons/avatar.vue.d.ts +2 -0
- package/dist/runtime/icons/avto/car.vue +17 -0
- package/dist/runtime/icons/avto/car.vue.d.ts +2 -0
- package/dist/runtime/icons/avto/truck.vue +17 -0
- package/dist/runtime/icons/avto/truck.vue.d.ts +2 -0
- package/dist/runtime/icons/block.vue +19 -0
- package/dist/runtime/icons/block.vue.d.ts +2 -0
- package/dist/runtime/icons/bookmark.vue +19 -0
- package/dist/runtime/icons/bookmark.vue.d.ts +2 -0
- package/dist/runtime/icons/calculator.vue +19 -0
- package/dist/runtime/icons/calculator.vue.d.ts +2 -0
- package/dist/runtime/icons/calendar.vue +24 -0
- package/dist/runtime/icons/calendar.vue.d.ts +2 -0
- package/dist/runtime/icons/check-circle.vue +25 -0
- package/dist/runtime/icons/check-circle.vue.d.ts +2 -0
- package/dist/runtime/icons/checkbox/checkbox-active.vue +19 -0
- package/dist/runtime/icons/checkbox/checkbox-active.vue.d.ts +2 -0
- package/dist/runtime/icons/checkbox/checkbox-empty.vue +20 -0
- package/dist/runtime/icons/checkbox/checkbox-empty.vue.d.ts +2 -0
- package/dist/runtime/icons/checkbox/checkbox-intermediate.vue +19 -0
- package/dist/runtime/icons/checkbox/checkbox-intermediate.vue.d.ts +2 -0
- package/dist/runtime/icons/clipboard-text.vue +17 -0
- package/dist/runtime/icons/clipboard-text.vue.d.ts +2 -0
- package/dist/runtime/icons/clock.vue +25 -0
- package/dist/runtime/icons/clock.vue.d.ts +2 -0
- package/dist/runtime/icons/color-mode/moon.vue +20 -0
- package/dist/runtime/icons/color-mode/moon.vue.d.ts +2 -0
- package/dist/runtime/icons/color-mode/sun.vue +27 -0
- package/dist/runtime/icons/color-mode/sun.vue.d.ts +2 -0
- package/dist/runtime/icons/communication/mail.vue +19 -0
- package/dist/runtime/icons/communication/mail.vue.d.ts +2 -0
- package/dist/runtime/icons/communication/phone.vue +19 -0
- package/dist/runtime/icons/communication/phone.vue.d.ts +2 -0
- package/dist/runtime/icons/company.vue +19 -0
- package/dist/runtime/icons/company.vue.d.ts +2 -0
- package/dist/runtime/icons/currency/dollar.vue +19 -0
- package/dist/runtime/icons/currency/dollar.vue.d.ts +2 -0
- package/dist/runtime/icons/currency/down.vue +22 -0
- package/dist/runtime/icons/currency/down.vue.d.ts +2 -0
- package/dist/runtime/icons/currency/eur.vue +69 -0
- package/dist/runtime/icons/currency/eur.vue.d.ts +2 -0
- package/dist/runtime/icons/currency/rub.vue +25 -0
- package/dist/runtime/icons/currency/rub.vue.d.ts +2 -0
- package/dist/runtime/icons/currency/usd.vue +269 -0
- package/dist/runtime/icons/currency/usd.vue.d.ts +2 -0
- package/dist/runtime/icons/currency/yuan.vue +37 -0
- package/dist/runtime/icons/currency/yuan.vue.d.ts +2 -0
- package/dist/runtime/icons/document/hdocument.vue +17 -0
- package/dist/runtime/icons/document/hdocument.vue.d.ts +2 -0
- package/dist/runtime/icons/document/id.vue +19 -0
- package/dist/runtime/icons/document/id.vue.d.ts +2 -0
- package/dist/runtime/icons/document/profile.vue +19 -0
- package/dist/runtime/icons/document/profile.vue.d.ts +2 -0
- package/dist/runtime/icons/download.vue +26 -0
- package/dist/runtime/icons/download.vue.d.ts +2 -0
- package/dist/runtime/icons/edit.vue +24 -0
- package/dist/runtime/icons/edit.vue.d.ts +2 -0
- package/dist/runtime/icons/file/excel.vue +88 -0
- package/dist/runtime/icons/file/excel.vue.d.ts +2 -0
- package/dist/runtime/icons/file/file.vue +19 -0
- package/dist/runtime/icons/file/file.vue.d.ts +2 -0
- package/dist/runtime/icons/file/files.vue +17 -0
- package/dist/runtime/icons/file/files.vue.d.ts +2 -0
- package/dist/runtime/icons/globe.vue +19 -0
- package/dist/runtime/icons/globe.vue.d.ts +2 -0
- package/dist/runtime/icons/handshake.vue +19 -0
- package/dist/runtime/icons/handshake.vue.d.ts +2 -0
- package/dist/runtime/icons/history.vue +19 -0
- package/dist/runtime/icons/history.vue.d.ts +2 -0
- package/dist/runtime/icons/info/info-circle.vue +29 -0
- package/dist/runtime/icons/info/info-circle.vue.d.ts +2 -0
- package/dist/runtime/icons/invoice.vue +35 -0
- package/dist/runtime/icons/invoice.vue.d.ts +2 -0
- package/dist/runtime/icons/link-chain.vue +31 -0
- package/dist/runtime/icons/link-chain.vue.d.ts +2 -0
- package/dist/runtime/icons/loader-circle.vue +41 -0
- package/dist/runtime/icons/loader-circle.vue.d.ts +2 -0
- package/dist/runtime/icons/lock.vue +19 -0
- package/dist/runtime/icons/lock.vue.d.ts +2 -0
- package/dist/runtime/icons/logo/adata.vue +48 -0
- package/dist/runtime/icons/logo/adata.vue.d.ts +2 -0
- package/dist/runtime/icons/logo/logo.vue +27 -0
- package/dist/runtime/icons/logo/logo.vue.d.ts +2 -0
- package/dist/runtime/icons/medal.vue +17 -0
- package/dist/runtime/icons/medal.vue.d.ts +2 -0
- package/dist/runtime/icons/menu/menu-filled.vue +61 -0
- package/dist/runtime/icons/menu/menu-filled.vue.d.ts +2 -0
- package/dist/runtime/icons/menu/menu.vue +41 -0
- package/dist/runtime/icons/menu/menu.vue.d.ts +2 -0
- package/dist/runtime/icons/message.vue +24 -0
- package/dist/runtime/icons/message.vue.d.ts +2 -0
- package/dist/runtime/icons/modals/door.vue +170 -0
- package/dist/runtime/icons/modals/door.vue.d.ts +2 -0
- package/dist/runtime/icons/moon.vue +10 -0
- package/dist/runtime/icons/moon.vue.d.ts +2 -0
- package/dist/runtime/icons/more.vue +36 -0
- package/dist/runtime/icons/more.vue.d.ts +2 -0
- package/dist/runtime/icons/navigation/expand-window.vue +19 -0
- package/dist/runtime/icons/navigation/expand-window.vue.d.ts +2 -0
- package/dist/runtime/icons/navigation/location.vue +25 -0
- package/dist/runtime/icons/navigation/location.vue.d.ts +2 -0
- package/dist/runtime/icons/navigation/logout.vue +19 -0
- package/dist/runtime/icons/navigation/logout.vue.d.ts +2 -0
- package/dist/runtime/icons/notifications.vue +25 -0
- package/dist/runtime/icons/notifications.vue.d.ts +2 -0
- package/dist/runtime/icons/other-service/arrow-square-down.vue +15 -0
- package/dist/runtime/icons/other-service/arrow-square-down.vue.d.ts +2 -0
- package/dist/runtime/icons/other-service/arrow-top-right-on-square.vue +6 -0
- package/dist/runtime/icons/other-service/arrow-top-right-on-square.vue.d.ts +2 -0
- package/dist/runtime/icons/other-service/block.vue +16 -0
- package/dist/runtime/icons/other-service/block.vue.d.ts +2 -0
- package/dist/runtime/icons/other-service/currency-dollar.vue +16 -0
- package/dist/runtime/icons/other-service/currency-dollar.vue.d.ts +2 -0
- package/dist/runtime/icons/other-service/globe.vue +16 -0
- package/dist/runtime/icons/other-service/globe.vue.d.ts +2 -0
- package/dist/runtime/icons/other-service/link.vue +7 -0
- package/dist/runtime/icons/other-service/link.vue.d.ts +2 -0
- package/dist/runtime/icons/other-service/magnifying-glass.vue +9 -0
- package/dist/runtime/icons/other-service/magnifying-glass.vue.d.ts +2 -0
- package/dist/runtime/icons/other-service/standing-scales.vue +15 -0
- package/dist/runtime/icons/other-service/standing-scales.vue.d.ts +2 -0
- package/dist/runtime/icons/other-service/users-three.vue +7 -0
- package/dist/runtime/icons/other-service/users-three.vue.d.ts +2 -0
- package/dist/runtime/icons/plus-circle.vue +24 -0
- package/dist/runtime/icons/plus-circle.vue.d.ts +2 -0
- package/dist/runtime/icons/plus.vue +24 -0
- package/dist/runtime/icons/plus.vue.d.ts +2 -0
- package/dist/runtime/icons/radio/radio-check.vue +24 -0
- package/dist/runtime/icons/radio/radio-check.vue.d.ts +2 -0
- package/dist/runtime/icons/radio/radio-empty.vue +20 -0
- package/dist/runtime/icons/radio/radio-empty.vue.d.ts +2 -0
- package/dist/runtime/icons/receipt/hcheck.vue +27 -0
- package/dist/runtime/icons/receipt/hcheck.vue.d.ts +2 -0
- package/dist/runtime/icons/receipt/receipt.vue +27 -0
- package/dist/runtime/icons/receipt/receipt.vue.d.ts +2 -0
- package/dist/runtime/icons/scale.vue +19 -0
- package/dist/runtime/icons/scale.vue.d.ts +2 -0
- package/dist/runtime/icons/search.vue +27 -0
- package/dist/runtime/icons/search.vue.d.ts +2 -0
- package/dist/runtime/icons/socials/facebook.vue +15 -0
- package/dist/runtime/icons/socials/facebook.vue.d.ts +2 -0
- package/dist/runtime/icons/socials/instagram.vue +19 -0
- package/dist/runtime/icons/socials/instagram.vue.d.ts +2 -0
- package/dist/runtime/icons/socials/linkedin.vue +24 -0
- package/dist/runtime/icons/socials/linkedin.vue.d.ts +2 -0
- package/dist/runtime/icons/socials/telegram.vue +15 -0
- package/dist/runtime/icons/socials/telegram.vue.d.ts +2 -0
- package/dist/runtime/icons/socials/tik-tok.vue +15 -0
- package/dist/runtime/icons/socials/tik-tok.vue.d.ts +2 -0
- package/dist/runtime/icons/socials/whatsapp.vue +21 -0
- package/dist/runtime/icons/socials/whatsapp.vue.d.ts +2 -0
- package/dist/runtime/icons/socials/youtube.vue +16 -0
- package/dist/runtime/icons/socials/youtube.vue.d.ts +2 -0
- package/dist/runtime/icons/sun.vue +14 -0
- package/dist/runtime/icons/sun.vue.d.ts +2 -0
- package/dist/runtime/icons/sviazi.vue +19 -0
- package/dist/runtime/icons/sviazi.vue.d.ts +2 -0
- package/dist/runtime/icons/tenge.vue +22 -0
- package/dist/runtime/icons/tenge.vue.d.ts +2 -0
- package/dist/runtime/icons/trash.vue +24 -0
- package/dist/runtime/icons/trash.vue.d.ts +2 -0
- package/dist/runtime/icons/upload.vue +26 -0
- package/dist/runtime/icons/upload.vue.d.ts +2 -0
- package/dist/runtime/icons/user.vue +30 -0
- package/dist/runtime/icons/user.vue.d.ts +2 -0
- package/dist/runtime/icons/users/users-three.vue +17 -0
- package/dist/runtime/icons/users/users-three.vue.d.ts +2 -0
- package/dist/runtime/icons/users/users.vue +31 -0
- package/dist/runtime/icons/users/users.vue.d.ts +2 -0
- package/dist/runtime/icons/warning-triangle.vue +29 -0
- package/dist/runtime/icons/warning-triangle.vue.d.ts +2 -0
- package/dist/runtime/icons/work-bag.vue +20 -0
- package/dist/runtime/icons/work-bag.vue.d.ts +2 -0
- package/dist/runtime/icons/x-mark.vue +18 -0
- package/dist/runtime/icons/x-mark.vue.d.ts +2 -0
- package/dist/runtime/lang/en.d.ts +4 -0
- package/dist/runtime/lang/en.js +545 -0
- package/dist/runtime/lang/kk.d.ts +4 -0
- package/dist/runtime/lang/kk.js +545 -0
- package/dist/runtime/lang/ru.d.ts +575 -0
- package/dist/runtime/lang/ru.js +607 -0
- package/dist/runtime/shared/constants/pages.d.ts +71 -0
- package/dist/runtime/shared/constants/pages.js +71 -0
- package/package.json +66 -58
- package/dist/runtime/components/header/TheHeader.vue +0 -15
- package/dist/runtime/components/header/TheHeader.vue.d.ts +0 -2
- package/dist/runtime/plugin.d.ts +0 -2
- package/dist/runtime/plugin.js +0 -4
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, shallowRef, useI18n, onBeforeUnmount, watch, useAppConfig, useSwitchLocalePath } from "#imports";
|
|
3
|
+
import { onClickOutside } from "@vueuse/core";
|
|
4
|
+
const langSwitcher = ref(null);
|
|
5
|
+
const switchLocalePath = useSwitchLocalePath();
|
|
6
|
+
const { locale, locales, t } = useI18n();
|
|
7
|
+
const isOpen = ref(false);
|
|
8
|
+
onClickOutside(langSwitcher, () => {
|
|
9
|
+
isOpen.value = false;
|
|
10
|
+
});
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div
|
|
15
|
+
ref="langSwitcher"
|
|
16
|
+
class="relative"
|
|
17
|
+
>
|
|
18
|
+
|
|
19
|
+
<button
|
|
20
|
+
class="text-xs font-semibold py-1 px-2 bg-gray-100 dark:bg-gray-200/5 rounded"
|
|
21
|
+
@click="isOpen = true"
|
|
22
|
+
>
|
|
23
|
+
{{ t(`lang.${locale}.short`) }}
|
|
24
|
+
</button>
|
|
25
|
+
<div
|
|
26
|
+
v-show="isOpen"
|
|
27
|
+
:class="['absolute z-20 bg-white shadow rounded-md p-2 right-0 lg:right-auto lg:left-0 left-auto flex flex-col dark:bg-gray-900']"
|
|
28
|
+
>
|
|
29
|
+
<nuxt-link
|
|
30
|
+
v-for="loc in locales"
|
|
31
|
+
:class="[
|
|
32
|
+
'text-sm cursor-pointer px-4 py-2.5 flex justify-between',
|
|
33
|
+
{ 'text-primary bg-deepblue-500/5': locale === loc.code }
|
|
34
|
+
]"
|
|
35
|
+
:to="switchLocalePath(loc?.code || loc)"
|
|
36
|
+
@click="isOpen = false"
|
|
37
|
+
>
|
|
38
|
+
{{ t(`lang.${loc?.code || loc}.long`) }}
|
|
39
|
+
</nuxt-link>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<style scoped>
|
|
45
|
+
.shadow {
|
|
46
|
+
box-shadow: 0 1px 8px 0 rgba(139, 146, 156, 0.3019607843);
|
|
47
|
+
}
|
|
48
|
+
</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;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from "#imports";
|
|
3
|
+
defineProps({
|
|
4
|
+
item: { type: Object, required: true },
|
|
5
|
+
someHovered: { type: Boolean, required: true }
|
|
6
|
+
});
|
|
7
|
+
const hover = ref(false);
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<nuxt-link
|
|
12
|
+
:to="item.to"
|
|
13
|
+
:class="{ 'opacity-30': !hover && someHovered }"
|
|
14
|
+
class="flex items-center gap-4 px-2.5 py-2 hover:bg-gray-50 rounded-lg dark:hover:bg-gray-800 normal-case transition-all "
|
|
15
|
+
@mouseenter="hover = true"
|
|
16
|
+
@mouseleave="hover = false"
|
|
17
|
+
>
|
|
18
|
+
<div class="min-w-8 h-8 rounded-lg flex items-center justify-center dark:text-gray-900 text-white bg-gradient-blue">
|
|
19
|
+
<component
|
|
20
|
+
:is="item.icon"
|
|
21
|
+
class="h-5 w-5"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
<span class="text-sm text-deepblue-900 dark:text-[#E3E5E8]">{{ item.title }}</span>
|
|
25
|
+
</nuxt-link>
|
|
26
|
+
</template>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NavChildItem } from '~/src/runtime/components/header/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: NavChildItem;
|
|
4
|
+
someHovered: boolean;
|
|
5
|
+
};
|
|
6
|
+
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>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from "#imports";
|
|
3
|
+
defineProps({
|
|
4
|
+
item: { type: null, required: true },
|
|
5
|
+
size: { type: String, required: true },
|
|
6
|
+
someHovered: { type: Boolean, required: true }
|
|
7
|
+
});
|
|
8
|
+
const hover = ref(false);
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<nuxt-link
|
|
13
|
+
:to="item.to"
|
|
14
|
+
class="flex h-full justify-between xl:gap-4 rounded-[0.5rem] bg-gray-50 p-4 dark:bg-gray-800 transition-all dark:hover:bg-gray-800"
|
|
15
|
+
:class="{ 'opacity-30': !hover && someHovered }"
|
|
16
|
+
@mouseenter="hover = true"
|
|
17
|
+
@mouseleave="hover = false"
|
|
18
|
+
>
|
|
19
|
+
<div class="normal-case">
|
|
20
|
+
<h4
|
|
21
|
+
class="mb-2 font-semibold text-deepblue-900 dark:text-[#E3E5E8]"
|
|
22
|
+
:class="{ 'heading-04': size === 'lg', 'heading-05': size === 'sm' }"
|
|
23
|
+
>
|
|
24
|
+
{{ item.title }}
|
|
25
|
+
</h4>
|
|
26
|
+
<p class="text-gray-600 dark:text-gray-300 body-400">
|
|
27
|
+
{{ item.subtitle ? item.subtitle : "" }}
|
|
28
|
+
</p>
|
|
29
|
+
</div>
|
|
30
|
+
<div
|
|
31
|
+
class="flex items-center justify-center self-end rounded-lg bg-gradient-blue dark:text-gray-900 text-white"
|
|
32
|
+
:class="{ 'h-8 min-w-8': size === 'sm', 'h-16 min-w-16': size === 'lg' }"
|
|
33
|
+
>
|
|
34
|
+
<component
|
|
35
|
+
:is="item.icon"
|
|
36
|
+
:class="{ 'h-5 w-5': size === 'sm', 'h-11 w-11': size === 'lg' }"
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
</nuxt-link>
|
|
40
|
+
</template>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NavChildItem } from '#adata-ui/components/navigation/header/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: NavChildItem;
|
|
4
|
+
size: 'lg' | 'sm';
|
|
5
|
+
someHovered: boolean;
|
|
6
|
+
};
|
|
7
|
+
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>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { PAGES } from "../../shared/constants/pages";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
id: { type: String, required: true },
|
|
5
|
+
icon: { type: Object, required: false },
|
|
6
|
+
title: { type: String, required: true },
|
|
7
|
+
badge: { type: Boolean, required: false },
|
|
8
|
+
to: { type: String, required: true },
|
|
9
|
+
navList: { type: Array, required: true },
|
|
10
|
+
currentModule: { type: Boolean, required: true }
|
|
11
|
+
});
|
|
12
|
+
function isActive(itemPath) {
|
|
13
|
+
if (!props.currentModule) return false;
|
|
14
|
+
const currentUrl = window.location.href.split("/").filter((item) => !["kk", "en"].includes(item)).join("/");
|
|
15
|
+
const section = PAGES[props.id];
|
|
16
|
+
const currentPath = itemPath.split("/").filter((item) => !["kk", "en"].includes(item)).join("/");
|
|
17
|
+
if (currentUrl === currentPath) return true;
|
|
18
|
+
if (currentPath.endsWith("/")) {
|
|
19
|
+
let atLeastOne = false;
|
|
20
|
+
for (const key in section) {
|
|
21
|
+
const path = section[key];
|
|
22
|
+
if (key !== "main") {
|
|
23
|
+
const includes = currentUrl.includes(path) || currentUrl.includes("car-result");
|
|
24
|
+
if (includes) {
|
|
25
|
+
atLeastOne = true;
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return !atLeastOne;
|
|
31
|
+
}
|
|
32
|
+
if (currentPath.includes("check-car")) {
|
|
33
|
+
if (currentUrl.includes("car-result")) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
for (const key in section) {
|
|
38
|
+
const path = section[key];
|
|
39
|
+
if (key !== "main") {
|
|
40
|
+
const includesBoth = currentUrl.includes(path) && currentUrl.startsWith(currentPath);
|
|
41
|
+
if (includesBoth) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<div
|
|
52
|
+
class="flex flex-col gap-2"
|
|
53
|
+
:class="{ 'rounded-md bg-gray-50 p-2 dark:bg-gray-800': currentModule }"
|
|
54
|
+
>
|
|
55
|
+
<div
|
|
56
|
+
class="flex items-center gap-2 pl-[10px]"
|
|
57
|
+
>
|
|
58
|
+
<p class="text-sm font-semibold dark:text-white">
|
|
59
|
+
{{ title }}
|
|
60
|
+
</p>
|
|
61
|
+
<adt-tag
|
|
62
|
+
v-if="badge"
|
|
63
|
+
type="primary"
|
|
64
|
+
class="w-fit"
|
|
65
|
+
size="xs"
|
|
66
|
+
view="inverted"
|
|
67
|
+
>
|
|
68
|
+
NEW
|
|
69
|
+
</adt-tag>
|
|
70
|
+
</div>
|
|
71
|
+
<ul class="flex flex-col gap-2">
|
|
72
|
+
<li
|
|
73
|
+
v-for="item in navList"
|
|
74
|
+
:key="item.title"
|
|
75
|
+
class="flex items-center gap-2 px-[10px] py-[6px] w-full rounded-md hover:bg-gray-50 dark:hover:bg-gray-800"
|
|
76
|
+
:class="{ 'bg-blue-100 dark:bg-gray-200/10': isActive(item.to) }"
|
|
77
|
+
>
|
|
78
|
+
<div class="bg-gradient-blue p-1 rounded-lg g-white">
|
|
79
|
+
<component
|
|
80
|
+
:is="item.icon"
|
|
81
|
+
class="size-[18px] text-white dark:text-gray-900"
|
|
82
|
+
/>
|
|
83
|
+
</div>
|
|
84
|
+
<nuxt-link
|
|
85
|
+
v-if="item.to"
|
|
86
|
+
:to="item.to"
|
|
87
|
+
class="inline-block normal-case w-full cursor-pointer align-middle text-sm font-semibold text-gray-600 dark:text-gray-200"
|
|
88
|
+
exact-active-class="text-blue-700 dark:text-blue-500"
|
|
89
|
+
>
|
|
90
|
+
{{ item.title }}
|
|
91
|
+
</nuxt-link>
|
|
92
|
+
<div
|
|
93
|
+
v-else
|
|
94
|
+
class="inline-block w-full align-middle text-sm font-semibold text-gray-600 dark:text-gray-200"
|
|
95
|
+
>
|
|
96
|
+
{{ item.title }}
|
|
97
|
+
</div>
|
|
98
|
+
</li>
|
|
99
|
+
</ul>
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Component } from '@nuxt/schema';
|
|
2
|
+
interface NavList {
|
|
3
|
+
title: string;
|
|
4
|
+
to: string;
|
|
5
|
+
icon?: Component;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
id: string;
|
|
9
|
+
icon?: Component;
|
|
10
|
+
title: string;
|
|
11
|
+
badge?: boolean;
|
|
12
|
+
to: string;
|
|
13
|
+
navList: NavList[];
|
|
14
|
+
currentModule: boolean;
|
|
15
|
+
};
|
|
16
|
+
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>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { PAGES } from "../../shared/constants/pages";
|
|
3
|
+
import NavList from "./NavList.vue";
|
|
4
|
+
import CardGallery from "./CardGallery.vue";
|
|
5
|
+
import { useI18n, useAppConfig, useRequestURL } from "#imports";
|
|
6
|
+
import IUsersThree from "#icons/users/users-three.vue";
|
|
7
|
+
import ISearch from "#icons/search.vue";
|
|
8
|
+
import IArrowCircleDown from "#icons/arrow/arrow-circle-down.vue";
|
|
9
|
+
import IUsers from "#icons/users/users.vue";
|
|
10
|
+
import IGlobe from "#icons/globe.vue";
|
|
11
|
+
import IScale from "#icons/scale.vue";
|
|
12
|
+
import ILinkChanin from "#icons/link-chain.vue";
|
|
13
|
+
import IBlock from "#icons/block.vue";
|
|
14
|
+
import IDollar from "#icons/currency/dollar.vue";
|
|
15
|
+
import IWorkBag from "#icons/work-bag.vue";
|
|
16
|
+
import IHdocument from "#icons/document/hdocument.vue";
|
|
17
|
+
import IReceipt from "#icons/receipt/receipt.vue";
|
|
18
|
+
import IHcheck from "#icons/receipt/hcheck.vue";
|
|
19
|
+
import IFile from "#icons/file/file.vue";
|
|
20
|
+
import IFiles from "#icons/file/files.vue";
|
|
21
|
+
import ICar from "#icons/avto/car.vue";
|
|
22
|
+
import ICheckCircle from "#icons/check-circle.vue";
|
|
23
|
+
import ITruck from "#icons/avto/truck.vue";
|
|
24
|
+
import IArrowGraphUp from "#icons/arrow/arrow-graph-up.vue";
|
|
25
|
+
import IClipboardText from "#icons/clipboard-text.vue";
|
|
26
|
+
import IMedal from "#icons/medal.vue";
|
|
27
|
+
import ICompany from "#icons/company.vue";
|
|
28
|
+
import IHandshake from "#icons/handshake.vue";
|
|
29
|
+
import ISviazi from "#icons/sviazi.vue";
|
|
30
|
+
import ICalculator from "#icons/calculator.vue";
|
|
31
|
+
import IId from "#icons/document/id.vue";
|
|
32
|
+
import IProfile from "#icons/document/profile.vue";
|
|
33
|
+
const props = defineProps({
|
|
34
|
+
animation: { type: String, required: false, default: "next" },
|
|
35
|
+
index: { type: Number, required: false, default: 0 },
|
|
36
|
+
url: { type: String, required: false, default: "" }
|
|
37
|
+
});
|
|
38
|
+
const { t } = useI18n();
|
|
39
|
+
const appConfig = useAppConfig();
|
|
40
|
+
const mode = appConfig.adataUI.mode;
|
|
41
|
+
const pageUrl = useRequestURL();
|
|
42
|
+
defineEmits(["outerClick", "mouseOver"]);
|
|
43
|
+
const filteredItems = [
|
|
44
|
+
{
|
|
45
|
+
key: "edo",
|
|
46
|
+
name: t("header.products.edo.label"),
|
|
47
|
+
icon: IFiles,
|
|
48
|
+
items: [
|
|
49
|
+
{
|
|
50
|
+
title: t("header.products.edo.items.l.t"),
|
|
51
|
+
subtitle: t("header.products.edo.items.l.t"),
|
|
52
|
+
icon: IFiles,
|
|
53
|
+
to: `https://edo.${mode}.kz`
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
key: "pk",
|
|
59
|
+
name: t("header.products.counterparties.label"),
|
|
60
|
+
icon: IUsersThree,
|
|
61
|
+
to: `https://pk.${mode}.kz`,
|
|
62
|
+
items: [
|
|
63
|
+
{
|
|
64
|
+
title: t("header.products.counterparties.items.counterparty.title"),
|
|
65
|
+
subtitle: t("header.products.counterparties.items.counterparty.subtitle"),
|
|
66
|
+
icon: ISearch,
|
|
67
|
+
to: `https://pk.${mode}.kz` + PAGES.pk.main
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: t("header.products.counterparties.items.unloading.title"),
|
|
71
|
+
subtitle: t("header.products.counterparties.items.unloading.subtitle"),
|
|
72
|
+
icon: IArrowCircleDown,
|
|
73
|
+
to: `https://pk.${mode}.kz` + PAGES.pk.unload
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
title: t("header.products.counterparties.items.wholesale.title"),
|
|
77
|
+
subtitle: t("header.products.counterparties.items.wholesale.subtitle"),
|
|
78
|
+
icon: IUsers,
|
|
79
|
+
to: `https://pk.${mode}.kz` + PAGES.pk.employees
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
title: t("header.products.counterparties.items.foreign.title"),
|
|
83
|
+
subtitle: t("header.products.counterparties.items.foreign.subtitle"),
|
|
84
|
+
icon: IGlobe,
|
|
85
|
+
to: `https://pk.${mode}.kz` + PAGES.pk.foreign
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: t("header.products.counterparties.items.compare.title"),
|
|
89
|
+
icon: IScale,
|
|
90
|
+
to: `https://pk.${mode}.kz` + PAGES.pk.compare
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: t("header.products.counterparties.items.networks.title"),
|
|
94
|
+
icon: ILinkChanin,
|
|
95
|
+
to: `https://pk.${mode}.kz` + PAGES.pk.connections
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
title: t("header.products.counterparties.items.sanction.title"),
|
|
99
|
+
icon: IBlock,
|
|
100
|
+
to: `https://pk.${mode}.kz` + PAGES.pk.sanctions
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
title: t("header.products.counterparties.items.offshore.title"),
|
|
104
|
+
icon: IDollar,
|
|
105
|
+
to: `https://pk.${mode}.kz` + PAGES.pk.offshore
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: "work",
|
|
111
|
+
name: t("header.products.jobs.label"),
|
|
112
|
+
icon: IWorkBag,
|
|
113
|
+
items: [
|
|
114
|
+
{
|
|
115
|
+
title: t("header.products.jobs.items.vacancies.title"),
|
|
116
|
+
icon: IWorkBag,
|
|
117
|
+
subtitle: t("header.products.jobs.items.vacancies.subtitle"),
|
|
118
|
+
to: `https://work.${mode}.kz` + PAGES.work.vacancy
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: t("header.products.jobs.items.resume.title"),
|
|
122
|
+
subtitle: t("header.products.jobs.items.resume.subtitle"),
|
|
123
|
+
icon: IHdocument,
|
|
124
|
+
to: `https://work.${mode}.kz` + PAGES.work.summary
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
key: "tenders",
|
|
130
|
+
name: t("header.products.tenders.label"),
|
|
131
|
+
icon: IReceipt,
|
|
132
|
+
to: `https://tender.${mode}.kz`,
|
|
133
|
+
items: [
|
|
134
|
+
{
|
|
135
|
+
title: t("header.products.tenders.items.tenders.title"),
|
|
136
|
+
subtitle: t("header.products.tenders.items.tenders.subtitle"),
|
|
137
|
+
icon: ISearch,
|
|
138
|
+
to: `https://tender.${mode}.kz` + PAGES.tender.main
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
title: t("header.products.tenders.items.procurement.title"),
|
|
142
|
+
subtitle: t("header.products.tenders.items.procurement.subtitle"),
|
|
143
|
+
icon: IHcheck,
|
|
144
|
+
to: `https://tender.${mode}.kz` + PAGES.tender.plans
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
title: t("header.products.tenders.items.contracts.title"),
|
|
148
|
+
subtitle: t("header.products.tenders.items.contracts.subtitle"),
|
|
149
|
+
icon: IFile,
|
|
150
|
+
to: `https://tender.${mode}.kz` + PAGES.tender.contracts
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
key: "fines",
|
|
156
|
+
name: t("header.products.fines.label"),
|
|
157
|
+
icon: ICar,
|
|
158
|
+
items: [
|
|
159
|
+
{
|
|
160
|
+
title: t("header.products.fines.items.fines.title"),
|
|
161
|
+
subtitle: t("header.products.fines.items.fines.subtitle"),
|
|
162
|
+
icon: ICheckCircle,
|
|
163
|
+
to: `https://avto.${mode}.kz` + PAGES.fines.main
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
title: t("header.products.fines.items.auto.title"),
|
|
167
|
+
subtitle: t("header.products.fines.items.auto.subtitle"),
|
|
168
|
+
icon: ICar,
|
|
169
|
+
to: `https://avto.${mode}.kz` + PAGES.fines.avto
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
title: t("header.products.fines.items.wholesaleAuto.title"),
|
|
173
|
+
subtitle: t("header.products.fines.items.wholesaleAuto.subtitle"),
|
|
174
|
+
icon: ITruck,
|
|
175
|
+
to: `https://avto.${mode}.kz` + PAGES.fines.bulk
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
key: "analytics",
|
|
181
|
+
name: t("header.products.analytics.label"),
|
|
182
|
+
icon: IArrowGraphUp,
|
|
183
|
+
items: [
|
|
184
|
+
{
|
|
185
|
+
title: t("header.products.analytics.items.procurement.title"),
|
|
186
|
+
subtitle: t("header.products.analytics.items.procurement.subtitle"),
|
|
187
|
+
icon: IClipboardText,
|
|
188
|
+
to: `https://analytics.${mode}.kz` + PAGES.analytics.analysis
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
title: t("header.products.analytics.items.activity.title"),
|
|
192
|
+
subtitle: t("header.products.analytics.items.activity.subtitle"),
|
|
193
|
+
icon: IArrowGraphUp,
|
|
194
|
+
to: `https://analytics.${mode}.kz` + PAGES.analytics.index
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
title: t("header.products.analytics.items.rate.title"),
|
|
198
|
+
subtitle: t("header.products.analytics.items.rate.subtitle"),
|
|
199
|
+
icon: IMedal,
|
|
200
|
+
to: `https://analytics.${mode}.kz` + PAGES.analytics.rating
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
title: t("header.products.analytics.items.subjects.title"),
|
|
204
|
+
subtitle: t("header.products.analytics.items.subjects.subtitle"),
|
|
205
|
+
icon: ICompany,
|
|
206
|
+
to: `https://analytics.${mode}.kz` + PAGES.analytics.business
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
key: "fea",
|
|
212
|
+
name: t("header.products.fea.label"),
|
|
213
|
+
icon: IGlobe,
|
|
214
|
+
items: [
|
|
215
|
+
{
|
|
216
|
+
title: t("header.products.fea.items.i.t"),
|
|
217
|
+
subtitle: t("header.products.fea.items.i.st"),
|
|
218
|
+
icon: IHandshake,
|
|
219
|
+
to: `https://tnved.${mode}.kz` + PAGES.fea.t
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
title: t("header.products.fea.items.o.t"),
|
|
223
|
+
subtitle: t("header.products.fea.items.o.st"),
|
|
224
|
+
icon: ISviazi,
|
|
225
|
+
to: `https://tnved.${mode}.kz` + PAGES.fea.o
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
title: t("header.products.fea.items.cp.t"),
|
|
229
|
+
subtitle: t("header.products.fea.items.cp.st"),
|
|
230
|
+
icon: ITruck,
|
|
231
|
+
to: `https://tnved.${mode}.kz` + PAGES.fea.cp
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
title: t("header.products.fea.items.ca.t"),
|
|
235
|
+
subtitle: t("header.products.fea.items.ca.st"),
|
|
236
|
+
icon: ICalculator,
|
|
237
|
+
to: `https://tnved.${mode}.kz` + PAGES.fea.ca
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
title: t("header.products.fea.items.tr.t"),
|
|
241
|
+
subtitle: t("header.products.fea.items.tr.st"),
|
|
242
|
+
icon: IGlobe,
|
|
243
|
+
to: `https://tnved.${mode}.kz` + PAGES.fea.tr
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
key: "compliance",
|
|
249
|
+
name: t("header.products.compliance.label"),
|
|
250
|
+
icon: IId,
|
|
251
|
+
items: [
|
|
252
|
+
{
|
|
253
|
+
title: t("header.products.compliance.items.l.t"),
|
|
254
|
+
subtitle: t("header.products.compliance.items.l.st"),
|
|
255
|
+
icon: IProfile,
|
|
256
|
+
to: `https://ac.${mode}.kz/compliance`
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
];
|
|
261
|
+
function isCurrentModule(currentModule) {
|
|
262
|
+
if (currentModule === "fines") return "avto";
|
|
263
|
+
if (currentModule === "analytics") return "analytics-new";
|
|
264
|
+
if (currentModule === "compliance") return "ac";
|
|
265
|
+
if (currentModule === "fea") return "tnved";
|
|
266
|
+
return currentModule;
|
|
267
|
+
}
|
|
268
|
+
</script>
|
|
269
|
+
|
|
270
|
+
<template>
|
|
271
|
+
<div class="capitalize">
|
|
272
|
+
<div class="relative bg-white dark:bg-gray-950">
|
|
273
|
+
<transition :name="animation">
|
|
274
|
+
<div
|
|
275
|
+
:key="index"
|
|
276
|
+
class="a-container py-8"
|
|
277
|
+
>
|
|
278
|
+
<div class="flex justify-between gap-5">
|
|
279
|
+
<div class="flex gap-[10px] divide-x divide-gray-500/50">
|
|
280
|
+
<div class="flex flex-col gap-5 w-[290px]">
|
|
281
|
+
<nav-list
|
|
282
|
+
v-for="module in filteredItems.slice(0, 2)"
|
|
283
|
+
:id="module.key"
|
|
284
|
+
:key="module.key"
|
|
285
|
+
:current-module="pageUrl.hostname.startsWith(isCurrentModule(module.key))"
|
|
286
|
+
:title="module.name"
|
|
287
|
+
:nav-list="module.items"
|
|
288
|
+
:to="module.to"
|
|
289
|
+
:icon="module.icon"
|
|
290
|
+
/>
|
|
291
|
+
</div>
|
|
292
|
+
<div class="flex flex-col gap-5 w-[290px] pl-[10px]">
|
|
293
|
+
<nav-list
|
|
294
|
+
v-for="module in filteredItems.slice(2, 5)"
|
|
295
|
+
:id="module.key"
|
|
296
|
+
:key="module.key"
|
|
297
|
+
:current-module="pageUrl.hostname.startsWith(isCurrentModule(module.key))"
|
|
298
|
+
:title="module.name"
|
|
299
|
+
:nav-list="module.items"
|
|
300
|
+
:to="module.to"
|
|
301
|
+
:icon="module.icon"
|
|
302
|
+
/>
|
|
303
|
+
</div>
|
|
304
|
+
<div class="flex flex-col gap-5 w-[330px] pl-[10px]">
|
|
305
|
+
<nav-list
|
|
306
|
+
v-for="module in filteredItems.slice(5, 8)"
|
|
307
|
+
:id="module.key"
|
|
308
|
+
:key="module.key"
|
|
309
|
+
:current-module="pageUrl.hostname.startsWith(isCurrentModule(module.key))"
|
|
310
|
+
:title="module.name"
|
|
311
|
+
:nav-list="module.items"
|
|
312
|
+
:to="module.to"
|
|
313
|
+
:icon="module.icon"
|
|
314
|
+
badge
|
|
315
|
+
/>
|
|
316
|
+
</div>
|
|
317
|
+
</div>
|
|
318
|
+
<card-gallery class="hidden xl:block" />
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
</transition>
|
|
322
|
+
<button
|
|
323
|
+
class="absolute right-8 top-4"
|
|
324
|
+
@click="$emit('outerClick')"
|
|
325
|
+
>
|
|
326
|
+
<i-x-mark
|
|
327
|
+
width="32"
|
|
328
|
+
height="32"
|
|
329
|
+
/>
|
|
330
|
+
</button>
|
|
331
|
+
</div>
|
|
332
|
+
</div>
|
|
333
|
+
</template>
|
|
334
|
+
|
|
335
|
+
<style scoped>
|
|
336
|
+
.next-enter-from,
|
|
337
|
+
.next-leave-to {
|
|
338
|
+
opacity: 0;
|
|
339
|
+
transform: translateX(30%);
|
|
340
|
+
position: absolute;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.next-enter-active {
|
|
344
|
+
transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.next-leave-active {
|
|
348
|
+
transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
349
|
+
opacity: 0;
|
|
350
|
+
transform: translateX(-30%);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.prev-enter-from,
|
|
354
|
+
.prev-leave-to {
|
|
355
|
+
position: absolute;
|
|
356
|
+
opacity: 0;
|
|
357
|
+
transform: translateX(-30%);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.prev-enter-active {
|
|
361
|
+
transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.prev-leave-active {
|
|
365
|
+
transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
366
|
+
opacity: 0;
|
|
367
|
+
transform: translateX(30%);
|
|
368
|
+
}
|
|
369
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
animation?: string;
|
|
3
|
+
index?: number;
|
|
4
|
+
url?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
7
|
+
index: number;
|
|
8
|
+
animation: string;
|
|
9
|
+
url: string;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|