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,104 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useRoute } from "vue-router";
|
|
3
|
+
import AIconMagnifyingGlass from "../icons/other-service/magnifying-glass.vue";
|
|
4
|
+
import AIconUsersThree from "../icons/other-service/users-three.vue";
|
|
5
|
+
import AIconLink from "../icons/other-service/link.vue";
|
|
6
|
+
import AIconGlobe from "../icons/other-service/globe.vue";
|
|
7
|
+
import AIconArrowSquareDown from "../icons/other-service/arrow-square-down.vue";
|
|
8
|
+
import AIconCurrencyDollar from "../icons/other-service/currency-dollar.vue";
|
|
9
|
+
import AIconBlock from "../icons/other-service/block.vue";
|
|
10
|
+
import AIconStandingScales from "../icons/other-service/standing-scales.vue";
|
|
11
|
+
import AIconArrowTopRightOnSquare from "../icons/other-service/arrow-top-right-on-square.vue";
|
|
12
|
+
import { PAGES } from "../shared/constants/pages";
|
|
13
|
+
import { useAppConfig } from "#imports";
|
|
14
|
+
import { useLocalePath, useI18n } from "#i18n";
|
|
15
|
+
import { navigateTo } from "#app";
|
|
16
|
+
const { tm, rt, t } = useI18n();
|
|
17
|
+
const route = useRoute();
|
|
18
|
+
const localePath = useLocalePath();
|
|
19
|
+
const appConfig = useAppConfig();
|
|
20
|
+
const mode = appConfig.adataUI.mode;
|
|
21
|
+
const afterClasses = 'after:content-[""] after:w-full after:h-[0.5px] after:bottom-[-10px] after:left-0 after:absolute after:bg-gray-500/50';
|
|
22
|
+
const iconById = [AIconMagnifyingGlass, AIconUsersThree, AIconLink, AIconGlobe, AIconArrowSquareDown, AIconCurrencyDollar, AIconBlock, AIconStandingScales, AIconArrowTopRightOnSquare];
|
|
23
|
+
const linkByIndex = [
|
|
24
|
+
`https://pk.${mode}.kz` + PAGES.pk.main,
|
|
25
|
+
`https://pk.${mode}.kz` + PAGES.pk.employees,
|
|
26
|
+
`https://pk.${mode}.kz` + PAGES.pk.connections,
|
|
27
|
+
`https://pk.${mode}.kz` + PAGES.pk.foreign,
|
|
28
|
+
`https://pk.${mode}.kz` + PAGES.pk.unload,
|
|
29
|
+
`https://pk.${mode}.kz` + PAGES.pk.offshore,
|
|
30
|
+
`https://pk.${mode}.kz` + PAGES.pk.sanctions,
|
|
31
|
+
`https://pk.${mode}.kz` + PAGES.pk.compare,
|
|
32
|
+
`https://${mode}.kz/all-services`
|
|
33
|
+
];
|
|
34
|
+
async function handleClick(link) {
|
|
35
|
+
console.log(link);
|
|
36
|
+
if (link.includes("all-services")) {
|
|
37
|
+
return navigateTo(localePath(link), {
|
|
38
|
+
open: {
|
|
39
|
+
target: "_blank"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
} else {
|
|
43
|
+
await navigateTo(link, {
|
|
44
|
+
open: {
|
|
45
|
+
target: "_blank"
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<template>
|
|
53
|
+
<section class="a-container mb-10 flex flex-col gap-4 lg:mb-20 lg:gap-8">
|
|
54
|
+
<h2 class="heading-02 md:heading-01 px-4 md:px-0 lg:text-4xl text-2xl lg:text-left text-center font-bold">
|
|
55
|
+
{{ t("restTasks.title") }}
|
|
56
|
+
</h2>
|
|
57
|
+
<ul class="grid grid-cols-1 gap-3 px-4 sm:grid-cols-2 lg:grid-cols-3 md:px-0">
|
|
58
|
+
<li
|
|
59
|
+
v-for="(tab, idx) in tm('restTasks.tabTitleList') || []"
|
|
60
|
+
:key="idx"
|
|
61
|
+
:class="{ 'sm:col-span-2 md:col-span-1': idx === 8 }"
|
|
62
|
+
>
|
|
63
|
+
<div
|
|
64
|
+
:class="[
|
|
65
|
+
{ afterClasses: idx !== 8 },
|
|
66
|
+
{
|
|
67
|
+
'flex size-full items-center justify-center text-blue-700 dark:text-blue-500': idx === 8,
|
|
68
|
+
'bg-white dark:bg-gray-900': route.path === localePath(linkByIndex[idx])
|
|
69
|
+
}
|
|
70
|
+
]"
|
|
71
|
+
class="relative flex cursor-pointer items-center gap-4 rounded-md p-5 transition hover:bg-white dark:hover:bg-gray-200/5"
|
|
72
|
+
@click="() => handleClick(linkByIndex[idx])"
|
|
73
|
+
>
|
|
74
|
+
<div class="flex items-center gap-4">
|
|
75
|
+
<component
|
|
76
|
+
:is="iconById[idx]"
|
|
77
|
+
v-if="idx < 8"
|
|
78
|
+
width="40"
|
|
79
|
+
height="40"
|
|
80
|
+
class="w-[40px] shrink-0 text-blue-700 dark:text-blue-500"
|
|
81
|
+
/>
|
|
82
|
+
<div class="flex flex-col gap-4">
|
|
83
|
+
<h3
|
|
84
|
+
class="size-full text-[20px] font-semibold leading-6"
|
|
85
|
+
>
|
|
86
|
+
{{ rt(tab.title) }}
|
|
87
|
+
</h3>
|
|
88
|
+
<p
|
|
89
|
+
v-if="idx !== 8"
|
|
90
|
+
class="text-sm"
|
|
91
|
+
>
|
|
92
|
+
{{ rt(tab.description) }}
|
|
93
|
+
</p>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
<component
|
|
97
|
+
:is="AIconArrowTopRightOnSquare"
|
|
98
|
+
v-if="idx === 8"
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
</li>
|
|
102
|
+
</ul>
|
|
103
|
+
</section>
|
|
104
|
+
</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,46 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "#imports";
|
|
3
|
+
defineOptions({ name: "AStatusBadge" });
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
type: { type: String, required: false, default: "primary" },
|
|
6
|
+
view: { type: String, required: false, default: "default" },
|
|
7
|
+
size: { type: String, required: false, default: "lg" },
|
|
8
|
+
customClasses: { type: String, required: false, default: "" }
|
|
9
|
+
});
|
|
10
|
+
const classes = computed(() => [
|
|
11
|
+
"text-sm rounded-md select-none inline-flex gap-[5.5px] justify-center items-center",
|
|
12
|
+
typeSwitchValues[props.view][props.type],
|
|
13
|
+
props.size === "xs" ? "px-4 py-[2px] text-xs font-bold" : "",
|
|
14
|
+
props.size === "sm" ? "text-xs font-semibold px-4 py-[2px] h-6" : "",
|
|
15
|
+
props.size === "lg" ? "px-4 py-[7.5px] font-semibold" : ""
|
|
16
|
+
]);
|
|
17
|
+
const typeSwitchValues = {
|
|
18
|
+
default: {
|
|
19
|
+
primary: "bg-blue-700 text-white dark:text-gray-900 dark:bg-blue-500",
|
|
20
|
+
success: "bg-green-500 text-white dark:text-gray-200 dark:bg-green-400",
|
|
21
|
+
danger: "bg-red-500 text-white dark:text-gray-200 ",
|
|
22
|
+
warning: "bg-yellow-400 text-white dark:text-gray-200 ",
|
|
23
|
+
gray: "bg-deepblue-900 text-white dark:text-gray-200 dark:bg-gray-200/10",
|
|
24
|
+
orange: "bg-orange-600 text-white dark:text-gray-200"
|
|
25
|
+
},
|
|
26
|
+
inverted: {
|
|
27
|
+
primary: "bg-blue-700/10 text-blue-700 dark:text-blue-500 dark:bg-[#1EABFF1A]",
|
|
28
|
+
success: "bg-green-500/20 text-green-500 dark:text-green-400 dark:bg-green-400/20",
|
|
29
|
+
danger: "bg-red-500/10 text-red-500 dark:text-red-400 dark:bg-red-400/10",
|
|
30
|
+
warning: "bg-yellow-400/10 text-yellow-400",
|
|
31
|
+
gray: "bg-deepblue-900/10 text-gray-600 dark:text-gray-200 dark:bg-gray-200/10",
|
|
32
|
+
orange: "bg-orange-600/10 text-orange-600"
|
|
33
|
+
},
|
|
34
|
+
transparent: {
|
|
35
|
+
success: "bg-green-500/10 text-green-500 dark:bg-green-400/10 dark:text-green-400",
|
|
36
|
+
danger: "bg-red-500/10 text-red-500 dark:bg-red-400/10 dark:text-red-400"
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<div :class="[[classes], customClasses]">
|
|
43
|
+
<slot name="point" />
|
|
44
|
+
<slot />
|
|
45
|
+
</div>
|
|
46
|
+
</template>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
type?: 'primary' | 'success' | 'danger' | 'gray' | 'orange' | 'warning';
|
|
3
|
+
view?: 'default' | 'inverted' | 'transparent';
|
|
4
|
+
size?: 'xs' | 'sm' | 'lg';
|
|
5
|
+
customClasses?: string;
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
point?: (props: typeof __VLS_1) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: typeof __VLS_3) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
+
size: "xs" | "sm" | "lg";
|
|
15
|
+
type: "primary" | "success" | "danger" | "gray" | "orange" | "warning";
|
|
16
|
+
view: "default" | "inverted" | "transparent";
|
|
17
|
+
customClasses: string;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { SwitchRoot, SwitchThumb } from "reka-ui";
|
|
3
|
+
import { twMerge, twJoin } from "tailwind-merge";
|
|
4
|
+
import { computed } from "#imports";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
7
|
+
size: { type: String, required: false, default: "md" },
|
|
8
|
+
color: { type: String, required: false, default: "blue" },
|
|
9
|
+
switchClass: { type: String, required: false, default: "" },
|
|
10
|
+
activeClass: { type: String, required: false, default: "" },
|
|
11
|
+
inactiveClass: { type: String, required: false, default: "" },
|
|
12
|
+
onIcon: { type: null, required: false, default: null },
|
|
13
|
+
onIconClass: { type: [String, null], required: false, default: null },
|
|
14
|
+
offIcon: { type: null, required: false, default: null },
|
|
15
|
+
offIconClass: { type: [String, null], required: false, default: null },
|
|
16
|
+
activeContainerClass: { type: String, required: false, default: "" },
|
|
17
|
+
inactiveContainerClass: { type: String, required: false, default: "" }
|
|
18
|
+
});
|
|
19
|
+
const active = defineModel({ type: Boolean, ...{ required: true } });
|
|
20
|
+
const switchClass = computed(() => {
|
|
21
|
+
return twMerge(twJoin(
|
|
22
|
+
ui.base,
|
|
23
|
+
ui.size[props.size],
|
|
24
|
+
ui.rounded,
|
|
25
|
+
ui.ring,
|
|
26
|
+
props.disabled ? "opacity-20" : "",
|
|
27
|
+
props.color && (active.value ? ui.active[props.color] : ui.inactive),
|
|
28
|
+
active.value ? props.activeClass : props.inactiveClass
|
|
29
|
+
), props.switchClass);
|
|
30
|
+
});
|
|
31
|
+
const containerClass = computed(() => {
|
|
32
|
+
return twMerge(twJoin(
|
|
33
|
+
ui.container.base,
|
|
34
|
+
ui.container.size[props.size],
|
|
35
|
+
active.value ? ui.container.active[props.size] : ui.container.inactive,
|
|
36
|
+
active.value ? props.activeContainerClass : props.inactiveContainerClass
|
|
37
|
+
));
|
|
38
|
+
});
|
|
39
|
+
const onIconClassFormatted = computed(() => {
|
|
40
|
+
return twMerge(twJoin(
|
|
41
|
+
ui.icon.size[props.size],
|
|
42
|
+
props.onIconClass
|
|
43
|
+
));
|
|
44
|
+
});
|
|
45
|
+
const offIconClassFormatted = computed(() => {
|
|
46
|
+
return twMerge(twJoin(
|
|
47
|
+
ui.icon.size[props.size],
|
|
48
|
+
props.offIconClass
|
|
49
|
+
));
|
|
50
|
+
});
|
|
51
|
+
const ui = {
|
|
52
|
+
base: "relative inline-flex flex-shrink-0 border-2 border-transparent disabled:cursor-not-allowed disabled:opacity-50 focus:outline-none transition ease-in-out",
|
|
53
|
+
rounded: "rounded-full",
|
|
54
|
+
ring: "focus-visible:ring-2 focus-visible:ring-blue-500 dark:focus-visible:ring-blue-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",
|
|
55
|
+
active: {
|
|
56
|
+
blue: "data-[state=unchecked]:bg-blue-700 data-[state=checked]:bg-blue-500",
|
|
57
|
+
green: "bg-green"
|
|
58
|
+
},
|
|
59
|
+
inactive: "data-[state=unchecked]:bg-gray-200 data-[state=checked]:dark:bg-gray-200/20",
|
|
60
|
+
size: {
|
|
61
|
+
"2xs": "h-3 w-5",
|
|
62
|
+
"xs": "h-3.5 w-6",
|
|
63
|
+
"sm": "h-4 w-7",
|
|
64
|
+
"md": "h-5 w-9",
|
|
65
|
+
"lg": "h-6 w-11",
|
|
66
|
+
"xl": "h-7 w-[3.25rem]",
|
|
67
|
+
"2xl": "h-8 w-[3.75rem]"
|
|
68
|
+
},
|
|
69
|
+
container: {
|
|
70
|
+
base: "pointer-events-none relative inline-block rounded-full data-[state=unchecked]:bg-white data-[state=checked]:bg-gray-900 shadow transform ring-0 transition ease-in-out duration-200",
|
|
71
|
+
active: {
|
|
72
|
+
"2xs": "translate-x-2 rtl:-translate-x-2",
|
|
73
|
+
"xs": "translate-x-2.5 rtl:-translate-x-2.5",
|
|
74
|
+
"sm": "translate-x-3 rtl:-translate-x-3",
|
|
75
|
+
"md": "translate-x-4 rtl:-translate-x-4",
|
|
76
|
+
"lg": "translate-x-5 rtl:-translate-x-5",
|
|
77
|
+
"xl": "translate-x-6 rtl:-translate-x-6",
|
|
78
|
+
"2xl": "translate-x-7 rtl:-translate-x-7"
|
|
79
|
+
},
|
|
80
|
+
inactive: "translate-x-0 rtl:-translate-x-0",
|
|
81
|
+
size: {
|
|
82
|
+
"2xs": "h-2 w-2",
|
|
83
|
+
"xs": "h-2.5 w-2.5",
|
|
84
|
+
"sm": "h-3 w-3",
|
|
85
|
+
"md": "h-4 w-4",
|
|
86
|
+
"lg": "h-5 w-5",
|
|
87
|
+
"xl": "h-6 w-6",
|
|
88
|
+
"2xl": "h-7 w-7"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
icon: {
|
|
92
|
+
base: "absolute inset-0 h-full w-full flex items-center justify-center transition-opacity",
|
|
93
|
+
active: "opacity-100 ease-in duration-200",
|
|
94
|
+
inactive: "opacity-0 ease-out duration-100",
|
|
95
|
+
size: {
|
|
96
|
+
"2xs": "h-2 w-2",
|
|
97
|
+
"xs": "h-2 w-2",
|
|
98
|
+
"sm": "h-2 w-2",
|
|
99
|
+
"md": "h-3 w-3",
|
|
100
|
+
"lg": "h-4 w-4",
|
|
101
|
+
"xl": "h-5 w-5",
|
|
102
|
+
"2xl": "h-6 w-6"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
</script>
|
|
107
|
+
|
|
108
|
+
<template>
|
|
109
|
+
<SwitchRoot
|
|
110
|
+
id="airplane-mode"
|
|
111
|
+
v-model="active"
|
|
112
|
+
:disabled="disabled"
|
|
113
|
+
:class="switchClass"
|
|
114
|
+
aria-label="Switch"
|
|
115
|
+
>
|
|
116
|
+
<SwitchThumb
|
|
117
|
+
:class="containerClass"
|
|
118
|
+
>
|
|
119
|
+
<span
|
|
120
|
+
v-if="onIcon"
|
|
121
|
+
:class="[active ? ui.icon.active : ui.icon.inactive, ui.icon.base]"
|
|
122
|
+
>
|
|
123
|
+
<component
|
|
124
|
+
:is="onIcon"
|
|
125
|
+
:class="onIconClassFormatted"
|
|
126
|
+
/>
|
|
127
|
+
</span>
|
|
128
|
+
<span
|
|
129
|
+
v-if="offIcon"
|
|
130
|
+
:class="[active ? ui.icon.inactive : ui.icon.active, ui.icon.base]"
|
|
131
|
+
>
|
|
132
|
+
<component
|
|
133
|
+
:is="offIcon"
|
|
134
|
+
:class="offIconClassFormatted"
|
|
135
|
+
/>
|
|
136
|
+
</span>
|
|
137
|
+
</SwitchThumb>
|
|
138
|
+
</SwitchRoot>
|
|
139
|
+
</template>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
type Size = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
2
|
+
type Color = 'blue' | 'green';
|
|
3
|
+
interface Props {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
size?: Size;
|
|
6
|
+
color?: Color;
|
|
7
|
+
switchClass?: string;
|
|
8
|
+
activeClass?: string;
|
|
9
|
+
inactiveClass?: string;
|
|
10
|
+
onIcon?: SVGElement | null;
|
|
11
|
+
onIconClass?: string | null;
|
|
12
|
+
offIcon?: SVGElement | null;
|
|
13
|
+
offIconClass?: string | null;
|
|
14
|
+
activeContainerClass?: string;
|
|
15
|
+
inactiveContainerClass?: string;
|
|
16
|
+
}
|
|
17
|
+
type __VLS_Props = Props;
|
|
18
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
19
|
+
modelValue: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: boolean) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
size: Size;
|
|
27
|
+
color: Color;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
switchClass: string;
|
|
30
|
+
activeClass: string;
|
|
31
|
+
inactiveClass: string;
|
|
32
|
+
onIcon: SVGElement | null;
|
|
33
|
+
onIconClass: string | null;
|
|
34
|
+
offIcon: SVGElement | null;
|
|
35
|
+
offIconClass: string | null;
|
|
36
|
+
activeContainerClass: string;
|
|
37
|
+
inactiveContainerClass: string;
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { twJoin, twMerge } from "tailwind-merge";
|
|
3
|
+
import { AccordionContent, AccordionHeader, AccordionItem, AccordionRoot, AccordionTrigger } from "reka-ui";
|
|
4
|
+
import ui from "./ui.config";
|
|
5
|
+
import { ref, onMounted, onBeforeUnmount, watch, computed, useAttrs } from "#imports";
|
|
6
|
+
defineOptions({
|
|
7
|
+
inheritAttrs: false
|
|
8
|
+
});
|
|
9
|
+
const attrs = useAttrs();
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
label: { type: String, required: true },
|
|
12
|
+
content: { type: null, required: false },
|
|
13
|
+
defaultOpen: { type: Boolean, required: false, default: false },
|
|
14
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
15
|
+
size: { type: String, required: false, default: "md" },
|
|
16
|
+
color: { type: String, required: false, default: "gray" },
|
|
17
|
+
slot: { type: String, required: false, default: void 0 },
|
|
18
|
+
divider: { type: Boolean, required: false, default: false },
|
|
19
|
+
contentClass: { type: String, required: false },
|
|
20
|
+
bodyClass: { type: String, required: false },
|
|
21
|
+
activateOpenBg: { type: Boolean, required: false }
|
|
22
|
+
});
|
|
23
|
+
const emit = defineEmits(["toggle", "open", "close"]);
|
|
24
|
+
const buttonClass = computed(() => twMerge(twJoin(ui.item.color[props.color], ui.ring, ui.item.button, ui.item.size[props.size])));
|
|
25
|
+
const contClass = computed(() => twMerge(twJoin(ui.item.content, props.contentClass)));
|
|
26
|
+
const bodyClassCompute = computed(() => twMerge(twJoin(ui.item.accordion, props.activateOpenBg ? isOpen.value && props.bodyClass : props.bodyClass)));
|
|
27
|
+
const accordion = ref();
|
|
28
|
+
const isOpen = ref();
|
|
29
|
+
function updateState() {
|
|
30
|
+
if (accordion.value) {
|
|
31
|
+
const state = accordion.value?.$el.getAttribute("data-state");
|
|
32
|
+
isOpen.value = state === "open";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
onMounted(() => {
|
|
36
|
+
if (accordion.value) {
|
|
37
|
+
updateState();
|
|
38
|
+
const observer = new MutationObserver(() => {
|
|
39
|
+
updateState();
|
|
40
|
+
});
|
|
41
|
+
observer.observe(accordion.value?.$el, {
|
|
42
|
+
attributes: true,
|
|
43
|
+
attributeFilter: ["data-state"]
|
|
44
|
+
});
|
|
45
|
+
onBeforeUnmount(() => {
|
|
46
|
+
observer.disconnect();
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
function emulateButtonClick() {
|
|
51
|
+
if (accordion.value) {
|
|
52
|
+
accordion.value?.$el.click();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const handelOpen = () => {
|
|
56
|
+
if (!isOpen.value) {
|
|
57
|
+
emulateButtonClick();
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const handelClose = () => {
|
|
61
|
+
if (isOpen.value) {
|
|
62
|
+
emulateButtonClick();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
watch(isOpen, () => {
|
|
66
|
+
emit("toggle", isOpen.value);
|
|
67
|
+
isOpen.value ? emit("open") : emit("close");
|
|
68
|
+
});
|
|
69
|
+
defineExpose({
|
|
70
|
+
ontoggle: emulateButtonClick,
|
|
71
|
+
handelOpen,
|
|
72
|
+
handelClose
|
|
73
|
+
});
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
<template>
|
|
77
|
+
<accordion-root
|
|
78
|
+
type="single"
|
|
79
|
+
:disabled="disabled"
|
|
80
|
+
collapsible
|
|
81
|
+
:default-value="defaultOpen ? 'accordion' : ''"
|
|
82
|
+
v-bind="attrs"
|
|
83
|
+
>
|
|
84
|
+
<accordion-item
|
|
85
|
+
value="accordion"
|
|
86
|
+
:class="bodyClassCompute"
|
|
87
|
+
>
|
|
88
|
+
<accordion-header class="w-full">
|
|
89
|
+
<accordion-trigger
|
|
90
|
+
ref="accordion"
|
|
91
|
+
class="w-full"
|
|
92
|
+
>
|
|
93
|
+
<slot name="head">
|
|
94
|
+
<button :class="buttonClass">
|
|
95
|
+
<span :class="size === 'md' ? 'text-sm' : 'text-base'">{{ label }}</span>
|
|
96
|
+
<slot name="additional" />
|
|
97
|
+
<i-arrow-chevron-down
|
|
98
|
+
:arrow-attrs="{ class: 'stroke-deepblue-900' }"
|
|
99
|
+
:class="[{ 'rotate-180': isOpen }, 'max-h-[16px] min-h-[16px] min-w-[16px] max-w-[16px]', ui.item.icon]"
|
|
100
|
+
/>
|
|
101
|
+
</button>
|
|
102
|
+
</slot>
|
|
103
|
+
</accordion-trigger>
|
|
104
|
+
</accordion-header>
|
|
105
|
+
<slot name="closedToShow" />
|
|
106
|
+
<accordion-content class="AccordionContent">
|
|
107
|
+
<div :class="[contClass, { 'mt-4 border-t': divider }]">
|
|
108
|
+
<slot
|
|
109
|
+
:name="slot || 'default'"
|
|
110
|
+
:content="content"
|
|
111
|
+
>
|
|
112
|
+
{{ content }}
|
|
113
|
+
</slot>
|
|
114
|
+
</div>
|
|
115
|
+
</accordion-content>
|
|
116
|
+
</accordion-item>
|
|
117
|
+
</accordion-root>
|
|
118
|
+
</template>
|
|
119
|
+
|
|
120
|
+
<style scoped>
|
|
121
|
+
.AccordionContent {
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.AccordionContent[data-state=open] {
|
|
126
|
+
animation: slideDown 200ms ease-out;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.AccordionContent[data-state=closed] {
|
|
130
|
+
animation: slideUp 200ms ease-out;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@keyframes slideDown {
|
|
134
|
+
from {
|
|
135
|
+
height: 0;
|
|
136
|
+
}
|
|
137
|
+
to {
|
|
138
|
+
height: var(--reka-accordion-content-height);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
@keyframes slideUp {
|
|
142
|
+
from {
|
|
143
|
+
height: var(--reka-accordion-content-height);
|
|
144
|
+
}
|
|
145
|
+
to {
|
|
146
|
+
height: 0;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
</style>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Props } from './types.js';
|
|
2
|
+
declare function emulateButtonClick(): void;
|
|
3
|
+
declare var __VLS_20: {}, __VLS_22: {}, __VLS_28: {}, __VLS_35: any, __VLS_36: {
|
|
4
|
+
content: any;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
[K in NonNullable<typeof __VLS_35>]?: (props: typeof __VLS_36) => any;
|
|
8
|
+
} & {
|
|
9
|
+
head?: (props: typeof __VLS_20) => any;
|
|
10
|
+
} & {
|
|
11
|
+
additional?: (props: typeof __VLS_22) => any;
|
|
12
|
+
} & {
|
|
13
|
+
closedToShow?: (props: typeof __VLS_28) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
16
|
+
ontoggle: typeof emulateButtonClick;
|
|
17
|
+
handelOpen: () => void;
|
|
18
|
+
handelClose: () => void;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
+
close: () => any;
|
|
21
|
+
toggle: (isOpen: boolean) => any;
|
|
22
|
+
open: () => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
24
|
+
onClose?: (() => any) | undefined;
|
|
25
|
+
onToggle?: ((isOpen: boolean) => any) | undefined;
|
|
26
|
+
onOpen?: (() => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
size: import("./types.js").Size;
|
|
29
|
+
color: import("./types.js").Color;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
defaultOpen: boolean;
|
|
32
|
+
slot: string;
|
|
33
|
+
divider: boolean;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Size = 'md' | 'lg';
|
|
2
|
+
export type Color = 'gray';
|
|
3
|
+
export interface Props {
|
|
4
|
+
label: string;
|
|
5
|
+
content?: any;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
size?: Size;
|
|
9
|
+
color?: Color;
|
|
10
|
+
slot?: string;
|
|
11
|
+
divider?: boolean;
|
|
12
|
+
contentClass?: string;
|
|
13
|
+
bodyClass?: string;
|
|
14
|
+
activateOpenBg?: boolean;
|
|
15
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
ring: string;
|
|
4
|
+
item: {
|
|
5
|
+
size: {
|
|
6
|
+
md: string;
|
|
7
|
+
lg: string;
|
|
8
|
+
};
|
|
9
|
+
color: {
|
|
10
|
+
gray: string;
|
|
11
|
+
};
|
|
12
|
+
icon: string;
|
|
13
|
+
accordion: string;
|
|
14
|
+
content: string;
|
|
15
|
+
button: string;
|
|
16
|
+
};
|
|
17
|
+
transition: {
|
|
18
|
+
enterActiveClass: string;
|
|
19
|
+
leaveActiveClass: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "w-full flex flex-col",
|
|
3
|
+
ring: "focus-visible:ring-2 focus-visible:ring-blue-500 dark:focus-visible:ring-blue-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",
|
|
4
|
+
item: {
|
|
5
|
+
size: {
|
|
6
|
+
md: "text-md ",
|
|
7
|
+
lg: "text-xl"
|
|
8
|
+
},
|
|
9
|
+
color: {
|
|
10
|
+
gray: "text-deepblue-900 dark:text-gray-200"
|
|
11
|
+
},
|
|
12
|
+
icon: "ms-auto transform transition-transform duration-200",
|
|
13
|
+
accordion: "p-4 rounded bg-white dark:bg-gray-900 transition-colors",
|
|
14
|
+
content: "",
|
|
15
|
+
button: "flex justify-between gap-1 grow w-full items-center text-sm font-semibold text-start"
|
|
16
|
+
},
|
|
17
|
+
transition: {
|
|
18
|
+
enterActiveClass: "overflow-hidden transition-[height] duration-200 ease-out",
|
|
19
|
+
leaveActiveClass: "overflow-hidden transition-[height] duration-200 ease-out"
|
|
20
|
+
}
|
|
21
|
+
};
|