adata-ui 2.1.40-beta.8 → 2.1.40-beta.9

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.
@@ -150,7 +150,7 @@ defineExpose({ onClear })
150
150
  <button
151
151
  v-if="clearable && hasValue && !disabled"
152
152
  type="button"
153
- class="absolute right-9 top-1/2 flex -translate-y-1/2 items-center justify-center rounded-full p-0.5 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-white/[0.08] dark:hover:text-gray-300"
153
+ class="absolute right-9 top-1/2 flex -translate-y-1/2 items-center justify-center rounded-full p-0.5 transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.08] dark:hover:text-gray-300"
154
154
  @click.stop="onClear"
155
155
  >
156
156
  <a-icon-x-mark class="!m-0 size-3.5" />
@@ -388,7 +388,7 @@ const isDefaultSelection = computed(() => {
388
388
 
389
389
  <button
390
390
  v-if="valueToShow && clearable && !isDefaultSelection"
391
- class="absolute right-9 top-1/2 flex -translate-y-1/2 items-center justify-center rounded-full p-0.5 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-white/[0.08] dark:hover:text-gray-300"
391
+ class="absolute right-9 top-1/2 flex -translate-y-1/2 items-center justify-center rounded-full p-0.5transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.08] dark:hover:text-gray-300"
392
392
  @click.stop="onClear"
393
393
  >
394
394
  <a-icon-x-mark class="!m-0 size-3.5" />
@@ -366,7 +366,7 @@ function rowDisplay(item: T): unknown {
366
366
  v-else-if="showClearButton"
367
367
  type="button"
368
368
  tabindex="-1"
369
- class="flex shrink-0 items-center justify-center rounded-full p-0.5 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-white/[0.08] dark:hover:text-gray-300"
369
+ class="flex shrink-0 items-center justify-center rounded-full p-0.5 transition-colors hover:bg-gray-100 dark:hover:bg-white/[0.08] dark:hover:text-gray-300"
370
370
  :class="iconOffsetClass"
371
371
  @mousedown.prevent
372
372
  @click.stop="onClear"
@@ -1,5 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { useUrls } from '#adata-ui/composables/useUrls'
3
+ import { navigateToLocalizedPage } from '#adata-ui/utils/localizedNavigation'
3
4
 
4
5
  const { t, locale } = useI18n()
5
6
  const localePath = useLocalePath()
@@ -11,6 +12,10 @@ function onClose() {
11
12
  isOpen.value = false
12
13
  return navigateTo(localePath('/'))
13
14
  }
15
+
16
+ function onToMain() {
17
+ return navigateToLocalizedPage({ locale, projectUrl: landing, target: '_self' })
18
+ }
14
19
  </script>
15
20
 
16
21
  <template>
@@ -47,7 +52,7 @@ function onClose() {
47
52
  </a-button-v2>
48
53
  <a-button-v2
49
54
  block
50
- :to="buildLocalizedUrl(locale, landing)"
55
+ @click="onToMain"
51
56
  >
52
57
  {{ t('modals.buttons.toMain') }}
53
58
  </a-button-v2>
@@ -310,10 +310,9 @@ function onTouchEnd() {
310
310
  {{ title }}
311
311
  </h2>
312
312
  </slot>
313
- <!-- Кнопка закрытия не зависит от title и слота header — рендерится всегда (если header не скрыт). -->
314
313
  <button
315
314
  type="button"
316
- class="ml-auto rounded-md p-1 text-gray-500 transition hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-800 dark:hover:text-gray-200"
315
+ class="ml-auto rounded-md p-1 transition hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-200"
317
316
  @click="closeIfAllowed"
318
317
  >
319
318
  <a-icon-x-mark class="size-4" />
@@ -40,7 +40,7 @@ import {
40
40
  AIconSearch,
41
41
  AIconAkimat,
42
42
  AIconCurrencyTenge,
43
- AIconExcelIcon,
43
+ AIconExcelIcon, AIconFile,
44
44
  } from '#components'
45
45
  import MapPinRect from '#adata-ui/icons/map/map-pin-rect.vue'
46
46
  import MapPaper from '#adata-ui/icons/map-paper.vue'
@@ -264,7 +264,7 @@ export const useHeaderNavigationLinks = () => {
264
264
  is_new: true,
265
265
  name: t('header.products.edo.label'),
266
266
  link: buildLocalizedUrl(locale, urls.edo_docs , ''),
267
- icon: AIconUsers,
267
+ icon: AIconFile,
268
268
  data_attribute: 'navigation-menu-edo-block',
269
269
  items: [
270
270
  {
package/lang/en.ts CHANGED
@@ -209,10 +209,10 @@ const EnLocale: RuLocale = {
209
209
  },
210
210
  },
211
211
  fea: {
212
- label: 'Foreign Economic Activity',
212
+ label: 'Import and customs',
213
213
  items: {
214
214
  i: {
215
- t: 'Tender search',
215
+ t: 'Foreign trade in goods',
216
216
  st: 'Information service of foreign trade turnover by foreign economic activity participants',
217
217
  },
218
218
  o: {
@@ -275,7 +275,7 @@ const EnLocale: RuLocale = {
275
275
  },
276
276
  },
277
277
  edo: {
278
- label: 'EDM',
278
+ label: 'Documents',
279
279
  heroSubtitle: 'Templates · AI assistant · Signatures · Voice input',
280
280
  heroCta: 'Open EDO',
281
281
  items: {
package/lang/kk.ts CHANGED
@@ -209,10 +209,10 @@ const KkLocale: RuLocale = {
209
209
  },
210
210
  },
211
211
  fea: {
212
- label: 'СЭҚ',
212
+ label: 'Импорт және кеден',
213
213
  items: {
214
214
  i: {
215
- t: 'Тендерлерді іздеу',
215
+ t: 'Тауарлармен сыртқы сауда',
216
216
  st: 'Сыртқы экономикалық қызметке қатысушылардың сыртқы сауда айналымының ақпараттық қызметі',
217
217
  },
218
218
  o: {
@@ -275,7 +275,7 @@ const KkLocale: RuLocale = {
275
275
  },
276
276
  },
277
277
  edo: {
278
- label: 'ЭҚА',
278
+ label: 'Құжаттар',
279
279
  heroSubtitle: 'Үлгілер · AI-ассистент · ЭЦҚ · Дауыспен енгізу',
280
280
  heroCta: 'EDO-ды ашу',
281
281
  items: {
package/lang/ru.ts CHANGED
@@ -210,10 +210,10 @@ const RuLocale = {
210
210
  },
211
211
  },
212
212
  fea: {
213
- label: 'ВЭД',
213
+ label: 'Импорт и таможня',
214
214
  items: {
215
215
  i: {
216
- t: 'Поиск тендеров',
216
+ t: 'Внешняя торговля товарами',
217
217
  st: 'Информационный сервис внешнеторгового оборота в разрезе участников ВЭД',
218
218
  },
219
219
  o: {
@@ -276,7 +276,7 @@ const RuLocale = {
276
276
  },
277
277
  },
278
278
  edo: {
279
- label: 'ЭДО',
279
+ label: 'Документы',
280
280
  heroSubtitle: 'Шаблоны · AI-ассистент · ЭЦП · Голосовой ввод',
281
281
  heroCta: 'Открыть EDO',
282
282
  items: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.1.40-beta.8",
4
+ "version": "2.1.40-beta.9",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",