adata-ui 2.1.41-beta.11 → 2.1.41-beta.12

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.
@@ -41,17 +41,17 @@ defineProps<Props>()
41
41
  />
42
42
 
43
43
  <!-- нет данных -->
44
- <span
45
- class="absolute -bottom-1.5 -right-1.5 grid size-[26px] place-items-center rounded-full border border-default bg-main text-icon-default shadow-sm"
46
- >
47
- <empty-ban class="size-3.5" />
48
- </span>
44
+ <!-- <span-->
45
+ <!-- class="absolute -bottom-1.5 -right-1.5 grid size-[26px] place-items-center rounded-full border border-default bg-main text-icon-default shadow-sm"-->
46
+ <!-- >-->
47
+ <!-- <empty-ban class="size-3.5" />-->
48
+ <!-- </span>-->
49
49
  </div>
50
50
  </div>
51
51
 
52
52
  <!-- текст -->
53
53
  <div class="flex flex-col items-center gap-2">
54
- <h3 class="font-semibold text-primary">
54
+ <h3 class=" text-primary">
55
55
  {{ title }}
56
56
  </h3>
57
57
 
@@ -2,20 +2,14 @@
2
2
  import NavList from '#adata-ui/components/navigation/header/NavList.vue'
3
3
  import { useActiveNavigation } from '#adata-ui/composables/useActiveNavigation'
4
4
  import { useHeaderNavigationLinks } from '#adata-ui/composables/useHeaderNavigationLinks'
5
- import { useUrls } from '#adata-ui/composables/useUrls'
6
- import AIconArrowRight from '#adata-ui/icons/arrow/arrow-right.vue'
7
- import AIconDownloadRounded from '#adata-ui/icons/download-rounded.vue'
8
- import { PAGES } from '#adata-ui/shared/constans/pages'
9
5
 
10
6
  defineProps<{ url?: string }>()
11
7
  defineEmits(['outerClick', 'mouseOver'])
12
8
 
13
- const urls = useUrls()
14
- const { t, locale } = useI18n()
15
9
  const modules = useHeaderNavigationLinks()
16
10
  const { isActiveModule } = useActiveNavigation()
17
11
 
18
- const COLUMN_KEYS = [['edo'], ['pk'], ['compliance', 'fines'], ['tenders', 'analytics'], ['fea', 'work']]
12
+ const COLUMN_KEYS = [['edo', 'export'], ['pk'], ['compliance', 'fines'], ['tenders', 'analytics'], ['fea', 'work']]
19
13
  const catalogColumns = computed(() =>
20
14
  COLUMN_KEYS.map(keys =>
21
15
  keys
@@ -23,14 +17,6 @@ const catalogColumns = computed(() =>
23
17
  .filter((module): module is NonNullable<typeof module> => module !== undefined),
24
18
  ),
25
19
  )
26
-
27
- function handleExportClick() {
28
- navigateToLocalizedPage({
29
- locale: locale.value,
30
- projectUrl: urls.pk,
31
- path: PAGES.pk.unload,
32
- })
33
- }
34
20
  </script>
35
21
 
36
22
  <template>
@@ -57,41 +43,7 @@ function handleExportClick() {
57
43
  :icon="module.icon"
58
44
  :badge="module.is_new"
59
45
  :data-test-id="module.data_attribute"
60
- >
61
- <template
62
- v-if="module.key === 'edo'"
63
- #bottom
64
- >
65
- <!-- осознанно константный: белый текст на брендовой solid-карточке bg-brand -->
66
- <div class="mt-4 flex flex-col gap-4 rounded-lg bg-brand p-4 normal-case text-white">
67
- <div class="flex items-center gap-3">
68
- <span class="rounded-[10px] bg-main p-[10px]">
69
- <a-icon-download-rounded class="size-5 text-brand" />
70
- </span>
71
- <span class="font-semibold text-white">
72
- {{ t('header.products.exportCard.title') }}
73
- </span>
74
- </div>
75
-
76
- <div class="text-body-sm text-white">
77
- {{ t('header.products.exportCard.subTitle') }}
78
- </div>
79
-
80
- <a-button-v2
81
- view="soft"
82
- class="!h-9 w-fit !bg-main text-brand"
83
- size="sm"
84
- :icon="AIconArrowRight"
85
- icon-right
86
- @click="handleExportClick"
87
- >
88
- <span class="text-body-md-strong">
89
- {{ t('header.products.exportCard.receive') }}
90
- </span>
91
- </a-button-v2>
92
- </div>
93
- </template>
94
- </nav-list>
46
+ />
95
47
  </div>
96
48
  </div>
97
49
  </div>
@@ -14,6 +14,7 @@ import CheckSb from '#adata-ui/icons/check-sb.vue'
14
14
  import IconCheckCircle from '#adata-ui/icons/check/check-circle.vue'
15
15
  import IconCompany from '#adata-ui/icons/company.vue'
16
16
  import IconDollar from '#adata-ui/icons/currency/currency-dollar.vue'
17
+ import AIconDownloadRounded from '#adata-ui/icons/download-rounded.vue'
17
18
  import IconFilePen from '#adata-ui/icons/file-pen.vue'
18
19
  import IconFileStack from '#adata-ui/icons/file-stack.vue'
19
20
  import IconGitCompare from '#adata-ui/icons/git-compare.vue'
@@ -305,6 +306,21 @@ export function useHeaderNavigationLinks() {
305
306
  },
306
307
  ],
307
308
  },
309
+ {
310
+ key: 'export',
311
+ name: t('header.products.export.label'),
312
+ link: buildLocalizedUrl(locale, urls.pk, PAGES.pk.unload),
313
+ icon: AIconDownloadRounded,
314
+ data_attribute: 'navigation-menu-export-block',
315
+ items: [
316
+ {
317
+ title: t('header.products.export.items.clients.title'),
318
+ subtitle: t('header.products.export.items.clients.subtitle'),
319
+ icon: IconSearch,
320
+ to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.unload),
321
+ },
322
+ ],
323
+ },
308
324
  {
309
325
  key: 'compliance',
310
326
  is_new: true,
@@ -0,0 +1,5 @@
1
+ <template>
2
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M13.6 7.8V6.6M13.6 6.6C13.6003 6.41007 13.563 6.22195 13.4903 6.04648C13.4176 5.87101 13.3109 5.71166 13.1764 5.5776L11.0236 3.4248C10.8895 3.2899 10.73 3.1829 10.5543 3.10999C10.3786 3.03707 10.1902 2.99969 10 3M13.6 6.6H10.6C10.4409 6.6 10.2883 6.53679 10.1757 6.42427C10.0632 6.31174 10 6.15913 10 6V3M10 3H5.2C4.88174 3 4.57652 3.12643 4.35147 3.35147C4.12643 3.57652 4 3.88174 4 4.2V13.8C4 14.1183 4.12643 14.4235 4.35147 14.6485C4.57652 14.8736 4.88174 15 5.2 15H7.81M11.2 10.2C10.8817 10.2 10.5765 10.3264 10.3515 10.5515C10.1264 10.7765 10 11.0817 10 11.4M11.2 15C10.8817 15 10.5765 14.8736 10.3515 14.6485C10.1264 14.4235 10 14.1183 10 13.8M13.6 10.2C13.9183 10.2 14.2235 10.3264 14.4485 10.5515C14.6736 10.7765 14.8 11.0817 14.8 11.4M13.6 15C13.9183 15 14.2235 14.8736 14.4485 14.6485C14.6736 14.4235 14.8 14.1183 14.8 13.8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
5
+ </template>
package/lang/en.ts CHANGED
@@ -325,10 +325,14 @@ const EnLocale: RuLocale = {
325
325
  'Automated compliance risk assessment: real-time business protection',
326
326
  },
327
327
  },
328
- exportCard: {
329
- title: 'Data export',
330
- subTitle: 'Find companies and sole proprietors using the specified filters and receive a list of potential clients',
331
- receive: 'Get',
328
+ export: {
329
+ label: 'Data export',
330
+ items: {
331
+ clients: {
332
+ title: 'Client search',
333
+ subtitle: 'Find companies and sole proprietors using the specified filters and receive a list of potential clients',
334
+ },
335
+ },
332
336
  },
333
337
  },
334
338
  contacts: {
package/lang/kk.ts CHANGED
@@ -325,10 +325,14 @@ const KkLocale: RuLocale = {
325
325
  'Комплаенс тәуекелдерін автоматты түрде тексеру: нақты уақыт режимінде бизнесіңізді қорғаңыз',
326
326
  },
327
327
  },
328
- exportCard: {
329
- title: 'Деректерді жүктеу',
330
- subTitle: 'Берілген сүзгілер бойынша компаниялар мен ЖК табыңыз және әлеуетті клиенттердің жүктемесін алыңыз',
331
- receive: 'Алу',
328
+ export: {
329
+ label: 'Деректерді жүктеу',
330
+ items: {
331
+ clients: {
332
+ title: 'Клиенттерді іздеу',
333
+ subtitle: 'Берілген сүзгілер бойынша компаниялар мен ЖК табыңыз және әлеуетті клиенттердің жүктемесін алыңыз',
334
+ },
335
+ },
332
336
  },
333
337
  },
334
338
  contacts: {
package/lang/ru.ts CHANGED
@@ -325,10 +325,14 @@ const RuLocale = {
325
325
  subtitle: 'Автопроверка комплаенс-рисков: защита бизнеса в режиме реального времени',
326
326
  },
327
327
  },
328
- exportCard: {
329
- title: 'Выгрузка данных',
330
- subTitle: 'Найдите компании и ИП по заданным фильтрам и получите выгрузку потенциальных клиентов',
331
- receive: 'Получить',
328
+ export: {
329
+ label: 'Выгрузка данных',
330
+ items: {
331
+ clients: {
332
+ title: 'Поиск клиентов',
333
+ subtitle: 'Найдите компании и ИП по заданным фильтрам и получите выгрузку потенциальных клиентов',
334
+ },
335
+ },
332
336
  },
333
337
  },
334
338
  contacts: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.1.41-beta.11",
4
+ "version": "2.1.41-beta.12",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",