adata-ui 2.1.40-beta.18 → 2.1.40-beta.19
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/.playground/app.vue +102 -0
- package/assets/styles/index.scss +67 -5
- package/components/elements/a-select-row/ASelectRowV2.vue +214 -0
- package/components/elements/a-select-row/index.vue +3 -5
- package/components/elements/accordion/AAccordion.vue +5 -3
- package/components/elements/accordion/AAccordionGroup/AAccordionGroup.vue +3 -3
- package/components/elements/alert/AAlert.vue +34 -47
- package/components/elements/bg-block/ABgBlock.vue +1 -1
- package/components/elements/button/AButton.vue +3 -3
- package/components/elements/button/AButtonV2.vue +133 -0
- package/components/elements/button-login/index.vue +6 -10
- package/components/elements/chip-wrapper/AChipWrapper.vue +1 -1
- package/components/elements/chips/AChips.vue +2 -2
- package/components/elements/companies/AOurClients.vue +3 -1
- package/components/elements/curve-block-v2/ACurveBlockV2.vue +85 -0
- package/components/elements/digit-badge/ADigitBadge.vue +24 -22
- package/components/elements/feature-description/AFeatureDescription.vue +1 -1
- package/components/elements/leave-note/ALeaveNote.vue +39 -18
- package/components/elements/pagination/APagination.vue +7 -7
- package/components/elements/segmented/ASegmentedV2.vue +151 -0
- package/components/elements/select/ASelect.vue +4 -4
- package/components/elements/select/ASelectMobile.vue +2 -2
- package/components/elements/select/ASelectV2.vue +588 -0
- package/components/elements/select/ui/select-button.vue +1 -1
- package/components/elements/show-more/AShowMoreV2.vue +26 -0
- package/components/elements/slider/ASlider.vue +174 -0
- package/components/elements/slider/ASliderItem.vue +31 -0
- package/components/elements/slider/types.ts +21 -0
- package/components/elements/star-rating/AStarRating.vue +12 -4
- package/components/elements/status-badge/AStatusBadge.vue +91 -44
- package/components/elements/step-slider/AStepSliderColCard.vue +232 -0
- package/components/elements/step-slider/AStepSliderColNumber.vue +178 -0
- package/components/elements/table/ATable.vue +1 -1
- package/components/elements/table/table.config.ts +2 -2
- package/components/elements/tree-select/ATreeSelect.vue +97 -113
- package/components/elements/tree-select/TreeService.ts +142 -207
- package/components/elements/tree-select/components/ATreeSelectNode.vue +104 -0
- package/components/elements/tree-select/types.ts +40 -11
- package/components/elements/tree-select/utils.ts +30 -0
- package/components/elements/tree-select-modal/ATreeSelectModal.vue +217 -0
- package/components/features/color-mode/AColorMode.client.vue +74 -32
- package/components/features/dropdown/ADropdownV2.vue +140 -0
- package/components/features/lang-switcher/lang-switcher.vue +125 -40
- package/components/features/payment/banner/BasicPlusLimitBanner.vue +3 -3
- package/components/features/payment/banner/PaymentBanner.vue +3 -3
- package/components/features/payment/banner/UpSellBanner.vue +3 -3
- package/components/features/payment/process/PaymentKaspiQrSidePanel.vue +45 -27
- package/components/features/payment/process/PaymentKaspiRedirectSidePanel.vue +34 -23
- package/components/features/payment/process/PaymentMethodSidePanel.vue +66 -49
- package/components/features/payment/process/PaymentProcess.vue +6 -6
- package/components/features/payment/process/PaymentTopUpSidePanel.vue +49 -63
- package/components/features/pk-mobile-services/APkMobileServices.vue +6 -28
- package/components/features//321/201hange-version/AChangeVersion.vue +2 -2
- package/components/forms/checkbox/ACheckbox.vue +1 -1
- package/components/forms/checkbox/ACheckboxV2.vue +229 -0
- package/components/forms/feedback-form/FeedbackForm.vue +8 -8
- package/components/forms/feedback-form/FeedbackFormV2.vue +182 -0
- package/components/forms/input/AInputV2.vue +542 -0
- package/components/forms/input/date/AInputDate.vue +2 -2
- package/components/forms/input/password/AInputPassword.vue +8 -2
- package/components/forms/input/standard/AInputStandard.vue +3 -3
- package/components/forms/input/textarea/ATextarea.vue +2 -2
- package/components/forms/input/textarea/ATextareaV2.vue +248 -0
- package/components/forms/toggle/AToggle.vue +2 -3
- package/components/forms/toggle/AToggleV2.vue +71 -0
- package/components/modals/AnotherDeviceModal.vue +22 -18
- package/components/modals/ApplicationAcceptedModal.vue +12 -15
- package/components/modals/ConnectingTariffModal.vue +13 -20
- package/components/modals/ContactsMobileModel.vue +1 -1
- package/components/modals/ContentNavigationModal.vue +77 -333
- package/components/modals/Insufficient-funds-modal.vue +18 -33
- package/components/modals/LimitReachedModal.vue +17 -14
- package/components/modals/NoAccessModal.vue +9 -11
- package/components/modals/PaymentMethodModal.vue +1 -1
- package/components/modals/ReportBugConfirmModal.vue +12 -10
- package/components/modals/ReportBugModal.vue +46 -38
- package/components/modals/Resend.vue +9 -10
- package/components/modals/SubmitApplicationModal.vue +27 -24
- package/components/modals/id/IdBanner.vue +3 -3
- package/components/modals/id/IdConfirmAccountOtpModal.vue +4 -9
- package/components/modals/id/IdLoginModal.vue +3 -8
- package/components/modals/id/IdModals.vue +23 -10
- package/components/modals/id/IdRecoveryModal.vue +1 -1
- package/components/modals/id/IdTwoFactorModal.vue +3 -8
- package/components/navigation/bottom-navigation/ABottomNavigation.vue +1 -1
- package/components/navigation/breadcrumbs/ABreadcrumbs.vue +106 -45
- package/components/navigation/breadcrumbs/types.ts +3 -0
- package/components/navigation/footer/AFooter.vue +39 -40
- package/components/navigation/footer/ui/a-footer-accordion.vue +9 -9
- package/components/navigation/header/AHeader.vue +68 -51
- package/components/navigation/header/AlmatyContacts.vue +78 -78
- package/components/navigation/header/CardGallery.vue +9 -7
- package/components/navigation/header/ContactMenu.vue +26 -92
- package/components/navigation/header/HeaderLink.vue +181 -213
- package/components/navigation/header/HeaderUsage.vue +139 -0
- package/components/navigation/header/ListItem.vue +2 -2
- package/components/navigation/header/NavCard.vue +1 -1
- package/components/navigation/header/NavList.vue +33 -92
- package/components/navigation/header/NotificationsMenu.vue +2 -3
- package/components/navigation/header/ProductMenu.vue +81 -127
- package/components/navigation/header/ProfileMenu.vue +122 -151
- package/components/navigation/header/SystemNotification.vue +108 -0
- package/components/navigation/mobile-navigation/AMobileNavigation.vue +23 -15
- package/components/navigation/pill-tabs/APillTabs.vue +2 -2
- package/components/navigation/pill-tabs/APillTabsV2.vue +226 -0
- package/components/overlays/drawer/ADrawerV2.vue +335 -0
- package/components/overlays/modal/AModal.vue +4 -4
- package/components/overlays/modal/AModalV2.vue +397 -0
- package/components/overlays/side-panel/ASidePanel.vue +10 -7
- package/components/overlays/sideover/ASlideover.vue +6 -6
- package/components/overlays/tooltip/ATooltip.vue +1 -1
- package/components/overlays/tooltip/ATooltipV2.vue +223 -0
- package/components/overlays/tooltip/types.ts +26 -0
- package/components/overlays/tooltip/useTooltipTrigger.ts +101 -0
- package/components/transitions/ATransitionHeight.vue +1 -1
- package/composables/useAccessTokenCookie.ts +25 -0
- package/composables/useActiveNavigation.ts +84 -0
- package/composables/useChipOverflow.ts +92 -0
- package/composables/useHeaderNavigationLinks.ts +140 -98
- package/icons/archive.vue +16 -0
- package/icons/arrow/arrow-left-right.vue +8 -0
- package/icons/arrow/arrow-right.vue +14 -0
- package/icons/arrow/arrows-in.vue +11 -0
- package/icons/arrow/arrows-out.vue +11 -0
- package/icons/arrow/arrows-resize-in.vue +38 -0
- package/icons/arrow/arrows-resize-out.vue +17 -0
- package/icons/bill.vue +3 -0
- package/icons/bot.vue +52 -0
- package/icons/briefcase.vue +14 -0
- package/icons/building.vue +9 -0
- package/icons/car-side.vue +16 -0
- package/icons/cart.vue +15 -0
- package/icons/chart-no-axes-column.vue +3 -0
- package/icons/clock-time.vue +24 -0
- package/icons/cloud/cloud-upload.vue +3 -0
- package/icons/code.vue +9 -0
- package/icons/compare-outlined.vue +8 -0
- package/icons/dots-horizontal.vue +31 -0
- package/icons/download-line.vue +13 -0
- package/icons/download-rounded.vue +15 -0
- package/icons/egov.vue +41 -0
- package/icons/elicense.vue +38 -0
- package/icons/favourite-bookmark-outline.vue +17 -0
- package/icons/file/file-check-corner.vue +3 -0
- package/icons/file/file-spreadsheet.vue +3 -0
- package/icons/file-pen.vue +31 -0
- package/icons/file-stack.vue +31 -0
- package/icons/file-types/excel.vue +131 -0
- package/icons/file-types/html.vue +13 -0
- package/icons/file-types/jpeg.vue +16 -0
- package/icons/file-types/pdf.vue +11 -0
- package/icons/file-types/png.vue +11 -0
- package/icons/file-types/rar.vue +11 -0
- package/icons/file-types/word.vue +50 -0
- package/icons/file-types/zip.vue +11 -0
- package/icons/gauge.vue +17 -0
- package/icons/git-compare.vue +38 -0
- package/icons/git-fork.vue +3 -0
- package/icons/graduation-cap.vue +31 -0
- package/icons/graph-loading.vue +34 -0
- package/icons/headset.vue +6 -0
- package/icons/help-question-circle.vue +26 -0
- package/icons/in-row-type.vue +46 -0
- package/icons/in-table-type.vue +29 -0
- package/icons/landmark.vue +3 -0
- package/icons/layers.vue +3 -0
- package/icons/letter/letter-a.vue +6 -0
- package/icons/letter/letter-b.vue +6 -0
- package/icons/letter/letter-c.vue +6 -0
- package/icons/letter/letter-d.vue +6 -0
- package/icons/letter/letter-e.vue +6 -0
- package/icons/link-url.vue +3 -0
- package/icons/list-tree.vue +3 -0
- package/icons/mail-question-mark.vue +8 -0
- package/icons/message/message-square.vue +3 -0
- package/icons/message-dotted.vue +30 -0
- package/icons/network.vue +3 -0
- package/icons/newspaper.vue +3 -0
- package/icons/notification-error.vue +17 -0
- package/icons/person.vue +22 -0
- package/icons/phone-call.vue +6 -0
- package/icons/phone-reversed.vue +3 -0
- package/icons/route.vue +7 -0
- package/icons/scan-search.vue +3 -0
- package/icons/settings.vue +26 -0
- package/icons/shield-alert.vue +31 -0
- package/icons/shield-verified.vue +14 -0
- package/icons/socials/facebook-color.vue +16 -0
- package/icons/socials/globe-color.vue +16 -0
- package/icons/socials/instagram-color.vue +46 -0
- package/icons/socials/linkedin-color.vue +14 -0
- package/icons/socials/telegram-color.vue +16 -0
- package/icons/socials/tiktok-color.vue +14 -0
- package/icons/socials/vk-color.vue +16 -0
- package/icons/socials/youtube-color.vue +16 -0
- package/icons/sparkles.vue +3 -0
- package/icons/sun.vue +13 -3
- package/icons/users-round.vue +3 -0
- package/icons/view-eye-open.vue +13 -0
- package/icons/workflow.vue +3 -0
- package/icons/zap.vue +3 -0
- package/lang/en.ts +49 -5
- package/lang/kk.ts +50 -6
- package/lang/ru.ts +51 -7
- package/package.json +1 -1
- package/plugins/toast.client.ts +38 -55
- package/shared/constans/pages.ts +8 -2
- package/tailwind.config.ts +147 -116
- package/utils/twMerge.ts +34 -0
- package/components/elements/tree-select/components/tree-select-nodes.vue +0 -91
- package/components/navigation/header/TopHeader.vue +0 -196
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import ArrowCurrency from '#adata-ui/icons/currency/currency-down.vue'
|
|
3
|
-
import UsdIcon from '#adata-ui/icons/currency/currency-usd.vue'
|
|
4
|
-
import EurIcon from '#adata-ui/icons/currency/currency-eur.vue'
|
|
5
|
-
import RubIcon from '#adata-ui/icons/currency/currency-rub.vue'
|
|
6
|
-
import YuanIcon from '#adata-ui/icons/currency/currency-yuan.vue'
|
|
7
|
-
|
|
8
|
-
interface Props {
|
|
9
|
-
daysRemaining: number
|
|
10
|
-
limitRemaining: number
|
|
11
|
-
moduleName: string
|
|
12
|
-
isAuthenticated: boolean
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
16
|
-
moduleName: 'counterparty'
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
const { t, locale } = useI18n()
|
|
20
|
-
|
|
21
|
-
interface ResponseData<DataResult> {
|
|
22
|
-
success: boolean
|
|
23
|
-
message: string
|
|
24
|
-
data: DataResult
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface Currency {
|
|
28
|
-
buy: number
|
|
29
|
-
buy_state: string
|
|
30
|
-
currency: 'USD' | 'EUR' | 'RUB' | 'CNY'
|
|
31
|
-
sell: number
|
|
32
|
-
sell_state: string
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface Currencies {
|
|
36
|
-
currencies: Currency[]
|
|
37
|
-
request_time: string
|
|
38
|
-
time: string
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const currencies = ref<Currency[]>([])
|
|
42
|
-
const systemMessage = ref(null)
|
|
43
|
-
const isOpenNotification = ref(false)
|
|
44
|
-
const message = useCookie('message')
|
|
45
|
-
|
|
46
|
-
const { myLayer } = useAppConfig()
|
|
47
|
-
const env = myLayer.mode
|
|
48
|
-
|
|
49
|
-
const mode = computed(() => {
|
|
50
|
-
if (props.moduleName === 'pk') {
|
|
51
|
-
return 'counterparty'
|
|
52
|
-
} else {
|
|
53
|
-
return props.moduleName
|
|
54
|
-
}
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
const fetchCurrencies = async () => {
|
|
58
|
-
try {
|
|
59
|
-
const response = await fetch('https://users.adata.kz/api/v1/information/currency')
|
|
60
|
-
const { data } = await response.json()
|
|
61
|
-
|
|
62
|
-
if (data.currencies) {
|
|
63
|
-
currencies.value = data.currencies
|
|
64
|
-
}
|
|
65
|
-
} catch (e) {
|
|
66
|
-
console.error(e.message)
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const Symbols = {
|
|
71
|
-
USD: UsdIcon,
|
|
72
|
-
EUR: EurIcon,
|
|
73
|
-
RUB: RubIcon,
|
|
74
|
-
CNY: YuanIcon
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
const computedClass = (state: string) =>
|
|
78
|
-
state === 'UP' ? 'text-green-400 rotate-180' : 'text-red-400'
|
|
79
|
-
|
|
80
|
-
const fetchNotification = async () => {
|
|
81
|
-
try {
|
|
82
|
-
if (message.value === undefined) {
|
|
83
|
-
const link = `https://users.${env}.kz/api/v1/system-messages/active-list/?module_name=${mode.value}`
|
|
84
|
-
const response = await fetch(link)
|
|
85
|
-
const { data } = await response.json()
|
|
86
|
-
|
|
87
|
-
if (data.details?.length) {
|
|
88
|
-
switch (locale.value) {
|
|
89
|
-
case 'ru':
|
|
90
|
-
systemMessage.value = data.details[0].message
|
|
91
|
-
break
|
|
92
|
-
case 'en':
|
|
93
|
-
systemMessage.value = data.details[0].message_en
|
|
94
|
-
break
|
|
95
|
-
case 'kk':
|
|
96
|
-
systemMessage.value = data.details[0].message_kz
|
|
97
|
-
break
|
|
98
|
-
}
|
|
99
|
-
isOpenNotification.value = true
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
} catch (e) {
|
|
103
|
-
console.error(e.message)
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
onMounted(() => {
|
|
108
|
-
fetchNotification()
|
|
109
|
-
fetchCurrencies()
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
const closeMessage = () => {
|
|
113
|
-
message.value = false
|
|
114
|
-
isOpenNotification.value = false
|
|
115
|
-
}
|
|
116
|
-
</script>
|
|
117
|
-
|
|
118
|
-
<template>
|
|
119
|
-
<div class="min-h-[40px]" :class="[isOpenNotification && systemMessage ? '' : 'hidden lg:block']">
|
|
120
|
-
<client-only>
|
|
121
|
-
<transition name="fade">
|
|
122
|
-
<div
|
|
123
|
-
v-if="isOpenNotification && systemMessage"
|
|
124
|
-
class="bg-[#FFF5E6] px-2 py-3 text-[#FCA204] dark:bg-[#161617] md:px-0"
|
|
125
|
-
>
|
|
126
|
-
<div class="a-container flex items-center justify-between">
|
|
127
|
-
<div class="flex items-center gap-2">
|
|
128
|
-
<a-icon-info-circle
|
|
129
|
-
class="max-h-[16px] w-full max-w-[16px] stroke-orange-500 dark:stroke-orange-500"
|
|
130
|
-
/>
|
|
131
|
-
<span class="text-sm font-semibold text-orange-500">{{ systemMessage }}</span>
|
|
132
|
-
</div>
|
|
133
|
-
<a-icon-x-mark
|
|
134
|
-
class="max-h-[16px] w-full max-w-[16px] cursor-pointer stroke-orange-500"
|
|
135
|
-
@click="closeMessage"
|
|
136
|
-
/>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
</transition>
|
|
140
|
-
<div
|
|
141
|
-
v-if="!isOpenNotification || !systemMessage"
|
|
142
|
-
class="hidden min-h-10 bg-gray-50 dark:bg-gray-950 lg:block"
|
|
143
|
-
>
|
|
144
|
-
<div class="a-container flex justify-between py-2 items-center text-sm">
|
|
145
|
-
<div class="flex items-center leading-[24px]" data-test-id="header-currency-bar">
|
|
146
|
-
<div v-for="currency in currencies" :key="currency.currency" class="mr-4 flex gap-2">
|
|
147
|
-
<div class="flex items-center">
|
|
148
|
-
<component
|
|
149
|
-
:is="Symbols[currency.currency]"
|
|
150
|
-
class="mr-2 size-4 rounded-sm border border-solid border-[#E0E3E6] dark:border-[#2B2B2C]"
|
|
151
|
-
/>
|
|
152
|
-
{{ currency.buy }}
|
|
153
|
-
<div :class="computedClass(currency.sell_state)">
|
|
154
|
-
<arrow-currency />
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
<div class="flex items-center">
|
|
158
|
-
{{ currency.sell }}
|
|
159
|
-
<div :class="computedClass(currency.sell_state)">
|
|
160
|
-
<arrow-currency />
|
|
161
|
-
</div>
|
|
162
|
-
</div>
|
|
163
|
-
</div>
|
|
164
|
-
</div>
|
|
165
|
-
<div v-if="isAuthenticated" class="flex items-center gap-5">
|
|
166
|
-
<div v-if="limitRemaining != null || limitRemaining != undefined">
|
|
167
|
-
<span class="mr-2 text-xs">{{ t('header.top.requestLimit') }}</span>
|
|
168
|
-
<a-status-badge size="sm" data-test-id="header-daily-requests-count">
|
|
169
|
-
{{ limitRemaining }}
|
|
170
|
-
</a-status-badge>
|
|
171
|
-
</div>
|
|
172
|
-
<div v-if="daysRemaining">
|
|
173
|
-
<span class="mr-2 text-xs">{{ t('header.top.daysLeft') }}</span>
|
|
174
|
-
<a-status-badge size="sm" data-test-id="header-tariff-days-remaining-count">
|
|
175
|
-
{{ daysRemaining }}
|
|
176
|
-
</a-status-badge>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
</client-only>
|
|
182
|
-
</div>
|
|
183
|
-
</template>
|
|
184
|
-
|
|
185
|
-
<style scoped>
|
|
186
|
-
.fade-enter-active,
|
|
187
|
-
.fade-leave-active {
|
|
188
|
-
transition: 0.1s ease;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.fade-enter,
|
|
192
|
-
.fade-leave-to {
|
|
193
|
-
opacity: 0;
|
|
194
|
-
top: 0px;
|
|
195
|
-
}
|
|
196
|
-
</style>
|