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,16 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useI18n } from "#imports";
|
|
3
|
+
const emits = defineEmits(["pushMain"]);
|
|
4
|
+
const { t } = useI18n();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<nuxt-link
|
|
9
|
+
to="/"
|
|
10
|
+
class="flex items-center gap-4 px-4 py-3 bg-gray-50 rounded-md dark:bg-gray-800"
|
|
11
|
+
@click="emits('pushMain')"
|
|
12
|
+
>
|
|
13
|
+
<i-menu />
|
|
14
|
+
{{ t("modals.mobile_navigation.return_button") }}
|
|
15
|
+
</nuxt-link>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { PAGES } from "../../shared/constants/pages";
|
|
3
|
+
import {
|
|
4
|
+
IArrowCircleDown,
|
|
5
|
+
IArrowGraphUp,
|
|
6
|
+
IAvtoCar,
|
|
7
|
+
IAvtoTruck,
|
|
8
|
+
IBlock,
|
|
9
|
+
ICalculator,
|
|
10
|
+
ICheckCircle,
|
|
11
|
+
ICompany,
|
|
12
|
+
ICurrencyDollar,
|
|
13
|
+
IDocumentProfile,
|
|
14
|
+
IFile,
|
|
15
|
+
IFileFiles,
|
|
16
|
+
IGlobe,
|
|
17
|
+
ILinkChain,
|
|
18
|
+
IMedal,
|
|
19
|
+
IReceipt,
|
|
20
|
+
IScale,
|
|
21
|
+
ISearch,
|
|
22
|
+
ISviazi,
|
|
23
|
+
IUsers,
|
|
24
|
+
IWorkBag
|
|
25
|
+
} from "#components";
|
|
26
|
+
import { ref, useI18n, useAppConfig, watch } from "#imports";
|
|
27
|
+
import { useCurrentModule } from "../../composables/projectState";
|
|
28
|
+
const tab = ref(useCurrentModule().value);
|
|
29
|
+
const { t } = useI18n();
|
|
30
|
+
const appConfig = useAppConfig();
|
|
31
|
+
const mode = appConfig.adataUI.mode;
|
|
32
|
+
const tabOptions = [
|
|
33
|
+
{
|
|
34
|
+
name: "header.products.counterparties.label",
|
|
35
|
+
key: "pk"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "header.products.jobs.label",
|
|
39
|
+
key: "work"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "header.products.tenders.label",
|
|
43
|
+
key: "tenders"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "header.products.fines.label",
|
|
47
|
+
key: "fines"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "header.products.analytics.label",
|
|
51
|
+
key: "analytics"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "header.products.fea.label",
|
|
55
|
+
key: "fea"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "header.products.compliance.label",
|
|
59
|
+
key: "compliance"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "header.products.edo.label",
|
|
63
|
+
key: "edo"
|
|
64
|
+
}
|
|
65
|
+
];
|
|
66
|
+
const sideLinks = {
|
|
67
|
+
pk: [
|
|
68
|
+
{
|
|
69
|
+
icon: ISearch,
|
|
70
|
+
label: "header.products.counterparties.items.counterparty.title",
|
|
71
|
+
link: `https://pk.${mode}.kz` + PAGES.pk.main
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
icon: IScale,
|
|
75
|
+
label: "header.products.counterparties.items.compare.title",
|
|
76
|
+
link: `https://pk.${mode}.kz` + PAGES.pk.compare
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
icon: ILinkChain,
|
|
80
|
+
label: "header.products.counterparties.items.networks.title",
|
|
81
|
+
link: `https://pk.${mode}.kz` + PAGES.pk.connections
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
icon: IUsers,
|
|
85
|
+
label: "header.products.counterparties.items.wholesale.title",
|
|
86
|
+
link: `https://avto.${mode}.kz` + PAGES.fines.bulk
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
icon: IGlobe,
|
|
90
|
+
label: "header.products.counterparties.items.foreign.title",
|
|
91
|
+
link: `https://pk.${mode}.kz` + PAGES.pk.foreign
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
icon: IBlock,
|
|
95
|
+
label: "header.products.counterparties.items.sanction.title",
|
|
96
|
+
link: `https://pk.${mode}.kz` + PAGES.pk.sanctions
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
icon: ICurrencyDollar,
|
|
100
|
+
label: "header.products.counterparties.items.offshore.title",
|
|
101
|
+
link: `https://pk.${mode}.kz` + PAGES.pk.offshore
|
|
102
|
+
},
|
|
103
|
+
// {
|
|
104
|
+
// icon: IconDocument,
|
|
105
|
+
// label: "Экспресс проверка",
|
|
106
|
+
// link: "#"
|
|
107
|
+
// },
|
|
108
|
+
{
|
|
109
|
+
icon: IArrowCircleDown,
|
|
110
|
+
label: "header.products.counterparties.items.unloading.title",
|
|
111
|
+
link: `https://pk.${mode}.kz` + PAGES.pk.unload
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
work: [
|
|
115
|
+
{
|
|
116
|
+
icon: IWorkBag,
|
|
117
|
+
label: "header.products.jobs.items.vacancies.title",
|
|
118
|
+
link: `https://work.${mode}.kz` + PAGES.work.vacancy
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
icon: IDocumentProfile,
|
|
122
|
+
label: "header.products.jobs.items.resume.title",
|
|
123
|
+
link: `https://work.${mode}.kz` + PAGES.work.summary
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
tenders: [
|
|
127
|
+
{
|
|
128
|
+
icon: ISearch,
|
|
129
|
+
label: "header.products.tenders.items.tenders.title",
|
|
130
|
+
link: `https://tender.${mode}.kz` + PAGES.tender.main
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
icon: IFile,
|
|
134
|
+
label: "header.products.tenders.items.contracts.title",
|
|
135
|
+
link: `https://tender.${mode}.kz` + PAGES.tender.contracts
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
icon: IReceipt,
|
|
139
|
+
label: "header.products.tenders.items.procurement.title",
|
|
140
|
+
link: `https://tender.${mode}.kz` + PAGES.tender.plans
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
fines: [
|
|
144
|
+
{
|
|
145
|
+
icon: ICheckCircle,
|
|
146
|
+
label: "header.products.fines.items.fines.title",
|
|
147
|
+
link: `https://avto.${mode}.kz` + PAGES.fines.main
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
icon: IAvtoCar,
|
|
151
|
+
label: "header.products.fines.items.auto.title",
|
|
152
|
+
link: `https://avto.${mode}.kz` + PAGES.fines.avto
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
icon: IAvtoTruck,
|
|
156
|
+
label: "header.products.fines.items.wholesaleAuto.title",
|
|
157
|
+
link: `https://avto.${mode}.kz` + PAGES.fines.bulk
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
analytics: [
|
|
161
|
+
// {
|
|
162
|
+
// icon: IconSearch,
|
|
163
|
+
// label: 'header.products.analytics.items.clients.title',
|
|
164
|
+
// link: myLayer.analyticsUrl + PAGES.analytics.clients
|
|
165
|
+
// },
|
|
166
|
+
{
|
|
167
|
+
icon: IReceipt,
|
|
168
|
+
label: "header.products.analytics.items.procurement.title",
|
|
169
|
+
link: `https://analytics-new.${mode}.kz` + PAGES.analytics.main
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
icon: IArrowGraphUp,
|
|
173
|
+
label: "header.products.analytics.items.activity.title",
|
|
174
|
+
link: `https://analytics-new.${mode}.kz` + PAGES.analytics.index
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
icon: ICompany,
|
|
178
|
+
label: "header.products.analytics.items.subjects.title",
|
|
179
|
+
link: `https://analytics-new.${mode}.kz` + PAGES.analytics.business
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
icon: IMedal,
|
|
183
|
+
label: "header.products.analytics.items.rate.title",
|
|
184
|
+
link: `https://analytics-new.${mode}.kz` + PAGES.analytics.rating
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
fea: [
|
|
188
|
+
{
|
|
189
|
+
label: "header.products.fea.items.i.t",
|
|
190
|
+
icon: ISearch,
|
|
191
|
+
link: `https://tnved.${mode}.kz` + PAGES.fea.t
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
label: "header.products.fea.items.o.t",
|
|
195
|
+
icon: ISviazi,
|
|
196
|
+
link: `https://tnved.${mode}.kz` + PAGES.fea.o
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: "header.products.fea.items.cp.t",
|
|
200
|
+
icon: IFile,
|
|
201
|
+
link: `https://tnved.${mode}.kz` + PAGES.fea.cp
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
label: "header.products.fea.items.ca.t",
|
|
205
|
+
icon: ICalculator,
|
|
206
|
+
link: `https://tnved.${mode}.kz` + PAGES.fea.ca
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
label: "header.products.fea.items.tr.t",
|
|
210
|
+
icon: IGlobe,
|
|
211
|
+
link: `https://tnved.${mode}.kz` + PAGES.fea.tr
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
compliance: [
|
|
215
|
+
{
|
|
216
|
+
label: "header.products.compliance.label",
|
|
217
|
+
icon: IDocumentProfile,
|
|
218
|
+
link: `https://ac.${mode}.kz/compliance`
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
edo: [
|
|
222
|
+
{
|
|
223
|
+
label: "header.products.edo.label",
|
|
224
|
+
icon: IFileFiles,
|
|
225
|
+
link: `https://edo.${mode}.kz`
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
};
|
|
229
|
+
const currentLinks = ref(sideLinks[tab.value]);
|
|
230
|
+
watch(tab, (e) => {
|
|
231
|
+
if (e) {
|
|
232
|
+
currentLinks.value = sideLinks[e];
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
</script>
|
|
236
|
+
|
|
237
|
+
<template>
|
|
238
|
+
<div class="flex flex-col gap-5">
|
|
239
|
+
<div class="h-[1px] w-full bg-deepblue-900/5 dark:bg-gray-200/5"/>
|
|
240
|
+
<div>
|
|
241
|
+
<adt-pill-tabs v-model="tab" :options="tabOptions" view="gray" />
|
|
242
|
+
</div>
|
|
243
|
+
<div class="h-[40vh] sm:h-[300px] overflow-auto no-scrollbar">
|
|
244
|
+
<nuxt-link
|
|
245
|
+
v-for="item in currentLinks"
|
|
246
|
+
:key="item.label"
|
|
247
|
+
:to="item.link"
|
|
248
|
+
class="flex items-center gap-4 px-4 py-3 bg-gray-50 dark:bg-gray-800 mb-2 rounded"
|
|
249
|
+
>
|
|
250
|
+
<div class="bg-gradient-blue p-1 rounded-lg">
|
|
251
|
+
<component
|
|
252
|
+
:is="item.icon"
|
|
253
|
+
class="size-5 text-white dark:text-gray-900"
|
|
254
|
+
/>
|
|
255
|
+
</div>
|
|
256
|
+
<span>{{ t(item.label) }}</span>
|
|
257
|
+
</nuxt-link>
|
|
258
|
+
</div>
|
|
259
|
+
<div class="h-[1px] w-full bg-deepblue-900/5 dark:bg-gray-200/5"/>
|
|
260
|
+
</div>
|
|
261
|
+
</template>
|
|
@@ -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,58 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import AButton from "../button/Button.vue";
|
|
3
|
+
import { useAppConfig, useI18n } from "#imports";
|
|
4
|
+
import { navigateTo } from "#app";
|
|
5
|
+
import { useLocalePath } from "#i18n";
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
redirectPath: { type: String, required: true }
|
|
8
|
+
});
|
|
9
|
+
const emit = defineEmits(["close"]);
|
|
10
|
+
const { t } = useI18n();
|
|
11
|
+
const appConfig = useAppConfig();
|
|
12
|
+
const mode = appConfig.adataUI.mode;
|
|
13
|
+
const localePath = useLocalePath();
|
|
14
|
+
function logIn() {
|
|
15
|
+
const fullPath = encodeURIComponent(window.location.toString());
|
|
16
|
+
return navigateTo(localePath(`https://id.${mode}.kz/?url=${fullPath}${props.redirectPath}`), { external: true });
|
|
17
|
+
}
|
|
18
|
+
function register() {
|
|
19
|
+
return navigateTo(localePath(`https://id.${mode}.kz/register`), { external: true });
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<div class="flex flex-col justify-center items-center gap-5">
|
|
25
|
+
<h1 class="font-bold text-2xl text-center">
|
|
26
|
+
{{ t("modals.auth.title") }}
|
|
27
|
+
</h1>
|
|
28
|
+
<i-modals-door class="size-30" />
|
|
29
|
+
<p class="text-sm text-center">
|
|
30
|
+
{{ t("modals.auth.content") }}
|
|
31
|
+
</p>
|
|
32
|
+
<a-button
|
|
33
|
+
variant="success"
|
|
34
|
+
class="w-full font-semibold"
|
|
35
|
+
@click="logIn"
|
|
36
|
+
>
|
|
37
|
+
{{ t("modals.buttons.logIn") }}
|
|
38
|
+
</a-button>
|
|
39
|
+
<p class="text-sm text-center">
|
|
40
|
+
{{ t("modals.auth.firstTime") }}
|
|
41
|
+
</p>
|
|
42
|
+
<div class="flex gap-2 items-center w-full">
|
|
43
|
+
<a-button
|
|
44
|
+
view="outline"
|
|
45
|
+
class="w-full font-semibold"
|
|
46
|
+
@click="emit('close')"
|
|
47
|
+
>
|
|
48
|
+
{{ t("modals.buttons.close") }}
|
|
49
|
+
</a-button>
|
|
50
|
+
<a-button
|
|
51
|
+
class="w-full font-semibold"
|
|
52
|
+
@click="register"
|
|
53
|
+
>
|
|
54
|
+
{{ t("modals.buttons.register") }}
|
|
55
|
+
</a-button>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
redirectPath: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import ADigitBadge from "../DigitBadge.vue";
|
|
3
|
+
import AButton from "../button/Button.vue";
|
|
4
|
+
import { ref, onMounted } from "#imports";
|
|
5
|
+
import { useI18n } from "#i18n";
|
|
6
|
+
defineOptions({ name: "APillTabs" });
|
|
7
|
+
const emit = defineEmits(["selectOption", "prevent"]);
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
options: { type: Array, required: true },
|
|
10
|
+
view: { type: String, required: false, default: "main" },
|
|
11
|
+
size: { type: String, required: false, default: "sm" },
|
|
12
|
+
badgeSize: { type: String, required: false, default: "lg" },
|
|
13
|
+
align: { type: String, required: false, default: "center" },
|
|
14
|
+
block: { type: Boolean, required: false, default: false },
|
|
15
|
+
wrapper: { type: String, required: false, default: "row" },
|
|
16
|
+
countView: { type: String, required: false, default: "badge" },
|
|
17
|
+
disabled: { type: Boolean, required: false }
|
|
18
|
+
});
|
|
19
|
+
const tabs = ref(null);
|
|
20
|
+
const activeTab = defineModel({ type: null, ...{ default: 1 } });
|
|
21
|
+
const { t } = useI18n();
|
|
22
|
+
const viewTypeValues = {
|
|
23
|
+
main: {
|
|
24
|
+
default: "text-deepblue-900 bg-deepblue-900/5 hover:bg-deepblue-900/10 dark:bg-gray-200/5 dark:text-gray-200 dark:hover:bg-gray-800 ",
|
|
25
|
+
selected: "bg-blue-700 font-semibold text-white dark:text-gray-900 dark:bg-blue-500"
|
|
26
|
+
},
|
|
27
|
+
transparent: {
|
|
28
|
+
default: "text-deepblue-900 bg-transparent hover:bg-deepblue-100",
|
|
29
|
+
selected: "font-semibold bg-white text-deepblue-900 "
|
|
30
|
+
},
|
|
31
|
+
gray: {
|
|
32
|
+
default: "bg-deepblue-900/5 hover:bg-deepblue-900/20 dark:bg-gray-50/10 dark:hover:bg-gray-50/20 dark:text-gray-50",
|
|
33
|
+
selected: "text-white bg-deepblue-900 dark:bg-gray-50 dark:text-gray-900"
|
|
34
|
+
},
|
|
35
|
+
blue: {
|
|
36
|
+
default: "text-deepblue-900 bg-white font-semibold leading-5 dark:bg-gray-900 dark:text-gray-200 dark:hover:bg-gray-800 hover:bg-deepblue-100 ",
|
|
37
|
+
selected: "bg-blue-700 font-semibold leading-5 text-white dark:text-gray-900 dark:bg-blue-500"
|
|
38
|
+
},
|
|
39
|
+
mobile: {
|
|
40
|
+
default: "bg-white dark:text-gray-200 font-semibold dark:bg-gray-900 dark:hover:bg-gray-500 hover:bg-deepblue-100 ",
|
|
41
|
+
selected: "text-white dark:text-gray-900 font-semibold dark:bg-white bg-deepblue-900"
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const defaultClasses = (isDisabled) => [
|
|
45
|
+
"text-sm rounded-md outline-none select-none focus-visible:shadow-[0_0_0_4px#1B64B3]",
|
|
46
|
+
isDisabled ? "bg-deepblue-900/5 dark:bg-gray-200/5 text-gray-500 dark:text-gray-500" : "",
|
|
47
|
+
props.view === "transparent" && isDisabled ? "bg-transparent" : "",
|
|
48
|
+
viewTypeValues[props.view]["default"],
|
|
49
|
+
props.block ? "w-full" : ""
|
|
50
|
+
];
|
|
51
|
+
const selectedClasses = () => [
|
|
52
|
+
"text-sm rounded-md select-none focus-visible:shadow-[0_0_0_4px#1B64B3]",
|
|
53
|
+
viewTypeValues[props.view]["selected"],
|
|
54
|
+
props.block ? "w-full" : ""
|
|
55
|
+
];
|
|
56
|
+
const sizeOptions = {
|
|
57
|
+
lg: "px-4 py-2.5",
|
|
58
|
+
sm: "px-4 py-[7.5px]",
|
|
59
|
+
ss: "px-3 py-1.5",
|
|
60
|
+
xs: "px-3 py-[4px]"
|
|
61
|
+
};
|
|
62
|
+
const onChanged = (option, event) => {
|
|
63
|
+
if (option.prevent) {
|
|
64
|
+
emit("prevent", option);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
activeTab.value = option.key;
|
|
68
|
+
emit("selectOption", option);
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
event.currentTarget.scrollIntoView({
|
|
71
|
+
behavior: "smooth",
|
|
72
|
+
inline: "start",
|
|
73
|
+
block: "nearest"
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
onMounted(() => {
|
|
77
|
+
const isDesktop = window.matchMedia("(min-width: 1024px)").matches;
|
|
78
|
+
if (tabs.value && !isDesktop) {
|
|
79
|
+
const activeTab2 = tabs.value.querySelector('[data-active="true"]');
|
|
80
|
+
if (activeTab2) {
|
|
81
|
+
activeTab2.scrollIntoView({
|
|
82
|
+
inline: "start",
|
|
83
|
+
block: "nearest"
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
</script>
|
|
89
|
+
|
|
90
|
+
<template>
|
|
91
|
+
<div
|
|
92
|
+
ref="tabs"
|
|
93
|
+
class="scroll-container overflow-auto whitespace-nowrap"
|
|
94
|
+
:class="props.wrapper === 'row' ? 'flex gap-1' : 'flex flex-col gap-1'"
|
|
95
|
+
>
|
|
96
|
+
<button
|
|
97
|
+
v-for="option in options"
|
|
98
|
+
:key="option.key"
|
|
99
|
+
:disabled="option.disabled || disabled"
|
|
100
|
+
:data-active="activeTab === option.key"
|
|
101
|
+
:class="[
|
|
102
|
+
activeTab === option.key ? selectedClasses() : defaultClasses(!!option.disabled),
|
|
103
|
+
sizeOptions[size]
|
|
104
|
+
]"
|
|
105
|
+
@click="onChanged(option, $event)"
|
|
106
|
+
>
|
|
107
|
+
<slot
|
|
108
|
+
name="option"
|
|
109
|
+
:option="option"
|
|
110
|
+
>
|
|
111
|
+
<span
|
|
112
|
+
class="flex items-center gap-1 whitespace-nowrap"
|
|
113
|
+
:class="[align === 'left' ? 'justify-start' : 'justify-center']"
|
|
114
|
+
>
|
|
115
|
+
<span>
|
|
116
|
+
{{ t(option.name) }}
|
|
117
|
+
</span>
|
|
118
|
+
<template v-if="option.count !== void 0">
|
|
119
|
+
<a-digit-badge
|
|
120
|
+
v-if="props.countView === 'badge'"
|
|
121
|
+
:value="option.count"
|
|
122
|
+
:type="option.badgeColor ? option.badgeColor : 'primary'"
|
|
123
|
+
:disabled="(option.disabled || option.count === 0) && activeTab !== option.key"
|
|
124
|
+
:view="activeTab === option.key ? 'inverted' : 'default'"
|
|
125
|
+
:size="badgeSize"
|
|
126
|
+
/>
|
|
127
|
+
<span v-else-if="props.countView === 'brackets'"> ({{ option.count }}) </span>
|
|
128
|
+
</template>
|
|
129
|
+
</span>
|
|
130
|
+
</slot>
|
|
131
|
+
</button>
|
|
132
|
+
</div>
|
|
133
|
+
</template>
|
|
134
|
+
|
|
135
|
+
<style scoped>
|
|
136
|
+
.scroll-container::-webkit-scrollbar{display:none}
|
|
137
|
+
</style>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Tab } from './types.js';
|
|
2
|
+
interface Props {
|
|
3
|
+
options: Tab[];
|
|
4
|
+
view?: 'transparent' | 'main' | 'gray' | 'blue' | 'mobile';
|
|
5
|
+
size?: 'lg' | 'sm' | 'xs';
|
|
6
|
+
badgeSize?: 'sm' | 'md' | 'lg';
|
|
7
|
+
align?: 'left' | 'center';
|
|
8
|
+
block?: boolean;
|
|
9
|
+
wrapper?: 'column' | 'row';
|
|
10
|
+
countView?: 'badge' | 'brackets';
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = Props;
|
|
14
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
15
|
+
modelValue?: any;
|
|
16
|
+
};
|
|
17
|
+
declare var __VLS_1: {
|
|
18
|
+
option: any;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
option?: (props: typeof __VLS_1) => any;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
|
|
24
|
+
size: "lg" | "sm" | "xs";
|
|
25
|
+
view: "transparent" | "main" | "gray" | "blue" | "mobile";
|
|
26
|
+
block: boolean;
|
|
27
|
+
align: "left" | "center";
|
|
28
|
+
badgeSize: "sm" | "md" | "lg";
|
|
29
|
+
wrapper: "column" | "row";
|
|
30
|
+
countView: "badge" | "brackets";
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type StateType = {
|
|
2
|
+
[key in 'default' | 'selected']: string;
|
|
3
|
+
};
|
|
4
|
+
export type ViewType = {
|
|
5
|
+
transparent: StateType;
|
|
6
|
+
main: StateType;
|
|
7
|
+
gray: StateType;
|
|
8
|
+
blue: StateType;
|
|
9
|
+
mobile: StateType;
|
|
10
|
+
};
|
|
11
|
+
export interface Tab {
|
|
12
|
+
name: string;
|
|
13
|
+
key: string | number;
|
|
14
|
+
count?: number;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
prevent?: boolean;
|
|
17
|
+
badgeColor?: 'primary' | 'success' | 'danger' | 'gray' | 'orange' | 'warning';
|
|
18
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, useId } from "vue";
|
|
3
|
+
import RadioCheck from "#icons/radio/radio-check.vue";
|
|
4
|
+
import RadioEmpty from "#icons/radio/radio-empty.vue";
|
|
5
|
+
defineOptions({ name: "ARadioButton" });
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
inputId: { type: null, required: false },
|
|
8
|
+
size: { type: String, required: false, default: "sm" },
|
|
9
|
+
name: { type: String, required: false, default: "check" },
|
|
10
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
11
|
+
side: { type: String, required: false, default: "left" },
|
|
12
|
+
value: { type: [String, Number, Boolean], required: true },
|
|
13
|
+
permanent: { type: Boolean, required: false, default: false }
|
|
14
|
+
});
|
|
15
|
+
const emit = defineEmits(["change"]);
|
|
16
|
+
const model = defineModel({ type: [String, Number, Boolean, null], skipCheck: true });
|
|
17
|
+
const id = props.inputId ?? useId();
|
|
18
|
+
const currentComponent = computed(() => {
|
|
19
|
+
return model.value === props.value ? RadioCheck : RadioEmpty;
|
|
20
|
+
});
|
|
21
|
+
function update() {
|
|
22
|
+
model.value = props.value;
|
|
23
|
+
emit("change");
|
|
24
|
+
}
|
|
25
|
+
const sizeOptions = {
|
|
26
|
+
lg: "min-w-6 min-h-6 max-w-6 max-h-6",
|
|
27
|
+
sm: "min-w-4 min-h-4 max-w-4 max-h-4"
|
|
28
|
+
};
|
|
29
|
+
const textSizeOptions = {
|
|
30
|
+
lg: "text-sm gap-2",
|
|
31
|
+
sm: "text-xs gap-2"
|
|
32
|
+
};
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<template>
|
|
36
|
+
<div
|
|
37
|
+
class="flex items-center"
|
|
38
|
+
:class="[disabled ? 'opacity-20' : '']"
|
|
39
|
+
>
|
|
40
|
+
<input
|
|
41
|
+
:id="id"
|
|
42
|
+
:name="name"
|
|
43
|
+
type="radio"
|
|
44
|
+
class="hidden"
|
|
45
|
+
:checked="model === value"
|
|
46
|
+
:disabled="disabled"
|
|
47
|
+
@change="update"
|
|
48
|
+
>
|
|
49
|
+
<label
|
|
50
|
+
:for="id"
|
|
51
|
+
class="flex items-center text-deepblue-900 dark:text-gray-200 cursor-pointer w-full whitespace-nowrap"
|
|
52
|
+
:class="[textSizeOptions[size]]"
|
|
53
|
+
>
|
|
54
|
+
<span
|
|
55
|
+
v-if="side === 'left'"
|
|
56
|
+
class="select-none w-full"
|
|
57
|
+
><slot /></span>
|
|
58
|
+
<component
|
|
59
|
+
:is="currentComponent"
|
|
60
|
+
class="text-deepblue-900 dark:text-gray-200 w-full"
|
|
61
|
+
:class="[sizeOptions[size]]"
|
|
62
|
+
/>
|
|
63
|
+
<span
|
|
64
|
+
v-if="side === 'right'"
|
|
65
|
+
class="select-none w-full"
|
|
66
|
+
><slot /></span>
|
|
67
|
+
</label>
|
|
68
|
+
</div>
|
|
69
|
+
</template>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
inputId?: any;
|
|
3
|
+
size?: 'lg' | 'sm';
|
|
4
|
+
name?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
side?: 'right' | 'left';
|
|
7
|
+
value: string | number | boolean;
|
|
8
|
+
permanent?: boolean;
|
|
9
|
+
}
|
|
10
|
+
type __VLS_Props = Props;
|
|
11
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
12
|
+
modelValue?: string | number | boolean | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
declare var __VLS_1: {}, __VLS_7: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
default?: (props: typeof __VLS_1) => any;
|
|
17
|
+
} & {
|
|
18
|
+
default?: (props: typeof __VLS_7) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: string | number | boolean | null | undefined) => any;
|
|
22
|
+
} & {
|
|
23
|
+
change: () => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
|
+
onChange?: (() => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | null | undefined) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
name: string;
|
|
29
|
+
size: "lg" | "sm";
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
side: "right" | "left";
|
|
32
|
+
permanent: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|