adata-ui 2.0.26 → 2.0.28

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.
@@ -1,277 +0,0 @@
1
- <script setup lang="ts">
2
- import AdataLogo from '#adata-ui/icons/adata-logo.vue'
3
- import LinkedinIcon from '#adata-ui/icons/linkedin.vue'
4
- import YouTubeIcon from '#adata-ui/icons/socials/youtube.vue'
5
- import InstagramIcon from '#adata-ui/icons/socials/instagram.vue'
6
- import TelegramIcon from '#adata-ui/icons/socials/telegram.vue'
7
- import FaceBookIcon from '#adata-ui/icons/socials/face-book.vue'
8
- import TikTokIcon from '#adata-ui/icons/socials/tik-tok.vue'
9
- import NewFooterAccordion from '#adata-ui/components/navigation/footer/ui/new-footer-accordion.vue'
10
- import { buildLocalizedUrl } from '#adata-ui/utils/localizedNavigation'
11
- import { PAGES } from '#adata-ui/shared/constans/pages'
12
- import { AIconExpandWindow, AIconLocation, AIconMail, AIconPhone } from '#components'
13
-
14
- const year = new Date().getFullYear()
15
- const { t, locale } = useI18n()
16
- const { myLayer } = useAppConfig()
17
-
18
- const socialMedia = [
19
- {
20
- icon: LinkedinIcon,
21
- link: 'https://www.linkedin.com/company/adata-kz/?viewAsMember=true',
22
- name: 'Linkedin'
23
- },
24
- {
25
- icon: YouTubeIcon,
26
- link: 'https://www.youtube.com/channel/UCPkbtgwgTZbMJXjmTi3R8Uw/featured',
27
- name: 'YouTube'
28
- },
29
- {
30
- icon: InstagramIcon,
31
- link: 'https://www.instagram.com/adata.kz/?igshid=253i4qxg3els',
32
- name: 'Instagram'
33
- },
34
- {
35
- icon: TelegramIcon,
36
- link: 'https://t.me/adatakz_official',
37
- name: 'Telegram'
38
- },
39
- {
40
- icon: FaceBookIcon,
41
- link: 'https://www.facebook.com/adata.kz',
42
- name: 'Facebook'
43
- },
44
- {
45
- icon: TikTokIcon,
46
- link: 'https://www.tiktok.com/@adata.kz?lang=ru-RU',
47
- name: 'Tiktok'
48
- }
49
- ]
50
-
51
- const mainLinks = {
52
- services: {
53
- title: 'footer.services',
54
- items: [
55
- [
56
- {
57
- title: 'footer.counterparties.title',
58
- link: buildLocalizedUrl(locale.value, myLayer.pkUrl, ''),
59
- },
60
- {
61
- title: 'footer.fines.title',
62
- link: buildLocalizedUrl(locale.value, myLayer.avtoUrl, PAGES.fines.main),
63
- },
64
- {
65
- title: 'footer.work.title',
66
- link: myLayer.workUrl + PAGES.work.vacancy,
67
- },
68
- {
69
- title: 'footer.analytics.title',
70
- link: buildLocalizedUrl(locale.value, 'https://analytics-new.adata.kz', PAGES.analytics.main),
71
- },
72
- {
73
- title: 'footer.tenders.title',
74
- link: myLayer.tenderUrl + PAGES.tender.main,
75
- }
76
- ],
77
- [
78
- {
79
- title: 'footer.compliance.title',
80
- link: myLayer?.complianceUrl + PAGES.compliance.l,
81
- isNew: true
82
- },
83
- {
84
- title: 'header.products.edo.label',
85
- link: (myLayer?.edoUrl ?? 'https://edo.adata.kz') + PAGES.edo.l,
86
- isNew: true
87
- },
88
- {
89
- title: 'footer.fea.title',
90
- link: buildLocalizedUrl(locale.value, myLayer.tnvedUrl, PAGES.fea.main),
91
- isNew: true
92
- },
93
- ]
94
- ]
95
- },
96
- useful: {
97
- title: 'footer.useful',
98
- link: buildLocalizedUrl(locale.value, myLayer.landingUrl, PAGES.usefulMain),
99
- items: [
100
- [
101
- {
102
- title: 'footer.info.api',
103
- link: buildLocalizedUrl(locale.value, myLayer.landingUrl, PAGES.apiDescription),
104
- },
105
- {
106
- title: 'footer.info.userAgreement',
107
- link: buildLocalizedUrl(locale.value, myLayer.landingUrl, PAGES.userAgreement),
108
- },
109
- {
110
- title: 'footer.info.privacyPolicy',
111
- link: buildLocalizedUrl(locale.value, myLayer.landingUrl, PAGES.privacy),
112
- },
113
- {
114
- title: 'footer.info.vacancy',
115
- link: buildLocalizedUrl(locale.value, myLayer.landingUrl, PAGES.vacancy),
116
- },
117
- {
118
- title: 'footer.info.counterparty',
119
- link: buildLocalizedUrl(locale.value, myLayer.pkUrl, PAGES.pk.counterparty),
120
- },
121
- ]
122
- ]
123
- }
124
- }
125
-
126
- const contactLinks = {
127
- title: 'footer.contacts.title',
128
- link: buildLocalizedUrl(locale.value, myLayer.landingUrl, PAGES.contacts),
129
- items: [
130
- {
131
- title: 'footer.contacts.address',
132
- link: 'https://go.2gis.com/30j2f',
133
- startIcon: AIconLocation,
134
- endIcon: null,
135
- },
136
- {
137
- title: '+7 (747) 120 34 67',
138
- link: 'tel:+77471203467',
139
- startIcon: AIconPhone,
140
- endIcon: null,
141
- },
142
- {
143
- title: 'info@adata.kz',
144
- link: 'mailto:info@adata.kz',
145
- startIcon: AIconMail,
146
- endIcon: null,
147
- },
148
- {
149
- title: 'footer.contacts.goToChat',
150
- link: 'https://api.whatsapp.com/send?phone=77712289041',
151
- startIcon: null,
152
- endIcon: AIconExpandWindow,
153
- class: 'font-bold',
154
- },
155
- ],
156
- }
157
-
158
- </script>
159
-
160
- <template>
161
- <footer
162
- id="footer"
163
- class="bg-deepblue-900 dark:bg-gray-900 py-4 lg:py-5 rounded-t-3xl"
164
- >
165
- <div class="a-container mobile-padding py-5 text-white flex flex-col lg:flex-row justify-between gap-8">
166
- <div class="flex flex-col gap-8 justify-between">
167
- <div class="flex flex-col gap-4">
168
- <adata-logo
169
- filled
170
- :font-controlled="false"
171
- class="shrink-0"
172
- />
173
-
174
- <p class="text-sm">
175
- {{ t('footer.subtitle') }}
176
- </p>
177
-
178
- <div class="hidden lg:flex gap-8">
179
- <nuxt-link
180
- v-for="(social, idx) in socialMedia"
181
- :key="idx"
182
- target="_blank"
183
- :to="social.link"
184
- :aria-label="social.name"
185
- >
186
- <span class="visually-hidden"> {{ social.name }}</span>
187
- <component
188
- :is="social.icon"
189
- filled
190
- :font-controlled="false"
191
- class="social-icon size-7"
192
- />
193
- </nuxt-link>
194
- </div>
195
- </div>
196
-
197
- <p class="hidden lg:block text-[10px]">
198
- {{ year }} © {{ t('footer.LLP') }} "Alldata"
199
- </p>
200
- </div>
201
-
202
- <div class="flex gap-6 lg:gap-[75px] flex-col lg:flex-row">
203
- <div class="flex gap-[18px] lg:gap-[75px] flex-col lg:flex-row">
204
- <div
205
- v-for="(item, idx) in mainLinks"
206
- :key="idx"
207
- >
208
- <new-footer-accordion
209
- :label="t(item.title)"
210
- :link="item?.link?.replace(/\/$/, '')"
211
- :content="item.items"
212
- />
213
- </div>
214
- </div>
215
- <!--noindex-->
216
- <div class="flex flex-col gap-2 items-start" data-nosnippet>
217
- <nuxt-link
218
- class="text-sm font-semibold pb-3 pr-4 border-b-[0.5px] border-white cursor-pointer"
219
- :to="contactLinks.link?.replace(/\/$/, '')"
220
- >
221
- {{ t(contactLinks.title) }}
222
- </nuxt-link>
223
-
224
- <div class="flex flex-col gap-3 lg:gap-2">
225
- <div
226
- v-for="(link, idx) in contactLinks.items"
227
- :key="idx"
228
- class="flex gap-2 items-center"
229
- >
230
- <nuxt-link
231
- class="text-xs font-medium flex gap-2 items-center cursor-pointer"
232
- :class="link.class"
233
- :to="link.link?.replace(/\/$/, '')"
234
- >
235
- <component
236
- :is="link.startIcon"
237
- v-if="link.startIcon"
238
- class="size-4 shrink-0"
239
- />
240
-
241
- <p>{{ t(link.title) }}</p>
242
-
243
- <component
244
- :is="link.endIcon"
245
- v-if="link.endIcon"
246
- class="size-4 shrink-0"
247
- />
248
- </nuxt-link>
249
- </div>
250
- </div>
251
- </div>
252
- <!--/noindex-->
253
- </div>
254
-
255
- <div class="lg:hidden flex gap-8 flex-wrap">
256
- <nuxt-link
257
- v-for="(social, idx) in socialMedia"
258
- :key="idx"
259
- target="_blank"
260
- :to="social.link"
261
- :aria-label="social.name"
262
- >
263
- <component
264
- :is="social.icon"
265
- filled
266
- :font-controlled="false"
267
- class="social-icon size-7"
268
- />
269
- </nuxt-link>
270
- </div>
271
-
272
- <p class="lg:hidden text-[10px]">
273
- {{ year }} © {{ t('footer.LLP') }} "Alldata"
274
- </p>
275
- </div>
276
- </footer>
277
- </template>
@@ -1,119 +0,0 @@
1
- <script setup lang="ts">
2
- import {useAdaptive} from "#adata-ui/composables/useAdaptive";
3
-
4
- interface Item {
5
- title: string
6
- link: string
7
- }
8
-
9
- interface Props {
10
- label: string
11
- link: string
12
- content: Item[]
13
- }
14
-
15
- defineProps<Props>()
16
-
17
- const { t } = useI18n()
18
-
19
- const device = useAdaptive()
20
- const open = ref(false)
21
- function toFinalValues(el: HTMLDivElement) {
22
- el.style.height = el.scrollHeight + 'px'
23
- el.style.opacity = '1'
24
- }
25
-
26
- function onAfterEnter(el: HTMLDivElement) {
27
- el.style.height = ''
28
- }
29
-
30
- const filterCheck = computed(()=>{
31
- if (open.value){
32
- return open.value
33
- } else {
34
- return open.value = !device.value.isMobile
35
- }
36
- })
37
- </script>
38
-
39
- <template>
40
- <div class="flex flex-col ">
41
- <div
42
- class="flex gap-2 justify-between "
43
- >
44
- <nuxt-link-locale class="text-sm" :to="link">
45
- {{ label }}
46
- </nuxt-link-locale>
47
-
48
-
49
- <div
50
- class="transition-all lg:hidden cursor-pointer"
51
- :class="{'rotate-180': open}"
52
- @click="open =!open"
53
- >
54
- <a-icon-chevron-down
55
- v-if="content.length"
56
- filled
57
- :font-controlled="false"
58
- class="w-6 h-6 "
59
- />
60
- </div>
61
- </div>
62
- <transition
63
- name="accordion"
64
- @enter="toFinalValues"
65
- @after-enter="onAfterEnter"
66
- @before-leave="toFinalValues"
67
- >
68
- <div
69
- v-if="filterCheck"
70
- class="mt-2 flex flex-col gap-2"
71
- >
72
- <nuxt-link-locale
73
- v-for="(item,idx) in content"
74
- :key="idx"
75
- class="text-xs"
76
- :to="item.link.replace(/\/$/, '')"
77
- >
78
- {{ t(item.title) }}
79
- </nuxt-link-locale>
80
- </div>
81
- </transition>
82
- </div>
83
- </template>
84
-
85
- <style scoped>
86
- .accordion-enter-active,
87
- .accordion-leave-active {
88
- overflow: hidden;
89
- transition: height 0.3s ease,
90
- opacity 0.3s ease,
91
- margin 0.3s ease;
92
-
93
- }
94
-
95
- .accordion-enter-from,
96
- .accordion-leave-to {
97
- height: 0 !important;
98
- opacity: 0 !important;
99
- margin: 0 !important;
100
- }
101
-
102
- </style>
103
-
104
- <!-- <div-->
105
- <!-- class="text-sm font-semibold-->
106
- <!-- cursor-pointer"-->
107
- <!-- >-->
108
- <!-- {{ link.title }}-->
109
- <!-- </div>-->
110
- <!-- <div class="flex flex-col gap-2">-->
111
- <!-- <nuxt-link-->
112
- <!-- v-for="(item,idx) in link.items"-->
113
- <!-- :key="idx"-->
114
- <!-- class="text-xs"-->
115
- <!-- :to="item.link"-->
116
- <!-- >-->
117
- <!-- {{ item.title }}-->
118
- <!-- </nuxt-link>-->
119
- <!-- </div>-->
@@ -1,10 +0,0 @@
1
- import { defineConfig } from 'histoire'
2
- import { HstVue } from '@histoire/plugin-vue'
3
- import { HstNuxt } from '@histoire/plugin-nuxt'
4
-
5
- export default defineConfig({
6
- plugins: [
7
- HstVue(),
8
- HstNuxt()
9
- ]
10
- })