adata-ui 2.0.8 → 2.0.10

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.
@@ -63,13 +63,13 @@ const props = defineProps<{
63
63
 
64
64
  <div class="absolute left-6 top-6 flex flex-col gap-4 pr-6">
65
65
  <div class="flex items-center gap-2">
66
- <div class="rounded-sm bg-deepblue-900/5 dark:bg-gray-200/5 p-1">
66
+ <div class="rounded-[4px] icon-item bg-deepblue-900/5 dark:bg-gray-200/5 p-1 ">
67
67
  <component
68
68
  :is="icon"
69
69
  class="size-6 shrink-0"
70
70
  />
71
71
  </div>
72
- <p class="text-base font-semibold">
72
+ <p class="text-base title font-semibold">
73
73
  {{ title }}
74
74
  </p>
75
75
  </div>
@@ -158,10 +158,12 @@ const props = defineProps<{
158
158
  }
159
159
 
160
160
 
161
- .active-item .border-path,
162
- .active-item .animated-border {
163
- stroke-dashoffset: 0;
164
- fill: white;
161
+
162
+ .active-item .title {
163
+ color: #0070EB;
164
+ }
165
+ .active-item .border-path {
166
+ fill: #0070EB1A;
165
167
  }
166
168
  .curve-block:hover .border-path,
167
169
  .curve-block:hover .animated-border {
@@ -170,6 +172,12 @@ const props = defineProps<{
170
172
  fill: white;
171
173
  }
172
174
 
175
+ .curve-block:hover .icon-item {
176
+ background-color: #E0EFFF;
177
+ color: #0070EB;
178
+ transition: all 2s ease, fill 2s ease;
179
+ }
180
+
173
181
  .border-path {
174
182
  stroke: url(#gradient-light);
175
183
  }
@@ -196,12 +204,20 @@ const props = defineProps<{
196
204
  fill: #26282b;
197
205
  }
198
206
 
199
- .active-item .border-path,
200
- .active-item .animated-border {
201
- stroke-dashoffset: 0;
202
- fill: #131415;
207
+ .active-item .title {
208
+ color: #1b98e2;
209
+ }
210
+ .active-item .border-path {
211
+ fill: rgba(23, 146, 221, 0.38);
203
212
  }
204
213
 
214
+ .curve-block:hover .icon-item {
215
+ background-color: rgba(30, 88, 156, 0.6);
216
+ color: #1b98e2;
217
+ transition: all 2s ease, fill 2s ease;
218
+ }
219
+
220
+
205
221
  .curve-block:hover .border-path,
206
222
  .curve-block:hover .animated-border {
207
223
  fill: #131415;
@@ -1,8 +1,12 @@
1
1
  <script setup lang="ts">
2
-
2
+ import { PAGES } from '#adata-ui/shared/constans/pages'
3
3
  import { usePkServicesLinks } from '#adata-ui/composables/useHeaderNavigationLinks'
4
4
 
5
5
  const services = usePkServicesLinks()
6
+ const route = useRoute()
7
+ const localePath = useLocalePath()
8
+ const config = useAppConfig()
9
+ const { locale } = useI18n()
6
10
 
7
11
  const blockStyles = [
8
12
  'first-border-gradient',
@@ -15,6 +19,17 @@ const blockStyles = [
15
19
  'eighth-border-gradient',
16
20
  'ninth-border-gradient',
17
21
  ]
22
+ const linkByIndex = [
23
+ PAGES.pk.main,
24
+ PAGES.pk.employees,
25
+ PAGES.pk.connections,
26
+ PAGES.pk.foreign,
27
+ PAGES.pk.unload,
28
+ PAGES.pk.offshore,
29
+ PAGES.pk.sanctions,
30
+ PAGES.pk.compare,
31
+ buildLocalizedUrl(locale, config.myLayer.landingUrl, '/all-services'),
32
+ ]
18
33
  </script>
19
34
 
20
35
  <template>
@@ -27,7 +42,10 @@ const blockStyles = [
27
42
  >
28
43
  <div
29
44
  class="size-10 p-2 rounded-lg"
30
- :class="index === services.length - 1 ? 'bg-gradient-blue text-white' : 'bg-deepblue-900/5 dark:bg-gray-200/5'"
45
+ :class="[
46
+ index === services.length - 1 ? 'bg-gradient-blue text-white' : 'bg-deepblue-900/5 dark:bg-gray-200/5',
47
+ {'!bg-blue-700 text-white dark:!bg-blue-500 ': route.path.replace(/\/+$/, '') === localePath(linkByIndex[index]).replace(/\/+$/, '')}
48
+ ]"
31
49
  >
32
50
  <component
33
51
  :is="service.icon"
@@ -52,7 +52,7 @@ function onSend() {
52
52
  <p class="md:text-[32px] text-[24px] font-bold">
53
53
  {{ title || t('forms.request_demo.title') }}
54
54
  </p>
55
- <p class="text-base">
55
+ <p class="text-base whitespace-pre-line">
56
56
  {{ description || t('forms.request_demo.info') }}
57
57
  </p>
58
58
  </div>
@@ -62,17 +62,22 @@ function onSend() {
62
62
  <div class="flex flex-col gap-4">
63
63
  <a-input-standard
64
64
  v-model="form.sender_name"
65
+ required
65
66
  :label="t('forms.demo.n')"
66
67
  :error="getError('sender_name')"
67
68
  />
68
69
  <a-input-standard
69
70
  v-model="form.email"
71
+ required
70
72
  :label="t('forms.demo.e')"
71
73
  :error="getError('email')"
72
74
  type="email"
73
75
  />
74
76
  <a-input-standard
75
77
  v-model="form.phone_number"
78
+ v-maska
79
+ required
80
+ data-maska="8 (###) ###-##-##"
76
81
  :label="t('forms.demo.p')"
77
82
  :error="getError('phone_number')"
78
83
  type="tel"
@@ -80,7 +85,12 @@ function onSend() {
80
85
  </div>
81
86
  </slot>
82
87
  <div>
83
- <a-button @click="onSend">{{ t('forms.request_demo.send') }}</a-button>
88
+ <a-button
89
+ block
90
+ @click="onSend"
91
+ >
92
+ {{ t('forms.request_demo.send') }}
93
+ </a-button>
84
94
  </div>
85
95
  </div>
86
96
  </div>
package/lang/en.ts CHANGED
@@ -399,8 +399,8 @@ const EnLocale: RuLocale = {
399
399
  b: "Request demo access"
400
400
  },
401
401
  request_demo: {
402
- title: 'Request demo access',
403
- info: 'Fill out the form to request demo access',
402
+ "title": "Try all the features of the service for free",
403
+ "info": "Check the functionality and quality of the data in real conditions. Demo access will allow you to test all the key features of the service\nFill out the form to submit a connection request",
404
404
  agreement: 'By filling out the form, you agree to the processing of personal data and receiving informational messages',
405
405
  send: 'Submit Request',
406
406
  },
package/lang/kk.ts CHANGED
@@ -400,8 +400,8 @@ const KkLocale: RuLocale = {
400
400
  b: "Демо қолжетімділікті сұрау"
401
401
  },
402
402
  request_demo: {
403
- title: 'Демо қатынасын сұрау',
404
- info: 'Демо қатынасын сұрау үшін пішінді толтырыңыз',
403
+ "title": "Қызметтің барлық мүмкіндіктерін тегін қолданып көріңіз",
404
+ "info": "Деректердің функционалдығын және сапасын нақты жағдайларда тексеріңіз. Демо-қолжетімділік қызметтің барлық негізгі мүмкіндіктерін сынап көруге мүмкіндік береді\nҚосылуға өтінім беру үшін форманы толтырыңыз",
405
405
  agreement: 'Пішінді толтыра отырып, сіз жеке деректерді өңдеуге және ақпараттық хабарламаларды алуға келісім бересіз',
406
406
  send: 'Өтінімді жіберу',
407
407
  },
package/lang/ru.ts CHANGED
@@ -400,8 +400,9 @@ const RuLocale = {
400
400
  b: 'Запросить демо-доступ'
401
401
  },
402
402
  request_demo: {
403
- title: 'Запросить демо-доступ',
404
- info: 'Заполните форму, чтобы оставить заявку на демо-доступ',
403
+ title: 'Попробуйте все возможности сервиса бесплатно',
404
+ info: 'Проверьте функционал и качество данных в реальных условиях. Демо-доступ позволит протестировать все ключевые возможности сервиса' + '\n' +
405
+ 'Заполните форму, чтобы оставить заявку на подключение',
405
406
  agreement: 'Заполняя форму, вы соглашаетесь на обработку персональных данных и получение информационных сообщений',
406
407
  send: 'Отправить заявку',
407
408
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.0.10",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",
@@ -61,5 +61,6 @@
61
61
  "tailwindcss": "^3.4.17",
62
62
  "vue3-toastify": "^0.2.8",
63
63
  "zod": "^4.0.15"
64
- }
64
+ },
65
+ "packageManager": "pnpm@9.15.1+sha1.abc117858086cb10ecb54828d180b035cb6c8fdd"
65
66
  }